/* ===== AI World Cup 2026 — refined editorial theme, dark & light ===== */
/* Self-hosted fonts (SIL Open Font License) — no external requests */
@font-face { font-family: "Outfit"; src: url("fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jbmono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --bg: #0b0d12;
  --bg-elev: rgba(255, 255, 255, 0.028);
  --card: rgba(255, 255, 255, 0.032);
  --card-hover: rgba(255, 255, 255, 0.055);
  --card-solid: #12151d;
  --stroke: rgba(255, 255, 255, 0.075);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #edeff5;
  --text-dim: #9aa2b5;
  --text-faint: #5e6578;
  --gold: #d9a441;
  --gold-bright: #ecc06a;
  --gold-deep: #a87420;
  --gold-soft: rgba(217, 164, 65, 0.13);
  --gold-stroke: rgba(217, 164, 65, 0.34);
  --green: #3ecf85;
  --green-soft: rgba(62, 207, 133, 0.12);
  --amber: #e8b450;
  --amber-soft: rgba(232, 180, 80, 0.11);
  --red: #f07567;
  --red-soft: rgba(240, 117, 103, 0.10);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.35);
  --glow1: rgba(217, 164, 65, 0.10);
  --glow2: rgba(91, 102, 235, 0.08);
  --tabbar: rgba(11, 13, 18, 0.82);
  --flag-edge: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="light"] {
  --bg: #f7f5f0;
  --bg-elev: rgba(28, 26, 20, 0.025);
  --card: #ffffff;
  --card-hover: #fdfaf3;
  --card-solid: #ffffff;
  --stroke: #e7e2d6;
  --stroke-strong: #d4cdbb;
  --text: #211f1a;
  --text-dim: #6d6a5f;
  --text-faint: #a39e8e;
  --gold: #a87420;
  --gold-bright: #c08a2a;
  --gold-deep: #8a5d14;
  --gold-soft: rgba(168, 116, 32, 0.09);
  --gold-stroke: rgba(168, 116, 32, 0.32);
  --green: #1d9e5f;
  --green-soft: rgba(29, 158, 95, 0.10);
  --amber: #b07d18;
  --amber-soft: rgba(176, 125, 24, 0.10);
  --red: #cc4636;
  --red-soft: rgba(204, 70, 54, 0.08);
  --shadow: 0 18px 44px -20px rgba(60, 50, 20, 0.18);
  --shadow-sm: 0 2px 10px rgba(60, 50, 20, 0.07);
  --glow1: rgba(217, 164, 65, 0.12);
  --glow2: rgba(120, 130, 235, 0.06);
  --tabbar: rgba(247, 245, 240, 0.85);
  --flag-edge: rgba(40, 36, 24, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

.bg-glow { position: fixed; border-radius: 50%; filter: blur(150px); pointer-events: none; z-index: 0; }
.bg-glow-1 { width: 600px; height: 600px; top: -200px; left: -140px; background: var(--glow1); }
.bg-glow-2 { width: 640px; height: 640px; top: 32vh; right: -240px; background: var(--glow2); }

.container { max-width: 1060px; margin: 0 auto; padding: 0 16px 60px; position: relative; z-index: 1; }

/* ===== theme toggle + language select ===== */
#theme-toggle {
  position: fixed; top: 18px; inset-inline-end: 18px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card-solid); border: 1px solid var(--stroke);
  color: var(--text-dim); cursor: pointer; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, transform 0.2s;
}
#lang-dd { position: fixed; top: 18px; inset-inline-end: 70px; z-index: 95; }
.lang-btn {
  display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px;
  border-radius: 999px; background: var(--card-solid); border: 1px solid var(--stroke);
  color: var(--text-dim); font-family: var(--font); font-size: 13px; font-weight: 650;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: color 0.18s, border-color 0.18s;
}
.lang-btn:hover { color: var(--gold); border-color: var(--gold-stroke); }
.lang-btn img { width: 21px; height: 15.5px; object-fit: cover; border-radius: 3px; border: 1px solid var(--flag-edge); }
.lang-btn .chev { width: 13px; height: 13px; opacity: 0.7; transition: transform 0.18s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  width: 232px; max-height: min(62vh, 480px); overflow-y: auto;
  background: var(--card-solid); border: 1px solid var(--stroke-strong);
  border-radius: 16px; box-shadow: var(--shadow); padding: 6px;
  animation: dd-in 0.16s ease;
}
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-opt {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9.5px 12px; border: none; border-radius: 10px; background: none;
  color: var(--text-dim); font-family: var(--font); font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-align: start; transition: background 0.13s, color 0.13s;
}
.lang-opt:hover { background: var(--card-hover); color: var(--text); }
.lang-opt img { width: 23px; height: 17px; object-fit: cover; border-radius: 3.5px; border: 1px solid var(--flag-edge); flex-shrink: 0; }
.lang-opt.active { color: var(--gold); background: var(--gold-soft); }
.lang-opt .check { width: 14px; height: 14px; margin-inline-start: auto; color: var(--gold); flex-shrink: 0; }
.lang-menu::-webkit-scrollbar { width: 8px; }
.lang-menu::-webkit-scrollbar-thumb { background: var(--stroke-strong); border-radius: 8px; }
#theme-toggle:hover { color: var(--gold); transform: rotate(12deg); }
#theme-toggle svg { width: 20px; height: 20px; }
[data-theme="light"] .ic-moon { display: none; }
[data-theme="dark"] .ic-sun { display: none; }
:root:not([data-theme="light"]) .ic-sun { display: none; }

