/* WWC 2026 – light, warm and elegant: ivory and blush, deep berry, champagne gold. */
:root {
  --bg: #fbf7f4;
  --bg-2: #f6ece8;
  --panel: #ffffff;
  --panel-2: #fbf1ee;
  --line: #ecdcd6;
  --line-2: #e2cbc4;
  --text: #2c1b26;
  --muted: #8b7480;
  --accent: #8c2f5d;          /* deep berry */
  --accent-2: #b4547f;        /* rose */
  --accent-soft: #f6e3ea;
  --gold: #b8925a;            /* champagne gold */
  --gold-soft: #f3e7d4;
  --live: #d23a62;
  --ok: #2f8a6b;
  --sq-light: #f5e9df;
  --sq-dark: #b08072;
  --sq-from: #d6a9a0;
  --sq-hl: #d9a35f;
  --piece-w: #fffaf6;
  --piece-b: #2c1b26;
  --radius: 22px;
  --radius-s: 14px;
  --shadow: 0 1px 2px rgba(92, 36, 64, .04), 0 12px 32px rgba(92, 36, 64, .08);
  --shadow-lg: 0 2px 6px rgba(92, 36, 64, .05), 0 24px 60px rgba(92, 36, 64, .14);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(460px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
h2 { font: 600 30px/1.15 var(--serif); margin: 0; letter-spacing: .2px; color: var(--text); }
h3 { font: 600 17px var(--sans); margin: 0 0 12px; }

/* --- header ------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 252, 250, .86);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font: 600 21px var(--serif); letter-spacing: .6px; }
.brand:hover { text-decoration: none; }
.brand strong { color: var(--accent); font-weight: 700; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--muted); font-size: 14.5px; padding: 7px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.linkbtn { background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; color: var(--muted); font-size: 14px; }
.nav .linkbtn { font-size: 14.5px; padding: 7px 14px; }
.linkbtn:hover { color: var(--accent); }
.linkbtn.danger { color: #c0392b; }
form.inline { display: inline; }

/* --- hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(180, 84, 127, .16), transparent 65%),
    radial-gradient(800px 380px at 90% 0%, rgba(184, 146, 90, .18), transparent 60%),
    linear-gradient(180deg, #fdf4f1 0%, var(--bg) 100%); }
/* soft colour glows behind the header – no outlines, nothing that reads as a line */
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(30px); }
.hero::before { width: 640px; height: 420px; left: -180px; top: -200px;
  background: radial-gradient(closest-side, rgba(180, 84, 127, .16), rgba(180, 84, 127, 0)); }
.hero::after { width: 560px; height: 380px; right: -160px; top: -140px;
  background: radial-gradient(closest-side, rgba(184, 146, 90, .18), rgba(184, 146, 90, 0)); }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { text-align: center; color: var(--accent); font: 600 12.5px var(--sans); letter-spacing: 3px; text-transform: uppercase; }
.eyebrow::before, .eyebrow::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold); vertical-align: middle; margin: 0 12px; }
.hero-title { font-family: var(--serif); font-weight: 600; text-align: center; font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.08; margin: 16px auto 36px; max-width: 920px; overflow-wrap: anywhere; color: var(--text); letter-spacing: -.3px; }
.hero-title em, .accent-text { color: var(--accent); font-style: italic; }
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; max-width: 960px; margin: 0 auto; }
.player-card { text-align: right; min-width: 0; }
.player-card.right { text-align: left; }
.player-name { font: 600 clamp(22px, 2.8vw, 32px)/1.15 var(--serif); color: var(--text); }
.player-info { color: var(--muted); font-size: 13.5px; letter-spacing: .4px; margin-top: 2px; }
.scoreboard { text-align: center; padding: 16px 30px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); min-width: 190px; box-shadow: var(--shadow-lg); }
.score { font: 600 46px/1.05 var(--serif); color: var(--accent); }
.score-sep { color: var(--gold); margin: 0 12px; font-weight: 400; }
.score-label { color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.game-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.game-tab { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .75); color: var(--text); border-radius: 999px;
  padding: 7px 16px; font: 500 13.5px var(--sans); cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
  transition: border-color .15s, background .15s, transform .15s; }
