/* A quieter front door; the table and the existing themes keep their identity. */
body[data-nexus-surface="home"] [hidden]{display:none !important;}
.home-entry{max-width:1360px;margin:0 auto;padding:38px 26px 24px;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr);gap:40px;align-items:start;}
.home-eyebrow{font-family:'Cinzel',serif;font-size:11px;letter-spacing:2px;color:var(--gold);margin-bottom:14px;}
.home-intro h1{font-size:clamp(32px,3.6vw,46px);font-weight:600;line-height:1.12;letter-spacing:-.5px;}
.home-description{max-width:520px;margin:18px 0 22px;font-family:'Spectral',serif;font-size:16px;line-height:1.65;color:var(--text2);}
.home-actions{display:flex;gap:22px;align-items:center;flex-wrap:wrap;}
.home-actions a,.home-watch-heading>a{min-height:44px;display:inline-flex;align-items:center;gap:14px;font-family:'Spectral',serif;font-size:15px;}
.home-play{padding:11px 24px;border:1px solid var(--gold);border-radius:7px;background:var(--gold);color:var(--panel);text-decoration:none;font-weight:600;}
.home-play:hover{filter:brightness(1.12);}
.home-learn,.home-watch-heading>a{color:var(--text2);text-underline-offset:4px;}
.home-watch-heading>a{text-decoration:none;}
.home-watch-heading>a>span:first-child{text-decoration:underline;}
.home-entry a:focus-visible,.home-watch a:focus-visible{outline:2px solid var(--gold);outline-offset:4px;}
.home-board{min-width:0;margin:0;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--panel);}
.home-board-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding:16px 18px 10px;color:var(--text3);font:12px 'Spectral',serif;}
.home-board-heading>span:first-child{font:11px 'Cinzel',serif;letter-spacing:1px;color:var(--gold);}
.home-game-scores{display:flex;flex-wrap:wrap;gap:8px 20px;padding:0 18px 12px;border-bottom:1px solid var(--border);font:13px 'Spectral',serif;}
.home-game-player{display:inline-flex;align-items:center;gap:7px;color:var(--text2);}
.home-game-player::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--seat-color);}
.home-game-player b{color:var(--gold);font-weight:600;}
.home-board-stage{position:relative;isolation:isolate;touch-action:pan-y;background:radial-gradient(circle,var(--border) 1px,transparent 1.3px) 0 0/23px 23px;}
.home-game-world{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"moka espresso sufi" "aluminium espresso coffee";align-items:center;justify-items:center;gap:24px 20px;padding:24px 18px;}
.home-game-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.home-game-lines line{stroke:var(--gold);stroke-width:2;opacity:.4;}
.home-game-lines line.is-latest{stroke-width:4;opacity:1;}
.home-game-node{position:relative;z-index:1;min-width:0;width:100%;max-width:210px;border:1px solid #52616b;border-radius:10px;background:#111820;color:#f3f5f7;box-shadow:0 4px 12px rgba(0,0,0,.25);}
.home-game-preview{overflow:hidden;border-radius:9px;}
.home-game-art{position:relative;height:130px;overflow:hidden;background:#202a33;}
.home-game-art .card-wrap{display:block;transform:scale(var(--preview-scale, .6));transform-origin:0 0;}
.home-game-art .fa-hdr,.home-game-art .fa-text,.home-game-art .hdr-band,.home-game-art .body-zone{visibility:hidden;}
.home-game-copy{padding:10px 12px 12px;}
.home-game-title{margin:0;font:600 16px/1.3 'Spectral',serif;color:#fff;overflow-wrap:anywhere;}
.home-game-description{margin:6px 0 10px;font:400 14px/1.45 'Spectral',serif;color:#e0e6eb;}
.home-game-domain{font:400 13px/1.4 'Spectral',serif;color:#c0cbd4;}
.home-game-node.is-base{outline:2px solid var(--gold-dim);outline-offset:5px;}
.home-game-node.is-latest{outline:3px solid var(--gold);outline-offset:5px;box-shadow:0 0 24px var(--gold-dim);}
html[data-skin] .home-board .home-game-inspect{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;margin:0;padding:0;border:0;border-radius:9px;background:none;box-shadow:none;cursor:zoom-in;transform:none;}
.home-game-node:has(:focus-visible){outline:4px solid var(--text);outline-offset:7px;}
.home-game-node:hover{filter:brightness(1.12);}
.home-game-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 16px;border-top:1px solid var(--border);color:var(--text3);font:12px 'Spectral',serif;}
.home-game-controls>div{display:flex;gap:7px;}
html[data-skin] .home-game-control,html[data-skin] .home-card-close{min-width:44px;min-height:44px;padding:7px 12px;border:1px solid var(--border);border-radius:7px;background:var(--panel2,var(--panel));box-shadow:none;color:var(--text);font:13px 'Spectral',serif;letter-spacing:0;text-transform:none;cursor:pointer;}
.home-game-control:disabled{opacity:.35;cursor:default;}
.home-game-control:focus-visible,.home-card-close:focus-visible{outline:2px solid var(--gold);outline-offset:3px;}
.home-board-caption{border-top:1px solid var(--border);padding:16px 18px 0;}
.home-round-heading{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 14px;font:600 14px/1.5 'Spectral',serif;color:var(--text);}
#homeRoundWinner{color:var(--gold);font-size:12px;white-space:nowrap;}
.home-board-caption p{font:400 14px/1.6 'Spectral',serif;color:var(--text2);margin:8px 0;}
.home-game-details{color:var(--text2);font:13px/1.6 'Spectral',serif;}
.home-game-details summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--gold);}
.home-game-details summary::before{content:'+';}
.home-game-details[open] summary::before{content:'−';}
.home-game-details ul{padding:0;list-style:none;}
.home-game-details li{padding:12px 0;border-top:1px solid var(--border);}
.home-game-details h2{font:600 14px 'Spectral',serif;margin-top:10px;}
.home-board-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:0 16px;padding:0 18px 8px;}
.home-board-footer>a{min-height:44px;display:inline-flex;align-items:center;gap:8px;font:12px 'Spectral',serif;color:var(--text3);text-decoration:none;text-underline-offset:4px;}
.home-board-footer>a>span:first-child{text-decoration:underline;}
.home-card-dialog{margin:auto;padding:18px;border:1px solid var(--border);border-radius:14px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;background:var(--panel);color:var(--text);}
.home-card-dialog::backdrop{background:rgba(8,12,17,.84);backdrop-filter:blur(5px);}
.home-card-close{display:block;margin:0 0 12px auto;}
.home-card-full{width:280px;margin:auto;}
.home-card-full .card-wrap{display:block;}
.home-card-links{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;max-width:380px;}
.home-card-links a{display:inline-flex;align-items:center;min-height:44px;font:12px 'Spectral',serif;color:var(--text2);}
.section.wide.home-watch{max-width:1180px;scroll-margin-top:82px;}
.home-watch-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--border);padding-top:26px;margin-bottom:18px;}
.home-watch-heading h2{font-size:28px;font-weight:600;}
.home-watch-heading p{font-family:'Spectral',serif;font-size:14px;line-height:1.6;color:var(--text2);margin-top:4px;}
/* Match the skin selector's specificity: the count is text, not an Aero button. */
html[data-skin] body[data-nexus-surface="home"] .home-watch .live-chip{background:none;border:0;border-radius:0;box-shadow:none;padding:7px 0;letter-spacing:.5px;text-transform:none;font-family:'Spectral',serif;font-size:13px;color:var(--text3);}
.home-watch .live-refresh{min-height:44px;}
.home-watch .lg-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.foot a{display:inline-flex;align-items:center;min-height:44px;color:var(--text2);text-underline-offset:3px;}
html[data-skin="aero"] .home-play{background:var(--aero-blue-deep,#186d86);border-color:var(--aero-blue-deep,#186d86);color:#fff;}
/* Keep the introduction near the top while letting readable replay cards
   take the height they need, including in short or zoomed windows. */
@media(min-width:841px){
  .home-entry{padding-block:24px;}
  .home-intro{padding-top:clamp(0px,5dvh,48px);}
}
/* Narrow screens could squeeze the table previews and the introduction. */
@media(max-width:1080px){
  .home-entry{gap:24px;}
  .home-intro h1{font-size:36px;}
  .home-watch .lg-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* At tablet widths the full header could extend beyond the right edge. */
@media(min-width:641px) and (max-width:1080px){
  body[data-nexus-surface="home"] #siteNav{flex-wrap:wrap;}
}
@media(min-width:641px) and (max-width:840px){
  .home-entry{grid-template-columns:1fr;max-width:650px;}
  .home-intro{max-width:540px;}
  .home-board{width:100%;}
}
/* Phones need the play action above the fold and a single readable column. */
@media(max-width:640px){
  .home-entry{grid-template-columns:1fr;gap:30px;padding:28px 16px 12px;}
  .home-intro h1{font-size:34px;}
  .home-description{font-size:16px;margin:12px 0 16px;}
  .home-board-heading{padding:14px 12px 10px;font-size:11px;}
  .home-board-heading>span:first-child{font-size:9px;letter-spacing:.7px;}
  .home-board-caption{padding:14px 12px 0;}
  .home-board-footer{padding:0 12px 8px;gap:0 8px;}
  .home-game-scores{padding:0 12px 10px;gap:8px 14px;font-size:12px;}
  .home-game-controls{padding:8px 12px;gap:5px;}
  .home-watch-heading{align-items:flex-start;flex-direction:column;gap:4px;padding-top:20px;}
  .home-watch .lg-grid{grid-template-columns:minmax(0,1fr);}
}
/* The graph's third column made phone card labels too small to read. */
@media(max-width:640px){
  .home-game-world{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"espresso espresso" "moka aluminium" "coffee sufi";gap:20px 16px;padding:20px 14px;}
  .home-game-art{height:115px;}
  .home-game-copy{padding:10px;}
}
