/* Atkinson Hyperlegible — the Braille Institute's legibility typeface (self-
   hosted under public/fonts, SIL OFL). Primary UI font; the system stack stays
   as the fallback (and shows during swap). Two static weights cover the app's
   scale via ranges: 400–500 → regular, 600–800 → bold. The latin-ext subset is
   fetched only when accented characters (names, country names) appear. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-latin-400.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-latin-ext-400.woff2") format("woff2");
  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: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-latin-700.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-latin-ext-700.woff2") format("woff2");
  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;
}

:root {
  /* Neutrals carry a low chroma toward the coral brand hue (a warm near-black
     shell), so the surfaces feel like this game rather than a stock dark theme.
     All text/text-dim pairs stay ≥4.5:1 (verified). */
  --bg: #13100e;
  --bg-elev: #1c1815;
  --bg-elev-2: #262019;
  --border: #40372f;
  --text: #ece8e4;
  --text-dim: #a89f97;
  /* Brand accent — a hot red-orange coral (the game's competitive energy), not a
     productivity blue. Bright enough to read as TEXT on the dark shell (≥4.5:1);
     text that sits ON an accent fill uses --on-accent (dark ink here) since white
     wouldn't clear 4.5:1 on a coral this bright. */
  --accent: #ff6b4a;
  --accent-press: #f5563b;
  --on-accent: #2a0f06;
  --accent-soft: #38221b; /* dark coral wash for accent pills (classification chip) */
  --danger: #ff6b6b;
  --success: #3fb950;
  /* Reroll's "available" colour — a warm amber, a distinct hue from the coral
     accent so an unlocked reroll still stands out. Uses dark text on fill. */
  --reroll: #f5a524;
  --reroll-press: #e0921a;
  --header-bg: rgba(19, 16, 14, 0.85);
  --radius: 12px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --pad: 14px;
  --maxw: 720px;

  /* Fixed type scale (~1.08–1.15 steps) so sizes read as a system, not ad-hoc.
     Hero headings use their own clamp; emoji/glyph sizes stay literal. */
  --fs-2xs: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-md: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;

  /* Vertical rhythm between major sections. */
  --space-section: 34px;

  /* Classic tier palette, S (best) → F (worst) */
  --tier-S: #ff7f7f;
  --tier-A: #ffbf7f;
  --tier-B: #ffdf80;
  --tier-C: #ffff7f;
  --tier-D: #bfff7f;
  --tier-E: #7fffbf;
  --tier-F: #7fbfff;
}

/* Light theme. The same variable overrides apply in two situations:
   1. the user explicitly chose light ([data-theme="light"]), or
   2. the OS prefers light and the user hasn't overridden to dark.
   The tier palette is intentionally left untouched — it reads well on both. */
:root[data-theme="light"] {
  --bg: #f7f5f4;
  --bg-elev: #ffffff;
  --bg-elev-2: #efeae8;
  --border: #d5cbc4;
  --text: #201b18;
  --text-dim: #6a5f58;
  /* Deeper coral in light mode: it must clear 4.5:1 as TEXT on white/near-white
     surfaces, so it runs darker than the dark-theme accent; white sits cleanly
     on it as a fill, so --on-accent is white here. */
  --accent: #bd3318;
  --accent-press: #a52c11;
  --on-accent: #ffffff;
  --accent-soft: #f9e2da; /* light coral wash for accent pills (classification chip) */
  --danger: #d92d20;
  --success: #1a7f37;
  --header-bg: rgba(247, 245, 244, 0.85);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f5f4;
    --bg-elev: #ffffff;
    --bg-elev-2: #efeae8;
    --border: #d5cbc4;
    --text: #201b18;
    --text-dim: #6a5f58;
    --accent: #bd3318;
    --accent-press: #a52c11;
    --on-accent: #ffffff;
    --accent-soft: #f9e2da;
    --danger: #d92d20;
    --success: #1a7f37;
    --header-bg: rgba(247, 245, 244, 0.85);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Respect notches / home indicators on phones */
  padding-bottom: env(safe-area-inset-bottom);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---- Header ---- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.app-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: var(--radius-xs);
  background: var(--tier-S);
  color: #1a0d0d;
  font-weight: 800;
}
.brand-logo { height: 28px; width: auto; display: block; }
.brand-name { font-weight: 700; letter-spacing: 0.2px; }
.today-meta { display: flex; align-items: center; gap: 10px; }

/* Profile chip (top-right): country flag + display name, opens the editor. */
.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 170px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}
.profile-btn:hover { filter: brightness(1.12); }
.profile-btn:active { transform: scale(0.97); }
.profile-btn.is-empty { color: var(--text-dim); font-weight: 500; }
.profile-flag { font-size: 1.05rem; line-height: 1; }
.profile-flag[hidden] { display: none; }
.profile-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-name[hidden] { display: none; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}
.theme-toggle:hover { filter: brightness(1.12); }
.theme-toggle:active { transform: scale(0.94); }

/* ---- Category head (hero) ---- */
/* A vertical hero: eyebrow row (kicker · hairline · live-countdown pill), then a
   big category title, then a date + special-day "classification" pill. */
.category-head {
  padding-top: 10px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}
