:root{color-scheme:light;--paper:#f5f3ee;--panel:#fcfbf8;--band:#eae7e1;--ink:#202522;--muted:#6c6c64;--line:#d7d3cb;--red:#b43e2a;--soft:#f0e4de;--focus:#8c301e;--sans:Arial,Helvetica,sans-serif;--serif:Georgia,'Times New Roman',serif;--mono:'Courier New',monospace}
:root[data-theme=dark]{color-scheme:dark;--paper:#1c201e;--panel:#232824;--band:#282c28;--ink:#f1eee6;--muted:#b4b5ab;--line:#454a43;--red:#ff6257;--soft:#3b2423;--focus:#ffaaa1}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 var(--sans)}a{color:inherit;text-decoration:none}button,input,select{font:inherit;color:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,.button{border:1px solid var(--line);border-radius:3px;background:transparent;padding:11px 17px;cursor:pointer;display:inline-flex;gap:9px;justify-content:center;align-items:center;line-height:1.2;min-height:44px}button:hover,.button:hover{border-color:var(--ink);background:var(--band)}button:disabled{opacity:.42;cursor:default}button:disabled:hover{border-color:var(--line);background:transparent}.primary{background:var(--ink);color:var(--paper);border-color:var(--ink)}.primary:hover{background:var(--red);border-color:var(--red);color:var(--panel)}button.primary:disabled{background:var(--ink);color:var(--paper)}.text-button{border:0;padding:8px 0;text-decoration:underline;text-underline-offset:4px}.quiet{color:var(--muted)}.red{color:var(--red)}.mono,.eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:.04em}.eyebrow{text-transform:uppercase;line-height:1.6}.wrap{max-width:1240px;margin:auto;padding:0 40px}header{background:var(--band);border-bottom:1px solid var(--line)}.header-inner{min-height:82px;display:flex;align-items:center;gap:26px}.brand{font-size:23px;font-weight:750;letter-spacing:-1px;white-space:nowrap}.edition{border-left:4px solid var(--red);padding-left:15px;color:var(--muted);text-transform:uppercase;font:11px var(--mono)}.header-actions{display:flex;align-items:center;gap:19px;margin-left:auto}.header-actions select{background:transparent;border:0;font:12px var(--mono);min-height:44px;cursor:pointer}.theme-toggle{border:0;font:12px var(--mono);padding:8px}.guest-button{font:12px var(--mono);padding:10px 15px}.dot{width:6px;height:6px;border-radius:50%;background:var(--red);display:inline-block}.staging-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:15px;font:11px var(--mono);color:var(--muted)}.staging-strip a{text-decoration:underline;text-underline-offset:3px}.hero{padding-top:31px;margin-bottom:34px}.hero .eyebrow{color:var(--red);margin:0 0 12px}h1{font-family:var(--serif);font-weight:400;font-size:76px;letter-spacing:-3.5px;line-height:1.05;margin:0 0 12px}h2{font-family:var(--serif);font-size:36px;font-weight:400;line-height:1.15;margin:0 0 15px}h3{font-size:16px;margin:0 0 8px}.lede{color:var(--muted);font-size:18px;margin:0;max-width:620px}.searchbox{display:flex;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:3px;padding:0 19px;gap:17px;height:58px}.searchbox input{background:transparent;border:0;min-width:0;width:100%;outline:0;height:100%}.searchbox:focus-within{outline:2px solid var(--focus);outline-offset:3px}.searchbox svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.6}.key-hint{color:var(--muted);font:12px var(--mono);white-space:nowrap}.filters{display:flex;gap:9px;flex-wrap:wrap;padding:14px 0 27px}.chip{font-size:13px;min-height:38px;padding:8px 16px}.chip[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}.catalog-meta{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:18px 0 20px;gap:12px}.catalog-meta p{margin:0}.sort{font:11px var(--mono);color:var(--muted);display:flex;align-items:center;gap:8px}.sort select{border:0;background:transparent;color:var(--ink);min-height:32px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.game-card{position:relative;border:1px solid var(--line);background:var(--panel);min-height:178px;transition:border-color .15s}.game-card:hover{border-color:var(--ink)}.game-card a{display:block;padding:15px 17px 14px;min-height:178px}.game-card a:focus-visible{outline-offset:-3px}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;color:var(--muted)}.game-icon{height:25px;width:30px;stroke:currentColor;stroke-width:1.2;fill:none}.game-card h2{font:600 19px/1.2 var(--sans);letter-spacing:-.4px;margin:0 24px 8px 0}.card-description{font-size:12px;color:var(--muted);line-height:1.45;min-height:35px;max-width:215px;margin:0 0 16px}.card-bottom{display:flex;gap:8px;align-items:center;font:10px var(--mono);color:var(--muted);text-transform:uppercase}.card-bottom .divider{height:9px;border-left:1px solid var(--line)}.favorite{position:absolute;right:7px;bottom:5px;border:0;padding:10px;min-width:40px;min-height:40px;font-size:21px;color:var(--muted)}.favorite[aria-pressed=true]{color:var(--red)}.favorite:hover{background:transparent;color:var(--red)}.game-card.native{border-top:2px solid var(--red)}.game-card.native .card-top{color:var(--red)}.catalog-note{margin-top:32px;padding:23px 0;display:flex;justify-content:space-between;gap:28px;border-top:1px solid var(--line)}.catalog-note p{margin:0 0 5px;font-size:13px}.catalog-note .eyebrow{font-size:11px}.pager{display:flex;align-items:center;gap:12px;white-space:nowrap;font:12px var(--mono)}.pager button{padding:8px 12px;min-width:42px}.empty{grid-column:1/-1;padding:45px 20px;text-align:center;border:1px dashed var(--line)}.empty h2{font-size:30px}.empty p{color:var(--muted)}footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 0 28px;color:var(--muted);font:11px var(--mono)}footer a{text-decoration:underline;text-underline-offset:3px}.table-link{color:var(--red);font:12px var(--mono);text-decoration:underline}.back{display:inline-flex;align-items:center;gap:12px;padding:25px 0 0;color:var(--muted);font:12px var(--mono)}.game-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;padding:26px 0}.game-heading h1{font-size:68px;margin-bottom:7px}.game-heading .eyebrow{margin:0 0 10px;color:var(--red)}.game-heading .lede{font-size:16px}.game-tools{display:flex;gap:9px;flex-shrink:0}.table-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;border:1px solid var(--line);background:var(--panel)}.play-panel{min-width:0;padding:24px 30px}.table-topline{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding-bottom:18px}.table-topline p{margin:0}.table-topline .eyebrow{font-size:11px}.status-chip{font:11px var(--mono);color:var(--red);white-space:nowrap}.stage-board{padding:40px 0 20px;min-height:294px;display:flex;gap:50px;align-items:center;justify-content:center}.die{width:112px;height:112px;flex-shrink:0;border:1.5px solid var(--ink);border-radius:12px;display:grid;place-items:center;background:var(--paper);color:var(--ink)}.die svg{width:85px;height:85px;fill:currentColor}.die.is-bust{color:var(--red);border-color:var(--red);background:var(--soft)}.die.is-empty{color:var(--muted);border-style:dashed}.die.is-empty span{font:44px var(--serif)}.turn-numbers .eyebrow{margin:0 0 5px;color:var(--muted)}.turn-points{font:82px/.95 var(--serif);letter-spacing:-3px}.bank-preview{color:var(--muted);font-size:13px;margin-top:14px}.bank-preview strong{color:var(--ink)}.notice{min-height:52px;text-align:center;margin:0 auto 20px;max-width:510px;font-size:14px;line-height:1.6}.actions{display:flex;justify-content:center;gap:12px;margin-bottom:22px}.actions button{min-width:157px;min-height:48px}.turn-clock{border-top:1px solid var(--line);padding-top:15px;margin-top:9px}.clock-labels{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font:11px var(--mono)}progress{appearance:none;width:100%;height:3px;display:block;margin:11px 0 4px;border:0;background:var(--line)}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--red)}progress::-moz-progress-bar{background:var(--red)}.sidebar{border-left:1px solid var(--line);padding:24px 22px;min-width:0}.sidebar-title{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:18px}.sidebar-title p{margin:0}.seat{padding:16px 0;border-bottom:1px solid var(--line)}.seat-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.seat-name{font-size:14px;overflow-wrap:anywhere;max-width:180px}.seat-score{font:28px var(--serif)}.seat-meta{font:10px var(--mono);color:var(--muted);margin-top:1px}.seat.active .seat-name{color:var(--red);font-weight:600}.seat.active .seat-name:before{content:'→ ';font-weight:400}.seat.eliminated{opacity:.5}.seat.winner .seat-name:before{content:'✓ '}.seat progress{height:2px;margin-top:11px}.seat progress::-webkit-progress-value{background:var(--ink)}.seat.active progress::-webkit-progress-value{background:var(--red)}.seat.empty-seat{color:var(--muted);font-size:12px;min-height:83px;display:flex;align-items:center}.chat{padding-top:26px}.chat-title{margin:0 0 14px;font:11px var(--mono);text-transform:uppercase}.chat-log{font-size:12px;max-height:186px;overflow:auto;overflow-wrap:anywhere}.chat-line{margin:0 0 9px;line-height:1.45}.chat-line.system{color:var(--muted);font-size:11px}.chat-form{margin-top:14px;display:flex;gap:6px}.chat-form input{width:100%;min-width:0;border:1px solid var(--line);background:var(--paper);padding:9px;font-size:12px}.chat-form button{padding:8px 12px}.below-game{display:flex;justify-content:space-between;gap:30px;align-items:start;padding:17px 0 22px;border-bottom:1px solid var(--line);color:var(--muted);font-size:12px}.below-game p{margin:0}.below-game a{color:var(--ink)}.setup{padding:30px 0 22px}.setup h2{font-size:42px;margin-bottom:12px}.setup>p{color:var(--muted);max-width:460px}.setup .actions{justify-content:flex-start;margin:26px 0 28px}.join-form{border-top:1px solid var(--line);padding-top:21px}.join-form label{display:block;font:11px var(--mono);text-transform:uppercase;margin-bottom:10px}.join-form .input-row{display:flex;gap:9px;max-width:430px}.join-form input{background:var(--paper);border:1px solid var(--line);border-radius:2px;width:100%;min-width:0;padding:11px 13px;font:15px var(--mono);text-transform:uppercase}.setup .hint{font-size:12px}.waiting{padding:34px 0 0;min-height:280px}.waiting h2{font-size:36px}.waiting .subtle{color:var(--muted);max-width:460px}.invite-row{display:flex;align-items:center;gap:16px;margin:18px 0}.invite-code{font:22px var(--mono);letter-spacing:3px}.waiting .actions{justify-content:flex-start;flex-wrap:wrap;margin:25px 0}.waiting .actions button{min-width:130px}.result-heading{color:var(--red)}.connection-warning{background:var(--soft);color:var(--red);padding:12px 16px;border:1px solid var(--red);font-size:13px;margin-bottom:16px}.connection-warning[hidden]{display:none}.error-message{font-size:13px;color:var(--red);padding:12px 0}.legacy-panel{border:1px solid var(--line);padding:35px;max-width:850px;background:var(--panel)}.legacy-panel p{color:var(--muted);max-width:650px}.legacy-panel .button{margin:15px 0}.detail-rules{max-width:750px;margin:30px 0}.detail-rules p{line-height:1.8;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:4px;padding:30px;width:min(540px,calc(100% - 32px));background:var(--panel);color:var(--ink)}dialog::backdrop{background:#151c1880}dialog h2{margin-right:30px;font-size:36px}dialog p{font-size:14px;line-height:1.75;color:var(--muted)}dialog .close-dialog{float:right;min-width:40px;padding:9px;margin:-12px -12px 0 8px}dialog .eyebrow{color:var(--red)}dialog .dialog-actions{display:flex;gap:12px;margin-top:23px}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);padding:12px 20px;background:var(--ink);color:var(--paper);border:1px solid var(--line);max-width:90%;z-index:10;font-size:13px}.toast[hidden]{display:none}.loading{padding-top:60px}:focus-visible{outline:2px solid var(--focus);outline-offset:4px}.skip-link{position:fixed;top:-100px;left:12px;z-index:50;padding:10px;background:var(--ink);color:var(--paper)}.skip-link:focus{top:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(min-width:1500px){.wrap{max-width:1340px}.game-card,.game-card a{min-height:190px}.game-card h2{font-size:21px}.card-description{font-size:13px}}
@media(max-width:1000px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wrap{padding:0 28px}.table-layout{grid-template-columns:minmax(0,1fr) 250px}.play-panel{padding:22px}.stage-board{gap:30px}.header-actions{gap:10px}}
@media(max-width:760px){.wrap{padding:0 21px}.edition{display:none}.header-inner{min-height:70px;gap:10px}.brand{font-size:21px}.header-actions{gap:6px}.guest-button{padding:9px;font-size:11px}.theme-toggle{font-size:11px;padding:6px}.header-actions select{font-size:11px}.staging-strip{font-size:10px}.hero{padding-top:29px;margin-bottom:28px}h1{font-size:64px}.lede{font-size:16px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.game-card a{padding:13px 14px}.game-card h2{font-size:17px}.card-description{font-size:12px}.card-bottom{font-size:9px}.catalog-note{flex-wrap:wrap;gap:15px}.key-hint{display:none}.table-layout{grid-template-columns:1fr}.sidebar{border-left:0;border-top:1px solid var(--line);padding:20px}.seats{display:grid;grid-template-columns:1fr 1fr;column-gap:23px}.seat.empty-seat{display:none}.chat{display:none}.game-heading{align-items:flex-start;padding:25px 0 20px}.game-heading h1{font-size:60px}.game-heading .lede{font-size:14px;max-width:240px}.game-tools{flex-direction:column;gap:7px}.game-tools button{font-size:12px;padding:9px 11px;min-height:38px}.stage-board{padding:33px 0 22px;min-height:230px}.play-panel{padding:20px}.turn-points{font-size:74px}.below-game{gap:20px;font-size:11px}.setup .actions{flex-wrap:wrap}.setup .actions button{flex:1;min-width:140px}.table-topline{gap:10px}.waiting{padding-top:25px}.waiting h2{font-size:31px}.waiting .actions button{flex:1}.setup h2{font-size:38px}.legacy-panel{padding:24px}footer{align-items:start;flex-wrap:wrap;font-size:10px}}
@media(max-width:390px){.wrap{padding:0 15px}.brand{font-size:19px}.header-actions{gap:2px}.guest-button{font-size:10px;padding:7px}.header-actions select{max-width:55px}.theme-toggle{font-size:10px}h1{font-size:57px}.filters{gap:6px}.chip{font-size:12px;padding:8px 11px}.game-card a{padding:12px}.card-bottom{font-size:8px}.favorite{right:0}.game-card h2{font-size:16px}.card-description{font-size:11px}.stage-board{gap:26px}.die{width:88px;height:88px}.die svg{width:68px;height:68px}.turn-points{font-size:64px}.actions button{min-width:125px}.game-heading h1{font-size:52px}.catalog-meta{font-size:10px}.sort{font-size:10px}.table-topline .eyebrow,.status-chip{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Keep the full turn controls in view on ordinary laptop screens. */
@media(min-width:761px){.game-heading{padding:20px 0}.game-heading h1{font-size:58px}.stage-board{min-height:248px;padding:28px 0 20px}.seat{padding:10px 0}.seat progress{margin-top:6px}.seat.empty-seat{min-height:57px}.chat{padding-top:18px}.chat-log{max-height:105px}.chat-title{margin-bottom:10px}.chat-form{margin-top:10px}.sidebar{padding:22px}.sidebar-title{padding-bottom:14px}.play-panel{padding-top:22px}.table-topline{padding-bottom:14px}}
@media(max-width:760px){.play-content .actions button{min-width:0;flex:1}.play-content .actions{width:100%}.turn-numbers{min-width:0}.bank-preview{max-width:190px}.seat-name{min-width:0}.seat-score{flex-shrink:0}}
/* Pig's paper die: a beveled ink edge, red registration mark and a brief airborne tumble. */
.die-stage{width:144px;height:144px;position:relative;display:grid;place-items:center;flex-shrink:0;perspective:620px;isolation:isolate}
.die-stage .die{position:relative;z-index:2;transform:rotateZ(-4deg);border:1.5px solid var(--ink);border-radius:14px;background:var(--paper);box-shadow:3px 4px 0 var(--ink);transform-style:preserve-3d;will-change:transform}
.die-stage .die:after{content:'';position:absolute;right:9px;top:9px;width:10px;height:10px;border-top:2px solid var(--red);border-right:2px solid var(--red)}
.die-stage .die.is-bust{color:var(--red);border-color:var(--red);box-shadow:3px 4px 0 var(--red);background:var(--soft)}
.die-stage .die.is-empty{border-style:dashed;box-shadow:2px 3px 0 var(--line)}
.die-stage .die .die-register{position:absolute;left:9px;bottom:6px;font:8px var(--mono);letter-spacing:1px;color:var(--muted)}
.die-stage .die svg{width:78px;height:78px}
.die-shadow{position:absolute;z-index:0;bottom:9px;width:98px;height:12px;border-radius:50%;background:var(--ink);opacity:.18;filter:blur(5px)}
.die-orbit{position:absolute;inset:0;z-index:1;border:1px solid var(--red);border-radius:50%;opacity:0;pointer-events:none}
.die-orbit:before,.die-orbit:after{content:'';position:absolute;inset:7px;border-top:1px solid var(--red);border-bottom:1px solid var(--red);border-radius:50%;transform:rotate(28deg)}
.die-orbit:after{inset:15px;transform:rotate(-28deg)}
:root[data-theme=dark] .die-stage .die{background:#f3eee3;color:#242822;border-color:#f3eee3;box-shadow:4px 5px 0 var(--red)}
:root[data-theme=dark] .die-stage .die:after{border-color:#bb3027}
:root[data-theme=dark] .die-stage .die .die-register{color:#66685f}
:root[data-theme=dark] .die-stage .die.is-bust{background:var(--red);color:#201c1b;border-color:var(--red);box-shadow:4px 5px 0 #98251f}
:root[data-theme=dark] .die-stage .die.is-bust:after{border-color:#201c1b}
:root[data-theme=dark] .die-stage .die.is-bust .die-register{color:#42201d}
:root[data-theme=dark] .die-stage .die.is-empty{background:transparent;color:var(--muted);border-color:var(--muted);box-shadow:2px 3px 0 var(--line)}
:root[data-theme=dark] .die-stage .die.is-empty .die-register{color:var(--muted)}
:root[data-theme=dark] .primary:not(:disabled):hover{color:#1c201e}
:root[data-theme=dark] .seat.active .seat-name,:root[data-theme=dark] .status-chip{color:var(--red)}
@media(max-width:760px){.stage-board{gap:26px}.die-stage{width:120px;height:140px}.die-stage .die{width:98px;height:98px}.die-stage .die svg{width:70px;height:70px}.die-shadow{width:84px;bottom:13px}}
@media(max-width:390px){.stage-board{gap:18px}.die-stage{width:102px;height:125px}.die-stage .die{width:86px;height:86px}.die-stage .die svg{width:62px;height:62px}.die-stage .die .die-register{font-size:7px;left:7px}.die-stage .die:after{right:7px;top:7px;width:8px;height:8px}.die-shadow{width:72px}.turn-numbers .eyebrow{font-size:10px}}
@media(prefers-reduced-motion:reduce){.die-stage .die{will-change:auto}.die-orbit{display:none}}
/* A3: the same printed-paper language, with a board tailored to each ruleset. */
.classic-screen .game-heading h1{font-size:clamp(34px,4.6vw,58px);letter-spacing:-1.8px;overflow-wrap:anywhere}
.game-heading>div:first-child{min-width:0}.classic-screen .game-heading .lede{max-width:600px}
.board-turn{display:flex;justify-content:space-between;gap:12px;padding:20px 0 12px}.board-turn .eyebrow{margin:0}
.board-summary{display:flex;align-items:center;justify-content:space-between;gap:25px;margin:6px 0 12px;min-height:85px}
.board-stat{display:flex;flex-direction:column;gap:6px;flex-shrink:0}.board-stat>strong{font:62px/.95 var(--serif);letter-spacing:-2px}.board-stat>.eyebrow{font-size:10px;color:var(--muted)}.board-stat small{color:var(--muted)}
.board-guidance{max-width:290px;color:var(--muted);font-size:13px;margin:0}.round-banner{padding:10px 12px;background:var(--soft);color:var(--red);font:11px var(--mono)}
.dice-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;padding:12px 0 8px}
.dice-row .die-stage{width:76px;height:88px}.dice-row .die-stage .die{width:59px;height:59px;border-radius:9px;box-shadow:2px 3px 0 var(--ink)}
.dice-row .die-stage .die svg{width:43px;height:43px}.dice-row .die-stage .die .die-register{font-size:5px;left:5px;bottom:3px;letter-spacing:.5px}
.dice-row .die-stage .die:after{width:6px;height:6px;right:5px;top:5px;border-width:1px}.dice-row .die-shadow{width:49px;height:7px;bottom:6px;filter:blur(3px)}
.dice-row .die-stage .die.is-empty>span:first-child{font-size:24px}
.die-choice{position:relative;display:block;min-width:0;min-height:0;padding:1px 0 14px;border-color:transparent;border-radius:3px}
.die-choice:not(:disabled):hover{border-color:var(--line);background:var(--paper)}.die-choice[aria-pressed=true]{border-color:var(--red);background:var(--soft)}
.die-choice:disabled{opacity:1;background:transparent}.die-choice .selection-mark{position:absolute;bottom:0;left:0;right:0;font:12px var(--mono);color:var(--red)}
.die-choice[aria-pressed=false] .selection-mark{color:var(--muted)}
:root[data-theme=dark] .dice-row .die-stage .die{box-shadow:2px 3px 0 var(--red)}
.kept-strip{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:12px}
.kept-strip>.eyebrow{font-size:10px;color:var(--muted)}.mini-dice{display:flex;gap:6px}.mini-die{width:26px;height:29px;display:grid;place-items:center;border:1px dashed var(--line);color:var(--muted);font:17px var(--serif)}.mini-die.filled{border-style:solid;color:var(--ink);background:var(--band)}
.selection-hint{font-size:12px;line-height:1.6;color:var(--muted);text-align:center;margin:13px auto;min-height:20px}.classic-screen .actions{flex-wrap:wrap;gap:10px;margin:16px 0}.classic-screen .actions button{min-width:130px}.classic-screen .notice{min-height:44px;font-size:13px;margin-bottom:16px;text-align:left;max-width:none}
.qualifiers{display:flex;gap:8px;margin:7px 0 18px}.qualifier{flex:1;display:flex;gap:10px;align-items:center;padding:10px 12px;border:1px dashed var(--line);color:var(--muted);min-width:0}.qualifier.secured{border:1px solid var(--red);background:var(--soft);color:var(--red)}.qualifier-face{font:32px var(--serif)}.qualifier>div{display:flex;flex-direction:column;min-width:0}.qualifier .eyebrow{font-size:10px;letter-spacing:0}.qualifier small{font-size:10px}.qualifier>span:last-child{margin-left:auto}
.roll-count{display:flex;flex-direction:column;gap:12px;align-items:flex-end}.roll-marks{display:flex;gap:9px}.roll-marks i{width:29px;height:4px;background:var(--line)}.roll-marks .used{background:var(--red)}
.number-tiles{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:5px;margin:16px 0 2px}.number-tile{min-width:0;min-height:72px;padding:7px 0;display:flex;flex-direction:column;gap:2px;background:var(--paper);border-radius:1px;box-shadow:0 3px 0 var(--line)}.number-tile strong{font:30px var(--serif)}.number-tile span{font:12px var(--mono);color:var(--muted)}.number-tile:disabled{opacity:1}.number-tile.closed{color:var(--muted);background:var(--band);box-shadow:none}.number-tile.closed strong{text-decoration:line-through;opacity:.35}.number-tile[aria-pressed=true]{border-color:var(--red);background:var(--soft);box-shadow:0 3px 0 var(--red)}.number-tile[aria-pressed=true] span{color:var(--red)}
.dice-quantity{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:12px}.dice-quantity select,.bid-inputs input,.bid-inputs select{padding:10px;background:var(--paper);border:1px solid var(--line);border-radius:2px;min-height:44px;color:var(--ink)}
.bid-display{text-align:center;padding:10px 0 22px}.bid-display .board-stat{align-items:center}.bid-display .board-stat>strong{font-size:72px}.times{font:34px var(--serif);color:var(--red);vertical-align:middle}.bid-display p{font-size:13px;margin:10px 0;color:var(--muted)}.bid-display>.mono{font-size:10px}.private-hand{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0 2px}.private-hand>.eyebrow{margin:0;text-align:center;color:var(--red);font-size:10px}.private-hand .dice-row{padding-top:0}.bid-inputs{display:flex;justify-content:center;gap:18px;align-items:flex-end;padding:15px 0 0}.bid-inputs label{font-size:11px;color:var(--muted);display:flex;flex-direction:column;gap:6px}.bid-inputs input{width:100px}.bid-inputs select{width:90px}.bid-inputs>span{padding-bottom:10px;color:var(--red)}
.dice-lives{display:flex;gap:5px;margin-top:8px}.dice-lives i{width:10px;height:10px;border:1px solid var(--line)}.dice-lives .remaining{background:var(--ink);border-color:var(--ink)}.seat.active .dice-lives .remaining{background:var(--red);border-color:var(--red)}.open-seats{font-size:10px;padding:17px 0;grid-column:1/-1}.reveal-heading p{margin:0 0 10px;font-size:12px}.reveal-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid var(--line)}.reveal-row>strong{font-size:12px;overflow-wrap:anywhere;max-width:145px}.reveal-row .dice-row{flex-wrap:nowrap;gap:0;padding:0}.reveal-row .die-stage{width:44px;height:55px}.reveal-row .die-stage .die{width:34px;height:34px;border-radius:5px}.reveal-row .die-stage .die svg{width:25px;height:25px}.reveal-row .die-register,.reveal-row .die:after,.reveal-row .die-shadow{display:none}.reveal-list{margin-bottom:18px}
.match-finish{padding:44px 0 30px}.match-finish h2{overflow-wrap:anywhere}.match-finish .eyebrow{color:var(--red)}
@media(max-width:1100px){.classic-screen .game-heading{flex-wrap:wrap;gap:15px}.classic-screen .game-tools{flex-direction:row}.dice-row{gap:3px}.dice-row .die-stage{width:65px;height:80px}.dice-row .die-stage .die{width:51px;height:51px}.dice-row .die-stage .die svg{width:37px;height:37px}.qualifier{padding:8px;gap:7px}.qualifier>span:last-child{display:none}}
@media(max-width:760px){.classic-screen .game-heading{padding:20px 0;gap:14px}.classic-screen .game-heading h1{font-size:42px;letter-spacing:-1.6px}.classic-screen .game-heading .lede{max-width:none}.classic-screen .game-tools button{min-height:40px}.classic-screen .play-panel{padding:16px}.classic-screen .sidebar{padding:16px}.board-summary{gap:15px;min-height:75px}.board-stat>strong{font-size:51px}.board-guidance{font-size:12px;max-width:175px}.dice-row{gap:3px}.dice-row .die-stage{width:65px;height:78px}.qualifier{padding:8px 6px;gap:6px}.qualifier-face{font-size:26px}.qualifier .eyebrow{font-size:9px}.qualifier small{font-size:9px}.kept-strip{gap:7px}.kept-strip>.eyebrow{font-size:9px}.mini-dice{gap:4px}.mini-die{width:22px;height:26px}.number-tiles{gap:3px}.number-tile{min-height:58px}.number-tile strong{font-size:25px}.classic-screen .actions button{min-width:0;flex:1}.board-turn{padding-top:16px}.board-turn span{font-size:10px}.reveal-row .die-stage{width:35px;height:48px}.reveal-row .die-stage .die{width:28px;height:28px}.reveal-row .die-stage .die svg{width:22px;height:22px}.reveal-row .die-stage .die:after{display:none}.reveal-row>strong{max-width:115px}.dice-row .die-stage .die .die-register{font-size:5px;left:5px}.private-hand .dice-row .die-stage{width:54px;height:70px}.private-hand .dice-row .die-stage .die{width:43px;height:43px}.private-hand .dice-row .die-stage .die svg{width:32px;height:32px}}
@media(max-width:360px){.classic-screen .game-heading h1{font-size:37px}.board-guidance{max-width:145px}.dice-row .die-stage{width:59px;height:74px}.mini-die{width:19px}.kept-strip{gap:5px}.qualifier .eyebrow{font-size:8px}.private-hand .dice-row .die-stage{width:48px}.reveal-row .die-stage{width:30px}.reveal-row>strong{max-width:100px}}
@media(max-width:760px){.dice-row{max-width:230px;margin-left:auto;margin-right:auto}.private-hand .dice-row,.reveal-row .dice-row{max-width:none}.number-tiles{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.number-tile{min-height:60px}}
@media(max-width:760px){.card-bottom{flex-wrap:wrap;gap:6px;line-height:1.3}.card-bottom>span{white-space:nowrap}.card-bottom .divider:nth-child(4){display:none}.card-bottom [data-game-presence]{flex-basis:100%;text-align:left}.number-tiles{gap:5px}}
.reaction-buttons{display:flex;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.reaction-buttons button{min-width:44px;min-height:44px;display:grid;place-items:center;padding:8px}.reaction-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.reaction-buttons button:hover:not(:disabled),.reaction-buttons button:focus-visible{color:var(--red);border-color:var(--red)}.reaction-feed{display:flex;flex-wrap:wrap;gap:10px;min-height:38px;margin-top:10px}.table-reaction{display:flex;gap:7px;align-items:center;font-size:12px;color:var(--red);animation:reaction-pop .4s ease-out}.table-reaction>span:first-child{color:var(--ink);overflow-wrap:anywhere}.razzle-options{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:20px;font-size:13px;margin:16px 0}.razzle-options select{background:var(--paper);border:1px solid var(--line);color:var(--ink);padding:8px 13px;margin-left:8px;min-height:40px}.razzle-record{font-size:14px;white-space:nowrap}.razzle-legend{font-size:10px;margin-top:16px}.razzle-history{border-top:1px solid var(--line);padding-top:18px;margin:20px 0}.round-grid{display:grid;grid-template-columns:minmax(70px,1fr) repeat(5,minmax(30px,.5fr));gap:10px 8px;font-size:12px;align-items:center}.round-grid>strong{overflow-wrap:anywhere;font-weight:400}.round-grid>span{text-align:center}.razzle-history .eyebrow{font-size:10px;color:var(--muted)}@keyframes reaction-pop{from{transform:translateY(5px) scale(.85);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){.table-reaction{animation:none}}

.razzle-legend{grid-column:1/-1}
@media(max-width:620px){.seats:has(.razzle-record){grid-template-columns:minmax(0,1fr)}.seats:has(.razzle-record) .seat-head{gap:16px}}

/* Secured devnet title and per-human lobby approvals. */
.secured-card{border:2px solid var(--red)}.secured-card .card-top,.secured-label{color:var(--red)}.secured-card .card-bottom{flex-wrap:wrap}.secured-label{font:11px/1.5 var(--mono);letter-spacing:.06em}.secured-card .card-description{margin-bottom:8px}.approval-list{padding:0;list-style:none}.approval-list li{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid var(--line)}.approval-list strong{font:10px/1.5 var(--mono);text-align:right;color:var(--red)}.secured-lobby .actions{flex-wrap:wrap}.secured-lobby .actions button{min-width:150px}.sol-balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:20px 0;border-block:1px solid var(--line);margin:18px 0}.sol-balances strong{display:block;font:22px var(--mono);overflow-wrap:anywhere}.sol-balances span{display:block;font-size:11px;color:var(--muted);margin-top:8px}.sol-history>div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.sol-history strong{text-align:right;font-family:var(--mono)}.sol-history small{display:block;font-weight:400;color:var(--muted)}.sol-entry{margin:12px 0}.sol-pending{border-left:2px solid var(--red);padding-left:12px}#dialog input#sol-amount,#deposit-signature{display:block;min-height:44px;width:100%;margin:8px 0 14px;padding:10px;background:var(--paper);border:1px solid var(--line)}#sol-status{font-size:13px;color:var(--red)}#dialog details summary{cursor:pointer}#dialog a{text-decoration:underline;text-underline-offset:3px}@media(max-width:480px){.sol-balances{grid-template-columns:1fr}.sol-balances>div{display:flex;justify-content:space-between;gap:16px}.sol-balances span{margin-top:0}}

/* Optional devnet entries share one lobby across all game boards. */
.entry-mode{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}.entry-mode button[aria-pressed=true]{background:var(--ink);color:var(--paper)}
.entry-pool strong{font-size:2rem}.entry-pool span{display:block;margin-top:4px}.secured-lobby details p{line-height:1.55}
.community-form{display:grid;gap:16px;max-width:760px}.community-form label{display:grid;gap:7px}.community-form input,.community-form textarea{width:100%;box-sizing:border-box;background:var(--paper);color:var(--ink);border:1px solid var(--line);padding:12px;font:inherit}.community-form textarea{min-height:100px;resize:vertical}.community-form .checkbox-row{display:flex;align-items:flex-start;gap:10px}.community-form .checkbox-row input{width:auto}.submission-row{border-bottom:1px solid var(--line);padding:20px 0}.submission-row pre{white-space:pre-wrap;font:inherit;overflow-wrap:anywhere}.submission-note{width:100%;max-width:650px}.community-status{margin:16px 0}
@media(max-width:600px){.entry-mode button{flex:1 1 140px}.entry-pool strong{font-size:1.6rem}}
