* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #07151b; color: #edf7ff; font-family: 'Source Sans 3', sans-serif; }
#game-shell { position: fixed; inset: 0; background: radial-gradient(circle at 50% 28%, #174451, #07151b 62%, #040b10 100%); }
#gameCanvas { display: block; width: 100%; height: 100%; cursor: pointer; touch-action: none; }
.GameHud { position: fixed; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 1.1rem 1.4rem; pointer-events: none; }
.GameHud h1 { margin: 0; color: #f7fbff; font-family: 'Cinzel', serif; font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: .04em; text-shadow: 0 0 16px rgba(115, 245, 229, .35); }
#game-subtitle { margin: .2rem 0 0; color: #b7e3ed; font-size: .95rem; }
.GameStats { display: flex; gap: 1.2rem; padding-top: .5rem; color: #d7f5ff; font-size: .8rem; text-transform: uppercase; }
.GameStats strong { color: #fff2c7; font-size: 1.05rem; }
.GameStatus { position: fixed; z-index: 2; top: 6.8rem; left: 50%; width: min(85vw, 48rem); transform: translateX(-50%); min-height: 1.5rem; margin: 0; color: #93f0d7; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; text-align: center; }
.GameOverOverlay { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 1.5rem; background: rgba(4, 11, 16, .78); }
.GameOverOverlay[hidden] { display: none; }
.GameOverPanel { width: min(28rem, 90vw); padding: 1.5rem; border: 1px solid rgba(184, 220, 230, .7); border-radius: 10px; background: rgba(5, 20, 27, .96); box-shadow: 0 0 30px rgba(122, 240, 207, .18); text-align: center; }
.GameOverPanel h2 { margin: 0; color: #fff2c7; font-family: 'Cinzel', serif; font-size: clamp(1.35rem, 4vw, 2rem); }
.GameOverPanel p { margin: .8rem 0 1.2rem; color: #b7e3ed; font-size: .95rem; }
.GameOverPanel button { border: 1px solid rgba(184, 220, 230, .7); border-radius: 6px; background: #fff2c7; color: #07151b; padding: .6rem .9rem; font: 700 .78rem 'Source Sans 3', sans-serif; cursor: pointer; }
.GameOverPanel button:hover, .GameOverPanel button:focus-visible { outline: 2px solid #7af0cf; outline-offset: 3px; }
.GameLanguageToggle { position: fixed; z-index: 3; top: 1rem; right: 1.5rem; display: flex; gap: .35rem; margin-top: 3.1rem; }
.GameLanguageToggle button, .GameControls button, .GameControls a { border: 1px solid rgba(184, 220, 230, .7); border-radius: 6px; background: rgba(5, 13, 18, .8); color: #edf7ff; padding: .5rem .75rem; font: 600 .72rem 'Source Sans 3', sans-serif; text-decoration: none; cursor: pointer; }
.GameLanguageToggle button.active { background: #fff2c7; color: #07151b; }
.GameControls { position: fixed; z-index: 2; right: 1.5rem; bottom: 1.25rem; display: flex; gap: .65rem; }
.FullscreenButton { display: grid; width: 36px; height: 34px; place-items: center; padding: 0 !important; font-size: 1.35rem !important; line-height: 1; }
.FullscreenButton[hidden] { display: none; }
.FullscreenButton.active .FullscreenEnterIcon { display: none; }
.FullscreenExitIcon { display: none; grid-template-columns: repeat(2, 12px); grid-template-rows: repeat(2, 12px); place-items: center; font-family: monospace; font-size: .8rem; line-height: 1; }
.FullscreenExitIcon span { display: block; width: 12px; height: 12px; text-align: center; line-height: 12px; }
.FullscreenButton.active .FullscreenExitIcon { display: grid; }
.GameControls button:hover, .GameControls button:focus-visible, .GameControls a:hover, .GameControls a:focus-visible, .GameLanguageToggle button:focus-visible { outline: 2px solid #7af0cf; outline-offset: 3px; }
@media (max-width: 700px) { .GameHud { padding: 1rem; } .GameStatus { top: 9rem; } .GameLanguageToggle { left: 1rem; right: auto; bottom: 1.25rem; top: auto; margin-top: 0; } .GameControls { right: 1rem; bottom: 1rem; } }
@media (orientation: landscape) and (max-height: 600px) { .GameStatus { top: 6.35rem; left: 1rem; width: min(18rem, 34vw); transform: none; text-align: left; } .GameOverPanel { padding: 1rem 1.25rem; } }