:root{font-family:Inter,Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20332e;background:#f5f5ef;font-synthesis:none;line-height:1.6}
*{box-sizing:border-box}body{margin:0}main{max-width:920px;margin:auto;padding:56px 24px}header{margin-bottom:30px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#677870}h1{font-size:clamp(32px,6vw,48px);letter-spacing:-2px;margin:8px 0}h1 span{color:#df6c45}p{margin:8px 0;color:#5b6962}h2{font-size:23px;margin:0 0 12px}button{font:inherit;cursor:pointer;color:inherit;background:white;border:1px solid #d8ded8;border-radius:10px;padding:10px 16px}button:hover{border-color:#365c4d;background:#f1f6f0}button:focus-visible,summary:focus-visible{outline:3px solid #d16b35;outline-offset:4px}button:disabled{opacity:.45;cursor:default}.notice{background:#fff0d8;border:1px solid #ecd7b2;border-radius:10px;padding:12px 16px;font-size:14px;margin-bottom:24px}.rounds{display:grid;gap:12px}.round-card{text-align:left;padding:22px;display:flex;justify-content:space-between;align-items:center}.round-card strong{display:block;font-size:19px}.round-card small{color:#667b70;font-size:11px;letter-spacing:1px}.primary{background:#224e3c;color:white;border-color:#224e3c}.primary:hover{background:#183d2e;color:white}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.stats{display:grid;grid-template-columns:repeat(4,1fr);background:#e9eee6;border-radius:14px;padding:20px 8px}.stat{text-align:center}.stat strong{display:block;font-size:26px}.stat span{font-size:13px;color:#52665c}progress{width:100%;height:7px;accent-color:#2c624b;margin:14px 0 22px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.filters button{font-size:14px;padding:8px 13px;border-radius:24px}.filters button[aria-pressed=true]{background:#224e3c;color:white;border-color:#224e3c}.filter-label{font-size:12px;font-weight:bold;margin:18px 0 7px;color:#66786c}.list{display:grid;gap:10px;margin-top:24px}details{border:1px solid #dbe1d9;background:#fff;border-radius:12px;overflow:hidden}details[open]{border-color:#597f67;box-shadow:0 4px 16px #21382b08}summary{list-style:none;cursor:pointer;padding:20px;display:flex;gap:15px;align-items:flex-start}summary::-webkit-details-marker{display:none}.coord{font-family:monospace;font-weight:bold;background:#edf1eb;border-radius:6px;min-width:40px;text-align:center;padding:3px 6px}.question-head{flex:1;min-width:0}.question-title{display:block;font-size:16px;line-height:1.6;overflow-wrap:anywhere}.status{display:block;font-size:12px;margin-top:6px;color:#718177}.chevron{color:#6b7d70;font-size:12px;padding-top:6px;white-space:nowrap}.detail{padding:0 20px 22px 75px}.answers{display:flex;gap:12px}.answers button{min-height:58px;min-width:100px;width:100px;flex:0 0 100px;font-size:25px;font-weight:bold}.feedback{border-radius:10px;padding:16px;background:#edf5ef}.feedback.wrong{background:#fff0e9}.feedback strong{display:block}.feedback p{font-size:14px}.result{background:#e6eee1;border:1px solid #c6d7bc;border-radius:14px;padding:24px;margin-top:22px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.empty{text-align:center;padding:40px;background:#fff;border:1px dashed #cad3c7;border-radius:12px}.good{color:#246243}.bad{color:#ac452c}footer{margin-top:54px;font-size:10px;letter-spacing:2px;color:#849183;text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
#result-preview{display:block;width:100%;max-width:360px;height:auto;margin-top:18px;border:1px solid #c6d7bc;border-radius:12px}#image-status{font-size:13px;margin-top:16px}
@media(max-width:560px){main{padding:28px 16px}.stat strong{font-size:21px}.stat span{font-size:11px}summary{padding:16px;gap:10px}.detail{padding:0 16px 18px}.chevron{font-size:11px}.toolbar{align-items:flex-start}.toolbar h2{font-size:20px}.round-card{padding:18px}}

.rate-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.rate-stats>div{background:#fff;border:1px solid #dbe1d9;border-radius:12px;padding:16px}.rate-stats strong{display:block;font-size:25px}.rate-stats span,.rate-stats small{display:block;font-size:12px}.rate-stats small{color:#66786c}.answers{flex-wrap:wrap}.answers .pass-button{font-size:16px}.answers .pass-button,.feedback.passed{background:#f1f1ed;color:#59675d}.feedback.passed p{color:inherit}

.question-card.correct{border-color:#a9c7b2}.question-card.correct:not([open]){background:#edf5ef}.question-card.correct summary .question-title{color:#246243}.question-card.correct summary .coord{background:#deecdf;color:#246243}.question-card.wrong{border-color:#e3aaa4}.question-card.wrong:not([open]){background:#fff0ed}.question-card.wrong summary .question-title{color:#ac452c}.question-card.wrong summary .coord{background:#fbe0db;color:#ac452c}.question-card.passed{border-color:#bfc4bd}.question-card.passed:not([open]){background:#f1f1ed}.question-card.passed summary .question-title{color:#59675d}.question-card.passed summary .coord{background:#e6e8e2;color:#59675d}.feedback.correct{background:#edf5ef;color:#246243}.feedback.correct p{color:inherit}

.pass-all{background:#f1f1ed;color:#59675d}.pass-all-note{align-self:center;font-size:13px;color:#66786c}

.board-caption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:22px 0 12px;font-weight:700}.board-caption span{font-size:13px;font-weight:400}.board-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.board-cell{position:relative;aspect-ratio:1;min-width:0;padding:27px 8px 8px;text-align:left;border-radius:8px;overflow:hidden}.board-coordinate{position:absolute;top:5px;left:8px;font-size:11px;font-weight:800;color:#65776b}.board-cell-content{font-size:11px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.board-cell.mystery{background:#e7eddf;border-color:#c8d3bd}.board-cell.mystery .board-cell-content{display:block;font-size:34px;text-align:center;line-height:1}.board-cell[aria-pressed=true]{border:2px solid #246243;background:#e5f0e6}.board-detail{margin-top:18px;min-height:145px;padding:24px;background:white;border:1px solid #c7d7ca;border-radius:12px}.board-detail h3{font-size:20px;line-height:1.6;margin:8px 0;overflow-wrap:anywhere}.board-note{font-size:13px;margin-top:16px}
@media(max-width:600px){.board-grid{gap:4px}.board-cell{padding:20px 2px 3px;min-height:45px}.board-coordinate{top:4px;left:5px;font-size:11px}.board-cell:not(.mystery) .board-cell-content{display:none}.board-cell.mystery .board-cell-content{font-size:23px}.board-detail{padding:18px}.board-detail h3{font-size:18px}}

.color-section{margin:24px 0}.color-section h3{font-size:17px}.color-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.color-option{display:flex;flex-direction:column;align-items:center;gap:9px;padding:20px 8px}.color-swatch{display:inline-block;width:30px;height:30px;border:1px solid #9ca49d;border-radius:6px;flex-shrink:0}.color-option .color-swatch{width:42px;height:42px}.color-option small{font-size:12px}.color-option[aria-pressed=true]{outline:2px solid #246243;background:#edf5ef}.color-option:disabled{opacity:.5}.player-colors{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px;padding:18px;background:#e9eee6;border-radius:12px;margin:20px 0}.color-chip{display:inline-flex;align-items:center;gap:9px;font-size:14px;font-weight:bold}@media(max-width:420px){.color-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

.answer-clock{margin:14px 0;font-size:16px}.answer-clock strong{font-size:26px;color:#ac452c}.board-next{margin-top:14px}.board-cell.answered-cell{box-shadow:inset 0 -4px #647b69}.board-cell:disabled{opacity:.65}

.turn-banner{padding:12px 16px;margin:12px 0;background:#e9eee6;border-radius:10px;font-weight:800}.board-cell.owned-cell:disabled{opacity:1;border:2px solid #73776c}.board-cell.owned-cell .board-coordinate{color:inherit}.board-cell.owned-cell .board-cell-content{display:block;text-align:center;font-weight:800;font-size:15px}@media(max-width:600px){.board-cell.owned-cell .board-cell-content{font-size:9px}}

.time-setting{padding:20px;background:#fff;border:1px solid #dbe1d9;border-radius:12px;display:grid;gap:8px}.time-setting label{font-weight:700}.time-setting input{width:100px;padding:10px;border:1px solid #9ca49d;border-radius:8px;font:inherit}.time-setting small{color:#66786c}

.cpu-setting{padding:20px;background:#fff;border:1px solid #dbe1d9;border-radius:12px;margin-top:16px;display:grid;gap:10px}.cpu-setting label{display:flex;justify-content:space-between;font-weight:700}.cpu-setting input{width:100%;accent-color:#246243;min-height:28px}.cpu-setting small{color:#66786c}.range-labels{display:flex;justify-content:space-between;font-size:12px;color:#66786c}

.line-notice{margin-top:14px;padding:18px;border:2px solid #b18a30;background:#fff4d7;border-radius:10px}.line-notice strong{letter-spacing:2px}.line-notice p{margin:4px 0}.board-cell.line-highlight{outline:3px solid #e19d20;outline-offset:-5px}.line-totals{font-size:14px;font-weight:700;margin:10px 0}

.board-cell.steal-target{outline:3px dashed #ac452c;outline-offset:-5px;cursor:crosshair}.board-cell.steal-target:hover{box-shadow:inset 0 0 0 5px #c54332}.owned-cell .board-cell-content:empty{display:none}

.round-result{padding:22px;background:#edf3e7;border:1px solid #b8cbb0;border-radius:12px}.round-result h2{margin-top:8px}.round-score{display:flex;align-items:center;justify-content:center;gap:24px;font-size:18px;margin:20px 0}.round-score strong{font-size:42px}.round-history{padding-left:20px;font-size:14px}.round-step{padding:8px 13px;border:1px solid #d8ded8;border-radius:24px;font-size:13px}.round-step.current{background:#224e3c;color:#fff}

.match-preview{display:block;width:100%;max-width:420px;height:auto;margin-top:18px;border:1px solid #c8c3b8;border-radius:10px}[data-match-image-status]{font-size:13px;margin-top:12px}

.board-screen>.board-detail{margin-top:0;margin-bottom:18px}

.menu-page,.rules-page{max-width:760px;margin:0 auto}.menu-buttons{display:grid;gap:14px;margin:28px 0}.menu-buttons button{padding:22px;font-size:19px;text-align:left}.menu-page form{display:grid;gap:12px;margin-top:24px}.menu-page input{width:100%;box-sizing:border-box;border:1px solid #c7d7ca;border-radius:8px;padding:14px;font:inherit}.rules-page{line-height:1.85}.rules-page h3{margin-top:28px}.rules-page li{margin-bottom:12px}.player-nickname{font-weight:700}

.nickname-setting{display:grid;gap:10px;margin:24px 0}.nickname-setting label{font-weight:700}.nickname-setting input{box-sizing:border-box;width:100%;max-width:420px;padding:12px;border:1px solid #c7d7ca;border-radius:8px;font:inherit}.nickname-setting small{color:#65776b}

.game-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:28px 0}.game-setting{display:flex;flex-direction:column;gap:10px;padding:20px;border:1px solid #c7d7ca;border-radius:12px;background:#fff}.game-setting label{font-weight:700}.setting-input{display:flex;align-items:center;gap:12px}.setting-input input{width:100%;min-width:0;box-sizing:border-box;padding:12px;border:1px solid #b8c7bc;border-radius:8px;font:inherit;font-size:20px}.setting-input span{min-width:22px}.game-setting small{color:#65776b;line-height:1.5}@media(max-width:520px){.game-settings{grid-template-columns:1fr}}

.board-grid .board-cell{padding-top:calc(var(--coord-font,11px) + 16px)}.board-grid .board-coordinate{font-size:var(--coord-font,11px)}.board-grid .board-cell-content{font-size:var(--cell-font,11px);-webkit-line-clamp:6}.board-grid .board-cell.mystery .board-cell-content{font-size:var(--mystery-font,34px)}
@media(max-width:600px){.board-grid .board-coordinate{font-size:clamp(11px,3.4vw,var(--coord-font,11px))}.board-grid .board-cell{padding-top:calc(clamp(11px,3.4vw,var(--coord-font,11px)) + 12px)}.board-grid .board-cell.mystery .board-cell-content{font-size:clamp(23px,8vw,var(--mystery-font,34px))}.board-grid[data-size="2"] .board-cell:not(.mystery) .board-cell-content,.board-grid[data-size="3"] .board-cell:not(.mystery) .board-cell-content,.board-grid[data-size="4"] .board-cell:not(.mystery) .board-cell-content{display:-webkit-box;font-size:clamp(12px,3.4vw,var(--cell-font));-webkit-line-clamp:4}.board-grid[data-size="2"] .board-cell:not(.mystery) .board-cell-content{font-size:clamp(16px,4.5vw,28px);-webkit-line-clamp:6}}

/* Season 2 visual theme */
:root{--paper:#f0eee7;--ink:#080808;--blue:#1646f5;--red:#ef321f;--muted:#d1cfc8;--border:#55544f;font-family:'Noto Sans KR',sans-serif;color:var(--paper);background:var(--ink);line-height:1.65;color-scheme:dark}
body{background:var(--ink);word-break:keep-all}main{max-width:1080px;padding:56px 32px 72px}header{padding-bottom:30px;border-bottom:1px solid var(--border);margin-bottom:36px}h1,h2,.board-detail h3{font-family:Cafe24ProSlim,'Noto Sans KR',sans-serif;font-weight:400;letter-spacing:-.035em}h1{font-size:clamp(56px,9vw,96px);line-height:1.05;margin:20px 0}h1 span{color:var(--red)}h2{font-size:clamp(30px,4vw,44px);line-height:1.15}h3{color:var(--paper)}p{color:var(--muted)}.eyebrow,.coord,.board-coordinate,.stat strong,.rate-stats strong,.round-score,.answer-clock strong,.round-step{font-family:'IBM Plex Mono','Noto Sans KR',sans-serif}.eyebrow{color:var(--muted);letter-spacing:.12em}.toolbar{gap:20px;padding-bottom:20px;border-bottom:1px solid var(--border)}.toolbar .actions{margin-top:0}button,input,select{font:inherit}button{border-radius:0;background:transparent;color:var(--paper);border-color:var(--border);font-weight:700;min-height:46px}button:hover{background:#20201e;border-color:var(--paper)}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:4px}.primary,.filters button[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff}.primary:hover{background:#1038c9;border-color:#1038c9}.menu-buttons{gap:0;border-top:1px solid var(--border)}.menu-buttons button{padding:28px 20px;border-top:0;font-size:22px}.menu-buttons button:hover{background:var(--blue)}.round-card,.filters button,.color-option,.color-chip,.board-cell,.board-detail,.game-setting,.stats,.rate-stats>div,.question-card,.coord,.feedback,.result,.round-result,.notice,.line-notice,.empty,#result-preview,.match-preview{border-radius:0}.round-card{background:transparent}.round-card small,.filter-label,.chevron,.stat span,.game-setting small,.nickname-setting small,.rate-stats small{color:var(--muted)}.stats{background:#171716;border:1px solid var(--border)}.rate-stats>div,.game-setting,.board-detail,.question-card,.empty{background:#10100f;border-color:var(--border)}.game-setting{padding:22px}.nickname-setting input,.setting-input input{border-radius:0;background:#080808;color:var(--paper);border-color:var(--border)}.setting-input input{font-family:'IBM Plex Mono',monospace}.nickname-setting input{max-width:100%}.nickname-setting input::placeholder{color:#bcbab3;opacity:1}.game-settings{gap:0;border-left:1px solid var(--border);border-top:1px solid var(--border)}.game-setting{border-top:0;border-left:0}.color-option,.color-chip{background:transparent;border-color:var(--border)}.color-option[aria-pressed=true]{background:#222;border-color:var(--paper);color:var(--paper)}.color-option small{color:var(--muted)}.color-swatch{border:1px solid #777;border-radius:0}.board-caption{margin-top:24px;color:var(--paper)}.board-detail{padding:28px}.board-detail h3{font-size:clamp(28px,4vw,42px);line-height:1.35;margin:18px 0}.board-cell{background:#10100f;border-color:#65635e}.board-cell-content{font-family:'Noto Sans KR',sans-serif}.board-coordinate{color:var(--muted)}.board-cell.mystery{background:#22211e;border-color:#827967}.board-cell[aria-pressed=true]{background:#17213d;border-color:var(--blue)}.board-cell:disabled:not(.owned-cell){opacity:.8}.feedback{background:#1a1b1a}.feedback p{color:inherit}.result,.round-result{background:#171716;border-color:var(--border);color:var(--paper)}.round-history{color:var(--muted)}.notice,.line-notice{background:#292414;border-color:#89763f;color:#f1dc93}.line-notice p,.notice p{color:inherit}.answer-clock strong{color:#ff7667}.coord{background:#272725;color:var(--paper)}.question-card[open]{border-color:#aaa;box-shadow:none}.question-card.correct:not([open]),.feedback.correct{background:#13251b}.question-card.correct summary .question-title,.feedback.correct{color:#8ac59c}.question-card.correct summary .coord{background:#254631;color:#a7d8b5}.question-card.wrong:not([open]),.feedback.wrong{background:#301814}.question-card.wrong summary .question-title,.feedback.wrong{color:#ff9f91}.question-card.wrong summary .coord{background:#512620;color:#ffb1a6}.question-card.passed:not([open]),.feedback.passed,.answers .pass-button,.pass-all{background:#242422;color:#c6c5bd}.question-card.passed summary .question-title{color:#c6c5bd}.question-card.passed summary .coord{background:#373733;color:#d1d0c8}progress{accent-color:var(--blue)}.rules-page h3{padding-top:20px;border-top:1px solid var(--border)}.rules-page li{color:var(--muted)}.match-preview,#result-preview{border-color:var(--border)}
@media(max-width:600px){main{padding:30px 16px 48px}.toolbar{flex-wrap:wrap}.toolbar h2{font-size:30px}.toolbar .actions{width:100%}.toolbar .actions button{flex:1;padding:10px 8px}.board-detail{padding:20px}.board-detail h3{font-size:28px}.menu-buttons button{font-size:20px}.game-setting{padding:18px}.answers{gap:8px}.answers button{min-width:0;width:auto;flex:1 1 0}}

/* Readable summaries and player colors on the dark theme. */
.player-colors{background:transparent;color:var(--paper);border:0;border-radius:0}
.player-colors .color-chip{color:var(--paper)}
.result-summary{background:#242424;border:1px solid var(--border);padding:16px 20px;margin-top:18px}
.result-summary p{color:var(--muted);overflow-wrap:anywhere}
.result-summary strong{color:var(--paper);font-family:'IBM Plex Mono','Noto Sans KR',sans-serif}
.good{color:#8ac59c}.bad{color:#ff9f91}.status,footer{color:var(--muted)}

/* Shared wordmark and broadcast-inspired landing page. */
.site-masthead{position:sticky;top:0;z-index:20;display:flex;justify-content:center;align-items:center;padding:20px 24px;background:#080808;border-bottom:1px solid var(--border)}
.site-masthead img{display:block;width:176px;height:auto;filter:brightness(0) invert(1)}
.is-home main>header{display:none}
.is-home main{padding-top:64px}
.home-intro{max-width:800px;margin:0 auto;text-align:center}
.home-intro h2{font-family:'Noto Sans KR',sans-serif;font-size:clamp(30px,5.4vw,56px);font-weight:700;line-height:1.45;letter-spacing:-.055em;margin:0 0 32px}
.home-description{font-size:clamp(15px,2.2vw,20px);line-height:1.9;color:var(--paper);margin-bottom:32px}
.home-description strong{font-weight:700}
.watch-link{display:flex;justify-content:space-between;align-items:center;gap:24px;max-width:440px;margin:0 auto 48px;padding:18px 22px;border:1px solid var(--border);color:var(--paper);text-decoration:none;font-weight:700}
.watch-link:hover{background:#242424;border-color:var(--paper)}
.watch-link:focus-visible{outline:3px solid var(--paper);outline-offset:4px}
.home-intro .menu-buttons{max-width:600px;margin:0 auto;grid-template-columns:1fr 1fr;border-top:0;gap:12px}
.home-intro .menu-buttons button{border:1px solid var(--paper);padding:22px 14px;background:transparent}
.home-intro .menu-buttons button:hover{background:var(--red);border-color:var(--red)}
@media(max-width:600px){.site-masthead{padding:16px}.site-masthead img{width:140px}.is-home main{padding-top:44px}.home-intro .menu-buttons{grid-template-columns:1fr}.home-intro .menu-buttons button{padding:18px}.watch-link{margin-bottom:32px}}

/* Reference layout: left wordmark, slender headline, red emphasis. */
.site-masthead{justify-content:flex-start;padding:20px clamp(24px,4vw,64px)}
.site-masthead img{width:176px}
.is-home main{max-width:1600px;padding:0 0 64px}
.home-intro{display:grid;grid-template-columns:1.2fr 1fr;max-width:none;text-align:left;align-items:stretch}
.home-copy{padding:clamp(48px,7vw,112px) clamp(24px,6vw,96px)}
.home-intro h2{font-family:Cafe24ProSlim,'Noto Sans KR',sans-serif;font-weight:400;font-size:clamp(72px,8vw,128px);line-height:.98;letter-spacing:-.045em;margin-bottom:48px}
.home-intro h2 span{color:var(--red)}
.home-description{font-size:17px;line-height:1.9;margin-bottom:40px}
.watch-link{margin:0;max-width:340px;background:var(--blue);border-color:var(--blue);padding:22px 24px}
.watch-link:hover{background:var(--red);border-color:var(--red)}
.watch-link>span[aria-hidden]{font-size:28px;line-height:1}
.home-intro .menu-buttons{width:100%;max-width:none;margin:0;padding:clamp(32px,5vw,80px);border-left:1px solid var(--border);grid-template-columns:1fr;align-content:center;gap:20px;background:#10100f}
.home-intro .menu-buttons button{font-family:Cafe24ProSlim,'Noto Sans KR',sans-serif;font-weight:400;font-size:clamp(32px,3.2vw,48px);padding:30px 24px}
.question-title,.board-cell-content,.board-caption,.round-card,.round-card strong{font-weight:400}
@media(max-width:760px){.site-masthead{padding:16px 24px}.site-masthead img{width:140px}.is-home main{padding:0 0 32px}.home-intro{grid-template-columns:1fr}.home-copy{padding:48px 24px}.home-intro h2{font-size:clamp(64px,13vw,98px);margin-bottom:32px}.home-description{font-size:15px}.home-intro .menu-buttons{padding:24px;border-left:0;border-top:1px solid var(--border)}.home-intro .menu-buttons button{padding:22px 20px}.watch-link{max-width:340px}}

/* One shared, non-sticky brand row replaces the page heading area. */
.site-masthead{position:static;gap:28px;flex-wrap:wrap}
.site-masthead .site-title{font-size:clamp(26px,3.2vw,42px);line-height:1.1;margin:0;white-space:nowrap}
@media(max-width:600px){.site-masthead{gap:16px;padding:16px}.site-masthead img{width:112px}.site-masthead .site-title{font-size:26px}}

/* Fill the available viewport while keeping both home columns centered. */
.site-masthead .site-title{font-size:60px;line-height:1;margin:0}
body.is-home{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.is-home .site-masthead{flex-shrink:0}
.is-home main{width:100%;max-width:none;margin:0;padding:0;flex:1;display:flex;flex-direction:column}
.is-home #app{flex:1;display:flex;min-width:0}
.is-home .home-intro{flex:1;width:100%;min-width:0;margin:0}
.home-copy{display:flex;flex-direction:column;justify-content:center;min-width:0}
.home-copy .watch-link{width:100%}
.home-intro .menu-buttons{min-width:0}
@media(max-width:760px){.site-masthead .site-title{font-size:48px}.is-home .home-intro{grid-template-rows:auto minmax(240px,1fr)}}
@media(max-width:600px){.site-masthead{gap:16px}.site-masthead .site-title{font-size:38px}}
@media(max-width:360px){.site-masthead{gap:12px}.site-masthead img{width:96px}.site-masthead .site-title{font-size:33px}}

/* Compact page entry and explicitly left-aligned branding. */
.site-masthead{justify-content:flex-start;text-align:left}
.site-masthead .site-title{text-align:left;margin-left:0;margin-right:0}
body:not(.is-home) main{padding-top:0}
body:not(.is-home) #app>.toolbar:first-child{margin-top:0}
body:not(.is-home) #app>.rules-page:first-child{padding-top:0;margin-top:0}

/* Right-aligned title and episode link. */
.site-masthead .site-title{margin-left:auto;text-align:right}
.home-copy .youtube-link{margin-top:12px;background:var(--red);border-color:var(--red)}
.home-copy .youtube-link:hover{background:var(--blue);border-color:var(--blue)}

/* Balanced page toolbar; setup swatches without a surrounding box. */
.toolbar{padding-top:20px;padding-bottom:20px;align-items:center;column-gap:24px}
.toolbar h2{margin:0}
.toolbar .actions{align-items:center}
.player-colors.setup-colors{background:transparent;border:0;padding:0;margin:20px 0}
@media(max-width:600px){.toolbar{padding-top:16px;padding-bottom:16px;align-items:center;row-gap:16px}}

.share-link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 16px;border:1px solid var(--border);color:var(--paper);text-decoration:none;font-weight:700}
.share-link:hover{background:#20201e;border-color:var(--paper)}
.share-link:focus-visible{outline:3px solid var(--paper);outline-offset:4px}

/* Keep team swatches vivid, including unavailable choices. */
.color-option:disabled{opacity:1;border-style:dashed;color:var(--muted)}
.color-option:disabled:hover{background:transparent;border-color:var(--border)}
.color-option .color-swatch{border-color:#a5a5a0}

/* Size rows from the board, not the intrinsic content of square buttons. */
.board-grid{width:100%;aspect-ratio:1 / 1;grid-template-rows:repeat(var(--board-size,7),minmax(0,1fr));align-items:stretch;align-content:stretch;min-width:0}
.board-grid .board-cell{width:100%;height:100%;min-width:0;min-height:0;aspect-ratio:auto;overflow:hidden;contain:layout paint}
.board-grid .board-cell-content{position:absolute;top:calc(var(--coord-font,11px) + 16px);left:8px;right:8px;bottom:8px;max-height:calc(100% - var(--coord-font,11px) - 24px);overflow:hidden}
.board-grid .board-cell.mystery .board-cell-content{display:flex;align-items:center;justify-content:center;line-height:1}
@media(max-width:600px){.board-grid .board-cell-content{top:calc(clamp(11px,3.4vw,var(--coord-font,11px)) + 12px);max-height:calc(100% - clamp(11px,3.4vw,var(--coord-font,11px)) - 20px)}}

/* High-contrast outlines for all team choices. */
.single-setup .color-option,.single-setup .color-option:disabled:hover{border-color:#fff}
.single-setup .color-option[aria-pressed=true]{outline:none;box-shadow:inset 0 0 0 2px #fff}
.single-setup .color-option .color-swatch{border:0}

.rules-page .rules-heading{display:flex;align-items:center;padding:20px 0;margin:0 0 20px}
.rules-page .rules-heading h2{margin:0}
.rules-page .rules-heading+h3{border-top:0;padding-top:0;margin-top:0}
@media(max-width:600px){.rules-page .rules-heading{padding:16px 0}}

/* Equal-width O/X lettering with explicit monochrome answer colors. */
.answers button[data-answer="O"],.answers button[data-answer="X"],.answers button[data-game-answer]{font-family:'IBM Plex Mono',monospace;font-weight:600;line-height:1;display:flex;align-items:center;justify-content:center}
.answers button[data-answer="O"],.answers button[data-game-answer="O"]{background:#fff;color:#000;border-color:#fff}
.answers button[data-answer="X"],.answers button[data-game-answer="X"]{background:#000;color:#fff;border-color:#fff}
.answers button[data-answer="O"]:hover,.answers button[data-game-answer="O"]:hover{border-color:#000;box-shadow:inset 0 0 0 2px #000}
.answers button[data-answer="X"]:hover,.answers button[data-game-answer="X"]:hover{box-shadow:inset 0 0 0 2px #fff}

.answers .answer-symbol{display:block;width:28px;height:28px;flex:none;fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;pointer-events:none}

/* Contact link follows page content; setup and rules screens omit it. */
.site-footer{flex-shrink:0;margin:0;padding:12px 16px;text-align:center;font-size:12px;line-height:1.8;color:#d1cfc8;background:#080808}
.site-footer a{display:inline-block;color:#fff;text-decoration:underline;text-underline-offset:3px}
.site-footer a:hover{color:#ef321f}
.site-footer a:focus-visible{outline:2px solid #fff;outline-offset:4px}
body:has(#app .rules-page) .site-footer,body:has(.single-setup) .site-footer,body:has(#practice-nickname) .site-footer{display:none}

/* Clear selection border, white rules, and outcome feedback. */
.single-setup .color-option:focus-visible{outline:2px solid #fff;outline-offset:0}
.rules-page,.rules-page p,.rules-page li,.rules-page h2,.rules-page h3,.rules-page button{color:#fff}
.board-detail .feedback.correct{background:#194d35;color:#fff}
.board-detail .feedback.wrong{background:#702c2c;color:#fff}
.board-detail .feedback.correct p,.board-detail .feedback.wrong p{color:inherit}

/* Optical sizing: the round symbol needs a little more area than the diagonals. */
.answers button[data-answer="O"] .answer-symbol,.answers button[data-game-answer="O"] .answer-symbol{width:30px;height:30px;stroke-width:3.75}

/* Keep the contact footer close to the content above it. */
body:not(.is-home):not(:has(#app .rules-page,.single-setup,#practice-nickname)) main{padding-bottom:0}

/* White text for feedback and match summaries. */
.feedback.correct,.feedback.wrong,.feedback.correct p,.feedback.wrong p{color:#fff}
.round-result p,.round-history,.round-history li{color:#fff}
.rules-dialog{width:min(820px,calc(100% - 32px));max-height:85dvh;padding:24px;border:1px solid #fff;background:#10100f;color:#fff;overflow:auto}
.rules-dialog::backdrop{background:rgba(0,0,0,.8)}
.rules-dialog .rules-page{margin:0 auto}
.rules-dialog .actions{position:sticky;bottom:-24px;background:#10100f;padding:16px 0}

.player-colors .color-swatch{border:0}

/* Start hover and monochrome rules return focus. */

.rules-page button[data-close-rules]:hover,.rules-page button[data-close-rules]:focus-visible,.rules-page button[data-action="rulesBack"]:hover,.rules-page button[data-action="rulesBack"]:focus-visible{background:#fff;color:#080808;border-color:#fff;outline:none}

.question-card.unanswered>summary{cursor:default}

/* Claimed land shows its team color without a gray frame. */
.board-grid .board-cell.owned-cell{border:0;box-shadow:none}
.board-grid .board-cell[aria-pressed=true]:not(:focus-visible){outline:none;box-shadow:none;border-color:transparent}

.board-bottom-actions,.board-bottom-actions .actions,.practice-bottom-actions{justify-content:flex-end}
.board-bottom-actions .actions{margin-left:auto}

.site-footer .fan-notice{margin:6px 0 0;color:#d1cfc8;font-size:12px;line-height:1.8}

.result-watch{margin-top:24px;padding-top:20px;border-top:1px solid #fff;color:#f0eee7}
.result-watch p{margin:0 0 12px;line-height:1.8;color:#f0eee7}
.result-watch a{display:inline-block;padding:10px 16px;background:#1646f5;color:#fff;text-decoration:none;border:1px solid #1646f5}
.result-watch a:hover{background:#ef321f;border-color:#ef321f}
.result-watch a:focus-visible{outline:2px solid #fff;outline-offset:4px}

/* Center mystery symbols across the whole tile, including the coordinate area. */
.board-grid .board-cell.mystery .board-cell-content{inset:0;max-height:none;display:flex;align-items:center;justify-content:center;pointer-events:none}

/* Read longer statements inside fixed-size desktop board cells. */
@media(min-width:601px){
  .board-grid .board-cell:not(.mystery):not(.owned-cell) .board-cell-content{
    display:block;
    font-size:var(--question-font,var(--cell-font,11px));
    line-height:1.5;
    -webkit-line-clamp:unset;
    max-height:none;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior-y:contain;
    scrollbar-width:thin;
    scrollbar-color:#d1cfc8 #242422;
    word-break:normal;
    overflow-wrap:anywhere;
  }
  .board-grid .board-cell-content::-webkit-scrollbar{width:5px}
  .board-grid .board-cell-content::-webkit-scrollbar-thumb{background:#d1cfc8;border-radius:3px}
  .board-grid .board-cell-content::-webkit-scrollbar-track{background:#242422}
}

.board-font-setting{display:flex;align-items:center;gap:12px;justify-content:flex-end;margin:0 0 14px;color:#f0eee7;font-size:14px}
.board-font-setting input{width:160px;max-width:35vw;accent-color:#1646f5;cursor:pointer}
.board-font-setting output{min-width:4ch;font-family:'IBM Plex Mono',monospace}
@media(max-width:600px){.board-font-setting{display:none}}

.board-heading-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 12px}
.board-heading-row .board-caption{margin:0;flex-shrink:0}
.board-heading-row .board-font-setting{margin:0;min-width:0;white-space:nowrap;gap:8px}
.board-heading-row .board-font-setting input{width:clamp(70px,14vw,160px);min-width:0}

.privacy-entry{display:none;margin-top:6px}
body:has(#app .home-intro) .privacy-entry{display:block}
.site-footer #privacy-open{padding:2px 0;border:0;background:transparent;color:#fff;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.site-footer #privacy-open:hover{color:#ef321f}
.privacy-content{padding:24px}
.privacy-content h2{font-size:36px;margin:0 0 24px}
.privacy-content h3{font-size:18px;margin:24px 0 8px;color:#fff}
.privacy-content p{color:#f0eee7;line-height:1.8}
.privacy-content a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.privacy-content .actions{justify-content:flex-end;margin-top:24px}

/* Shared action colors across practice and solo screens. */
body button:is([data-setup-rules],[data-board-rules],[data-action="practiceRules"],[data-action="practicePlayRules"]){background:var(--blue);border-color:var(--blue);color:#fff}
body button:is([data-setup-rules],[data-board-rules],[data-action="practiceRules"],[data-action="practicePlayRules"]):hover:not(:disabled){background:var(--red);border-color:var(--red);color:#fff}
body button:is([data-setup-next]){background:var(--red);border-color:var(--red);color:#fff}
body button:is([data-setup-next]):hover:not(:disabled){background:var(--blue);border-color:var(--blue);color:#fff}



.round-card strong{font-weight:700}
.round-card:hover:not(:disabled){background:var(--red);border-color:var(--red);color:#fff}
.round-card:hover:not(:disabled) strong{color:inherit}

/* Input focus uses the existing border instead of a separate blue ring. */
body input:not([type="range"]):focus,body select:focus,body textarea:focus{outline:none;box-shadow:none;border-color:#fff;background:#20201e}
body input[type="range"]:focus-visible{outline:1px solid #fff;outline-offset:2px}


