/* This site: @font-face (self-hosted woff2), then sections built on base.css tokens. */
@font-face { font-family: "Silkscreen"; src: url("/fonts/silkscreen-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("/fonts/silkscreen-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --bg: #8a3df7; --ink: #fff; --accent: #ffe14a; --deep: #3a1470;
  --font-display: "Silkscreen", monospace; --font-body: "Silkscreen", monospace;
  --px: 3px;
}
html, body { height: 100%; overflow: hidden; }
body { background: linear-gradient(#7a2ff4, #b98cff 62%, #4fae12 62%); color: var(--ink); font-family: var(--font-body); -webkit-tap-highlight-color: transparent; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
body[data-page="play"] [data-only="hi"], body[data-page="hi"] [data-only="play"] { display: none !important; }

.title { position: fixed; top: clamp(14px, 3.2vh, 40px); left: 0; right: 0; text-align: center; pointer-events: none; will-change: transform; }
.title h1 { margin: 0; font: 700 clamp(64px, 9.6vw, 168px)/0.9 var(--font-display); letter-spacing: -0.02em; text-transform: lowercase;
  text-shadow: .045em .045em 0 var(--deep), .09em .09em 0 rgba(58,20,112,.35); }
.title .sub { margin: .7em 0 0; font-size: clamp(16px, 1.25vw, 22px); letter-spacing: .08em; text-transform: uppercase; text-shadow: 2px 2px 0 var(--deep); }
.title .sub [data-ticker] { color: var(--accent); }
.title .tag { opacity: .92; margin-left: .6em; }

.menu { position: fixed; right: clamp(20px, 5vw, 110px); top: 33vh; text-align: right; transition: opacity .45s ease; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2px, .5vh, 8px); justify-items: end; }
.item { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 6px 4px 0; background: none; border: 0; color: var(--ink);
  font: 700 clamp(22px, 1.85vw, 34px)/1 var(--font-display); text-transform: uppercase; text-decoration: none; letter-spacing: .02em; cursor: pointer;
  text-shadow: var(--px) var(--px) 0 var(--deep); transition: transform .25s cubic-bezier(.3,1.6,.5,1), color .15s; }
.item .lbl { white-space: nowrap; }
.item img { width: 1.05em; height: 1.05em; object-fit: contain; image-rendering: auto; filter: drop-shadow(var(--px) var(--px) 0 var(--deep)); }
.item .cur { position: absolute; left: -36px; top: 50%; width: 22px; height: 44px; margin-top: -26px; background: url(/img/cursor.png) center/contain no-repeat;
  image-rendering: pixelated; opacity: 0; transform: translateY(10px) scale(.6); transition: opacity .2s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.item:hover, .item:focus-visible { color: var(--accent); transform: translateX(-6px); }
.item:active { transform: translateX(-6px) scale(.96); transition-duration: .035s; }
.item:hover .cur, .item:focus-visible .cur, .menu:not(:hover):not(:focus-within) .item.hold .cur, .menu:not(:hover):not(:focus-within) [data-nav="play"] .cur, body[data-page="lost"] .menu:not(:hover):not(:focus-within) .item .cur { opacity: 1; transform: none; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(4deg); } }
.item.is-off { opacity: .5; cursor: not-allowed; }
.hold.on { color: var(--accent); }
.k-touch { display: none; }
@media (max-width: 360px) { .k-wide { display: none; } }
@media (hover: none) and (pointer: coarse) { .k-desk { display: none; } .k-touch { display: inline; } }

.ca { margin-top: clamp(10px, 2.2vh, 26px); display: grid; justify-items: end; gap: 2px; max-width: min(36vw, 560px); margin-left: auto; }
.ca-k { font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); text-shadow: 2px 2px 0 var(--deep); }
.ca code { font: 400 clamp(16px, 1.05vw, 19px)/1.35 var(--font-display); text-shadow: 2px 2px 0 var(--deep); text-align: right; }
.ca .copy { font-size: clamp(18px, 1.3vw, 24px); }

body[data-air="1"] .menu { opacity: .32; }
body[data-air="1"] .menu:hover, body[data-air="1"] .menu:focus-within { opacity: 1; }

.callout { position: fixed; left: 0; right: 0; top: calc(clamp(14px, 3.2vh, 40px) + clamp(64px, 9.6vw, 168px) * .9 + clamp(15px, 1.25vw, 22px) * 2.6 + 18px); margin: 0; text-align: center; pointer-events: none; font: 700 clamp(24px, 3vw, 54px)/1.1 var(--font-display);
  text-transform: uppercase; color: var(--accent); text-shadow: 4px 4px 0 var(--deep); opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .3s, transform .5s cubic-bezier(.3,1.5,.5,1); padding: 0 16px; }
.callout.show { opacity: 1; transform: none; }

.hud { position: fixed; left: clamp(20px, 4vw, 80px); bottom: clamp(18px, 4vh, 48px); margin: 0; pointer-events: none; text-transform: uppercase; text-shadow: 3px 3px 0 rgba(20,50,0,.55); display: flex; align-items: baseline; gap: 8px; }
.hud b { font: 700 clamp(48px, 5vw, 96px)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.hud span { font-size: clamp(22px, 2vw, 36px); font-weight: 700; }
.hud i { font-style: normal; font-size: clamp(16px, 1.1vw, 20px); margin-left: 18px; color: #fff8a0; }

.scores { position: fixed; left: clamp(24px, 6vw, 130px); top: 31vh; pointer-events: none; text-transform: uppercase; }
.scores h2 { margin: 0 0 .5em; font: 700 clamp(26px, 2.2vw, 40px)/1 var(--font-display); color: var(--accent); text-shadow: 3px 3px 0 var(--deep); }
.scores ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 6px; }
.scores li { counter-increment: s; font: 700 clamp(22px, 1.8vw, 32px)/1.15 var(--font-display); text-shadow: 3px 3px 0 var(--deep); display: flex; gap: 18px; }
.scores li::before { content: counter(s) "."; width: 1.6em; color: #fff8a0; }
.scores li small { font-size: .55em; align-self: center; color: #fff8a0; }
.scores .note { max-width: 22em; font-size: clamp(16px, 1vw, 18px); line-height: 1.4; text-shadow: 2px 2px 0 var(--deep); }

@media (max-width: 760px) {
  .title { top: max(14px, env(safe-area-inset-top)); }
  .title h1 { font-size: clamp(56px, 19vw, 92px); }
  .title .sub { font-size: 16px; margin-top: .45em; letter-spacing: .02em; }
  .title .tag { display: block; margin: .25em 0 0; }
  .menu { left: 14px; right: 14px; top: auto; bottom: max(10px, env(safe-area-inset-bottom)); text-align: left; }
  .menu ul { grid-template-columns: 1fr 1fr; justify-items: start; gap: 0 10px; }
  .menu li:has(.hold), .menu li:has([data-nav="play"]) { grid-column: 1 / -1; }
  .item { font-size: 17px; gap: 8px; padding-left: 24px; }
  .item .cur { left: 0; width: 16px; height: 32px; margin-top: -19px; }
  .item:hover, .item:focus-visible { transform: none; }
  .ca { max-width: none; justify-items: start; margin-top: 6px; grid-template-columns: 1fr auto; align-items: end; column-gap: 10px; }
  .ca-k { grid-column: 1 / -1; font-size: 16px; }
  .ca code { text-align: left; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
  .ca .copy { font-size: 17px; padding-left: 22px; }
  .hud { left: auto; right: 16px; bottom: auto; top: calc(max(14px, env(safe-area-inset-top)) + clamp(56px, 19vw, 92px) * .9 + 84px); flex-direction: column; align-items: flex-end; gap: 0; }
  .hud b { font-size: 44px; } .hud span { display: none; } .hud i { margin: 0; font-size: 16px; }
  .callout { top: 40vh; font-size: 24px; }
  .scores { left: 16px; right: 16px; top: calc(max(14px, env(safe-area-inset-top)) + clamp(56px, 19vw, 92px) * .9 + 96px); }
  .scores li { font-size: 20px; }
  body[data-page="hi"] .menu ul { grid-template-columns: 1fr 1fr; }
}
@media (max-height: 700px) and (max-width: 760px) {
  .item { min-height: 44px; font-size: 18px; }
  .title h1 { font-size: 54px; }
}
