@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/dm-sans.woff') format('woff')}@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('/fonts/manrope.woff') format('woff')}
:root{--ink:#193c34;--green:#255646;--paper:#f7f6f0;--gold:#d4b86f;--muted:#5d6c60;--line:#e4e6dc}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;font-size:14px}button,a,input{touch-action:manipulation}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #c5a34b;outline-offset:3px}header,main,footer{max-width:1160px;margin:auto}header{display:flex;align-items:center;justify-content:space-between;padding:26px 32px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-weight:800;letter-spacing:1.3px;font-size:14px}.brand b{font-weight:400}.brand-icon{font-size:35px;line-height:1}.text-button{border:0;background:none;color:var(--ink);font-weight:600;padding:10px}.intro{display:flex;justify-content:space-between;align-items:center;padding:40px 0 34px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;margin:0 0 12px;color:var(--muted)}h1{font-family:'Manrope',system-ui,sans-serif;font-size:48px;line-height:1.12;letter-spacing:-2px;margin:0 0 16px;font-weight:800}.subtitle{color:#737a71;font-size:15px;margin:0}.best{display:flex;flex-direction:column;align-items:center;padding:25px 40px;border-left:1px solid var(--line)}.best span,.best small{color:var(--muted);font-size:10px;letter-spacing:1px}.best strong{font-size:38px;margin:7px 0}.best small{letter-spacing:0}main{padding:0 32px}.game-layout{display:grid;grid-template-columns:minmax(320px,.92fr) minmax(420px,1.08fr);gap:28px;align-items:start}.tray{color:#f8f6e9;background:radial-gradient(ellipse at top,#305c4c,#173e35);padding:24px;border-radius:20px;box-shadow:0 12px 30px #193c3410;position:relative;overflow:hidden}.tray:after{content:'';position:absolute;inset:8px;border:1px solid #ffffff10;border-radius:15px;pointer-events:none}.tray-heading{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px;color:#b4c9b9}.dice{display:flex;gap:10px;justify-content:center;margin:35px 0 24px;min-height:75px}.die-wrap{flex:1;max-width:62px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:10px}.die{width:100%;aspect-ratio:1;height:auto;background:#faf8f0;border:2px solid #fff;border-radius:12px;padding:10px;box-shadow:0 5px 0 #c9c8b7,0 8px 12px #0003;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:3px;transition:background .15s,box-shadow .15s,transform .15s;position:relative}.pip{border-radius:50%;background:#234b40}.die.empty:before{content:'?';position:absolute;inset:0;display:grid;place-items:center;color:#a4ada2;font-size:30px;font-weight:500}.die.held{background:#ffe5a2;border-color:#f4cf72;box-shadow:0 5px 0 #b69748,0 0 23px #ffd57670;transform:translateY(-3px)}.hold-label{font-size:9px;height:12px;letter-spacing:1px;color:#f7d480;visibility:hidden}.held+.hold-label{visibility:visible}.tray #diceHelp{text-align:center;font-size:12px;color:#bdcbbc;margin:0 0 20px}.roll-button{width:100%;background:#e4c985;border:0;border-radius:10px;padding:16px 18px;color:#183b32;text-align:left;font-weight:800;box-shadow:0 3px 0 #baa461}.roll-button span{float:right;font-size:20px;line-height:20px}.roll-dots{display:flex;justify-content:center;gap:7px;margin:17px 0 0}.roll-dots i{width:6px;height:6px;background:#597366;border-radius:50%}.roll-dots i.used{background:#e4c985}.rolling{animation:tumble .19s infinite alternate}.rolling:nth-child(even){animation-direction:alternate-reverse}@keyframes tumble{0%{transform:rotate(-13deg) translateY(0)}100%{transform:rotate(12deg) translateY(-8px)}}.adviser{border:1px solid var(--line);background:#fffdf6;border-radius:16px;padding:23px;margin-top:20px}.adviser-heading{display:flex;justify-content:space-between;align-items:center}.adviser .eyebrow{margin-bottom:7px}h2{font-family:'Manrope',system-ui,sans-serif;letter-spacing:-.5px;font-size:20px;margin:0}.spark{font-size:35px;color:#b59a56}.adviser>p{color:#767d73;line-height:1.6;font-size:13px;margin:12px 0 18px}.secondary{border:1px solid #cfd7ca;border-radius:9px;padding:12px;background:transparent;color:var(--ink);font-weight:600}.adviser>.secondary{width:100%;text-align:left}.secondary span{float:right}#adviceResult{border-top:1px solid var(--line);padding-top:16px;margin-top:16px;line-height:1.65;font-size:13px}#adviceResult b{display:block;margin-bottom:7px}.primary{background:var(--green);color:white;border:0;border-radius:9px;padding:13px 18px;font-weight:600}.advice-apply{margin-top:12px;width:100%}.odds-note{display:flex;gap:10px;color:#7b8177;margin:22px 6px 10px;font-size:11px;line-height:1.7}.odds-note>span{font-size:18px}.odds-note p{margin:0}.odds-note b{color:#516255;font-weight:600}.new-game{display:block;margin:auto;font-size:12px}.save-note{text-align:center;color:var(--muted);font-size:10px;margin:6px 0 20px}.score-panel{background:#fffefa;border:1px solid var(--line);border-radius:20px;overflow:hidden}.score-heading{padding:24px;display:flex;align-items:center;justify-content:space-between;gap:12px}.score-heading .eyebrow{margin-bottom:7px}.score-heading h2{font-size:18px}.total{display:flex;flex-direction:column;align-items:flex-end}.total span{font-size:9px;letter-spacing:1px;color:var(--muted)}.total strong{font-size:34px;line-height:1.2}.column-labels,.score-row{display:grid;grid-template-columns:1fr 70px 66px;align-items:center;gap:10px}.column-labels{font-size:9px;letter-spacing:1px;color:#7e8479;background:#f3f4ec;padding:11px 24px}.column-labels span:not(:first-child){text-align:right}.section-label{padding:18px 24px 9px;font-size:10px;letter-spacing:1.5px;font-weight:700;color:#6d786a}.score-row{padding:8px 24px;border-bottom:1px solid #eff0e8;min-height:57px}.category{display:flex;gap:9px;align-items:center;min-width:0}.number-icon{background:#eaf0e6;width:26px;height:26px;border-radius:7px;display:grid;place-items:center;flex-shrink:0;font-size:12px;font-weight:700}.category-name{font-size:12px;font-weight:600}.target{display:flex;align-items:center;margin-top:5px;gap:6px;font-size:10px;color:#7a8076}.target button{border:1px solid #dfe4d9;border-radius:4px;background:#f4f6ee;color:var(--ink);font-size:12px;width:22px;height:22px;padding:0}.target output{font-size:10px;min-width:12px;text-align:center}.prob{text-align:right;font-size:12px;color:#6c8470;font-variant-numeric:tabular-nums}.prob.certain{color:#2b674b;font-weight:700}.score-cell{text-align:right}.score-button{background:#f0f3e9;border:1px solid #dce3d4;border-radius:7px;color:#2e5e45;min-width:48px;min-height:34px;font-weight:700;font-size:14px}.score-button.zero{color:#9b8372;background:#faf7f0}.locked-score{font-weight:700;font-size:16px;padding-right:14px}.filled{background:#fbfbf5}.filled .category-name,.filled .number-icon{color:#8b9387}.upper-summary{padding:15px 24px;background:#f6f6ee;font-size:11px}.upper-summary>div{display:flex;justify-content:space-between;margin-bottom:7px}.upper-summary small{color:#869080;font-size:10px}.progress{height:4px;background:#e3e8db;border-radius:4px;overflow:hidden;margin:10px 0}.progress i{display:block;height:100%;background:#7d9b6f;transition:width .2s}.score-footer{padding:18px 24px;background:#f6f6ee}.score-footer>div{display:flex;justify-content:space-between;font-size:12px;margin:8px 0}.score-footer .grand-total{font-size:17px;border-top:1px solid #dfe4d6;margin-top:14px;padding-top:15px}.score-hint{text-align:center;font-size:10px;color:#838979;padding:0 15px;margin:14px 0}footer{display:flex;justify-content:space-between;padding:32px;color:#889080;font-size:10px}footer a{color:inherit}dialog{border:1px solid var(--line);border-radius:20px;max-width:530px;width:calc(100% - 32px);padding:30px;color:var(--ink);background:#fffefa;box-shadow:0 20px 80px #0003;max-height:90vh;overflow:auto}dialog::backdrop{background:#102b24a6;backdrop-filter:blur(3px)}dialog p,dialog li{line-height:1.7;color:#65715f;font-size:13px}dialog h3{margin:22px 0 5px;font-size:14px}.close{position:absolute;top:12px;right:15px;background:none;border:0;font-size:26px;color:#65715f}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.final-score{display:block;font-size:68px;letter-spacing:-3px;margin-top:12px}#finalBreakdown{margin:20px 0}#finalBreakdown>div{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--line);font-size:12px}#finish>.primary{width:100%}.final-total{font-weight:800;font-size:16px!important}
@media(max-width:800px){header{padding:18px 20px}.brand{font-size:12px;gap:8px}.brand-icon{font-size:29px}main{padding:0 16px}.intro{padding:25px 4px;gap:10px}h1{font-size:35px;letter-spacing:-1.5px}.eyebrow{font-size:8px;letter-spacing:1.4px}.subtitle{font-size:12px;max-width:220px;line-height:1.5}.best{padding:15px 10px;min-width:96px}.best span{font-size:8px}.best strong{font-size:29px}.best small{font-size:8px}.game-layout{grid-template-columns:1fr;gap:20px}.tray{padding:20px}.dice{margin:24px 0 16px;gap:8px}.die{padding:9px}.adviser{padding:18px;margin-top:14px}.adviser-heading h2{font-size:18px}.adviser>p{margin:8px 0 12px}.odds-note{margin:15px 5px 5px}.score-heading{padding:20px}.score-row{padding:8px 18px}.column-labels{padding:11px 18px;grid-template-columns:1fr 60px 55px}.score-row{grid-template-columns:1fr 60px 55px}.category-name{font-size:12px}.section-label{padding-left:18px}.score-hint{font-size:11px}footer{padding:24px 20px}.new-game{margin-top:6px}.save-note{margin-bottom:0}}@media(max-width:360px){.dice{gap:8px}.die{padding:7px}.best{min-width:82px}.score-heading h2{font-size:16px}.score-row{gap:6px}.category-name{font-size:11px}}@media(prefers-reduced-motion:reduce){.rolling{animation:none}*{transition:none!important}}
/* Compact board: dice and live scorecard share the main screen. */
header{padding:14px 24px}main{padding:0 24px}.board-status{display:flex;justify-content:space-between;align-items:center;padding:12px 2px;color:var(--muted);font-size:12px}.best{flex-direction:row;gap:8px;border:0;padding:0}.best strong{font-size:18px;margin:0}.best span{font-size:9px}.game-layout{grid-template-columns:minmax(190px,.8fr) minmax(350px,1.2fr);gap:18px;align-items:stretch}.play-panel{display:flex;flex-direction:column;justify-content:center}.tray{padding:22px}.tray-heading{gap:8px;flex-wrap:wrap}.dice{margin:28px 0 18px}.new-game{margin:10px auto 0}.score-heading{padding:10px 16px}.score-heading h2{font-size:16px}.total{flex-direction:row;align-items:center;gap:8px}.total strong{font-size:24px}.column-labels,.score-row{grid-template-columns:minmax(0,1fr) 52px 60px;gap:8px;padding-left:16px;padding-right:16px}.column-labels{padding-top:7px;padding-bottom:7px}.score-row{min-height:36px;padding-top:3px;padding-bottom:3px}.category{gap:6px}.category>div{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.category-name{font-size:12px}.number-icon{width:22px;height:22px;font-size:11px;border-radius:5px}.target{display:inline-flex;margin:0 0 0 auto;gap:0;flex-shrink:0}.target select{font:inherit;font-size:11px;color:var(--ink);background:#f4f6ee;border:1px solid #dfe4d9;border-radius:5px;min-height:28px;width:42px;padding:2px;cursor:pointer}.prob{grid-column:3;grid-row:1;font-size:11px}.score-cell{grid-column:2;grid-row:1}.score-button{min-height:28px;min-width:36px;font-size:13px}.locked-score{font-size:14px;padding-right:10px}.section-label{padding:7px 16px 4px;font-size:9px}.upper-summary{padding:6px 16px;font-size:10px}.upper-summary>div{margin-bottom:3px}.upper-summary small,.upper-summary .progress{display:none}.score-footer{padding:5px 16px}.score-footer>div{font-size:10px;margin:4px 0}.score-footer .grand-total{font-size:13px;margin-top:5px;padding-top:5px}.score-hint{font-size:10px;margin:7px 0}.adviser{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:12px 16px;margin-top:14px;border-radius:12px}.adviser-heading{justify-content:flex-start;gap:10px}.adviser h2{font-size:15px}.adviser-heading p{font-size:11px;color:var(--muted);margin:3px 0 0}.spark{font-size:26px}.adviser>.secondary{width:auto;min-width:210px;font-size:12px}.adviser .secondary span{margin-left:16px}#adviceResult{grid-column:1/-1;margin:0;padding-top:12px}.odds-note{display:block;margin:12px 2px 0;font-size:11px}.odds-note summary{cursor:pointer;color:#516255}.odds-note p{margin-top:6px;max-width:760px}.save-note{margin:8px 0}.advice-apply{width:auto}.adviser [hidden]{display:none}footer{padding:14px 24px}
@media(max-width:800px){header{padding:10px 12px}.brand{font-size:11px;letter-spacing:.7px}.brand-icon{font-size:26px}header .text-button{font-size:11px;padding:8px 4px}main{padding:0 10px}.board-status{padding:8px 2px;font-size:10px}.best strong{font-size:15px}.game-layout{grid-template-columns:minmax(0,.36fr) minmax(0,.64fr);gap:8px}.tray{padding:12px 8px;border-radius:12px}.tray:after{inset:4px;border-radius:9px}.tray-heading{flex-direction:column;align-items:center;gap:5px;font-size:9px;letter-spacing:.3px}.dice{display:grid;grid-template-columns:repeat(2,minmax(0,48px));justify-content:center;gap:10px 8px;margin:22px 0 12px}.die-wrap{width:100%;max-width:48px;gap:6px}.die-wrap:last-child{grid-column:1/-1;justify-self:center;width:48px}.die{padding:7px;border-radius:9px;gap:2px}.hold-label{font-size:8px;height:10px}.tray #diceHelp{font-size:10px;line-height:1.45;margin:0 0 12px}.roll-button{padding:12px 7px;font-size:11px;text-align:center;line-height:1.35}.roll-button span{display:none}.roll-dots{margin-top:12px}.new-game{font-size:10px;padding:8px}.score-panel{border-radius:12px}.score-heading{padding:7px 8px;gap:4px}.score-heading h2{font-size:12px}.total{gap:4px}.total span{font-size:8px}.total strong{font-size:18px}.column-labels,.score-row{grid-template-columns:minmax(0,1fr) 34px 40px;gap:4px;padding-left:7px;padding-right:7px}.column-labels{font-size:8px;letter-spacing:0;padding-top:5px;padding-bottom:5px}.column-labels span:first-child{font-size:0}.column-labels span:first-child:after{content:'CATEGORY / TARGET';font-size:7px}.score-row{min-height:30px;padding-top:1px;padding-bottom:1px}.category{gap:0}.number-icon{display:none}.category>div{gap:3px}.category-name{font-size:10px;line-height:1.2}.target select{font-size:10px;width:33px;min-height:26px;padding:0}.prob{font-size:10px;letter-spacing:-.3px}.score-button{min-width:30px;min-height:28px;padding:0;font-size:12px;border-radius:5px}.locked-score{font-size:12px;padding-right:8px}.section-label{display:none}.upper-summary{padding:4px 8px;font-size:9px}.upper-summary>div{margin-bottom:2px}.score-footer{padding:4px 8px}.score-footer>div{font-size:9px;margin:3px 0}.score-footer .grand-total{font-size:11px;margin-top:4px;padding-top:4px}.score-hint{font-size:9px;line-height:1.3;padding:0 6px;margin:6px 0}.adviser{margin-top:8px;padding:9px 10px;gap:6px}.adviser-heading{gap:5px}.adviser h2{font-size:11px;letter-spacing:0}.adviser-heading p{display:none}.spark{font-size:20px}.adviser>.secondary{min-width:0;font-size:11px;padding:9px}.adviser .secondary span{margin-left:5px}#adviceResult{font-size:12px;line-height:1.5}.odds-note{margin-top:8px;font-size:10px}.save-note{font-size:9px;margin:5px 0}footer{padding:10px 12px;font-size:9px}}
@media(max-width:360px){main{padding:0 6px}.game-layout{grid-template-columns:minmax(0,.33fr) minmax(0,.67fr);gap:5px}.tray{padding:10px 5px}.dice{gap:8px 6px;grid-template-columns:repeat(2,minmax(0,40px))}.die-wrap:last-child{width:40px}.die{padding:5px}.score-heading h2{font-size:11px}.category-name{font-size:9px}.column-labels,.score-row{padding-left:5px;padding-right:5px;gap:3px}}

/* Provisional scores and probability-adjacent targets. */
.column-labels,.score-row{grid-template-columns:minmax(0,1fr) 46px 112px}.column-labels span:first-child{font-size:inherit}.column-labels span:first-child:after{content:none}.odds-cell{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:6px}.odds-cell .target{margin:0}.odds-cell .prob{min-width:48px}.score-row.selected{background:#fff0c2;box-shadow:inset 3px 0 #bd942b}.selected .score-button{background:#edce7e;border-color:#b9963f;color:#173e35;box-shadow:0 0 0 2px #d4b86f55}.bonus-pace .ahead{color:#2b674b}.bonus-pace .behind{color:#9b5b38}.advice-choice+ .advice-choice{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.advice-choice p{margin:4px 0 0}.advice-method{font-size:11px;color:var(--muted);margin:12px 0 0;line-height:1.5}
@media(max-width:800px){.game-layout{grid-template-columns:minmax(0,.30fr) minmax(0,.70fr)}.column-labels,.score-row{grid-template-columns:minmax(0,1fr) 30px 78px;gap:3px}.column-labels span:first-child{font-size:7px}.column-labels span:last-child{font-size:7px}.odds-cell{gap:3px}.odds-cell .prob{min-width:39px}.odds-cell .target select{width:34px}.category-name{font-size:10px}.tray-heading{font-size:8px}.dice{grid-template-columns:repeat(2,minmax(0,40px));gap:10px 5px}.die-wrap:last-child{width:40px}.die{padding:5px}.upper-summary .bonus-pace{margin-top:3px}}
@media(max-width:360px){.category-name{font-size:9px}.column-labels,.score-row{grid-template-columns:minmax(0,1fr) 28px 73px;padding-left:4px;padding-right:4px}.odds-cell{gap:1px}.odds-cell .prob{min-width:38px}.odds-cell .target select{width:32px}.dice{grid-template-columns:repeat(2,minmax(0,34px))}.die-wrap:last-child{width:34px}}

.odds-toggle{align-self:flex-end;margin:0 0 10px;border:1px solid #cfd7ca;border-radius:8px;padding:9px 12px;background:#fffefa;color:var(--ink);font-weight:600;font-size:12px}.odds-toggle[aria-pressed="true"]{background:#eaf0e6;border-color:#b3c5ac}.odds-cell[hidden],#oddsColumn[hidden],#oddsNote[hidden]{display:none}.score-panel.odds-hidden .column-labels,.score-panel.odds-hidden .score-row{grid-template-columns:minmax(0,1fr) 46px}
@media(max-width:800px){.odds-toggle{align-self:stretch;padding:7px 4px;margin-bottom:7px;font-size:10px;text-align:center}.score-panel.odds-hidden .column-labels,.score-panel.odds-hidden .score-row{grid-template-columns:minmax(0,1fr) 30px}}

.advice-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.advice-options .advice-choice{margin:0;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fffefa}.advice-options .advice-choice:first-child{background:#eef4e9;border-color:#c5d5bd}.advice-rank{display:block;font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#647a59;margin-bottom:8px}.advice-choice h3{font-size:16px;line-height:1.4;margin:0 0 12px}.advice-choice ul{padding-left:18px;margin:0}.advice-choice li{margin:8px 0;line-height:1.55;color:#52634c}@media(max-width:600px){.advice-options{grid-template-columns:1fr}.advice-options .advice-choice{padding:15px}}

.advice-choice .advice-comparison{font-size:13px;line-height:1.65;color:#52634c;margin:12px 0;padding:12px 0;border-top:1px solid #dce5d7}.advice-comparison strong{display:block;color:var(--ink);font-size:13px;margin-bottom:4px}

.advice-choice .advice-summary{font-weight:600;color:var(--ink);margin:6px 0 10px}.advice-comparison p+p{margin-top:10px}

.column-labels #oddsColumn{line-height:1.3}.column-labels #oddsColumn small{display:block;font-size:10px;letter-spacing:.4px;margin-top:3px}.odds-context{padding:8px 16px;background:#f3f4ec;border-top:1px solid var(--line);font-size:12px;line-height:1.5;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.odds-context span{color:#697b6d}.odds-context[hidden]{display:none}.fresh-estimates{margin:12px 2px;font-size:14px;color:#516255}.fresh-estimates summary{cursor:pointer}.fresh-estimates p{font-size:14px;line-height:1.5;max-width:760px}.fresh-table{max-width:760px;background:#fffefa;border:1px solid var(--line);border-radius:8px;padding:10px}.fresh-table>div{display:grid;grid-template-columns:minmax(0,1fr) 90px 90px;gap:8px;padding:7px 4px;border-bottom:1px solid var(--line)}.fresh-table>div:last-child{border:0}.fresh-table b,.fresh-table span:not(:first-child){text-align:right}.fresh-head{font-size:12px;color:#647a59}.fresh-estimates[hidden]{display:none}

.die.advice-hold{outline:3px solid #80bcff;outline-offset:3px;box-shadow:0 5px 0 #c9c8b7,0 0 20px #70b8ff99}.die.held.advice-hold{box-shadow:0 5px 0 #b69748,0 0 20px #70b8ff99}.hold-label.suggested-label{visibility:visible;color:#b5d9ff}.score-row.advice-score{outline:2px solid #6094c1;outline-offset:-2px;background:#e9f3fc}.score-row.advice-score .score-button{border-color:#6094c1;box-shadow:0 0 0 2px #6094c144}.score-row.advice-score.selected{background:#fff0c2}

.odds-toggle{min-width:160px;min-height:36px;margin:0 0 8px;font-size:14px}.odds-toggle[aria-pressed="true"]{background:#eaf0e6;border-color:#b3c5ac;color:var(--ink)}.score-bands-panel{margin-top:16px;border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:#fffefa}.score-bands-panel h2{font-size:15px;margin-bottom:10px}.score-bands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.score-band{display:flex;flex-direction:column;gap:4px;padding:9px;border:1px solid var(--line);border-radius:8px;font-size:12px}.score-band strong{font-size:13px;line-height:1.4}.score-band span{color:#65715f}.score-band.current{border-color:#b9963f;background:#fff0c2}.band-notes{font-size:12px;color:#65715f;margin-top:10px;line-height:1.5}.band-notes summary{cursor:pointer}.band-notes p{max-width:740px}.band-notes a{color:var(--green)}dialog.finish-compact{max-width:340px;padding:24px;text-align:center}dialog.finish-compact .final-score{font-size:56px;margin:10px 0 4px}dialog.finish-compact .final-band{font-size:14px;font-weight:700;margin:4px 0;color:var(--ink)}dialog.finish-compact #bestMessage{font-size:14px;line-height:1.5;margin:12px 0 18px}.finish-compact::backdrop{background:#102b2450;backdrop-filter:blur(1px)}.advice-choice .advice-rationale{font-size:14px;line-height:1.6;margin:10px 0}.advice-choice .advice-rolls{font-size:12px;color:#65715f;margin-top:10px}.advice-choice .advice-summary{font-size:13px;margin:4px 0 8px}@media(max-width:850px){.score-bands{grid-template-columns:repeat(3,minmax(0,1fr))}.odds-toggle{min-width:0;font-size:12px;margin-bottom:8px;padding:8px}}

.retrospective{max-width:1112px;margin:20px auto;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fffefa}.retrospective[hidden],#reviewGame[hidden]{display:none}.retrospective h2{font-size:20px}.review-summary{font-size:16px;font-weight:700;line-height:1.6;margin:12px 0 6px}.retrospective>p,.review-help{font-size:14px;color:#52634c;line-height:1.6}.review-help summary,.review-turn summary{cursor:pointer}.review-rows{padding:0;list-style:none;margin:16px 0 0;display:grid;gap:10px}.review-turn{padding:14px;border:1px solid var(--line);border-radius:9px}.review-turn-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:14px}.review-turn-heading>span:last-child{margin-left:auto;color:#65715f}.review-rating{padding:3px 8px;border-radius:5px;font-weight:700}.review-rating.best{background:#e8f2df;color:#35552c}.review-rating.good{background:#f9efd6;color:#745e2d}.review-rating.poor{background:#f5e5df;color:#8b4939}.review-rating.unavailable{background:#eee;color:#666}.review-turn p,.review-turn details{font-size:14px;line-height:1.5;color:#52634c;margin:8px 0 0}.review-turn .review-score{font-size:12px;color:#65715f}#reviewGame{width:100%;margin-bottom:8px}dialog.finish-compact{max-width:340px}@media(max-width:650px){.retrospective{margin:16px 12px;padding:14px}.review-turn-heading{gap:8px}.review-turn-heading>span:last-child{font-size:12px}}

.explain-moves{align-self:flex-end;min-width:160px;margin:0 0 10px;font-size:14px;padding:9px 12px}#adviceDialog{max-width:640px}#adviceDialog #adviceResult{margin-top:12px}.luck-panel{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:10px;background:#f3f6ef}.luck-panel[hidden]{display:none}.luck-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.luck-heading h3{margin:0;font-size:16px}.luck-heading strong{font-size:16px}.luck-panel p,.luck-panel details{font-size:14px;line-height:1.5;color:#52634c;margin:10px 0}.luck-panel summary{cursor:pointer}.luck-track{position:relative;height:12px;margin:18px 6px 8px;border-radius:8px;background:linear-gradient(to right,#bf846c,#ece4ce 45%,#ece4ce 55%,#68966d)}.luck-marker{position:absolute;top:-5px;left:50%;width:4px;height:22px;background:var(--ink);border:1px solid #fff;border-radius:3px;transform:translateX(-50%)}.luck-labels{display:flex;justify-content:space-between;font-size:12px;color:#65715f}.luck-track[hidden]{display:none}.turn-luck{font-weight:600}.roll-luck-detail{font-size:12px!important}@media(max-width:850px){.explain-moves{align-self:stretch;min-width:0;font-size:12px;padding:8px}}

.mode-picker{display:flex;justify-content:center;gap:6px;max-width:510px;margin:22px auto 18px;background:#e8ece4;border:1px solid #ccd5c8;padding:6px;border-radius:14px}.mode-picker button{flex:1;min-height:52px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink);font-size:18px;font-weight:700;padding:10px 14px}.mode-picker button span{display:block;font-size:12px;font-weight:500;margin-top:2px}.mode-picker button[aria-pressed="true"]{background:var(--green);color:#fff;box-shadow:0 3px 8px #183b3222}.duel-mode #retrospective{display:none!important}#soloView[hidden],#duelView[hidden]{display:none!important}.duel-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0 8px}.duel-top h1{font-family:inherit;font-size:24px;letter-spacing:-.5px;margin:0;line-height:1.3}.duel-status{font-size:16px;font-weight:600;margin:12px 0 20px}.duel-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px) minmax(0,1fr);gap:18px;align-items:start}.duel-play{position:sticky;top:16px}.duel-play .tray{padding:22px 16px}.duel-play .tray-heading{font-size:12px;letter-spacing:0;gap:8px}.duel-play .dice{gap:7px}.duel-play .die{padding:8px}.duel-play .tray #duelHelp{font-size:14px;line-height:1.5;min-height:64px;text-align:center;color:#c9d8ca;margin:0 0 16px}.duel-sheet{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fffefa}.duel-sheet.playing{border-color:#6d966e;box-shadow:0 0 0 2px #d9e8d4}.duel-sheet-head{display:flex;align-items:center;gap:9px;padding:16px 12px;min-height:90px;background:#f0f4e9;border-bottom:1px solid var(--line)}.duel-sheet-head img,.you-avatar{border-radius:50%;flex-shrink:0;width:48px;height:48px;object-fit:cover}.you-avatar{display:grid;place-items:center;background:var(--green);color:white;font-size:24px;font-weight:700}.duel-sheet-head h2{font-size:16px;line-height:1.25;margin:0 0 5px}.duel-sheet-head span{font-size:12px;color:#64745e}.duel-sheet-head .you-avatar{color:white}.duel-sheet-head>strong{margin-left:auto;font-size:26px;letter-spacing:-1px}.duel-section-label{font-size:12px;letter-spacing:1px;font-weight:700;padding:12px;color:#6e7d66;background:#f8f9f3}.duel-category{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;min-height:55px;border-bottom:1px solid #eaeee3;font-size:14px;line-height:1.3}.duel-category>span{max-width:calc(100% - 48px)}.duel-category .score-button{min-width:40px;width:40px;height:36px;font-size:16px;padding:5px}.duel-category>b{min-width:40px;text-align:center;font-size:16px}.duel-category.filled{background:#f4f5ee;color:#798172}.duel-category.selected{background:#fff0c2;box-shadow:inset 3px 0 #c5a04c}.duel-category.selected .score-button{background:#f5dfa0;border-color:#c5a04c}.millie-open{color:#aab1a4}.duel-category.selected .millie-open{color:var(--ink)}.duel-upper,.duel-totals{display:grid;gap:8px;padding:12px;background:#f3f5ed;font-size:14px}.duel-upper>span,.duel-totals>span{display:flex;justify-content:space-between;gap:8px;line-height:1.4}.duel-grand{font-size:18px;border-top:1px solid #dbe1d2;padding-top:10px}.millie-caption{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.5;color:#65715f}.millie-caption img{border-radius:50%;flex-shrink:0;object-fit:cover}.duel-finish{text-align:center;max-width:390px}.duel-finish .finish-avatar{border-radius:50%;object-fit:cover}.duel-finish h2{font-size:26px;line-height:1.3;margin:16px 0 8px}.duel-finish p{font-size:16px}.match-scores{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.match-scores>div{display:grid;gap:8px;padding:16px 8px;border:1px solid var(--line);border-radius:12px}.match-scores span{font-size:14px}.match-scores strong{font-size:36px}.duel-finish .primary{width:100%}.duel-finish.victory{border:3px solid #d4b86f;background:radial-gradient(circle at top,#fff0bd,#fffefa 65%)}
@media(max-width:1000px){.duel-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.duel-play{grid-row:1;grid-column:1/-1;position:static;max-width:440px;width:100%;justify-self:center}.duel-sheet-head{padding:12px 10px}.millie-caption{margin:12px 0}.duel-play .tray #duelHelp{min-height:42px}}@media(max-width:550px){.mode-picker{margin:16px 0;gap:4px}.mode-picker button{font-size:16px;min-height:56px;padding:8px}.duel-top{margin-top:18px}.duel-top h1{font-size:20px}.duel-status{margin-bottom:14px}.duel-layout{gap:8px}.duel-sheet-head{flex-wrap:wrap;gap:6px;min-height:132px;align-content:center}.duel-sheet-head img,.duel-sheet-head .you-avatar{width:36px;height:36px}.duel-sheet-head>div{flex:1;min-width:70px}.duel-sheet-head h2{font-size:14px}.duel-sheet-head>strong{width:100%;font-size:26px;text-align:right;margin-top:4px}.duel-category{padding:8px;min-height:66px;gap:4px}.duel-category .score-button{width:34px;min-width:34px}.duel-category>b{min-width:34px}.duel-category>span{max-width:calc(100% - 38px)}.duel-upper,.duel-totals{padding:10px 8px;font-size:13px}.duel-grand{font-size:16px}.duel-section-label{padding:10px 8px;font-size:12px}}@media(prefers-reduced-motion:reduce){.rolling{animation:none}}

/* Two-player board: one aligned score table, with dice always in reach. */
.duel-mode{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.duel-mode header{width:100%;padding:8px 24px;flex-shrink:0}.duel-mode .brand-icon{font-size:24px}.duel-mode header .text-button{padding:4px 8px}.duel-mode main{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;padding:0 24px 8px}.duel-mode footer,.duel-mode .millie-caption,.duel-mode #duelSaveNote{display:none}.duel-mode .mode-picker{flex-shrink:0;width:100%;margin:6px auto;padding:4px;max-width:440px}.duel-mode .mode-picker button{min-height:36px;font-size:16px;padding:5px 10px}.duel-mode .mode-picker button span{display:inline;font-size:12px;margin-left:4px}.duel-mode #duelView{display:flex;flex-direction:column;flex:1;min-height:0}.duel-mode #duelView[hidden]{display:none!important}.duel-mode .duel-top{margin:2px 0;min-height:26px}.duel-mode .duel-top h1{font-size:18px}.duel-mode .duel-top button{font-size:14px;padding:4px 8px}.duel-mode .duel-status{font-size:14px;margin:2px 0 6px}.duel-mode .duel-layout{display:grid;grid-template-columns:minmax(240px,320px) minmax(300px,520px);justify-content:center;gap:20px;flex:1;min-height:0;align-items:start}.duel-mode .duel-play{grid-column:1;grid-row:1;position:static;max-width:none;width:100%}.match-board{grid-column:2;grid-row:1;overflow:auto;max-height:100%;min-height:0;border:1px solid var(--line);border-radius:12px;background:#fffefa;overscroll-behavior:contain;scrollbar-width:thin}.match-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;line-height:1.15}.match-table th:first-child{width:50%;text-align:left;padding-left:12px;font-weight:500}.match-table th,.match-table td{padding:2px 8px;height:30px;text-align:center;border-bottom:1px solid #e8ebdf}.match-table thead{background:#edf3e6}.match-table thead th{height:40px;font-size:14px}.match-table thead th.playing{background:#dcebcf;box-shadow:inset 0 -3px #789b67}.match-table thead strong{display:block;font-size:18px;margin-top:2px}.match-table thead img{display:inline-block;vertical-align:middle;border-radius:50%;object-fit:cover;margin-right:4px;width:26px;height:26px}.match-table thead span{display:inline-block;vertical-align:middle}.match-table .score-button{width:42px;min-width:0;height:28px;min-height:0;font-size:16px;line-height:1;padding:2px 4px;border-radius:6px}.match-table .filled{background:#f2f4ec;color:#64715d}.match-table .selected{background:#ffe9a5;box-shadow:inset 0 0 0 2px #c5a04c}.match-table .selected .score-button{background:#ffe9a5;border-color:transparent}.match-table .selected .millie-open{color:var(--ink)}.match-table .lower-start th,.match-table .lower-start td{border-top:2px solid #bccbb2}.match-table tfoot{background:#f1f4e9}.match-table tfoot td,.match-table tfoot th{height:24px;font-size:13px}.match-table .match-total td,.match-table .match-total th{font-size:16px;font-weight:700;height:30px;border-top:1px solid #bfceb5;border-bottom:none}
@media(max-width:760px){.duel-mode header{padding:6px 12px}.duel-mode .brand{font-size:12px;gap:6px}.duel-mode main{padding:0 10px 6px}.duel-mode .mode-picker{margin:4px auto}.duel-mode .mode-picker button{min-height:34px;font-size:15px}.duel-mode .mode-picker button span{font-size:11px}.duel-mode .duel-top h1{font-size:16px}.duel-mode .duel-status{margin:0 0 4px}.duel-mode .duel-layout{display:flex;flex-direction:column;gap:6px;align-items:stretch}.match-board{flex:1;max-height:none;min-height:0}.match-table th,.match-table td{height:28px;padding:1px 6px}.match-table th:first-child{padding-left:10px;width:49%}.match-table thead th{height:36px}.match-table thead strong{display:inline;font-size:16px;margin-left:4px}.match-table thead img{width:24px;height:24px}.match-table .score-button{height:26px;width:44px;font-size:15px}.match-table tfoot th,.match-table tfoot td{height:20px;font-size:12px}.match-table .match-total th,.match-table .match-total td{height:25px;font-size:15px}.duel-mode .duel-play{flex-shrink:0;max-width:none;order:2}.duel-mode .duel-play .tray{display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:3px 12px;padding:9px 12px;border-radius:12px}.duel-mode .duel-play .tray:after{inset:4px;border-radius:9px}.duel-mode .duel-play .tray-heading{grid-column:1/-1;font-size:12px;justify-content:space-between}.duel-mode .duel-play .dice{margin:5px 0 0;min-height:0;gap:7px;align-items:start}.duel-mode .duel-play .die-wrap{max-width:40px;gap:4px}.duel-mode .duel-play .die{padding:5px;border-radius:8px;gap:2px;box-shadow:0 3px 0 #c9c8b7}.duel-mode .duel-play .hold-label{font-size:9px;height:10px}.duel-mode .duel-play .roll-button{grid-column:2;grid-row:2;font-size:14px;text-align:center;padding:8px 6px;align-self:center;min-height:42px;line-height:1.2}.duel-mode .duel-play .tray #duelHelp{grid-column:1/-1;font-size:12px;text-align:left;line-height:1.3;min-height:0;margin:2px 0 0}.duel-mode #duelDots{display:none}}@media(max-width:350px){.duel-mode .mode-picker button span{display:none}.duel-mode .duel-play .tray{grid-template-columns:minmax(0,1fr) 100px;gap:3px 8px}.duel-mode .duel-play .dice{gap:5px}.match-table th:first-child{width:46%}}@media(min-width:761px) and (max-height:750px){.duel-mode .duel-play .dice{margin:20px 0 18px}.duel-mode .duel-play .tray #duelHelp{min-height:36px}}
@media(max-width:760px){.match-table thead strong{display:block;font-size:16px;line-height:1;margin:2px 0 0}.match-table thead img{width:20px;height:20px;margin-right:2px}.match-table thead th{height:38px;font-size:13px}.duel-mode .duel-play{padding-bottom:env(safe-area-inset-bottom,0px)}}

/* Classic side-by-side match layout, including portrait phones. */
.duel-mode .duel-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:12px;align-items:stretch;max-width:900px;width:100%;margin:0 auto}.duel-mode .duel-play{grid-column:1;grid-row:1;order:initial;display:flex;flex-direction:column;min-height:0;padding:18px 16px;background:radial-gradient(ellipse at top,#305c4c,#173e35);border-radius:14px;color:#fffbea}.duel-mode .match-board{grid-column:2;grid-row:1;flex:initial;border:2px solid #aab7a0;border-radius:10px;max-height:100%}.opponent-portrait,.human-portrait{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:16px;text-align:center}.opponent-portrait img{border-radius:50%;object-fit:cover}.human-portrait{margin-top:20px}.human-portrait .you-avatar{width:48px;height:48px;background:#dfc784;color:#183b32}.duel-mode .match-prompt{background:#f4e5a5;color:#254333;border-radius:8px;padding:12px;font-size:14px;line-height:1.45;margin:36px 0 14px;min-height:65px}.duel-mode .duel-play .tray{display:flex;flex-direction:column;gap:0;background:none;box-shadow:none;border-radius:0;padding:0;margin-top:auto;overflow:visible}.duel-mode .duel-play .tray:after{display:none}.duel-mode .duel-play .tray-heading{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;letter-spacing:0;margin:0 0 12px}.duel-mode .duel-play .roll-button{width:100%;min-height:48px;text-align:center;font-size:16px;padding:10px;line-height:1.25;align-self:auto}.duel-mode .duel-play .dice{margin:20px 0 0;gap:10px;min-height:0}.duel-mode .duel-play .die-wrap{max-width:54px;gap:8px}.duel-mode .duel-play .die{padding:8px;border-radius:10px;gap:3px}.duel-mode .duel-play .hold-label{font-size:10px;height:12px}.duel-mode #duelDots{display:flex;margin:12px 0 0}.match-table{height:100%;font-size:14px}.match-table th,.match-table td{border:1px solid #c8d1c0;height:32px;padding:3px 6px}.match-table th:first-child{width:54%;padding-left:9px}.match-table thead th{height:42px;font-size:14px}.match-table thead strong{display:block;font-size:18px;margin:3px 0 0}.match-table .match-subtotal{background:#edf2e6}.match-table .match-subtotal td,.match-table .match-subtotal th{height:26px;font-size:13px}.match-table tfoot td,.match-table tfoot th{height:26px}.match-table .score-button{width:38px;height:28px}.match-table .match-total td,.match-table .match-total th{height:32px}
@media(max-width:760px){.duel-mode .duel-layout{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:7px}.duel-mode .duel-play{padding:16px 8px 10px;border-radius:10px}.opponent-portrait,.human-portrait{font-size:14px;gap:6px}.opponent-portrait img{width:66px;height:66px}.human-portrait{margin-top:14px}.human-portrait .you-avatar{width:36px;height:36px;font-size:20px}.duel-mode .match-prompt{padding:9px;font-size:14px;line-height:1.35;margin:28px 0 12px;min-height:70px}.duel-mode .duel-play .tray{display:flex;padding:0;gap:0}.duel-mode .duel-play .tray-heading{font-size:11px;margin-bottom:8px}.duel-mode .duel-play .roll-button{font-size:14px;padding:8px 5px;min-height:46px}.duel-mode .duel-play .dice{gap:5px;margin:16px 0 0}.duel-mode .duel-play .die-wrap{max-width:34px;gap:5px}.duel-mode .duel-play .die{padding:4px;gap:2px;border-radius:6px}.duel-mode .duel-play .hold-label{font-size:8px;height:10px}.duel-mode #duelDots{margin-top:8px}.match-table{font-size:13px;line-height:1.1}.match-table th,.match-table td{height:30px;padding:2px 3px}.match-table th:first-child{width:53%;padding-left:5px}.match-table thead th{font-size:12px;height:36px}.match-table thead strong{font-size:16px}.match-table .score-button{width:30px;height:26px;font-size:14px;padding:2px}.match-table .match-subtotal th,.match-table .match-subtotal td,.match-table tfoot th,.match-table tfoot td{font-size:12px;height:23px}.match-table .match-total td,.match-table .match-total th{font-size:13px;height:28px}}@media(max-height:620px){.duel-mode .opponent-portrait img{width:44px;height:44px}.duel-mode .match-prompt{margin-top:12px;min-height:0;padding:7px;font-size:12px}.duel-mode .human-portrait{margin-top:8px}.duel-mode .human-portrait .you-avatar{display:none}}

.duel-mode .duel-play .tray #duelHelp{background:none;border:0;border-radius:0;box-shadow:none;padding:0;margin:8px 0 0;min-height:0;color:#d6e3d4;font-size:13px;line-height:1.4;text-align:center}.duel-mode .duel-play .dice{display:flex;flex-wrap:nowrap}.duel-mode .opponent-portrait img,.duel-finish .finish-avatar{border-radius:0;background:transparent;object-fit:contain}

.duel-mode .duel-play .dice{gap:10px}.duel-mode .duel-play .die-wrap{max-width:64px;width:100%}.duel-mode .duel-play .die{padding:9px;border-radius:12px;gap:3px}.duel-mode .duel-play .hold-label{font-size:10px;height:12px}@media(max-width:760px){.duel-mode .duel-play .dice{display:grid;grid-template-columns:repeat(2,minmax(0,52px));justify-content:center;gap:14px 12px;margin:18px 0 0}.duel-mode .duel-play .die-wrap{width:100%;max-width:52px;gap:6px;justify-self:center}.duel-mode .duel-play .die-wrap:last-child{grid-column:1/-1;width:52px}.duel-mode .duel-play .die{padding:7px;border-radius:10px;gap:3px}.duel-mode .duel-play .hold-label{font-size:10px;height:12px}}@media(max-width:760px) and (max-height:570px){.duel-mode .duel-play .dice{grid-template-columns:repeat(2,minmax(0,44px));gap:10px 12px;margin-top:12px}.duel-mode .duel-play .die-wrap,.duel-mode .duel-play .die-wrap:last-child{max-width:44px;width:100%}.duel-mode .duel-play .die-wrap:last-child{width:44px}}

#soloView .game-layout{align-items:start;margin-top:0}#soloView .play-panel{justify-content:flex-start;align-self:start}#soloView #newGame{width:100%;min-height:48px;font-size:16px;font-weight:700;padding:12px 8px;margin:14px 0 0;border:1px solid #bfcdb7;border-radius:10px;background:#eaf0e4;color:var(--ink)}.review-dice{display:flex;gap:6px;align-items:center;margin:10px 0 6px}.review-die{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:2px;width:30px;height:30px;padding:4px;border:1px solid #c7cfc0;border-radius:6px;background:#fffefa;box-shadow:0 2px 0 #d7ddcf;flex-shrink:0}.review-die i{display:block}.review-die .mini-pip{border-radius:50%;background:var(--ink)}.review-turn details .review-dice{margin-top:14px}@media(max-width:850px){#soloView #newGame{font-size:14px;min-height:46px;padding:10px 6px}.review-die{width:28px;height:28px}}

/* Explicit pip geometry avoids Safari's intrinsic grid sizing inside buttons. */
.die{display:block;-webkit-appearance:none;appearance:none}
.die>span{position:absolute;display:block;width:18%;height:18%;pointer-events:none}
.die>span:nth-child(3n+1){left:14%}
.die>span:nth-child(3n+2){left:41%}
.die>span:nth-child(3n){left:68%}
.die>span:nth-child(-n+3){top:14%}
.die>span:nth-child(n+4):nth-child(-n+6){top:41%}
.die>span:nth-child(n+7){top:68%}
