/* v58: preserve the GTA palette, type and sharp panels; reserve space for controls. */
:root{--play-left:calc(var(--v54-stats) + 38px);--play-right:calc(var(--summer-plan-width) + 24px)}
body.game-theme.summer-enabled .summer-nav{display:grid;grid-template-columns:repeat(3,132px);grid-template-rows:repeat(2,42px);gap:8px;top:18px;right:calc(var(--summer-plan-width) + 22px);left:auto;bottom:auto;width:auto;align-items:stretch}
body.game-theme.summer-enabled .summer-nav>button{position:static!important;width:132px!important;max-width:none!important;height:42px!important;min-height:42px!important;margin:0!important;transform:none!important;rotate:none!important}
.summer-nav>.toolbar-reset{grid-column:2;grid-row:1}
.summer-nav>.toolbar-profile{grid-column:3;grid-row:1}
.summer-nav>.journey-back,.summer-nav>[data-journey="back"]{grid-column:1;grid-row:1}
.summer-nav>.summer-map-button{grid-column:2;grid-row:2}
.summer-nav>.toolbar-plan{grid-column:3;grid-row:2}
.summer-nav>.resume-date{grid-column:1;grid-row:2}
body.game-theme .dialogue-navigation{margin:22px 0 18px;padding:0}
body.game-theme .novel-actions,body.game-theme .campus-actions{gap:14px;margin-top:18px}
body.game-theme .novel-dialogue p,body.game-theme .campus-talk p{margin-bottom:18px}
body.game-theme.summer-enabled .simulator-layout .walk-hud{top:125px;left:var(--play-left)!important;right:var(--play-right)!important;max-width:400px}
body.game-theme .scene-image-status{top:150px}
/* A dedicated central working area for the study missions. */
body.game-theme.summer-enabled.work:not(.profile-isolated) #app{padding:142px var(--play-right) 36px var(--play-left)!important;width:100%;max-width:none}
body.game-theme.summer-enabled.work .workspace{width:100%;max-width:1080px;margin-inline:auto}
body.game-theme.summer-enabled.work footer{display:none!important}
body.game-theme .levels-workspace .level-road{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;min-width:0!important;min-height:0!important;height:auto;aspect-ratio:auto!important;padding:0;background:none!important;border:0;overflow:visible}
body.game-theme .level-road:before,body.game-theme .level-road:after{display:none!important}
body.game-theme.work .level-road button.road-node{position:static;inset:auto;transform:none!important;translate:none!important;width:100%;height:auto;min-height:160px!important;display:flex;flex-direction:row;align-items:center;gap:18px;padding:20px!important;background:#211a28!important;border:1px solid #a89bac!important;scale:1!important;box-sizing:border-box;text-align:left;border-radius:0!important}
body.game-theme .level-road .road-node-copy{position:static;inset:auto;transform:none;translate:none;min-width:0;max-width:none;width:auto;background:none!important;border:0!important;padding:0!important;color:#fff4df!important;box-shadow:none;text-align:left}
body.game-theme .level-road .road-node-copy b{font-size:22px;line-height:1.2}
body.game-theme .level-road .road-node-copy small{font-size:15px;line-height:1.4;color:#ddd1b4!important}
body.game-theme .level-road .road-difficulty{color:#f2c36f!important}
body.game-theme .level-road .checkpoint{position:relative;flex:0 0 60px;inset:auto;transform:none;translate:none}
body.game-theme .level-road .road-score{position:static;grid-column:1/-1;transform:none;translate:none;margin:0;width:auto;text-align:center}
/* Center board games in the area between stats and the plan. */
body.game-theme .campus-quest{left:var(--play-left);right:var(--play-right);width:calc(100vw - var(--play-left) - var(--play-right));max-width:760px;top:185px;bottom:24px;margin-inline:auto;transform:none;translate:none}
body.game-theme .memory-board,body.game-theme .maze-board,body.game-theme .ttt-board{margin-inline:auto}
/* Tray hit target cannot cover the dessert source. */
.meal-scene .meal-tray-target{z-index:1}
.meal-scene .meal-slots{pointer-events:none;z-index:3}
.meal-scene .meal-slot{pointer-events:auto}
.meal-scene .scene-dish{z-index:5;touch-action:none}
body.game-theme .tidy-challenge .scene-challenge-head{left:auto!important;right:var(--play-right);top:185px;width:260px!important;max-width:260px;max-height:235px}
/* Seat stars mark the actual chairs; no extra seat diagram. */
body.game-theme .date-game-screen button.date-seat-hotspot,
body.game-theme .date-game-screen button.date-seat-hotspot:hover,
body.game-theme .date-game-screen button.date-seat-hotspot.selected{border:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;outline:none}
.seat-star{position:absolute;left:50%;top:-24px;translate:-50% -50%;color:#f2c36f;font:700 32px/1 Arial,sans-serif;text-shadow:0 2px 3px #17131e;pointer-events:none}
.date-seat-hotspot:focus-visible .seat-star{outline:2px solid #fff4df;outline-offset:5px}
.date-seat-hotspot.selected .seat-star{color:#fff4df}
body.game-theme .seated-cinema-hall .scene-seated-actor{height:45%;width:auto;pointer-events:none}
body.game-theme .seated-cinema-hall .scene-seated-foreground{display:block;background-image:var(--summer-art);background-size:100% 100%;pointer-events:none;z-index:4}
.cinema-player{position:absolute;width:14%;transform:translateX(-50%);overflow:hidden;pointer-events:none;z-index:2}
.cinema-player>.player-avatar{position:absolute;inset:0 auto auto 0;width:100%;height:160%;max-height:none;aspect-ratio:1/2}
/* The LDS photo game uses the entire visible area and keeps both figures intact. */
body.game-theme .date-kind-park .scene-pan-viewport{overflow:hidden!important;touch-action:none}
body.game-theme .date-kind-park .scene-pan-canvas{width:100%;height:100%;min-width:0;background-size:cover;background-position:center}
body.game-theme .date-kind-park .date-photo-company{left:25%;right:35%;top:24%;height:44%;gap:8%}
body.game-theme .date-kind-park .date-photo-counter{left:43%;top:20%}
body.game-theme .date-kind-park .date-game-dialogue{width:min(660px,calc(100vw - var(--play-left) - var(--play-right)));max-height:none;overflow:visible}
body.game-theme .scene-fixed-room img{user-select:none;-webkit-user-drag:none}
/* Together in the scene, with one shared floor line. */
body.game-theme .pdnj-company{left:var(--play-left);right:var(--play-right);top:auto;bottom:32svh;height:min(45svh,calc((100vw - var(--play-left) - var(--play-right)) / var(--company-size,8) * 2.7));max-height:none;display:flex;flex-wrap:nowrap;align-items:flex-end;justify-content:center;gap:4px;overflow:visible;pointer-events:none}
body.game-theme .pdnj-company figure{position:relative;flex:1 1 0;width:auto;min-width:0;max-width:130px;height:100%;margin:0;overflow:visible;border:0}
body.game-theme .pdnj-company figure>img{position:absolute;left:50%;top:0;right:auto;bottom:0;width:auto;height:100%;max-width:none;object-fit:contain;object-position:center bottom;translate:-50% 0;transform:none}
body.game-theme .pdnj-company .company-club{flex:2.1 1 0;max-width:250px;width:auto;height:100%}
body.game-theme .pdnj-company .company-self>.player-avatar{position:absolute;left:50%;top:0;width:auto;height:100%;max-height:none;aspect-ratio:1/2;translate:-50% 0;overflow:visible}
body.game-theme .pdnj-company figcaption{bottom:-22px;padding:4px 2px;font-size:10px;line-height:1.2;white-space:normal}
body.game-theme .summer-screen:has(.pdnj-company)>.novel-figure{display:none!important}
/* The dean introduces directions inside the lecture room. */
body.game-theme .dean-showcase{position:fixed;top:125px;bottom:260px;left:var(--play-left);right:var(--play-right);height:auto;width:auto;min-height:0;max-height:none;overflow:hidden}
body.game-theme .dean-showcase .intro-dean{position:absolute;left:18%;top:0;bottom:auto;right:auto;width:auto;height:100%;max-width:none;max-height:none;transform:none;filter:none;animation:none;object-fit:contain}
body.game-theme .dean-bottom-dialogue{position:fixed;left:var(--play-left);right:var(--play-right);bottom:24px;top:auto;width:auto;max-width:none;margin:0;padding:24px;box-sizing:border-box;z-index:10}
@media(min-width:761px) and (max-width:1100px){
 body.game-theme.summer-enabled .summer-nav{grid-template-columns:repeat(3,106px)}
 body.game-theme.summer-enabled .summer-nav>button{width:106px!important;font-size:11px!important}
 body.game-theme.work .level-road button.road-node{min-height:140px!important;padding:16px!important;gap:12px}
 body.game-theme .level-road .road-node-copy b{font-size:19px}
}
@media(max-width:760px){
 :root{--play-left:12px;--play-right:12px}
 body.game-theme.summer-enabled .summer-nav{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,40px);top:auto;bottom:8px;left:10px;right:10px;gap:6px}
 body.game-theme.summer-enabled .summer-nav>button{width:100%!important;height:40px!important;min-height:40px!important;max-width:none!important;font-size:11px!important;flex:none;padding:5px!important}
 body.game-theme.summer-enabled .simulator-layout .walk-hud{top:213px;max-width:none}
 body.game-theme .scene-image-status{top:246px}
 body.game-theme.summer-enabled.work:not(.profile-isolated) #app{padding:220px 12px 115px!important}
 body.game-theme .levels-workspace .level-road{grid-template-columns:1fr;gap:12px}
 body.game-theme.work .level-road button.road-node{min-height:105px!important;padding:14px!important}
 body.game-theme .campus-quest{left:12px;right:12px;top:253px;bottom:108px;width:auto;max-width:none}
 body.game-theme .novel-dialogue,body.game-theme .simulator-layout .campus-talk,body.game-theme .campus-result{bottom:108px}
 body.game-theme .novel-dialogue,body.game-theme .simulator-layout .campus-talk{max-height:calc(100svh - 365px)}
 body.game-theme.summer-onboarding .novel-dialogue{bottom:20px;max-height:calc(57svh - 120px)}
 body.game-theme.summer-enabled .scene-play-controls,.floor-transit,body.game-theme .park-exit{bottom:108px}
 body.game-theme .romance-meet{bottom:108px!important}
 body.game-theme .summer-plan>ul{padding-bottom:110px}
 body.game-theme .tidy-challenge .scene-challenge-head{right:12px;top:250px;width:180px!important;max-width:180px;max-height:140px}
 body.game-theme .place-park [data-value="culture"]{left:32%;top:44%}
 body.game-theme .date-kind-cafe .date-game-dialogue,body.game-theme .date-kind-cinema .date-game-dialogue{top:213px;bottom:auto;max-height:175px}
 body.game-theme .date-kind-park .date-game-dialogue{left:12px;right:12px;top:auto;bottom:108px;width:auto;max-width:none;max-height:calc(100svh - 340px);overflow-y:auto}
 body.game-theme .date-kind-park .date-photo-company{left:20%;right:18%;top:29%;height:30%}
 body.game-theme .date-kind-park .date-photo-counter{top:25%;left:44%}
 body.game-theme .pdnj-company{left:12px;right:12px;top:225px;bottom:auto;height:min(29svh,calc((100vw - 24px) / var(--company-size,8) * 2.7));max-height:none;gap:2px;flex-wrap:nowrap;overflow:visible}
 body.game-theme .pdnj-company figure{height:100%;max-width:100px;min-width:0;width:auto}
 body.game-theme .pdnj-company figcaption{font-size:8px;bottom:-18px}
 body.game-theme .dean-showcase{top:208px;bottom:305px;left:12px;right:12px}
 body.game-theme .dean-bottom-dialogue{left:12px;right:12px;bottom:108px;padding:18px;max-height:calc(100svh - 350px);overflow:auto}
}
@media(max-width:900px) and (max-height:550px){
 :root{--v54-stats:142px;--play-left:166px;--play-right:12px}
 body.game-theme.summer-enabled .summer-nav{left:auto;right:12px;top:10px;bottom:auto;grid-template-columns:repeat(3,92px);grid-template-rows:repeat(2,36px);gap:5px}
 body.game-theme.summer-enabled .summer-nav>button{width:92px!important;height:36px!important;min-height:36px!important;font-size:10px!important}
 body.game-theme.summer-enabled.work:not(.profile-isolated) #app{padding:104px 12px 20px 166px!important}
 body.game-theme.summer-enabled .simulator-layout .walk-hud{top:100px}
 body.game-theme .campus-quest{top:144px;bottom:16px;left:166px;right:12px}
 body.game-theme .novel-dialogue,body.game-theme .simulator-layout .campus-talk{bottom:16px;max-height:calc(100svh - 130px);left:auto;right:12px;width:45vw}
 body.game-theme .date-kind-park .date-game-dialogue,body.game-theme .date-kind-cafe .date-game-dialogue,body.game-theme .date-kind-cinema .date-game-dialogue{left:auto;right:12px;top:100px;bottom:auto;width:38vw;max-height:calc(100svh - 116px);overflow:auto}
 body.game-theme.summer-enabled .scene-play-controls{bottom:16px}
 body.game-theme .dean-showcase{top:100px;bottom:100px}
 body.game-theme .dean-bottom-dialogue{left:40%;right:12px;bottom:16px;max-height:calc(100svh - 116px)}
}
@media(min-width:761px) and (max-width:900px){body.game-theme .levels-workspace .level-road{grid-template-columns:1fr}}
@media(min-width:761px){body.game-theme .summer-stats{top:120px;max-height:calc(100svh - 140px)}}
