/* Page presentation only. Game documents continue to own gameplay and saves. */
@font-face{font-family:'Game poster Gothic';src:url('/assets/range/fonts/UnifrakturCook-Bold.ttf') format('truetype');font-weight:700;font-display:swap}
.page-game{background:#07101f;color:#edf3f8}
.page-game .greg-ai-helper,.page-game chat-bubble-snippet{display:none!important}
.page-game main{padding:28px 0 20px}
.game-shell{width:min(calc(100% - 48px),1280px);margin:0 auto}
.game-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.game-card{min-width:0}
.game-card__description{margin:13px 3px 0;color:#c1d3e3;font-size:14px;line-height:1.65}
.game-choice.game-choice--mothership{background:linear-gradient(180deg,#35bfff42,#35bfff26 50%,#35bfff42)}
.game-choice{position:relative;isolation:isolate;display:block;box-sizing:border-box;width:100%;min-width:0;aspect-ratio:16/11;overflow:hidden;padding:0;border:1px solid #9fbed342;border-radius:18px;background:#0b1827;color:#fff;text-align:left;cursor:pointer;box-shadow:0 16px 42px #0004;transition:transform .2s,border-color .2s,box-shadow .2s}
.game-choice__art{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center top}
.game-choice--mothership .game-choice__art{object-position:center}
.game-choice__title{position:absolute;z-index:4;top:18px;left:12px;right:12px;text-align:center;font-size:clamp(20px,2.8vw,36px);font-weight:700;line-height:1.15;letter-spacing:-.025em;color:#fff8e9;text-shadow:0 2px 5px #000,0 0 22px #000,0 0 30px #ffbf5b70}
.game-choice__play{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);display:block;padding:0;border:0;background:none;color:#f3ffff;font:850 clamp(38px,6.2vw,88px)/1 system-ui,sans-serif;letter-spacing:.045em;text-align:center;text-shadow:0 2px 5px #000,0 0 5px #fff,0 0 16px #86f0ff,0 0 36px #35bfff,0 0 64px #35bfffb3;transition:filter .2s}
.game-choice--manor{background:radial-gradient(ellipse at 84% 56%,#718e292e,transparent 58%),radial-gradient(ellipse at 12% 80%,#be541f3b,transparent 60%),linear-gradient(135deg,#161925,#231521 70%,#17251e);border-color:#ca9e5b66}
.game-choice--manor .game-choice__art{inset:2% 1% auto auto;width:62%;height:91%;object-position:center bottom;z-index:2;filter:drop-shadow(0 12px 18px #0005)}
.game-choice__manor-title{position:absolute;top:6%;left:5%;z-index:3;font:700 clamp(42px,5.4vw,78px)/.9 'Game poster Gothic',Georgia,serif;color:#f0d8b6;text-shadow:0 2px 18px #0008}
.game-choice__manor-title>span{display:block}
.game-choice--manor .game-choice__play{color:#fff5d9;text-shadow:0 2px 5px #160801,0 0 5px #fff0d0,0 0 16px #ffb64b,0 0 36px #ff731e,0 0 64px #ff7b25c7}
.game-choice:hover{transform:translateY(-3px);border-color:#d2eaffb3;box-shadow:0 20px 52px #0006,0 0 28px #80ccff12}
.game-choice--manor:hover{border-color:#f2ca8e;box-shadow:0 20px 52px #0006,0 0 28px #d7953a18}
.game-choice:focus-visible{outline:3px solid #bce6ff;outline-offset:5px}
.game-choice:disabled{cursor:wait}
.gregtales-game-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:42px 0 26px}
.gregtales-game-panel .game-card__description{max-width:380px;text-align:center}
.game-choice--gregtales{width:min(100%,380px);aspect-ratio:4/3;border-color:#8d95f275;background:#080b27}
.game-choice--gregtales .game-choice__art{object-position:center;object-fit:contain}
.game-choice--gregtales .game-choice__play{font-size:clamp(42px,5vw,64px);color:#fff4ff;text-shadow:0 2px 5px #130322,0 0 5px #fff,0 0 16px #d397ff,0 0 36px #ae41ff,0 0 58px #6543ff}

/* A modal player moves the rest of the page out of the interaction flow. */
#game-stage{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#07101f;color:#edf4fb;overflow:hidden}
#game-stage[open]{display:grid;grid-template-rows:52px minmax(0,1fr)}
#game-stage[hidden],#game-stage iframe[hidden]{display:none!important}
#game-stage::backdrop{background:#020710}
.game-stage__toolbar{grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;padding:4px max(14px,env(safe-area-inset-right)) 4px max(14px,env(safe-area-inset-left));border-bottom:1px solid #789ab138;background:#0b1727}
.game-stage__toolbar h2{margin:0;font:500 14px/1.2 system-ui,sans-serif;color:#b8cbd9}
.game-stage__toolbar button{display:inline-flex;align-items:center;gap:10px;min-height:42px;padding:8px 12px;border:1px solid #a8ccdf6b;border-radius:24px;background:#162a3d;color:#edf6ff;font:600 13px/1.3 system-ui,sans-serif;cursor:pointer}
.game-stage__toolbar button:hover{background:#24415a}
.game-stage__toolbar button:focus-visible{outline:3px solid #bce6ff;outline-offset:2px}
.game-stage__toolbar button:disabled{opacity:.6;cursor:wait}
#game-stage .game-window{grid-row:2;display:block;width:100%;height:100%;min-height:0;border:0;border-radius:0;background:#08121c;color-scheme:dark}
[data-game-switch-status]{position:absolute;z-index:2;bottom:20px;left:50%;transform:translateX(-50%);box-sizing:border-box;max-width:calc(100% - 32px);width:max-content;margin:0;padding:12px 18px;border:1px solid #d8c38955;border-radius:10px;background:#0a172af2;color:#f2deae;font-size:13px;line-height:1.5;text-align:center}
[data-game-switch-status]:empty{display:none}
html.game-player-open{overflow:hidden;overscroll-behavior:none}
.game-player-open body{position:fixed;top:var(--game-scroll-top,0);left:0;right:0;width:100%;overscroll-behavior:none}

.game-support{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin-top:24px}
.game-support .game-support-direct{border-color:#95bddd65;background:linear-gradient(120deg,#24384c,#172539)}
.game-support .game-support-direct:hover{border-color:#b0d8f2;background:linear-gradient(120deg,#2b4660,#1b3149)}
.game-support .game-support-direct .game-fundraiser-button__provider,.game-support-direct .game-fundraiser-button__icon{color:#b7def0}
.game-support .game-fundraiser-button{flex:0 1 auto;width:fit-content;max-width:100%;margin:0;padding:11px 15px;gap:10px;justify-content:center}
.game-support .game-fundraiser-button__copy{flex:0 1 auto;gap:2px;text-align:left}
.game-support .game-fundraiser-button__icon{width:34px;height:34px;font-size:24px}
.game-support .game-fundraiser-button__icon svg{width:21px;height:21px}
.game-support .game-fundraiser-button strong{font-size:15px}
.game-support .game-fundraiser-button__provider{font-size:10px}
.game-support .game-fundraiser-button__note{font-size:11px}
.game-guidance{display:flex;align-items:center;gap:15px;margin:24px 0 0;padding:12px 16px;border:1px solid #b7cdd333;border-radius:9px;background:linear-gradient(110deg,#25344080,#101c2b90)}
.game-guidance__age{flex:none;display:grid;place-items:center;width:49px;height:49px;border:1px solid #e2c68190;border-radius:8px;color:#f4dfaa;font-weight:750;font-size:21px}
.game-guidance p{font-size:12px;color:#c5d3df;margin:0}
.game-guidance strong{font-size:12px;color:#e7eff5;margin-right:8px}
.game-guidance small{display:block;color:#a9bccd;font-size:10px;margin-top:3px}
.page-game .footer{margin-top:32px}
@media(max-width:700px){
 .page-game main{padding-top:16px}.game-shell{width:calc(100% - 28px)}.game-choices{gap:10px}.game-choice{aspect-ratio:1/1.04;border-radius:12px}.game-choice__caption{align-items:flex-end;gap:5px;padding:24px 10px 12px}.game-choice__title{font-size:clamp(14px,3.6vw,21px);max-width:75%}.game-choice__caption .game-choice__play{min-height:28px;padding:0 7px;gap:0;font-size:0}.game-choice__caption .game-choice__play>span{font-size:19px}.game-choice__manor-title{top:10%;font-size:clamp(31px,8.9vw,61px)}.game-choice--manor .game-choice__art{width:76%;height:85%;top:6%;right:-3%}.game-choice--gregtales{aspect-ratio:4/3;width:min(100%,360px)}.gregtales-game-panel{margin-top:30px}.game-support{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:18px}.game-fundraiser-button{gap:12px;padding:16px}.game-fundraiser-button__icon{width:40px;height:40px}.game-fundraiser-button strong{font-size:15px}.game-guidance{align-items:flex-start;gap:11px;padding:11px}.game-guidance__age{width:43px;height:45px;font-size:19px}.game-guidance p{font-size:10px;line-height:1.55}.game-guidance strong{display:block;font-size:11px;margin-bottom:2px}.game-guidance small{font-size:9px;line-height:1.5}.game-stage__toolbar{gap:8px}.game-stage__toolbar h2{font-size:12px}.game-stage__toolbar button{font-size:12px;padding-inline:10px}.page-game .footer{margin-top:16px}
}
@media(prefers-reduced-motion:reduce){.game-choice,.game-fundraiser-button{transition:none}.game-choice:hover{transform:none}}
@media(max-width:700px){.game-choice__title{top:10px;left:6px;right:6px;max-width:none;font-size:clamp(14px,3.8vw,23px)}.game-choice__manor-title{top:9px;left:5px;right:5px;text-align:center;font-size:clamp(19px,5.5vw,34px);line-height:1.05}.game-choice__manor-title>span{display:inline}.game-choice__manor-title>span+span::before{content:' '}.game-choice__play{font-size:clamp(30px,8.3vw,52px)}.game-choice--gregtales .game-choice__play{font-size:clamp(42px,13vw,58px)}}
@media(forced-colors:active){.game-choice__caption,.game-stage__toolbar,.game-choice__play{background:Canvas;color:CanvasText}.game-choice{border:2px solid ButtonText}.game-choice__title{color:CanvasText}}

/* Fundraiser sits beneath play, outside the fullscreen game session. */
.game-fundraiser-button{display:flex;align-items:center;gap:16px;width:min(100%,540px);box-sizing:border-box;margin:20px auto 0;padding:18px 22px;border:1px solid #79c8a06b;border-radius:14px;background:linear-gradient(120deg,#183c35,#122d2b 60%,#102329);color:#effcf5;text-decoration:none;box-shadow:0 8px 24px #0003,inset 0 1px #d3ffe812;transition:border-color .18s,box-shadow .18s,background .18s}.game-fundraiser-button:visited{color:#effcf5}.game-fundraiser-button:hover{color:#fff;border-color:#9ce5b9;background:linear-gradient(120deg,#204e42,#163a32 60%,#122c30);box-shadow:0 10px 28px #0004,0 0 22px #6acd9a10;text-decoration:none}.game-fundraiser-button:focus-visible{outline:3px solid #b1f2c8;outline-offset:4px}.game-fundraiser-button__icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border:1px solid #8ae0ab38;border-radius:50%;background:#79d39c12;color:#a1edbc}.game-fundraiser-button__copy{display:grid;gap:4px;min-width:0}.game-fundraiser-button__provider{color:#a1edbc;font-size:11px;font-weight:700;letter-spacing:.08em}.game-fundraiser-button strong{font-size:17px;font-weight:650;line-height:1.35}.game-fundraiser-button__note{color:#bdcfc7;font-size:12px}.game-fundraiser-button__arrow{margin-left:auto;color:#a1edbc;font-size:25px}.game-fundraiser-button svg{display:block}@media(max-width:480px){.game-fundraiser-button{gap:12px;padding:16px;margin-top:16px}.game-fundraiser-button__icon{width:40px;height:40px}.game-fundraiser-button strong{font-size:15px}}@media(prefers-reduced-motion:reduce){.game-fundraiser-button{transition:none}}
