/* ============================================================
   UBU × TLC WORLDWIDE - "Arcade sunrise over Joburg"
   Dark cinematic base · sunrise-orange dominant · pixel arcade
   Type: ITC Avant Garde (brand) + PlayerOne (arcade display)
   ============================================================ */

@font-face {
  font-family: "Avant";
  src: url("../assets/fonts/ITCAvantGardeStd-Light.otf");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Avant";
  src: url("../assets/fonts/ITCAvantGardeStd-Normal.otf");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Avant";
  src: url("../assets/fonts/ITCAvantGardeStd-Medium.otf");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Avant";
  src: url("../assets/fonts/ITCAvantGardeStd-Bold.otf");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PlayerOne";
  src: url("../assets/fonts/PlayerOne.ttf");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg: #0C0A08;
  --bg-2: #14110D;
  --bg-3: #1A1610;
  --line: rgba(241, 237, 230, 0.09);
  --text: #F1EDE6;
  --muted: #A89E8C;

  --orange: #FF8800;
  --gold: #FFC200;
  --amber: #FFA700;
  --lilac: #9B6CFF;
  --blue: #6E96FF;
  --pink: #FF5FEF;

  --grad-sunrise: linear-gradient(135deg, #FFC200 0%, #FFA700 45%, #FF8800 100%);
  --grad-lilac: linear-gradient(135deg, #B18CFF 0%, #6826BD 100%);
  --grad-blue: linear-gradient(135deg, #8FB0FF 0%, #3364E3 100%);
  --grad-pink: linear-gradient(135deg, #FF5FEF 0%, #F37936 100%);

  --pixel: "PlayerOne", "Avant", monospace;
  --sans: "Avant", "Avenir Next", "Century Gothic", sans-serif;

  --radius: 18px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: #1A0E00; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* film grain */
.noise {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
}

/* ============ shared bits ============ */

.grad {
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.grad--sunrise { background-image: var(--grad-sunrise); }
.grad--lilac { background-image: var(--grad-lilac); }
.grad--blue { background-image: var(--grad-blue); }
.grad--pink { background-image: var(--grad-pink); }

.kicker {
  font-family: var(--pixel);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--orange);
  margin-bottom: 18px;
}
.kicker--blue { color: var(--blue); }
.kicker--lilac { color: var(--lilac); }
.kicker--pink { color: var(--pink); }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 128px 28px 96px;
  position: relative;
}
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head h2 {
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.section__lede {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 640px;
}
.section__lede strong { color: var(--text); font-weight: 500; }

.pixel-title {
  font-family: var(--pixel);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* UBU triple-dot motif */
.dots { display: inline-flex; align-items: center; margin-right: 10px; }
.dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--grad-sunrise);
  display: inline-block;
}
.dots i + i { margin-left: -3px; opacity: 0.72; }
.dots i:last-child { opacity: 0.45; }
.dots--lg i { width: 16px; height: 16px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--pixel);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 17px 30px;
  border-radius: 999px;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-sunrise);
  color: #1A0E00;
  box-shadow: 0 10px 34px rgba(255, 136, 0, 0.35);
}
.btn--primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 44px rgba(255, 136, 0, 0.5); }
.btn--primary:active { transform: translateY(0) scale(0.99); }
.btn--ghost {
  border: 1px solid rgba(241, 237, 230, 0.22);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--gold); transform: translateY(-2px); }
.btn--sm { padding: 11px 20px; font-size: 0.66rem; }
.btn--xl { padding: 21px 40px; font-size: 0.92rem; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s ease var(--rd, 0s), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--rd, 0s);
}