/* ===== hero ===== */
.hero { text-align: center; padding: 64px 16px 0; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; font-size: 11.5px; font-weight: 650; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-stroke); background: var(--gold-soft);
  padding: 7px 18px; border-radius: 999px; margin-bottom: 26px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(44px, 7.6vw, 78px);
  font-weight: 580;
  letter-spacing: -0.015em;
  line-height: 1.04;
}
.hero-title em {
  font-style: italic; font-weight: 430;
  color: var(--text-dim); margin-right: 0.14em;
  font-size: 0.62em; vertical-align: 0.16em;
}
.hero-title { background: linear-gradient(105deg, var(--text) 30%, var(--gold-bright) 60%, var(--gold-deep) 95%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-title em { -webkit-text-fill-color: var(--text-faint); }
.hero-sub { max-width: 540px; margin: 18px auto 0; color: var(--text-dim); font-size: 16px; line-height: 1.65; font-weight: 420; }
.hero-sub strong { color: var(--text); font-weight: 640; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.stat-chip {
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  padding: 11px 20px; backdrop-filter: blur(8px); box-shadow: var(--shadow-sm);
  text-align: left; min-width: 110px;
}
.stat-chip .v { font-size: 18px; font-weight: 740; letter-spacing: -0.01em; }
.stat-chip .v .gold { color: var(--gold); }
.stat-chip .k { font-size: 10px; font-weight: 680; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-top: 3px; }

.rules-pill {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 24px;
  font-size: 13px; color: var(--text-dim); font-weight: 480;
  border: 1px dashed var(--stroke-strong); border-radius: 999px; padding: 9px 22px;
}
.rules-pill b { color: var(--gold); font-weight: 800; font-family: var(--mono); }
.rule-sep { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--text-faint); }

/* flag marquee */
.flag-strip {
  margin: 38px auto 0; max-width: 760px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.flag-track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.flag-track img {
  width: 38px; height: 28.5px; object-fit: cover; border-radius: 4.5px;
  border: 1px solid var(--flag-edge); box-shadow: var(--shadow-sm);
  opacity: 0.85;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== tabs ===== */
.tabs {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: center; gap: 4px;
  padding: 13px 16px; margin-top: 34px;
  background: var(--tabbar); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--stroke);
}
.tabs a {
  color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 14.5px;
  letter-spacing: 0.01em; padding: 9px 22px; border-radius: 999px; transition: all 0.18s ease;
}
.tabs a:hover { color: var(--text); background: var(--card-hover); }
.tabs a.active { color: #fff; background: linear-gradient(110deg, var(--gold-bright), var(--gold-deep)); font-weight: 700; box-shadow: 0 4px 16px -4px var(--gold-stroke); }
[data-theme="light"] .tabs a.active { color: #fff; }

.loading { text-align: center; padding: 80px 0; color: var(--text-faint); font-size: 15px; }
.section-note { text-align: center; color: var(--text-faint); font-size: 13px; margin: 18px 0 0; }

/* ===== avatars (platform logo tiles) ===== */
.avatar, .mini { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar { width: 52px; height: 52px; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-sm); }
.mini { width: 22px; height: 22px; border-radius: 6.5px; overflow: hidden; }
.avatar img, .mini img { width: 60%; height: 60%; object-fit: contain; display: block; }
.avatar svg, .mini svg { width: 100%; height: 100%; display: block; }
.tile-claude   { background: linear-gradient(135deg, #E0805A, #B14E2C); }
.tile-gpt      { background: linear-gradient(135deg, #1FBA93, #0A7E60); }
.tile-gemini   { background: linear-gradient(135deg, #5B9BE6, #8A63C9); }
.tile-deepseek { background: linear-gradient(135deg, #5F7BFF, #3346C9); }
.tile-grok     { background: linear-gradient(135deg, #3A3F47, #0F1115); }
.tile-consensus{ background: linear-gradient(135deg, #EFBE53, #B5811C); }
.tile-monkey   { background: linear-gradient(135deg, #9D71F2, #6336CE); }

/* ===== leaderboard ===== */
.board { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.board-row {
  display: grid; grid-template-columns: 46px 52px 1fr auto; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 15px 22px 15px 14px; cursor: pointer; text-decoration: none; color: inherit;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s;
  box-shadow: var(--shadow-sm);
}
.board-row:hover { transform: translateY(-2px); background: var(--card-hover); border-color: var(--stroke-strong); box-shadow: var(--shadow); }
.board-row.r1 { border-color: var(--gold-stroke); background: linear-gradient(100deg, var(--gold-soft), var(--card) 58%); }

.rank { font-size: 17px; font-weight: 740; color: var(--text-faint); text-align: center; font-family: var(--mono); }
.r1 .rank { color: var(--gold); } .r2 .rank { color: var(--text-dim); } .r3 .rank { color: #b98a5e; }

.board-id .nm { font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.board-id .tag {
  font-size: 9.5px; font-weight: 740; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px; background: var(--bg-elev); border: 1px solid var(--stroke); color: var(--text-dim);
}
.board-id .mdl { font-size: 12px; color: var(--text-faint); margin-top: 3px; font-family: var(--mono); }

.board-pts { text-align: right; }
.board-pts .p { font-size: 28px; font-weight: 800; font-family: var(--mono); line-height: 1; letter-spacing: -0.02em; }
.r1 .board-pts .p { color: var(--gold); }
.board-pts .sub { font-size: 11px; color: var(--text-faint); margin-top: 5px; white-space: nowrap; font-weight: 500; }
.board-pts .sub b { color: var(--text-dim); }

/* ===== match cards ===== */
.day-head {
  margin: 36px 4px 14px; font-size: 12px; font-weight: 720; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 14px;
}
.day-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--stroke-strong), transparent); }

.match-card {
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 18px 20px 14px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.match-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 15px;
}
.match-top .grp { color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-stroke); padding: 3px 11px; border-radius: 999px; }

.match-mid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.team { display: flex; align-items: center; gap: 13px; min-width: 0; }
.team.right { flex-direction: row-reverse; text-align: right; }
.flagbox { position: relative; flex-shrink: 0; border-radius: 7px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--flag-edge); }
.flagbox img { width: 50px; height: 37px; object-fit: cover; display: block; }
.flagbox::after { content: ""; position: absolute; inset: 0; background: linear-gradient(165deg, rgba(255,255,255,0.22), transparent 46%); }
.team .tn { font-weight: 660; font-size: 16.5px; line-height: 1.2; letter-spacing: -0.01em; }

.score { text-align: center; min-width: 100px; }
.score .s { font-size: 28px; font-weight: 800; font-family: var(--mono); letter-spacing: 0.02em; }
.score .s.pending { color: var(--text-faint); font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.score .ko { font-size: 12px; color: var(--text-faint); margin-top: 4px; font-weight: 550; }
.score .ft { font-size: 9.5px; font-weight: 760; letter-spacing: 0.22em; color: var(--green); margin-top: 4px; }
.score .lv { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; color: #ff4d5e; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.lv-dot.p-live { display: inline-block; margin-inline-start: 6px; vertical-align: middle; }
.live-note {
  display: flex; align-items: center; gap: 9px; margin: 24px 0 -12px;
  padding: 11px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 77, 94, 0.07); border: 1px solid rgba(255, 77, 94, 0.25);
  color: var(--text-dim); font-size: 13px; font-weight: 550;
}
.lv-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; animation: livepulse 1.2s ease-in-out infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }

.preds { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--stroke); }
.pred-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-elev); border: 1px solid var(--stroke);
  border-radius: 999px; padding: 4px 11px 4px 4px; font-size: 13px; font-weight: 720;
  font-family: var(--mono); text-decoration: none; color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.pred-chip:hover { border-color: var(--stroke-strong); transform: translateY(-1px); }
.pred-chip .pp { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.pred-chip.hit3 { border-color: var(--green); background: var(--green-soft); }
.pred-chip.hit3 .pp { background: var(--green-soft); color: var(--green); }
.pred-chip.hit1 { border-color: var(--amber); background: var(--amber-soft); }
.pred-chip.hit1 .pp { background: var(--amber-soft); color: var(--amber); }
.pred-chip.hit0 { opacity: 0.55; }
.pred-chip.hit0 .pp { background: var(--red-soft); color: var(--red); }

/* ===== platform page ===== */
.back-link { display: inline-block; margin: 26px 0 0; color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--text); }

.profile {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 28px; margin-top: 14px; box-shadow: var(--shadow-sm);
}
.profile .avatar { width: 76px; height: 76px; border-radius: 20px; }
.profile h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.profile .mdl { color: var(--text-faint); font-family: var(--mono); font-size: 12.5px; margin-top: 5px; }
.profile-stats { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.pstat { text-align: center; background: var(--bg-elev); border: 1px solid var(--stroke); border-radius: var(--radius-sm); padding: 12px 18px; min-width: 82px; }
.pstat .v { font-size: 23px; font-weight: 800; font-family: var(--mono); letter-spacing: -0.02em; }
.pstat .v.gold { color: var(--gold); }
.pstat .k { font-size: 9.5px; font-weight: 720; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-top: 3px; }

.plist { margin-top: 10px; }
.prow {
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 8px; font-size: 14px;
}
.prow .fix { display: flex; align-items: center; gap: 9px; min-width: 0; flex-wrap: wrap; font-weight: 560; }
.prow .fix img { width: 27px; height: 20px; border-radius: 4px; object-fit: cover; border: 1px solid var(--flag-edge); }
.prow .fix .vs { color: var(--text-faint); font-size: 11px; font-weight: 600; }
.prow .meta { color: var(--text-faint); font-size: 11.5px; white-space: nowrap; }
.prow .pick { font-family: var(--mono); font-weight: 760; font-size: 14.5px; white-space: nowrap; }
.prow .pick .act { color: var(--text-faint); font-weight: 500; font-size: 11.5px; }
.prow .res { font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 8px; min-width: 40px; text-align: center; font-family: var(--mono); }
.prow .res.p3 { background: var(--green-soft); color: var(--green); }
.prow .res.p1 { background: var(--amber-soft); color: var(--amber); }
.prow .res.p0 { background: var(--red-soft); color: var(--red); }
.prow .res.pn { background: var(--bg-elev); color: var(--text-faint); }

/* ===== revision log ===== */
.rv { color: var(--gold); font-weight: 800; font-size: 11px; margin-left: 1px; }
.revlog { margin-top: 18px; }
.rl-title { font-size: 13px; font-weight: 720; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 8px 4px 12px; }
.rl-entry {
  background: var(--card); border: 1px solid var(--stroke); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px;
}
.rl-date { font-size: 10.5px; font-weight: 720; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.rl-note { font-family: var(--serif); font-style: italic; color: var(--text-dim); margin: 9px 0 4px; font-size: 15px; line-height: 1.6; }
.rl-change { font-size: 13.5px; margin-top: 9px; line-height: 1.5; }
.rl-change b { font-weight: 680; }
.rl-change .from { font-family: var(--mono); color: var(--text-faint); text-decoration: line-through; }
.rl-change .to { font-family: var(--mono); color: var(--gold); font-weight: 800; }
.rl-change .why { display: block; color: var(--text-dim); font-size: 12.5px; margin-top: 2px; }
.rl-change.dim { color: var(--text-faint); }
.rl-tr { font-weight: 500; letter-spacing: 0; text-transform: none; }

/* ===== per-pick reasoning ===== */
.why-btn {
  display: block; width: 100%; margin-top: 12px; padding: 8px;
  font-family: var(--font); font-size: 12px; font-weight: 650; letter-spacing: 0.06em;
  color: var(--text-faint); background: none; border: none; border-top: 1px dashed var(--stroke);
  cursor: pointer; transition: color 0.15s;
}
.why-btn:hover { color: var(--gold); }
.why-panel { padding-top: 4px; }
.why-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; border-top: 1px solid var(--stroke); }
.why-row:first-child { border-top: none; }
.why-row .mini { margin-top: 1px; }
.why-body { font-size: 13px; line-height: 1.55; color: var(--text-dim); }
.why-body b { color: var(--text); font-weight: 680; }
.why-at { display: block; font-size: 10.5px; color: var(--text-faint); margin-top: 2px; }
.why-note { font-size: 10.5px; color: var(--text-faint); padding: 8px 2px 2px; border-top: 1px solid var(--stroke); margin-top: 6px; font-style: italic; }
.prow-reason { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.5; color: var(--text-faint); padding-top: 2px; }
.locked-at { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; font-weight: 550; }

/* ===== self-written prompt feature ===== */
.selfprompt {
  margin-top: 12px; background: var(--card); border: 1px solid var(--gold-stroke);
  border-radius: var(--radius-sm); padding: 14px 18px;
}
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sp-title { font-family: var(--serif); font-style: italic; font-size: 15.5px; color: var(--text-dim); }

/* ===== transcripts ===== */
.transcripts { width: 100%; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--stroke); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tr-label { font-size: 10.5px; font-weight: 720; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.tr-btn {
  font-family: var(--font); font-size: 12px; font-weight: 640; color: var(--text-dim);
  background: var(--bg-elev); border: 1px solid var(--stroke); border-radius: 999px;
  padding: 5px 13px; cursor: pointer; transition: all 0.15s;
}
.tr-btn:hover { color: var(--gold); border-color: var(--gold-stroke); }
.tr-btn.sm { font-size: 10.5px; padding: 2px 9px; text-transform: lowercase; }
.tr-view {
  width: 100%; margin-top: 10px; max-height: 380px; overflow: auto;
  background: var(--card-solid); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  padding: 14px 16px; font-family: var(--mono); font-size: 11.5px; line-height: 1.65;
  color: var(--text-dim); white-space: pre-wrap; word-break: break-word;
}

/* ===== bonus picks ===== */
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; margin-top: 14px; }
.bonus-card {
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  padding: 13px 15px; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s;
  box-shadow: var(--shadow-sm);
}
.bonus-card:hover { border-color: var(--stroke-strong); transform: translateY(-1px); }
.bonus-card .bc-head { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.bonus-card .bc-row { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.bonus-card .bc-row img { width: 23px; height: 17px; border-radius: 3.5px; object-fit: cover; border: 1px solid var(--flag-edge); }
.bonus-card .bc-row b { color: var(--text); font-weight: 660; }
.bonus-card .bc-k { font-size: 9px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-faint); width: 46px; flex-shrink: 0; }
.bonus-hit { color: var(--green) !important; }
.profile-bonus {
  width: 100%; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--stroke);
  display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; color: var(--text-dim);
}
.profile-bonus .pb-item { display: flex; align-items: center; gap: 9px; }
.profile-bonus img { width: 25px; height: 18.5px; border-radius: 3.5px; border: 1px solid var(--flag-edge); }
.profile-bonus b { color: var(--text); font-weight: 660; }
.profile-bonus .pb-reason { width: 100%; font-family: var(--serif); font-style: italic; color: var(--text-faint); font-size: 13.5px; line-height: 1.6; }
.profile-bonus .bc-k { font-size: 9px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-faint); }

/* ===== rulebook ===== */
.rules { max-width: 720px; margin: 32px auto 0; }
.rules h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 34px 0 12px; letter-spacing: -0.01em; }
.rules h2:first-child { margin-top: 0; }
.rules p, .rules li { color: var(--text-dim); line-height: 1.7; font-size: 15px; }
.rules ul { padding-left: 22px; margin: 10px 0; }
.rules li { margin-bottom: 7px; }
.rules-table { width: 100%; border-collapse: collapse; margin: 14px 0; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.rules-table th, .rules-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--stroke); font-size: 14.5px; }
.rules-table th { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.rules-table tr:last-child td { border-bottom: none; }
.rules-table .pts { font-family: var(--mono); font-weight: 800; color: var(--gold); white-space: nowrap; }
.rules .fine { font-size: 13px; color: var(--text-faint); }

/* ===== ad units (hidden until monetization is switched on) ===== */
.ad-unit { display: none; }
html.ads-on .ad-unit[data-filled] {
  display: block; margin: 22px 0; padding: 10px 12px 12px;
  background: var(--bg-elev); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  min-height: 110px; text-align: center;
}
html.ads-on .ad-unit .ad-label {
  display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px;
}
.footer-link { color: var(--text-faint); text-decoration: underline; }
.footer-link:hover { color: var(--text-dim); }

/* ===== footer ===== */
.footer { text-align: center; padding: 44px 20px 60px; color: var(--text-dim); font-size: 13.5px; border-top: 1px solid var(--stroke); position: relative; z-index: 1; margin-top: 30px; }
.footer p { max-width: 640px; margin: 0 auto 8px; line-height: 1.65; }
.footer-dim { color: var(--text-faint); font-size: 12px; }
.disclaimer {
  max-width: 720px; margin: 18px auto; text-align: left;
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: 11.5px; line-height: 1.75; color: var(--text-faint);
}
.disclaimer strong { color: var(--text-dim); }

/* ===== RTL (Arabic, Hebrew) ===== */
[dir="rtl"] .stat-chip, [dir="rtl"] .disclaimer, [dir="rtl"] .rules-table th, [dir="rtl"] .rules-table td { text-align: right; }
[dir="rtl"] .board-pts { text-align: left; }
[dir="rtl"] .day-head::after { background: linear-gradient(270deg, var(--stroke-strong), transparent); }

/* ===== mobile ===== */
@media (max-width: 640px) {
  .hero { padding-top: 46px; }
  #theme-toggle { top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; }
  #lang-dd { top: 12px; inset-inline-end: 58px; }
  .lang-btn { height: 38px; font-size: 12px; padding: 0 11px; gap: 7px; }
  .lang-btn .lb-name { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-sub { font-size: 14.5px; }
  .rules-pill { gap: 9px; padding: 8px 14px; font-size: 12px; }
  .flag-strip { margin-top: 30px; }
  .flag-track img { width: 32px; height: 24px; }
  .board-row { grid-template-columns: 26px 44px 1fr auto; gap: 10px; padding: 12px 14px 12px 10px; }
  .avatar { width: 44px; height: 44px; border-radius: 13px; }
  .board-id .nm { font-size: 15px; }
  .board-id .mdl { font-size: 10.5px; }
  .board-pts .p { font-size: 22px; }
  .board-pts .sub { font-size: 9.5px; }
  .team { flex-direction: column; align-items: flex-start; gap: 8px; }
  .team.right { flex-direction: column; align-items: flex-end; }
  .team .tn { font-size: 14px; }
  .flagbox img { width: 44px; height: 33px; }
  .score .s { font-size: 23px; }
  .preds { gap: 6px; }
  .pred-chip { font-size: 12px; padding: 3.5px 9px 3.5px 3.5px; }
  .mini { width: 20px; height: 20px; }
  .profile { padding: 20px; gap: 16px; }
  .profile h2 { font-size: 25px; }
  .profile-stats { margin-left: 0; width: 100%; }
  .pstat { flex: 1; min-width: 68px; padding: 10px 8px; }
  .prow { grid-template-columns: 1fr auto auto; }
  .prow .meta { display: none; }
  .bonus-grid { grid-template-columns: 1fr 1fr; }
}