.hero-kicker {
  flex: none;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.countdown-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.cd-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.cd-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-dim);
}
.countdown {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
/* The countdown is about the live daily reset — irrelevant on a shared preview. */
body.preview-mode .hero-eyebrow { display: none; }

.hero-title {
  margin: 0;
  font-size: clamp(2.25rem, 9vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.today-date {
  color: var(--text-dim);
  font-size: var(--fs-md);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Special-day "classification" pill: soft-accent wash + an accent dot. The dot is
   a ::before so renderCategoryHead's textContent (label only) never wipes it. */
.special-day {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.special-day::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}
.special-day[hidden] { display: none; }

/* ---- Tier list ---- */
/* The actions row (Yesterday / Share / Reset) sits below the hero meta with a
   bit of air, then the board. */
.tierlist { margin-top: 10px; }
.tierlist-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
/* Keep Share + Reset pinned to the right edge, even when the row wraps. */
.toolbar-actions { display: flex; gap: 8px; margin-left: auto; }
/* Per the hero design: the Yesterday link is the accent-coloured lead; Share /
   Reset are quieter pill buttons to its right. */
.tierlist-toolbar .link-btn {
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.tierlist-toolbar .link-btn:hover { color: var(--accent-press); }
.tierlist-toolbar .btn { border-radius: var(--radius); font-weight: 700; }
/* "Yesterday's results" is a link, not a button: it opens the previous day's
   community-average board (a view), so it reads as navigation and stands apart
   from the board-action buttons (Share / Reset). Styled via .link-btn, shared
   with the footer's twin entry point. */

.tiers {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  /* Subtle lift so the board reads as the centerpiece (holds in both themes). */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 30px -18px rgba(0, 0, 0, 0.7);
}
.tier-row {
  display: flex;
  align-items: stretch;
  min-height: 64px;
  border-bottom: 1px solid var(--border);
}
.tier-row:last-child { border-bottom: 0; }
.tier-label {
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: var(--fs-lg);
  color: #15171c;
}
.tier-dropzone {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  min-height: 64px;
  align-content: flex-start;
}

/* ---- Item chips ---- */
.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  min-height: 52px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  /* A little depth so the pieces feel like pressable tiles, not flat swatches. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.28);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none; /* let SortableJS own touch gestures */
  text-align: center;
}
.chip:active { cursor: grabbing; }
/* Desktop hover cue so the pieces read as interactive (touch has no hover). */
.chip:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 5px 12px rgba(0, 0, 0, 0.4);
}
.chip .emoji { font-size: 1.5rem; line-height: 1; }
.chip .label {
  font-size: var(--fs-2xs);
  color: var(--text);
  margin-top: 2px;
  max-width: 54px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip.sortable-ghost { opacity: 0.4; }
.chip.sortable-chosen { border-color: var(--accent); }
.chip.sortable-drag { box-shadow: 0 8px 24px rgba(0,0,0,0.5); }

/* ---- Pool ---- */
.pool-wrap { margin-top: 12px; position: relative; }
.pool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.pool-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-dim);
}
.submit-btn { flex: 0 0 auto; }
body.preview-mode .submit-btn { display: none; }
/* Greyed out once the current board matches what was last submitted — there's
   nothing new to send. Re-enabled (by updateSubmitAttention) after any edit. */
.submit-btn:disabled,
.submit-btn.is-submitted {
  background: var(--bg-elev-2);
  border-color: var(--border);
  color: var(--text-dim);
  cursor: default;
  filter: none;
  animation: none;
}
.submit-btn:disabled:hover,
.submit-btn.is-submitted:hover { filter: none; }
.submit-btn:disabled:active,
.submit-btn.is-submitted:active { transform: none; }
/* Drawn attention once the whole board is filled and there are unsubmitted
   changes (toggled by updateSubmitAttention in app.js). */
/* Pulse a few times to catch the eye, then settle into a static accent ring —
   so the board doesn't have two buttons pulsing forever (Submit + Reroll). */
.submit-btn.is-ready {
  animation: submit-pulse 1.5s ease-in-out 3;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent);
}
@keyframes submit-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); transform: scale(1); }
  60%  { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .submit-btn.is-ready {
    animation: none;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}
.pool {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  min-height: 72px;
}
/* Reserve a strip at the bottom so chips never sit under the corner Reroll
   button. Only when a reroll is actually available (toggled in app.js), so
   short categories without rerolls keep a tight pool. */
.pool-wrap.has-reroll .pool { padding-bottom: 48px; }

/* The Reroll button + its info widget are anchored to the bottom-right corner
   of the pool box. */
.reroll-cluster {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* When the reroll button hides (every item revealed, or a read-only preview) the
   lone info icon has nothing left to explain — hide the whole cluster with it. */
.reroll-cluster:has(.reroll-btn[hidden]) { display: none; }
body.preview-mode .reroll-cluster { display: none; }
.reroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
}
/* Sits on the pool's surface, so give the info icon a matching backdrop rather
   than the field's transparent one. */
.reroll-info-btn { background: var(--bg-elev); }
.reroll-icon {
  display: block;
  flex: 0 0 auto;
  transition: transform 0.4s ease;
}
/* `display: inline-flex` above would otherwise beat the UA [hidden] rule, so the
   button never hid once all items were revealed — make `hidden` win again. */
.reroll-btn[hidden] { display: none; }
body.preview-mode .reroll-btn { display: none; }

/* Unlocked: filled amber so it clearly stands out and invites a click. The icon
   spins on hover and a soft glow pulses to draw the eye. */
.reroll-btn:not(:disabled) {
  background: var(--reroll);
  border-color: var(--reroll);
  color: #1b1f27;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--reroll) 40%, transparent);
  animation: reroll-glow 2.2s ease-in-out infinite;
}
.reroll-btn:not(:disabled):hover { filter: brightness(1.06); }
.reroll-btn:not(:disabled):active { background: var(--reroll-press); }
.reroll-btn:not(:disabled):hover .reroll-icon { transform: rotate(-180deg); }
@keyframes reroll-glow {
  0%, 100% { box-shadow: 0 2px 10px color-mix(in srgb, var(--reroll) 35%, transparent); }
  50%      { box-shadow: 0 2px 16px color-mix(in srgb, var(--reroll) 70%, transparent); }
}

/* Locked until enough of the base set is ranked — muted, flat, clearly inert. */
.reroll-btn:disabled,
.reroll-btn.is-locked {
  background: var(--bg-elev-2);
  border-color: var(--border);
  color: var(--text-dim);
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  animation: none;
  filter: none;
}
.reroll-btn:disabled:hover,
.reroll-btn.is-locked:hover { filter: none; }
.reroll-btn:disabled:active,
.reroll-btn.is-locked:active { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reroll-icon { transition: none; }
  .reroll-btn:not(:disabled) { animation: none; }
  .reroll-btn:not(:disabled):hover .reroll-icon { transform: none; }
}

/* Slot-machine flash on chips revealed by a reroll pull. */
.chip--fresh { animation: chip-fresh 0.45s ease-out; }
@keyframes chip-fresh {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .chip--fresh { animation: none; }
}

/* ---- Buttons ---- */
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.12s ease, background 0.12s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-press); }
.btn-ghost { background: transparent; }
/* Disabled buttons (e.g. Confirm before a name is typed) read as inert: greyed
   out, no hover/press feedback, not clickable. */
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { filter: none; }
.btn:disabled:active { transform: none; }

