/* Rookery Fusion — emerald glass and gold. A skin over the base design system: it only retunes tokens and component looks.
   Fonts (SIL OFL 1.1): Cormorant Garamond, Manrope, Barlow Semi Condensed — see fonts/fusion/LICENSE.md. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('../fonts/fusion/Cormorant-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('../fonts/fusion/Cormorant-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/fusion/Cormorant-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/fusion/Cormorant-italic-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/fusion/Manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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-weight: 400 800; font-display: swap; src: url('../fonts/fusion/Manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/fusion/Barlow-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/fusion/Barlow-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/fusion/Barlow-800.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --cond: 'Barlow Semi Condensed', 'Arial Narrow', 'Manrope', sans-serif;
  --gold: #c9a54a; --gold-hi: #e6c86e; --gold-pale: #f3e2a6; --gold-deep: #6b5118;
  --emerald: #1f6b4a; --teal: #2dd4bf;
  --bg: #08130e; --bg-2: #0c1a14; --surface: #0f1f18; --card: rgba(255, 255, 255, .055); --card-2: rgba(255, 255, 255, .085);
  --border: rgba(201, 165, 74, .2); --text: #efe8d6; --muted: #a3b2a6; --faint: #74857a;
  --accent: #e6c86e; --accent-2: #c9a54a; --accent-ink: #0b1410; --accent-soft: rgba(201, 165, 74, .15);
  --sand: #e6c86e; --sand-soft: rgba(201, 165, 74, .14); --good: #2dd4bf;
  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
  --glow: 0 4px 0 var(--gold-deep), 0 10px 24px rgba(0, 0, 0, .35);
  --grad-hero: none;
  --glass: rgba(255, 255, 255, .06); --glass-line: rgba(201, 165, 74, .22);
  --radius: 20px; --radius-sm: 14px;
}
:root[data-theme='light'] {
  --bg: #f4efe2; --bg-2: #ece6d4; --surface: #fbf8ef; --card: rgba(255, 255, 255, .72); --card-2: rgba(255, 255, 255, .95);
  --border: rgba(138, 106, 31, .22); --text: #1a2a22; --muted: #566a5f; --faint: #85948a;
  --accent: #7d5f12; --accent-2: #a8822f; --accent-ink: #0b1410; --accent-soft: rgba(168, 130, 47, .14);
  --sand: #7d5f12; --sand-soft: rgba(168, 130, 47, .14); --good: #0f7a63;
  --shadow: 0 14px 36px rgba(60, 50, 20, .14);
  --glow: 0 4px 0 #8a6a1f, 0 10px 22px rgba(60, 50, 20, .18);
  --glass: rgba(255, 255, 255, .7); --glass-line: rgba(138, 106, 31, .25);
}

/* ---- atmosphere: three soft glows behind everything ---- */
body { background: var(--bg); font-family: var(--font); }
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(640px 640px at -2% -4%, rgba(31, 107, 74, .62), transparent 70%),
    radial-gradient(520px 520px at 104% 18%, rgba(201, 165, 74, .26), transparent 70%),
    radial-gradient(520px 520px at 42% 108%, rgba(45, 212, 191, .16), transparent 70%);
}
:root[data-theme='light'] body::before {
  background:
    radial-gradient(640px 640px at -2% -4%, rgba(31, 107, 74, .18), transparent 70%),
    radial-gradient(520px 520px at 104% 18%, rgba(201, 165, 74, .3), transparent 70%),
    radial-gradient(520px 520px at 42% 108%, rgba(45, 212, 191, .14), transparent 70%);
}
.app { position: relative; z-index: 1; }
.splash { position: fixed; z-index: 100; background: var(--bg); }
.main { background: none; }

