/* v54: existing GTA colors, type and sharp panels; explicit space for each control group. */
:root{--v54-stats:190px;--v54-nav:176px;--v54-header:86px}
body.game-theme{--summer-plan-width:0px;overflow-x:hidden}
body.game-theme.summer-plan-open{--summer-plan-width:320px}
body.game-theme button,body.game-theme dialog,.creation-panel,.decision-panel,.location-panel,.novel-dialogue,.campus-talk,.campus-result,.summer-plan,.play-status{border-radius:0!important}
body.game-theme.summer-enabled #game-header,body.game-theme.summer-enabled.campus-mode #game-header{position:fixed;inset:0 0 auto 0;width:100%;height:86px;min-height:0;max-width:none;padding:18px 22px;display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;background:linear-gradient(#100d16c9,transparent);border:0;z-index:24;box-sizing:border-box;pointer-events:none}
body.game-theme.summer-enabled #game-header>*{pointer-events:auto}
body.game-theme.summer-enabled #game-header .header-actions{position:absolute;right:calc(var(--summer-plan-width) + 22px);top:20px;display:flex;gap:10px;width:auto;margin:0;align-items:center}
body.game-theme.summer-enabled .header-quick-actions{display:flex;gap:10px}
body.game-theme.summer-enabled .header-control{min-height:42px!important;height:auto!important;padding:10px 13px!important;width:auto!important;font-size:12px!important}
body.game-theme #game-header .header-actions button.profile-open,body.game-theme #game-header .header-actions button.profile-open:hover,body.game-theme #game-header .header-actions button.profile-open:focus-visible{width:44px;height:44px;min-height:44px;transform:rotate(-8deg)!important;rotate:none!important;padding:8px!important;margin:0 3px;border-radius:0!important}
body.game-theme #game-header button.profile-open>svg{transform:rotate(8deg)!important;width:25px;height:25px}
body.game-theme .summer-stats{position:fixed;left:18px;top:104px;width:var(--v54-stats);max-height:calc(100svh - 124px);padding:12px;overflow-y:auto;box-sizing:border-box;z-index:16}
.summer-stat-grid>div{position:relative;padding-right:26px}
.summer-stat-grid>div>span{font-size:13px}.summer-stat-grid>div>b{font-size:16px}
.stat-delta{position:absolute;right:0;top:0;color:#f2c36f;font:700 15px Arial,sans-serif;font-style:normal;animation:stat-delta-leave 2.7s forwards;pointer-events:none}
.stat-delta.negative{color:#edb9b6}
@keyframes stat-delta-leave{0%,72%{opacity:1;translate:0 0}100%{opacity:0;translate:0 -8px;visibility:hidden}}
.summer-stat-grid{gap:9px}.summer-stat-grid meter{height:6px}
.current-relationship{border-top:1px solid #695362;padding-top:10px!important;font-size:12px!important;line-height:1.5!important;color:#f2c36f!important}
.hud-friends{font:12px/1.5 Arial,sans-serif;margin:10px 0}.hud-friends summary{cursor:pointer;color:#edddca}.hud-friends>div{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.hud-friends span{padding:2px 5px;border:1px solid #635362;background:#25202c}
body.game-theme .summer-enabled .summer-nav,body.game-theme.summer-enabled .summer-nav{position:fixed;top:100px;right:calc(var(--summer-plan-width) + 20px);width:var(--v54-nav);display:flex;visibility:visible;flex-direction:column;gap:10px;z-index:22}
body.game-theme.summer-enabled .summer-nav button{min-height:42px!important;height:auto;padding:10px!important;margin:0;font-size:13px!important;line-height:1.3!important;box-sizing:border-box}
body.game-theme .summer-plan{position:fixed;top:0;right:0;bottom:0;width:320px;height:100svh;padding:0;z-index:40;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden}
body.game-theme .summer-plan[hidden]{display:none}
.summer-plan .plan-heading{position:relative;flex:none;padding:24px 22px 17px}.summer-plan .plan-heading h2{font-size:27px!important;padding-right:22px;margin:8px 0 12px}
.summer-plan .plan-heading p{font-size:14px!important;line-height:1.5!important;margin:0 0 12px;padding:0}
.summer-plan>ul{flex:1;min-height:0;max-height:none;overflow-y:auto;margin:0;padding:0 20px 26px}
.summer-plan li{font-size:15px!important;line-height:1.5!important;padding:13px 0;gap:10px}.summer-plan li small{font-size:12px;line-height:1.4;margin-top:5px}
.summer-plan .plan-close{top:18px;right:16px;min-width:30px;width:30px;height:30px;min-height:30px;padding:0!important}
.summer-mode #app{padding:0!important;width:calc(100vw - var(--summer-plan-width));max-width:none;min-height:100svh;margin:0;box-sizing:border-box}
body.game-theme.summer-enabled.work:not(.profile-isolated) #app{padding:112px calc(var(--summer-plan-width) + var(--v54-nav) + 44px) 36px calc(var(--v54-stats) + 38px)!important;width:100%;max-width:none;box-sizing:border-box}
.summer-enabled.work .workspace{width:100%;max-width:none;min-width:0;margin:0}.summer-enabled.work .work-head{min-width:0;overflow-wrap:anywhere}.summer-enabled.work .work-body{min-width:0}.summer-enabled.work .work-head h2{font-size:clamp(25px,3vw,42px)}
body.game-theme .location-panel{position:fixed;top:292px;left:calc(var(--v54-stats) + 38px);right:calc(var(--summer-plan-width) + var(--v54-nav) + 44px);width:auto;max-width:680px;max-height:calc(100svh - 324px);margin:0;padding:24px;box-sizing:border-box;overflow-y:auto;z-index:5}
body.game-theme .location-panel h1{font-size:clamp(25px,3.2vw,38px)!important;line-height:1.15!important;overflow-wrap:anywhere}
body.game-theme .novel-dialogue,body.game-theme .simulator-layout .campus-talk,body.game-theme .campus-result{position:fixed;top:auto;bottom:24px;left:auto;right:calc(var(--summer-plan-width) + 24px);width:min(600px,calc(100vw - var(--summer-plan-width) - var(--v54-stats) - 62px));max-width:none;max-height:calc(100svh - 300px);min-height:0;margin:0;padding:22px 24px;overflow-y:auto;box-sizing:border-box;z-index:10;translate:none;transform:none}
body.game-theme .novel-dialogue p,body.game-theme .campus-talk p{font:400 17px/1.5 Arial,sans-serif;color:#fff4df;margin:0 0 16px}
.novel-actions,.campus-actions{display:flex;flex-wrap:wrap;gap:10px}.novel-actions button,.campus-actions button{white-space:normal;overflow-wrap:anywhere;max-width:100%}
.dialogue-navigation{margin:0 0 12px}.dialogue-navigation button{margin:0!important}
body.game-theme.summer-enabled .walk-hud{top:106px;left:calc(var(--v54-stats) + 38px);right:calc(var(--summer-plan-width) + var(--v54-nav) + 44px);max-width:600px;pointer-events:none;z-index:7}
body.game-theme .walk-heading h1{font-size:25px!important;line-height:1.2!important;margin:3px 0}.walk-heading{max-width:100%}
body.game-theme .walk-context{width:min(370px,100%);box-sizing:border-box;margin-top:12px;padding:12px 15px}.walk-context p{font-size:14px!important;line-height:1.5!important}
body.game-theme.summer-enabled .play-status,body.game-theme.summer-enabled .scene-challenge-head{position:fixed;left:calc(var(--v54-stats) + 38px);top:183px;right:auto;bottom:auto;width:282px;max-width:calc(100vw - var(--summer-plan-width) - var(--v54-stats) - var(--v54-nav) - 76px);max-height:calc(100svh - 345px);margin:0;transform:none;translate:none;overflow:auto;box-sizing:border-box;padding:14px;z-index:8}
.play-status>p{font-size:14px!important;line-height:1.45!important}.play-score{font-size:16px!important;gap:6px}.play-status h2{font-size:23px!important;line-height:1.2!important}
.poster-challenge .play-score span{font-size:19px!important;line-height:1.45;font-weight:700;color:#fff4df}.poster-challenge .play-status>p{font-size:16px!important}
body.game-theme.summer-enabled .scene-play-controls{position:fixed;left:calc(var(--v54-stats) + 38px);right:calc(var(--summer-plan-width) + 24px);bottom:24px;top:auto;max-width:none;transform:none;translate:none;width:auto;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;z-index:14}
.scene-play-controls button{min-height:46px!important;max-width:100%;font-size:15px!important}.scene-throw-settings{gap:10px}.scene-throw-settings label{min-width:0}
body.game-theme .campus-quest{position:fixed;top:184px;left:calc(var(--v54-stats) + 38px);right:calc(var(--summer-plan-width) + var(--v54-nav) + 44px);bottom:24px;width:auto;max-width:680px;max-height:none;overflow-y:auto;margin:0;transform:none;box-sizing:border-box;z-index:8}
.memory-board.photo-memory{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;max-width:520px;margin:14px auto}
.memory-card{position:relative;aspect-ratio:1.35;min-height:0!important;overflow:hidden;background:#211a28!important;isolation:isolate}
.memory-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:none}
.memory-card>.memory-back{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#241d2c;opacity:1}
.memory-card.is-open>img,.memory-card.is-matched>img{opacity:1}.memory-card.is-open>.memory-back,.memory-card.is-matched>.memory-back{opacity:0;pointer-events:none}
.memory-card.is-open:not(.photo-ready)>img{opacity:0}.memory-card.is-open:not(.photo-ready):after{content:'Снимок загружается…';position:absolute;inset:0;display:grid;place-items:center;color:#f2c36f;font-size:12px;background:#241d2c}
.maze-wall{background:#433b4c!important;box-shadow:inset 0 3px #75627f,inset 3px 0 #67586f!important;border:1px solid #17131e!important}.maze-cell{background:#e6d8be!important}
.floor-transit{position:fixed;left:calc(var(--v54-stats) + 38px);bottom:24px;z-index:14;display:flex;gap:12px}.floor-transit button{min-height:46px!important;min-width:110px;font-size:16px!important}
.club-locked-note{position:fixed;left:calc(var(--v54-stats) + 38px);bottom:100px;max-width:360px;padding:16px;background:#17131ef5;color:#fff4df;border:1px solid #a89bac;z-index:8;font:15px/1.5 Arial,sans-serif}.club-locked-note b{color:#f2c36f}.club-locked-note p{font:15px/1.5 Arial,sans-serif!important}.club-locked-note button{font-size:13px!important}
body.game-theme .park-exit{right:calc(var(--summer-plan-width) + 24px);bottom:24px;width:220px;left:auto;max-width:calc(100vw - 32px);z-index:14}
body.game-theme .romance-meet{position:fixed;bottom:24px;left:calc(var(--v54-stats) + 38px);right:auto;max-width:340px;z-index:9}
/* The full illustration can be panned rather than cropped or combined with a second photo. */
body.game-theme .simulator-layout .campus-world{position:fixed;left:0;right:var(--summer-plan-width);top:0;bottom:0;min-height:0;overflow-x:auto;overflow-y:hidden;touch-action:pan-x;scrollbar-width:thin;overscroll-behavior:contain;z-index:0;background:#28232a}
body.game-theme .simulator-layout .campus-world .campus-image-stage,body.game-theme .simulator-layout .immersive-world .campus-image-stage,body.game-theme .simulator-layout .place-dorm-room .campus-image-stage{position:absolute;left:0;top:0;width:max(calc(100vw - var(--summer-plan-width)),177.6833156svh);height:max(100svh,calc((100vw - var(--summer-plan-width)) * .562799));min-width:0;max-width:none;transform:none;translate:none;aspect-ratio:1672/941;overflow:hidden}
body.game-theme .campus-backdrop{position:absolute;inset:0;margin:0;padding:0;transform:none!important}
body.game-theme .campus-backdrop img{display:block;width:100%;height:100%;object-fit:fill;filter:none!important;scale:none!important}
.room-backfill,#campus-scene-cache{display:none!important}
.scene-image-loading .campus-backdrop>img,.scene-image-loading .campus-person,.scene-image-loading .scene-swimmer{visibility:hidden}
.scene-image-status{position:fixed;left:calc(var(--v54-stats) + 38px);top:285px;z-index:25;padding:14px 17px;width:max-content;max-width:min(360px,calc(100vw - var(--summer-plan-width) - var(--v54-stats) - 76px));box-sizing:border-box;background:#17131ef5;border:1px solid #a89bac;color:#fff4df;font:15px/1.5 Arial,sans-serif}
.summer-screen:not(.scene-art-ready):before{background-image:none!important}.scene-image-status button{min-height:38px!important;font-size:13px!important}
body.game-theme .novel-person,body.game-theme .campus-person>img{filter:none!important;border:0;outline:0;box-shadow:none!important}
body.game-theme .novel-figure.figure-self,body.game-theme .novel-figure.figure-dean,body.game-theme .novel-figure.figure-guest,body.game-theme .simulator-layout .campus-world .campus-person.dialogue-actor{left:calc(var(--v54-stats) + 10px);top:auto;bottom:0;width:min(43vw,540px);height:min(70svh,740px);overflow:hidden;pointer-events:none}
body.game-theme .novel-figure.figure-guest>.novel-person,body.game-theme .simulator-layout .campus-world .campus-person.dialogue-actor>img{height:140%;width:auto;max-width:none;top:var(--npc-crown-offset,var(--guest-crown-offset,-2%));left:50%;translate:-50% 0;object-fit:contain}
body.game-theme .novel-figure.figure-self .player-avatar{height:140%;width:auto;max-height:none}.novel-figure.figure-dean>.novel-person{height:101.8%!important}
body.game-theme .simulator-layout .campus-world .campus-person.dialogue-actor .character-hit{pointer-events:auto}
.avatar-embroidery{position:absolute;inset:0;display:block;pointer-events:none;background:repeating-linear-gradient(32deg,transparent 0 28px,var(--thread-color) 29px 30px,transparent 31px 42px);opacity:.38;mask-image:var(--avatar-mask);-webkit-mask-image:var(--avatar-mask);mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}
.summer-onboarding .novel-dialogue{width:min(650px,calc(100vw - 340px));right:5vw;max-height:calc(100svh - 160px);bottom:28px}
.summer-onboarding .novel-figure.figure-self,.summer-onboarding .novel-figure.figure-dean{left:1vw;width:46vw;height:76svh}
.gender-panel .centered-back{justify-content:center}.gender-panel .centered-back button{flex:none!important;min-width:140px}
body.game-theme .gender-panel{max-width:620px;margin:24svh auto 0}
body.game-theme .creation-panel{box-sizing:border-box}.creation-panel h1{overflow-wrap:anywhere}.creation-panel input{max-width:100%;width:100%}
body.game-theme.profile-isolated #game-header .header-actions{right:24px;top:20px}.profile-isolated .player-profile{overflow:hidden}.profile-isolated .stage-back{clear:both}
body.game-theme.full-map-mode{--summer-plan-width:0px}.full-map-mode .map-tools{display:none}.map-lock{display:inline-block;width:14px;height:16px;margin-right:6px;vertical-align:-2px}.map-location-locked{opacity:1!important;cursor:default!important}.map-location-locked span{color:#c6b8c5!important}.full-map-mode .map-caption{max-width:220px}.full-map-mode .summer-map-viewport{touch-action:none}
.scene-pan-viewport{position:fixed;inset:0 var(--summer-plan-width) 0 0;overflow-x:auto;overflow-y:hidden;touch-action:pan-x;scrollbar-width:thin;overscroll-behavior:contain}
.scene-pan-canvas{position:absolute;left:0;top:0;width:max(calc(100vw - var(--summer-plan-width)),177.6833156svh);height:max(100svh,calc((100vw - var(--summer-plan-width)) * .562799));background-image:var(--summer-art);background-size:100% 100%;background-position:center;background-repeat:no-repeat}
.library-play-screen:before,.date-game-screen:before{display:none!important}.library-play-screen:not(.scene-art-ready) .scene-pan-canvas,.date-game-screen:not(.scene-art-ready) .scene-pan-canvas{background-image:none!important}
.detective-shelf{position:absolute;left:18%;top:49.1%;width:43%;height:11.3%;display:flex;align-items:flex-end;gap:.6%;perspective:800px}
body.game-theme .detective-spine{height:100%;width:12%;min-width:0;min-height:0!important;padding:3px 1px!important;margin:0;border:2px solid #251c1a!important;border-left:4px solid #251c1a!important;background:var(--book-color)!important;box-shadow:2px 1px 0 #18130c!important;color:#fff4df!important;font-family:Georgia,serif!important;transform:none!important;display:flex;align-items:center;justify-content:space-between;flex-direction:column}
.detective-spine b{writing-mode:vertical-rl;text-orientation:mixed;line-height:1.1;font:700 14px Georgia,serif;flex:1;overflow:hidden}.detective-spine>span{height:18px;width:18px;display:block}.detective-spine.taken{opacity:.28}.detective-spine svg{width:100%;height:100%}
.detective-clue{position:absolute;left:69%;top:32%;width:17%;padding:18px 17px;background:#f0dfb7;color:#35221d;border:1px solid #b89b68;box-shadow:3px 5px #18130c55;font:15px/1.5 Georgia,serif;box-sizing:border-box;rotate:2deg}.detective-clue>span{font:700 11px Arial,sans-serif;display:block;color:#723545;margin-bottom:9px}.detective-clue b{font-size:20px}.detective-clue ul{padding-left:18px;margin:12px 0 0}.detective-clue li{margin:7px 0}
.detective-open-book{position:absolute;left:39.5%;top:79%;width:12%;height:25%;transform:translate(-50%,-50%) rotate(-4deg)}
.detective-book-cover{width:100%;height:100%;padding:11%;box-sizing:border-box;background:var(--book-color);border:2px solid #291922;border-left:6px solid #281820;box-shadow:5px 6px 0 #100e1455;color:#fff3d6;display:flex;align-items:center;flex-direction:column;justify-content:space-between;text-align:center}
.detective-book-cover small{font:700 9px Arial,sans-serif;letter-spacing:.08em}.detective-book-cover>b{font:700 clamp(15px,1.9vw,27px)/1.15 Georgia,serif}.detective-book-cover>svg{width:30%;height:26%;color:white}.detective-book-cover>span{font:11px/1.3 Arial,sans-serif}
body.game-theme .library-game-dialogue{width:min(550px,calc(100vw - var(--summer-plan-width) - 560px));min-width:260px;max-height:300px}.library-game-dialogue p{font-size:16px!important}
body.game-theme .date-game-dialogue{top:270px;bottom:auto;width:420px;max-width:calc(100vw - var(--summer-plan-width) - var(--v54-stats) - 70px);max-height:260px}.date-kind-park .date-game-dialogue{top:auto;bottom:24px;width:min(600px,calc(100vw - var(--summer-plan-width) - var(--v54-stats) - 62px))}
.date-table-item{position:absolute;left:var(--date-x);top:var(--date-y);translate:-50% -50%;width:8%;height:20%;padding:0!important;min-height:0!important;background:none!important;border:0!important;box-shadow:none!important;z-index:2;transform:none!important}.date-table-item img{display:block;width:100%;height:100%;object-fit:contain;filter:none!important}.date-table-item.selected{outline:2px dashed #f2c36f;outline-offset:4px}.date-table-item.placed{pointer-events:auto}
.date-table-spot{position:absolute;translate:-50% -50%;width:9%;height:16%;background:#f7ead32b!important;border:2px dashed #f2c36f!important;box-shadow:none!important;padding:4px!important;min-height:0!important;transform:none!important;color:#fff4df!important;text-shadow:1px 1px #17131e}.date-table-spot span{font:700 13px/1.2 Arial,sans-serif}
.date-seat-row{position:absolute;left:25%;top:61%;width:53%;height:18%;display:flex;gap:1.8%;align-items:flex-end;perspective:700px;transform:rotateX(-5deg)}
body.game-theme .date-seat{flex:1;width:auto;height:100%;min-height:0!important;background:linear-gradient(#892c43 0 55%,#561a2b 56% 77%,#301222 78%)!important;border:3px solid #2f1722!important;box-shadow:inset 0 0 0 2px #b66675,3px 4px #190d17!important;position:relative;padding:0!important;transform:none!important;color:#f9e3c4!important}.date-seat:before,.date-seat:after{content:'';position:absolute;bottom:19%;width:9%;height:38%;background:#321828;border:1px solid #82515c}.date-seat:before{left:-5%}.date-seat:after{right:-5%}.date-seat span{font:700 16px Arial,sans-serif}.date-seat.selected{border-color:#f2c36f!important;box-shadow:inset 0 0 0 2px #f2c36f,3px 4px #190d17!important}
.date-photo-company{position:absolute;left:26%;right:27%;top:22%;height:44%;display:flex;justify-content:center;gap:10%;align-items:flex-end}.date-photo-company>div{height:100%;width:44%;position:relative;overflow:hidden}.date-photo-company .player-avatar{height:140%;width:auto;position:absolute;left:50%;top:0;translate:-50% 0}.date-photo-company>div>img{height:140%;width:auto;max-width:none;position:absolute;left:50%;top:-2%;translate:-50% 0;object-fit:contain}.date-photo-counter{position:absolute;left:44%;top:20%;padding:8px 12px;background:#17131ed9;color:#f2c36f;font:700 15px Arial,sans-serif}
.date-coffee-pair{position:absolute;left:35%;top:68%;width:22%;height:14%;display:flex;gap:12%}.date-coffee-pair img{width:40%;height:100%;object-fit:contain}
body.game-theme button.date-shutter{display:flex;align-items:center;gap:14px;min-height:50px!important}.shutter-rings{position:relative;display:block;width:36px;height:36px}.shutter-rings i,.shutter-rings b{position:absolute;inset:4px;border:2px solid #e8d5b8;border-radius:50%;display:block}.shutter-rings b{transform:scale(var(--focus-scale,1));border-color:#f2c36f}.date-shutter.ready{background:#31574e!important;border-color:#f2c36f!important}
.wardrobe-panel{position:relative;padding:25px;margin:270px 24px 30px calc(var(--v54-stats) + 38px);width:calc(100vw - var(--summer-plan-width) - var(--v54-stats) - 64px);box-sizing:border-box;background:#17131ef5;border:2px solid #a89bac;color:#fff4df}.wardrobe-panel h1{font-size:30px!important;line-height:1.2!important;margin:12px 0}.wardrobe-panel>p{font-size:15px!important}.wardrobe-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.outfit-choice{border:1px solid #665465;padding:14px;text-align:center}.outfit-choice.chosen{border-color:#f2c36f}.outfit-preview{height:280px;overflow:hidden}.outfit-preview .player-avatar{height:100%;width:auto;max-width:100%}.outfit-choice h2{font-size:20px!important;margin:12px 0}.outfit-choice p{font-size:13px!important;line-height:1.4!important}.outfit-choice button{font-size:13px!important;padding:9px!important;min-height:42px!important}.wardrobe-balance{font-size:20px}
.pdnj-company{position:fixed;left:calc(var(--v54-stats) + 28px);right:calc(var(--summer-plan-width) + 24px);top:105px;display:flex;justify-content:center;gap:9px;z-index:3;pointer-events:none}.pdnj-company figure{margin:0;width:70px;min-width:0;height:190px;overflow:hidden;position:relative}.pdnj-company figure>img{height:240px;max-width:none;width:auto;left:50%;top:0;translate:-50% 0;position:absolute}.pdnj-company figcaption{position:absolute;bottom:0;width:100%;background:#17131ee6;color:#fff4df;font:700 11px/1.2 Arial,sans-serif;padding:5px 2px;text-align:center;box-sizing:border-box}
@media(min-width:761px) and (max-width:1100px){:root{--v54-stats:160px;--v54-nav:145px}.summer-plan-open{--summer-plan-width:285px!important}.summer-plan{width:285px!important}.summer-plan li{font-size:14px!important}.summer-plan .plan-heading{padding:20px 16px}.summer-plan>ul{padding-inline:16px}.summer-enabled .brand>span:last-child{font-size:13px}.summer-enabled .brand small{display:none}.summer-enabled .play-status{width:245px!important}.novel-dialogue,.campus-talk{font-size:15px}.wardrobe-choices{grid-template-columns:1fr}.outfit-choice{display:grid;grid-template-columns:100px 1fr;gap:10px}.outfit-preview{height:180px;grid-row:1/4}.outfit-choice h2{margin:0}.pdnj-company figure{height:150px}.pdnj-company figure>img{height:200px}}
@media(max-width:760px){
 :root{--v54-stats:0px;--v54-nav:0px;--v54-header:72px}
 body.game-theme.summer-plan-open{--summer-plan-width:0px}
 body.game-theme.summer-enabled #game-header,body.game-theme.summer-enabled.campus-mode #game-header{height:72px;padding:12px;align-items:center}
 body.game-theme.summer-enabled #game-header .header-actions{right:12px;top:17px;gap:8px}
 body.game-theme.summer-enabled .header-control{font-size:10px!important;min-height:34px!important;height:34px!important;padding:6px 7px!important;max-width:86px;width:auto!important}
 body.game-theme #game-header .header-actions button.profile-open{width:34px;height:34px;min-height:34px;padding:6px!important}
 body.game-theme #game-header button.profile-open>svg{width:22px;height:22px}
 body.game-theme.summer-enabled .brand{max-width:135px;font-size:12px;gap:7px}.summer-enabled .brand small{display:none}
 body.game-theme .summer-stats{position:fixed;top:80px;left:10px;right:10px;width:auto;max-height:120px;overflow:auto;padding:9px 10px;display:grid;grid-template-columns:50px minmax(0,1fr) 58px;gap:5px 8px;align-items:start;z-index:17}
 .summer-stat-grid{grid-column:2;grid-row:1/3;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0;align-self:center}.summer-stat-grid>div{padding:0;display:flex;flex-wrap:wrap;gap:2px;justify-content:center}.summer-stat-grid>div>span{font-size:9px;width:100%;text-align:center;overflow-wrap:normal}.summer-stat-grid>div>b{font-size:13px}.summer-stat-grid meter{height:4px;width:100%}
 .stat-delta{position:static;font-size:11px}.hero-mini{width:48px!important;height:50px!important;grid-row:1/3}.hero-mini b{font-size:9px!important;max-width:48px}.hero-mini .player-avatar{height:38px!important;width:25px!important;overflow:hidden}
 .summer-gems{grid-column:3;grid-row:1;padding:0!important;align-self:center}.summer-gems .gem-amount{font-size:18px}.summer-gems .currency-diamond{width:19px;height:18px}
 .summer-stats>p:not(.current-relationship){grid-column:1/3;font-size:10px!important;margin:2px 0!important}.summer-stats .final-gate-status{display:none}.summer-finish{grid-column:3;grid-row:2;min-height:26px!important;padding:4px!important;font-size:9px!important;width:100%}.current-relationship{grid-column:1/-1;grid-row:auto;border:0;padding:0!important;margin:2px 0!important;font-size:11px!important}.hud-friends{grid-column:1/-1;grid-row:auto;margin:0;line-height:1.4;font-size:10px}.hud-friends[open]{max-height:65px;overflow:auto}
 body.game-theme.summer-enabled .summer-nav{position:fixed;top:auto;bottom:10px;left:10px;right:10px;width:auto;display:flex;visibility:visible;flex-direction:row;gap:7px;justify-content:center;z-index:47}
 body.game-theme.summer-enabled .summer-nav button{min-height:42px!important;height:auto;font-size:11px!important;padding:8px 9px!important;flex:1;max-width:180px;box-shadow:none!important}
 body.game-theme .summer-plan{top:72px;bottom:0;right:0;height:calc(100svh - 72px);width:min(360px,calc(100vw - 24px))!important;z-index:43}.summer-plan .plan-heading{padding:18px 18px 12px}.summer-plan .plan-heading h2{font-size:25px!important}.summer-plan>ul{padding-bottom:84px}.summer-plan .plan-heading p{font-size:13px!important}.summer-plan li{font-size:15px!important;padding-block:12px}
 body.summer-plan-open .summer-stats,body.summer-plan-open .novel-dialogue,body.summer-plan-open .campus-talk,body.summer-plan-open .campus-result,body.summer-plan-open .scene-play-controls{visibility:hidden}
 body.game-theme.summer-enabled .walk-hud{top:213px;left:12px;right:12px;width:auto;max-width:none}.walk-heading>div>span{display:none}body.game-theme .walk-heading h1{font-size:20px!important}.walk-context{max-width:270px!important;margin-top:7px!important;padding:8px 10px!important}.walk-context p{font-size:12px!important}
 body.game-theme .location-panel{left:12px;right:12px;top:227px;width:auto;max-width:none;max-height:calc(100svh - 310px);padding:20px;margin:0}.location-panel h1{font-size:27px!important}.location-panel p{font-size:15px!important}
 body.game-theme .novel-dialogue,body.game-theme .simulator-layout .campus-talk{left:12px;right:12px;top:auto;bottom:74px;width:auto;max-width:none;max-height:calc(72svh - 298px);margin:0;padding:15px 17px;min-height:0;overflow:auto}
 body.game-theme .novel-dialogue p,body.game-theme .campus-talk p{font-size:15px!important;line-height:1.45!important;margin-bottom:12px}.novel-actions,.campus-actions{gap:8px}body.game-theme .novel-actions button,body.game-theme .campus-actions button{font-size:12px!important;line-height:1.25!important;min-height:40px!important;padding:8px 10px!important}
 body.game-theme .novel-figure.figure-self,body.game-theme .novel-figure.figure-dean,body.game-theme .novel-figure.figure-guest,body.game-theme .simulator-layout .campus-world .campus-person.dialogue-actor{left:15px;top:208px;bottom:auto;width:74vw;height:28svh}
 body.game-theme.summer-onboarding .novel-figure.figure-self,body.game-theme.summer-onboarding .novel-figure.figure-dean{left:0;top:85px;height:43svh;width:85vw}
 body.game-theme.summer-onboarding .novel-dialogue{left:12px;right:12px;width:auto;bottom:20px;max-height:calc(57svh - 120px);padding:17px}
 body.game-theme.summer-enabled .play-status,body.game-theme.summer-enabled .scene-challenge-head{left:12px;right:auto;top:252px;width:230px;max-width:calc(100vw - 24px);max-height:180px;padding:11px;font-size:12px}
 .play-status h2{font-size:20px!important}.play-status>p{font-size:12px!important;line-height:1.4!important}.play-score{font-size:14px!important}.poster-challenge .play-score span{font-size:17px!important}
 body.game-theme.summer-enabled .scene-play-controls{left:12px;right:12px;bottom:75px;gap:7px;max-width:none;width:auto}.scene-play-controls button{font-size:13px!important;min-height:42px!important;padding:8px 10px!important;white-space:normal}
 body.game-theme .campus-quest{top:253px;left:12px;right:12px;bottom:75px;max-width:none;width:auto;padding:15px;overflow:auto}.quest-head h2{font-size:22px!important}.quest-head p{font-size:13px!important;line-height:1.45}.memory-board.photo-memory{gap:6px}.memory-back small{font-size:8px!important}.memory-back b{font-size:20px!important}
 body.game-theme .campus-result{left:12px;right:12px;bottom:75px;width:auto;max-width:none;max-height:calc(100svh - 350px);padding:18px;overflow:auto}.campus-result h2{font-size:24px!important}.campus-result p{font-size:15px!important}
 .floor-transit{left:12px;bottom:75px;gap:8px}.floor-transit button{font-size:14px!important;min-height:42px!important;min-width:100px}
 body.game-theme .park-exit{right:12px;bottom:75px;width:180px;min-height:45px}.park-exit span{font-size:13px!important}.park-exit small{font-size:10px!important}
 .club-locked-note{left:12px;right:12px;bottom:140px;max-width:none;padding:14px}.club-locked-note p{font-size:13px!important}.romance-meet{left:12px!important;bottom:75px!important;right:auto!important;max-width:calc(100vw - 24px)!important}
 .scene-image-status{left:12px;top:250px;max-width:calc(100vw - 24px);font-size:13px}
 body.game-theme .library-game-dialogue,body.game-theme .date-game-dialogue{left:12px;right:12px;top:213px;bottom:auto;width:auto;min-width:0;max-width:none;max-height:190px;padding:13px 15px}.library-game-dialogue p,.date-game-dialogue p{font-size:13px!important;line-height:1.4!important}.library-game-dialogue .novel-speaker,.date-game-dialogue .novel-speaker{font-size:11px}
 .detective-clue{font-size:14px}.detective-book-cover>b{font-size:22px}.detective-book-cover>span{font-size:11px}.detective-open-book{left:40%;top:77%;width:13%;height:24%}
 body.game-theme .date-kind-park .date-game-dialogue{top:auto;bottom:75px;max-height:210px}.date-photo-company{left:30%;right:24%;top:24%;height:36%}.date-photo-counter{top:22%;left:43%;font-size:12px}
 .wardrobe-panel{margin:230px 12px 85px;width:calc(100vw - 24px);padding:18px}.wardrobe-panel h1{font-size:26px!important}.wardrobe-choices{grid-template-columns:1fr;gap:12px}.outfit-choice{display:grid;grid-template-columns:105px 1fr;gap:7px;text-align:left}.outfit-preview{height:200px;grid-row:1/4}.outfit-choice h2{font-size:19px!important;margin:8px 0 0}.outfit-choice p{font-size:13px!important;margin:0}.outfit-choice button{align-self:end}.wardrobe-panel .actions{display:flex;gap:9px;flex-wrap:wrap}
 body.game-theme.summer-enabled.work:not(.profile-isolated) #app{padding:228px 12px 82px!important}.work-head{padding:18px!important}.work-body{padding:16px!important}.work-head h2{font-size:27px!important}
 body.game-theme .gender-panel{margin:22svh auto 0;width:calc(100vw - 28px)}.creation-panel{padding:18px!important}.creation-panel h1{font-size:27px!important}.creation-panel .actions{gap:8px}.summer-mode .creation-screen{display:flex!important;flex-direction:column;padding:85px 12px 25px!important;gap:8px}.creation-screen .creation-preview{position:relative;top:0;left:0;height:280px;width:100%;margin:0}.summer-mode .creation-screen .creation-panel{margin:0!important;width:100%!important;max-width:none}.creation-preview .player-avatar{height:100%;width:auto}
 .full-map-mode .map-caption{top:12px;left:12px;max-width:180px;padding:10px 12px}.full-map-mode .map-caption h1{font-size:23px!important}.full-map-mode .map-locations button{font-size:12px!important;min-width:105px;max-width:160px}
 body.game-theme.profile-isolated.work #app{padding:96px 12px 30px!important}.profile-isolated .work-head{display:flex;flex-wrap:wrap}.profile-isolated .profile-avatar{max-width:75px}
 .pdnj-company{left:12px;right:12px;top:210px;gap:4px;flex-wrap:wrap;justify-content:center}.pdnj-company figure{height:96px;width:53px;flex:none}.pdnj-company figure>img{height:130px}.pdnj-company figcaption{font-size:9px;padding:3px 1px}
}
@media(prefers-reduced-motion:reduce){.stat-delta{animation:none}.date-shutter .shutter-rings b{transition:none}}

/* All map gestures operate on one image plane; hotspots retain their coordinates. */
.full-map-mode .summer-map-viewport{touch-action:none}
.pdnj-company .company-scene{width:108px;height:110px;align-self:flex-end}
.pdnj-company .company-scene>img{width:100%;height:100%;object-fit:cover;left:0;translate:0;object-position:75% 52%}
.pdnj-company .company-club{width:150px}.pdnj-company .company-club>img{object-position:50% 60%}
.pdnj-company .company-partner{border-bottom:2px solid #f2c36f}
@media(max-width:760px){.pdnj-company .company-scene{width:72px;height:76px}.pdnj-company .company-club{width:94px}.pdnj-company{top:205px;max-height:120px;overflow:hidden}}

/* Direction choices have their own clear HUD space, like all other scenes. */
body.game-theme.summer-enabled.hall-mode .hall-guide{position:fixed;top:112px;left:calc(var(--v54-stats) + 38px);right:calc(var(--summer-plan-width) + var(--v54-nav) + 44px);width:auto;max-width:none;min-height:0;margin:0;z-index:8;gap:14px;align-items:flex-start}
body.game-theme.summer-enabled.hall-mode .hall-guide>img{width:86px;height:145px;object-fit:contain;filter:none}
body.game-theme.summer-enabled.hall-mode .hall-speech{max-height:175px;overflow:auto;padding:15px 17px}
body.game-theme.summer-enabled.hall-mode .hall-speech p{font-size:15px;line-height:1.4}
body.game-theme.summer-enabled.hall-mode .hall-navigation{left:calc(var(--v54-stats) + 38px);right:calc(var(--summer-plan-width) + 24px);width:auto;transform:none;bottom:24px}
@media(max-width:760px){body.game-theme.summer-enabled.hall-mode .hall-guide{left:12px;right:12px;top:auto;bottom:145px;gap:9px}body.game-theme.summer-enabled.hall-mode .hall-guide>img{width:62px;height:130px}body.game-theme.summer-enabled.hall-mode .hall-speech{max-height:150px;padding:11px 13px}body.game-theme.summer-enabled.hall-mode .hall-speech p{font-size:13px;line-height:1.4}body.game-theme.summer-enabled.hall-mode .hall-navigation{left:12px;right:12px;bottom:75px;gap:7px}.hall-navigation .hall-page{max-height:58px;overflow:auto}.hall-navigation .hall-page p{font-size:10px!important}}

/* v55 audit: every part of the same illustration stays reachable on short screens. */
body.game-theme .simulator-layout .campus-world,.scene-pan-viewport{overflow-y:auto;touch-action:pan-x pan-y}
body.game-theme .workspace,body.game-theme .message-bubble,body.game-theme .summer-tasks-panel{border-radius:0!important}
.memory-card.photo-failed:after{content:'Снимок не загрузился. Попробуй ещё раз';position:absolute;inset:0;display:grid;place-items:center;background:#241d2c;color:#f2c36f;font:12px/1.4 Arial,sans-serif;padding:7px}
@media(max-width:760px){
 body.game-theme .library-game-dialogue{max-height:max(60px,min(190px,calc(49svh - 225px)))}
 body.game-theme .date-game-dialogue{max-height:max(80px,min(190px,calc(57svh - 225px)))}
 body.game-theme .date-kind-park .date-game-dialogue{max-height:210px}
 .detective-clue{top:56%}
}
@media(max-width:900px) and (max-height:550px){
 body.game-theme.summer-enabled #game-header{height:58px;padding-block:8px}
 body.game-theme .summer-stats{top:64px;max-height:80px}
 body.game-theme.summer-enabled .walk-hud{top:152px}
 body.game-theme .library-game-dialogue,body.game-theme .date-game-dialogue{top:152px;bottom:auto;left:auto;right:12px;width:32vw;min-width:0;max-width:300px;max-height:calc(100svh - 218px);padding:11px}
 body.game-theme .date-kind-park .date-game-dialogue{top:152px;bottom:auto;left:auto;right:12px;width:32vw;max-height:calc(100svh - 218px)}
 body.game-theme .novel-dialogue,body.game-theme .simulator-layout .campus-talk{max-height:calc(100svh - 218px)}
 .detective-clue{top:56%}
}

.summer-screen:not(.scene-art-ready) .novel-figure,.summer-screen:not(.scene-art-ready) .date-photo-company{visibility:hidden}
/* Old header rules used !important; these final rules reserve the plan's width. */
body.game-theme.summer-enabled #game-header .header-actions{position:absolute!important;right:calc(var(--summer-plan-width) + 22px);top:20px}
body.game-theme.summer-enabled #game-header .header-actions .hud{display:flex!important}
body.game-theme.summer-enabled #game-header .header-control{width:132px!important;min-width:0!important;max-width:none!important;height:42px!important;min-height:42px!important;padding:8px 10px!important}
body.game-theme.summer-enabled #game-header .header-quick-actions{gap:8px!important}
@media(max-width:760px){
 body.game-theme.summer-enabled #game-header .header-actions{right:12px;top:17px;gap:8px}
 body.game-theme.summer-enabled #game-header .header-control{width:72px!important;height:34px!important;min-height:34px!important;padding:4px 5px!important;font-size:10px!important;line-height:1.05!important;white-space:normal}
 body.game-theme.summer-enabled #game-header .header-quick-actions{gap:6px!important}
 body.game-theme #game-header .header-actions button.profile-open{width:34px!important;height:34px!important;min-height:34px!important;min-width:34px!important;margin:0!important}
 body.game-theme .summer-stats .hero-mini{height:50px!important;width:48px!important}
}
@media(max-width:350px){
 body.game-theme.summer-enabled #game-header .header-control{width:64px!important;font-size:9px!important}
 body.game-theme.summer-enabled #game-header .brand{font-size:10px;max-width:110px;gap:5px}
 body.game-theme.summer-enabled #game-header .brand-icon{font-size:18px;padding:8px 6px}
}
@media(min-width:761px){body.game-theme #game-header .header-actions button.profile-open{width:44px!important;height:44px!important;min-height:44px!important;min-width:44px!important}}