/* One consistent keyboard-focus ring across every control — several buttons had
   none, while chips/rows/switches already used this exact treatment. */
.btn:focus-visible,
.sort-opt:focus-visible,
.theme-toggle:focus-visible,
.profile-btn:focus-visible,
.reroll-btn:focus-visible,
.reroll-info-btn:focus-visible,
.info-btn:focus-visible,
.menu-btn:focus-visible,
.vote-btn:focus-visible,
.react-btn:focus-visible,
.reply-btn:focus-visible,
.ranking-btn:focus-visible,
.ranking-dialog-close:focus-visible,
.link-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Forum ---- */
.forum { margin-top: var(--space-section); }
.forum-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.forum-head h2 { font-size: var(--fs-lg); margin: 0; }
.count {
  color: var(--text-dim);
  font-size: var(--fs-md);
  font-weight: 500;
}
.sort-toggle {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}
.sort-opt {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.sort-opt:hover:not(.is-active) { color: var(--text); }
/* Selected segment reads as a muted, on-brand pill — a soft coral wash with
   normal text (the same recipe as the classification chip), deliberately NOT the
   solid --accent fill the CTA buttons (Suggest, Post) use, so the Top/New toggle
   isn't mistaken for a call to action. */
.sort-opt.is-active { background: var(--accent-soft); color: var(--text); }

.composer {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 18px;
}
.body-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  padding: 9px 10px;
  font: inherit;
  font-size: 16px; /* >=16px stops iOS Safari from zooming on focus */
  resize: vertical;
  min-height: 64px;
}
.body-input:focus {
  outline: none;
  border-color: var(--accent);
}
.composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}
.error { color: var(--danger); font-size: var(--fs-sm); margin-right: auto; }
.composer-identity { font-size: var(--fs-sm); color: var(--text-dim); }
.identity-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.identity-btn:hover { color: var(--accent); }

/* ---- Comments ---- */
.comments { display: flex; flex-direction: column; gap: 4px; }
.comment {
  display: flex;
  gap: 1px;
  padding: 10px 0;
  /* Keep a notification-targeted comment clear of the sticky header when we
     scroll it into view (see focusComment in app.js). */
  scroll-margin-top: 70px;
  scroll-margin-bottom: 24px;
  border-radius: var(--radius-xs);
}
/* Brief highlight on the comment a tapped notification opened. */
.comment-flash {
  animation: comment-flash 2.2s ease-out;
}
@keyframes comment-flash {
  0%, 30% { background: color-mix(in srgb, var(--accent) 24%, transparent); }
  100% { background: transparent; }
}
.comment-thread { /* nested replies: line flush with the parent comment's left edge */
  margin-left: 0;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}
.votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 24px;
}
.vote-btn {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px;
  border-radius: var(--radius-xs);
}
.vote-btn:hover { background: var(--bg-elev-2); color: var(--text); }
.vote-btn.up.is-active { color: var(--success); }
.vote-btn.down.is-active { color: var(--danger); }
/* The score doubles as a button: click it to see who upvoted / downvoted. */
.score {
  border: 0;
  background: transparent;
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: var(--fs-md);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
}
.score:hover { background: var(--bg-elev-2); }
.comment-body { flex: 1; min-width: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  margin-bottom: 2px;
}
.comment-author { color: var(--text); font-weight: 600; }
.comment-text { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Light-grey marker on a comment the author has edited. */
.comment-edited { color: var(--text-dim); font-size: 0.82em; font-weight: 400; }
/* Hidden while the inline editor is open (.comment-actions is display:flex, so it
   needs an explicit rule to honour the hidden attribute). */
.comment-text[hidden],
.comment-actions[hidden] { display: none; }
/* Soft-deleted comment kept only to anchor its replies. */
.comment.is-deleted { padding-left: 0; }
.comment-tombstone { color: var(--text-dim); font-style: italic; }

/* Auto-hidden (reported) comment: collapsed behind a tap-to-reveal curtain. */
.comment.is-flagged { padding-left: 0; }
.comment-curtain {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35rem 0.6rem;
  border: 1px dashed var(--border, #444);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.9em;
  cursor: pointer;
}
.comment-curtain:hover { background: var(--bg-elev-2); color: var(--text); }
.comment-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.reply-btn,
.ranking-btn,
.react-btn {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
}
.reply-btn:hover,
.ranking-btn:hover,
.react-btn:hover { color: var(--text); }
.react-btn { color: var(--accent); }
/* The author's "delete" meatball menu sits at the top right, on the name/time
   line (margin-left:auto pushes it there). The negative vertical margin keeps the
   tappable padding from stretching that line's height. */
.menu-btn {
  margin: -4px 0 -4px auto;
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-xs);
}
.menu-btn:hover { color: var(--text); background: var(--bg-elev-2); }
.ranking-btn .rcount {
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}
/* Inline "Rank:" tier picker, shown on a suggestion this device hasn't ranked
   yet (it stands in for the old "Vote" button). Once ranked, the action row is
   rebuilt as the "Ranked: X" + "See Rankings" pair — see suggestionActionsHtml. */
.rank-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.rank-inline-label {
  color: var(--text-dim);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.rank-chip {
  appearance: none;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: #15171c;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}
.rank-chip:hover { filter: brightness(1.08); }
.rank-chip:active { transform: translateY(1px); }
.reply-form { margin-top: 8px; }
.reply-form .body-input { font-size: 16px; }
.reply-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 6px;
}

.empty { color: var(--text-dim); text-align: center; padding: 24px 0; }

/* ---- Suggest an item ---- */
.suggest { margin-top: var(--space-section); }
.suggest[hidden] { display: none; }

/* The form *is* the text field: a bordered box holding the input plus the info
   widget and Suggest button, all tucked inside. */
.suggest-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 5px 4px 12px;
}
.suggest-form:focus-within { border-color: var(--accent); }
.suggest-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 7px 0;
  font: inherit;
  font-size: 16px; /* >=16px stops iOS Safari from zooming on focus */
}
.suggest-input:focus { outline: none; }
.suggest-submit { flex: 0 0 auto; padding: 7px 14px; border-radius: var(--radius-xs); }
.suggest-error { display: block; margin-top: 8px; }

/* Small "ⓘ" widget inside the field: pops the help text up (see .info-popover). */
.info-btn {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font-size: var(--fs-xs);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.info-btn:hover { color: var(--text); border-color: var(--text-dim); }
.info-btn[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }

.info-popover {
  position: fixed;
  z-index: 61;
  max-width: 260px;
  padding: 10px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color: var(--text-dim);
  font-size: var(--fs-md);
  line-height: 1.45;
}

/* ---- Suggestion comments ---- */
.comment.is-suggestion {
  /* Marked by a subtle accent surface wash + the SUGGESTION pill, not a colored
     side-stripe (an absolute ban). */
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 2px 0;
}
.suggest-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 7px;
  border-radius: 999px;
}
.suggest-item { font-weight: 700; font-size: var(--fs-base); color: var(--text); }

/* ---- Votes dialog (tier-reaction breakdown for a suggestion) ---- */
.dist { display: flex; flex-direction: column; gap: 6px; }
.dist-row { display: flex; align-items: center; gap: 10px; }
.dist-tier {
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: var(--radius-xs);
  font-weight: 800;
  color: #15171c;
}
.dist-bar {
  flex: 1;
  height: 14px;
  background: var(--bg-elev-2);
  border-radius: 999px;
  overflow: hidden;
}
.dist-fill { display: block; height: 100%; border-radius: 999px; transition: width 0.2s ease; }
.dist-count {
  flex: 0 0 24px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: var(--fs-md);
}
.vote-log { margin-top: 18px; }
.vote-log-title {
  margin: 0 0 4px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-dim);
}
.vote-log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
}
.vote-voter {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vote-tier {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--radius-xs);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: #15171c;
}
.vote-time { flex: 0 0 auto; color: var(--text-dim); font-size: var(--fs-xs); }

/* ---- Who-voted dialog (comment up/down votes) ---- */
.cv-groups { display: flex; flex-direction: column; gap: 20px; }
.cv-group .vote-log-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.cv-arrow { font-size: var(--fs-md); line-height: 1; }
.cv-arrow.up { color: var(--success); }
.cv-arrow.down { color: var(--danger); }
.cv-empty { margin: 8px 0 0; }

/* ---- Yesterday's results (breakdown below the average board) ---- */
.yr-section-title {
  margin: 0 0 4px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
}
.yr-breakdown { margin-top: 20px; }
.yr-legend { margin: 0 0 12px; font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.4; }
.yr-legend strong { color: var(--text); }
.yr-items { display: flex; flex-direction: column; gap: 9px; }
.yr-item { display: flex; align-items: center; gap: 10px; }
.yr-name {
  flex: 0 0 38%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: var(--fs-md);
}
.yr-name .emoji { flex: 0 0 auto; }
.yr-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yr-flag {
  flex: 0 0 auto;
  font-size: var(--fs-md);
  line-height: 1;
}
/* The fractional-position track: a band for the spread, a marker for the mean.
   Kept rectangular (near-square corners) so the spread band is cut off straight
   at either edge rather than picking up a rounded end from the track. */
