* { box-sizing: border-box; cursor: none !important; }
html, body { width: 100%; height: 100%; margin: 0; background: #020503; overflow: hidden; overscroll-behavior: none; }
body { color: #86cf96; font: 12px/1.5 ui-monospace, 'Courier New', monospace; }
button, a { color: inherit; font: inherit; letter-spacing: .04em; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; padding: 10px 0; }
button:focus-visible, a:focus-visible { outline: 1px dashed #a5ffba; outline-offset: 7px; }
#city, #logo-stage, #laser { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#city { z-index: 0; }
#logo-stage { z-index: 1; pointer-events: none; transition: opacity 1.3s ease, transform 3.5s cubic-bezier(.7,0,.2,1); }
#logo-stage canvas { display: block; width: 100%; height: 100%; }
.ascii-copy { display: inline-block; white-space: pre; font: bold 4px/4px 'Courier New', monospace; letter-spacing: 0; text-align: left; }
.navigation-actions { display: flex; align-items: center; gap: 32px; }
#sound { color: #6f9d7c; }
#hint .ascii-copy { font-size: 3px; line-height: 3px; }
#logo-hit { position: fixed; z-index: 3; width: min(68vw, 500px); height: min(35vw, 280px); left: 50%; top: 48%; transform: translate(-50%,-50%); touch-action: manipulation; }
#navigation { position: fixed; inset: max(22px, env(safe-area-inset-top)) max(26px, env(safe-area-inset-right)) auto max(26px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; z-index: 5; transition: opacity 1s; }
#home { padding: 10px 0; }
#fullscreen { display: flex; align-items: center; gap: 9px; }
#fullscreen svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; }
#hint { position: fixed; z-index: 4; left: 0; right: 0; bottom: 5vh; text-align: center; letter-spacing: .16em; font-size: 10px; transition: opacity .8s; pointer-events: none; }
#fullscreen-prompt { position: fixed; inset: 0; z-index: 40; display: grid; align-items: end; justify-items: center; padding: 0 18px 13vh; background: #02050366; }
#fullscreen-prompt[hidden] { display: none; }
.prompt-content { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; padding: 20px 28px; border: 1px solid #365b3e; background: #030b07f5; box-shadow: 0 0 60px #020503; }
.prompt-content p { margin: 0 0 4px; grid-column: 1 / -1; color: #b8d6bc; }
#enter-fullscreen { color: #b6ffc5; }
#continue-window { color: #6e9779; }
#laser { z-index: 100; pointer-events: none; }
body[data-phase="entering"] #logo-stage { opacity: 0; transform: scale(2.4); }
body[data-phase="entering"] #hint, body[data-phase="entering"] #navigation,
body[data-phase="tour"] #hint, body[data-phase="tour"] #navigation { opacity: 0; pointer-events: none; }
body[data-phase="tour"] #logo-stage, body[data-phase="tour"] #logo-hit { display: none; }
@media (max-width: 600px) {
  #navigation { left: 16px; right: 16px; }
  #navigation .ascii-copy { font-size: 3px; line-height: 3px; }
  .navigation-actions { gap: 16px; }
  .prompt-content .ascii-copy { font-size: 3.5px; line-height: 3.5px; }
  #logo-hit { width: 80vw; height: 45vw; }
  .prompt-content { font-size: 11px; gap: 8px 18px; padding: 18px 22px; }
}
@media (prefers-reduced-motion: reduce) { #logo-stage { transition-duration: .5s; } }

#city { touch-action: none; }
