@font-face {
  font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/geist-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --r: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root, :root[data-theme="dark"] {
  --bg: #0f0f0f;
  --surface: #181818;
  --surface-2: #272727;
  --line: #3f3f3f;
  --line-strong: #606060;
  --hover: #3a3a3a;
  --text: #f1f1f1;
  --muted: #aaaaaa;
  --accent: #ff0000;
  --accent-hover: #ff3333;
  --accent-text: #ff0000;
  --ok: #3ddc84;
  --on-ok: #0c1a12;
  --bad: #ff5d5d;
  --heart-off: #3f3f3f;
  --scrim: rgba(0, 0, 0, .88);
  --side-shadow: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f6f6;
  --surface: #ffffff;
  --surface-2: #ececec;
  --line: #d6d6d6;
  --line-strong: #9a9a9a;
  --hover: #e0e0e0;
  --text: #0f0f0f;
  --muted: #5f5f5f;
  --accent: #e00000;
  --accent-hover: #c40000;
  --accent-text: #cc0000;
  --ok: #17a05a;
  --on-ok: #ffffff;
  --bad: #d92d20;
  --heart-off: #d2d2d2;
  --scrim: rgba(246, 246, 246, .92);
  --side-shadow: rgba(0, 0, 0, .18);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  transition: background-color .25s, color .25s;
  background: var(--bg); color: var(--text); min-height: 100dvh; line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* invite banner (outside Discord only), in Discord's brand colours: blurple #5865F2 and white */
.invite { display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px 16px; background: #5865F2; color: #fff; font-size: 14px; }
.invite-logo { width: 28px; height: 28px; flex: none; }
.invite-text { flex: 0 1 auto; text-align: left; }
.invite-actions { display: flex; align-items: center; gap: 12px; }
.invite .btn.primary { background: #fff; border-color: #fff; color: #5865F2; }
@media (hover: hover) { .invite .btn.primary:hover { background: #EBEDFF; border-color: #EBEDFF; } }
.invite-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.invite-link:hover { text-decoration-thickness: 2px; }
.invite-x { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: rgba(255, 255, 255, .85); }
.invite-x svg { width: 16px; height: 16px; }
@media (hover: hover) { .invite-x:hover { background: rgba(255, 255, 255, .18); color: #fff; } }

/* wide screens: the page is a column with a soft shadow to the left and right, on a tiled background that scrolls forever.
   Put the image at assets/background.webp and set --bg-w / --bg-h to the size one tile should have on screen. */
:root { --bg-w: 997px; --bg-h: 924px; --bg-speed: 60s; --bg-opacity: 1; }
.scenery { display: none; }
@media (min-width: 1100px) {
  .scenery {
    display: block; position: fixed; z-index: -1; pointer-events: none;
    left: calc(var(--bg-w) * -1); top: calc(var(--bg-h) * -1); width: calc(100% + var(--bg-w)); height: calc(100% + var(--bg-h));
    background: url(/assets/background.webp) 0 0 / var(--bg-w) var(--bg-h) repeat; opacity: var(--bg-opacity);
    will-change: transform; animation: scenery var(--bg-speed) linear infinite;
  }
  .page {
    max-width: 980px; min-height: 100dvh; margin: 0 auto; background: var(--bg);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    box-shadow: -14px 0 28px -10px var(--side-shadow), 14px 0 28px -10px var(--side-shadow);
  }
}
@keyframes scenery { to { transform: translate(var(--bg-w), var(--bg-h)); } }

/* legal pages and footer */
.legal { padding-bottom: 64px; max-width: 760px; }
.legal h1 { font-size: clamp(28px, 5vw, 38px); letter-spacing: -.03em; margin: 8px 0 6px; }
.legal h2 { font-size: 20px; letter-spacing: -.02em; margin: 30px 0 8px; }
.legal h3 { font-size: 16px; margin: 18px 0 6px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin: 5px 0; }
.legal a { color: var(--accent-text); }
.legal code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-size: .92em; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.foot { max-width: 920px; margin: 0 auto; padding: 0 16px 28px; text-align: center; color: var(--muted); font-size: 13px; }
.foot a { color: inherit; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-bottom: 12px; }
.social a { padding: 6px 6px; color: var(--text); transition: color .2s }
@media (hover: hover) { .social a:hover { color: var(--accent); } }
.discord .foot { display: none; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 920px; margin: 0 auto; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: inherit; text-decoration: none; }
.top-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); transition: transform .12s, background .2s; }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; color: inherit; background: var(--surface-2); border: 1px solid var(--line); transition: transform .12s, background .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.small { padding: 9px 14px; font-size: 14px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: scale(.97); }
@media (hover: hover) {
  .btn:hover { background: var(--hover); }
  .btn.primary:hover { background: var(--accent-hover); }
  .icon-btn:hover { background: var(--surface-2); }
}

/* lives and status row */
.status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.meta { color: var(--muted); font-size: 14px; min-height: 1.4em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lives { display: flex; gap: 4px; flex: none; }
.heart { width: 22px; height: 22px; fill: currentColor; transition: color .3s; }
.heart.full { color: var(--accent); }
.heart.lost { color: var(--heart-off); }
.heart.break { animation: heartbreak .7s var(--ease); }

/* layout */
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px 48px; }

/* frames */
.frames { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.frame { position: relative; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border-radius: 12px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.frame img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 100% 0 0); }
.frame.in { animation: none; background: var(--surface); }
.frame.in img { animation: wipe .8s var(--ease) both; animation-delay: calc(var(--i) * 150ms); }
.frame .tag { color: #fff; position: absolute; left: 8px; bottom: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: rgba(0, 0, 0, .75); font-size: 12px; font-weight: 600; display: grid; place-items: center; opacity: 0; animation: fade .4s both; animation-delay: calc(var(--i) * 150ms + 600ms); }

/* progress steps: each one is a button that reopens its question */
.steps { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps li { min-width: 0; }
.step { width: 100%; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-align: left; min-width: 0; min-height: 52px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .3s, background .3s, transform .12s; overflow: hidden; }
.step:disabled { cursor: default; }
.step:not(:disabled):active { transform: scale(.98); }
@media (hover: hover) { .step:not(:disabled):hover { border-color: var(--line-strong); } }
.step .dot { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-2); transition: background .3s, transform .4s var(--ease); }
.step .lbl { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step .ans { grid-column: 2; min-height: 18px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step .ans img { display: inline-block; height: 18px; aspect-ratio: 16 / 9; border-radius: 3px; object-fit: cover; vertical-align: middle; }
.step.live .dot { background: var(--accent); color: #fff; }
.step.done .dot { background: var(--ok); color: var(--on-ok); transform: scale(1.08); }
.step.fail { border-color: var(--bad); }
.step.fail .dot { background: var(--bad); color: #fff; }
.step.sel, .step.sel.fail { border-color: var(--text); background: var(--surface-2); }
.step.sel.live { border-color: var(--accent); }

/* stage */
.stage { transition: opacity .25s, transform .25s; }
.stage.leaving { opacity: 0; transform: translateY(-8px); }
.prompt { font-size: clamp(20px, 3.4vw, 26px); font-weight: 650; letter-spacing: -.02em; margin-bottom: 14px; animation: fade .4s both; }
.options { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.opt { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: inherit; animation: pop .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); transition: transform .15s, border-color .2s, background .2s, opacity .3s, filter .3s; }
.opt:disabled { cursor: default; }
@media (hover: hover) { .opt:not(:disabled):hover { transform: translateY(-3px); border-color: var(--line-strong); } }
.opt:not(:disabled):active { transform: scale(.98); }
.opt.correct { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); animation: ring .9s var(--ease); }
.opt.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); animation: shake .45s; }
.opt.static, .opt.static.correct, .opt.static.wrong { animation: none; }
.opt.dim { opacity: .5; }
.opt.gone { opacity: .3; filter: grayscale(1); pointer-events: none; animation: none; }

.o1 .cell { position: relative; flex: 0 0 calc(25% - 9px); display: flex; }
.o1 .opt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; text-align: center; font-weight: 600; }
.avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.avatar.sm { width: 40px; height: 40px; }
.o2 .opt { flex: 0 0 calc(33.333% - 8px); aspect-ratio: 16 / 9; padding: 0; }
.o2 .opt img { width: 100%; height: 100%; object-fit: cover; }
.o3 .opt { flex: 1 1 100%; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; font-weight: 500; }
.letter { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--muted); }

@media (max-width: 600px) {
  .top { padding: 10px 12px; }
  .brand span { font-size: 16px; }
  .icon-btn { width: 38px; height: 38px; }
  .wrap { padding: 0 12px 40px; }
  .heart { width: 18px; height: 18px; }
  .lives { gap: 3px; }
  .frames { gap: 6px; }
  .frame { border-radius: 10px; }
  .steps { gap: 6px; margin: 14px 0; }
  .step { grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 4px; min-height: 0; padding: 8px 10px; }
  .step .dot { grid-row: auto; width: 22px; height: 22px; font-size: 12px; }
  .step .lbl { font-size: 13px; }
  .step .ans { grid-column: 1 / -1; min-height: 16px; }
  .options { gap: 10px; }
  .o1 .cell { flex-basis: calc(50% - 5px); }
  .o1 .opt { gap: 8px; padding: 14px 8px; }
  .o1 .opt span { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
  .avatar { width: 56px; height: 56px; }
  .stats { padding: 14px 12px; }
  .chart { gap: 5px; }
  .arc-list { grid-template-columns: 1fr; }
  .o2 .opt { flex-basis: calc(50% - 5px); }
  .o3 .opt { padding: 14px; min-height: 56px; }
  .o3 .opt.correct, .o3 .opt.wrong { padding-right: 44px; }
  .actions .btn { flex: 1 1 140px; }
  .score .num { font-size: 48px; }
  .answer .info { flex-wrap: wrap; }
  .answer .info > div { min-width: 0; flex: 1 1 120px; }
  .ov-card { padding: 22px 16px; }
}
@media (max-width: 360px) { #testBtn { display: none; } }
@media (max-width: 600px) and (orientation: landscape) { .frames { grid-template-columns: repeat(4, 1fr); } }

/* review of an earlier step */
.review-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.review-actions { display: flex; margin-top: 14px; }

/* result */
.result { animation: pop .6s var(--ease) both; }
.result h2 { font-size: clamp(26px, 5vw, 36px); letter-spacing: -.03em; }
.result .sub { color: var(--muted); margin: 4px 0 16px; }
.answer { display: block; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s; }
@media (hover: hover) { .answer:hover { border-color: var(--line-strong); } }
.answer > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.answer .info { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.answer strong { display: block; font-weight: 600; }
.answer small { color: var(--muted); }
.answer .watch { margin-left: auto; flex: none; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.score { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 4px; }
.score .num { font-size: 56px; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.score small { color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.next { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }

/* bell next to the countdown: asks for notifications, filled red when they are on */
.bell { position: relative; width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); transition: transform .12s, background .2s, color .2s, border-color .2s; }
.bell svg { width: 16px; height: 16px; }
.bell .bell-on { display: none; }
.bell.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.bell.on .bell-off { display: none; }
.bell.on .bell-on { display: block; }
.bell.blocked { opacity: .55; }
.bell.blocked::after { content: ""; position: absolute; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(-45deg); }
.bell:disabled { opacity: .6; cursor: default; }
.bell:not(:disabled):active { transform: scale(.92); }
@media (hover: hover) { .bell:not(.on):not(:disabled):hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); } }
.nm-icon { width: 54px; height: 54px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.nm-icon svg { width: 26px; height: 26px; }
.next b { color: var(--text); font-variant-numeric: tabular-nums; }

/* overlay, lightbox, toast */
.overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: var(--scrim); backdrop-filter: blur(6px); animation: fade .25s both; }
.overlay[hidden], .lightbox[hidden] { display: none; }
.ov-card { width: min(420px, 100%); padding: 26px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.ov-card h2 { font-size: 20px; margin: 14px 0 4px; letter-spacing: -.02em; }
.ov-card p { color: var(--muted); min-height: 1.5em; font-size: 15px; }
.spinner { width: 38px; height: 38px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--accent); animation: spin 1.8s linear infinite; }
.bar { height: 6px; margin-top: 18px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .6s var(--ease); }
.ov-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.ov-actions:empty { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .94); animation: fade .2s both; cursor: zoom-out; }
.lightbox { touch-action: pinch-zoom pan-y; }
.lightbox img { max-height: 92dvh; border-radius: 10px; animation: pop .35s var(--ease) both; user-select: none; -webkit-user-drag: none; }
.lightbox img.slide-next { animation: slide-next .28s var(--ease) both; }
.lightbox img.slide-prev { animation: slide-prev .28s var(--ease) both; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: none; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); cursor: pointer; transition: background .2s, transform .12s; }
.lb-nav svg { width: 22px; height: 22px; }
.lb-nav.prev { left: 16px; }
.lb-nav.next { right: 16px; }
.lb-nav:active { transform: translateY(-50%) scale(.92); }
@media (hover: hover) and (pointer: fine) {
  .lb-nav { display: grid; }
  .lb-nav:hover { background: rgba(255, 255, 255, .26); }
}
.lb-count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 99px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 50; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: .3s var(--ease); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* motion */
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slide-next { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes slide-prev { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); transform: scale(1); } 40% { transform: scale(1.04); } 100% { box-shadow: 0 0 0 16px rgba(61, 220, 132, 0); transform: scale(1); } }
@keyframes heartbreak { 0% { transform: scale(1); } 25% { transform: scale(1.4) rotate(-8deg); } 50% { transform: scale(.8) rotate(8deg); } 100% { transform: scale(1); } }

/* answer buttons while guessing */
.opt.picked { border-color: var(--text); animation: picked .8s ease-in-out infinite; }
.options.waiting .opt:not(.picked) { opacity: .55; }
.opt.correct::after, .opt.wrong::after {
  content: "\2713"; position: absolute; top: 8px; right: 8px; z-index: 1; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; line-height: 1; pointer-events: none;
  background: var(--ok); color: var(--on-ok); animation: badge .5s var(--ease) .1s both;
}
.opt.wrong::after { content: "\2715"; background: var(--bad); color: #fff; }
.o3 .opt::after { top: 50%; margin-top: -11px; right: 12px; }
.o3 .opt.correct, .o3 .opt.wrong { padding-right: 46px; }
.opt.static::after { animation: none; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: 0; pointer-events: none; animation: ripple .6s ease-out; }

/* channel link in the corner of a channel option (the corner opposite the ✓ / ✕ badge) */
.chan-link { position: absolute; top: 6px; left: 6px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; animation: fade .4s both; animation-delay: calc(var(--i) * 70ms + 300ms); transition: color .2s, border-color .2s, transform .12s; }
.chan-link svg { width: 14px; height: 14px; }
.chan-link:active { transform: scale(.92); }
@media (hover: hover) { .chan-link:hover { color: var(--text); border-color: var(--line-strong); } }

.copy-box { width: 100%; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; resize: none; }

/* Discord activity */
/* Discord draws its own controls over the top of the activity, so leave room there */
.discord .page { padding-top: calc(env(safe-area-inset-top) + 44px); }
.discord .top { padding: 8px 12px; }
.discord .wrap { padding-bottom: 24px; }
.group { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.group-title { font-size: 16px; letter-spacing: -.01em; margin-bottom: 10px; }
.group-title .streak { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.gp-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.gp { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gp-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.gp-name { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.gp-sq { display: flex; gap: 8px; flex: none; }
.sq-group { display: flex; gap: 3px; }
.sq { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--line); }
.sq.ok { background: var(--ok); border-color: var(--ok); }
.sq.bad { background: var(--bad); border-color: var(--bad); }
.sq.now { border-style: dashed; border-color: var(--accent); }
@media (max-width: 420px) { .gp-sq { gap: 5px; } .sq { width: 10px; height: 10px; } }
.group .review-note a { color: var(--accent-text); }

/* score comparison */
.stats { margin: 22px 0 4px; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.stats-title { font-size: 14px; font-weight: 600; color: var(--muted); }
.pct-line { margin: 4px 0 18px; font-size: clamp(19px, 3.2vw, 24px); font-weight: 650; letter-spacing: -.02em; }
.pct { color: var(--accent-text); font-variant-numeric: tabular-nums; }
.chart { display: flex; gap: 8px; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.plot { position: relative; height: 132px; border-bottom: 1px solid var(--line-strong); }
.fill { position: absolute; left: 12%; right: 12%; bottom: 0; display: block; border-radius: 6px 6px 0 0; background: var(--line-strong); min-height: 3px; height: max(3px, calc((100% - 22px) * var(--p))); animation: grow .9s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.col.you .fill { background: var(--accent); }
.cnt { position: absolute; bottom: 100%; left: -20%; right: -20%; padding-bottom: 3px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; animation: fade .4s both; animation-delay: calc(var(--i) * 90ms + 750ms); }
.col.you .cnt { color: var(--text); }
.x { min-height: 2.8em; margin-top: 6px; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.x small { display: block; font-size: 12px; font-weight: 700; color: var(--accent-text); }
.col.you .x { color: var(--text); font-weight: 700; }
.stats-foot { margin-top: 6px; color: var(--muted); font-size: 13px; }
.stats:not(.go) .fill, .stats:not(.go) .cnt { animation-play-state: paused; }
.stats.still .fill, .stats.still .cnt { animation: none; }

/* earlier days */
.archive { margin-top: 18px; }
.arc-title { font-size: 18px; letter-spacing: -.02em; margin-bottom: 10px; }
.arc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.arc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; animation: pop .4s var(--ease) both; animation-delay: calc(var(--i) * 40ms); transition: transform .15s, border-color .2s; }
.arc:active { transform: scale(.98); }
@media (hover: hover) { .arc:hover { transform: translateY(-2px); border-color: var(--line-strong); } }
.arc.cur { border-color: var(--text); }
.arc-date { font-weight: 600; }
.arc-state { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.arc.won .arc-state { color: var(--ok); font-weight: 600; }
.arc.lost .arc-state { color: var(--bad); }
.arc.new .arc-state { color: var(--accent-text); font-weight: 600; }

@keyframes picked { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--text) 30%, transparent); } 50% { transform: scale(.97); box-shadow: 0 0 0 6px transparent; } }
@keyframes badge { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1); } }
@keyframes ripple { from { opacity: .22; transform: scale(0); } to { opacity: 0; transform: scale(1); } }
@keyframes grow { from { height: 0; } }