@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* Display font for the title, the saying, points and the result (Apache 2.0, fonts/LuckiestGuy-LICENSE.txt). */
@font-face {
  font-family: "Luckiest Guy";
  src: url("fonts/luckiest-guy.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff8ec;
  --paper: #ffffff;
  --ink: #2b2140;
  --muted: #6d6480;
  --line: #eadfcb;
  --brand: #ff6b4a;
  --brand-ink: #ffffff;
  --accent: #7b5cff;
  --accent-bg: #f1edff;
  --cd-glow: #ece6ff;
  --cd-kick: #b26b00;
  --good: #1f9d63;
  --good-bg: #e3f7ec;
  --bad: #d64545;
  --bad-bg: #fde8e8;
  --myth-bg: #fff1d6;
  --truth-bg: #eaf2ff;
  --pick: #ffe36e;
  --gold: #ffc531;
  --gold-soft: rgba(255, 197, 49, .28);
  --v-confirmed: #1f9d63;
  --v-likely: #2f7de1;
  --shadow: 0 6px 0 #e8dcc6;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1626; --paper: #251f33; --ink: #f3eefc; --muted: #b3a9c6; --line: #3a3150;
    --myth-bg: #3a2f1c; --truth-bg: #1f2b44; --good-bg: #173a2a; --bad-bg: #401d22;
    --pick: #6b5a10; --shadow: 0 6px 0 #120e1a; --accent-bg: #2d2545; --cd-glow: #3b2a6b; --cd-kick: #ffc531;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1626; --paper: #251f33; --ink: #f3eefc; --muted: #b3a9c6; --line: #3a3150;
  --myth-bg: #3a2f1c; --truth-bg: #1f2b44; --good-bg: #173a2a; --bad-bg: #401d22;
  --pick: #6b5a10; --shadow: 0 6px 0 #120e1a; --accent-bg: #2d2545; --cd-glow: #3b2a6b; --cd-kick: #ffc531;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Fredoka", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.42;
}
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.top { max-width: 720px; margin: 0 auto; padding: 10px 12px 4px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: center; gap: 8px; }
.logo { width: 34px; height: 34px; border-radius: 8px; display: block; animation: wiggle 3s ease-in-out infinite; }
h1 { margin: 0; font-size: 1.35rem; font-weight: 700; }
h2, h3, h4, b, strong { font-weight: 600; }
.tools { display: flex; gap: 6px; }
.icon-btn {
  font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: 50%; width: 38px; height: 38px;
  display: grid; place-items: center; padding: 0;
}
.icon-btn:focus-visible, .medal:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.stats { display: flex; gap: 5px; flex-wrap: nowrap; align-items: center; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; flex: none; white-space: nowrap;
  background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 2px 8px;
}
.rank-chip { font-weight: 700; font-size: .82rem; }
.flame.cold { filter: grayscale(1); opacity: .5; }
.flame.hot { display: inline-block; animation: flicker .8s ease-in-out infinite alternate; }

.medal-row { display: flex; gap: 3px; flex-wrap: nowrap; margin-left: auto; min-width: 0; }
.medal {
  font-size: .95rem; line-height: 1; cursor: pointer; padding: 0; width: 27px; height: 27px; flex: 0 1 27px; min-width: 20px;
  display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--line); border-radius: 8px;
  filter: grayscale(1); opacity: .4;
}
.medal.won { filter: none; opacity: 1; border-color: var(--gold); }
.medal.fresh { animation: medalIn .9s cubic-bezier(.2, 1.4, .4, 1); }

/* ---------- card ---------- */
main { max-width: 720px; margin: 0 auto; padding: 6px 10px 24px; }
.card {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 13px 16px; overflow: hidden; position: relative;
  transition: border-color .3s ease;
}
.card-num {
  position: absolute; top: 12px; right: 14px; font-weight: 700; font-size: .85rem; letter-spacing: .04em;
  color: var(--muted); background: var(--bg); border: 2px solid var(--line); border-radius: 999px; padding: 1px 9px;
}
.card.is-right { border-color: var(--good); }
.card.is-wrong { border-color: var(--bad); }
.date { margin: 0 60px 0 0; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.saying { font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 700; margin: 2px 60px 6px 0; line-height: 1.12; }
.saying.small { font-size: clamp(1.2rem, 5vw, 1.5rem); margin: 0; }
.sentence { margin: 0 0 12px; font-size: 1.12rem; line-height: 1.38; }
.label {
  font-style: normal; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--accent); color: #fff; border-radius: 6px; padding: 2px 6px; margin-right: 4px; vertical-align: 2px;
}
.q { margin: 0 0 8px; font-size: 1rem; }