/* ============ NAV ============ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 28px;
  background: rgba(12, 10, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { height: 30px; width: auto; }
.nav__x { color: var(--orange); font-weight: 200; font-size: 1.1rem; }
.nav__client {
  font-weight: 500; font-size: 0.78rem; letter-spacing: 0.34em;
  color: var(--text);
}
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s;
}
.nav__links a:hover { color: var(--gold); }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: min(100svh, 1020px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px 28px 230px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  left: 50%; bottom: -38%;
  width: 1400px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(255, 194, 0, 0.22) 0%,
    rgba(255, 136, 0, 0.12) 32%,
    rgba(255, 95, 239, 0.05) 55%,
    transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 3;
  max-width: var(--maxw); width: 100%;
  margin: 0 auto;
}
.hero__eyebrow {
  font-family: var(--pixel);
  font-size: 0.66rem; letter-spacing: 0.2em;
  color: var(--muted);
  display: flex; align-items: center;
  margin-bottom: 30px;
}
.hero__title {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(3rem, 9.5vw, 8.2rem);
  line-height: 0.98;
  display: flex; flex-direction: column;
  margin-bottom: 34px;
}
.hero__word { display: block; }
.hero__word--1 { color: var(--text); }
.hero__word--2 {
  background-image: var(--grad-sunrise);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 32px rgba(255, 167, 0, 0.35));
}
.hero__word--3 {
  background-image: var(--grad-pink);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero__sub {
  max-width: 660px;
  font-size: 1.13rem;
  font-weight: 200;
  color: var(--muted);
}
.hero__sub strong { color: var(--text); font-weight: 500; }
.hero__sub em { color: var(--gold); font-style: normal; font-weight: 500; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 38px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 64px;
  max-width: 940px;
}
.stat {
  display: flex; flex-direction: column-reverse; gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: rgba(20, 17, 13, 0.55);
  backdrop-filter: blur(6px);
}
.stat dd { display: flex; align-items: baseline; gap: 4px; }
.stat__num {
  font-family: var(--pixel);
  font-size: 2rem;
  background-image: var(--grad-sunrise);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.stat__frac { font-family: var(--pixel); font-size: 0.85rem; color: var(--muted); }
.stat dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* floating 3D coins (Three.js canvas behind the copy) */
.hero__three {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.8;
}

.hero__skyline {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  pointer-events: none;
}
.hero__skyline svg { width: 100%; height: 220px; display: block; }

/* ============ TICKER ============ */

.ticker {
  border-top: 1px solid rgba(255, 136, 0, 0.25);
  border-bottom: 1px solid rgba(255, 136, 0, 0.25);
  background: #0E0B08;
  overflow: hidden;
  padding: 13px 0;
  position: relative; z-index: 4;
}
.ticker__track {
  display: flex; width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker__track span {
  font-family: var(--pixel);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--amber);
  white-space: nowrap;
  padding-right: 12px;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ JOURNEY ============ */

.section--journey::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 900px; height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(51, 100, 227, 0.13), transparent 65%);
  pointer-events: none;
}

.token-rail {
  position: relative;
  height: 46px;
  margin: 8px 0 26px;
}
.token-rail__line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px;
  background: linear-gradient(90deg, #3364E3, var(--orange) 55%, #FF5FEF);
  opacity: 0.4;
  border-radius: 2px;
}
.token-rail__pill {
  position: absolute; top: 50%;
  transform: translate(0, -50%);
  font-family: var(--pixel);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text);
  background: #0E0B08;
  border: 1px solid rgba(255, 167, 0, 0.55);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: 0 0 24px rgba(255, 136, 0, 0.3);
  animation: tokentravel 7s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  white-space: nowrap;
}
.token-rail__key { color: var(--blue); }
@keyframes tokentravel {
  0%, 8% { left: 0%; transform: translate(0, -50%); }
  46%, 58% { left: 50%; transform: translate(-50%, -50%); }
  92%, 100% { left: 100%; transform: translate(-100%, -50%); }
}

