/* English Empire web client.
   Type scale: nothing below 12px. Text colours meet WCAG AA (4.5:1) on every panel background:
   --muted 4.8:1+, --accent-text 4.8:1+, --danger 4.9:1+. Touch targets are at least 44px. */

@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 100 1000; src: url(/fonts/dm-sans-latin-wght-normal.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: "DM Sans"; font-style: normal; font-display: swap; font-weight: 100 1000; src: url(/fonts/dm-sans-latin-ext-wght-normal.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: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-wght-normal.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: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/manrope-latin-ext-wght-normal.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 {
  --paper: #f5f4ef;
  --white: #fff;
  --sand: #eff0e9;
  --soft: #f7f7f2;
  --line: #e6e6df;
  --field: #89938b;
  --ink: #142b27;
  --muted: #5f6b63;
  --gold: #efaa48;
  --accent-text: #8f5d22;
  --danger: #a8483a;
  --success: #3f6b45;
  --sage: #718c6d;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", "DM Sans", system-ui, sans-serif;
  --tap: 44px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, a, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { max-width: 100%; }
h1, h2, h3 { color: var(--ink); }
p { margin: 0; }

/* Focus: always visible for keyboard users. */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.hero-card :focus-visible, .final-panel :focus-visible, .dark-button:focus-visible, .launch-button:focus-visible, .whatsapp-cta:focus-visible, .join-button:focus-visible { outline-color: var(--gold); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Shell ---- */
.app-shell { min-height: 100vh; }
.sidebar { width: 256px; position: fixed; inset: 0 auto 0 0; background: #fbfaf6; border-right: 1px solid var(--line); padding: 28px 18px 16px; display: flex; flex-direction: column; z-index: 4; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 0 4px; min-height: var(--tap); }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; flex: none; }
.brand-mark img { width: 31px; height: 31px; }
.brand-name { font-size: 13px; letter-spacing: 1.4px; color: #4d5a52; white-space: nowrap; }
.brand-name b { color: var(--ink); font-weight: 800; }
.side-label { font-size: 12px; letter-spacing: 1.6px; font-weight: 700; color: var(--muted); margin: 40px 10px 10px; }
.side-nav { display: grid; gap: 4px; }
.nav-item { min-height: 46px; padding: 0 12px; border-radius: 8px; display: flex; align-items: center; gap: 12px; color: #4d5a52; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-item .ico { color: var(--muted); }
.nav-item:hover, .nav-item.active { background: #eeefe9; color: var(--ink); font-weight: 700; }
.nav-item.active .ico { color: var(--accent-text); }
.nav-dot { width: 8px; height: 8px; background: #2f8a45; border-radius: 50%; margin-left: auto; box-shadow: 0 0 0 3px #2f8a4526; }
.sidebar-bottom { margin-top: auto; padding-top: 18px; }
.sidebar-note { border-radius: 12px; background: var(--sand); padding: 14px; }
.sidebar-note strong { display: block; font: 700 15px var(--display); }
.sidebar-note p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 4px 0 6px; }
.note-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); color: var(--accent-text); font-weight: 700; font-size: 14px; text-decoration: none; }
.profile { width: 100%; min-height: 60px; border: 0; border-top: 1px solid var(--line); margin-top: 14px; padding: 12px 4px 0; background: none; display: flex; align-items: center; text-align: left; gap: 10px; color: var(--ink); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; background: #e2e9dd; border-radius: 50%; color: #2f4a3d; font-weight: 800; flex: none; }
.avatar.small { width: 28px; height: 28px; font-size: 13px; }
.profile-text { min-width: 0; }
.profile b, .profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile b { font-size: 14px; }
.profile small { font-size: 12px; color: var(--muted); margin-top: 1px; }
.profile-more { margin-left: auto; color: var(--accent-text); font-size: 18px; }
.main-content { margin-left: 256px; max-width: 1600px; padding: 0 48px 32px; outline: none; }
.topbar { min-height: 72px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.breadcrumb { font-size: 12px; letter-spacing: 1.4px; color: var(--muted); }
.breadcrumb b { color: var(--ink); font-weight: 700; }
.crumb-slash { margin: 0 10px; color: #aab1aa; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.today-label { font-size: 13px; color: var(--muted); }
.icon-button { width: var(--tap); height: var(--tap); border: 1px solid #cfd4cc; border-radius: 50%; color: var(--ink); background: #fff; font-size: 16px; font-weight: 700; }
.top-account { display: none; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 12px 0 6px; border: 1px solid #cfd4cc; border-radius: 22px; background: #fff; font-size: 14px; font-weight: 700; max-width: 160px; }
.top-account span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.join-button { color: #fff; background: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; min-height: var(--tap); padding: 0 14px; border-radius: 8px; display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.join-arrow { color: var(--gold); }
.mobile-brand, .mobile-nav { display: none; }
.net-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #fdf1e4; border: 1px solid #f1d4ad; color: #6f4718; font-size: 14px; font-weight: 600; }
.net-banner span { flex: 1 1 220px; }
.net-banner button { min-height: var(--tap); padding: 0 16px; border-radius: 8px; border: 1px solid #c9965a; background: #fff; color: #6f4718; font-weight: 700; }

/* ---- Views ---- */
.view { display: none; }
.view.active { display: block; animation: enter .25s ease; }
@keyframes enter { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.view h1:focus { outline: none; }
.welcome-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 36px 0 24px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.eyebrow-line { height: 1px; width: 18px; background: #c38a50; flex: none; }
.eyebrow.small { letter-spacing: 1.4px; }
.welcome-row h1, .subview > h1, .subview-head h1 { font: 800 44px/1.05 var(--display); letter-spacing: -1.6px; margin: 14px 0 0; }
h1 em { font-weight: 500; color: var(--accent-text); }
.welcome-copy { font-size: 16px; color: var(--muted); margin: 12px 0 0; max-width: 560px; }
.welcome-stamp { border: 1px solid #d5d9d0; border-radius: 50%; width: 84px; height: 84px; display: grid; align-content: center; justify-items: center; transform: rotate(10deg); margin-right: 20px; color: var(--muted); flex: none; }
.welcome-stamp span { font: 800 20px var(--display); letter-spacing: 1px; }
.welcome-stamp small { font-size: 12px; line-height: 1.2; letter-spacing: .5px; text-align: center; transform: scale(.75); }

/* Hero */
.hero-card { min-height: 280px; border-radius: 14px; background: var(--ink); position: relative; overflow: hidden; display: flex; color: #fff; padding: 28px 30px; }
.hero-content { position: relative; z-index: 1; max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ffffff33; background: #ffffff12; border-radius: 30px; padding: 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #eef2ec; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #9fc188; flex: none; }
.live-pill.open { background: #2f8a4533; border-color: #7fd08e66; }
.live-pill.open i { background: #6fd47f; box-shadow: 0 0 0 4px #6fd47f33; }
.live-pill.upcoming i { background: var(--gold); }
.hero-card h2 { font: 700 32px/1.08 var(--display); letter-spacing: -.8px; margin: 16px 0 10px; color: #fff; }
.hero-card h2 span { color: var(--gold); font-weight: 500; font-style: italic; }
.hero-card p { font-size: 16px; line-height: 1.5; color: #d0d9d1; max-width: 460px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 14px; color: #dce5d9; gap: 6px 10px; }
.meta-divider { height: 14px; width: 1px; background: #ffffff55; }
.hero-meta span:empty, .hero-meta span:empty + .meta-divider { display: none; }
.hero-meta .meta-divider:last-child { display: none; }
.hero-cta { margin-top: 18px; background: var(--gold); border: 0; border-radius: 8px; color: var(--ink); min-height: 48px; padding: 0 18px; font-size: 15px; font-weight: 800; display: inline-flex; gap: 16px; align-items: center; text-decoration: none; }
.hero-art { position: absolute; right: 8%; top: 0; width: 42%; height: 100%; display: flex; align-items: center; justify-content: center; }
.orbit { position: absolute; border: 1px solid #efaa4836; border-radius: 50%; width: 230px; height: 230px; }
.orbit-two { width: 285px; height: 285px; border-color: #d8e5d41e; }
.art-sun { position: absolute; width: 100px; height: 100px; border-radius: 50%; background: #edab54; opacity: .92; right: 21%; top: 28px; }
.art-arch { position: absolute; width: 132px; height: 154px; border-radius: 80px 80px 0 0; background: #536a54; bottom: 0; display: grid; place-items: center; overflow: hidden; }
.arch-inner { position: absolute; bottom: 0; width: 78px; height: 106px; border-radius: 50px 50px 0 0; background: #c58952; }
.arch-mark { z-index: 1; font: 500 37px var(--display); color: #f9e4bd; margin-top: 18px; }
.art-star { position: absolute; color: #f7c872; font-size: 22px; }
.star-a { right: 20%; top: 70px; }
.star-b { left: 15%; bottom: 43px; color: #d2b3c6; }
.art-orbit-dot { position: absolute; right: 15%; bottom: 31px; width: 8px; height: 8px; background: #8ba57b; border-radius: 50%; }
.art-caption { position: absolute; right: 2%; bottom: 42px; color: #ebd3af; font-size: 12px; line-height: 1.4; letter-spacing: 1.3px; text-align: right; }

/* Sections and panels */
.section-block { margin-top: 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-heading h2, .panel h2 { font: 700 22px/1.2 var(--display); letter-spacing: -.4px; margin: 8px 0 0; }
.text-link { background: none; border: 0; color: var(--accent-text); font-size: 14px; font-weight: 700; padding: 0 2px; min-height: var(--tap); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; text-align: left; }
.text-link:hover { text-decoration: underline; }
.text-link span { color: var(--accent-text); }
.panel { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 20px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 10px; }
.loading-note, .catalog-error { font-size: 14px; color: var(--muted); margin: 12px 0 0; list-style: none; }
.skeleton-text { color: #c4d0c6; }

/* Prizes */
.prize-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prize-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.prize-top { display: flex; align-items: center; justify-content: space-between; }
.place { font: 800 16px var(--display); color: var(--ink); }
.place span { font: 700 12px var(--font); letter-spacing: 1px; color: var(--muted); margin-left: 4px; }
.medal { font-size: 18px; color: var(--accent-text); }
.prize-money { font: 800 30px var(--display); letter-spacing: -1px; margin-top: 10px; }
.prize-foot { border-top: 1px solid #ecece7; margin-top: 10px; padding-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; }
.prize-foot b { color: var(--ink); font-size: 16px; }
.lower-grid { margin-top: 24px; display: grid; grid-template-columns: 1.13fr .87fr; gap: 16px; }

/* Scoring list */
.score-list { margin-top: 12px; }
.score-row { display: flex; align-items: center; min-height: 60px; border-bottom: 1px solid #efefea; gap: 12px; padding: 8px 0; }
.score-row:last-child { border-bottom: 0; }
.score-symbol { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; background: #eef0e9; color: #4d6a4a; flex: none; }
.score-symbol.evident { background: #e7f0ee; color: #2f6b64; }
.score-symbol.phrasing { background: #f4eee7; color: #8f5d22; font-weight: 700; }
.score-symbol.critical { background: #f1ecf0; color: #74506f; }
.score-symbol.lie { background: #f8ece8; color: var(--danger); }
.score-copy { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.score-copy b { font-size: 15px; }
.score-copy small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.score-points { font: 800 18px var(--display); white-space: nowrap; }
.score-points small, .unit { font: 600 12px var(--font); color: var(--muted); }
.score-points.negative { color: var(--danger); }
.panel-footnote { border-top: 1px solid #efefea; padding-top: 12px; margin-top: 4px; color: var(--muted); font-size: 13px; }

/* Stay in the loop */
.next-panel { background: var(--sand); border-color: var(--sand); }
.next-copy { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 8px 0 14px; }
.date-placeholder { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border-radius: 10px; }
.date-icon { width: 38px; height: 38px; border-radius: 9px; background: #f2eee4; color: var(--accent-text); display: grid; place-items: center; flex: none; }
.date-placeholder b, .date-placeholder small { display: block; }
.date-placeholder b { font-size: 15px; }
.date-placeholder small { font-size: 13px; color: var(--muted); margin-top: 2px; }
.date-ping { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: #2f8a45; box-shadow: 0 0 0 4px #2f8a4526; flex: none; }
.notification-cta { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; border: 1px solid #c8cec4; border-radius: 8px; background: #fff; color: var(--ink); padding: 0 14px; margin-top: 10px; font-size: 15px; font-weight: 700; text-align: left; }
.notification-icon { color: var(--accent-text); font-size: 16px; }
.notification-state { margin-left: auto; color: var(--accent-text); }
.notification-cta.enabled { color: var(--success); border-color: #9cc59a; }
.ios-hint { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.whatsapp-cta { margin-top: 10px; background: var(--ink); color: #fff; border-radius: 8px; min-height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; font-weight: 700; }
.cta-arrow { margin-left: auto; color: var(--gold); }
.wa-icon { font-size: 16px; color: #a8c494; }
.group-note { border-top: 1px solid #d7dacf; margin-top: 14px; padding-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.group-note b { color: var(--ink); }
.page-footer { border-top: 1px solid var(--line); margin-top: 28px; padding: 14px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: var(--muted); font-size: 12px; letter-spacing: 1px; }

/* ---- Competition ---- */
.subview { padding-top: 40px; }
.subview-head { max-width: 720px; }
.subview-head h1, .subview > h1 { font-size: 46px; margin-top: 14px; }
.subview-head > p, .subview-intro { max-width: 600px; font-size: 16px; line-height: 1.65; color: var(--muted); margin-top: 12px; }

.round-status { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; max-width: 1000px; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.round-status[data-phase="open"] { border-color: #9cc59a; background: #f6fbf3; }
.round-status[data-phase="upcoming"] { border-color: #c9d2e6; background: #f6f8fc; }
.round-status.is-sticky { position: sticky; top: 8px; z-index: 6; box-shadow: 0 8px 24px #142b2714; }
.round-status-copy { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.round-status-copy b { font-size: 16px; }
.round-status-copy small { font-size: 14px; color: var(--muted); line-height: 1.45; }
.round-status-clock { font: 800 24px var(--display); letter-spacing: -.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.round-status-clock:empty { display: none; }
.round-status-clock small { display: block; font: 700 12px var(--font); letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.round-status-clock.urgent { color: var(--danger); }
.phase-pill, .ladder-status { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .4px; padding: 4px 10px; border-radius: 20px; background: #eef0e9; color: #3f4b43; white-space: nowrap; }
.phase-pill.open, .ladder-status.open { background: #e3efdc; color: #2f5a37; }
.phase-pill.open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f8a45; }
.phase-pill.upcoming, .ladder-status.upcoming { background: #e8edf7; color: #34446a; }
.phase-pill.ended, .ladder-status.ended, .phase-pill.judging, .ladder-status.judging { background: #f4eee6; color: #6f4718; }
.phase-pill.closed, .ladder-status.closed { background: #efefea; color: #3f4b43; }
.phase-pill.live { background: #f8e3d7; color: #8a3a22; }

.round-stage { display: grid; gap: 16px; max-width: 1000px; margin-top: 20px; }
.round-stage.two { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.round-stage.two .round-image-panel { position: sticky; top: 96px; }
.round-stage > .panel { margin-top: 0; }
.round-image-panel h2 { margin-bottom: 12px; }
.round-image { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; background: #eeefe9; }
.image-open { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 8px; cursor: zoom-in; }
.image-hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.image-placeholder { display: grid; place-items: center; text-align: center; gap: 6px; min-height: 220px; padding: 24px; border: 2px dashed #c9d2e6; border-radius: 10px; background: #f6f8fc; }
.image-placeholder b { font-size: 16px; }
.image-placeholder span { font: 800 30px var(--display); color: #34446a; font-variant-numeric: tabular-nums; }
.image-placeholder small { font-size: 14px; color: var(--muted); }
.flash-note { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 12px; }
.flash-reveal { width: 100%; max-width: 360px; }
.flash-frame { position: relative; }
.flash-countdown { position: absolute; top: 12px; right: 12px; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font: 800 24px var(--display); box-shadow: 0 6px 24px #142b2740; }

.play-panel h2 { margin-bottom: 10px; }
.answer-clock { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #f6fbf3; border: 1px solid #cfe3c8; color: #2f5a37; font-size: 15px; font-weight: 700; }
.answer-clock.urgent { background: #fbefeb; border-color: #e9bcb0; color: var(--danger); }
.answer-wait { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #eef1f7; color: #2b3a35; font-size: 15px; line-height: 1.5; }
.play-signin p { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.answer-box { display: grid; gap: 10px; }
.answer-label { font: 700 16px var(--display); }
.answer-box textarea { width: 100%; min-height: 200px; border: 1px solid var(--field); border-radius: 10px; padding: 12px 14px; font: 16px/1.6 var(--font); color: var(--ink); resize: vertical; background: #fff; }
.answer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.answer-foot small { font-size: 13px; color: var(--muted); }
.answer-foot .answer-sent { color: var(--success); font-weight: 700; flex: 1 1 200px; }
.answer-foot .answer-draft { flex: 1 1 160px; }
.answer-foot .dark-button { margin-left: auto; }

/* Buttons */
.dark-button { background: var(--ink); color: #fff; border: 0; border-radius: 8px; min-height: var(--tap); padding: 0 16px; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.dark-button span { color: var(--gold); }
.dark-button.wide { width: 100%; max-width: 360px; }
.dark-button:disabled, .launch-button:disabled { opacity: .55; }
.launch-button { margin-top: 8px; min-height: 48px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; font-size: 15px; font-weight: 700; }
.launch-button span:first-child, .launch-button span:last-child { color: var(--gold); }

/* Member card */
.member-card { max-width: 1000px; margin-top: 20px; }
.auth-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-top: 14px; border-radius: 12px; background: var(--sand); }
.auth-switch button { min-height: var(--tap); padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font-size: 15px; font-weight: 700; color: #3f4b43; }
.auth-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #142b2726; }
.member-form { display: grid; gap: 10px; margin-top: 16px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field label, .admin-form label, .field-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.member-form input { width: 100%; min-height: 48px; border: 1px solid var(--field); border-radius: 8px; padding: 0 14px; font: 600 16px var(--font); color: var(--ink); background: #fff; }
.member-form #memberUsername { text-transform: lowercase; }
.member-form .member-code { letter-spacing: 6px; max-width: 220px; }
.member-form .member-code::placeholder { letter-spacing: normal; }
.member-form input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.rules { list-style: none; margin: -2px 0 4px; padding: 0; display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.rules li { display: flex; gap: 8px; line-height: 1.4; }
.rules li::before { content: "•"; width: 14px; text-align: center; flex: none; color: var(--muted); }
.rules li.ok { color: var(--success); }
.rules li.ok::before { content: "✓"; color: var(--success); font-weight: 800; }
.rules li.bad { color: var(--danger); }
.rules li.bad::before { content: "✗"; color: var(--danger); font-weight: 800; }
.rules li.rule-note::before { content: "i"; font-weight: 800; font-style: italic; }
.member-form[data-mode="login"] .rules { display: none; }
.returning-note { font-size: 13px; color: var(--muted); }
.show-code { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font-size: 14px; color: var(--ink); cursor: pointer; justify-self: start; }
.show-code input, .share-toggle input, .comeback-question input, .challenge-options input[type="radio"] { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.form-message { min-height: 0; margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.form-message:empty { display: none; }
.form-message.error { color: var(--danger); font-weight: 700; }
.form-message.success { color: var(--success); font-weight: 700; }
.member-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.member-head h2 { overflow-wrap: anywhere; }
.member-status { margin: 10px 0 0; font-size: 15px; font-weight: 700; padding: 10px 14px; border-radius: 9px; background: #eef0e9; color: #2b3a35; }
.member-status.active { background: #e3efdc; color: #24492b; }
.member-status.eliminated { background: #f8ece8; color: #8a3a2c; }
.member-house { font-size: 15px; margin: 10px 0 0; color: #2b3a35; }
.member-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: #fdf6e9; border: 1px solid #f1dfba; font-size: 14px; font-weight: 700; color: #5b4a2c; }
.badge-chip small { font-size: 12px; color: var(--accent-text); }
.share-toggle { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--soft); cursor: pointer; }
.share-toggle input { margin-top: 2px; }
.share-toggle span { display: flex; flex-direction: column; gap: 3px; }
.share-toggle b { font-size: 15px; }
.share-toggle small { font-size: 13px; line-height: 1.5; color: var(--muted); }
.member-danger { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.danger-link { color: var(--danger); justify-self: start; }
.danger-link span { color: var(--danger); }
.member-danger small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.share-moments, .report-cards { margin-top: 16px; border-top: 1px solid #efefea; padding-top: 14px; }
.share-moments h3, .report-cards h3, .pitch-recorder h3 { font: 700 17px var(--display); margin: 0 0 6px; }
.share-moments ul { list-style: none; margin: 0; padding: 0; }
.share-moments li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f0ea; }
.share-moments li:last-child { border-bottom: 0; }
.share-emoji { font-size: 22px; }
.share-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.share-copy b { font-size: 15px; }
.share-copy small { font-size: 13px; color: var(--muted); }

/* Pitch recorder */
.pitch-recorder audio { width: 100%; max-width: 420px; margin: 6px 0; }
.pitch-note { font-size: 15px; color: var(--muted); line-height: 1.55; margin: 0 0 10px; }
.pitch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pitch-recorder .launch-button { width: 100%; max-width: 360px; }
.pitch-sent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.pitch-sent b { color: var(--success); font-size: 15px; }
.pitch-sent small { font-size: 13px; color: var(--muted); }
.pitch-clock { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.pitch-clock b { font: 800 24px var(--display); color: var(--ink); }
.pitch-dot { width: 12px; height: 12px; border-radius: 50%; background: #c56856; animation: pitchPulse 1s ease-in-out infinite; }
@keyframes pitchPulse { 50% { opacity: .3; } }

/* Comeback */
.comeback-box { margin-bottom: 12px; border: 1px solid #f1dfba; background: #fffaf0; border-radius: 10px; padding: 14px; }
.comeback-box h3 { font: 800 18px var(--display); margin: 0 0 6px; }
.comeback-question { border: 0; border-top: 1px solid #f1e6cf; padding: 12px 0; margin: 0; }
.comeback-question legend { font-size: 15px; font-weight: 700; padding: 0; margin-bottom: 6px; }
.comeback-question label { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: var(--tap); cursor: pointer; }
.comeback-box .launch-button { width: 100%; max-width: 360px; margin-top: 6px; }

/* Oracle */
.oracle-panel, .oracle-board { max-width: 1000px; margin-top: 20px; }
.oracle-panel h2 { margin-bottom: 8px; }
.oracle-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.oracle-chip { min-height: var(--tap); border: 1px solid #c8cec4; background: #fff; border-radius: 22px; padding: 0 16px; font-size: 15px; font-weight: 700; color: #2b3a35; }
.oracle-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.oracle-chip.on::before { content: "✓ "; color: var(--gold); }
.oracle-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
#oracleTop { min-height: 48px; border: 1px solid var(--field); border-radius: 8px; padding: 0 12px; font: 16px var(--font); margin-bottom: 12px; width: 100%; max-width: 320px; background: #fff; }
.oracle-saved { font-size: 14px; color: var(--success); font-weight: 700; }
.oracle-result { font: 800 24px var(--display); color: var(--accent-text); margin: 4px 0; }
.oracle-leaders { list-style: none; margin: 10px 0 0; padding: 0; }
.oracle-leaders li { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid #efefea; }
.oracle-you { font-size: 15px; font-weight: 700; color: var(--success); margin: 8px 0 0; }

/* Competition columns */
.competition-columns { margin-top: 20px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; max-width: 1000px; }
.competition-side { display: grid; gap: 12px; align-content: start; }
.prize-side { background: #f0f0e9; }
.mini-prize { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #d7dacf; }
.mini-prize > span { font-size: 13px; color: var(--muted); width: 72px; white-space: nowrap; }
.mini-prize b { font: 800 22px var(--display); flex: 1; }
.mini-prize strong { font-size: 14px; color: #2b3a35; }
.muted-note { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 12px 0 0; }
.muted-note b { color: var(--ink); }
.tip-panel { display: flex; gap: 12px; align-items: flex-start; }
.tip-icon { color: var(--accent-text); font-size: 20px; }
.tip-panel b { font-size: 15px; }
.tip-panel p { font-size: 14px; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }

/* Round ladder */
.games-panel { max-width: 1000px; margin-top: 16px; }
.ladder-intro { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.round-ladder { list-style: none; margin: 12px 0 0; padding: 0; }
.round-ladder > li { border-bottom: 1px solid #efefea; }
.round-ladder > li:last-child { border-bottom: 0; }
.ladder-round summary { display: flex; align-items: center; gap: 12px; padding: 10px 8px; min-height: 60px; cursor: pointer; list-style: none; border-radius: 8px; }
.ladder-round summary::-webkit-details-marker { display: none; }
.ladder-round summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 6px 4px 2px; transition: transform .2s; }
.ladder-round[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.ladder-round summary:hover { background: var(--soft); }
.ladder-round.current summary { background: #f4eee6; }
.ladder-number { flex: none; width: 44px; display: flex; flex-direction: column; align-items: center; font: 700 12px var(--font); letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.ladder-number b { font: 800 20px var(--display); letter-spacing: 0; color: var(--ink); }
.ladder-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ladder-copy strong { font: 700 16px var(--display); }
.ladder-copy small { font-size: 13px; color: var(--muted); }
.ladder-current { flex: none; font-size: 12px; letter-spacing: .5px; font-weight: 800; text-transform: uppercase; color: var(--accent-text); }
.ladder-detail { padding: 0 8px 14px 64px; display: flex; flex-direction: column; gap: 6px; }
.ladder-detail p { font-size: 15px; line-height: 1.55; color: #2b3a35; }
.ladder-detail small { font-size: 13px; color: var(--muted); }
.game-rule { font-size: 13px; color: #2b3a35; }
.game-rule i { font-style: normal; color: var(--accent-text); margin-left: 6px; font-weight: 700; }
.banned-words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.banned-words s { font-size: 13px; font-weight: 700; color: var(--danger); background: #fff; border: 1px solid #efc9bf; border-radius: 6px; padding: 2px 8px; text-decoration-thickness: 1.5px; }

/* Throne Duel */
.duel-board { max-width: 1000px; margin-top: 20px; border-color: var(--gold); border-width: 2px; }
.duel-board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.duel-timer { font: 800 24px var(--display); color: var(--ink); min-width: 48px; text-align: right; font-variant-numeric: tabular-nums; }
.duel-timer.urgent { color: var(--danger); }
.duel-timer.done { font-size: 16px; color: var(--danger); }
.duel-players { list-style: none; margin: 12px 0 10px; padding: 0; }
.duel-player { display: flex; align-items: center; gap: 10px; min-height: 46px; border-bottom: 1px solid #efefea; }
.duel-player.current { background: #f4eee6; border-radius: 8px; padding: 0 10px; margin: 0 -10px; }
.duel-player.out { color: #6b766f; }
.duel-player.out .duel-name { text-decoration: line-through; }
.duel-name { flex: 1; font-weight: 700; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.duel-kossi { font: 800 17px var(--display); white-space: nowrap; }
.duel-kossi small { font: 600 12px var(--font); color: var(--muted); }
.strike-dots { display: flex; gap: 4px; }
.strike-dots i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #c98b7d; }
.strike-dots i.on { background: var(--danger); border-color: var(--danger); }
.duel-reactions { border-top: 1px solid #efefea; margin-top: 6px; padding-top: 12px; }
.hype-meter { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; color: var(--accent-text); text-transform: uppercase; letter-spacing: 1px; }
.hype-meter i { flex: 1; height: 10px; border-radius: 10px; background: #f4eee6; overflow: hidden; }
.hype-meter b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #efaa48, #c56856); transition: width .6s ease; }
.hype-meter small { width: 40px; text-align: right; color: #2b3a35; font-size: 13px; }
.reaction-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.reaction-buttons button { min-height: 48px; border: 1px solid #d5d9d0; background: #fff; border-radius: 24px; padding: 0 14px; font-size: 22px; display: flex; align-items: center; gap: 6px; }
.reaction-buttons small { font-size: 13px; font-weight: 700; color: #2b3a35; }
.reaction-buttons button.pop { animation: reactionPop .35s ease; }
@keyframes reactionPop { 40% { transform: scale(1.2); } }
.reaction-feed { min-height: 28px; margin-top: 8px; font-size: 20px; letter-spacing: 3px; overflow: hidden; white-space: nowrap; text-overflow: clip; }
.final-panel { max-width: 1000px; margin-top: 20px; background: var(--ink); color: #fff; border-color: var(--ink); }
.final-panel .eyebrow { color: #c4d0c6; }
.final-panel h2 { color: var(--gold); }
.final-standings { list-style: none; margin: 12px 0 0; padding: 0; }
.final-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-height: 48px; border-bottom: 1px solid #ffffff1f; }
.final-row:last-child { border-bottom: 0; }
.final-place { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--display); background: #ffffff1f; flex: none; }
.final-row.place-1 .final-place { background: var(--gold); color: var(--ink); }
.final-name { flex: 1; font-weight: 700; font-size: 15px; min-width: 0; }
.final-kossi { font: 800 17px var(--display); }
.final-kossi small { font: 600 12px var(--font); opacity: .85; }
.prize-won { color: var(--gold); font: 800 16px var(--display); min-width: 52px; text-align: right; }
.prize-missed { font-size: 13px; color: #c4d0c6; min-width: 52px; text-align: right; }
.duel-board .final-row { border-bottom-color: #efefea; }
.duel-board .final-place { background: #eef0e9; }
.duel-board .prize-missed { color: var(--muted); }
.duel-board .prize-won { color: var(--accent-text); }

/* ---- Leaderboard ---- */
.leaderboard { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; max-width: 1000px; margin-top: 20px; align-items: start; }
.house-cup, .pc-panel { max-width: 1000px; margin-top: 20px; }
.standings-meta { font-size: 14px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.standings-head { display: flex; gap: 12px; margin-top: 14px; padding: 0 0 6px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }
.standings-head span:first-child { flex: 1; padding-left: 34px; }
.standings-head span:nth-child(2) { width: 84px; text-align: right; }
.standings-head span:last-child { width: 64px; text-align: right; }
.standings { list-style: none; margin: 0; padding: 0; }
.standing-row { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid #efefea; }
.standing-rank { width: 22px; font: 800 14px var(--display); color: var(--muted); flex: none; }
.standing-name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; overflow-wrap: anywhere; }
.status-chip { font-size: 12px; font-weight: 800; letter-spacing: .3px; padding: 2px 8px; border-radius: 20px; background: #f8ece8; color: #8a3a2c; }
.status-chip.kept { background: #f4eee6; color: #6f4718; }
.status-chip.back { background: #e8edf7; color: #34446a; }
.standing-score { font: 800 18px var(--display); white-space: nowrap; width: 84px; text-align: right; }
.standing-score small, .standing-empire small { font: 600 12px var(--font); color: var(--muted); }
.standing-empire { width: 64px; text-align: right; font: 700 15px var(--display); color: #2b3a35; white-space: nowrap; }
.standing-row.out .standing-name, .standing-row.out .standing-score { color: #4d5a52; }
.oracle-leaders .standing-score, .oracle-leaders .standing-name { width: auto; }
.survival-marker { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: var(--danger); font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.survival-marker::before, .survival-marker::after { content: ""; flex: 1; border-top: 1px dashed #d9a194; }
.badge-icons { display: inline-flex; gap: 4px; font-size: 15px; cursor: default; }
.badge-icons small { font-size: 12px; font-weight: 700; color: var(--accent-text); margin-left: 1px; }
.badge-legend { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.leaderboard-side { display: grid; gap: 12px; }
.player-chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.player-chips li { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 20px; background: #e3efdc; color: #24492b; font-size: 14px; font-weight: 700; }
.player-chips small { font-size: 12px; color: #24492b; font-weight: 600; }
.knocked-list { list-style: none; margin: 10px 0 0; padding: 0; }
.knocked-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #efefea; font-size: 14px; color: #2b3a35; }
.knocked-list li:last-child { border-bottom: 0; }
.knocked-list small { font-size: 12px; font-weight: 700; color: var(--danger); white-space: nowrap; }
.player-chips .empty-chip, .knocked-list .empty-chip { background: none; color: var(--muted); padding: 0; font-weight: 500; border: 0; }
.empty-state { max-width: 560px; margin-top: 24px; text-align: center; padding: 32px; }
.empty-art { width: 100px; height: 100px; background: #edf0e9; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; position: relative; }
.empty-art span { font-size: 27px; color: var(--accent-text); }
.empty-art i { position: absolute; width: 133px; height: 133px; border: 1px solid #e5e8df; border-radius: 50%; }
.empty-art b { position: absolute; right: -9px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 12px; }
.empty-state h2 { font: 700 22px var(--display); margin: 0; }
.empty-state p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 360px; margin: 8px auto 16px; }
#houseBars { display: grid; gap: 10px; margin-top: 12px; }
.house-row { display: flex; align-items: center; gap: 12px; }
.house-rank { width: 18px; font: 800 14px var(--display); color: var(--muted); }
.house-name { width: 170px; font: 700 15px var(--display); display: flex; flex-direction: column; }
.house-name small { font: 600 12px var(--font); color: var(--muted); }
.house-bar { flex: 1; height: 14px; border-radius: 10px; background: #f2f2ec; overflow: hidden; }
.house-bar b { display: block; height: 100%; border-radius: 10px; transition: width .6s ease; }
.house-points { width: 76px; text-align: right; font: 800 17px var(--display); white-space: nowrap; }
.house-points small { font: 600 12px var(--font); color: var(--muted); }
#pcEntries { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 12px; }
.pc-entry { border: 1px solid #e6e6df; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pc-entry.voted { border-color: var(--gold); background: #fffaf0; }
.pc-entry.winner { border-color: var(--gold); box-shadow: 0 0 0 3px #efaa4830; }
.pc-entry header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc-entry header b { font: 700 16px var(--display); }
.pc-votes { font-size: 13px; font-weight: 700; color: var(--accent-text); }
.pc-entry blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: #2b3a35; white-space: pre-wrap; max-height: 200px; overflow: auto; }
.pc-entry audio { width: 100%; }
.pc-entry button { align-self: flex-start; }
.pc-mine { font-size: 13px; color: var(--muted); font-weight: 700; }

/* ---- Practice ---- */
.daily-challenge, .practice-board { max-width: 1050px; margin-top: 22px; }
.daily-challenge h2 { max-width: 720px; }
.streak-chip { font-size: 14px; font-weight: 800; padding: 6px 12px; border-radius: 20px; background: #fdf6e9; border: 1px solid #f1dfba; color: var(--accent-text); white-space: nowrap; }
.challenge-image { display: block; max-width: 100%; max-height: 360px; border-radius: 9px; margin: 4px 0 12px; }
.challenge-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.challenge-choice { min-height: 52px; border: 1px solid #c8cec4; border-radius: 10px; background: #fff; color: var(--ink); font: 700 15px var(--font); padding: 10px 14px; text-align: left; }
.challenge-choice:not(:disabled):hover { border-color: #b78952; background: #fdf9f1; }
.challenge-choice.right { background: #e3efdc; border-color: #9cc59a; color: #24492b; }
.challenge-choice.right::before { content: "✓ "; }
.challenge-choice.wrong { background: #f8ece8; border-color: #e3b3a8; color: #8a3a2c; }
.challenge-choice.wrong::before { content: "✗ "; }
.challenge-choice:disabled { cursor: default; }
.challenge-feedback { font: 800 18px var(--display); margin: 12px 0 4px; }
.challenge-feedback.right { color: var(--success); }
.challenge-feedback.wrong { color: var(--danger); }
.streak-mini { font-size: 12px; margin-left: 6px; color: var(--accent-text); }
.hall-panel { max-width: 1050px; margin-top: 16px; }
.hall-round h3 { font: 700 15px var(--display); color: var(--accent-text); margin: 14px 0 6px; }
.hall-round figure { margin: 0 0 8px; padding: 12px 14px; border-left: 3px solid var(--gold); background: #fffaf0; border-radius: 0 8px 8px 0; }
.hall-round blockquote { margin: 0; font: 600 16px/1.55 var(--display); color: var(--ink); }
.hall-round figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 700; }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; max-width: 1050px; }
.practice-card { display: flex; flex-direction: column; padding: 18px; min-height: 230px; }
.practice-number { font-size: 12px; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; }
.practice-icon { width: 42px; height: 42px; border-radius: 11px; background: #e9eee7; color: #4d6a4a; display: grid; place-items: center; font-size: 24px; margin-top: 16px; }
.practice-icon.orange { color: var(--accent-text); background: #f4eee6; font-size: 17px; font-weight: 700; }
.practice-icon.green { color: #2f6b64; background: #e8f0eb; }
.practice-card h2 { font: 700 18px var(--display); margin: 12px 0 6px; }
.practice-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.practice-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid #ededeb; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.practice-card p + .practice-bottom { margin-top: auto; }
.game-tips { max-width: 1050px; margin-top: 16px; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 14px; }
.game-tip { border: 1px solid #e6e6df; border-radius: 10px; padding: 14px; }
.game-tip-round { font-size: 12px; letter-spacing: 1px; font-weight: 800; color: var(--accent-text); text-transform: uppercase; }
.game-tip h3 { font: 700 16px var(--display); margin: 4px 0 6px; }
.game-tip ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.game-tip li { font-size: 14px; line-height: 1.5; color: #2b3a35; }
.practice-callout { max-width: 1050px; margin-top: 16px; background: #ecefe8; border-radius: 12px; padding: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.practice-callout > span { font-size: 20px; color: var(--accent-text); }
.practice-callout p { font-size: 14px; line-height: 1.55; color: var(--muted); flex: 1 1 220px; }
.practice-callout p b { font-size: 15px; color: var(--ink); }
.practice-callout a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-size: 15px; color: var(--accent-text); text-decoration: none; font-weight: 800; }

/* Report cards */
.report-card { border: 1px solid #e6e6df; border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.report-card summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; min-height: 52px; cursor: pointer; list-style: none; }
.report-card summary::-webkit-details-marker { display: none; }
.report-card[open] summary { background: var(--soft); }
.report-round { flex: 1 1 180px; font: 700 15px var(--display); }
.report-total { font: 800 19px var(--display); }
.report-total small { font: 600 12px var(--font); color: var(--muted); }
.report-rank { font-size: 13px; color: var(--muted); font-weight: 700; }
.report-outcome { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 20px; background: #e3efdc; color: #24492b; }
.outcome-out .report-outcome { background: #f8ece8; color: #8a3a2c; }
.outcome-saved .report-outcome { background: #f4eee6; color: #6f4718; }
.outcome-final .report-outcome, .outcome-pending .report-outcome { background: var(--ink); color: var(--gold); }
.report-table-wrap { overflow-x: auto; margin: 8px 14px 0; }
.report-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.report-card th { text-align: left; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 4px 0; }
.report-card td { padding: 6px 0; border-top: 1px solid #f0f0ea; }
.report-card td:nth-child(n+2), .report-card th:nth-child(n+2) { text-align: right; padding-left: 8px; white-space: nowrap; }
.report-card tr.penalty td { color: var(--danger); }
.report-line { font-size: 14px; color: var(--muted); margin: 8px 14px 0; }
.report-tip { margin: 8px 14px 14px; padding: 10px 12px; border-radius: 8px; background: #fdf6e9; font-size: 14px; line-height: 1.55; color: #5b4a2c; }
.report-tip b { margin-right: 4px; }

/* ---- Dialogs, toast ---- */
.info-dialog { border: 0; border-radius: 14px; padding: 28px; width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow: auto; color: var(--ink); box-shadow: 0 25px 100px #142b2730; }
.info-dialog::backdrop { background: #10221eaa; }
.dialog-close { position: absolute; right: 10px; top: 8px; width: var(--tap); height: var(--tap); background: none; border: 0; border-radius: 50%; font-size: 26px; line-height: 1; color: #3f4b43; }
.info-dialog h2 { font: 800 26px/1.15 var(--display); letter-spacing: -.8px; margin: 10px 0; padding-right: 30px; }
.info-dialog h3 { font: 700 16px var(--display); margin: 16px 0 4px; }
.info-dialog p { font-size: 15px; line-height: 1.6; color: #2b3a35; }
.help-dialog { width: min(560px, calc(100% - 32px)); }
.report-dialog { width: min(640px, calc(100% - 32px)); }
.report-dialog h2 { font-size: 22px; }
.image-dialog { width: min(1200px, calc(100% - 16px)); padding: 0; }
.image-dialog-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 6px 56px 6px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.image-dialog-bar h2 { flex: 1; font-size: 17px; margin: 0; padding: 0; }
.image-dialog .dialog-close { top: 6px; }
.image-dialog-frame { overflow: auto; max-height: calc(100vh - 120px); background: #1b2925; display: grid; place-items: center; }
.image-dialog-frame img { display: block; max-width: 100%; height: auto; }
.image-dialog-frame.actual img { max-width: none; }
.code-digits { font: 800 34px var(--display); letter-spacing: 8px; margin: 10px 0 14px; color: var(--ink); }
.toast { position: fixed; z-index: 40; bottom: 24px; left: 50%; transform: translate(-50%, 15px); opacity: 0; background: var(--ink); color: #fff; border-radius: 10px; padding: 12px 18px; font-size: 15px; line-height: 1.4; max-width: min(520px, calc(100% - 32px)); width: max-content; transition: opacity .2s, transform .2s; pointer-events: none; box-shadow: 0 10px 30px #142b2740; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Admin ---- */
.admin-login { max-width: 560px; margin-top: 18px; }
.admin-form { display: grid; gap: 8px; margin-top: 16px; }
.admin-form label { margin-top: 6px; }
.admin-form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .admin-form textarea, .admin-form select { width: 100%; min-height: 46px; border: 1px solid var(--field); border-radius: 8px; background: #fff; padding: 10px 12px; color: var(--ink); font: 16px var(--font); }
.admin-form input[type="file"] { font-size: 14px; min-height: 44px; }
.admin-form textarea { resize: vertical; line-height: 1.5; }
.admin-form .dark-button { justify-self: start; margin-top: 6px; }
.admin-form small, .banned-words-field small, .image-upload small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.form-hint { display: block; margin: -2px 0 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.admin-tabs { position: sticky; top: 0; z-index: 7; display: flex; gap: 6px; overflow-x: auto; margin: 18px 0 14px; padding: 8px 0; background: var(--paper); scrollbar-width: thin; }
.admin-tabs button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid #c8cec4; background: #fff; font-size: 14px; font-weight: 700; color: var(--ink); }
.admin-sections { display: flex; flex-direction: column; gap: 14px; max-width: 1000px; }
.admin-sections > * { margin: 0; scroll-margin-top: 70px; }
.admin-sections .admin-overview { order: -3; }
.admin-sections.idle #adminLaunch { order: -2; }
.admin-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.admin-status-card h2 { font-size: 18px; }
.admin-status-card p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 6px 0 0; }
#adminRestartSeasonButton { display: flex; }
.competition-status-card .status-timing { margin: 12px 0 0; }
.subscriber-count { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.subscriber-count > span:not(.count-divider) { font: 800 26px var(--display); color: var(--ink); }
.subscriber-count small { font-size: 13px; color: var(--muted); }
.count-divider { height: 16px; width: 1px; background: #d5d9d0; margin: 0 8px; }
.admin-launch-form { max-width: 600px; }
.admin-form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-form-pair span { display: grid; gap: 6px; align-content: start; }
.banned-words-field { display: grid; gap: 6px; }
.image-upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.image-upload img { width: 112px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid #d5d9d0; }
.image-upload > div { display: grid; gap: 6px; flex: 1 1 220px; }
.image-upload .text-link { justify-self: start; }
.answers-timing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #f4f1e8; font-size: 14px; color: #2b3a35; }
.answers-timing .answers-timing-text { flex: 1 1 220px; font-weight: 600; }
.answers-timing .phase-pill { margin-right: 2px; }
.answers-timing .dark-button { min-height: var(--tap); }
.answers-timing .text-link { border: 1px solid #c9965a; border-radius: 8px; padding: 0 14px; background: #fff; }
.admin-notifications { display: grid; }
.admin-notification { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #ededeb; }
.admin-notification:last-child { border-bottom: 0; }
.admin-notification-icon { color: var(--accent-text); font-size: 16px; }
.admin-notification strong { font-size: 15px; }
.admin-notification p { margin: 4px 0; color: #2b3a35; font-size: 14px; line-height: 1.5; }
.admin-notification small, .empty-history { font-size: 13px; color: var(--muted); }
.empty-history { margin: 12px 0 4px; }
.notification-round { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: #f4eee6; color: #6f4718; font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.participant-count { font-size: 14px; font-weight: 700; color: #2b3a35; }
.participant-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.participant-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.participant-row { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto auto; align-items: center; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid #efefea; }
.participant-row:last-child { border-bottom: 0; }
.participant-row input { min-width: 0; min-height: var(--tap); border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 0 10px; color: var(--ink); font: 600 16px var(--font); }
.participant-row input:hover { border-color: #d5d9d0; }
.participant-row input:focus { border-color: var(--field); background: #fff; }
.participant-member, .participant-house { min-height: var(--tap); border: 1px solid var(--field); border-radius: 8px; background: #fff; padding: 0 8px; font: 15px var(--font); color: var(--ink); max-width: 170px; }
.participant-status { justify-self: start; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 20px; background: #e3efdc; color: #24492b; white-space: nowrap; }
.participant-status.out { background: #f8ece8; color: #8a3a2c; }
.participant-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.participant-remove, .participant-remove span { color: var(--danger); }
.participant-actions .participant-remove { margin-left: auto; }
.unlinked-members h3 { font: 700 15px var(--display); margin: 16px 0 6px; }
.unlinked-members ul { list-style: none; margin: 0; padding: 0; }
.unlinked-members li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 6px 0; border-bottom: 1px solid #efefea; font-size: 15px; font-weight: 700; }
.unlinked-members li > span { flex: 1 1 140px; overflow-wrap: anywhere; }
.judging-head { flex-wrap: wrap; }
.judging-select { min-height: var(--tap); border: 1px solid var(--field); border-radius: 8px; background: #fff; padding: 0 10px; color: var(--ink); font: 15px var(--font); max-width: 100%; }
.judging-meta { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.judging-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.judging-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: var(--sand); }
.judging-filter button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 700; color: #3f4b43; }
.judging-filter button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #142b2726; }
#judgingJump { min-height: var(--tap); border: 1px solid var(--field); border-radius: 8px; background: #fff; padding: 0 10px; font: 15px var(--font); max-width: 100%; }
.judging-players { display: grid; gap: 10px; }
.judge-card { border: 1px solid #e6e6df; border-radius: 10px; padding: 12px 14px; scroll-margin-top: 70px; }
.judge-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; }
.judge-card header b { font: 700 16px var(--display); flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.judge-total { font: 800 20px var(--display); white-space: nowrap; }
.judge-total small { font: 600 12px var(--font); color: var(--muted); }
.judge-verdict { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 20px; background: #eef0e9; color: #3f4b43; }
.judge-verdict.in { background: #e3efdc; color: #24492b; }
.judge-verdict.out { background: #f8ece8; color: #8a3a2c; }
.judge-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; }
.judge-line { display: flex; align-items: center; gap: 6px; min-height: 48px; }
.judge-line > span { flex: 1; font-size: 14px; font-weight: 600; }
.judge-line small { color: var(--accent-text); font-weight: 800; }
.judge-line button { width: var(--tap); height: var(--tap); border: 1px solid #c8cec4; border-radius: 8px; background: #fff; color: var(--ink); font-size: 20px; font-weight: 700; flex: none; }
.judge-line button[data-delta="1"] { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.judge-line button:disabled { opacity: .35; }
.judge-line output { min-width: 26px; text-align: center; font: 800 16px var(--display); }
.judging-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.judging-actions .launch-button { flex: 1 1 280px; max-width: 440px; }
.judge-recording { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.judge-recording audio { flex: 1; min-width: 0; }
.judge-recording small { font-size: 13px; font-weight: 700; color: var(--muted); }
.judge-recording.empty { font-size: 14px; color: var(--muted); }
.judge-answer { white-space: pre-wrap; font-size: 15px; line-height: 1.6; background: var(--soft); border-radius: 8px; padding: 10px 12px; margin: 0 0 8px; overflow-wrap: anywhere; }
.judge-answer mark { background: #f8ece8; color: #8a3a2c; font-weight: 700; border-radius: 3px; padding: 0 2px; text-decoration: line-through; }
.judge-answer small { display: block; white-space: normal; margin-top: 6px; font-size: 13px; color: var(--success); font-weight: 700; }
.judge-answer small.banned-count { color: var(--danger); }
.judge-phrases { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.judge-phrase { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: 14px; font-weight: 600; color: #5b4a2c; background: #fdf6e9; border: 1px solid #f1dfba; border-radius: 16px; padding: 2px 2px 2px 12px; }
.judge-phrase button { width: 36px; height: 36px; border: 0; background: none; color: var(--accent-text); font-size: 18px; line-height: 1; border-radius: 50%; }
.judge-phrase-note { font-size: 13px; color: var(--muted); }
.duel-console .judging-meta { margin-top: 4px; }
.duel-order { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; font-size: 15px; font-weight: 700; }
.duel-current { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: #f4eee6; margin-bottom: 10px; }
.duel-current small { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #6f4718; font-weight: 800; }
.duel-current b { font: 800 22px var(--display); }
.duel-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 8px; }
.duel-buttons button { min-height: 58px; border-radius: 10px; border: 1px solid #c8cec4; background: #fff; color: var(--ink); font: 800 17px var(--display); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; }
.duel-buttons button small { font: 600 12px var(--font); color: var(--muted); }
.duel-buttons .duel-add { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.duel-buttons .duel-add small { color: #dce5d9; }
.duel-buttons .duel-strike { color: var(--danger); border-color: #e3b3a8; font-size: 14px; }
.duel-buttons .duel-next { font-size: 15px; }
.duel-buttons button:disabled { opacity: .45; }
.console-hype { font-size: 14px; color: var(--accent-text); margin: 4px 0 0; }
.houses-admin, .comeback-admin, .challenge-admin { margin: 0; }
.house-edit { display: grid; gap: 8px; margin-bottom: 10px; }
.house-edit span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.house-edit input { min-height: var(--tap); border: 1px solid var(--field); border-radius: 8px; padding: 0 10px; font: 16px var(--font); }
.house-crest { width: 56px; text-align: center; }
.house-name-input { flex: 1 1 160px; min-width: 0; }
.house-edit small { font-size: 13px; color: var(--muted); }
.comeback-admin .judging-actions select { min-height: var(--tap); border: 1px solid var(--field); border-radius: 8px; padding: 0 10px; font: 15px var(--font); background: #fff; }
.comeback-admin .launch-button { width: 100%; max-width: 440px; }
.challenge-options { display: grid; gap: 6px; }
.challenge-options span { display: flex; align-items: center; gap: 10px; }
.challenge-list { margin-top: 14px; display: grid; }
.challenge-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid #efefea; }
.challenge-date { font-size: 13px; font-weight: 800; color: var(--accent-text); }
.challenge-q { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.challenge-q b { font-size: 15px; }
.challenge-q small { font-size: 13px; color: var(--muted); }
.challenge-stats { font-size: 13px; color: #2b3a35; font-weight: 700; white-space: nowrap; }

/* ---- Wide screens ---- */
@media (min-width: 1500px) {
  .main-content { padding-left: 64px; padding-right: 64px; }
  .hero-card { min-height: 300px; padding: 34px; }
  .hero-art { right: 12%; }
}

/* ---- Tablets ---- */
@media (max-width: 1100px) {
  .sidebar { width: 224px; }
  .main-content { margin-left: 224px; padding: 0 28px 24px; }
  .hero-art { right: 0; width: 38%; }
  .lower-grid { grid-template-columns: 1fr; }
  .round-stage.two { grid-template-columns: 1fr; }
  .round-stage.two .round-image-panel { position: static; }
}

/* ---- Phones ---- */
@media (max-width: 760px) {
  .sidebar { display: none; }
  .main-content { margin: 0; padding: 0 16px calc(88px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 60px; margin: 0 -16px; padding: 0 16px; gap: 8px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-height: var(--tap); }
  .mobile-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .mobile-brand .brand-mark img { width: 27px; height: 27px; }
  .mobile-brand .brand-name { font-size: 12px; }
  .breadcrumb, .today-label, .icon-button { display: none; }
  .top-actions { margin-left: auto; gap: 8px; }
  .top-account { display: inline-flex; }
  .join-button { padding: 0 12px; }
  .welcome-row { padding: 26px 0 18px; }
  .welcome-row h1, .subview-head h1, .subview > h1 { font-size: 36px; letter-spacing: -1.2px; }
  .welcome-stamp { display: none; }
  .hero-card { flex-direction: column; min-height: 0; padding: 20px; border-radius: 12px; }
  .hero-content { max-width: none; }
  .hero-card h2 { font-size: 27px; }
  .hero-art { position: absolute; right: -40px; top: -30px; width: 170px; height: 170px; opacity: .35; }
  .hero-art .art-arch, .hero-art .art-caption, .hero-art .orbit-two, .hero-art .star-b, .hero-art .art-orbit-dot { display: none; }
  .hero-art .orbit { width: 150px; height: 150px; }
  .hero-art .art-sun { width: 70px; height: 70px; right: 50px; top: 60px; }
  .hero-cta { width: 100%; justify-content: space-between; }
  .section-heading h2, .panel h2 { font-size: 20px; }
  .prize-grid { grid-template-columns: 1fr; gap: 8px; }
  .prize-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px; padding: 12px 14px; }
  .prize-top { grid-column: 1; }
  .prize-money { grid-column: 2; margin: 0; text-align: right; font-size: 26px; }
  .prize-foot { grid-column: 1 / -1; margin-top: 4px; padding-top: 8px; }
  .lower-grid { gap: 12px; }
  .panel { padding: 16px; }
  .section-block { margin-top: 22px; }
  .subview { padding-top: 26px; }
  .round-status { margin-top: 16px; padding: 12px; }
  .round-status.is-sticky { top: 0; margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .round-status-clock { font-size: 20px; }
  .competition-columns { grid-template-columns: 1fr; }
  .ladder-detail { padding-left: 8px; }
  .ladder-number { width: 36px; }
  .leaderboard { grid-template-columns: 1fr; }
  .standings-head span:nth-child(2) { width: 64px; }
  .standing-score { width: 64px; font-size: 17px; }
  .standing-empire { width: 52px; }
  .standings-head span:last-child { width: 52px; }
  .house-name { width: 120px; }
  .house-points { width: 64px; }
  .practice-grid { grid-template-columns: 1fr; gap: 10px; }
  .practice-card { min-height: 0; }
  .empty-state { padding: 24px 16px; }
  .info-dialog { padding: 22px 18px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .admin-overview { grid-template-columns: 1fr; }
  .admin-form-pair { grid-template-columns: 1fr; }
  .participant-row { grid-template-columns: minmax(0, 1fr) auto; }
  .participant-row input { grid-column: 1; }
  .participant-row .participant-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .participant-member, .participant-house { max-width: none; width: 100%; }
  .participant-row .participant-member { grid-column: 1 / -1; }
  .participant-row .participant-house { grid-column: 1 / -1; }
  .challenge-row { grid-template-columns: minmax(0, 1fr) auto; }
  .challenge-date { grid-column: 1 / -1; }
  .judging-select { width: 100%; }
  .judging-head > div { flex: 1 1 100%; }
  .mobile-nav { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; min-height: 64px; background: #fbfaf6; border-top: 1px solid var(--line); display: flex; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav a { flex: 1; position: relative; min-height: 64px; color: #4d5a52; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; text-decoration: none; }
  .mobile-nav a.active { color: var(--ink); font-weight: 800; }
  .mobile-nav a.active .ico { color: var(--accent-text); }
  .mobile-nav .ico { width: 22px; height: 22px; }
  .mobile-nav .nav-dot { position: absolute; top: 10px; left: calc(50% + 10px); margin: 0; }
}
@media (max-width: 480px) {
  .mobile-brand .brand-name { display: none; }
  .top-account { max-width: 128px; }
}
@media (max-width: 360px) {
  .main-content { padding-left: 12px; padding-right: 12px; }
  .topbar { margin: 0 -12px; padding: 0 12px; }
  .join-button span:first-child { font-size: 13px; }
}

/* Less motion for people who ask for it. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.judge-verdict.pending { background: #eef0e9; color: #5f6b63; }

/* WhatsApp group status on the member card. */
.group-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 16px 0; padding: 14px 16px; border-radius: 12px; background: #eef4ec; }
.group-status b { display: block; font-size: 15px; color: var(--ink, #142b27); }
.group-status small { display: block; margin-top: 2px; font-size: 13px; color: #5f6b63; }
.group-status.in { background: #f4f2ec; }
.group-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.group-actions .dark-button, .group-actions .text-link { min-height: 44px; }
.group-mark { margin-left: 6px; font-size: 12px; font-weight: 700; color: #47734e; }
.member-email { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.field-note { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.member-email-form { margin: 14px 0 0; display: grid; gap: 6px; }
.member-email-form label { font-size: 14px; font-weight: 700; }
.member-email-row { display: flex; gap: 8px; }
.member-email-row input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid var(--field); border-radius: 8px; padding: 0 14px; font: 600 16px var(--font); color: var(--ink); background: #fff; }

/* Voice attempts: the warning, the material shown inside the attempt, the recording clock. */
.attempt-warning { margin: 14px 0; padding: 14px 16px; border-radius: 12px; background: #fff3e6; border: 1px solid #f0c48f; color: #5c3d12; font-size: 14px; line-height: 1.5; }
.attempt-warning b { display: block; font-size: 15px; margin-bottom: 4px; color: #8f4a12; }
.attempt-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 14px; line-height: 1.45; }
.attempt-check input { width: 22px; height: 22px; margin-top: 1px; flex: none; }
.attempt-material { margin: 14px 0; }
.attempt-material .round-image { width: 100%; border-radius: 12px; display: block; }
.attempt-statements { white-space: pre-wrap; margin: 0; padding: 14px 16px; border-radius: 12px; background: #f4f2ec; font-size: 15px; line-height: 1.6; }
.attempt-flash { position: relative; }
.attempt-flash .flash-countdown { position: absolute; top: 10px; right: 10px; }
.attempt-ended { margin: 14px 0; padding: 14px 16px; border-radius: 12px; background: #fbeceb; color: #7a2a20; font-size: 14px; line-height: 1.5; }
.attempt-steps { margin: 4px 0 12px; padding-left: 22px; font-size: 15px; line-height: 1.55; }
.attempt-steps li { margin-bottom: 4px; }
.attempt-tips { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #f4f2ec; font-size: 14px; line-height: 1.5; }
.attempt-tips b { display: block; margin-bottom: 4px; }
.attempt-tips ul { margin: 0; padding-left: 18px; }
.attempt-zoom { position: relative; cursor: zoom-in; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 14px; background: #142b27cc; color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.mic-verdict { margin: 10px 0; font-weight: 700; }
/* The controls stay in reach at the bottom of the screen while the image or statements scroll. */
.pitch-controls { position: sticky; bottom: 0; z-index: 5; margin-top: 12px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.pitch-controls .pitch-actions { margin-top: 4px; }
.pitch-progress { position: relative; height: 8px; margin: 2px 0 10px; border-radius: 4px; background: #e8e5dc; }
.pitch-progress i { position: absolute; inset: 0; border-radius: 4px; background: var(--success); transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }
.pitch-min { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--ink); }
.pitch-level { display: inline-block; width: 72px; height: 8px; margin-left: auto; border-radius: 4px; background: #e8e5dc; overflow: hidden; }
.pitch-level.wide { display: block; width: 100%; max-width: 360px; height: 12px; margin: 6px 0; border-radius: 6px; }
.pitch-level i { display: block; height: 100%; background: var(--accent-text); transform: scaleX(.04); transform-origin: left; transition: transform .08s linear; }
.pitch-dot.paused { animation: none; background: #9aa39c; }
.pitch-hint { margin: 2px 0 6px; font-size: 14px; color: var(--muted); }
.pitch-count { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 12px; }
.pitch-count b { font: 800 40px var(--display); }
.pitch-send { height: 6px; margin: 8px 0; border-radius: 3px; background: #e8e5dc; overflow: hidden; }
.pitch-send i { display: block; height: 100%; background: var(--success); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.attempt-left { margin: 8px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.attempt-left:empty { display: none; }
.attempt-left.warn { color: #a8432f; font-weight: 700; }
.status-play { min-height: var(--tap); padding: 0 16px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; }
/* During an attempt the menu bar and the links that leave the site hide, so a stray tap can't end
   it; pulling down can't reload the page either. */
body.in-attempt .mobile-nav, body.in-attempt .join-button, body.in-attempt .whatsapp-cta, body.in-attempt .live-final-link { display: none; }
html:has(body.in-attempt), body.in-attempt { overscroll-behavior-y: none; }
.judging-fresh { margin: 0 0 12px; }
.share-round { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line, #e6e6df); display: grid; gap: 8px; }
.share-round code { display: block; padding: 10px 12px; border-radius: 10px; background: #f4f2ec; font-size: 14px; overflow-wrap: anywhere; }
.share-round .pitch-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.live-final-link { display: inline-flex; margin: 0 0 16px; min-height: 44px; }