.game-tab:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.game-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 18px rgba(140, 47, 93, .25); }
.game-tab .res { font-family: var(--mono); font-size: 12px; opacity: .75; }
.game-tab .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
.game-tab.active .live-dot { background: #fff; }

/* --- sections ----------------------------------------------------------- */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-2); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2::after { content: ""; display: block; width: 44px; height: 2px; border-radius: 2px; background: var(--gold); margin-top: 10px; }
.conn { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.conn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.conn.ok .dot { background: var(--ok); }
.conn.live { color: var(--live); border-color: rgba(210, 58, 98, .35); }
.conn.live .dot { background: var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

/* --- viewer --------------------------------------------------------------- */
.viewer { display: grid; grid-template-columns: minmax(0, 620px) minmax(300px, 1fr); gap: 28px; align-items: stretch; }
.board-col { min-width: 0; }
.player-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px; margin-left: 30px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.player-row.top { margin-bottom: 12px; }
.player-row.bottom { margin-top: 12px; }
.player-row.to-move { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(180, 84, 127, .12), var(--shadow); }
.piece-ico { width: 16px; height: 16px; border-radius: 50%; flex: none; border: 1.5px solid #9d8a92; }
.piece-ico[data-color="w"] { background: var(--piece-w); }
.piece-ico[data-color="b"] { background: var(--piece-b); border-color: var(--piece-b); }
.pr-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-result { font-family: var(--mono); color: var(--accent); font-weight: 600; }
.pr-clock { font-family: var(--mono); font-size: 19px; font-weight: 600; padding: 4px 14px; border-radius: 999px;
  background: var(--bg-2); min-width: 108px; text-align: center; color: var(--text); }
.player-row.to-move .pr-clock { background: var(--accent); color: #fff; }

.board-area { display: flex; gap: 10px; align-items: stretch; }
.evalbar { position: relative; width: 20px; flex: none; border-radius: 999px; overflow: hidden; background: var(--piece-b); border: 1px solid var(--line-2); }
.evalbar-white { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: #fffaf6; transition: height .45s ease; }
.evalbar.flipped .evalbar-white { top: 0; bottom: auto; }
.evalbar-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg);
  font: 600 10.5px var(--mono); color: #9b8790; white-space: nowrap; mix-blend-mode: difference; }
.board-wrap { flex: 1; min-width: 0; border-radius: var(--radius-s); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid #fff; outline: 1px solid var(--line); }
.board { display: block; width: 100%; height: auto; user-select: none; }
.board .sq-l { fill: var(--sq-light); }
.board .sq-d { fill: var(--sq-dark); }
.board .sq-from { fill: var(--sq-from); }
.board .sq-to { fill: var(--sq-hl); }
.board .sq-num { font: 600 9px var(--mono); fill: rgba(255, 245, 240, .65); }
.board .pc-w { fill: var(--piece-w); stroke: #b6a29a; stroke-width: 1.4; }
.board .pc-b { fill: var(--piece-b); stroke: #14090f; stroke-width: 1.4; }
.board .pc-ring-w { fill: none; stroke: #e2d4cd; stroke-width: 1.4; }
.board .pc-ring-b { fill: none; stroke: #5a4351; stroke-width: 1.4; }
.board .crown { fill: var(--gold); }
.board .captured { fill: none; stroke: var(--live); stroke-width: 2.5; stroke-dasharray: 4 3; opacity: .85; }
.board .arrow { stroke: rgba(47, 138, 107, .85); stroke-width: 7; stroke-linecap: round; fill: none; marker-end: url(#arrowhead); }

.controls { display: flex; align-items: center; gap: 6px; margin: 12px 0 0 30px; flex-wrap: wrap; min-height: 38px; }
.controls .spacer { flex: 1; }
.move-indicator { font-family: var(--mono); font-size: 13px; color: var(--muted); min-width: 92px; text-align: center; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--text); border-radius: 999px; padding: 7px 15px; font: 500 13.5px var(--sans); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s; }
.btn:hover { border-color: var(--accent-2); color: var(--accent); text-decoration: none; }
.btn.icon { width: 40px; justify-content: center; padding: 7px 0; }
.btn.small { padding: 5px 12px; font-size: 12.5px; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { background: #7a2751; color: #fff; }
.btn.on { border-color: var(--live); color: var(--live); background: rgba(210, 58, 98, .08); }
.btn.on-neutral { border-color: var(--accent-2); color: var(--accent); background: var(--accent-soft); }

.side-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; height: 0; min-height: 100%; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.tab { flex: 1; background: none; border: 0; color: var(--muted); padding: 9px 6px; font: 500 13.5px var(--sans); cursor: pointer; border-radius: 999px; transition: background .15s, color .15s; }
.tab:hover { color: var(--accent); }
.tab.active { color: #fff; background: var(--accent); }
.tab-panel { display: none; padding: 16px; flex: 1; flex-direction: column; min-height: 0; }
.tab-panel.active { display: flex; }
.moves { flex: 1; min-height: 0; overflow-y: auto; font-family: var(--mono); font-size: 14px;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); align-content: start; row-gap: 2px; }
.moves .mn { color: var(--muted); padding: 5px 0 5px 4px; }
.moves .mv { padding: 5px 10px; border-radius: 999px; cursor: pointer; display: flex; justify-content: space-between; gap: 6px; }
.moves .mv:hover { background: var(--panel-2); }
.moves .mv.current { background: var(--accent); color: #fff; }
.moves .mv .t { color: var(--muted); font-size: 11.5px; }
.moves .mv.current .t { color: rgba(255, 255, 255, .8); }
.moves .mv .e { font-size: 11px; opacity: .7; min-width: 38px; text-align: right; }
.moves .empty { grid-column: 1 / -1; color: var(--muted); padding: 10px 4px; font-family: var(--sans); }
.moves .result-row { grid-column: 1 / -1; text-align: center; padding: 12px; color: var(--accent); font: 600 22px var(--serif); }
.panel-foot { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 10px; }
.chart-box { position: relative; flex: 1; min-height: 240px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }
.engine-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px; flex: 1; overflow-y: auto; }
.engine-score { font: 600 40px/1.1 var(--serif); color: var(--accent); }
.engine-verdict { color: var(--text); margin-bottom: 12px; font-weight: 500; }
.engine-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; font-size: 13px; }
.engine-meta dt { color: var(--muted); }
.engine-meta dd { margin: 0; font-family: var(--mono); }
.engine-pv-label { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.5px; }
.engine-pv { font-family: var(--mono); font-size: 13px; line-height: 1.7; word-spacing: 4px; }

/* --- video ---------------------------------------------------------------- */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.video-slot { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #3a2531, #241620);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-slot.empty { display: grid; place-items: center; color: rgba(255, 240, 245, .7); font-size: 14.5px; }
.video-slot.empty span::before { content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%;
  border: 1.5px solid rgba(255, 240, 245, .35);
  background: radial-gradient(circle at 55% 50%, rgba(255, 240, 245, .55) 0 7px, transparent 8px); }
.video-label { position: absolute; left: 14px; top: 14px; z-index: 2; background: rgba(255, 255, 255, .9); color: var(--text);
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; display: flex; gap: 7px; align-items: center; }
.video-label .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }

/* --- games and schedule ----------------------------------------------------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.game-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.game-card:hover { border-color: var(--accent-2); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.game-card .gc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.game-card .gc-status { font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.game-card .gc-status.live, .schedule .gc-status.live { color: #fff; border-color: var(--live); background: var(--live); }
.game-card .gc-status.finished { color: var(--ok); border-color: rgba(47, 138, 107, .35); background: rgba(47, 138, 107, .07); }
.game-card .gc-p { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.game-card .gc-p span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.game-card .gc-p span:last-child { font-family: var(--mono); color: var(--accent); font-weight: 600; }
.game-card svg { width: 100%; height: auto; border-radius: 10px; margin-top: auto; padding-top: 12px; display: block; }
.schedule-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table.schedule { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.schedule th, .schedule td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.schedule tbody tr:last-child td { border-bottom: 0; }
.schedule th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.4px; background: var(--panel-2); }
.schedule tr.clickable { cursor: pointer; }
.schedule tr.clickable:hover td { background: var(--accent-soft); }
.schedule .gc-status { font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.about-text { white-space: pre-line; max-width: 820px; color: #4a3743; margin: 14px 0 28px; font-size: 16.5px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 86px; box-shadow: var(--shadow); }
.facts div span { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.4px; }
.facts div strong { font: 600 21px var(--serif); }

/* --- admin ---------------------------------------------------------------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.card input:not([type=hidden]):not([type=file]), .card textarea, .form input:not([type=hidden]) { background: var(--bg); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 13px; font: 14.5px var(--sans); }
.card input:focus, .card textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(180, 84, 127, .12); }
.card input[type=file] { color: var(--muted); font: 13px var(--sans); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.admin-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-top: 18px; }
.admin h3 { margin-top: 6px; }
.inline-form { display: flex; gap: 8px; margin-bottom: 12px; }
.inline-form input { flex: 1; }
table.mini { width: 100%; font-size: 13px; border-collapse: collapse; }
table.mini td { padding: 7px 4px; border-top: 1px solid var(--line); }
tr.revoked td { opacity: .5; }
.actions-in { display: flex; gap: 14px; align-items: center; }
.notice { background: rgba(47, 138, 107, .08); border: 1px solid rgba(47, 138, 107, .35); padding: 11px 16px; border-radius: var(--radius-s); }
.alert { background: rgba(210, 58, 98, .07); border: 1px solid rgba(210, 58, 98, .35); padding: 11px 16px; border-radius: var(--radius-s); }
.keybox { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--radius-s); padding: 14px 16px; margin-bottom: 14px; }
.keybox code.key { display: block; margin: 10px 0; padding: 12px; background: var(--bg); border-radius: 12px; word-break: break-all; font-family: var(--mono); }

.footer { border-top: 1px solid var(--line); padding: 30px 0; margin-top: 0; font-size: 13.5px; background: var(--panel); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-inner > div:first-child { font: 600 17px var(--serif); }
.footer-inner > div:first-child .muted { font: 400 13.5px var(--sans); }

/* --- small screens ----------------------------------------------------------- */
@media (max-width: 980px) {
  .viewer { grid-template-columns: 1fr; }
  .side-col { height: auto; min-height: 0; }
  .moves { max-height: 360px; }
  .chart-box { height: 280px; flex: none; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { gap: 0; }
  .nav a { padding: 6px 9px; }
  .nav a:nth-child(n+4) { display: none; }
  .hero { padding: 44px 0 30px; }
  .eyebrow::before, .eyebrow::after { display: none; }
  .matchup { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .player-card, .player-card.right { text-align: center; }
  .scoreboard { justify-self: center; }
  .video-grid { grid-template-columns: 1fr; }
  .player-row, .controls { margin-left: 0; }
  .board-area { gap: 6px; }
  .evalbar { width: 12px; }
  .pr-clock { font-size: 16px; min-width: 84px; padding: 3px 10px; }
  .row2 { grid-template-columns: 1fr; }
  .schedule th, .schedule td { padding: 11px 10px; }
}
@media (max-width: 520px) {
  .moves .mv .e { display: none; }
  .tab { font-size: 12.5px; padding: 8px 2px; }
  .controls .btn { padding: 7px 10px; }
  .controls .btn.icon { width: 36px; }
  .move-indicator { min-width: 70px; font-size: 12px; }
}

/* admin users */
.inline-form.tight { margin: 0; gap: 6px; }
.inline-form.tight input { padding: 7px 10px; font-size: 13px; min-width: 0; }
.users td { vertical-align: middle; }
.add-user { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 16px; }
.add-user label { margin: 0; }
.nav .small { font-size: 12.5px; padding: 0 8px; }
@media (max-width: 980px) { .add-user { grid-template-columns: 1fr; } .users { display: block; overflow-x: auto; } }

/* ratings and titles */
.player-rating { color: var(--gold); font: 600 12.5px var(--sans); letter-spacing: .6px; margin-top: 4px; min-height: 1em; }
.pr-title { font: 700 10px var(--sans); color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; letter-spacing: .8px; }
.pr-rating { font: 500 12.5px var(--mono); color: var(--muted); white-space: nowrap; }
.game-card .gc-p small { color: var(--muted); font: 11.5px var(--mono); margin-left: 4px; }

.hero-ornament { display: flex; justify-content: center; margin-bottom: 14px; }
.ornament-mark { width: 46px; height: 46px; filter: drop-shadow(0 6px 14px rgba(140, 47, 93, .25)); }

/* Cormorant's default figures are old-style ("1" looks like "I"): use lining figures,
   and set the score itself in the sans so it reads at a glance. */
h1, h2, .brand, .hero-title, .player-name, .facts div strong, .footer-inner > div:first-child,
.moves .result-row, .engine-score { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.score { font: 600 44px/1.05 var(--sans); letter-spacing: -.5px; font-variant-numeric: lining-nums tabular-nums; }
.engine-score { font: 600 34px/1.1 var(--sans); }
.moves .result-row { font: 600 18px var(--sans); }

[hidden] { display: none !important; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.video-grid.single { grid-template-columns: minmax(0, 860px); justify-content: center; }

/* flags (flag-icons) */
.fi { border-radius: 3px; box-shadow: 0 0 0 1px rgba(44, 27, 38, .10); background-size: cover; }
.name-flag .fi { width: 1.25em; line-height: .95em; margin: 0 .45em; vertical-align: .08em; }
.pr-flag .fi { width: 22px; line-height: 16px; display: block; }
.fi.sm { width: 18px; line-height: 13px; margin-right: 7px; vertical-align: -1px; }
.row-player { display: grid; grid-template-columns: 1.2fr 70px 1fr; gap: 12px; }
@media (max-width: 640px) { .row-player { grid-template-columns: 1fr 70px; } .row-player label:last-child { grid-column: 1 / -1; } }