.journey {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: step;
}
.jstep {
  background: #12100B;
  border: 1px solid #272013;
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.jstep:hover { transform: translateY(-5px); border-color: rgba(255, 167, 0, 0.5); }
.jstep__num {
  font-family: var(--pixel);
  font-size: 1.5rem;
  background-image: var(--grad-sunrise);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.jstep h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.01em; }
.jstep p { font-size: 0.85rem; color: var(--muted); flex: 1; }
.jstep__tag {
  margin-top: 18px;
  align-self: flex-start;
  font-family: var(--pixel);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--blue);
  border: 1px solid rgba(110, 150, 255, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
}
.jstep__tag--hot { color: var(--amber); border-color: rgba(255, 167, 0, 0.4); }

/* ============ DEMO / ARCADE ============ */

.section--demo { padding-top: 110px; }
.section--demo::before {
  content: "";
  position: absolute; top: 60px; left: 50%;
  width: 1100px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(255, 136, 0, 0.12), transparent 62%);
  pointer-events: none;
}
.section--demo .section__head { text-align: center; margin-left: auto; margin-right: auto; }
.section--demo .section__head h2 { font-size: clamp(2.6rem, 7vw, 5rem); }
.section--demo .section__lede { margin-left: auto; margin-right: auto; }

.arcade {
  --acc1: #FFC200;
  --acc2: #FF8800;
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1A1610, #0E0B08);
  border-radius: 24px;
  padding: 14px 14px 0;
  box-shadow: 0 40px 110px rgba(255, 136, 0, 0.16), 0 18px 50px rgba(0, 0, 0, 0.6);
}
.arcade::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--acc1), var(--acc2) 55%, rgba(51, 100, 227, 0.5));
  opacity: 0.8;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.arcade .btn--primary {
  background: linear-gradient(135deg, var(--acc1), var(--acc2));
}

.arcade__hud {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 14px 12px;
  font-family: var(--pixel);
}
.hud-coins { display: flex; align-items: center; gap: 9px; font-size: 1rem; color: var(--gold); min-width: 86px; }
.hud-coins.bump { animation: coinbump 0.25s ease; }
@keyframes coinbump { 40% { transform: scale(1.22); } }
.hud-coins__icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFE89A 0%, #FFC200 40%, #E08700 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 235, 170, 0.55);
  display: inline-block;
}
.hud-coins__icon--lg { width: 34px; height: 34px; }
.hud-title { font-size: 0.7rem; letter-spacing: 0.26em; color: var(--muted); }
.hud-timer { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text); }
.hud-timer__bar {
  width: 130px; height: 8px;
  border-radius: 99px;
  background: rgba(241, 237, 230, 0.12);
  overflow: hidden;
  position: relative;
}
.hud-timer__bar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--acc1, #FFC200), var(--acc2, #FF8800));
  border-radius: 99px;
  transform-origin: left;
  transform: scaleX(var(--t, 1));
  transition: transform 0.1s linear;
}

