.astro-game-bar,.astro-game-edge,.astro-game-drawer{display:none}
@media(max-width:1024px){
  html[data-arena-mode] body.game-settings-ready{padding-bottom:env(safe-area-inset-bottom)!important;min-width:0}
  .game-settings-ready .ioaa-links{display:none!important}
  html[data-arena-mode="ioaa"] .game-settings-ready .ioaa-navigation,.game-settings-ready .obs-app-header{position:static!important;min-height:56px!important;height:auto!important;padding:6px 12px!important}
  .game-settings-ready .obs-app-header nav,.game-settings-ready .obs-brand__copy small{display:none!important}
  .game-settings-ready .obs-app-header{display:flex;flex-wrap:wrap;gap:6px}.game-settings-ready .obs-app-header__actions{margin-left:auto;gap:4px}
  .game-settings-ready .v39-mobile-dock,.game-settings-ready .ioaa-mobile-nav,.game-settings-ready .obs-game-hud,.game-settings-ready .obs-game-tools,.game-settings-ready #mobileSettings,.game-settings-ready #settingsButton{display:none!important}
  .game-settings-ready .topbar,.game-settings-ready .measurement-topbar,.game-settings-ready .app-header,.game-settings-ready .v39-header,.game-settings-ready .ioaa-header{position:static!important;min-height:0!important;height:auto!important;padding:8px 12px!important}
  .game-settings-ready .topbar-actions,.game-settings-ready .top-actions,.game-settings-ready .measurement-actions{gap:4px;min-width:0}
  .game-settings-ready .player-friends,.game-settings-ready .player-chat,.game-settings-ready .player-streak,.game-settings-ready .player-settings,.game-settings-ready .player-copy,.game-settings-ready .player-logout,.game-settings-ready .topbar .library-button,.game-settings-ready .topbar nav{display:none!important}
  .game-settings-ready .ioaa-header-actions{gap:4px!important}
  .game-settings-ready .workspace,.game-settings-ready .measurement-layout{grid-template-columns:minmax(0,1fr)!important}
  .game-settings-ready .chart-column,.game-settings-ready .measurement-main,.game-settings-ready .observing-main{padding-bottom:24px!important;min-width:0}
  .game-settings-ready .chart-column{padding-top:14px!important}
  .game-settings-ready .observing-intro{margin-bottom:12px;padding-top:12px}
  .game-settings-ready .observing-intro>div>p:not(.observing-kicker),.game-settings-ready .observing-personal{display:none}
  .astro-game-bar{display:flex;position:sticky;top:0;z-index:850;align-items:center;justify-content:space-between;gap:8px;padding:4px 12px;background:#091814;border-bottom:1px solid #29473c;min-height:52px;color:#d8eee5}
  .astro-game-status{font:12px 'DM Mono',monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .astro-game-settings-trigger,.astro-game-edge{border:1px solid #456f5f;background:#123027;color:#b3f0d4;cursor:pointer;font:600 12px 'Manrope',sans-serif;min-height:44px;border-radius:10px;padding:8px 12px;flex-shrink:0}
  .astro-game-edge{display:block;position:fixed;z-index:860;right:0;top:43%;border-radius:10px 0 0 10px;padding:6px;writing-mode:vertical-rl;min-width:44px;min-height:64px}
  .game-drawer-open{overflow:hidden!important}
  .game-drawer-open .astro-game-edge,.game-keyboard-open .astro-game-edge{display:none}
  dialog.astro-game-drawer[open]{box-sizing:border-box;display:flex;flex-direction:column;position:fixed;inset:var(--game-viewport-top,0px) 0 auto auto;margin:0;padding:0;width:min(360px,90vw);max-width:90vw;height:var(--game-viewport-height,100dvh);max-height:100dvh;border:0;border-left:1px solid #365c4c;border-radius:18px 0 0 18px;background:#091814;color:#e2f1e8;box-shadow:-12px 0 50px #0007;overflow:hidden;font-family:'Manrope',sans-serif}
  .astro-game-drawer::backdrop{background:#01090799}
  .astro-game-drawer>header{display:flex;flex:none;justify-content:space-between;align-items:center;gap:8px;padding:calc(12px + env(safe-area-inset-top)) 14px 12px;border-bottom:1px solid #29473c}
  .astro-game-drawer h2{font-size:17px;margin:0}.astro-game-drawer h3{font-size:13px;margin:0 0 12px}
  .astro-game-drawer button,.astro-game-drawer select,.astro-game-drawer input:not([type=checkbox]):not([type=range]){min-height:44px;font-size:14px;max-width:100%}
  .astro-game-drawer button{border:1px solid #365c4c;background:#10271f;color:#bcebd1;padding:8px 10px;border-radius:7px;cursor:pointer}
  .game-drawer-scroll{overflow-y:auto;overscroll-behavior:contain;padding:14px 16px calc(24px + env(safe-area-inset-bottom));min-height:0}
  .game-drawer-scroll>section,.game-drawer-scroll>nav{padding:18px 0;border-bottom:1px solid #29473c}
  .game-drawer-scroll>nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .game-drawer-scroll a{color:#b7ddcb;display:flex;align-items:center;min-height:44px;text-decoration:none;font-size:13px}
  .astro-game-drawer #controlPanel,.astro-game-drawer .measurement-controls{display:block!important;position:static!important;width:auto!important;max-width:none;transform:none!important;visibility:visible!important;height:auto!important;max-height:none!important;margin:0;padding:0!important;border:0;box-shadow:none;background:transparent;overflow:visible}
  .astro-game-drawer .control-panel section{padding:18px 0;margin:0}
  .astro-game-drawer .observing-settings,.astro-game-drawer .observing-target-fields,.astro-game-drawer .observing-guides,.astro-game-drawer .observing-games,.astro-game-drawer .heading-actions{display:grid!important;grid-template-columns:1fr!important;gap:12px;width:100%;margin:0 0 18px;padding:12px 0;border:0}
  .astro-game-drawer fieldset{min-width:0}.astro-game-drawer .observing-target-settings{margin:0}.astro-game-drawer .observing-target-settings fieldset{padding:12px 0;border:0}
  .astro-game-drawer .setup-card{width:100%;padding:12px 0;border:0;box-shadow:none;background:transparent}.astro-game-drawer .setup-card h2{font-size:16px}.astro-game-drawer .setup-card #startGame,.astro-game-drawer .setup-card .setup-kicker{display:none}.astro-game-drawer .setup-card .magnitude-picker{grid-template-columns:1fr 1fr}.astro-game-drawer .setup-card .magnitude-picker>span{display:none}
  .game-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;font-size:13px}
  .game-switch input[type=checkbox],.astro-game-drawer .observing-guides input{appearance:none;width:38px;height:22px!important;min-height:22px!important;border-radius:20px;background:#456257;border:2px solid #456257;flex-shrink:0;position:relative}
  .astro-game-drawer .switch{height:44px;min-width:44px}.astro-game-drawer .switch>span{top:12px;bottom:12px}
  .game-switch input:before,.astro-game-drawer .observing-guides input:before{content:'';position:absolute;left:1px;top:1px;width:16px;height:16px;border-radius:50%;background:#e1f4e9}
  .game-switch input:checked,.astro-game-drawer .observing-guides input:checked{background:#257a5d;border-color:#257a5d}.game-switch input:checked:before,.astro-game-drawer .observing-guides input:checked:before{left:17px}
  .game-view-buttons{display:grid;grid-template-columns:44px 44px 1fr;gap:8px}
  .astro-game-drawer [hidden]{display:none!important}.astro-game-drawer :focus-visible{outline:2px solid #9ff2cd;outline-offset:3px}
  .game-settings-ready input:not([type=checkbox]):not([type=range]),.game-settings-ready select{font-size:16px!important}
  .game-settings-ready .sky-card{min-height:240px!important;height:clamp(240px,48svh,480px)!important}
  .game-settings-ready .answer-panel,.game-settings-ready .feedback{position:relative;bottom:auto}
  .game-settings-ready .astro-library-review,.game-settings-ready .astro-guest-notice{bottom:calc(12px + env(safe-area-inset-bottom))!important;max-width:calc(100% - 24px)}
  .game-keyboard-open .astro-game-bar{position:static}.game-keyboard-open .astro-library-review,.game-keyboard-open .astro-guest-notice,.game-settings-ready .pwa-install{display:none!important}
  .game-settings-ready .setup-overlay{z-index:950}
}