.yr-scale {
  position: relative;
  flex: 1;
  height: 14px;
  background: var(--bg-elev-2);
  border-radius: 2px;
  overflow: hidden;
}
.yr-spread {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--text);
  opacity: 0.14;
}
.yr-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  transform: translateX(-50%);
}
.yr-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.yr-tier {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-xs);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: #15171c;
}
.yr-contested {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-2);
}
.yr-contested .yr-section-title { margin-bottom: 8px; }
.yr-contested-list { margin: 0; padding-left: 2px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.yr-contested-list li { font-size: var(--fs-md); color: var(--text-dim); }
.yr-contested-list strong { color: var(--text); }
.yr-consensus { margin: 20px 0 0; font-size: var(--fs-md); color: var(--text-dim); }

/* ---- Day summary strip: turnout + spice meter ---- */
.yr-summary { margin: 0 0 18px; }
/* No bounding box: the meter sits directly on the dialog surface. */
.yr-spice { display: flex; flex-direction: column; gap: 10px; }
.yr-spice-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.yr-spice-title { font-size: var(--fs-md); font-weight: 700; color: var(--text); }
.yr-spice-level { flex: 0 0 auto; color: var(--text-dim); font-weight: 700; font-size: var(--fs-sm); }
.yr-spice-track { position: relative; height: 8px; border-radius: 999px; background: var(--bg-elev-2); }
.yr-spice-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--tier-D), var(--accent)); }
/* The 🌶️ marks how far the fill reached; centred on the fill's leading edge. */
.yr-spice-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.05rem;
  line-height: 1;
  pointer-events: none;
}
.yr-spice-desc { font-size: var(--fs-sm); color: var(--text-dim); }

/* ---- "You vs the crowd" personal readout ---- */
.yr-vs {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.yr-vs .yr-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.yr-vs-text { margin: 0; font-size: var(--fs-md); color: var(--text-dim); line-height: 1.45; }
.yr-vs-text strong { color: var(--text); }

/* ---- Superlative award cards (champion, cursed, hot take) ---- */
.yr-awards { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.yr-award {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-2);
  color: inherit;
  font: inherit;
}
.yr-award-kicker {
  font-size: var(--fs-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.yr-award-text { font-size: var(--fs-md); color: var(--text); line-height: 1.4; }
.yr-award-tier {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-xs);
  font-weight: 800;
  font-size: var(--fs-xs);
  color: #15171c;
  vertical-align: middle;
}

/* Champion / cursed as a single line: label on the left, item aligned right. */
.yr-award-line { gap: 10px; flex-wrap: wrap; }
.yr-award-line .yr-award-kicker { flex: 0 0 auto; }
.yr-award-line .yr-award-text { min-width: 0; margin-left: auto; text-align: right; }

/* "View your board" opens the read-only dialog; a compact left-aligned button. */
.yr-vs-btn { margin-top: 12px; }

/* "Closest to the average" callout — sits below the results, above discussion.
   A hard top-border divider (matching .yr-forum) rather than a rounded card. */
.yr-closest {
  margin-top: 0;
  padding: 16px;
  border-top: 1px solid var(--border);
}
.yr-closest[hidden] { display: none; }
.yr-closest .yr-section-title { margin-bottom: 8px; }
/* Timing awards reuse the champion/cursed award lines inside a spotlight block;
   drop the in-body top margin so the heading→lines gap matches its neighbours. */
.yr-closest .yr-awards { margin-top: 0; }
.yr-closest-text { margin: 0 0 12px; font-size: var(--fs-md); }
.yr-closest-text strong { color: var(--text); }
.yr-closest-meta { color: var(--text-dim); font-size: 0.85em; }
.yr-closest-btn { width: 100%; }

/* ---- Accolades carousel ----
   The five spotlights (closest, contrarian, hot take, most-reacted, timing) as
   one swipeable card rather than a tall stack. Slides reuse the .yr-closest card
   styling but drop their own top-border divider — the carousel container owns the
   single divider from the section above it. */
.yr-carousel {
  margin-top: 0;
  padding: 16px;
  border-top: 1px solid var(--border);
}
.yr-carousel[hidden] { display: none; }
.yr-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.yr-carousel-title {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
}
.yr-carousel-nav { display: flex; align-items: center; gap: 6px; }
/* Hidden (not removed) when a lone accolade qualifies, so the header keeps its
   height and the title doesn't shift. Restore `display` so it reserves space
   rather than collapsing under the UA `[hidden] { display: none }` rule. */
.yr-carousel-nav[hidden] { display: flex; visibility: hidden; }
.yr-carousel-count {
  min-width: 2.6em;
  text-align: center;
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}
.yr-carousel-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev-2);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.12s ease, opacity 0.12s ease;
}
.yr-carousel-arrow:hover:not(:disabled) { border-color: var(--accent); }
.yr-carousel-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.yr-carousel-arrow:disabled { opacity: 0.35; cursor: default; }

/* Horizontal snap track: each slide is one full-width page. Hidden slides
   (display:none, via .yr-closest[hidden]) drop out so only qualifiers page. */
.yr-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.yr-carousel-track::-webkit-scrollbar { display: none; }
.yr-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.yr-carousel .yr-closest { border-top: none; padding: 0; }

.yr-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}
.yr-carousel-dots:empty { display: none; }
.yr-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}
.yr-carousel-dot:hover { background: var(--text-dim); }
.yr-carousel-dot.is-active { background: var(--accent); transform: scale(1.3); }
.yr-carousel-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Respect reduced-motion: snap instantly instead of animating scroll. */
@media (prefers-reduced-motion: reduce) {
  .yr-carousel-track { scroll-behavior: auto; }
}

