@font-face {
  font-family: Inconsolata;
  src: url('./assets/fonts/inconsolata.ttf') format('truetype');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: GameGlyph;
  src: url('./assets/fonts/dejavu-sans-mono.ttf') format('truetype');
  font-display: swap;
}
:root {
  font-family: Inconsolata, monospace;
  color-scheme: dark;
  color: #d7ebdf;
  background: #000;
  --muted: #9aada3;
  --mint: #b5efcc;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #000; }
body { --handoff: 0; }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--mint); outline-offset: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
#landing { position: relative; height: 100svh; min-height: 320px; isolation: isolate; z-index: 2; background: #000; }
#winter { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.perimeter { position: absolute; left: clamp(22px, 3.4vw, 64px); right: clamp(22px, 3.4vw, 64px); display: flex; justify-content: space-between; align-items: center; }
.top { top: max(25px, env(safe-area-inset-top)); }
.bottom { bottom: max(25px, env(safe-area-inset-bottom)); }
.signature { display: flex; gap: 11px; align-items: center; font-size: 15px; color: #acc7b8; }
.signature-star { font-family: GameGlyph, monospace; color: #ffdc28; font-size: 22px; }
.quiet-link { color: var(--muted); font-size: 15px; padding: 10px 0; transition: color .2s; }
.quiet-link:hover { color: #dcebe2; }
.quiet-link span { margin-left: 9px; }
.wordmark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 6%; font-size: clamp(70px, 12vw, 200px); font-weight: 600; letter-spacing: -.085em; pointer-events: none; color: #c7e8d8; opacity: 0; }
.wordmark.loaded { opacity: 1; }
.wordmark.canvas-title { visibility: hidden; }
.entry { position: absolute; top: 79%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; width: max-content; max-width: calc(100% - 36px); text-align: center; }
.play-button { position: relative; display: inline-flex; gap: 29px; align-items: center; justify-content: space-between; min-width: 180px; border: 1px solid #c9f3d8; border-radius: 1px; color: #081a10; background: var(--mint); padding: 15px 23px; font-size: 24px; line-height: 1; transition: transform .45s var(--ease), background .3s, box-shadow .4s; }
.play-button::before, .play-button::after { content: ''; position: absolute; top: 50%; width: 28px; height: 1px; background: #7ecb9355; transform: scaleX(1); transition: transform .5s var(--ease); }
.play-button::before { right: calc(100% + 15px); transform-origin: right; }
.play-button::after { left: calc(100% + 15px); transform-origin: left; }
.play-button:hover, .play-button:focus-visible { background: #dbf9e5; box-shadow: 0 0 48px #8ff0b21c; transform: translateY(-2px); }
.play-button:hover::before, .play-button:hover::after, .play-button:focus-visible::before, .play-button:focus-visible::after { transform: scaleX(1.45); }
.play-button:active { transform: translateY(0); }
.play-button:disabled { background: #92bea3; border-color: #92bea3; }
.play-mark, .play-arrow { font-size: 21px; }
.entry p { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 14px 0 0; }
.entry p span { margin: 0 6px; color: #718778; }
#load-status:empty { display: none; }
#load-status { max-width: 44ch; color: #c6e5d1; }
.settings { display: flex; gap: 30px; }
.text-button { font-size: 15px; border: 0; background: none; padding: 8px 0; min-height: 40px; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
.text-button:hover, .text-button[aria-expanded=true] { color: #e0f3e6; }
.sound-wave { display: inline-flex; gap: 3px; align-items: center; height: 14px; width: 19px; }
.sound-wave i { width: 2px; height: 3px; background: currentColor; transition: height .4s; }
.sound-wave i:nth-child(2) { height: 9px; }
.sound-wave i:nth-child(3) { height: 13px; }
.sound-wave i:nth-child(4) { height: 6px; }
#sound[aria-pressed=false] .sound-wave i { height: 2px; }
.controls-sheet { position: absolute; right: clamp(22px, 3.4vw, 64px); bottom: 80px; width: min(450px, calc(100% - 44px)); max-height: calc(100% - 150px); overflow-y: auto; padding: 26px 28px 22px; background: #050a07; box-shadow: 0 0 90px 40px #000b; border: 1px solid #273a2c; z-index: 10; animation: sheet-in .35s var(--ease); }
.controls-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.controls-heading h2 { font-size: 21px; font-weight: 500; margin: 0; }
.controls-sheet dl { margin: 0; }
.controls-sheet dl > div { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 14px; margin: 16px 0; }
.controls-sheet dt { color: #b5efcc; font-size: 15px; }
.controls-sheet dt span { color: #809488; }
.controls-sheet dd { font-size: 15px; margin: 0; color: #c3d3c8; line-height: 1.35; }
kbd { font: inherit; }
.controls-sheet p { font-size: 13px; color: #a3b7aa; line-height: 1.5; margin: 24px 0 0; }
.controls-sheet .decoration-note { padding-top: 16px; border-top: 1px solid #26342b; margin-top: 16px; }
.no-script { position: absolute; bottom: 12%; left: 10%; right: 10%; background: #000; padding: 20px; color: #d7ebff; }
.no-script a { text-decoration: underline; }
body.entering #landing { opacity: calc(1 - var(--handoff)); pointer-events: none; }
body.entering .perimeter, body.entering .entry, body.entering .wordmark { opacity: 0; transition: opacity .25s; }
body.in-game #landing { display: none; }
#game-stage { position: fixed; inset: 0; z-index: 1; background: #000; opacity: var(--handoff); }
body.entering #game-stage { opacity: 1; }
body.in-game #game-stage { opacity: 1; z-index: 3; }
#game-frame { display: block; border: 0; width: 100%; height: 100%; background: #000; }
@keyframes title-arrival { 0%, 49% { opacity: 0; } 87%, 100% { opacity: 1; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .top { top: max(16px, env(safe-area-inset-top)); }
  .bottom { bottom: max(15px, env(safe-area-inset-bottom)); }
  .signature { gap: 8px; font-size: 13px; }
  .signature-star { font-size: 19px; }
  .quiet-link { font-size: 13px; }
  .settings { gap: 20px; }
  .text-button { font-size: 13px; }
  .entry { top: 79.5%; }
  .play-button { min-width: 160px; padding: 14px 21px; font-size: 22px; }
  .entry p { font-size: 12px; max-width: 260px; }
  .wordmark { align-items: flex-start; padding: 27% 7% 0; font-size: 18vw; }
  .controls-sheet { padding: 22px; bottom: 68px; max-height: calc(100% - 100px); }
  .controls-sheet dl > div { grid-template-columns: 120px 1fr; }
  .controls-sheet dt, .controls-sheet dd { font-size: 13px; }
}
@media (max-height: 580px) {
  .entry p { margin-top: 8px; }
  .bottom { bottom: max(6px, env(safe-area-inset-bottom)); }
  .top { top: max(6px, env(safe-area-inset-top)); }
  .play-button { padding: 10px 20px; font-size: 19px; }
  .controls-sheet { bottom: 55px; max-height: calc(100svh - 75px); }
  .controls-sheet dl > div { margin: 10px 0; }
}
@media (max-height: 580px) and (orientation: landscape) { .entry { top: 76%; } }
@media (max-height: 660px) and (orientation: portrait) {
  .wordmark.canvas-title { animation: title-arrival 3.35s linear both; visibility: visible; align-items: flex-start; justify-content: center; padding: 17.5vh 0 0; font-size: clamp(52px, 18vw, 88px); font-weight: 400; line-height: 1; gap: .18em; letter-spacing: -.065em; }
}
@media (pointer: coarse) { button, .quiet-link { min-height: 44px; min-width: 44px; } .quiet-link { display: inline-flex; align-items: center; } }
#landing.arrival-complete .wordmark { animation: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
html[data-motion=off] *, html[data-motion=off] *::before, html[data-motion=off] *::after { animation: none !important; transition: none !important; }