/* ---- type ---- */
h1, h2, .page-head h1, .page-head h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
h2 { font-size: 1.7rem; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.eyebrow { font-family: var(--cond); font-weight: 700; letter-spacing: .16em; font-size: .78rem; color: var(--gold-hi); }
:root[data-theme='light'] .eyebrow { color: #7d5f12; }
.chip, .tc-btn, .badge, .nav-badge { font-family: var(--cond); letter-spacing: .04em; }

/* ---- shell: a floating glass sidebar ---- */
.app { padding: 22px; gap: 22px; }
@media (min-width: 901px) { .app { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); } }
.sidebar {
  top: 22px; height: calc(100vh - 44px); border-radius: 26px; padding: 22px 14px; border: 1px solid var(--glass-line);
  background: var(--glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow-y: auto;
}
.brand { padding: 2px 8px 20px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: .14em; text-transform: uppercase; }
.brand-sub { font-family: var(--cond); letter-spacing: .08em; }
.nav a { border-radius: 14px; font-weight: 600; border: 1px solid transparent; }
.nav a:hover { background: rgba(201, 165, 74, .12); color: var(--gold-pale); }
:root[data-theme='light'] .nav a:hover { color: #5a420c; }
.nav a.active { background: linear-gradient(180deg, var(--gold-pale), var(--gold)); color: #0b1410; box-shadow: 0 3px 0 var(--gold-deep), 0 8px 18px rgba(0, 0, 0, .3); }
.nav a.active .icon { color: #0b1410; }
.sidebar .user-card, .sidebar .streak-chip { background: linear-gradient(150deg, rgba(201, 165, 74, .22), rgba(31, 107, 74, .22)); border: 1px solid rgba(201, 165, 74, .38); border-radius: 18px; }
.sidebar .btn.admin-link { border-radius: 12px; }
.view { padding: 8px 8px 60px; max-width: 1280px; }

/* ---- surfaces ---- */
.card, .hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .04)); border: 1px solid var(--glass-line); border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.card.hover:hover { border-color: rgba(230, 200, 110, .55); box-shadow: var(--shadow); }
.hero::before { display: none; }
.stat b { font-family: var(--serif); font-weight: 600; font-size: 2rem; }
.progress { background: rgba(0, 0, 0, .35); }
.progress > i { background: linear-gradient(90deg, var(--gold-hi), var(--teal)); }
input, select, textarea { background: rgba(0, 0, 0, .25); border-color: var(--glass-line); border-radius: 14px; }
:root[data-theme='light'] input, :root[data-theme='light'] select, :root[data-theme='light'] textarea { background: rgba(255, 255, 255, .85); }
.segmented { background: rgba(0, 0, 0, .25); border-color: var(--glass-line); border-radius: 16px; }
.segmented button[aria-pressed='true'], .segmented button.on { background: linear-gradient(180deg, var(--gold-pale), var(--gold)); color: #0b1410; box-shadow: 0 2px 0 var(--gold-deep); }

/* ---- buttons: the gold key ---- */
.btn { border-radius: 14px; font-family: var(--cond); font-weight: 700; letter-spacing: .06em; border-color: var(--glass-line); background: rgba(0, 0, 0, .22); }
:root[data-theme='light'] .btn { background: rgba(255, 255, 255, .8); }
.btn:hover:not(:disabled) { background: rgba(201, 165, 74, .16); border-color: rgba(230, 200, 110, .55); }
.btn.primary { background: linear-gradient(180deg, var(--gold-pale), var(--gold)); color: #0b1410; border-color: transparent; box-shadow: 0 4px 0 var(--gold-deep), 0 12px 24px rgba(0, 0, 0, .3); text-transform: uppercase; }
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #fbefc2, var(--gold-hi)); filter: brightness(1.04); }
.btn.primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn.primary .icon { color: #0b1410; }
.btn.ghost { background: transparent; }
.btn.danger { font-family: var(--cond); }

/* ---- home ---- */
.fx-ticker { display: flex; align-items: center; height: 38px; border-radius: 99px; overflow: hidden; margin-bottom: 18px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); color: #0b1410; font: 800 13px var(--cond); letter-spacing: .08em; white-space: nowrap; }
.fx-ticker .live { background: #e5484d; color: #fff; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 18px; text-transform: uppercase; }
.fx-ticker .live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.fx-ticker .items { display: flex; gap: 22px; align-items: center; padding: 0 22px; overflow: hidden; text-transform: uppercase; }
.fx-ticker .items a { color: #0b1410; }
.fx-ticker .items span.sep { opacity: .7; }
.home-hero { overflow: visible; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; padding: 36px; align-items: center; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding-left: 8px; }
.home-hero .eyebrow { margin-bottom: 14px; }
.home-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: .98; font-weight: 500; }
.home-hero h1 em { display: block; font-style: italic; color: var(--gold-hi); }
:root[data-theme='light'] .home-hero h1 em { color: #8a6a1f; }
.home-hero p { font-size: 1.05rem; color: var(--muted); max-width: 46ch; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.fx-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; background: rgba(0, 0, 0, .22); border: 1px solid var(--glass-line); color: var(--text); font: 700 .92rem var(--cond); letter-spacing: .04em; }
:root[data-theme='light'] .fx-chips a { background: rgba(255, 255, 255, .8); }
.fx-chips a:hover { border-color: var(--gold-hi); background: rgba(201, 165, 74, .16); }
.fx-stage { position: relative; border-radius: 28px; padding: 22px 22px 26px; background: var(--card); border: 1px solid var(--glass-line); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); display: grid; gap: 14px; }
.fx-stage .cap { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 700 .85rem var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fx-stage .cap b { color: var(--gold-hi); font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.fx-board3d { perspective: 1200px; display: grid; place-items: center; padding: 6px 0 14px; }
.fx-board3d > a { display: block; transform: rotateX(34deg) scale(.98); transform-origin: 50% 70%; padding: 10px; border-radius: 6px; background: #4a2f12; box-shadow: 0 30px 40px rgba(0, 0, 0, .55), 0 0 0 2px #2e1c08; transition: transform .4s var(--ease); }
.fx-board3d > a:hover { transform: rotateX(24deg) scale(1); }
.fx-board3d { min-width: 0; }
.fx-board3d > a { width: min(400px, 100%); }
.fx-board3d .mini-board { width: 100% !important; height: auto !important; aspect-ratio: 1; border-radius: 2px; box-shadow: none; }
.home-hero > *, .fx-stage, .fx-mode, .fx-widgets > * { min-width: 0; }
main#view:focus, #view:focus { outline: none; }
.fx-chips a, .btn { white-space: nowrap; }
.fx-mode.green, .fx-mode.teal { color: #efe8d6; }
.fx-mode.gold { color: #1b1407; }
:root[data-theme='light'] .fx-stage .cap b { color: #7d5f12; }
:root[data-theme='light'] .fx-lb .n { color: #7d5f12; }
.fx-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.fx-mode { position: relative; overflow: hidden; min-height: 200px; padding: 18px 18px 16px; border-radius: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; color: var(--text); border: 1px solid var(--glass-line); background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: 0 6px 0 rgba(0, 0, 0, .35), var(--shadow); transition: transform .25s var(--ease); }
.fx-mode:hover { transform: translateY(-4px); }
.fx-mode .tag { position: absolute; top: 16px; left: 18px; display: flex; gap: 8px; align-items: center; font: 800 .72rem var(--cond); letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.fx-mode .art { position: absolute; right: 8px; top: 10px; width: 112px; height: 112px; opacity: .95; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .45)); }
.fx-mode .art svg { width: 100%; height: 100%; }
.fx-mode h3 { font-size: 1.9rem; font-weight: 500; margin: 0; }
.fx-mode p { margin: 0; font-size: .85rem; color: inherit; opacity: .8; }
.fx-mode.gold { background: linear-gradient(160deg, var(--gold-pale), var(--gold)); color: #1b1407; box-shadow: 0 6px 0 var(--gold-deep), var(--shadow); }
.fx-mode.green { background: linear-gradient(160deg, #1f6b4a, #14412e); }
.fx-mode.teal { background: linear-gradient(160deg, #146b60, #0d3f3a); }
.fx-widgets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.fx-player { border-color: rgba(45, 212, 191, .45); background: linear-gradient(170deg, rgba(31, 107, 74, .35), rgba(0, 0, 0, .2)); }
.fx-player .id { display: flex; gap: 14px; align-items: center; margin: 10px 0 14px; }
.fx-player .id b { font: 500 1.7rem var(--serif); display: block; }
.fx-rate { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-rate div { padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .28); border-bottom: 3px solid var(--gold); }
.fx-rate div:nth-child(1) { border-color: #e5484d; } .fx-rate div:nth-child(2) { border-color: var(--gold-hi); } .fx-rate div:nth-child(3) { border-color: var(--teal); } .fx-rate div:nth-child(4) { border-color: #9184d9; }
:root[data-theme='light'] .fx-rate div { background: rgba(255, 255, 255, .7); }
.fx-rate small { display: block; font: 700 .68rem var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fx-rate span { font: 600 1.7rem var(--serif); }
.fx-lb { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.fx-lb li { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid rgba(201, 165, 74, .12); }
.fx-lb li:last-child { border: 0; }
.fx-lb .n { width: 22px; font: 500 1.2rem var(--serif); color: var(--gold-hi); text-align: center; }
.fx-lb .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fx-lb .r { font: 600 1.25rem var(--serif); }

/* ---- bottom navigation (phones) ---- */
@media (max-width: 900px) {
  .app { padding: 0; gap: 0; grid-template-columns: minmax(0, 1fr); }
  .view { padding: 14px 14px 100px; }
  .topbar { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--glass-line); }
  .brand-name { font-size: 1.15rem; letter-spacing: .08em; }
  .topbar { gap: 8px; }
  .topbar .admin-link { padding: 6px 10px; min-height: 36px; font-size: .78rem; }
  .topbar .btn.sm { min-height: 36px; padding: 6px 12px; }
  .home-hero .btn-row { flex-wrap: wrap; }
  .bottomnav { left: 12px !important; right: 12px !important; bottom: 12px !important; border-radius: 24px; border: 1px solid var(--glass-line) !important; background: color-mix(in srgb, var(--bg) 82%, transparent) !important; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: var(--shadow); padding: 4px 6px; }
  .bottomnav a.active, .bottomnav button.active { color: var(--gold-hi); background: transparent; }
  .home-hero { grid-template-columns: 1fr; padding: 4px 0 0; gap: 22px; }
  .home-hero h1 { font-size: 2.6rem; }
  .fx-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-mode { min-height: 150px; } .fx-mode .art { width: 78px; height: 78px; } .fx-mode h3 { font-size: 1.45rem; }
  .fx-widgets { grid-template-columns: 1fr; }
  .fx-board3d > a { transform: rotateX(28deg) scale(.96); }
  .fx-ticker { margin: 0 0 14px; }
}
@media (max-width: 520px) { .fx-mode h3 { font-size: 1.25rem; } .fx-mode p { display: none; } .fx-mode { min-height: 130px; } }
@media (prefers-reduced-motion: reduce) { .fx-board3d > a, .fx-mode { transition: none; } }
.home-grid > *, .grid > * { min-width: 0; }
.live-mini { min-width: 0; }
.live-mini .lm { min-width: 0; max-width: 100%; }
.live-mini .lm > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .topbar { min-width: 0; max-width: 100vw; }
  .topbar .brand { min-width: 0; flex: 0 1 auto; }
  .topbar .brand-name { overflow: hidden; text-overflow: ellipsis; }
  .topbar .grow { min-width: 0; }
}
@media (max-width: 420px) { .brand-name { letter-spacing: .04em !important; font-size: 1.05rem !important; } .topbar .admin-link { padding: 6px 8px; } }
.live-mini { grid-template-columns: minmax(0, 1fr); }

:root[data-theme='light'] .card, :root[data-theme='light'] .hero { background: rgba(255, 255, 255, .78); }
.empty { background: rgba(255, 255, 255, .035); border-color: var(--glass-line); border-radius: 24px; }
:root[data-theme='light'] .empty { background: rgba(255, 255, 255, .6); }
/* dialogs: solid glass so nothing shows through */
.modal-back { background: rgba(3, 10, 7, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modal { background: linear-gradient(180deg, #11261c, #0b1812); border: 1px solid rgba(201, 165, 74, .35); border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08); }
:root[data-theme='light'] .modal { background: linear-gradient(180deg, #fffdf6, #f5efde); }
.modal h2 { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), select, textarea { min-height: 46px; padding: 11px 14px; font-family: var(--font); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(230, 200, 110, .2); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); caret-color: var(--text); -webkit-box-shadow: 0 0 0 1000px #0e2017 inset; transition: background-color 9999s; border-radius: 14px; }
:root[data-theme='light'] input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fffdf6 inset; }
.switch input:checked + span { background: linear-gradient(180deg, var(--gold-pale), var(--gold)); }

/* ---- news, tournaments, watch ---- */
.page-head { margin-bottom: 22px; }
.page-head h1 { margin-bottom: 8px; }
.news-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.news-card { display: flex; flex-direction: column; gap: 4px; min-height: 190px; padding: 24px; }
.news-card h3 { font-size: 1.55rem; line-height: 1.15; margin: 4px 0 6px; }
.news-card p { flex: 1; margin: 0 0 10px; }
.news-card .more, .t-card .more { display: inline-flex; align-items: center; gap: 6px; font: 700 .85rem var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi); }
.news-card.first { grid-column: 1 / -1; min-height: 240px; background: linear-gradient(150deg, rgba(201, 165, 74, .22), rgba(31, 107, 74, .3)); border-color: rgba(230, 200, 110, .4); justify-content: flex-end; }
.news-card.first h3 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; max-width: 22ch; }
.news-card.first p { flex: 0; max-width: 60ch; font-size: 1.05rem; }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 6px 0 18px; }
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h3 { margin: 1.4em 0 .4em; font-size: 1.6rem; }
.prose ul { padding-left: 1.2em; } .prose li { margin: .3em 0; }
.prose strong { color: var(--gold-pale); }
:root[data-theme='light'] .prose strong { color: #5a420c; }
.t-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.t-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; margin: 10px 0 4px; }
.t-card h3 .icon { color: var(--gold-hi); }
.t-card.running { border-color: rgba(45, 212, 191, .55); background: linear-gradient(160deg, rgba(31, 107, 74, .35), rgba(255, 255, 255, .03)); }
.t-card.running::after { content: ''; position: absolute; }
.t-card { position: relative; }
.t-card.finished { opacity: .72; }
.live-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.live-card { display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 18px; }
.live-card .mini-board { width: 100% !important; height: auto !important; aspect-ratio: 1; max-width: 240px; }
.live-card .live-meta { width: 100%; display: grid; gap: 6px; }
.featured-game { padding: 26px; background: linear-gradient(150deg, rgba(201, 165, 74, .16), rgba(31, 107, 74, .25)); }
.fg-grid { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-top: 12px; }
.card.quiet { padding: 18px 22px; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
@media (max-width: 700px) { .fg-grid { grid-template-columns: 1fr; } .news-card.first { min-height: 200px; } .article h1 { font-size: 2.2rem; } }
.sidebar .user-card.guest .row { gap: 8px; flex-wrap: nowrap; }
.sidebar .user-card.guest .btn { min-width: 0; padding-inline: 8px; font-size: .78rem; letter-spacing: .03em; }
.modal .segmented { margin-bottom: 20px; }
.modal #auth-form .small, .modal #auth-form .muted.small, .modal #auth-form p { margin: 12px 0 18px; }
.modal #auth-form .btn.primary { margin-top: 4px; }

/* offline: everything dimmed (an overlay, not a filter, so fixed bars keep working) and a bar explains why */
#offline-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 95; padding: 6px 14px; text-align: center; background: #20262a; color: #e8e3d0; font: 700 .78rem var(--cond); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--glass-line); }
#offline-bar[hidden] { display: none; }
html[data-offline] body::after { content: ''; position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .42); pointer-events: none; animation: fade .4s both; }
html[data-offline] body { padding-top: 30px; }
:root[data-theme='light'][data-offline] body::after { background: rgba(10, 20, 15, .3); }
