@font-face{font-family:Lele;src:url('assets/font.ttf') format('truetype');font-display:swap}*{box-sizing:border-box}body{margin:0;background:#faf6eb;color:#554737;font-family:Lele,system-ui,sans-serif;font-size:18px;line-height:1.6}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;min-height:48px;padding:10px 20px;background:#fffaf0;border:1.5px solid #b8aa8c;border-radius:18px;cursor:pointer;touch-action:manipulation}button:hover{background:#f7edcf}button:disabled{opacity:.5;cursor:default}.primary{background:#3e7965;color:#fff;border-color:#3e7965}.primary:hover{background:#2b6350}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b65545;outline-offset:4px}[hidden]{display:none!important}header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;max-width:1536px;margin:auto}header a{color:#3e7965;text-decoration:none;font-size:21px}nav{display:flex;flex-wrap:wrap;gap:8px}nav button{font-size:15px;padding:8px 13px;min-height:44px}main{max-width:1536px;margin:auto;padding:0 16px}#board{position:relative;width:100%;aspect-ratio:3/2}#board>img{display:block;width:100%;height:auto}#overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;font-family:Lele,sans-serif}#overlay text{fill:#554737;text-anchor:middle}#overlay .station-question{fill:#b65545}.token{transition:transform .23s ease-out}.panel{max-width:1024px;margin:14px auto 20px;padding:24px 36px;background:#fffcf3;border:2px solid #dfc8a0;border-radius:28px;box-shadow:0 5px 0 #e6dcc62e}h1{font-size:clamp(27px,3.5vw,40px);line-height:1.35;margin:10px 0 20px}p{margin:8px 0}.eyebrow,.hint{color:#726550}.eyebrow{font-size:18px;letter-spacing:2px}.hint{font-size:16px}.actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 10px}.turnbar{display:flex;justify-content:space-between;gap:10px;align-items:center}#turn{font-size:24px;color:#3e7965}.station-body{display:flex;align-items:center;gap:24px}.station-copy{min-width:0}#animal{width:145px;height:145px;object-fit:contain;mix-blend-mode:multiply}#answer{font-size:clamp(24px,3.5vw,34px);line-height:1.7;color:#3e7965}#audio-status,details{max-width:1024px;margin:12px auto;font-size:16px}details{padding:12px 18px;border-top:1px solid #dfc8a0}summary{cursor:pointer}footer{text-align:center;font-size:14px;padding:22px;color:#726550}@media(max-width:640px){header{padding:12px;display:block}header a{display:block;text-align:center;margin-bottom:10px;font-size:20px}nav{justify-content:center;gap:6px}nav button{font-size:14px;padding:7px 10px}main{padding:0 8px}.panel{padding:20px 18px;border-radius:22px;margin-top:8px}#turn{font-size:21px}.station-body{gap:12px;align-items:flex-start}#animal{width:88px;height:110px}h1{font-size:29px;margin-bottom:12px}#answer{font-size:24px}.actions button{flex:1 1 125px;padding:10px 12px}.hint{font-size:15px}#audio-status,details{padding-left:12px;padding-right:12px}}@media(prefers-reduced-motion:reduce){.token{transition:none}}
/* Responsive illustrated board plus reachable controls. */
body{background:#fff;color:#1a1a1a}.primary{background:#b94b45;border-color:#b94b45}.primary:hover{background:#9d3d38}
.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}#board{min-width:0}.sidebar{position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow:auto;min-width:0;scrollbar-width:thin;padding:4px}.sidebar .panel{width:100%;padding:20px;margin:0 0 16px;background:#fff;border:1px solid #e0e0e0;border-radius:18px;box-shadow:none}.sidebar h1{font-size:28px}.sidebar #turn{font-size:21px;line-height:1.45}.sidebar .station-body{flex-direction:column;align-items:center;gap:8px}.sidebar #animal{width:110px;height:100px}.sidebar #answer{font-size:25px}.sidebar #question{margin-bottom:12px}.sidebar .actions{gap:8px}.sidebar .actions button{flex:1 1 125px;padding:10px 8px}.sidebar #positions{font-size:15px}.sidebar details{margin-bottom:0}.sidebar #audio-status{padding:0 8px}.sidebar #cue-note{font-size:14px}
@media(max-width:980px){.game-layout{display:block}.sidebar{position:static;max-height:none;overflow:visible;padding:0;max-width:640px;margin:12px auto}.sidebar .panel{padding:20px}.sidebar .station-body{flex-direction:row;align-items:flex-start}.sidebar #animal{width:84px;flex:none}.sidebar #answer{font-size:24px}header{flex-wrap:wrap}}
/* The button itself is the only roll action; six real-font cube faces. */
.die-area{text-align:center}
fieldset{min-width:0;margin:18px 0;padding:10px 0;border:0}legend{font-size:18px}.baby-choices{display:flex;gap:8px}.baby-choice{position:relative;flex:1;min-width:0;display:grid;justify-items:center;align-content:center;border:2px solid #e0e0e0;border-radius:14px;padding:10px 3px;background:white;font-size:15px;cursor:pointer}.baby-choice img{width:50px;height:57px}.baby-choice input{accent-color:#b94b45;width:18px;height:18px;margin:0 0 4px}.baby-choice:has(:checked){border-color:#b94b45;background:#fff0e6}.baby-choice:has(:checked) span::after{content:' ✓'}.baby-choice:has(:disabled){opacity:.4;cursor:not-allowed}.baby-choice:has(:focus-visible){outline:3px solid #b94b45;outline-offset:3px}.turnbar{justify-content:flex-start}.turnbar #current-baby{flex:none}.token image{filter:drop-shadow(0 1px 1px white)}
#roll{display:block;width:190px;height:180px;padding:0;margin:8px auto;border:0;background:transparent;perspective:700px;opacity:1}
#roll:hover:not(:disabled){background:#fff0e6}
#roll:disabled{cursor:not-allowed}
#roll:disabled .die-face{border-color:#a99d87}
.die-stage{display:grid;place-items:center;width:100%;height:100%;perspective:700px;transform:rotateX(-12deg) rotateY(16deg);transform-style:preserve-3d}
#die{display:block;position:relative;width:116px;height:116px;transform-style:preserve-3d;--rx:0deg;--ry:0deg;transform:rotateX(var(--rx)) rotateY(var(--ry))}
#die[data-value="2"]{--rx:-90deg}#die[data-value="3"]{--ry:-90deg}#die[data-value="4"]{--ry:90deg}#die[data-value="5"]{--rx:90deg}#die[data-value="6"]{--ry:180deg}
.die-face{position:absolute;inset:0;display:grid;place-items:center;border:2px solid #c99e5f;border-radius:15px;background:#fffcf3;color:#b94b45;font-size:66px;line-height:1;backface-visibility:hidden;box-shadow:inset 0 0 18px #d8b56a38}
.face-1{transform:translateZ(58px)}.face-2{transform:rotateX(90deg) translateZ(58px);background:#fff3ce}.face-3{transform:rotateY(90deg) translateZ(58px);background:#edf5e9}.face-4{transform:rotateY(-90deg) translateZ(58px);background:#fff3ce}.face-5{transform:rotateX(-90deg) translateZ(58px);background:#edf5e9}.face-6{transform:rotateY(180deg) translateZ(58px)}
#die[data-rolling="true"]{animation:die-tumble .9s cubic-bezier(.15,.55,.3,1) both}
#roll:has([data-rolling="true"]){animation:die-shake .16s ease-in-out 5}
#die-result{display:block;font-size:23px;color:#b94b45}
@keyframes die-tumble{0%{transform:rotateX(calc(var(--rx) + 630deg)) rotateY(calc(var(--ry) + 540deg))}100%{transform:rotateX(var(--rx)) rotateY(var(--ry))}}
@keyframes die-shake{0%,100%{translate:0 0}25%{translate:-6px -3px}75%{translate:6px 3px}}
@media(prefers-reduced-motion:reduce){#die[data-rolling="true"],#roll:has([data-rolling="true"]){animation:none}}


.games-back{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 13px;font-size:15px;border:1.5px solid #b8aa8c;border-radius:18px;background:#fffaf0;text-decoration:none;white-space:nowrap}

/* One-screen illustrated play. Artwork and SVG share the same contain box. */
html{min-height:100%;}body{height:100svh;height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);line-height:1.3}header{display:flex;width:100%;flex:none;padding:4px 12px;min-height:48px;flex-wrap:nowrap}header a{margin:0;font-size:18px;text-align:left}header button{font-size:14px;min-height:40px;padding:6px 12px;white-space:nowrap}main{width:100%;flex:1;min-height:0;padding:0 8px 6px}.game-layout{height:100%;grid-template-columns:minmax(0,1fr) 320px;gap:12px;align-items:center}#board{height:100%;aspect-ratio:auto;min-height:0}#board>img{width:100%;height:100%;object-fit:contain}#overlay{object-fit:contain}footer{display:none}.sidebar{position:static;overflow:visible;max-height:none;padding:0;width:100%;margin:0}.sidebar .panel{margin:0;padding:12px}.sidebar h1{font-size:24px}.sidebar .actions{margin:8px 0 0;gap:6px}.sidebar .actions button{min-height:40px;padding:6px 8px;flex:1 1 auto;font-size:16px}.sidebar #answer{font-size:23px;line-height:1.35}.sidebar #question{margin:4px 0;font-size:25px}.sidebar #cue-note{margin:5px 0 0;font-size:13px}.sidebar .station-body{flex-direction:row;align-items:center;gap:8px}.sidebar #animal{width:64px;height:68px;flex:none}#play{display:flow-root}.turnbar{padding-right:82px;min-height:76px;align-items:center;gap:6px}.sidebar #turn{font-size:18px;line-height:1.3}#current-baby{width:32px;height:38px}#play{position:relative}.die-area{position:absolute;right:6px;top:4px;width:80px}#roll{width:76px;height:70px;min-height:70px;margin:0 auto}.die-stage{transform:scale(.48) rotateX(-12deg) rotateY(16deg);transform-origin:center}#roll{position:relative}.die-stage{position:absolute;width:116px;height:116px;left:50%;top:50%;margin:-58px 0 0 -58px}#die-result{font-size:12px;line-height:1.2}#die-hint{display:none}.sidebar #positions{font-size:12px;display:flex;gap:8px;flex-wrap:wrap;margin:5px 0}.sidebar #positions span{display:inline!important}#setup .eyebrow{margin:0;font-size:14px}#setup h1{margin:2px 0;font-size:23px}#setup p{font-size:14px;margin:4px 0}fieldset{margin:6px 0;padding:0}legend{font-size:15px}.baby-choices{gap:5px}.baby-choice{padding:3px 1px;display:flex;gap:2px;justify-content:center;flex-wrap:wrap;font-size:12px;min-height:40px}.baby-choice img{width:24px;height:28px}.baby-choice input{width:14px;height:14px;margin:0}.baby-choice span{white-space:nowrap}.baby-choice:has(:checked) span::after{content:''}dialog{max-width:min(460px,94vw);max-height:90dvh;border:1px solid #b8aa8c;border-radius:18px;padding:16px;font:inherit;color:inherit;background:#fffcf3}dialog::backdrop{background:#35271c77}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}dialog nav{margin-top:12px}dialog nav button,dialog nav a{min-height:44px}dialog details{font-size:15px;padding:8px 0}
@media(max-width:980px) and (orientation:portrait){.game-layout{display:flex;flex-direction:column;gap:4px;justify-content:center}#board{flex:1;width:100%;min-height:0;max-height:calc((100vw - 16px)*2/3)}.sidebar{max-width:620px;flex:none}header a{font-size:16px}.sidebar .panel{padding:8px}#setup .actions{margin-top:5px}#setup .hint:last-child{font-size:12px}#play .station-body{min-height:66px}.sidebar #answer{font-size:20px}.sidebar #question{font-size:23px}}
@media(max-width:980px) and (orientation:landscape){header{min-height:42px;padding:1px 8px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(225px,34vw,300px);gap:6px}.sidebar .panel{padding:7px}.sidebar #turn{font-size:15px}.sidebar #question{font-size:20px}.sidebar #answer{font-size:17px}.sidebar #animal{width:40px;height:44px}.sidebar .actions button{font-size:14px;padding:5px;min-height:40px}.sidebar #cue-note{font-size:11px}.sidebar #positions{font-size:11px;margin:2px 0}.turnbar{min-height:72px}#setup .eyebrow,#setup>p:not(.hint){display:none}#setup h1{font-size:19px}#setup .hint{font-size:11px;margin:2px 0}fieldset{margin:3px 0}legend{font-size:12px}.baby-choice{font-size:10px;gap:0}.baby-choice img{width:18px;height:22px}.baby-choice input{width:12px;height:12px}.baby-choice span{width:100%}#setup .actions{margin-top:4px}}

@media(max-width:980px) and (orientation:landscape){.sidebar #answer{font-size:16px;line-height:1.25}.sidebar #question{font-size:18px}.turnbar{min-height:96px}}
@media(max-width:980px) and (orientation:portrait){.turnbar{min-height:96px}}

/* Preserve the actual supplied reading-mascot proportions. */
.baby-choice img,#current-baby{object-fit:contain}
/* Compact existing controls on short phones without shrinking artwork. */
@media(max-width:600px) and (orientation:landscape){#play .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}#play .actions button{min-width:0;font-size:12px;line-height:1.2;padding:5px 2px}#play #visit-progress{font-size:11px!important;line-height:1.1!important}#play #answer{font-size:14px}}
/* Short landscape also needs one action row when wider than the compact-phone rule. */
@media(min-width:601px) and (max-width:980px) and (max-height:360px) and (orientation:landscape){#play .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}#play .actions button{min-width:0;min-height:44px;line-height:1.2;padding:5px 2px}}
.mode-choice{display:flex;align-items:center;gap:8px;margin:4px 0;font-size:14px}.mode-choice label{flex:none}.mode-choice select{min-width:0;flex:1;font:inherit;color:inherit;background:#fffaf0;border:1px solid #b8aa8c;border-radius:8px;min-height:34px;padding:4px}.mode-choice select:focus-visible{outline:3px solid #b94b45;outline-offset:2px}
@media(max-width:980px) and (orientation:landscape){.mode-choice{font-size:12px;margin:2px 0}.mode-choice select{min-height:30px;padding:2px}#setup h1{margin:2px 0}#setup .hint:last-child{display:none}}

@media(max-width:980px) and (max-height:360px) and (orientation:landscape){.turnbar{min-height:88px}.sidebar .panel{padding:5px}body header{min-height:48px}.die-area #roll{height:52px;min-height:52px}.die-area .die-stage{transform:scale(.34) rotateX(-12deg) rotateY(16deg)}}
/* Bilingual successor: keep essential tools in the upper-right without a second header row. */
.top-controls{display:flex;gap:4px;align-items:center;flex:none}header>.top-controls button,header #printable{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;font-size:13px;line-height:1.15;border:1.5px solid #b8aa8c;border-radius:14px;background:#fffaf0;white-space:nowrap;color:#554737;text-decoration:none}header>a{min-width:0;line-height:1.1}header{min-height:52px}.print-options a{min-height:44px;display:inline-flex;align-items:center;padding:6px}.print-options summary{min-height:44px;cursor:pointer}html[lang=en] #setup .baby-choice{font-family:system-ui,sans-serif;font-size:11px}html[lang=en] #setup .hint{font-size:11px}html[lang=en] #visit-progress{font-family:system-ui,sans-serif;font-size:11px!important}html[lang=en] #turn{font-size:16px}.sidebar .actions button{min-height:44px}@media(max-width:600px){header{gap:4px;padding:2px 6px}header>a{font-size:13px}.top-controls{gap:3px}header>.top-controls button,header #printable{padding:4px 6px;font-size:12px}}@media(max-width:980px) and (orientation:landscape){html[lang=en] #setup .baby-choice{font-size:9px}html[lang=en] #setup h1{font-size:17px}html[lang=en] #turn{font-size:14px}html[lang=en] #question{font-size:17px}#play .actions button{min-height:44px}}
