:root { color-scheme: dark; font-family: 'Segoe UI', sans-serif; color: #f4f6f5; background: #050607; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-height: 100svh; background: #050607 url('./GlavFon.webp') center center / cover no-repeat fixed; }
button, a { -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
#forest, #arcade-screen { position: fixed; inset: 0; overflow: hidden; }
#forest { background: #050607 url('./GlavFon.webp') center center / cover no-repeat; }
#forest:not(.scene-ready) canvas { visibility: hidden; }
#forest canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
#arcade-screen { pointer-events: none; z-index: 2; }
#arcade-screen iframe { border: 0; width: 100%; height: 100%; background: #121214; }
.screen-content { pointer-events: auto; background: #121214; }
.site-header { position: relative; z-index: 4; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 20px 28px; background: rgba(4, 7, 7, .8); border-bottom: 1px solid #ffffff20; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand h1 { font-size: 22px; font-weight: 600; margin: 0; }
.primary-nav { display: flex; gap: 16px; align-items: center; flex: 1; }
.primary-nav a { font-size: 14px; text-decoration: none; color: #c8d1ce; }
.primary-nav a:hover { color: white; }
.play-link, .return-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 22px; border: 1px solid #83b8a2; border-radius: 5px; background: #224f3d; color: #fff !important; font-weight: 600; text-decoration: none; }
.play-link:hover, .return-button:hover { background: #31664f; }
.play-link[aria-disabled=true] { opacity: .5; cursor: wait; }
.header-settings { display: flex; gap: 18px; align-items: center; }
.mode-switch { display: flex; padding: 3px; gap: 3px; border: 1px solid #64736b; border-radius: 5px; background: #0d1310; }
.mode-switch button, .language-switch button { min-height: 32px; border: 0; padding: 6px 10px; background: transparent; color: #b6c5be; }
.mode-switch button[aria-pressed=true] { background: #d7e9df; color: #15251e; border-radius: 3px; }
.language-switch { display: flex; }
.language-switch button[aria-pressed=true] { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.scene-status { position: fixed; z-index: 3; left: 50%; bottom: 32px; transform: translateX(-50%); text-align: center; padding: 12px 20px; max-width: calc(100% - 36px); background: #080c0ddd; border-radius: 4px; }
.scene-status progress { display: block; width: 240px; max-width: 100%; height: 4px; margin: 12px auto 0; accent-color: #86bba5; }
.scene-status button { background: #224f3d; color: white; padding: 8px 12px; border: 1px solid #83b8a2; border-radius: 4px; margin-top: 10px; }
.return-button { position: fixed; left: 24px; top: 22px; z-index: 6; }
body[data-phase=arcade] .site-header, body[data-phase=navigating] .site-header { visibility: hidden; }
body[data-mode=normal] #forest canvas { cursor: default; }
.fallback { position: relative; z-index: 3; margin: 12vh auto 0; padding: 24px; max-width: 540px; background: #111a18; }
.fallback p { line-height: 1.6; }
:focus-visible { outline: 2px solid #c2efdb; outline-offset: 4px; }
@media (max-width: 1100px) { .site-header { gap: 16px; padding: 14px 18px; } .primary-nav { order: 3; flex-basis: 100%; } .header-settings { margin-left: auto; } }
@media (max-width: 600px) { .site-header { padding: 10px 12px; gap: 12px; } .brand h1 { font-size: 18px; } .brand img { width: 32px; height: 32px; } .header-settings { flex-basis: 100%; justify-content: space-between; margin: 0; } .primary-nav { gap: 12px; overflow-x: auto; } .primary-nav a { font-size: 12px; flex-shrink: 0; } .play-link { padding: 9px 15px; } .return-button { left: 12px; top: 12px; } }
