/* Fullscreen presentation for the four classic Arcade games. */
#arcade-game[data-fullscreen] .fullscreen-version{display:none}
#arcade-game[data-fullscreen] .fullscreen-dialog{display:none;border:0;padding:0}
#arcade-game[data-fullscreen]:fullscreen{width:100%;height:100%;max-width:none!important;background:#08100c;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
#arcade-game[data-fullscreen]:-webkit-full-screen{width:100%;height:100%;max-width:none!important;background:#08100c}
#arcade-game[data-fullscreen] .fullscreen-dialog[open]{display:block;position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;overflow:hidden;color:#eff8ee;background:#08100c;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
#arcade-game[data-fullscreen] .fullscreen-dialog::backdrop{background:#08100c}
#arcade-game[data-fullscreen].is-expanded .terminal{display:flex;flex-direction:column;width:100%;height:100%;max-width:none;max-height:none;min-height:0;border:0}
#arcade-game[data-fullscreen].is-expanded .terminal>*{flex-shrink:0}
#arcade-game[data-fullscreen].is-expanded .terminal-top{height:auto;min-height:44px;flex-wrap:wrap;gap:0 10px;padding:0 10px}
#arcade-game[data-fullscreen].is-expanded .runtime-indicator{height:24px;min-height:24px;width:auto;font-size:8px}
#arcade-game[data-fullscreen].is-expanded .fullscreen-version{display:inline;font-size:8px}
#arcade-game[data-fullscreen].is-expanded .terminal-actions{height:44px;width:auto;margin-left:auto;gap:8px;justify-content:space-between}
#arcade-game[data-fullscreen] .terminal-actions .text-button{min-height:44px}
#arcade-game[data-fullscreen].is-expanded .game-area{flex:none;min-height:0;max-height:none;max-width:100%;aspect-ratio:auto;margin:auto;align-self:center}
#arcade-game[data-fullscreen].is-expanded #game{width:100%;height:100%;aspect-ratio:auto}
#arcade-game[data-fullscreen].is-expanded .hud{grid-template-columns:repeat(4,minmax(0,1fr))}
#arcade-game[data-fullscreen].is-expanded .hud-cell{padding:5px 8px;gap:2px}
#arcade-game[data-fullscreen].is-expanded .hud-label{font-size:7px;line-height:10px}
#arcade-game[data-fullscreen].is-expanded .hud-value{font-size:18px;line-height:20px}
#arcade-game[data-fullscreen].is-expanded .touch-controls{display:flex;min-height:0;padding:6px;gap:6px;justify-content:space-around;flex-wrap:nowrap}
#arcade-game[data-fullscreen].is-expanded .touch-button{min-height:44px;height:48px;width:48px}
#arcade-game[data-fullscreen].is-expanded .fire-button{width:64px}
#arcade-game[data-fullscreen].is-expanded .direction-pad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:3px}
#arcade-game[data-fullscreen].is-expanded .direction-pad .touch-button{width:44px;height:44px}
#arcade-game[data-fullscreen].is-expanded .control-cluster,#arcade-game[data-fullscreen].is-expanded .touch-left{gap:5px}
#arcade-game[data-fullscreen].is-expanded .control-right,#arcade-game[data-fullscreen].is-expanded .touch-right{margin:0;gap:5px}
#arcade-game[data-fullscreen].is-expanded .pad-caption,#arcade-game[data-fullscreen].is-expanded .touch-guide,#arcade-game[data-fullscreen].is-expanded .touch-helper,#arcade-game[data-fullscreen].is-expanded .control-right>span,#arcade-game[data-fullscreen].is-expanded .touch-right>span,#arcade-game[data-fullscreen].is-expanded .terminal-bottom{display:none}
#arcade-game[data-fullscreen].is-expanded #game-announcement{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){
 #arcade-game[data-fullscreen].is-expanded .terminal-actions{width:100%;margin:0}
 #arcade-game[data-fullscreen].is-expanded .touch-right>strong{display:none}
 #arcade-game[data-fullscreen].is-expanded .control-symbol{font-size:20px}
}
@media(max-height:500px){
 #arcade-game[data-fullscreen].is-expanded .runtime-indicator{height:20px;min-height:20px}
 #arcade-game[data-fullscreen].is-expanded .terminal-top{min-height:44px}
 #arcade-game[data-fullscreen].is-expanded .overlay-art,#arcade-game[data-fullscreen].is-expanded .overlay-ship,#arcade-game[data-fullscreen].is-expanded .overlay-illustration,#arcade-game[data-fullscreen].is-expanded .pixel-snake,#arcade-game[data-fullscreen].is-expanded .pixel-invader,#arcade-game[data-fullscreen].is-expanded .overlay-hint,#arcade-game[data-fullscreen].is-expanded .overlay-eyebrow,#arcade-game[data-fullscreen].is-expanded #overlay-description{display:none}
 #arcade-game[data-fullscreen].is-expanded .overlay-content h2{font-size:22px;line-height:1.1;margin:0 0 5px}
 #arcade-game[data-fullscreen].is-expanded .screen-overlay{padding:4px}
 #arcade-game[data-fullscreen].is-expanded .start-button{min-height:44px;padding:6px 12px;font-size:10px}
 #arcade-game[data-fullscreen].is-expanded .screen-topline,#arcade-game[data-fullscreen].is-expanded .screen-bottomline{display:none}
}

@media(min-width:600px) and (max-height:500px){
 #arcade-game[data-fullscreen].is-expanded .terminal{display:grid;grid-template-columns:minmax(0,1fr) 180px;grid-template-rows:auto auto minmax(0,1fr)}
 #arcade-game[data-fullscreen].is-expanded .terminal-top{grid-column:1/-1;grid-row:1}
 #arcade-game[data-fullscreen].is-expanded .game-area{grid-column:1;grid-row:2/4;justify-self:center}
 #arcade-game[data-fullscreen].is-expanded .hud{grid-column:2;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));align-self:start}
 #arcade-game[data-fullscreen].is-expanded .touch-controls{grid-column:2;grid-row:3;align-self:start;flex-wrap:wrap;align-content:start}
 #arcade-game[data-fullscreen].is-expanded .touch-right>strong{display:none}
}
