/* v57: retain the game's palette, fonts and sharp corners. */
body.game-theme .player-avatar .avatar-composite{display:block;position:absolute;left:0;top:0;width:100%;height:auto;aspect-ratio:1/2;line-height:0;pointer-events:none}
body.game-theme .player-avatar .avatar-composite>.avatar-base,
body.game-theme .player-avatar .avatar-composite>.avatar-color{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:fill;mask-size:100% 100%!important;-webkit-mask-size:100% 100%!important}
body.game-theme .avatar-tied-clean .avatar-composite>.avatar-base{clip-path:inset(17.5% 0 0 0)}
body.game-theme .avatar-tied-clean .avatar-composite>.avatar-hair{display:none}
body.game-theme .illustrated-avatar .avatar-composite>.avatar-replacement-head{position:absolute;top:2.1%;left:50%;translate:-50% 0;height:17.2%;width:auto;aspect-ratio:377/600;display:block;z-index:1}
body.game-theme .avatar-tied-clean .avatar-composite>.avatar-clothes,
body.game-theme .avatar-tied-clean .avatar-composite>.avatar-pants{z-index:2}
body.game-theme .profile-avatar{overflow:hidden}
body.game-theme .profile-avatar .player-avatar{position:relative;display:block;width:100%!important;height:100%!important;aspect-ratio:1;overflow:hidden}
body.game-theme .player-avatar .avatar-composite>img{display:block;pointer-events:none;-webkit-user-drag:none;user-select:none}
/* One background plane per room. No secondary photograph underneath the scene. */
body.game-theme .scene-fixed-room{height:100svh;min-height:100svh;background:none!important;padding:0!important;overflow:hidden}
body.game-theme .scene-fixed-room:before,body.game-theme .scene-fixed-room:after{display:none!important}
body.game-theme .scene-fixed-room .scene-pan-viewport{overflow:hidden!important;touch-action:none;user-select:none;-webkit-user-select:none}
body.game-theme .scene-fixed-room .scene-pan-canvas{overflow:hidden;transform:none;translate:none}
body.game-theme .scene-seated-actor{pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none}
body.game-theme .scene-fixed-room img{user-select:none;-webkit-user-drag:none}
body.game-theme .scene-fixed-room .novel-dialogue{touch-action:pan-y}
body.game-theme .scene-fixed-room .scene-seated-actor img{pointer-events:none}
body.game-theme .relationship-caution{font-size:13px!important;line-height:1.4!important;color:#b9aebb!important;margin:-4px 0 15px!important}
/* Reset, profile, map and plan form a single equal-size toolbar. */
body.game-theme.summer-enabled #game-header .header-actions{display:none!important}
body.game-theme.profile-isolated #game-header .header-actions{display:flex!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{transform:none!important;rotate:none!important}
body.game-theme #game-header button.profile-open>svg{transform:none!important;rotate:none!important}
body.game-theme.summer-enabled .summer-nav{position:fixed;left:auto;right:calc(var(--summer-plan-width) + 22px);top:20px;bottom:auto;width:auto;flex-direction:row;flex-wrap:nowrap;gap:8px;align-items:center;z-index:28}
body.game-theme.summer-enabled .summer-nav>button{display:flex;align-items:center;justify-content:center;gap:7px;flex:none;width:132px;max-width:132px;min-width:0;height:42px!important;min-height:42px!important;padding:7px 8px!important;box-sizing:border-box;font-size:12px!important;line-height:1.2!important;transform:none!important;rotate:none!important;border-radius:0!important;white-space:normal}
.summer-nav .toolbar-profile svg{width:20px;height:20px;flex:none;transform:none}
body.game-theme.summer-enabled .summer-nav>.journey-back{position:absolute;left:0;right:auto;top:calc(100% + 10px);bottom:auto}
body.game-theme.summer-enabled .summer-nav>.resume-date{position:absolute;right:0;top:calc(100% + 10px);width:180px;max-width:180px}
body.game-theme.summer-enabled .simulator-layout .walk-hud{left:calc(var(--v54-stats) + 38px)!important;right:calc(var(--summer-plan-width) + 24px)!important;top:106px;max-width:600px}
body.game-theme .walk-hud .walk-heading{position:static!important;inset:auto!important;transform:none!important;margin:0;max-width:100%}
/* Native table props sit on the tabletop, with one drink by each chair. */
body.game-theme .date-game-screen button.date-table-item{background:transparent!important;border:0!important;box-shadow:none!important;position:absolute;left:var(--date-x);top:var(--date-y);width:8%;height:14%;min-height:0!important;padding:0!important;translate:-50% -100%;transform:none!important;touch-action:none;z-index:4}
body.game-theme .date-game-screen button.date-table-item.date-dessert{width:12%;height:12%}
body.game-theme .date-table-item:before,body.game-theme .date-table-item:after{display:none!important}
body.game-theme .date-game-screen .date-table-item.selected{outline:2px dashed #f2c36f;outline-offset:3px}
body.game-theme .date-game-screen button.date-table-spot{width:10%;height:4.2%;min-height:0!important;background:#fff4dc22!important;border:2px dashed #f2c36f!important;box-shadow:none!important;translate:-50% -50%;transform:none!important;padding:0!important;z-index:3}
.date-table-spot>span{position:absolute;bottom:calc(100% + 8px);left:50%;translate:-50% 0;width:140px;max-width:none;padding:4px 6px;background:#17131ee8;border:0;font:700 13px/1.25 Arial,sans-serif;pointer-events:none}
body.game-theme button.date-drag-preview{position:fixed!important;inset:auto!important;width:110px!important;height:140px!important;translate:-50% -70%!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;z-index:100;pointer-events:none}
.date-drag-preview img{width:100%;height:100%;object-fit:contain}
/* Hotspots follow the real seat backs instead of drawing a second row of icons. */
.date-seat-map{position:absolute;inset:0;pointer-events:none}
body.game-theme .date-game-screen button.date-seat-hotspot{position:absolute;translate:-50% -50%;pointer-events:auto;min-height:0!important;padding:0!important;background:transparent!important;border:2px solid transparent!important;box-shadow:none!important;transform:skewY(-3deg)!important;border-radius:0!important}
body.game-theme .date-game-screen button.date-seat-hotspot:hover,
body.game-theme .date-game-screen button.date-seat-hotspot:focus-visible{background:#f2c36f18!important;border-color:#f2c36fa0!important;outline:none}
body.game-theme .date-game-screen button.date-seat-hotspot.selected{background:#f2c36f26!important;border-color:#f2c36f!important}
/* Both figures share the scene's coordinates and retain their complete silhouettes. */
body.game-theme .date-photo-company{left:28%;right:47%;top:28%;height:42%;gap:9%;pointer-events:none}
body.game-theme .date-photo-company>div{height:100%;width:45%;overflow:visible}
body.game-theme .date-photo-company>div .player-avatar{position:absolute;left:50%;top:0;translate:-50% 0;width:auto;height:100%;aspect-ratio:1/2}
body.game-theme .date-photo-company>div>img{height:100%;width:auto;max-width:none;top:0;left:50%;translate:-50% 0;object-fit:contain}
body.game-theme .date-photo-counter{left:39%;top:23%}
body.game-theme .date-kind-park .date-game-dialogue{width:420px;max-width:calc(100vw - var(--summer-plan-width) - var(--v54-stats) - 62px)}
body.game-theme button.date-shutter{min-height:78px!important;width:100%;display:flex;align-items:center;justify-content:center;gap:18px;font-size:17px!important}
.shutter-squares{position:relative;width:62px;height:62px;display:block;flex:none}
.shutter-squares i,.shutter-squares b{display:block;position:absolute;inset:12px;border:3px solid #e8d5b8;border-radius:0;box-sizing:border-box}
.shutter-squares b{border-color:#f2c36f;transform:translateX(var(--focus-offset,0px))}
.date-shutter.ready .shutter-squares i{border-color:#f2c36f}
@media(min-width:761px) and (max-width:1100px){
 body.game-theme.summer-enabled .summer-nav>button{width:108px;max-width:108px;font-size:11px!important}
 body.game-theme.summer-plan-open #game-header .brand>span:not(.brand-icon){display:none}
}
@media(max-width:760px){
 body.game-theme.summer-enabled .summer-nav{top:auto;bottom:10px;left:10px;right:10px;width:auto;gap:6px;z-index:47}
 body.game-theme.summer-enabled .summer-nav>button{flex:1;width:0;min-width:0;max-width:none;height:42px!important;min-height:42px!important;padding:5px 3px!important;font-size:10px!important;gap:3px}
 .summer-nav .toolbar-profile svg{width:16px;height:16px}
 body.game-theme.summer-enabled .summer-nav>.journey-back{top:auto;bottom:calc(100% + 8px);left:0;width:94px;max-width:94px}
 body.game-theme.summer-enabled .summer-nav>.resume-date{top:auto;bottom:calc(100% + 8px);width:170px;max-width:170px;right:0}
 body.game-theme.summer-enabled .simulator-layout .walk-hud{left:12px!important;right:12px!important;top:213px}
 body.game-theme .scene-fixed-room .scene-pan-viewport{overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x}
 body.game-theme .date-photo-company{left:40%;right:38%;top:29%;height:34%}
 body.game-theme .date-kind-cafe .date-game-dialogue,body.game-theme .date-kind-cinema .date-game-dialogue{top:213px;max-height:165px}
 body.game-theme .date-kind-park .date-game-dialogue{left:12px;right:12px;width:auto;max-width:none;top:auto;bottom:75px;max-height:230px}
 body.game-theme .date-photo-counter{top:25%;left:43%}
 body.game-theme button.date-shutter{min-height:72px!important;font-size:15px!important}
}
@media(max-width:900px) and (max-height:550px){
 body.game-theme.summer-enabled .summer-nav{top:10px;bottom:auto;left:auto;right:10px;gap:5px}
 body.game-theme.summer-enabled .summer-nav>button{width:90px;max-width:90px;flex:none;font-size:10px!important;height:36px!important;min-height:36px!important}
 body.game-theme.summer-enabled .simulator-layout .walk-hud{top:152px}
 body.game-theme .date-kind-cafe .date-game-dialogue,body.game-theme .date-kind-cinema .date-game-dialogue,body.game-theme .date-kind-park .date-game-dialogue{left:auto;right:12px;top:152px;bottom:auto;width:32vw;max-height:calc(100svh - 178px)}
}

@media(max-width:760px){body.game-theme .date-table-item:not(.placed){--date-y:89%!important}body.game-theme .date-table-item:not(.placed)[data-value="compote"]{--date-x:45%!important}body.game-theme .date-table-item:not(.placed)[data-value="tea"]{--date-x:52%!important}body.game-theme .date-table-item:not(.placed)[data-value="cookie"]{--date-x:59%!important}}