.arcade__screen {
  position: relative;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: #160F08;
}
#gameCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 960 / 420;
  touch-action: manipulation;
}
.scanlines {
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.09) 3px 4px);
  opacity: 0.6;
}
/* cinematic vignette over the 3D view */
.arcade__screen::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.38) 100%);
  z-index: 2;
}
/* red pulse on obstacle hits */
.hitflash {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 50, 30, 0.4) 100%);
  opacity: 0;
  z-index: 4;
}
.hitflash.on { animation: hitpulse 0.45s ease-out; }
@keyframes hitpulse {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* overlays */
.overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 18px;
  background: rgba(10, 7, 4, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 5;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }
.overlay__title {
  font-family: var(--pixel);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.15;
  background-image: var(--grad-sunrise);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.overlay__hint { font-size: 0.86rem; color: var(--muted); line-height: 1.8; }
.overlay__code {
  font-family: var(--pixel);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid rgba(255, 194, 0, 0.45);
  background: rgba(255, 167, 0, 0.09);
  border-radius: 999px;
  padding: 10px 18px;
}
.overlay__code--used {
  color: var(--muted);
  border-color: rgba(241, 237, 230, 0.2);
  background: rgba(241, 237, 230, 0.05);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 136, 0, 0.6);
}
.overlay__time {
  font-family: var(--pixel);
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  color: var(--text);
  text-shadow: 0 0 30px rgba(255, 167, 0, 0.5);
}
.overlay__earned { font-family: var(--pixel); font-size: 0.6rem; letter-spacing: 0.3em; color: var(--muted); }
.overlay__coins {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--pixel);
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  color: var(--gold);
}
.overlay__coinword { font-size: 0.9rem; color: var(--muted); }
.overlay__row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* how-to-play panel: keycaps, gesture chips, pickup legend */
.controls {
  display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap;
  gap: 10px 30px;
  margin: 2px 0 4px;
}
.ctrl { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.ctrl__row { display: flex; align-items: center; gap: 8px; }
.ctrl__or { font-size: 0.74rem; color: var(--muted); }
.ctrl__label {
  font-family: var(--pixel);
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.key {
  min-width: 38px; height: 38px;
  padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: #FFD976;
  background: linear-gradient(180deg, #2E2719, #191309);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 4px solid #0A0805;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 14px rgba(0, 0, 0, 0.4);
}
.key--wide { padding: 0 16px; }
.karr { width: 0; height: 0; border: 6px solid transparent; display: block; }
.karr--l { border-right-color: #FFD976; margin-left: -5px; }
.karr--r { border-left-color: #FFD976; margin-right: -5px; }
.gest {
  font-family: var(--pixel);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px dashed rgba(255, 217, 118, 0.55);
  border-radius: 999px;
  padding: 11px 15px;
}
.pickup {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--pixel);
  font-size: 0.62rem;
  color: var(--gold);
  background: rgba(255, 194, 0, 0.08);
  border: 1px solid rgba(255, 194, 0, 0.28);
  border-radius: 999px;
  padding: 9px 13px;
  height: 38px;
}
.pickup--product { color: var(--pink); background: rgba(255, 95, 239, 0.07); border-color: rgba(255, 95, 239, 0.3); }
.pickup--bad { color: #FF6B5E; background: rgba(255, 90, 60, 0.07); border-color: rgba(255, 90, 60, 0.3); }
.ic { width: 16px; height: 16px; display: inline-block; position: relative; flex: none; }
.ic--coin {
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFE89A, #FFC200 45%, #C77400);
  box-shadow: inset 0 0 0 2px rgba(255, 235, 170, 0.55);
}
.ic--product { border-radius: 4px; background: linear-gradient(180deg, #FF9D2E, #E07000); }
.ic--product::after {
  content: "★";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  color: #FFE0B0;
}
.ic--taxi {
  width: 26px; height: 13px;
  margin-bottom: 3px;
  border-radius: 3px 5px 3px 3px;
  background: #EDE6DA;
}
.ic--taxi::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 5px;
  height: 3px;
  background: #FF8800;
}
.ic--taxi::after {
  content: "";
  position: absolute; left: 4px; bottom: -3px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #0B0805;
  box-shadow: 13px 0 0 #0B0805;
}

.tiers { width: min(440px, 94%); display: flex; flex-direction: column; gap: 6px; }
.tiers li {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid rgba(241, 237, 230, 0.1);
  border-radius: 10px;
  padding: 7px 14px;
  text-align: left;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.tiers__coins {
  font-family: var(--pixel);
  font-size: 0.68rem;
  color: var(--gold);
  min-width: 38px;
}
.tiers li.is-hit { border-color: rgba(255, 167, 0, 0.45); background: rgba(255, 136, 0, 0.1); color: var(--text); }
.tiers li.is-best { position: relative; border-color: var(--gold); box-shadow: 0 0 22px rgba(255, 194, 0, 0.25); }
.tiers li.is-best::after {
  content: "YOURS";
  margin-left: auto;
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: #1A0E00;
  background: var(--grad-sunrise);
  border-radius: 999px;
  padding: 5px 10px;
}

/* cosmos redirect toast */
.redirect {
  position: absolute; left: 50%; bottom: 16px; z-index: 6;
  transform: translateX(-50%) translateY(70px);
  display: flex; align-items: center; gap: 12px;
  background: #0D0B07;
  border: 1px solid rgba(255, 194, 0, 0.4);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}
.redirect.is-open { transform: translateX(-50%) translateY(0); }
.redirect__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #6BE69A;
  box-shadow: 0 0 12px #6BE69A;
  animation: blink 1.1s ease infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }
.redirect__url { color: var(--muted); }
.redirect__url strong { color: var(--gold); font-weight: 500; }
.redirect__ok { font-family: var(--pixel); font-size: 0.56rem; letter-spacing: 0.1em; color: #6BE69A; }

.arcade__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px;
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.arcade__mute {
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  border: 1px solid rgba(255, 194, 0, 0.35);
  border-radius: 999px;
  padding: 7px 13px;
  transition: 0.2s;
}
.arcade__mute[aria-pressed="true"] { color: var(--muted); border-color: var(--line); }

/* ============ SKIN SWITCHER + ARCADE FAMILY ============ */

.skins {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto 18px;
  position: relative;
}
.skins__label {
  font-family: var(--pixel);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-right: 4px;
}
.skin {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pixel);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}
.skin i {
  width: 13px; height: 13px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 0 10px var(--c2);
}
.skin:hover { color: var(--text); border-color: rgba(241, 237, 230, 0.35); transform: translateY(-2px); }
.skin.is-active {
  color: var(--text);
  border-color: rgba(241, 237, 230, 0.55);
  background: rgba(241, 237, 230, 0.07);
}
.skins__hint { font-size: 0.72rem; color: var(--muted); margin-left: 6px; }

.section--arcadefam::before {
  content: "";
  position: absolute; top: 0; left: -8%;
  width: 760px; height: 560px;
  background: radial-gradient(ellipse at center, rgba(255, 136, 0, 0.09), transparent 65%);
  pointer-events: none;
}

/* ============ MECHANICS ============ */

.section--mechanics::before {
  content: "";
  position: absolute; top: 0; right: -8%;
  width: 760px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(104, 38, 189, 0.16), transparent 65%);
  pointer-events: none;
}
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.mcard {
  position: relative;
  background: #12100B;
  border: 1px solid #251F14;
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.mcard:hover { transform: translateY(-6px); border-color: rgba(177, 140, 255, 0.45); box-shadow: 0 24px 60px rgba(104, 38, 189, 0.2); }
.mcard__tag {
  align-self: flex-start;
  font-family: var(--pixel);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  color: var(--lilac);
  border: 1px solid rgba(155, 108, 255, 0.4);
  border-radius: 999px;
  padding: 7px 12px;
  margin-bottom: 22px;
}
.mcard h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.mcard p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.mcard__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mcard__chips span {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(241, 237, 230, 0.07);
  border-radius: 999px;
  padding: 6px 12px;
}
.mcard--feature {
  background: linear-gradient(180deg, rgba(104, 38, 189, 0.2), #12100B 70%);
  border-color: rgba(155, 108, 255, 0.45);
}
.mcard--feature .mcard__tag { color: #1A0E00; background: var(--grad-lilac); border: none; }

/* ============ DATA & ADMIN ============ */

.section--data::before {
  content: "";
  position: absolute; top: 10%; left: -10%;
  width: 800px; height: 640px;
  background: radial-gradient(ellipse at center, rgba(51, 100, 227, 0.14), transparent 65%);
  pointer-events: none;
}
.data__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.data__copy h2 {
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.07;
}
.ticklist { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.ticklist li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 0.95rem;
}
.ticklist li strong { color: var(--text); font-weight: 500; }
.ticklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: #1A0E00;
  background: var(--grad-blue);
  border-radius: 7px;
}

/* dashboard mock */
.dash {
  background: #0E0D13;
  border: 1px solid #23203A;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(51, 100, 227, 0.12);
  font-size: 0.8rem;
  transform: rotate(0.6deg);
}
.dash__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid #1E1B33;
  background: #11101B;
}
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 9px; height: 9px; border-radius: 50%; background: #2C2849; display: block; }
.dash__dots i:first-child { background: #FF5FEF; opacity: 0.7; }
.dash__title { color: var(--muted); font-size: 0.76rem; letter-spacing: 0.04em; }
.dash__live { margin-left: auto; font-family: var(--pixel); font-size: 0.52rem; color: #6BE69A; letter-spacing: 0.12em; }
.dash__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: #1E1B33;
  border-bottom: 1px solid #1E1B33;
}
.dstat { background: #0E0D13; padding: 15px 16px; display: flex; flex-direction: column; gap: 3px; }
.dstat__label { color: #6F6A8E; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; }
.dstat__val { font-family: var(--pixel); font-size: 0.94rem; color: var(--text); }
.dstat__delta { color: #6BE69A; font-size: 0.68rem; }
.dash__chart { padding: 18px 18px 8px; }
.dash__bars { display: flex; align-items: flex-end; gap: 9px; height: 86px; }
.dash__bars i {
  flex: 1; height: var(--h);
  background: linear-gradient(180deg, #8FB0FF, #3364E3);
  border-radius: 5px 5px 2px 2px;
  opacity: 0.85;
  animation: barpulse 3.2s ease infinite;
}
.dash__bars i:nth-child(7) { animation-delay: 0.4s; background: var(--grad-sunrise); }
@keyframes barpulse { 50% { opacity: 0.55; } }
.dash__days { display: flex; gap: 9px; margin-top: 7px; }
.dash__days span { flex: 1; text-align: center; color: #6F6A8E; font-size: 0.62rem; }
.dash__table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.dash__table th {
  text-align: left; font-weight: 500;
  color: #6F6A8E; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 9px 18px; border-top: 1px solid #1E1B33;
}
.dash__table td {
  padding: 9px 18px;
  border-top: 1px solid #17152A;
  color: var(--muted);
  font-size: 0.76rem;
}
.dash__table td:first-child { color: var(--text); font-family: var(--pixel); font-size: 0.6rem; }
.pill {
  font-size: 0.64rem; letter-spacing: 0.05em;
  border-radius: 999px; padding: 4px 10px;
}
.pill--ok { color: #6BE69A; background: rgba(107, 230, 154, 0.1); }
.pill--wait { color: var(--gold); background: rgba(255, 194, 0, 0.1); }
.pill--play { color: var(--blue); background: rgba(110, 150, 255, 0.12); }

/* ============ CAPABILITIES ============ */

.section--cap::before {
  content: "";
  position: absolute; bottom: -10%; right: -6%;
  width: 760px; height: 560px;
  background: radial-gradient(ellipse at center, rgba(255, 95, 239, 0.1), transparent 65%);
  pointer-events: none;
}
.capgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cap {
  background: #12100B;
  border: 1px solid #251F14;
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.cap:hover { transform: translateY(-6px); border-color: rgba(255, 95, 239, 0.4); }
.cap__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem;
  background: rgba(241, 237, 230, 0.06);
  border: 1px solid var(--line);
  border-radius: 15px;
  margin-bottom: 20px;
}
.cap h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 9px; }
.cap p { color: var(--muted); font-size: 0.88rem; flex: 1; }
.cap__tag {
  margin-top: 20px;
  align-self: flex-start;
  font-family: var(--pixel);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  color: var(--amber);
  border: 1px solid rgba(255, 167, 0, 0.4);
  border-radius: 999px;
  padding: 6px 11px;
}
.cap__tag--brief { color: #1A0E00; background: var(--grad-pink); border: none; }

/* ============ ENGAGEMENT ============ */

.engage {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 18px;
  align-items: stretch;
}
.phases { display: flex; flex-direction: column; gap: 14px; }
.phase {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 22px;
  align-items: center;
  background: #12100B;
  border: 1px solid #251F14;
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.phase:hover { border-color: rgba(255, 167, 0, 0.45); transform: translateX(6px); }
.phase__num {
  font-family: var(--pixel);
  font-size: 1.7rem;
  background-image: var(--grad-sunrise);
  background-clip: text; -webkit-background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.phase h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 5px; }
.phase p { color: var(--muted); font-size: 0.88rem; }
.phase__time {
  font-family: var(--pixel);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(255, 194, 0, 0.35);
  border-radius: 999px;
  padding: 8px 13px;
  white-space: nowrap;
}
.engage__note {
  background: linear-gradient(160deg, rgba(255, 136, 0, 0.14), #12100B 65%);
  border: 1px solid rgba(255, 167, 0, 0.35);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.engage__note p {
  font-size: 1.22rem;
  font-weight: 200;
  line-height: 1.5;
  color: var(--text);
}
.engage__note strong { font-weight: 700; color: var(--gold); }

/* ============ FOOTER ============ */

.footer {
  position: relative;
  text-align: center;
  padding: 150px 28px 60px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer__glow {
  position: absolute; left: 50%; top: -10%;
  width: 1100px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 136, 0, 0.17), rgba(255, 95, 239, 0.06) 50%, transparent 70%);
  pointer-events: none;
}
.footer__kicker {
  position: relative;
  font-family: var(--pixel);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  color: var(--muted);
  margin-bottom: 26px;
}
.footer__title {
  position: relative;
  font-size: clamp(3rem, 10vw, 7.6rem);
  line-height: 1.02;
  margin-bottom: 22px;
}
.footer__sub { position: relative; color: var(--muted); font-size: 1.1rem; margin-bottom: 40px; }
.footer__actions {
  position: relative;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 90px;
}
.footer__base {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.footer__logo { height: 38px; }
.footer__base p { color: var(--muted); font-size: 0.78rem; line-height: 1.7; }
.footer__year { font-family: var(--pixel); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.2em; }

/* ============ RESPONSIVE ============ */

@media (max-width: 1080px) {
  .journey { grid-template-columns: repeat(3, 1fr); }
  .jstep:nth-child(4), .jstep:nth-child(5) { grid-column: span 1; }
  .capgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .data__grid { grid-template-columns: 1fr; gap: 40px; }
  .dash { transform: none; }
  .engage { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__client { display: none; }
  .cards3 { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 90px 20px 70px; }
}

@media (max-width: 600px) {
  .journey { grid-template-columns: 1fr; }
  .capgrid { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 52px 1fr; }
  .phase__time { grid-column: 2; justify-self: start; }
  .hero { padding-bottom: 190px; }
  .hero__stats { margin-top: 44px; }
  .arcade { padding: 8px 8px 0; }
  .arcade__hud { padding: 8px 8px 10px; }
  .hud-timer__bar { width: 70px; }
  .hud-title { display: none; }
  #gameCanvas { aspect-ratio: 640 / 420; }
  .skins__hint { display: none; }
  /* let overlays use the whole cabinet (HUD + screen + foot) on small screens */
  .arcade__screen { position: static; }
  .overlay { border-radius: 24px; }
  .scanlines { display: none; }
  .overlay { gap: 7px; padding: 12px; }
  .overlay__hint { font-size: 0.68rem; line-height: 1.55; }
  .overlay__code { font-size: 0.52rem; padding: 8px 13px; }
  .overlay__earned { display: none; }
  .overlay__time { font-size: 1.3rem; }
  .overlay__coins { font-size: 1.6rem; }
  .tiers li { font-size: 0.7rem; padding: 5px 10px; gap: 8px; }
  .tiers__coins { min-width: 30px; font-size: 0.58rem; }
  .controls { gap: 8px 16px; }
  .ctrl { gap: 6px; }
  .key { min-width: 30px; height: 30px; border-bottom-width: 3px; font-size: 0.48rem; }
  .gest { padding: 8px 11px; font-size: 0.46rem; }
  .pickup { height: 30px; padding: 6px 10px; font-size: 0.52rem; }
  .ctrl__label { font-size: 0.4rem; }
  .overlay .btn { padding: 12px 20px; font-size: 0.64rem; }
  .overlay .btn--xl { padding: 14px 24px; font-size: 0.72rem; }
  .redirect { font-size: 0.62rem; padding: 9px 13px; gap: 8px; }
  .footer__actions .btn--xl { padding: 17px 28px; font-size: 0.74rem; }
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  .ticker__track, .token-rail__pill, .noise, .dash__bars i, .redirect__dot { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
