/* The same book room, a shorter path from invitation to actual play. */
::selection{background:#ffd875;color:#493448}
body{padding:12px}.storybook{max-width:1560px}.masthead{padding:14px 30px}main{padding:18px 30px 30px}
.title-row{margin-bottom:16px;align-items:center}.title-row h1{font-size:clamp(25px,2.6vw,38px);letter-spacing:-.025em}.title-row p{font-size:14px;margin-top:4px;color:#6e4f63}.edition-label{font-weight:900;color:#7d3457;display:inline-flex;padding:8px 14px;background:#f9e4ed;border-radius:50%;font-size:14px;flex-shrink:0}
.players{gap:12px;margin-bottom:16px}.player{padding:8px 12px;background:transparent;border-radius:18px;gap:10px;border:1px solid #d9c3d2}.player.active{background:#fce8ef;border-color:#a33e6a}.portrait{height:44px;width:44px;border-width:2px}.player h2{font-size:15px}.player p{font-size:12px}.player p strong{font-size:18px}.turn-tag{font-size:11px;padding:2px 6px}.player:not(.active) h2:after{display:none}
.game-layout,.family-game .game-layout{grid-template-columns:minmax(0,1fr) minmax(350px,40%);gap:24px}
.table-controls{padding:12px 16px;background:#f5e2c5 url(assets/living-room-v1.webp) center bottom/100% 700%;border-radius:22px 22px 0 0}
.scene-menu,.family-game .scene-menu{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px;padding-bottom:10px}.scene-menu button,.scene-menu #help,.scene-menu #new-game{flex:1 1 auto;padding:8px 10px;min-width:44px;min-height:44px;font-size:12px;border-radius:12px;box-shadow:0 2px 6px #663b2520}
.scene-menu .ui-icon{width:17px;height:17px}.table-controls .tray-heading h2{font-size:20px}.table-controls .tray-heading>span{font-size:12px;background:#fff8e9}
.table-controls #instruction{min-height:0;margin:5px 0 9px;color:#51372c;font-size:14px}.table-controls .roll-button{min-height:48px;padding:10px 24px;font-size:16px;box-shadow:0 4px 12px #71314f35}
.table-controls .finish-button{font-size:13px;padding:10px 12px;min-height:44px}.table-controls .roll-dots{display:none}.table-controls .tray-note{font-size:12px;margin-top:5px;font-weight:700}
.turn-utility{display:flex;justify-content:center;gap:8px;margin-top:7px;flex-wrap:wrap}.plain-button{border:0;background:transparent;padding:8px 10px;min-height:44px;font:inherit;font-size:13px;font-weight:850;color:#673f51;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#bd829a}.plain-button:hover{background:#fff6e3;border-radius:12px}
.turn-handoff{margin:6px 0;padding:10px 12px;background:#fff8e9}.turn-handoff strong{font-size:16px}.turn-handoff p{font-size:12px}
.table-stage{padding-top:34%;padding-bottom:16px;border-radius:0 0 22px 22px}.table-stage .dice-tray{margin:0 7%;padding:18px 12px 12px;background:#f5d0d5 url(assets/v2/mat.webp) center/100% 100%;border-radius:18px;box-shadow:0 6px 16px #75473228;isolation:isolate}
.rolling-zone{padding:5px 2px}.dice-zones .dice{min-height:104px;gap:clamp(10px,1.5vw,22px)}.dice-zones .dice .die{width:62px;height:62px;--cube-size:62px}.dice-zones.six .dice .die{width:54px;height:54px;--cube-size:54px}
.cube-face{border-radius:9px;box-shadow:inset 0 1px 3px #fff9,inset 0 -2px 5px #bea68c45}.face-top{background:linear-gradient(145deg,#fffefa,#fff1df)}.die-shadow{height:12px;filter:blur(4px)}
.dice-zones .die-label{background:#fffdf8;border-radius:8px;min-width:30px;height:24px;line-height:24px;font-size:14px;color:#523124;box-shadow:0 2px 4px #663b2510}.die-wrap.kept .die-label{background:#fff2c6}
.keep-zone{border:1px solid #ab793b;background:#fff3d6eb;padding:10px 12px;min-height:87px;box-shadow:inset 0 1px 5px #a56a2810}.keep-heading{font-size:13px}.keep-heading>span{padding:4px 8px}.keep-zone.has-dice .kept-dice{padding-top:13px;min-height:74px}.keep-zone.has-dice{min-height:116px}.kept-dice .die,.dice-zones.six .kept-dice .die{width:46px;height:46px;--cube-size:46px}.kept-dice .cube-face{padding:8px;gap:3px}.keep-zone.drop-ready{box-shadow:0 4px 14px #98612030;background:#ffedaf}.die-wrap.just-kept{animation:safe-landing .24s ease-out}
.score-shortcuts{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:12px 18px 0}.score-shortcuts button{min-height:44px;padding:10px 12px;background:#fffbf2;border:1px solid #b98567;border-radius:12px;font:inherit;font-size:13px;font-weight:850;color:#563559}.score-shortcuts strong{margin-left:8px;color:#96375f}
.score-sheet{padding:20px;background:#fffdf8;box-shadow:0 5px 18px #76596b10;border:1px solid #dcc7d5}.sheet-title h2{font-size:20px}.score-scroll{scrollbar-width:thin}.family-game .score-scroll.family-sheet table{min-width:470px}.score-scroll th:first-child{width:44%}.family-game .score-scroll th:first-child{width:150px}.category-name{min-height:44px;padding:8px 0;font-size:13px}.category-mark{font-size:13px}.score-choice{min-height:44px;border-radius:10px}.bonus-track{margin:12px 0 10px}.bonus-track label{display:block;font-size:13px;font-weight:800;margin-bottom:5px}.bonus-track progress{appearance:none;width:100%;height:9px;border:0;background:#f1e3eb;border-radius:10px;overflow:hidden}.bonus-track progress::-webkit-progress-bar{background:#f1e3eb;border-radius:10px}.bonus-track progress::-webkit-progress-value{background:#9f466f;border-radius:10px}.bonus-track progress::-moz-progress-bar{background:#9f466f}
#score-guide{font-size:13px;min-height:0;margin-bottom:10px;color:#6e4f63}.score-sheet td{height:44px}.bonus-row td{height:34px}.score-scroll .category-name .ui-icon{width:17px;height:17px}.row-dice{display:flex;gap:2px;margin-top:2px;opacity:.85}.row-dice .practice-die{width:12px;height:12px;padding:2px;gap:1px;border-radius:3px;box-shadow:none;border:0;background:#ede1ed}.row-dice .pip{box-shadow:none}
.room-discoveries{gap:10px;margin-top:10px}.room-discoveries p{color:#6a4a5b}.toy-mouse{left:12%;top:30%;width:44px;height:44px!important;min-width:44px;min-height:44px;color:#624258;background:#fff3dfbf;border-radius:50%}.toy-mouse .ui-icon{width:25px!important;height:25px!important}
.little-pal{display:flex;align-items:center;gap:14px;padding:8px 14px;margin-top:10px;min-height:90px;background:#f9edf2;border-radius:16px}.little-pal>button{width:85px;height:85px;padding:0;flex:0 0 85px;background:none;border:0;transform-origin:50% 80%;position:relative}.little-pal img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #73445220)}.little-pal p{font-size:14px;line-height:1.4;color:#673e51}.little-pal .plain-button{padding-left:0;font-size:13px}.little-pal>button.pat{animation:pal-pat .7s ease-out}.little-pal>button.toot{animation:pal-toot .8s ease-out}.little-pal>button.pawshake{animation:pal-pawshake .8s ease-out}
.character-speech{background:transparent;padding:12px 0 0;margin-top:0}.character-speech p{color:#563559;font-size:14px}.character-speech .speech-name{color:#8d355e}.turn-news{background:#f5edf7;margin-top:10px;font-size:13px;min-height:0}.voice-caption{font-size:14px;margin:10px 0;text-align:left;padding:0}.resume-note{font-size:12px;line-height:1.5}
.welcome-dialog{width:min(700px,calc(100% - 24px));padding:24px 32px;overflow:auto;background:#fffaf2}.welcome-art{display:block;width:190px;height:128px;object-fit:contain;margin:0 auto -3px;filter:drop-shadow(0 5px 4px #7147351a)}.welcome-dialog h2{margin:3px 0 6px;font-size:31px}.welcome-dialog>p{margin:8px 0;font-size:14px}.welcome-dialog fieldset{margin:15px 0}.experience-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.experience-options label{display:flex;align-items:center;gap:8px;text-align:left;padding:12px 10px;min-height:68px;border:1px solid #cfb2c5;border-radius:15px;background:#fffdf8;cursor:pointer}.experience-options label:has(input:checked){background:#f9e4ed;border-color:#a33e6a}.experience-options input{accent-color:#a33e6a;width:18px;height:18px;flex-shrink:0}.experience-options strong{display:block;font-size:14px}.experience-options small{display:block;font-size:12px;color:#6e4f63}.practice-link{border:0;background:transparent;color:#81506f;min-height:44px;padding:8px;font:inherit;font-size:14px;font-weight:900;text-decoration:underline;text-underline-offset:4px}.welcome-dialog .name-fields{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.welcome-dialog fieldset:not(.experience-choice):not(.family-count){display:grid;grid-template-columns:1fr 1fr;gap:8px}.mode-option{margin:0;padding:10px;border-width:1px}.mode-option b{display:none}.mode-option strong{font-size:14px}.mode-option small{font-size:12px}.welcome-voices{margin:12px 0;grid-template-columns:1fr auto 130px;gap:10px}.welcome-voices .hear-friends{grid-column:auto;font-size:13px}.welcome-voices>label:not(.hear-friends){font-size:12px}.welcome-dialog .roll-button{width:100%;margin-top:5px;box-shadow:0 4px 12px #71314f35}.welcome-instruction{font-size:13px!important}.count-options label{border-radius:12px;min-height:44px}.welcome-dialog .small-print{font-size:12px}
dialog{scrollbar-color:#ad5c7c #f9e4ed;scrollbar-width:thin}dialog h2{padding-right:32px}.score-coach h2{padding-right:0}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:52px;margin:10px 0;font-size:14px}.setting-row input[type=checkbox]{width:22px;height:22px;accent-color:#a33e6a;flex:0 0 22px}.setting-row input[type=range]{width:150px;accent-color:#a33e6a;min-height:44px}.voice-settings{display:grid;grid-template-columns:1fr auto;gap:12px;margin-bottom:20px}.voice-settings label{font-size:14px}.voice-settings select,select{font:inherit;min-height:44px;border:1px solid #c5acbf;padding:8px 10px;background:#fffdf8;border-radius:10px;color:#563559}select:focus-visible{outline:3px solid #2f797b;outline-offset:3px}.music-player{border-top:1px solid #dcc7d5;padding-top:20px;margin:20px 0}.music-player h3{margin:0 0 10px;font-size:18px}.music-player label{display:block;font-size:14px;margin:10px 0 5px}.music-player select{width:100%}.music-player input{width:100%;min-height:44px;accent-color:#a33e6a}.music-actions{display:flex;gap:8px;margin-top:10px}.music-player p{font-size:13px;color:#6e4f63}
.challenges-dialog,.album-dialog{width:min(740px,calc(100% - 24px))}.challenges-dialog h3,.album-dialog h3{font-family:Lora,Georgia,serif;font-size:21px;margin:24px 0 12px}.practice-notice{font-size:13px!important;color:#6e4f63}.challenge-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.challenge-group button{display:flex;gap:12px;align-items:center;text-align:left;padding:12px 0;min-height:60px;border:0;border-bottom:1px solid #e2ceda;background:transparent;font:inherit;color:#563559}.challenge-group button>span{font-size:20px;color:#a33e6a;width:24px;flex-shrink:0}.challenge-group button strong{font-size:14px;flex:1}.challenge-group button small{font-size:12px;color:#6e4f63}.daily-puzzle{display:block;width:100%;padding:16px;text-align:left;font:inherit;font-weight:850;font-size:15px;color:#704254;border:1px solid #d5a77d;background:#fff0ce;border-radius:14px;min-height:54px}
.puzzle-dice{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin:24px 0}.practice-die-wrap{display:flex;flex-direction:column;align-items:center;gap:10px}.practice-die-wrap>span{font-size:14px;font-weight:850}.practice-die{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);width:52px;height:52px;gap:4px;padding:9px;background:#fffdf8;border:1px solid #b99176;border-radius:10px;box-shadow:0 3px 5px #714c3520;color:#563559}.practice-die .pip{background:#563559}.practice-die[aria-pressed=true]{background:#ffe1a0;border-color:#97631f}.practice-die:disabled{opacity:1}.puzzle-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.puzzle-feedback{font-size:15px;line-height:1.6;min-height:52px;padding:12px 0;color:#6e4f63}.puzzle-feedback.correct{color:#286365;border-top:1px solid #b7cfca}.puzzle-footer{display:flex;justify-content:space-between;gap:12px;margin-top:15px}.puzzle-footer button{white-space:normal}.puzzle-dialog>#puzzle-check{display:flex;margin:15px auto}
.album-item{display:flex;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #e4d4de;color:#705566}.album-item .ui-icon{width:36px;height:36px;stroke:#8c617e;flex-shrink:0}.album-item strong{display:block;font-size:15px}.album-item span{display:block;font-size:13px;margin-top:3px}.album-item.earned{color:#563559}.album-item.earned .ui-icon{stroke:#9a6329;fill:#ffe2a16b}.album-dialog>.roll-button{margin-top:24px}.giggle-dialog{text-align:center}.giggle-dialog img{width:150px;height:150px;object-fit:contain}.giggle-dialog>p{font-size:20px;line-height:1.6}.giggle-dialog .dialog-actions{justify-content:center}.family-awards{margin:18px 0;text-align:left;border-block:1px solid #e1cbd7;padding:6px 0}.family-awards p{font-size:14px;line-height:1.6}.family-awards strong{color:#8d355e}.winner-ribbon{box-shadow:0 4px 16px #714c3520}.board-filters{display:flex;gap:16px;flex-wrap:wrap}.board-filters label{display:grid;gap:8px;font-size:14px;font-weight:850}.board-filters select{max-width:100%}#board-list{padding-left:28px}#board-list li{padding:12px 6px;border-bottom:1px solid #e2ceda;font-size:14px}#board-list li span{display:inline-block;width:65%;overflow-wrap:anywhere}#board-list strong{color:#8d355e;white-space:nowrap}#board-dialog a{display:inline-flex;text-decoration:none;margin-top:15px}
.sticker-toast{position:fixed;inset:auto 20px 20px auto;z-index:100;max-width:min(390px,calc(100vw - 40px));padding:16px 18px;background:#fff4d8;color:#704254;box-shadow:0 6px 24px #57304730;border:1px solid #d4b595;border-radius:16px;font-size:14px;display:flex;align-items:center;gap:12px;pointer-events:none}.sticker-toast .ui-icon{color:#9a6329}
#score-flight{position:fixed;z-index:1000;pointer-events:none;padding:8px 14px;background:#fff3cc;color:#9a355f;border-radius:14px;font-size:24px;font-weight:900;box-shadow:0 4px 16px #714c3520}.match-paused .table-stage:after{content:'Game paused · press Resume game';position:absolute;inset:0;display:grid;place-items:center;background:#fffbf2cc;font-size:19px;font-weight:900;z-index:20;padding:30px;text-align:center}.match-paused #match-pause{color:#9a355f;font-weight:1000}
@keyframes safe-landing{from{transform:translateY(-8px)}to{transform:translateY(0)}}@keyframes pal-pat{35%{transform:rotate(-5deg) scale(1.04)}70%{transform:rotate(3deg)}}@keyframes pal-toot{30%{transform:translateX(-5px) rotate(-5deg)}60%{transform:translateX(5px) rotate(4deg)}}@keyframes pal-pawshake{25%{transform:translateY(-8px) rotate(-8deg)}65%{transform:translateY(-3px) rotate(8deg)}}
@media(min-width:1000px){.score-sheet{position:sticky;top:16px}.score-scroll{max-height:68vh;overflow:auto}.score-scroll thead{position:sticky;top:0;background:#fffdf8;z-index:2}.score-scroll tfoot{position:sticky;bottom:0;z-index:2}.score-scroll th:first-child{position:sticky;left:0;background:#fffdf8;z-index:1}.score-scroll thead th:first-child{z-index:3}}
@media(max-width:999px){.game-layout,.family-game .game-layout{grid-template-columns:minmax(0,1fr)}.score-sheet{position:static}.table-stage{padding-top:34%}.players{gap:8px}.player{padding:8px;gap:8px}.player h2{font-size:14px}.player .portrait{width:38px;height:38px}.dice-zones .dice .die{width:64px;height:64px}.dice-zones.six .dice .die{width:58px;height:58px}.kept-dice .die,.dice-zones.six .kept-dice .die{width:46px;height:46px}}
@media(max-width:600px){body{padding:6px}main{padding:16px 12px 24px}.masthead{padding:12px 18px}.masthead .back{display:block;font-size:12px}.title-row{gap:10px}.title-row h1{font-size:25px}.title-row p{font-size:13px}.players{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;padding-bottom:4px;justify-content:initial}.player{flex:1 0 95px;min-width:95px;max-width:none;flex-direction:column;padding:7px 6px;text-align:center}.player h2{font-size:13px}.player p strong{font-size:16px}.turn-tag{font-size:11px;margin:0 auto}.player.active .turn-tag{display:inline}.portrait{height:38px;width:38px}.table-controls{padding:10px}.scene-menu,.family-game .scene-menu{display:flex;gap:6px}.scene-menu button{flex:1 1 auto;padding:8px;font-size:12px}.scene-menu .ui-icon{width:16px;height:16px}.scene-menu .button-label{font-size:12px}.scene-menu #motion,.scene-menu #sound{width:auto;min-width:44px}.scene-menu #motion .button-label,.scene-menu #sound .button-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.table-controls .tray-heading h2{font-size:18px}.table-controls #instruction{font-size:13px}.table-controls .turn-actions{flex-direction:row;gap:8px}.table-controls .turn-actions button{width:auto}.table-controls .roll-button{min-width:145px;font-size:15px}.table-controls .finish-button{font-size:12px}.turn-utility{gap:2px}.turn-utility .plain-button{font-size:12px;padding:7px}.table-stage .dice-tray{margin:0 4%;padding:15px 8px 10px}.dice-zones .dice{min-height:98px;gap:12px}.dice-zones .dice .die{width:48px;height:48px;--cube-size:48px}.dice-zones.six .dice .die{width:44px;height:44px;--cube-size:44px}.dice-zones.six .dice{gap:7px}.cube-face{padding:8px;gap:3px}.kept-dice{gap:10px}.kept-dice .die,.dice-zones.six .kept-dice .die{width:44px;height:44px}.keep-zone{padding:10px 8px}.keep-zone p{line-height:1.45}.score-shortcuts{padding:12px 10px 0;gap:6px}.score-shortcuts button{padding:8px 10px;font-size:12px}.room-discoveries{align-items:center;gap:8px}.room-discoveries p{font-size:12px}.room-discoveries .small-button{font-size:12px;padding:8px;max-width:160px;white-space:normal}.little-pal{padding:6px 10px;gap:10px}.little-pal>button{width:74px;height:74px;flex-basis:74px}.little-pal p{font-size:13px}.score-sheet{padding:18px 12px}.category-name{font-size:13px}.score-choice{width:44px}.family-game .score-scroll table{min-width:470px}.welcome-dialog{padding:20px 18px}.welcome-art{width:145px;height:96px}.welcome-dialog h2{font-size:27px}.welcome-dialog>p{font-size:13px}.experience-options{gap:6px}.experience-options label{display:flex;flex-direction:column;align-items:center;text-align:center;padding:10px 5px;gap:5px;min-height:89px}.experience-options strong{font-size:13px}.experience-options small{font-size:12px}.welcome-voices{grid-template-columns:auto 1fr;gap:8px}.welcome-voices .hear-friends{grid-column:1/-1}.welcome-dialog .mode-option{gap:8px;padding:10px 8px}.mode-option strong{font-size:13px}.mode-option small{font-size:12px}.mode-option input{width:18px;height:18px}.welcome-dialog .count-options span{font-size:13px}.welcome-dialog .small-print{font-size:12px!important}.setting-row{gap:16px;min-height:52px}.setting-row label{max-width:65%}.setting-row input[type=range]{width:110px}.voice-settings{grid-template-columns:1fr}.challenge-group{grid-template-columns:1fr}.challenge-group button{min-height:58px}.puzzle-dice{gap:10px}.practice-die{width:44px;height:44px;padding:7px;gap:3px}.puzzle-choices{gap:10px}.puzzle-footer{flex-wrap:wrap}.giggle-dialog>p{font-size:18px}.family-awards p{font-size:14px}.sticker-toast{inset:auto 12px 12px 12px;max-width:none}dialog h2{padding-right:30px}.score-coach h2{padding-right:0}}
@media(max-width:359px){.dice-zones .dice,.dice-zones.six .dice{display:flex;flex-wrap:wrap;max-width:205px;gap:12px;min-height:145px}.kept-dice,.dice-zones.six .kept-dice{flex-wrap:wrap;max-width:205px;gap:12px}.table-stage{padding-top:35%}.welcome-dialog fieldset:not(.experience-choice):not(.family-count){grid-template-columns:1fr}.music-actions{flex-wrap:wrap}.puzzle-dialog{padding:24px 18px}.puzzle-dice{gap:8px}.practice-die{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.die-wrap.just-kept,.little-pal>button{animation:none!important}#score-flight{display:none!important}}

.welcome-options{margin:10px 0;text-align:left}.welcome-options summary{min-height:44px;display:list-item;padding:12px 4px;font-weight:750;color:#694152;cursor:pointer}.welcome-options fieldset{margin-top:12px}.welcome-options .welcome-voices{margin-bottom:8px}.welcome-dialog .welcome-instruction{margin:12px 0}.welcome-dialog>p{margin-block:8px}.welcome-dialog>fieldset{margin-block:12px}

.game-layout>section,.players{min-width:0}.scene-menu #sound,.scene-menu #motion{flex:0 0 44px;padding:8px}.scene-menu #sound .button-label,.scene-menu #motion .button-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.scene-menu button{flex:0 1 auto}.scene-menu{align-items:center}.table-controls .turn-actions{margin-top:8px;margin-bottom:4px}

.score-shortcuts{position:relative;z-index:3}

.dice-zones.rolling .roll-this .die-label{opacity:0}.die-label{transition:opacity .12s ease-out}.scene-menu button:active,.score-shortcuts button:active{transform:translateY(1px)}@media(prefers-reduced-motion:reduce){.die-label{transition:none}.scene-menu button:active,.score-shortcuts button:active{transform:none}}

.turn-utility .plain-button{background:#fff6e3;color:#673f51;border-radius:10px;padding:8px 12px}.turn-utility .plain-button:hover{background:#ffedcc}.sheet-title>.ui-icon{width:26px;height:26px;color:#a33e6a}.news-paw .ui-icon{width:22px;height:22px;color:#8d355e}
.table-controls #instruction{background:#fff6e3;padding:8px 12px;border-radius:8px}.table-controls #mode-note{background:#fff6e3;color:#51372c;padding:6px 10px;border-radius:8px;width:fit-content;margin-left:auto;margin-right:auto}
