/* v64: corrections within the established GTA visual language. */
body.game-theme .avatar64{aspect-ratio:1/2!important;filter:none!important;isolation:isolate;--avatar-crown-offset:0%}
body.game-theme .avatar64>.avatar-composite{display:block!important;width:100%!important;height:100%!important;aspect-ratio:1/2!important;position:relative!important;overflow:visible!important}
body.game-theme .avatar64 .avatar-art{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;pointer-events:none}
body.game-theme .avatar64 .avatar-art image{pointer-events:none}
body.game-theme .creation-preview .avatar64{transform:none!important;top:0!important;translate:none!important}
body.game-theme .creator-scroll{overflow-anchor:none;scroll-behavior:auto!important;overscroll-behavior:contain}
/* Visible feet share one baseline; cast frames never clip a leg. */
body.game-theme .uniform-figures>.duo-player,body.game-theme .uniform-figures>.duo-guest{overflow:visible!important}
body.game-theme .uniform-figures>.duo-player:after,body.game-theme .uniform-figures>.duo-guest:not(.group-guest):after{content:"";position:absolute;left:22%;right:22%;bottom:-1px;height:5px;background:#17201644;clip-path:ellipse(50% 48% at 50% 50%);z-index:-1}
body.game-theme .duo-guest img[src*="ilya-v64"],body.game-theme .shop-product img[src*="bakery-cookies-v64"]{filter:url(#cutout-clean64)!important}
body.game-theme .novel-dialogue .speech,body.game-theme .campus-talk .speech,body.game-theme .novel-dialogue #typed-dialogue{margin-bottom:18px!important}
body.game-theme .novel-actions,body.game-theme .campus-talk .actions{gap:12px!important;margin-top:18px!important}
body.game-theme .dialogue-navigation{margin:14px 0!important;padding:0!important}
body.game-theme .dialogue-navigation[hidden],body.game-theme .summer-nav button[hidden]{display:none!important}
body.game-theme .thought-scene .novel-dialogue:before{display:none!important}
body.game-theme .narrative-scene .novel-dialogue,body.game-theme .note-scene .novel-dialogue{max-width:680px!important}
body.game-theme [data-summer="pass-choice"]{background:#100e16!important;border:2px solid #edc478!important;color:#fff0df!important;opacity:1!important;flex:1}
body.game-theme .dropped-pass{position:fixed!important;left:54%!important;top:62%!important;width:88px!important;height:56px!important;min-width:0!important;min-height:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;transform:rotate(-13deg) skewX(-8deg)!important;overflow:visible!important}
body.game-theme .dropped-pass img{display:block;width:100%!important;height:100%!important;object-fit:contain!important;filter:drop-shadow(2px 3px 1px #29251e88)!important;pointer-events:none}
body.game-theme .dropped-pass span{position:absolute;left:50%;top:calc(100% + 18px);transform:translateX(-50%) rotate(13deg);font:12px Arial,sans-serif;white-space:nowrap;padding:8px 10px;color:#fff0df;background:#211b29e8;border:1px solid #a991a6}
body.game-theme .pass-scene-back{position:fixed;left:var(--play-left);bottom:24px}
/* A separate seated character in the admissions office. */
body.game-theme .admission63{--summer-art:url(assets/admission-empty-v64.webp)!important}
body.game-theme .admission-player{display:none!important}
body.game-theme .admission-npc64{position:fixed;left:calc(var(--play-left) + (100vw - var(--play-left) - var(--play-right)) * .64);bottom:23vh;width:calc((100vw - var(--play-left) - var(--play-right)) * .31);height:44vh;z-index:4;pointer-events:none}
body.game-theme .admission-npc64 img{width:100%;height:100%;object-fit:contain;object-position:bottom}
body.game-theme .admission-conversation .admission-dialogue{left:var(--play-left)!important;right:auto!important;bottom:var(--play-bottom)!important;width:calc((100vw - var(--play-left) - var(--play-right)) * .62)!important;max-width:690px!important;z-index:15}
body.game-theme .helper63 .as-face,body.game-theme .helper63 .chat-bubble>img{display:none!important}
body.game-theme .helper63 .chat-bubble{display:block!important;gap:0!important}
body.game-theme .helper63 .helper-panel{height:auto!important;min-height:0!important}
body.game-theme .helper63 .helper-panel:not(.helper-locked){max-width:980px!important}
body.game-theme .helper63 .helper-locked .helper-questions{border:0;padding:0;margin:0;display:block;max-height:none}
/* Meal cards, prices and recovery always have an exit. */
body.game-theme .meal-menu-card,body.game-theme .run-look-card{position:fixed;left:var(--play-left);right:var(--play-right);bottom:var(--play-bottom);max-width:1000px;margin:0 auto;max-height:calc(100svh - var(--play-top) - var(--play-bottom));overflow:auto;box-sizing:border-box}
.meal-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.meal-options article{min-width:0;border:1px solid #756676;padding:14px;display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center;background:#17131f}
.meal-options img{width:100%;height:120px;object-fit:contain}
body.game-theme .meal-options h2{font-size:20px!important;margin:0!important}
body.game-theme .meal-options p{font-size:13px!important;line-height:1.35!important;margin:0!important}
.meal-options article>b{font:700 13px Arial;color:#edc478}
body.game-theme .meal-options button{margin-top:auto;width:100%;min-height:44px;font-size:12px!important}
body.game-theme .meal-receipt{margin-top:14px!important}
.meal-availability64{font:13px/1.35 Arial!important;color:#dbcfdf!important;margin-top:12px!important}
body.game-theme .scene-dish .dish-price{background:#211b29f5!important;color:#fff0df!important;border:1px solid #a991a6!important;top:100%!important;bottom:auto!important;max-width:140px!important;padding:4px 6px!important;gap:2px!important;z-index:10}
body.game-theme .scene-dish .dish-price b{display:block!important;font:700 11px/1.15 Arial!important;color:#fff0df!important;white-space:normal}
body.game-theme .scene-dish .dish-price small{display:block!important;font:11px/1.2 Arial!important;color:#edc478!important;white-space:nowrap}
body.game-theme .scene-dish .dish-price .gem-icon{width:12px;height:12px}
body.game-theme .scene-dish .dish-price svg{display:inline-block;vertical-align:middle}
body.game-theme .scene-play-controls{max-width:calc(100vw - var(--play-left) - var(--play-right));gap:10px!important}
body.game-theme .workstation-target{max-width:24%;font-size:13px!important}
body.game-theme .festival-pass small{font-size:12px!important;line-height:1.2}
/* Running outfit never overwrites the saved summer appearance. */
.run-look-preview{position:fixed;left:var(--play-left);width:calc((100vw - var(--play-left) - var(--play-right)) * .35);top:var(--play-top);bottom:var(--play-bottom);display:flex;align-items:flex-end;justify-content:center;pointer-events:none;z-index:4}
body.game-theme .run-look-preview>.avatar64{height:min(100%,650px)!important;width:auto!important;aspect-ratio:1/2!important;position:relative!important;inset:auto!important;transform:none!important}
body.game-theme .run-look-card{left:calc(var(--play-left) + (100vw - var(--play-left) - var(--play-right)) * .38);max-width:650px}
.run-outfits{display:grid;gap:12px}.run-outfits button{text-align:left}
/* Picture fragments retain their background in every hover/focus/active state. */
body.game-theme .pool-puzzle-panel .pool-puzzle-piece,body.game-theme .pool-puzzle-panel .pool-puzzle-piece:hover,body.game-theme .pool-puzzle-panel .pool-puzzle-piece:focus-visible,body.game-theme .pool-puzzle-panel .pool-puzzle-piece:active,body.game-theme .pool-puzzle-panel .pool-puzzle-slot.placed,body.game-theme .pool-puzzle-ghost{background-image:url(assets/pool-empty-v53.webp)!important;background-size:400% 300%!important;background-position:var(--tile-x) var(--tile-y)!important;background-repeat:no-repeat!important;opacity:1!important;visibility:visible;filter:none!important;transform:none!important}
body.game-theme .pool-puzzle-panel .pool-puzzle-piece:disabled{visibility:hidden!important}
body.game-theme .pool-puzzle-panel .pool-puzzle-piece.selected{outline:3px solid #edc478!important;outline-offset:3px}
body.game-theme .show-reference64 .pool-puzzle-slot:not(.placed){background-image:linear-gradient(#211b29a8,#211b29a8),url(assets/pool-empty-v53.webp)!important;background-size:100% 100%,400% 300%!important;background-position:center,var(--tile-x) var(--tile-y)!important}
body.game-theme .puzzle-reference64{align-self:flex-start;min-height:34px!important;font:12px Arial!important;padding:8px 11px!important}
/* Projection is anchored to the actual cinema screen, never to the dialogue card. */
.cinema-atmosphere64{position:fixed;inset:0;z-index:2;background:#02030c5c;pointer-events:none}
body.game-theme .cinema-film64{position:fixed;z-index:3;pointer-events:none;overflow:hidden;background:#141822;border:0!important;box-shadow:none!important}
.cinema-film64 img{width:100%;height:100%;object-fit:cover;filter:brightness(.9) saturate(.8)}
.cinema-film64.genre-horror img{filter:brightness(.48) saturate(.5)}
.cinema-film64 small{position:absolute;bottom:6px;left:10px;right:10px;text-align:center;color:#e7e0dd;font:11px Arial,sans-serif;text-shadow:0 1px 2px #000}
/* A face-to-face selfie is a crop, not another screenshot of the full figures. */
.selfie-shot64{position:relative;aspect-ratio:4/3!important;background:#211b29!important;overflow:hidden!important;min-height:0!important;height:auto!important;width:100%;display:block}
.selfie-shot64 canvas{display:block;width:100%;height:100%;object-fit:contain}
.photo-loading64{position:absolute;inset:0;display:grid;place-items:center;font:14px Arial;color:#e4d8e2}
.selfie-preview64{position:fixed;inset:0;z-index:1000;background:#100d18d9;display:grid;place-items:center;padding:20px;box-sizing:border-box}
.selfie-preview64>.compact-card{width:min(600px,100%);max-height:calc(100svh - 40px);overflow:auto;text-align:center}
.selfie-preview64 .selfie-shot64{max-height:60svh;aspect-ratio:4/3;width:auto;margin:0 auto 16px}
/* Code help follows the entered text and sits in its own readable block. */
body.game-theme .python-hint64{padding:16px;margin:16px 0;background:#211b29;border:1px solid #a991a6;position:static;clear:both;text-align:left;overflow-wrap:anywhere}
body.game-theme .python-hint64[hidden]{display:none}
body.game-theme .python-hint64 h3{font-size:20px!important;margin:0 0 12px!important;color:#edc478}
body.game-theme .python-hint64 ol{padding-left:20px;display:grid;gap:12px;margin:0 0 14px}
body.game-theme .python-hint64 li{font:13px/1.4 Arial!important;padding-left:3px}
body.game-theme .python-hint64 code{display:block;font:13px/1.5 monospace!important;margin-top:5px;white-space:pre-wrap;color:#f8e9d6;background:#100e16;padding:6px}
body.game-theme .python-hint64 p{font:13px/1.45 Arial!important;margin:0!important;color:#e5d9de!important}
body.game-theme .python-hint64 .hint-done b{color:#a9c7ac}
body.game-theme .python-hint64 .code-hint-warning{margin-bottom:14px!important;color:#edc478!important}
body.game-theme .python-hint64 .code-hint-warning code{display:inline;padding:2px 4px}
@media(max-width:760px) and (min-height:551px){
 body.game-theme .uniform-figures>.duo-player,body.game-theme .uniform-figures>.duo-guest{overflow:visible!important}
 body.game-theme .admission63{--summer-art:url(assets/admission-empty-mobile-v64.webp)!important}
 body.game-theme .admission-npc64{left:45%;right:3%;width:auto;top:var(--play-top);bottom:var(--admission-dialogue-bottom,350px);height:auto;min-height:100px}
 body.game-theme .admission-conversation .admission-dialogue{left:12px!important;right:12px!important;width:auto!important;max-width:none!important;bottom:var(--play-bottom)!important;padding:14px!important}
 body.game-theme .meal-menu-card{padding:12px!important}.meal-options{gap:7px}.meal-options article{padding:7px;gap:7px}.meal-options img{height:70px}body.game-theme .meal-options h2{font-size:15px!important}body.game-theme .meal-options p{display:none}body.game-theme .meal-options button{font-size:10px!important;padding:7px 4px!important;min-height:44px!important}.meal-options article>b{font-size:11px}
 body.game-theme .run-look-preview{left:25%;width:50%;bottom:calc(var(--play-bottom) + 230px)}
 body.game-theme .run-look-card{left:12px;right:12px;padding:12px!important}.run-outfits{gap:7px}.run-outfits button{font-size:11px!important;padding:8px!important;min-height:36px!important}body.game-theme .run-look-card p{display:none}body.game-theme .run-look-card h1{font-size:23px!important;margin:5px 0 12px!important}
 body.game-theme .scene-dish .dish-price{max-width:105px!important;padding:3px!important}body.game-theme .scene-dish .dish-price b{font-size:10px!important}body.game-theme .scene-dish .dish-price small{font-size:10px!important}
 body.game-theme .helper63 .helper-panel:not(.helper-locked){max-width:none!important}
 .selfie-preview64{padding:12px}.selfie-preview64>.compact-card{padding:12px;max-height:calc(100svh - 24px)}
 body.game-theme .puzzle-reference64{min-height:30px!important;font-size:11px!important}
}
@media(max-height:550px){
 body.game-theme .meal-menu-card{padding:12px!important}.meal-options img{height:65px}.meal-options p{display:none}body.game-theme .meal-options h2{font-size:17px!important}body.game-theme .meal-options article{padding:9px}
 body.game-theme .run-look-card{padding:14px!important}.run-look-card>p{display:none}.run-outfits{gap:7px}
 body.game-theme .admission-npc64{bottom:15%;height:55vh;width:24%;left:73%}
 .selfie-preview64 .selfie-shot64{max-height:50svh}
}
body.game-theme .immersive-world.is-quest .room-backfill{display:none!important}
body.game-theme .immersive-world.is-quest{background:#29252b!important}
body.game-theme .immersive-world.is-quest .campus-backdrop img{object-fit:fill!important}
body.game-theme .immersive-challenge .play-status{top:var(--play-top)!important;max-height:230px;overflow:auto}
body.game-theme .immersive-challenge .scene-play-controls{left:calc(var(--play-left) + (100vw - var(--play-left) - var(--play-right)) / 2)!important;bottom:var(--play-bottom)!important}
@media(max-width:760px) and (min-height:551px){body.game-theme .immersive-challenge .play-status{padding:10px!important;top:var(--play-top)!important;left:var(--play-left)!important;right:var(--play-right)!important;max-width:none!important;width:auto!important;max-height:130px;overflow:auto}body.game-theme .immersive-challenge .play-status h2{font-size:18px!important}body.game-theme .immersive-challenge .play-status p{font-size:11px!important}body.game-theme .immersive-challenge .scene-play-controls{gap:7px!important;bottom:var(--play-bottom)!important}body.game-theme .immersive-challenge .scene-play-controls button{min-height:42px!important;padding:8px!important;font-size:11px!important}}
@media(max-width:760px) and (min-height:551px){
 body.game-theme.summer-mode .expanded-creator .creation-preview{align-items:flex-end!important}
 body.game-theme .native-viewport64{position:fixed;left:var(--play-left);right:var(--play-right);z-index:3;overflow:auto;scrollbar-width:none;touch-action:pan-x pan-y;background:#29252b}
 .native-viewport64::-webkit-scrollbar{display:none}
 body.game-theme .immersive-challenge .scene-play-controls{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;left:12px!important;right:12px!important;width:auto!important;max-width:none!important;translate:none!important;transform:none!important;gap:7px!important;justify-content:center!important}
 body.game-theme .immersive-challenge .scene-play-controls button{white-space:normal!important;line-height:1.1!important;min-width:0!important;flex:0 1 auto!important;min-height:42px!important;padding:8px 10px!important}
 body.game-theme .immersive-challenge .play-status{position:fixed!important;top:var(--play-top)!important;padding:10px!important;max-height:110px!important;overflow:auto!important}
 body.game-theme .immersive-challenge .play-status>span{display:none!important}.play-status h2{margin:0 0 7px!important}
 body.game-theme .immersive-challenge .play-score{margin:0!important;gap:3px 6px!important}body.game-theme .immersive-challenge .play-score b{font-size:17px!important}
 body.game-theme .native-viewport64 .scene-dish .dish-price{max-width:76px!important;min-width:64px;box-sizing:border-box;padding:3px!important}
 body.game-theme .native-viewport64 .scene-dish .dish-price b,body.game-theme .native-viewport64 .scene-dish .dish-price small{font-size:9px!important;line-height:1.1!important}.native-viewport64 .dish-price .gem-icon{height:9px!important;width:9px!important}
 body.game-theme .native-viewport64 .festival-pass{width:22%!important;min-height:58px!important;padding:6px!important;transform:translate(-50%,-50%)!important}
 body.game-theme .native-viewport64 .festival-pass b{font-size:15px!important}body.game-theme .native-viewport64 .festival-pass small{font-size:10px!important;white-space:normal!important}
 body.game-theme .native-viewport64 .workstation-target{width:25%!important;max-width:25%!important;font-size:10px!important;padding:6px!important}
 body.game-theme .native-viewport64 .workstation-target b{font-size:11px!important;white-space:normal!important;line-height:1.2!important}
}
body.game-theme .dish-price .gem-amount{font:inherit!important;gap:3px!important;display:inline-flex!important;align-items:center!important}
body.game-theme .dish-price .currency-diamond{width:12px!important;height:11px!important;vertical-align:middle!important}
@media(max-width:760px) and (min-height:551px){
 body.game-theme.summer-mode .admission63{--summer-art:url(assets/admission-empty-mobile-v64.webp)!important}
 body.game-theme .admission-npc64{left:auto!important;right:2%!important;top:auto!important;bottom:53%!important;width:52%!important;height:23vh!important;min-height:0!important}
 body.game-theme .native-viewport64 .festival-pass{transform:none!important;translate:-50% -50%!important}
 body.game-theme .native-viewport64 .dish-price .dish-energy64{display:none!important}
 body.game-theme .native-viewport64 .dish-price .currency-diamond{width:10px!important;height:9px!important}
}
body.game-theme .campus-talk .campus-actions{gap:12px!important;margin-top:18px!important;display:flex;flex-wrap:wrap}
body.game-theme .campus-person:after{content:"";position:absolute;left:25%;right:25%;bottom:-2px;height:5px;background:#17201644;clip-path:ellipse(50% 48% at 50% 50%);z-index:-1}
@media(max-height:550px){body.game-theme .scene-dish .dish-price{max-width:67px!important;padding:3px!important}body.game-theme .scene-dish .dish-price b{font-size:8px!important}body.game-theme .scene-dish .dish-price small{font-size:9px!important}body.game-theme .scene-dish .dish-energy64{display:none}body.game-theme .festival-pass{width:15%!important;padding:5px!important}body.game-theme .festival-pass small{font-size:8px!important}body.game-theme .festival-pass b{font-size:11px!important}body.game-theme .workstation-target{width:24%!important;max-width:24%!important;min-height:32px!important;padding:5px!important}body.game-theme .workstation-target b{font-size:9px!important;line-height:1.1!important;white-space:normal!important}}
body.game-theme .cinema-scene64 .duo-figures{filter:brightness(.8) saturate(.9)}
body.game-theme .note-scene .novel-speaker{font:700 15px/1.35 Arial,sans-serif!important;color:#e8dce6!important;text-transform:none!important}
@media(max-width:760px) and (min-height:551px){
 body.game-theme .run-look-preview{left:12px!important;right:auto!important;width:34vw!important;top:var(--play-top)!important;bottom:var(--play-bottom)!important}
 body.game-theme .run-look-preview>.avatar64{height:min(68vw,calc(100svh - var(--play-top) - var(--play-bottom)))!important}
 body.game-theme .run-look-card{left:40%!important;right:12px!important;max-height:calc(100svh - var(--play-top) - var(--play-bottom));padding:12px!important}
 body.game-theme .run-look-card .novel-speaker{display:none}.run-look-card .actions{gap:7px!important}body.game-theme .run-look-card .actions button{font-size:11px!important;padding:8px!important}
 body.game-theme .meal-menu-card>p{font:12px/1.35 Arial!important;margin-bottom:10px!important}
 body.game-theme .meal-menu-card .meal-receipt:empty{display:none}
 body.game-theme .meal-options img{height:60px!important}
}