/* ---- Tier Lists log ---- */
.tierlists { margin-top: var(--space-section); }
.tierlists[hidden] { display: none; }
.tierlists-log { display: flex; flex-direction: column; gap: 6px; }
.tierlist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.tierlist-row:hover { border-color: var(--accent); background: var(--bg-elev-2); }
.tierlist-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tierlist-who {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.tierlist-author {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tierlist-time { flex: 0 0 auto; color: var(--text-dim); font-size: var(--fs-xs); }
.tierlist-cta {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* Top suggestions: up to three most-ranked suggested items, each a clickable
   row (reusing .tierlist-row) that opens its ranking distribution. The consensus
   tier chip sits beside the ranking count on the right. */
.yr-suggestion-list { display: flex; flex-direction: column; gap: 6px; }
.yr-suggestion-row .tierlist-author { font-weight: 700; }
.yr-suggestion-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Feed: a running log of emoji reactions left on other people's tier lists. */
/* Read-only log — plain compact text lines, no cards. */
.feed { margin-top: var(--space-section); }
.feed-log { display: flex; flex-direction: column; gap: 3px; }
.feed-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
}
.feed-text {
  min-width: 0;
  font-size: var(--fs-md);
  line-height: 1.4;
  color: var(--text);
}
.feed-text strong { font-weight: 600; }
.feed-time {
  flex: 0 0 auto;
  color: var(--text-dim);
  font-size: var(--fs-xs);
  opacity: 0.8;
}

/* ---- Footer ---- */
.app-footer {
  margin-top: 40px;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: var(--fs-sm);
  text-align: center;
}
.app-footer .wrap + .wrap { margin-top: 8px; }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-dim);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.12s ease;
}
.link-btn:hover { color: var(--text); }

/* ---- Larger screens ---- */
@media (min-width: 600px) {
  /* The category h1 scales via its own clamp(), so no width override here. */
  .tier-label { flex-basis: 56px; }
  .chip { width: 66px; }
  .chip .label { max-width: 62px; }
}

/* ---- Share menu ---- */
.share-menu { position: relative; }
.share-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 200px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* `display: flex` above would otherwise override the [hidden] attribute. */
.share-menu-list[hidden] { display: none; }
.share-menu-item {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font: inherit;
  cursor: pointer;
}
.share-menu-item:hover { background: var(--bg-elev-2); }
.share-menu-title { font-size: var(--fs-md); font-weight: 600; }
.share-menu-sub { font-size: var(--fs-xs); color: var(--text-dim); }

/* ---- Profile dialog ---- */
.profile-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.profile-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.profile-dialog form { padding: 20px; }
/* These dialogs have no inner <form>, so they carry the padding themselves. */
#submit-dialog { padding: 20px; }
#rank-suggest-dialog { padding: 24px; }
.profile-dialog-title { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.2; }
.profile-dialog-sub { margin: 0 0 18px; color: var(--text-dim); font-size: var(--fs-md); }
/* Reroll callout in the "Ready to submit?" dialog — amber-tinted to tie it to
   the Reroll button, shown only when the player still has a reroll left. */
#submit-dialog .profile-dialog-sub { margin-bottom: 10px; }
.submit-dialog-reroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 12px;
  border-radius: var(--radius-xs);
  font-size: var(--fs-md);
  line-height: 1.35;
  text-align: center;
  color: var(--text);
  background: color-mix(in srgb, var(--reroll) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--reroll) 38%, transparent);
}
/* `display: flex` above would otherwise beat the UA [hidden] rule, keeping the
   callout visible when there's no reroll left — make `hidden` win again. */
.submit-dialog-reroll[hidden] { display: none; }
.submit-dialog-reroll-text { margin: 0; }
/* "Locked" mystery tiles — one per item the next pull would reveal — that make
   what rerolling does legible at a glance: dashed, amber-tinted boxes sized to a
   real chip, each with a pulsing question mark, like reels waiting to spin. */
.reroll-locked-slots {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.reroll-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-xs);
  border: 1px dashed color-mix(in srgb, var(--reroll) 60%, transparent);
  background: color-mix(in srgb, var(--reroll) 10%, var(--bg-elev-2));
  color: color-mix(in srgb, var(--reroll) 92%, var(--text));
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: reroll-slot-pulse 1.8s ease-in-out infinite;
}
/* Stagger the pulse across the row so the tiles feel alive, not synchronized. */
.reroll-slot:nth-child(2) { animation-delay: 0.2s; }
.reroll-slot:nth-child(3) { animation-delay: 0.4s; }
@keyframes reroll-slot-pulse {
  0%, 100% { transform: translateY(0); border-color: color-mix(in srgb, var(--reroll) 45%, transparent); }
  50%      { transform: translateY(-2px); border-color: color-mix(in srgb, var(--reroll) 85%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .reroll-slot { animation: none; }
}
/* Amber fill + spinning icon, matching the pool's Reroll button (minus the
   attention-seeking glow, which would be noisy inside a dialog). */
.submit-dialog-reroll-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--reroll);
  border-color: var(--reroll);
  color: #1b1f27;
}
.submit-dialog-reroll-btn:hover { filter: brightness(1.06); }
.submit-dialog-reroll-btn:active { background: var(--reroll-press); }
.submit-dialog-reroll-btn:hover .reroll-icon { transform: rotate(-180deg); }
.field { display: block; margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.profile-dialog input,
.field-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  padding: 9px 10px;
  font: inherit;
  font-size: 16px; /* >=16px stops iOS Safari from zooming on focus */
}
.profile-dialog input:focus,
.field-select:focus { outline: none; border-color: var(--accent); }

/* Searchable country picker (profile dialog) */
.country-picker { position: relative; }
.country-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 4px;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 10;
  max-height: 244px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.country-list[hidden] { display: none; }
