/* v65: repairs preserve the original fonts, palette and sharp panel corners. */
body.game-theme .scene-background65{display:block!important;position:fixed!important;inset:0!important;width:100vw!important;height:100svh!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;z-index:0!important;pointer-events:none!important;opacity:1!important;filter:none!important}
body.game-theme .immersive-world:is(.place-track,.place-pool){position:fixed!important;inset:0!important;width:100vw!important;height:100svh!important;background:transparent!important;overflow:hidden!important}
body.game-theme .immersive-world:is(.place-track,.place-pool) .campus-backdrop img{object-fit:cover!important}
body.game-theme .immersive-world:is(.place-track,.place-pool) .campus-image-stage{z-index:2!important}
body.game-theme .immersive-world:is(.place-track,.place-pool) .room-backfill{display:block!important;position:fixed!important;inset:0!important;z-index:0!important;opacity:1!important}
body.game-theme .immersive-world:is(.place-track,.place-pool) .room-backfill img{width:100vw!important;height:100svh!important;object-fit:cover!important}
body.game-theme .pool-puzzle-panel{background:#211b29dc!important}
body.game-theme .pool-puzzle-slot.placed{pointer-events:auto!important;cursor:grab!important}
body.game-theme .pool-puzzle-slot.selected{outline:3px solid #edc478!important;outline-offset:-3px!important}
body.game-theme .pool-puzzle-slot:not(.placed){background-color:#6e859777!important}
body.game-theme .show-reference64 .pool-puzzle-slot:not(.placed){background-image:linear-gradient(#211b2955,#211b2955),url(assets/pool-empty-v53.webp)!important}
body.game-theme .pool-puzzle-panel footer>b{font-size:12px!important}
body.game-theme .pool-puzzle-panel footer button{white-space:normal!important}
/* City portraits use their complete intrinsic aspect ratio. */
body.game-theme .city-character{overflow:visible!important;display:flex!important;justify-content:center!important;align-items:flex-end!important;z-index:5}
body.game-theme .city-character>.player-avatar{position:relative!important;height:100%!important;width:auto!important;max-width:none!important;aspect-ratio:1/2!important;transform:none!important;translate:none!important;top:auto!important;left:auto!important}
body.game-theme .city-street .city-panel{z-index:20!important}
body.game-theme .admission-npc64{z-index:4!important;min-height:0!important;pointer-events:none!important}
body.game-theme .admission-npc64 img{display:block;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:bottom!important}
/* Three intact bouquets, with prices beneath the display instead of over the petals. */
body.game-theme .flowers65{position:fixed;left:var(--play-left);right:var(--play-right);top:var(--play-top);bottom:auto;max-width:850px;max-height:calc(100svh - var(--play-top) - var(--play-bottom));margin:auto;overflow:auto}
.bouquet-display65{display:block;width:min(100%,52.5svh);height:auto;margin:0 auto;object-fit:contain;pointer-events:none}
.bouquet-options65{width:min(100%,52.5svh);margin-left:auto!important;margin-right:auto!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
body.game-theme .bouquet-options65 button{min-width:0!important;white-space:normal!important;display:block!important;font-size:12px!important;padding:10px!important}
body.game-theme .flower-inventory65{min-height:18px;margin:8px 0!important}
.park-bed65{position:absolute;left:16%;top:78%;width:34%;height:8%;z-index:12;pointer-events:none;display:flex;align-items:flex-start;justify-content:center}
body.game-theme .park-bed65 button{pointer-events:auto;min-height:36px!important;padding:8px 14px!important;font-size:12px!important}
body.game-theme .park-flowers{display:none!important}
body.game-theme .bouquet-status{z-index:18!important}
body.game-theme .expanded-creator .creator-scroll{padding-bottom:10px!important}
@media(min-width:1000px) and (min-height:551px){
 body.game-theme.summer-mode .expanded-creator .creation-panel{left:42vw!important;right:5vw!important;top:104px!important;bottom:24px!important;width:auto!important;max-width:none!important}
 body.game-theme.summer-mode .expanded-creator .creation-preview{left:13vw!important;top:92px!important;width:27vw!important;height:calc(100svh - 112px)!important;bottom:auto!important;max-width:none!important;align-items:flex-end!important;overflow:visible!important}
 body.game-theme.summer-mode .expanded-creator .creation-preview>.player-avatar{height:100%!important;max-height:850px!important;max-width:none!important}
 /* Figures sit next to the central dialogue with the same visible floor baseline. */
 body.game-theme .dual-scene .uniform-figures>.duo-player{left:1.5%!important;width:27%!important}
 body.game-theme .dual-scene .uniform-figures>.duo-guest{right:1.5%!important;width:27%!important}
}
@media(max-width:760px) and (min-height:551px){
 body.game-theme .city-character{left:calc(var(--play-left) + 10px)!important;right:auto!important;top:calc(var(--play-top) + 10px)!important;bottom:var(--city-dialogue-bottom65,330px)!important;width:calc(100vw - var(--play-left) - var(--play-right) - 20px)!important;min-height:80px!important}
 body.game-theme .city-panel{bottom:var(--play-bottom)!important;left:var(--play-left)!important;right:var(--play-right)!important;width:auto!important;max-height:none!important}
 body.game-theme .city-panel h1{font-size:23px!important}
 body.game-theme .city-panel p{font-size:13px!important;line-height:1.4!important}
 body.game-theme .flowers65{padding:14px!important}.bouquet-display65,.bouquet-options65{width:min(100%,37.5svh)}.bouquet-options65{gap:6px}
 body.game-theme .pool-puzzle-panel footer{gap:8px!important}
 body.game-theme .pool-puzzle-panel footer button{flex-basis:auto!important;font-size:11px!important;min-height:36px!important}
 body.game-theme .pool-puzzle-panel footer span{flex-basis:100%!important}
 body.game-theme .park-bed65{position:fixed;left:14px;top:auto;bottom:240px;width:150px;height:40px;z-index:22}
 body.game-theme .park-bed65 button{font-size:10px!important;padding:6px!important}
}
@media(max-height:550px){body.game-theme .flowers65{padding:12px!important;max-width:800px}.bouquet-display65,.bouquet-options65{width:min(100%,37.5svh)}.flowers65 h1{font-size:23px!important}.flowers65 p{margin-bottom:5px!important}.bouquet-options65{margin:6px 0;gap:8px}}
@media(max-width:760px) and (min-height:551px){
 /* Park exits share a clear area between the heading and lower navigation. */
 body.game-theme .place-park.is-world .campus-hotspots{position:fixed!important;left:14px!important;right:14px!important;top:315px!important;bottom:300px!important;width:auto!important;height:auto!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:15px 12px!important;z-index:8!important}
 body.game-theme .place-park.is-world .campus-hotspots>.scene-target{position:relative!important;left:auto!important;top:auto!important;width:100%!important;height:100%!important;min-height:62px!important;min-width:0!important}
 body.game-theme .place-park.is-world .target-label{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box;left:50%!important;bottom:40px!important;padding:5px!important;font-size:10px!important;opacity:1!important;box-shadow:none!important}
 body.game-theme .place-park.is-world .target-marker{bottom:2px!important}
}
@media(max-width:760px) and (min-height:551px){
 body.game-theme .flowers65{padding:12px!important}
 body.game-theme .flowers65>.novel-speaker{display:none!important}
 body.game-theme .flowers65 h1{font-size:23px!important;margin:0 0 8px!important}
 body.game-theme .flowers65 p{font-size:12px!important;line-height:1.3!important;margin:0 0 8px!important;min-height:0!important}
 body.game-theme .flowers65 .bouquet-display65{width:min(100%,28.5svh,calc((100svh - var(--play-top) - var(--play-bottom) - 240px) * 1.5))!important;min-width:120px}
 body.game-theme .flowers65 .bouquet-options65{width:100%!important;margin:8px 0!important}
 body.game-theme .flowers65 .flower-inventory65:empty{display:none!important}
 body.game-theme .flowers65 .actions{margin-top:8px!important;flex-wrap:nowrap!important;gap:8px!important}
 body.game-theme .flowers65 .actions button{flex:1;min-height:38px!important}
}
@media(max-height:550px){body.game-theme .park-bed65{position:fixed!important;left:calc(var(--play-left) + 14px)!important;top:auto!important;bottom:90px!important;width:150px!important;height:40px!important;z-index:22!important}}
@media(max-height:550px){
 body.game-theme .flowers65{display:grid!important;grid-template-columns:140px minmax(0,1fr);gap:7px 12px!important;padding:12px!important}
 body.game-theme .flowers65>.novel-speaker,body.game-theme .flowers65>.flower-inventory65:empty{display:none!important}
 body.game-theme .flowers65 h1{grid-column:2;grid-row:1;font-size:22px!important;margin:0!important}
 body.game-theme .flowers65>p{grid-column:2;grid-row:2;font-size:11px!important;line-height:1.3!important;margin:0!important;min-height:0!important}
 body.game-theme .flowers65>.flower-inventory65{grid-row:4}
 body.game-theme .flowers65>.bouquet-display65{grid-column:1;grid-row:1 / 6;width:140px!important;max-height:none!important;align-self:center}
 body.game-theme .flowers65>.bouquet-options65{grid-column:2;grid-row:3;width:100%!important;margin:0!important;gap:6px!important}
 body.game-theme .flowers65 .bouquet-options65 button{font-size:10px!important;min-height:34px!important;padding:6px!important}
 body.game-theme .flowers65>.actions{grid-column:2;grid-row:5;margin:0!important;gap:8px!important;flex-wrap:nowrap!important}
 body.game-theme .flowers65>.actions button{flex:1;min-height:32px!important;font-size:10px!important;padding:7px!important}
}
@media(max-height:550px){
 body.game-theme .pool-puzzle-tray{height:100%!important;max-height:100%!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:4px!important;align-content:stretch!important;align-items:stretch!important}
 body.game-theme .pool-puzzle-tray .pool-puzzle-piece{width:100%!important;height:100%!important;aspect-ratio:auto!important;min-height:0!important}
 body.game-theme .pool-puzzle-panel footer{flex-wrap:nowrap!important;gap:8px!important}
 body.game-theme .pool-puzzle-panel footer>span{font-size:10px!important}
 body.game-theme .pool-puzzle-panel footer button{font-size:10px!important;min-height:32px!important;padding:6px 8px!important;flex:none!important}
 body.game-theme .pool-puzzle-panel footer>b{font-size:10px!important;max-width:90px}
}
