/* aPiStation — tokens, stage, background, typography */

@font-face {
  font-family: 'Outfit';
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 300 700;
  font-display: swap;
  src: url(../assets/fonts/spacegrotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 300 700;
  font-display: swap;
  src: url(../assets/fonts/spacegrotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@property --bh1 { syntax: '<number>'; inherits: true; initial-value: 265; }
@property --bh2 { syntax: '<number>'; inherits: true; initial-value: 190; }

:root {
  --bg-0: #05060f;
  --bg-1: #0b0d1f;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.1);
  --glass-3: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.22);
  --text: #f4f6ff;
  --text-2: rgba(232, 236, 255, 0.74);
  --text-3: rgba(232, 236, 255, 0.5);
  --ink: #0a0b16;

  --bronze: #e0975f;
  --silver: #d6deeb;
  --gold: #fcc63c;
  --platinum: #9eeefa;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;

  --r-sm: 14px;
  --r: 22px;
  --r-lg: 32px;
  --font: 'Outfit', 'Nunito Sans', system-ui, sans-serif;
  --font-num: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --pad-x: 96px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #020308;
  overflow: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
}

body.kiosk, body.kiosk * { cursor: none !important; }

button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p { margin: 0; }

#stage {
  --h1: 265;
  --h2: 190;
  --accent: hsl(var(--h1) 92% 70%);
  --accent-2: hsl(var(--h2) 90% 62%);
  --accent-soft: hsl(var(--h1) 90% 65% / 0.18);
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  overflow: hidden;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  font-size: 24px;
  line-height: 1.35;
  user-select: none;
}

/* ---------- animated background ---------- */
#bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: --bh1 1.1s var(--ease), --bh2 1.1s var(--ease);
  background: radial-gradient(120% 90% at 50% 120%, hsl(var(--bh1) 60% 12%), var(--bg-0) 60%);
}
.blob {
  position: absolute;
  width: 1200px;
  height: 1200px;
  border-radius: 50%;
  will-change: transform;
}
.b1 {
  left: -320px; top: -420px;
  background: radial-gradient(circle, hsl(var(--bh1) 90% 58% / 0.5), hsl(var(--bh1) 90% 58% / 0) 62%);
  animation: drift-a 28s ease-in-out infinite alternate;
}
.b2 {
  right: -380px; top: 60px;
  background: radial-gradient(circle, hsl(var(--bh2) 92% 52% / 0.38), hsl(var(--bh2) 92% 52% / 0) 62%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
.b3 {
  left: 420px; bottom: -760px;
  background: radial-gradient(circle, hsl(calc(var(--bh1) + 40) 85% 55% / 0.32), hsl(calc(var(--bh1) + 40) 85% 55% / 0) 62%);
  animation: drift-c 40s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(260px, 160px) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-300px, 120px) scale(0.9); } }
@keyframes drift-c { to { transform: translate(200px, -180px) scale(1.2); } }

#stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }
.grain { position: absolute; inset: 0; opacity: 0.03; pointer-events: none; }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55)); }

body.perf .blob { animation: none; }
body.perf #stars { display: none; }
body.perf .grain { display: none; }

/* ---------- screens ---------- */
#screen-host { position: absolute; inset: 0; }
.screen {
  position: absolute;
  inset: 0;
  transition: opacity .32s var(--ease), transform .4s var(--ease);
}
.screen.enter { opacity: 0; transform: scale(0.985); }
.screen.leave { opacity: 0; transform: scale(1.015); pointer-events: none; }

/* ---------- type ---------- */
.kicker {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.display {
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.title-xl { font-size: 64px; font-weight: 700; line-height: 1.05; letter-spacing: -0.015em; }
.title-lg { font-size: 44px; font-weight: 650; line-height: 1.1; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.row-title {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-title .icon { color: var(--accent); }
.row-title small { font-size: 18px; color: var(--text-3); font-weight: 500; }

.icon { flex: none; display: block; }