.country-group {
  padding: 8px 8px 2px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-dim);
}
.country-option {
  padding: 9px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: var(--fs-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.country-option:hover,
.country-option.is-active { background: var(--bg-elev-2); }
.country-option[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.country-none { color: var(--text-dim); }
.country-empty { padding: 9px 10px; color: var(--text-dim); font-size: var(--fs-md); }
.profile-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Rank-your-suggestion dialog: the S–F grid reuses the .tier-picker-opt chips. */
.rank-suggest-grid {
  margin-top: 14px;
  gap: 8px;
}

/* ---- Notifications ---- */
/* Header bell shares the round icon-button look (.theme-toggle); when the device
   is subscribed it gets an accent ring. */
.notify-btn.is-on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* The dialog reuses .profile-dialog's frame; these style its rows + controls. */
.notify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.notify-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notify-row-title { font-weight: 600; font-size: var(--fs-base); }
.notify-row-sub { color: var(--text-dim); font-size: var(--fs-sm); }

/* Reminder-time picker nested under the Daily toggle. */
.notify-subrow {
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--border);
}
.notify-subrow .field-select { margin-top: 2px; }

/* Toggle switch (a visually-hidden checkbox + a styled track). */
.switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
  cursor: pointer;
}
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform 0.15s ease, background 0.15s ease;
}
.switch input:checked + .switch-track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* "All comments vs. only replies to me" choice. */
.notify-mode {
  margin: 14px 0 4px;
  padding: 10px 12px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.notify-mode .field-label { margin-bottom: 4px; padding: 0; }
.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  cursor: pointer;
}
.radio-row + .radio-row { border-top: 1px solid var(--border); }
/* Counteract .profile-dialog input { width:100%; border; background } so the
   radios render as native controls instead of full-width boxes. */
.notify-mode input[type="radio"] {
  width: auto;
  height: auto;
  margin: 3px 0 0;
  padding: 0;
  border: none;
  background: none;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
.radio-text { display: flex; flex-direction: column; }
.radio-text strong { font-size: var(--fs-md); font-weight: 600; }
.radio-text small { color: var(--text-dim); font-size: var(--fs-sm); }

.notify-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: var(--bg-elev-2);
  color: var(--text-dim);
  font-size: var(--fs-sm);
}

/* ---- Tier list / rankings dialogs (a commenter's saved tiers) ---- */
.ranking-dialog {
  width: min(560px, calc(100vw - 32px));
  /* Cap to the *visible* viewport — dvh accounts for mobile browser chrome (URL
     bar, toolbars), so the modal never runs off-screen and clips the close
     button. A flex column pins the header while the body scrolls in what's left.
     Reserve the top safe-area inset on both sides so a full-height modal stays
     centred *below* the notch / status bar instead of sliding under it
     (viewport-fit=cover extends the viewport into the safe areas). env() is 0
     where there's no notch, so desktop is unaffected. */
  max-height: calc(100vh - 2 * env(safe-area-inset-top) - 32px);
  max-height: calc(100dvh - 2 * env(safe-area-inset-top) - 32px);
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
/* Only lay the dialog out as a flex column while it's actually open. Putting
   `display` on the base rule would override the UA's `dialog:not([open])` hide
   rule (author styles outrank UA styles), leaving the closed modal rendered
   inline at the bottom of the page. */
.ranking-dialog[open] {
  display: flex;
}
.ranking-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.ranking-dialog-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.ranking-dialog-title { margin: 0; font-size: var(--fs-lg); line-height: 1.2; }
.ranking-dialog-sub {
  margin: 2px 0 0;
  color: var(--text-dim);
  font-size: var(--fs-sm);
}
.ranking-dialog-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text-dim);
  font-size: var(--fs-md);
  line-height: 1;
  cursor: pointer;
  transition: filter 0.12s ease, color 0.12s ease;
}
.ranking-dialog-close:hover { color: var(--text); filter: brightness(1.12); }
.ranking-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}
/* Yesterday's modal scrolls the results + the discussion thread together, so the
   thread reads as a continuation rather than a separate, independently-clipped
   panel. The shared container owns the scroll; the inner body no longer does. */
.yr-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* Breathing room so the last comment / results row never sits flush against
     the dialog's bottom edge. */
  padding-bottom: 32px;
}
.yr-scroll > .ranking-dialog-body {
  flex: none;
  overflow: visible;
}
.yr-forum {
  margin-top: 0;
  padding: 16px;
  border-top: 1px solid var(--border);
}
/* Yesterday's leaderboard — a hard top-border divider matching the
   discussion/closest sections rather than the page feed's plain margin. */
