.family-play{background:#edb83e;padding:55px var(--gutter) 85px;isolation:isolate;overflow:visible;color:#252323}
.family-play .chapter-meta{position:relative;z-index:1}.play-edition{letter-spacing:.12em;font-size:11px}
.play-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:25px;margin:46px 0 35px}
.play-heading h2{font-size:clamp(64px,8vw,124px);line-height:.83;letter-spacing:-.035em}.play-heading h2 em{font-family:Georgia,serif;font-weight:600;font-size:.78em;letter-spacing:-.07em}
.play-heading p{max-width:220px;font-size:16px;font-weight:600;line-height:1.5;padding-bottom:7px}
.play-machine{position:relative;max-width:1450px;margin:auto;border:2px solid #282425;border-radius:30px;box-shadow:0 10px 0 #282425;overflow:hidden;background:#f6efdf}
.play-casting{display:grid;grid-template-columns:repeat(3,1fr);position:relative;z-index:2;background:#f6efdf;border-bottom:2px solid #282425;padding:0 26px;gap:10px}
.play-cast{position:relative;display:flex;align-items:center;justify-content:center;gap:15px;background:transparent;border-bottom:4px solid transparent;min-height:92px;padding:8px 12px 5px;transition:background .2s,border-color .2s;color:#433c36;font:20px Display,Arial,sans-serif;line-height:1.05;letter-spacing:-.015em}
.play-cast[aria-pressed=true]{border-bottom-color:#c64b27;background:#f2e3c4;color:#252323}.play-cast:hover{background:#f2e3c4}
.play-avatar{display:block;width:58px;height:67px;flex-shrink:0;transition:transform .22s;background-repeat:no-repeat;background-size:300% 100%}.play-cast:hover .play-avatar{transform:rotate(-7deg) translateY(-2px)}
.play-stage{position:relative;aspect-ratio:1.85;background:#ce6542 url('assets/play/room.png') center center/cover;overflow:hidden;isolation:isolate}
.play-canvas{display:block;width:100%;height:100%;position:relative;z-index:1;touch-action:pan-y;cursor:grab;outline-offset:-5px!important}.play-canvas:active{cursor:grabbing}
.play-sound{position:absolute;right:24px;top:20px;z-index:3;width:45px;height:45px;border:1px solid #623b3266;border-radius:50%;background:#fff5decc;display:grid;place-items:center;transition:transform .2s}.play-sound:hover{transform:scale(1.08)}.play-sound svg{width:23px;height:23px}.play-sound svg path{stroke-width:1.7}
.play-loading{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;background:#efd8aa;gap:10px;font:22px Display;text-align:center;padding:30px}
.play-loading:before{content:'';width:16px;height:16px;border:2px solid #9b5833;border-right-color:transparent;border-radius:50%;animation:play-load 1s linear infinite}.play-loading.is-error:before{display:none}
.play-toast{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);border-radius:30px;padding:9px 18px;white-space:nowrap;max-width:95%;overflow:hidden;text-overflow:ellipsis;font-size:13px;background:#fff6df;color:#553a2c;box-shadow:0 2px 10px #49261414;opacity:0;transition:opacity .2s;z-index:2;pointer-events:none}.play-toast.is-visible{opacity:1}
.play-console{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 30px;background:#f6efdf;border-top:2px solid #282425;position:relative;z-index:3}
.play-console p{font-size:14px;line-height:1.5}.play-console p strong,.play-console p span{display:block}.play-console p span{color:#756659;font-size:13px}
.play-actions{display:flex;align-items:center;gap:9px}.play-actions button{min-height:48px;display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 19px;background:#292827;color:#fff4de;border-radius:100px;border:1px solid #292827;font-size:14px;font-weight:600;transition:transform .16s,background .16s;box-shadow:0 3px 0 #0e0b0840}.play-actions button:hover{transform:translateY(-2px);background:#47423b}.play-actions button:active{transform:translateY(2px);box-shadow:none}.play-actions button[aria-pressed=true]{background:#d15732;border-color:#853e2a}.play-actions button>span{font-size:24px;line-height:1}.play-actions .play-reset{width:48px;padding:10px;background:transparent;color:#292827;box-shadow:none}.play-reset svg{width:23px;height:23px}.play-reset svg path{stroke-width:1.8}
@keyframes play-load{to{transform:rotate(360deg)}}
@media(max-width:1020px){.play-cast{font-size:17px}.play-console{padding:18px}.play-heading h2{font-size:86px}}
@media(max-width:760px){.family-play{padding:40px 16px 55px}.play-edition{font-size:9px}.play-heading{display:block;margin:34px 6px 24px}.play-heading h2{font-size:clamp(62px,17vw,96px);line-height:.86}.play-heading p{max-width:none;font-size:14px;margin-top:25px;padding:0}.play-machine{border-radius:21px;box-shadow:0 7px 0 #282425}.play-casting{padding:0 6px;gap:0}.play-cast{flex-direction:column;gap:4px;min-height:110px;font-size:13px;padding:8px 2px 10px;justify-content:flex-end}.play-avatar{width:44px;height:52px}.play-cast>span:last-child{height:28px;display:flex;align-items:center;justify-content:center}.play-stage{aspect-ratio:.86;background-position:center}.play-sound{top:12px;right:12px;width:38px;height:38px}.play-console{display:block;padding:17px 12px}.play-console p{text-align:center;font-size:13px;margin-bottom:13px}.play-console p span{display:none}.play-actions{justify-content:center;gap:7px}.play-actions button{min-height:46px;font-size:13px;padding:10px 14px;gap:6px}.play-actions button>span{font-size:20px}.play-toast{font-size:11px;bottom:9px}.play-actions .play-reset{width:46px}.play-canvas{border-radius:0}}
@media(prefers-reduced-motion:reduce){.play-cast,.play-avatar,.play-sound,.play-actions button,.play-toast{transition:none}}

.play-grab-zone{position:absolute;z-index:2;touch-action:none;cursor:grab}.play-grab-zone:active{cursor:grabbing}.family-play-in-view .motion-retry{visibility:hidden}
.play-actions .play-reset:hover{background:#e7d9ba;color:#292827}

.play-cast.is-complete:after{content:'✓';position:absolute;right:8px;top:8px;width:19px;height:19px;border-radius:50%;background:#326e6b;color:#fff6dd;display:grid;place-items:center;font:700 12px Arial}
.play-actions{flex-shrink:0}
.play-actions [data-play-action=bop]{position:relative;background:#c34c2a;border-color:#87381f;min-width:125px;padding-bottom:15px;box-shadow:0 4px 0 #843a24;overflow:visible}
.play-actions [data-play-action=bop]:hover{background:#d65a30}
.play-actions [data-play-action=bop]:active{box-shadow:0 1px 0 #843a24}
.play-actions .play-bop-text{font:700 16px Body,Arial;line-height:1}
.play-fist{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round;transform:rotate(-12deg)}
.play-charge{display:flex!important;gap:3px!important;position:absolute;bottom:5px;left:50%;transform:translateX(-50%)}
.play-charge i{width:9px;height:3px;background:#732e20;border-radius:2px}
.play-charge i.is-filled{background:#ffe79c;box-shadow:0 0 3px #f7d79155}
.play-actions [data-play-action=bop].is-charged{background:#eeac32;color:#422c1c;border-color:#9b5e21;box-shadow:0 4px 0 #9b5e21,0 0 0 3px #ebbb4260}
.play-combo{position:absolute;top:30px;left:50%;transform:translateX(-50%) rotate(-5deg);z-index:3;pointer-events:none;max-width:70%;width:max-content;color:#fff0c5;background:#ad3f23;border:2px solid #502d21;padding:8px 17px 9px;border-radius:6px;box-shadow:3px 4px 0 #59321d33;font:clamp(18px,2.5vw,33px) Display,Arial;line-height:1.05;text-align:center;animation:play-pop .18s ease-out}
.play-combo[data-milestone=true]{background:#f3c146;color:#452d20;border-color:#693d20;transform:translateX(-50%) rotate(4deg)}
@keyframes play-pop{from{scale:.75;opacity:0}to{scale:1;opacity:1}}
@media(max-width:760px){.play-console{display:flex;flex-direction:column;gap:16px;padding:16px 12px 19px}.play-actions{width:100%;gap:8px}.play-actions [data-play-action=bop]{min-width:115px;padding:10px 13px 15px}.play-fist{width:23px;height:23px}.play-actions .play-bop-text{font-size:14px}.play-combo{top:18px;max-width:67%;font-size:23px;padding:7px 12px}}
@media(max-width:360px){.play-actions{gap:6px}.play-actions [data-play-action=bop]{min-width:105px}.play-actions button{padding-left:11px;padding-right:11px}}
@media(prefers-reduced-motion:reduce){.play-combo{animation:none}}

/* Mini Games library: illustrated cartridges, with room for the next release. */
.play-heading{position:relative;align-items:center;margin:44px 0 46px;max-width:1450px;margin-inline:auto}
.play-heading h2{font-size:clamp(75px,10vw,152px);line-height:1;white-space:nowrap}
.play-heading h2 em{font-size:.86em;letter-spacing:-.06em}
.library-controller{width:140px;height:105px;fill:#f6edcf;stroke:#353127;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;transform:rotate(12deg);margin-right:3vw}
.library-controller circle{fill:#cb5231;stroke-width:3}.library-controller path:nth-child(2){stroke:#347778;stroke-width:9}
.games-library{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:clamp(28px,4vw,68px);max-width:1250px;margin:0 auto 18px;align-items:center}
.game-card{min-width:0;border:2px solid #292727;background:#f5efde;border-radius:28px;box-shadow:7px 9px 0 #49332c;--card-tilt:-2deg;transform:rotate(var(--card-tilt));transition:transform .24s,box-shadow .24s}
.game-launch{display:block;width:100%;padding:0;text-align:left;border-radius:26px;background:transparent;color:#292727;overflow:hidden}
.game-launch:focus-visible{outline:4px solid #246c72;outline-offset:7px}
.game-cover{position:relative;display:block;aspect-ratio:1000/620;background:#38a4ac url('assets/play/room.png') center/cover;overflow:hidden;border-radius:25px 25px 0 0;border-bottom:2px solid #292727}
.game-cover-art{display:block;width:100%;height:100%}.game-cover-art,.imp-cover-image{transition:transform .24s}
.game-number{position:absolute;left:18px;top:18px;font:25px Display,Arial;line-height:1;background:#f5eecf;border:2px solid #483326;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;transform:rotate(-10deg)}
.game-cover-play{position:absolute;right:18px;bottom:18px;width:55px;height:55px;padding-left:4px;border-radius:50%;background:#f9ebceee;border:2px solid #56331f;display:grid;place-items:center;font-size:22px;color:#503621;opacity:0;transform:scale(.7);transition:transform .24s,opacity .24s}
.game-card-info{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:26px 30px 30px}
.game-card-name{font:clamp(29px,3.2vw,47px)/.9 Display,Arial;letter-spacing:-.02em}.game-card-name em{font:italic 600 .83em/1.2 Georgia,serif;letter-spacing:-.06em}
.game-card-cta{display:flex;align-items:center;gap:15px;background:#c54b2a;border:1.5px solid #81371f;box-shadow:0 4px 0 #843b24;color:#fff3dc;padding:15px 23px;border-radius:100px;font-weight:700;font-size:17px}
.game-card-cta svg{width:17px;height:20px;fill:currentColor;stroke:none}
.game-coming{position:relative;text-align:center;padding:24px 20px;transform:rotate(5deg);color:#5b4529}
.game-coming-art{position:relative;width:190px;height:180px;margin:0 auto 26px}
.game-coming-tile{position:absolute;left:26px;top:9px;width:138px;height:138px;border:3px solid #584529;border-radius:29px;background:#ecc16c;box-shadow:7px 9px 0 #ba8637;font:100px/.95 Georgia,serif;display:grid;place-items:center;transform:rotate(-14deg);z-index:1}
.game-coming-tile:before{content:'';position:absolute;inset:9px;border:1.5px dashed #8d652f;border-radius:20px}
.game-coming-shadow{position:absolute;bottom:0;left:22px;width:160px;height:15px;border-radius:50%;background:#96632228}
.game-coming p{font:clamp(25px,3vw,39px)/.95 Display,Arial;letter-spacing:-.02em}.game-coming p em{font:italic 600 1.08em/1.2 Georgia,serif;letter-spacing:-.045em}
.game-coming-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.14em;border-block:1px solid #785426;padding:6px 15px;margin-top:20px;transform:rotate(-5deg)}
@media(hover:hover) and (pointer:fine){.game-card:hover{transform:rotate(0) translateY(-5px);box-shadow:5px 14px 0 #49332c}.game-card:hover :is(.game-cover-art,.imp-cover-image){transform:scale(1.025)}.game-card:hover .game-cover-play{opacity:1;transform:scale(1)}}
@media(max-width:760px){.play-heading{display:flex;margin:35px 4px 28px;gap:12px}.play-heading h2{font-size:clamp(50px,12vw,86px)}.library-controller{width:70px;height:55px;flex-shrink:0;margin:0;stroke-width:5}.games-library{gap:33px;grid-template-columns:1fr;padding:0 7px}.game-card{border-radius:22px;box-shadow:4px 6px 0 #49332c;--card-tilt:-1.5deg}.game-launch{border-radius:20px}.game-cover{border-radius:19px 19px 0 0}.game-card-info{padding:21px 19px 23px;gap:10px}.game-card-name{font-size:35px}.game-card-cta{padding:12px 16px;font-size:15px;gap:7px}.game-number{width:34px;height:34px;font-size:19px;left:12px;top:12px}.game-coming{display:grid;grid-template-columns:105px 1fr;grid-template-rows:auto auto;max-width:330px;width:100%;margin:0 auto;padding:0 12px 20px;column-gap:17px;transform:rotate(2deg);text-align:left}.game-coming-art{width:105px;height:110px;grid-row:1/3;margin:0}.game-coming-tile{width:82px;height:82px;border-radius:19px;font-size:60px;left:5px;top:8px;box-shadow:4px 5px 0 #ba8637;border-width:2px}.game-coming-tile:before{inset:6px;border-radius:12px}.game-coming-shadow{width:87px;height:9px;left:4px}.game-coming p{font-size:26px;align-self:end}.game-coming-tag{font-size:9px;justify-self:start;margin-top:10px;padding:4px 9px;align-self:start}}

/* A full-window fallback is always available, with native fullscreen on support. */
body.play-screen-open{overflow:hidden}
.play-storage[hidden]{display:none!important}
.play-screen-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;background:#242522;color:#f4ebd8}
.play-screen-dialog[open]{display:block}.play-screen-dialog::backdrop{background:#242522}
.play-screen{width:100%;height:100%;height:100dvh;box-sizing:border-box;display:grid;grid-template-rows:44px minmax(0,1fr);gap:12px;padding:10px max(16px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:#242522}
.play-screen-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;max-width:1450px;width:100%;margin:auto;color:#e9dfc9;font-size:13px}
.play-screen-close{display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 15px;border:1px solid #6c6b60;border-radius:30px;color:#fff3dc;font-size:13px;font-weight:600;background:#343731}
.play-screen-close svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none}.play-screen-close:hover{background:#4b4d42}.play-screen-name{font:18px Display,Arial;letter-spacing:.05em}.play-screen-toolbar kbd{border:1px solid #6c6b60;border-radius:5px;padding:4px 8px;color:#c9c9b9;font-size:11px}
.play-screen-slot{min-width:0;min-height:0;display:grid;place-items:center}
.play-machine.is-expanded{width:100%;height:100%;max-width:1450px;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;box-shadow:none;margin:0;border-radius:20px;color:#292827}
.is-expanded .play-stage{aspect-ratio:auto;min-height:0;height:100%;max-height:none}
.is-expanded .play-casting{padding:0 12px}.is-expanded .play-cast{min-height:64px;padding:5px 12px;gap:12px;font-size:17px}.is-expanded .play-avatar{width:41px;height:48px}
.is-expanded .play-console{display:flex;justify-content:center;padding:12px 18px;gap:0}.is-expanded .play-actions{justify-content:center}
.play-quote{position:absolute;z-index:3;pointer-events:none;width:max-content;max-width:min(235px,43%);padding:11px 14px;background:#fff5db;border:1.5px solid #49372a;border-radius:16px;box-shadow:2px 3px 0 #49372a25;font-size:clamp(12px,1.35vw,17px);font-weight:600;line-height:1.25;text-align:center;text-wrap:balance}
.play-quote strong{display:block;font-size:9px;letter-spacing:.04em;color:#9c492d;margin-bottom:4px}.play-quote:after{content:'';position:absolute;left:var(--tail-x,50%);bottom:-7px;width:11px;height:11px;background:#fff5db;border-right:1.5px solid #49372a;border-bottom:1.5px solid #49372a;transform:translateX(-50%) rotate(45deg)}
@media(max-width:760px){.play-screen{padding:6px max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left));gap:6px;grid-template-rows:44px minmax(0,1fr)}.play-screen-toolbar{gap:6px}.play-screen-toolbar kbd{display:none}.play-screen-name{font-size:12px;margin-right:8px}.play-screen-close{font-size:12px;padding:8px 12px;gap:5px}.play-machine.is-expanded{border-radius:17px}.is-expanded .play-casting{padding:0 3px}.is-expanded .play-cast{padding:6px 1px 8px;min-height:85px;gap:2px;font-size:11px}.is-expanded .play-avatar{width:33px;height:38px}.is-expanded .play-cast>span:last-child{height:24px}.is-expanded .play-console{padding:11px 7px 14px}.play-quote{max-width:43%;padding:9px 10px;font-size:12px}.play-quote strong{font-size:8px}.play-combo{top:12px;left:12px;max-width:52%;transform:rotate(-4deg);font-size:20px}.play-combo[data-milestone=true]{transform:rotate(3deg)}}
@media(max-height:530px){.play-screen{grid-template-rows:40px minmax(0,1fr);padding-top:2px;padding-bottom:4px;gap:3px}.play-screen-toolbar,.play-screen-close{min-height:40px}.is-expanded .play-cast{flex-direction:row;min-height:46px;padding:2px 8px;font-size:12px;gap:9px}.is-expanded .play-avatar{width:30px;height:35px}.is-expanded .play-console{padding:5px 12px}.is-expanded .play-actions button{min-height:44px;padding-top:8px;padding-bottom:8px}.is-expanded .play-actions [data-play-action=bop]{padding-bottom:13px}.play-quote{font-size:11px;padding:6px 10px;max-width:190px}.play-quote strong{font-size:8px}.play-sound{top:7px;right:9px;width:40px;height:40px}.play-combo{top:9px;left:13px;transform:rotate(-3deg);font-size:20px}.play-combo[data-milestone=true]{transform:rotate(3deg)}}
@media(prefers-reduced-motion:reduce){.game-card,.game-cover-art,.imp-cover-image,.game-cover-play{transition:none}.game-card:hover{transform:rotate(var(--card-tilt))}.game-card:hover :is(.game-cover-art,.imp-cover-image){transform:none}}
.play-screen-expand{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;background:transparent;color:#e9dfc9;border:1px solid #6c6b60;border-radius:30px;font-size:12px}.play-screen-expand svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.play-screen-expand:hover{background:#4b4d42}.play-screen-expand[hidden]{display:none}
@media(max-width:760px){.play-screen-expand{width:44px;padding:10px}.play-screen-expand span{display:none}.play-screen-name{font-size:11px;max-width:80px;text-align:center}.play-sound{width:44px;height:44px}}
@media(max-height:530px){.play-screen-expand{min-height:40px}}
.play-quote[data-tail=left]:after{left:-6px;top:50%;bottom:auto;transform:translateY(-50%) rotate(135deg)}.play-quote[data-tail=right]:after{left:auto;right:-6px;top:50%;bottom:auto;transform:translateY(-50%) rotate(-45deg)}
.play-screen-close{white-space:nowrap}.play-screen-expand{flex-shrink:0}
@media(max-width:360px){.play-screen-name{display:none}}
@media(min-width:761px){.games-library:has(.game-card + .game-card){grid-template-columns:repeat(2,minmax(0,1fr))}.games-library:has(.game-card:nth-of-type(3)){grid-template-columns:repeat(3,minmax(0,1fr))}}
.game-launch:disabled{cursor:progress}.game-load-error{font-size:13px;padding:0 25px 22px;color:#9b351b}
/* Printed gaming doodles belong to the yellow wall, below every card and title. */
.family-play:before{content:'';position:absolute;inset:0 0 45px;z-index:0;pointer-events:none;background:url('assets/gaming-pattern.svg') 18px 15px/600px 470px repeat;opacity:.19}
.family-play>.play-heading{z-index:1}
@media(max-width:760px){.family-play:before{background-size:440px 345px;opacity:.16}}

/* Short landscape screens get side controls, leaving the whole height to play. */
@media (orientation:landscape) and (max-height:530px){
 #game-screen-family .play-screen{grid-template-rows:44px minmax(0,1fr);gap:4px;padding: max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
 #game-screen-family .play-screen-toolbar{height:44px}
 #game-screen-family .play-screen-close,#game-screen-family .play-screen-expand{min-height:44px}
 #game-screen-family .play-screen-name{font-size:14px;max-width:none}
 #game-screen-family .play-screen-expand{width:44px;padding:10px}
 #game-screen-family .play-screen-expand span{display:none}
 #game-screen-family .play-machine{grid-template-rows:minmax(0,1fr);grid-template-columns:76px minmax(0,1fr) 104px;border-radius:15px}
 #game-screen-family .play-casting{grid-column:1;grid-row:1;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:6px 4px;border:0;border-right:2px solid #282425}
 #game-screen-family .play-cast{flex:1;min-height:44px;max-height:92px;min-width:0;width:100%;flex-direction:column;justify-content:center;gap:3px;padding:3px 1px;border-bottom:0;border-left:3px solid transparent;border-radius:8px;font-size:10px}
 #game-screen-family .play-cast[aria-pressed=true]{border-left-color:#c64b27}
 #game-screen-family .play-avatar{width:31px;height:35px}
 #game-screen-family .play-cast>span:last-child{height:auto;min-height:20px;display:flex;align-items:center;text-align:center}
 #game-screen-family .play-stage{grid-column:2;grid-row:1;min-width:0}
 #game-screen-family .play-sound{width:44px;height:44px;right:7px;top:7px}
 #game-screen-family .play-console{grid-column:3;grid-row:1;padding:8px 6px;border-top:0;border-left:2px solid #282425}
 #game-screen-family .play-actions{width:100%;flex-direction:column;gap:12px}
 #game-screen-family .play-actions button{width:100%;min-width:0;min-height:50px;padding:9px 3px;font-size:11px;gap:5px}
 #game-screen-family .play-actions [data-play-action=bop]{flex-direction:column;gap:4px;padding:7px 3px 15px;min-height:68px}
 #game-screen-family .play-actions .play-bop-text{font-size:14px}
 #game-screen-family .play-actions .play-reset{width:46px;height:46px;min-height:46px}
 #game-screen-family .play-combo{max-width:55%;font-size:18px}
 #game-screen-family .play-toast{font-size:10px;padding:7px 9px;bottom:7px}
}
/* A rejected native request leaves the game intact; no nested dialog or forced resize. */
.play-screen-notice{position:absolute;z-index:8;top:64px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);display:flex;align-items:center;gap:12px;border:1px solid #a7987c;border-radius:12px;padding:5px 8px 5px 15px;background:#f6efdf;color:#292827;box-shadow:0 4px 16px #0003;font:13px Body,Arial;line-height:1.35}
.play-screen-notice button{flex-shrink:0;width:44px;height:44px;border:0;border-radius:50%;background:transparent;font:24px Arial;color:inherit}
/* Keep the regular site clear of a notch; fixed game dialogs handle their own insets. */
@supports(padding:max(0px)){
 body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
 .play-screen{padding-top:max(6px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}
}
@media (orientation:landscape) and (max-height:530px){
 #game-screen-family .play-screen-toolbar{display:grid;grid-template-columns:1fr auto 1fr}
 #game-screen-family .play-screen-close{justify-self:start}
 #game-screen-family .play-screen-expand{justify-self:end}
 #game-screen-family .play-screen-name{margin:0}
}
@supports(padding:max(0px)){
 body{padding-bottom:env(safe-area-inset-bottom)}
 .header{padding-top:env(safe-area-inset-top);height:calc(var(--header) + env(safe-area-inset-top))}
 html{scroll-padding-top:calc(var(--header) + env(safe-area-inset-top))}
 .mobile-nav{top:calc(var(--header) + env(safe-area-inset-top));padding-left:max(var(--gutter),env(safe-area-inset-left));padding-right:max(var(--gutter),env(safe-area-inset-right));padding-bottom:max(30px,env(safe-area-inset-bottom))}
 .music-panel{right:max(25px,env(safe-area-inset-right));bottom:max(25px,env(safe-area-inset-bottom))}
}
