/* Dedicated game shell; the shared realm styles and HUD retain their original behavior. */
html,html.touch-device{width:100%;height:100%;overflow:hidden;background:#111f25}
body.resona-play-body,html.touch-device body.resona-play-body{margin:0;display:flex;flex-direction:column;height:100dvh;min-height:0;width:100%;overflow:hidden;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#111f25;color:#e5d9be;font-family:system-ui,sans-serif}
.resona-play-body [hidden]{display:none!important}
.play-top{flex:none;min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 14px;background:#182b33;border-bottom:1px solid #766c4f;color:#f0dfb7}
.play-brand{font:700 18px Georgia,serif;letter-spacing:.12em;color:#edd49a;white-space:nowrap;text-decoration:none}
.play-brand span{font:10px system-ui;letter-spacing:.2em}
.play-top p{margin:0;font-size:12px;color:#c5c8b7;flex:1;text-align:center}
.play-top nav{display:flex;align-items:center;gap:8px;flex:none}
.play-top nav a,.play-top button,.play-gate button,.play-gate a{border:1px solid #8c8062;border-radius:3px;padding:7px 12px;background:#263f46;color:#f2dfb5;font:600 12px system-ui;text-decoration:none;cursor:pointer;white-space:nowrap}
#play-main{position:relative;flex:1;min-height:0;min-width:0;overflow:hidden;width:100%;display:flex}
.play-gate{margin:auto;max-width:540px;padding:30px;text-align:center}
.play-gate h1{font:400 36px Georgia,serif;color:#ecd6a2}
.play-gate p{line-height:1.6;color:#c6ccca}
.play-gate button,.play-gate a{display:inline-block;margin:8px}
.standalone-realm-window.retro-window{position:relative!important;inset:auto!important;transform:none!important;display:flex;flex:1;flex-direction:column;width:100%!important;height:100%!important;min-height:0!important;min-width:0!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#111f25;overflow:hidden}
.standalone-realm-window>.retro-window-content{display:flex;flex:1;min-height:0;min-width:0;overflow:auto;padding:0!important;background:#111f25}
.standalone-realm-window #realm-panel{width:100%;height:100%;max-width:none!important;min-width:0;min-height:0;margin:0;padding:0;display:block}
.standalone-realm-window #realm-panel:not(:has(#realm-play:not([hidden]))) {overflow:auto}
.standalone-realm-window .realm-shell{border:0;box-shadow:none;margin:0;min-height:100%;background:#111f25;color:#e5d9be}
.standalone-realm-window .realm-banner{color:#e5d9be;background:transparent}
.standalone-realm-window .realm-shell>button[data-retro-open="games"],.standalone-realm-window #realm-settings-drawer>button[data-retro-open="games"]{display:none}
.standalone-realm-window #realm-join{margin:12px auto;max-width:min(1100px,96%)}
.standalone-realm-window:has(#realm-play:not([hidden]))>.retro-window-content{overflow:hidden!important}
.standalone-realm-window #realm-panel:has(#realm-play:not([hidden])) .realm-shell{min-height:0}
@media(max-width:640px){.play-top{padding:4px 6px;gap:5px;min-height:42px}.play-brand{font-size:13px;letter-spacing:.04em}.play-brand span{display:none}.play-top p{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.play-top nav{gap:3px}.play-top nav a,.play-top button{padding:8px 5px;font-size:11px;min-height:36px}}
@media(max-width:420px){.play-top nav a{display:none}}