.yr-tierlists {
  margin-top: 0;
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* ---- Leaderboard podium (top 3) ---- */
.yr-podium {
  display: flex;
  align-items: flex-end; /* pedestals of differing height align at the base */
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.yr-podium[hidden] { display: none; }
.yr-podium-spot {
  flex: 1 1 0;
  min-width: 0;
  max-width: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.yr-podium-medal { font-size: 1.7rem; line-height: 1; transition: transform 0.12s ease; }
.yr-podium-who {
  max-width: 100%;
  font-weight: 700;
  font-size: var(--fs-sm);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yr-podium-score {
  color: var(--text-dim);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.yr-podium-base {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  font-weight: 800;
  font-size: var(--fs-lg);
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: border-color 0.12s ease, background 0.12s ease;
}
/* Gold tallest and centered, silver next, bronze shortest. Tints read as a warm
   glow on the dark shell and a soft wash on light. */
.yr-podium-spot.is-gold .yr-podium-base { height: 62px; background: rgba(245, 190, 70, 0.16); border-color: rgba(245, 190, 70, 0.5); }
.yr-podium-spot.is-silver .yr-podium-base { height: 44px; background: rgba(188, 198, 210, 0.16); border-color: rgba(188, 198, 210, 0.5); }
.yr-podium-spot.is-bronze .yr-podium-base { height: 32px; background: rgba(205, 132, 78, 0.16); border-color: rgba(205, 132, 78, 0.5); }
.yr-podium-place { color: var(--text-dim); }
.yr-podium-spot:hover .yr-podium-medal { transform: translateY(-2px) scale(1.08); }
.yr-podium-spot.is-gold:hover .yr-podium-base { border-color: rgba(245, 190, 70, 0.85); background: rgba(245, 190, 70, 0.24); }
.yr-podium-spot.is-silver:hover .yr-podium-base { border-color: rgba(188, 198, 210, 0.85); background: rgba(188, 198, 210, 0.24); }
.yr-podium-spot.is-bronze:hover .yr-podium-base { border-color: rgba(205, 132, 78, 0.85); background: rgba(205, 132, 78, 0.24); }
.yr-podium-spot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ---- Leaderboard list (4th place onward) ---- */
.yr-tierlists .tierlist-who { flex: 1 1 auto; }
.yr-tierlists .tierlist-rank {
  flex: 0 0 auto;
  min-width: 1.6em;
  text-align: center;
  color: var(--text-dim);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.yr-tierlists .tierlist-score {
  flex: 0 0 auto;
  color: var(--text-dim);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
/* Chips inside the dialog are display-only. */
.ranking-chip { cursor: default; touch-action: auto; }
/* ...unless you're viewing someone else's board, where each chip is a tap
   target that opens the emoji reaction picker. */
.ranking-chip.is-reactable { cursor: pointer; transition: border-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease; }
.ranking-chip.is-reactable:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.ranking-chip.is-reactable:active { transform: translateY(0); }
.ranking-chip.is-reactable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The reactions you've left on a pick, badged onto the chip's corner so they
   persist every time you reopen the board. Applies on both surfaces: the "See
   Tier List" dialog (.ranking-chip) and the shared-link preview board (.chip). */
.chip.is-reactable { position: relative; overflow: visible; }
.chip-reactions {
  position: absolute;
  bottom: -7px;
  right: -5px;
  display: flex;
  gap: 1px;
  max-width: 130%;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 1px 4px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  line-height: 1;
  pointer-events: none; /* a tap on a badge still opens the picker to add another */
}
.chip-reaction { font-size: var(--fs-sm); line-height: 1; }

/* ---- Shared tier-list preview ---- */
.preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  background: var(--bg-elev);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.preview-banner .preview-text { font-size: var(--fs-md); color: var(--text-dim); }
.preview-banner .preview-text strong { color: var(--text); }
.preview-banner .btn { flex: 0 0 auto; }
body.preview-mode .tierlist-toolbar { display: none; }
body.preview-mode .chip { cursor: default; }

/* ---- Tap-to-assign picker ---- */
.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.chip.just-assigned {
  animation: chip-pop 0.28s ease;
}
@keyframes chip-pop {
  0% { transform: scale(0.82); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.tier-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: transparent;
}
.tier-picker {
  position: fixed;
  z-index: 61;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 10px;
  max-width: calc(100vw - 16px);
}
.tier-picker-head {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  margin-bottom: 8px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tier-picker-head strong { color: var(--text); }
.tier-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tier-picker-opt {
  appearance: none;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #15171c;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}
.tier-picker-opt:hover { filter: brightness(1.08); }
.tier-picker-opt:active { transform: translateY(1px); }
.tier-picker-opt.is-pool {
  background: var(--bg-elev-2);
  color: var(--text);
  font-weight: 600;
}
.tier-picker-opt.is-current {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Emoji reaction picker (opened by tapping an item on someone's tier list).
   Reuses the .tier-picker popover shell from showMenuPopover. */
.emoji-picker-head {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  margin-bottom: 8px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.emoji-picker-head strong { color: var(--text); }
.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.emoji-picker-opt {
  appearance: none;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}
.emoji-picker-opt:hover { background: var(--bg-elev-2); border-color: var(--border); }
.emoji-picker-opt:active { transform: translateY(1px); }
.emoji-picker-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Your current reaction on this item — re-tap it to remove. */
.emoji-picker-opt.is-current { background: var(--bg-elev-2); border-color: var(--accent); }
.emoji-picker-hint {
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  max-width: 220px;
}

/* A plain text action inside a popover menu (e.g. the comment "delete" menu). */
.menu-item {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 140px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}
.menu-item:hover { background: var(--bg-elev-2); }
.menu-item.is-danger { color: #ff6b6b; }
.menu-item.is-danger:hover { background: rgba(255, 107, 107, 0.12); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: var(--fs-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* Colour-coded outcomes: green confirms a submit, red flags an error. */
.toast--success { background: #15803d; border-color: #22c55e; color: #fff; }
.toast--error { background: #b91c1c; border-color: #ef4444; color: #fff; }

/* ── World Cup entry banner (daily home page → /world-cup) ─────────────────────
   A temporary, prominent link to the live event. Lives in the shared stylesheet
   because the daily page doesn't load world-cup.css. */
.wc-entry-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  padding: 12px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  background: linear-gradient(100deg, #1b6b34, #2E7D32 45%, #b8860b);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.wc-entry-banner:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34); }
.wc-entry-banner:active { transform: translateY(0); }
.wc-entry-emoji { font-size: 1.7rem; line-height: 1; flex: none; }
.wc-entry-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.wc-entry-title { font-weight: 800; font-size: var(--fs-base); letter-spacing: 0.01em; }
.wc-entry-sub { font-size: var(--fs-xs); opacity: 0.92; }
.wc-entry-arrow { font-size: 1.3rem; flex: none; opacity: 0.9; }
@media (prefers-reduced-motion: reduce) {
  .wc-entry-banner { transition: none; }
  .wc-entry-banner:hover { transform: none; }
}
