/* "Are you lost?": the page for a name nothing answers to (2026-10-16). The critters on a windy shore. */
:root { --bg: #000; --ink: #e6edf5; --muted: #7d8a99; --acc: #22e6ff; --line: rgba(255, 255, 255, .1); --glass: rgba(10, 14, 20, .78); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.45 "Exo 2", system-ui, sans-serif;
  overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; user-select: none; }
canvas { position: fixed; inset: 0; width: 100vw; height: 100dvh; display: block; touch-action: none; }

/* top: the name on the left (tur·sky.dk), the score and ⚙ on the right */
.hud { position: fixed; left: 0; right: 0; top: max(16px, env(safe-area-inset-top)); padding: 0 18px; display: flex;
  justify-content: space-between; align-items: center; pointer-events: none; }
/* v4 (ΛDMIN 2026-10-17): a small inline ΛT mark as on the site pages; "tur" bold, "sky" the same Exo 2 but thin and
   sky-coloured; no dot */
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.logo .mark { width: 13px; height: 17px; flex: none; }
.word { font: 700 17px/1 "Exo 2", sans-serif; letter-spacing: .02em; }
.word b { font-weight: 200; color: #8fe9ff; }
.word small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 1px; }
.logo em { font-style: normal; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc);
  border: 1px solid rgba(34, 230, 255, .4); border-radius: 999px; padding: 1px 7px; }
/* the score and the gear: two glass pieces of the same height */
.right { display: flex; align-items: center; gap: 8px; }
/* the score: the run in metres, then a hairline and the best with a small trophy (no "best" word) */
.score { height: 38px; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(10px); font-variant-numeric: tabular-nums; }
.score b { color: var(--ink); font-size: 17px; font-weight: 600; min-width: 1ch; text-align: right; }
.score b::after { content: "m"; margin-left: 2px; font-size: 11px; font-weight: 400; color: var(--muted); }
.score span { display: flex; align-items: center; gap: 5px; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line);
  color: #e8c46a; font-size: 13px; font-weight: 600; }
.score span svg { width: 13px; height: 13px; }
.score span:empty { display: none; }
.gear { pointer-events: auto; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(10px); color: var(--muted); cursor: pointer; transition: rotate .4s cubic-bezier(.22, 1, .36, 1), color .2s, border-color .2s; }
.gear svg { width: 19px; height: 19px; }
.gear:hover { color: var(--ink); border-color: rgba(255, 255, 255, .22); }
.gear.on { color: var(--acc); border-color: rgba(34, 230, 255, .5); rotate: 60deg; }

/* ⚙ the panel: rows of pill switches */
.panel { position: fixed; right: 14px; top: calc(max(16px, env(safe-area-inset-top)) + 48px); width: min(360px, calc(100vw - 28px));
  padding: 12px 14px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .6); animation: pin .3s cubic-bezier(.22, 1, .36, 1); z-index: 5; }
.panel[hidden] { display: none; }
@keyframes pin { from { opacity: 0; translate: 0 -8px; } }
.row { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 8px; padding: 5px 0; }
.row label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button { font: 600 12.5px "Exo 2", sans-serif; color: var(--muted); background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button.on { color: var(--acc); border-color: rgba(34, 230, 255, .5); background: rgba(34, 230, 255, .1); }
.soon { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; }
.soon span { color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 3px 10px; opacity: .75; }
.soon span:last-child { border: 0; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.keys { margin: 8px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }

.title { position: fixed; left: 0; right: 0; top: 13vh; padding: 0 16px; text-align: center; pointer-events: none; transition: opacity .5s, translate .5s; }
/* a soft dark halo, so turbine blades passing behind don't cut through the words */
.title::before { content: ""; position: absolute; inset: -40px -10% -30px; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 8, 10, .55), rgba(0, 8, 10, 0)); }
.title h1 { margin: 0; font-weight: 700; font-size: clamp(30px, 7vw, 56px); letter-spacing: .01em; text-shadow: 0 0 24px rgba(34, 230, 255, .35); }
.title p { margin: 8px 0 0; color: var(--muted); }
.title .go { display: inline-block; margin-top: 18px; padding: 6px 16px; border: 1px solid rgba(34, 230, 255, .45);
  border-radius: 999px; color: var(--acc); background: rgba(34, 230, 255, .08); font-weight: 600; }
.title .go:empty { display: none; }
.title.off { opacity: 0; translate: 0 -10px; }
.foot { position: fixed; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 12px; }
.foot a { color: var(--acc); text-decoration: none; pointer-events: auto; }

/* v4.1 (ΛDMIN 2026-10-17, "the ui settings on phone are a bit off"): the title steps aside while ⚙ is open; on a phone
   the panel is a sheet from the bottom (in thumb reach), more solid, each label above its row of pills */
body:has(.panel:not([hidden])) .title { opacity: 0; }
@media (max-width: 560px) {
  .panel { left: 10px; right: 10px; top: auto; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; max-height: 72dvh; overflow-y: auto;
    padding: 14px 16px 12px; border-radius: 20px; background: rgba(8, 12, 18, .94); animation-name: pinUp; }
  @keyframes pinUp { from { opacity: 0; translate: 0 16px; } }
  .row { grid-template-columns: 1fr; gap: 6px; padding: 7px 0; }
  .row + .row { border-top: 1px solid rgba(255, 255, 255, .05); }
  .seg { gap: 6px; }
  .seg button { padding: 7px 13px; font-size: 13px; }
  .keys { font-size: 11px; }
}