.options { display: grid; gap: 10px; }
.option {
  font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 56px;
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
  background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 9px 10px;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
  touch-action: manipulation;
}
/* Highlight without moving: a moving hover target jitters under a still pointer. */
.option:hover:not(:disabled) { border-color: var(--accent); box-shadow: 0 3px 0 var(--accent); }
.option:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.option:disabled { cursor: default; }
.option.picked { background: var(--pick); border-color: var(--ink); }
.opt-tag { grid-column: 2; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.option.revealed.right { background: var(--good-bg); border-color: var(--good); }
.option.revealed.right .opt-tag { color: var(--good); }
.option.revealed.yours { background: var(--bad-bg); border-color: var(--bad); border-width: 3px; }
.option.revealed.yours .opt-tag { color: var(--bad); }
.option.revealed.yours .opt-letter { background: var(--bad); }
.option.revealed.right .opt-letter { background: var(--good); }
.option.revealed.other { opacity: .55; }
.option.revealed.other .opt-tag { color: var(--muted); }
.option.revealed.right { border-width: 3px; }
.option.first { order: -1; }
.option .res { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
.option .out-big { font-size: 1.45rem; font-weight: 700; letter-spacing: .02em; }
.option.right .out-big { color: var(--good); }
.option.yours .out-big { color: var(--bad); }
.option .out-pts { font-weight: 600; color: var(--muted); font-size: .9rem; }
.option.win { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 0 0 4px var(--gold), 0 0 22px var(--gold); }
.option.lose { animation: wobble .6s ease-in-out; }

/* ---------- outcome line ---------- */
.outcome { border-radius: 14px; padding: 10px 14px; margin: 0 0 12px; border: 3px solid; }
.outcome.right { background: var(--good-bg); border-color: var(--good); }
.outcome.wrong { background: var(--bad-bg); border-color: var(--bad); }
.out-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.out-big { font-size: 1.7rem; font-weight: 700; letter-spacing: .02em; }
.outcome.right .out-big { color: var(--good); }
.outcome.wrong .out-big { color: var(--bad); }
.out-pts { font-weight: 600; color: var(--muted); }
.outcome.win { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 0 0 4px var(--gold), 0 0 22px var(--gold); }
.outcome.lose { animation: wobble .6s ease-in-out; }
.opt-letter {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: .85rem;
}

/* ---------- answer side ---------- */
.verdict {
  color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  border-radius: 999px; padding: 5px 12px; font-size: .8rem; white-space: nowrap;
}
.verdict::before { content: "● "; }
.v-confirmed { background: var(--v-confirmed); }
.v-likely { background: var(--v-likely); }
.verdict-wrap { position: relative; display: inline-block; }
.verdict-wrap .verdict { position: relative; z-index: 1; }



.story {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 13px 13px; margin-top: 14px; scroll-margin-top: 10px;
}
.story:focus { outline: none; }
.story-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.block { border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.block h4 { margin: 0 0 4px; font-size: .9rem; }
.block p { margin: 0; }
.myth { background: var(--myth-bg); }
.truth { background: var(--truth-bg); }
.early, .sources { border: 2px dashed var(--line); }
.sources ul { margin: 0; padding-left: 18px; }
.sources a { color: var(--accent); }
.verdict-help { color: var(--muted); font-size: .85rem; }
.note { background: var(--truth-bg); border-radius: 12px; padding: 10px 12px; font-size: .9rem; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 700; cursor: pointer; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 10px 18px;
  box-shadow: 0 3px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
}
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.link { border: none; box-shadow: none; text-decoration: underline; padding: 6px 0; font-weight: 600; }
.btn.danger { color: var(--bad); border-color: var(--bad); box-shadow: 0 3px 0 var(--bad); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* ---------- round actions (in the flow, under the result) ---------- */
.round-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 12px 0 0; padding-top: 12px; border-top: 2px dashed var(--line); }
.round-actions #show-evidence { align-self: center; }
.round-actions .btn.primary { font-size: 1.05rem; }
/* The next drop: the cue to come back, so it's the loudest thing after a result. */
.countdown { border-radius: 20px; padding: 3px; background: linear-gradient(120deg, var(--brand), var(--gold) 45%, var(--accent)); }
.cd-in { border-radius: 17px; background: radial-gradient(120% 140% at 0% 0%, var(--cd-glow) 0%, var(--paper) 60%); padding: 12px 14px; text-align: center; }
.countdown p { margin: 0; }
.cd-when { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cd-kick); }
.cd-time { margin: 4px 0 6px !important; font-family: "Luckiest Guy", "Fredoka", sans-serif; font-size: 2.5rem; line-height: 1; letter-spacing: .03em;
  font-variant-numeric: tabular-nums; color: var(--ink); text-shadow: 0 3px 0 var(--accent); }
.cd-time small { font-size: 1.2rem; color: var(--cd-kick); text-shadow: none; margin: 0 3px 0 1px; }
.cd-drops { display: flex; justify-content: center; gap: 8px; margin: 6px 0 4px; }
.cd-drop { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 3px 9px; border: 2px solid var(--line); color: var(--muted); }
.cd-drop.done { background: var(--good); border-color: var(--good); color: #fff; }
.cd-drop.up { border-color: var(--gold); color: var(--cd-kick); animation: glow 1.6s ease-in-out infinite alternate; }
@keyframes glow { from { box-shadow: 0 0 0 0 rgba(255, 197, 49, 0); } to { box-shadow: 0 0 10px 2px rgba(255, 197, 49, .55); } }
.cd-keep { font-size: .9rem; font-weight: 600; margin-top: 4px !important; }

/* ---------- version ---------- */
.ver { text-align: center; color: var(--muted); font-size: .75rem; margin: 18px 0 4px; }
.ver-line { color: var(--muted); font-size: .8rem; margin: 12px 0 0; }

/* ---------- stats sheet ---------- */
.sheet { position: fixed; left: 0; right: 0; top: var(--vv-top, 0px); height: var(--vv-h, 100%); z-index: 20;
  background: rgba(20, 14, 32, .55); display: flex; align-items: flex-end; justify-content: center; }
/* --vv-h / --vv-top: the visible part of the screen (set by app.js), so the keyboard never covers a window. */
.sheet-box {
  background: var(--paper); width: min(640px, 100%); max-height: min(85vh, calc(var(--vv-h, 100vh) - 12px)); overflow-y: auto;
  border-radius: 22px 22px 0 0; padding: 16px 18px calc(20px + env(safe-area-inset-bottom));
  border: 2px solid var(--line); animation: slideUp .3s ease-out;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h3 { margin: 0; }
.sheet-box h4 { margin: 16px 0 6px; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.history li:last-child { border-bottom: none; }
.history .empty { display: block; color: var(--muted); }
.h-say { font-weight: 700; }
.h-meta { grid-column: 2; color: var(--muted); font-size: .8rem; }
.how { margin: 0; padding-left: 18px; }
.demo { margin-top: 8px; border-top: 2px dashed var(--line); }
.demo p { margin: 0; color: var(--muted); font-size: .85rem; }

/* ---------- toast + medal banner ---------- */
.toast {
  position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 30;
  background: var(--ink); color: var(--paper); font-weight: 700; padding: 10px 16px; border-radius: 999px;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { animation: dropIn .3s ease-out; }
.medal-banner {
  position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: 25;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 24px);
  background: var(--paper); border: 3px solid var(--gold); border-radius: 18px; padding: 8px 18px 8px 10px;
  box-shadow: 0 6px 0 var(--ink);
}
.medal-banner.show { animation: banner 2.5s cubic-bezier(.2, 1.3, .4, 1) forwards; }
.mb-icon { font-size: 2.2rem; line-height: 1; animation: medalIn .9s cubic-bezier(.2, 1.4, .4, 1); }
.mb-text { display: flex; flex-direction: column; line-height: 1.2; }
.mb-kicker { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }

/* ---------- reveal effects ---------- */
.card.suspense { animation: suspense .9s ease-in-out; }
.card.suspense .option.picked { animation: pulse .3s ease-in-out infinite alternate; }
.card.flip { animation: flip .55s ease-out; }
.option.wobble { animation: wobble .6s ease-in-out; }
.verdict-wrap.burst::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; z-index: 0;
  transform: translate(-50%, -50%) scale(.2); border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(var(--gold) 0 12deg, transparent 12deg 30deg);
  animation: burst 1.1s ease-out forwards;
}
.verdict-wrap.burst .verdict { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.chip.glow { animation: glow 1s ease-out; }

.combo {
  position: fixed; left: 50%; top: 35%; z-index: 11; pointer-events: none;
  font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 700; color: var(--brand);
  -webkit-text-stroke: 2px var(--ink); text-shadow: 0 4px 0 var(--ink);
  opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-8deg); white-space: nowrap;
}
.combo.show { animation: combo 1.6s cubic-bezier(.2, 1.4, .4, 1) forwards; }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 9; }
.bit { position: absolute; font-size: 1.5rem; animation-timing-function: ease-in; animation-fill-mode: forwards; }
.bit.top { top: -40px; animation-name: fall; }
.bit.left { left: -40px; animation-name: shootRight; }
.bit.right { right: -40px; animation-name: shootLeft; }

@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
@keyframes shootRight { to { transform: translate(var(--dx), var(--dy)) rotate(400deg); opacity: 0; } }
@keyframes shootLeft { to { transform: translate(var(--dx), var(--dy)) rotate(-400deg); opacity: 0; } }
@keyframes suspense {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px) rotate(-.4deg); } 40% { transform: translateX(3px) rotate(.4deg); }
  60% { transform: translateX(-4px) rotate(-.6deg); } 80% { transform: translateX(4px) rotate(.6deg); }
}
@keyframes pulse { to { transform: scale(1.03); } }
@keyframes flip { 0% { transform: perspective(900px) rotateY(90deg); } 100% { transform: perspective(900px) rotateY(0); } }
@keyframes win { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes wobble {
  0%, 100% { transform: translateX(0); } 15% { transform: translateX(-10px) rotate(-2deg); }
  30% { transform: translateX(8px) rotate(2deg); } 45% { transform: translateX(-6px); } 60% { transform: translateX(4px); } 75% { transform: translateX(-2px); }
}
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.2) rotate(0); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.2) rotate(45deg); opacity: 0; } }
@keyframes glow { 0% { box-shadow: 0 0 0 0 var(--gold); } 30% { box-shadow: 0 0 0 6px var(--gold); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes combo {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-8deg); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(-4deg); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(1) rotate(-4deg); }
}
@keyframes banner {
  0% { transform: translate(-50%, -140%); }
  12% { transform: translate(-50%, 0); }
  85% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, -140%); opacity: 0; }
}
@keyframes dropIn { from { transform: translate(-50%, -120%); } to { transform: translate(-50%, 0); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes medalIn { 0% { transform: scale(0) rotate(-540deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes wiggle { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-12deg); } 96% { transform: rotate(10deg); } }
@keyframes flicker { from { transform: scale(1) rotate(-4deg); } to { transform: scale(1.15) rotate(4deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .combo.show { opacity: 1; transform: translate(-50%, -50%); }
}

/* Narrow phones: keep score, streak and medals on one line */
@media (max-width: 479px) {
  #rank { display: none; }
  .rank-chip { padding: 2px 6px; }
  /* Five buttons and the name on one line */
  .tools { gap: 4px; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 18px; height: 18px; }
  h1 { font-size: 1.1rem; white-space: nowrap; }
  .logo { width: 30px; height: 30px; }
  .brand { gap: 6px; }
}

/* ---------- warm-up note + load error ---------- */
.practice-row { margin: 2px 0 8px; }
.practice-row .btn.link { padding: 2px 0; }
.warm-offer { margin: 4px 0 12px; padding: 12px; border: 2px dashed var(--line); border-radius: var(--radius); }
.warm-offer p { margin: 0 0 4px; font-weight: 600; }
.practice-row:has(> [hidden]) { display: none; }
.warm-note { margin: -4px 60px 8px 0; /* right: clear the #nnn badge, like .saying */ color: var(--muted); font-size: .85rem; font-weight: 600; line-height: 1.3; }
.load-error { margin-top: 12px; padding: 14px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; }
.load-error p { margin: 0 0 10px; font-weight: 600; }
.card.loading .saying, .card.loading .sentence { opacity: .35; }

/* /admin: passkey key box (wraps the whole key; tap selects all) */
.keyout { display: block; width: 100%; box-sizing: border-box; margin-top: .75rem; padding: .5rem;
  font: 16px/1.35 ui-monospace, Menlo, Consolas, monospace; word-break: break-all; white-space: pre-wrap;   /* 16px: no iPhone zoom on tap */
  border: 1px solid currentColor; border-radius: 8px; background: transparent; color: inherit; resize: vertical; }

/* Stats: your data (recovery code, download, delete) */
.mydata h5 { margin: 12px 0 6px; font-size: .95rem; }
.mydata p { margin: 6px 0; }
.code-in-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.code-in-row input { flex: 1 1 12em; min-width: 0; font: inherit; padding: 8px 10px; border: 2px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--ink); }

/* Friend groups */
.hint { color: var(--muted); font-size: .9rem; margin: 6px 0; }
.group-list { list-style: none; margin: 0; padding: 0; }
.group-list li { margin: 0 0 10px; }
.group-list .gcard { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; width: 100%;
  padding: 10px 12px; cursor: pointer; background: var(--accent-bg); border: 2px solid var(--line);
  border-left: 6px solid var(--accent); border-radius: 12px; }
.group-list .gcard:hover { border-color: var(--accent); }
.group-list .gcard:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gc-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.gc-name { overflow-wrap: anywhere; }
.gc-chev { color: var(--accent); font-size: 1.3rem; line-height: 1; }
.group-list .meta { color: var(--muted); font-size: .9rem; }
.gc-view { color: var(--accent); font-weight: 600; font-size: .9rem; }
.group-strip { margin: 10px 0 0; }
.btn.sm { padding: 6px 13px; font-size: .9rem; }
.icon-btn[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gv-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0 8px; }
.gv-title .gv-name { margin: 0; font-size: 1.6rem; line-height: 1.1; }
.board .ck { width: 28px; padding-left: 2px; text-align: left; }
.board:not(.editing) .ck { display: none; }
.board .ck input { width: 20px; height: 20px; accent-color: var(--bad); }
.gsec { border-top: 2px solid var(--line); padding-top: 12px; margin-top: 16px; }
.gsec h5 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.gsec .actions { margin-top: 6px; }
.gv-leave { text-align: center; margin-top: 20px; }
#group-view .hint { font-size: .82rem; }
.group-strip p { margin: 4px 0; font-weight: 600; overflow-wrap: anywhere; }
.group-strip .btn.link { padding: 2px 0; }
.gv-name { font-size: 1.2rem; overflow-wrap: anywhere; }
.board { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th, .board td { padding: 6px 4px; text-align: right; border-bottom: 1px dashed var(--line); }
.board th:nth-child(3), .board td:nth-child(3) { text-align: left; overflow-wrap: anywhere; }
.board th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.board tr.me td { background: var(--gold-soft); }
.board .tag, .board .since { color: var(--muted); font-size: .8rem; font-weight: 400; }
.board .since { display: block; }


/* Display font (after the base rules so its weight wins: Luckiest Guy has one weight). */
.display, h1, .saying, #points, .out-big { font-family: "Luckiest Guy", "Fredoka", ui-rounded, system-ui, sans-serif; font-weight: 400; letter-spacing: .02em; }

/* ---------- privacy page ---------- */
.ver a { color: inherit; }
.doc { line-height: 1.5; }
.doc h1 { margin: 10px 0 2px; }
.doc h2 { font-size: 1.05rem; margin: 20px 0 6px; }
.doc ul { padding-left: 20px; margin: 6px 0; }
.doc li { margin: 4px 0; }
.doc a { color: inherit; }

/* iPhone browsers (Safari engine, also Brave/Chrome on iOS) zoom in on any text box under 16px.
   Keep every text box at 16px instead of turning zoom off (zoom stays available for people who need it). */
input[type=text], input:not([type]), textarea { font-size: 16px; }
