*{box-sizing:border-box}body{margin:0;background:#162c20;color:#fff8e9;font-family:system-ui,sans-serif;height:100dvh;display:flex;flex-direction:column;overflow:hidden}header{height:50px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 15px}a{display:flex;align-items:center;gap:7px;color:inherit;text-decoration:none;font:700 21px Georgia,serif}a img{width:21px;height:25px}a span{font:500 10px system-ui;margin-left:8px;color:#bfceb7}h1{font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}button{color:inherit;background:none;border:0;font-size:27px;min-width:44px;min-height:44px;cursor:pointer}iframe{border:0;width:100%;flex:1;min-height:0;background:#f5f4ec}iframe:fullscreen{width:100vw;height:100dvh}@media(max-width:430px){header{padding:0 8px;gap:5px}a span{display:none}a{font-size:20px}}@media(pointer:coarse) and (orientation:landscape){
 body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}
 header{height:36px;padding:0 8px;gap:8px}header a{font-size:18px}header a img{width:17px;height:20px}header a span{display:none}header h1{font-size:11px}header button{min-height:36px;font-size:23px}
}

header .play-profile{font:600 11px system-ui;max-width:90px;overflow:hidden;text-overflow:ellipsis;margin-left:auto;min-height:36px;flex-shrink:0}header h1{margin-right:auto}@media(max-width:380px){header .play-profile{max-width:65px;font-size:10px}}

/* iPhone can expand the game inside Safari when native fullscreen is unavailable. */
body.game-expanded{height:100dvh;padding:0}
body.game-expanded header{display:none}
body.game-expanded #game-frame{flex:1;width:100%;height:100%;min-height:0}
#fullscreen-exit{position:fixed;z-index:100;right:max(8px,env(safe-area-inset-right));top:max(5px,env(safe-area-inset-top));min-height:36px;padding:5px 10px;border:1px solid #fff6;border-radius:12px;background:#162c20e8;color:#fff8e9;font:600 12px system-ui;touch-action:manipulation}
#fullscreen-exit[hidden]{display:none}
body.game-focused{height:100dvh;padding:0}
body.game-focused>header,body.game-focused #fullscreen-exit{display:none}
body.game-focused #game-frame{width:100%;height:100%;min-height:0}
