@font-face { font-family: 'Alien World'; src: url('../fonts/AlienWorld-owj0x.ttf') format('truetype'); font-display: block; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: linear-gradient(180deg, #2f6fdc 0%, #5c9cf2 38%, #cfe6ff 68%, #1a5aa0 69%, #0c3b74 100%);
  font-family: 'Syncopate', 'Helvetica Neue', Arial, sans-serif; color: #fff;
  -webkit-user-select: none; user-select: none; overscroll-behavior: none;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
body.ready #sky { opacity: 1; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#logo-hit { position: absolute; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 28px; }
#logo-hit:focus-visible { outline: 2px solid rgba(255, 255, 255, .85); outline-offset: 6px; }
.fallback-logo { display: none; }

#menu a {
  position: absolute; display: grid; place-items: center; opacity: 0; pointer-events: none;
  color: #fff; text-decoration: none; letter-spacing: .16em; text-transform: uppercase; text-indent: .16em;
  text-shadow: 0 1px 1px rgba(10, 45, 95, .45), 0 0 10px rgba(20, 70, 140, .3);
  border-radius: 10px;
}
#menu a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

#sound {
  position: fixed; right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom));
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .55); padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .1)); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 18px rgba(8, 40, 90, .25); display: grid; place-items: center;
  opacity: 0; transition: opacity 1s ease 1s;
}
body.ready #sound { opacity: 1; }
#sound svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; opacity: .55; transition: opacity .3s; }
#sound.on svg { opacity: 1; }
#sound:not(.on)::after { content: ""; position: absolute; width: 26px; height: 1.8px; background: #fff; transform: rotate(-40deg); border-radius: 1px; }
#sound:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* no WebGL2 (or no JavaScript at all): a still version with the same parts */
.fallback { display: none; }
:is(body.no-gl, .nojs body) .fallback { display: block; position: fixed; left: 50%; bottom: -3vh; transform: translateX(-50%); height: 46vh; }
:is(body.no-gl, .nojs body) .fallback img { height: 100%; width: auto; }
:is(body.no-gl, .nojs body) #logo-hit { position: fixed; left: 0; right: 0; top: 18vh; width: auto !important; height: auto !important; text-align: center; }
:is(body.no-gl, .nojs body) .fallback-logo { display: inline; text-transform: uppercase; font: 700 clamp(22px, 6.4vw, 54px)/1 'Syncopate', 'Helvetica Neue', Arial, sans-serif; letter-spacing: .08em; color: rgba(255, 255, 255, .92); text-shadow: 0 2px 10px rgba(10, 50, 110, .35); }
:is(body.no-gl, .nojs body) #menu { position: fixed; left: 0; right: 0; top: calc(18vh + 90px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
:is(body.no-gl, .nojs body) #menu a { position: static; opacity: 1 !important; pointer-events: auto !important; padding: 14px 30px; font-size: 13px; font-weight: 700;
  background: rgba(20, 70, 140, .22); border: 1px solid rgba(255, 255, 255, .6); }
:is(body.no-gl, .nojs body) #sound { display: none; }
