/* ═══════════════════════════════════════════════════════════════════════════
   TUMBLE TYPE — website (v2 refinement pass)
   Design language: "letter tile as architecture"
   Every interactive element inherits the in-game bevel / offset shadow.
   Typography: Unbounded (display) + JetBrains Mono (metadata) + Figtree (body).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces — Ocean theme, matching in-game default */
  --bg:         #0a0a15;
  --bg-1:       #0f0f1f;
  --bg-2:       #14142a;
  --surface:    #1a1a2e;
  --surface-2:  #23233c;
  --border:     #2c2c46;
  --border-hi:  #3a3a58;

  /* Text */
  --ink:        #f1f1f8;
  --ink-dim:    #aeaec8;
  --ink-faint:  #7b7b96;
  --ink-ghost:  #4a4a62;

  /* Orb / accent palette */
  --red:        #e04a4a;
  --yellow:     #f0c940;
  --blue:       #4a82ec;
  --orange:     #ea8a3e;
  --green:      #46b168;
  --purple:     #9060e8;
  --gold:       #ffc93c;

  /* Tile shadows (mirror the in-game shader) */
  --tile-shadow:    4px 5px 0 rgba(0, 0, 0, 0.55);
  --tile-shadow-lg: 6px 8px 0 rgba(0, 0, 0, 0.60);
  --tile-shadow-xl: 9px 12px 0 rgba(0, 0, 0, 0.65);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Type */
  --f-display: 'Unbounded', 'Archivo Black', ui-sans-serif, system-ui, sans-serif;
  --f-body:    'Figtree', ui-sans-serif, system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* Layout */
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --nav-h: 64px;

  /* Easing */
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-fluid:    cubic-bezier(0.2, 0.9, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 1200px 800px at 50% -200px, rgba(144, 96, 232, 0.10), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 110% 30%, rgba(74, 130, 236, 0.06), transparent 50%),
    radial-gradient(ellipse 900px 600px at -10% 60%, rgba(224, 74, 74, 0.045), transparent 60%);
  background-attachment: fixed;
}

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

::selection { background: var(--gold); color: #111; }

/* Grain overlay */
.grain {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  UTILITIES                                                                  */
/* ─────────────────────────────────────────────────────────────────────────── */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
}
.tag--gold {
  color: var(--gold);
  border-color: rgba(255, 201, 60, 0.35);
  background: rgba(255, 201, 60, 0.07);
}
.tag--ghost {
  color: var(--ink-ghost);
  background: transparent;
  border-color: var(--border);
}

.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  box-shadow: 0 0 8px var(--green);
}

/* Section headers */
.shead {
  max-width: 720px;
  margin-bottom: clamp(28px, 3vw, 44px);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-fluid);
}
.shead--right {
  margin-left: auto;
  text-align: right;
}
.is-in .shead {
  opacity: 1;
  transform: translateY(0);
}

/* Section number styled as a mini letter-tile — echoes the game aesthetic */
.shead__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0;
  color: #0a0a15;
  background: var(--gold);
  border: 2px solid #0a0a15;
  border-radius: 12px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.55);
  margin-right: 12px;
  vertical-align: middle;
  position: relative;
  transform: rotate(-3deg);
}
.shead__num::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 0%, rgba(255,255,255,0.05) 35%, transparent 55%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}
.shead--right .shead__num { transform: rotate(3deg); }

.shead__tag {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.shead__title {
  margin-top: 22px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.1rem + 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.shead__title em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
}
.shead__sub {
  margin-top: 18px;
  max-width: 56ch;
  font-size: clamp(1rem, 0.94rem + 0.2vw, 1.12rem);
  color: var(--ink-dim);
  line-height: 1.6;
}
.shead--right .shead__sub { margin-left: auto; }

/* ─────────────────────────────────────────────────────────────────────────── */
/*  NAV                                                                        */
/* ─────────────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 21, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav__inner {
  max-width: var(--wrap);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--ink);
}
.nav__mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--tile-shadow);
}
.nav__mark img { width: 100%; height: 100%; object-fit: cover; }
.nav__word-accent { color: var(--gold); }

.nav__menu {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.nav__menu a {
  position: relative;
  padding: 8px 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.2s;
}
.nav__menu a:hover, .nav__menu a.is-active { color: var(--ink); }
.nav__menu a.is-active::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 2px;
  height: 2px;
  background: var(--gold);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #0a0a15;
  background: var(--gold);
  border: 1px solid #0a0a15;
  border-radius: 10px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.55);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.nav__cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.65);
}
.nav__cta:active {
  transform: translate(0, 0);
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.55);
}
.nav__cta-arrow { transition: transform 0.18s ease; }
.nav__cta:hover .nav__cta-arrow { transform: translateX(3px); }

/* ─────────────────────────────────────────────────────────────────────────── */
/*  MAIN                                                                       */
/* ─────────────────────────────────────────────────────────────────────────── */

main { position: relative; z-index: 1; }

main > section {
  max-width: var(--wrap);
  margin: 0 auto;
  /* Tightened from previous clamp(64px, 8vw, 120px) — less dead space. */
  padding: clamp(48px, 6vw, 88px) var(--gutter);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  HERO — two-column: content left, tile cluster right                        */
/*  Tiles are CONTAINED in their own column so they never overlap text.        */
/* ─────────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  min-height: min(72vh, 680px);
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s 0.1s ease forwards;
}

.hero__wordmark {
  max-width: 440px;
  margin: 22px 0 8px;
  margin-left: -18px;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.8s 0.2s ease forwards;
}
.hero__wordmark img {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, 0.5));
}

/* Tagline with staggered word reveal + blinking caret */
.hero__tag {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 1.3rem + 4.8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 22px;
  max-width: 12ch;
}
.hero__tag .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: wordRise 0.6s var(--ease-out-back) forwards;
  animation-delay: var(--d, 0s);
  margin-right: 0.22em;
}
.hero__tag .word--accent {
  color: var(--gold);
  position: relative;
  margin-right: 0;
}
.hero__tag .word--accent::after {
  content: '';
  position: absolute;
  left: -3px; right: -3px;
  bottom: -4px;
  height: 6px;
  background: var(--gold);
  opacity: 0;
  transform: skewX(-14deg) scaleX(0.3);
  transform-origin: left center;
  animation: underlineSlash 0.6s 1.1s var(--ease-fluid) forwards;
}
.hero__tag .caret {
  display: inline-block;
  width: 5px;
  height: 0.82em;
  vertical-align: -0.07em;
  background: var(--gold);
  margin-left: 6px;
  opacity: 0;
  animation:
    caretShow 0.1s 1.15s ease forwards,
    caretBlink 1.1s 1.3s infinite steps(1);
  box-shadow: 0 0 10px rgba(255, 201, 60, 0.5);
}
@keyframes wordRise { to { opacity: 1; transform: translateY(0); } }
@keyframes underlineSlash {
  to { opacity: 0.22; transform: skewX(-14deg) scaleX(1); }
}
@keyframes caretShow { to { opacity: 1; } }
@keyframes caretBlink { 50% { opacity: 0.12; } }

.hero__desc {
  max-width: 44ch;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.16rem);
  color: var(--ink-dim);
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s 0.85s ease forwards;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s 1.0s ease forwards;
}

/* Stats — inline badges rather than rigid grid table */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: rgba(10, 10, 21, 0.42);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--tile-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s 1.15s ease forwards;
  max-width: 640px;
}
.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__stats strong {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 1rem + 1vw, 1.85rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
  text-transform: none;
}

.hero__note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  opacity: 0;
  animation: rise 0.7s 1.3s ease forwards;
}
.hero__note .ios-note {
  display: inline-block;
  font-style: normal;
  color: var(--ink-ghost);
  padding-left: 10px;
  border-left: 1px solid var(--border);
  margin-left: 2px;
}

/* ─── Hero tile cluster ──────────────────────────────────────────────────── */

.hero__board {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin: 0 auto;
  pointer-events: none;
}
.hero__board::before {
  /* soft ambient glow behind the tile cluster */
  content: '';
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle at 30% 35%, rgba(74, 130, 236, 0.18), transparent 55%),
    radial-gradient(circle at 72% 65%, rgba(255, 201, 60, 0.14), transparent 55%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}
.hero__board .tile { pointer-events: auto; }

.tile {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(60px, 9vw, 96px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  color: #fff;
  background: var(--surface);
  border: 2px solid #0a0a15;
  border-radius: 14px;
  box-shadow: var(--tile-shadow-lg);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  /* Drop-in from above with overshoot, then settle into infinite float */
  opacity: 0;
  transform: translateY(-80px) rotate(var(--r));
  animation:
    tileDrop 0.9s var(--ease-out-back) forwards,
    tileFloat 6s ease-in-out infinite;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.9s);
  transition: transform 0.22s var(--ease-out-back), box-shadow 0.22s ease, filter 0.22s ease;
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.05) 30%,
      transparent 50%,
      rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}
.tile:hover {
  transform: translateY(-6px) rotate(calc(var(--r) + 2deg)) scale(1.05);
  filter: brightness(1.12);
  box-shadow: 9px 12px 0 rgba(0, 0, 0, 0.7);
  z-index: 3;
}
.tile.is-pop {
  animation: tilePop 0.45s cubic-bezier(0.3, 1.8, 0.4, 1);
}
.tile--sm { width: clamp(44px, 5vw, 68px); font-size: clamp(0.9rem, 1.4vw, 1.3rem); }

.tile--r   { background: #b63f3f; }
.tile--y   { background: #c4a23a; color: #1a1400; }
.tile--b   { background: #3e6bc8; }
.tile--key {
  background: #0a0a15;
  color: var(--gold);
  border-color: var(--gold);
  text-shadow: 0 0 14px rgba(255, 201, 60, 0.6);
}
.tile--key::before {
  background: linear-gradient(to bottom, rgba(255, 201, 60, 0.14), transparent 60%);
}

@keyframes tileDrop {
  0%   { opacity: 0; transform: translateY(-120px) rotate(calc(var(--r) - 12deg)); }
  55%  { opacity: 1; transform: translateY(10px) rotate(calc(var(--r) + 4deg)); }
  78%  { transform: translateY(-4px) rotate(calc(var(--r) - 1deg)); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--r)); }
}
@keyframes tileFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50%      { transform: translateY(-8px) rotate(calc(var(--r) + 1deg)); }
}
@keyframes tilePop {
  0%   { transform: translateY(-8px) rotate(var(--r)) scale(1); }
  30%  { transform: translateY(-18px) rotate(calc(var(--r) + 8deg)) scale(1.18); filter: brightness(1.35); }
  70%  { transform: translateY(4px) rotate(calc(var(--r) - 4deg)) scale(0.96); }
  100% { transform: translateY(0) rotate(var(--r)) scale(1); filter: brightness(1); }
}

@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ─────────────────────────────────────────────────────────────────────────── */
/*  BUTTONS                                                                    */
/* ─────────────────────────────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 24px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
  border: 2px solid #0a0a15;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.15s var(--ease-fluid), box-shadow 0.15s var(--ease-fluid);
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, transparent 40%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(1px, 1px); }

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--tile-shadow-lg);
  min-width: 200px;
}
.btn--primary:hover { box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.65); }
.btn--primary:active { box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.5); }
.btn__label {
  font-size: 20px;
  letter-spacing: 0.01em;
}
.btn__sub {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 3px;
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--tile-shadow);
  font-size: 15px;
  padding: 18px 24px;
}
.btn--ghost:hover { box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.6); }

/* ─────────────────────────────────────────────────────────────────────────── */
/*  LOOP                                                                       */
/* ─────────────────────────────────────────────────────────────────────────── */

.loop__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) {
  .loop__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

.loop__step {
  position: relative;
  padding: 30px 26px 28px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--tile-shadow);
  overflow: hidden;
  transition: transform 0.24s, box-shadow 0.24s, border-color 0.24s;
}
.loop__step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0%, transparent 40%);
  pointer-events: none;
}
.loop__step:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.55);
  border-color: var(--border-hi);
}

.loop__beat {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--ink-ghost);
  display: block;
  margin-bottom: 12px;
}
.loop__verb {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 1.5rem + 3vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.loop__step:nth-child(1) .loop__verb { color: var(--red); }
.loop__step:nth-child(2) .loop__verb { color: var(--gold); }
.loop__step:nth-child(3) .loop__verb { color: var(--blue); }

.loop__text {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 30ch;
}

.loop__mini {
  display: flex;
  gap: 4px;
  margin-top: 22px;
}
.loop__mini--col { flex-direction: column; width: fit-content; }

.mini-tile {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  background: var(--surface);
  border: 1.5px solid #0a0a15;
  border-radius: 6px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  position: relative;
}
.mini-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22), transparent 45%);
  pointer-events: none;
}
.mini-tile--r    { background: #b63f3f; }
.mini-tile--y    { background: #c4a23a; color: #1a1400; }
.mini-tile--b    { background: #3e6bc8; }
.mini-tile--key  {
  background: #0a0a15;
  color: var(--gold);
  border-color: var(--gold);
}

.loop__timer {
  margin-top: 22px;
  width: 100%;
  height: 14px;
  background: var(--surface);
  border: 1.5px solid #0a0a15;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.loop__timer-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(to right, var(--green) 0%, var(--yellow) 60%, var(--red) 100%);
  animation: drain 6s linear infinite;
  transform-origin: left;
}
@keyframes drain {
  0%   { transform: scaleX(1); }
  85%  { transform: scaleX(0.08); }
  90%  { transform: scaleX(1); }
  100% { transform: scaleX(1); }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  ORBS — tiered progression: singles → combos → ultimate                     */
/* ─────────────────────────────────────────────────────────────────────────── */

.orbs__row-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.orbs__row-label:first-of-type { margin-top: 0; }

.orbs__row-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0a0a15;
  background: var(--gold);
  padding: 4px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}
.orbs__row-tag--rainbow {
  background: conic-gradient(from 160deg, #e04a4a, #f0c940, #46b168, #4a82ec, #9060e8, #e04a4a);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 14px rgba(144, 96, 232, 0.35);
}

.orbs__row-name {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.orbs__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 10px;
}
@media (min-width: 720px) {
  .orbs__row { grid-template-columns: repeat(3, 1fr); }
}

.orb {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--tile-shadow);
  overflow: hidden;
  transition: transform 0.24s, box-shadow 0.24s, border-color 0.24s;
}
.orb:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.55);
  border-color: var(--border-hi);
}

.orb__glyph {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.orb__glyph::before {
  /* soft radial backdrop inside the slot that pulses on hover */
  content: '';
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, var(--orb-glow, transparent), transparent 60%);
  border-radius: 50%;
  opacity: 0.55;
  transition: opacity 0.3s, transform 0.4s ease;
}
.orb:hover .orb__glyph::before { opacity: 1; transform: scale(1.3); }

.orb__dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  position: relative;
  z-index: 1;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    inset 0 -3px 4px rgba(0, 0, 0, 0.4),
    0 0 18px var(--orb-glow, transparent);
  transition: transform 0.3s var(--ease-out-back), box-shadow 0.3s;
}
.orb:hover .orb__dot {
  transform: scale(1.15);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.32),
    inset 0 -3px 4px rgba(0, 0, 0, 0.4),
    0 0 32px var(--orb-glow, transparent);
}

.orb--r      { --orb-glow: rgba(224, 74, 74, 0.55);  }
.orb--r .orb__dot { background: radial-gradient(circle at 30% 30%, #ff6464, #8a1e1e); }

.orb--y      { --orb-glow: rgba(240, 201, 64, 0.55); }
.orb--y .orb__dot { background: radial-gradient(circle at 30% 30%, #ffe26c, #a48010); }

.orb--b      { --orb-glow: rgba(74, 130, 236, 0.55); }
.orb--b .orb__dot { background: radial-gradient(circle at 30% 30%, #7bb0ff, #1e459a); }

.orb--o      { --orb-glow: rgba(234, 138, 62, 0.55); }
.orb--o .orb__dot { background: radial-gradient(circle at 30% 30%, #ffb06c, #9a4e12); }

.orb--g      { --orb-glow: rgba(70, 177, 104, 0.55); }
.orb--g .orb__dot { background: radial-gradient(circle at 30% 30%, #7de89b, #1f6636); }

.orb--p      { --orb-glow: rgba(144, 96, 232, 0.55); }
.orb--p .orb__dot { background: radial-gradient(circle at 30% 30%, #b68bff, #4e2a9a); }

.orb--rainbow .orb__glyph {
  width: 68px; height: 68px;
  border-radius: 16px;
}
.orb--rainbow .orb__dot {
  width: 38px; height: 38px;
  background: conic-gradient(from 160deg, #e04a4a, #f0c940, #46b168, #4a82ec, #9060e8, #e04a4a);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 4px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(144, 96, 232, 0.4);
  animation: spin 6s linear infinite;
}
.orb--rainbow:hover .orb__dot { animation-duration: 2s; box-shadow: inset 0 2px 0 rgba(255,255,255,0.45), 0 0 36px rgba(144,96,232,0.55); }

@keyframes spin { to { transform: rotate(360deg); } }

.orb__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--ink);
}
.orb__spec {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.orb__detail {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
}

.orb--rainbow {
  background:
    linear-gradient(135deg,
      rgba(224, 74, 74, 0.1),
      rgba(240, 201, 64, 0.09),
      rgba(74, 130, 236, 0.09),
      rgba(144, 96, 232, 0.12));
  border-color: rgba(144, 96, 232, 0.35);
}
.orb--rainbow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    transparent 0%, transparent 55%,
    rgba(144, 96, 232, 0.06) 80%,
    rgba(240, 201, 64, 0.08) 100%);
  pointer-events: none;
}

/* The full-width Rainbow "hero" card — horizontal layout emphasising finality */
.orb--hero {
  padding: 28px 30px;
}
.orb--hero .orb__glyph {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.orb--hero .orb__dot { width: 52px; height: 52px; }
.orb--hero .orb__name {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  margin-bottom: 8px;
}
.orb--hero .orb__detail {
  max-width: 68ch;
}

@media (min-width: 640px) {
  .orb--hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 26px;
    align-items: center;
  }
  .orb--hero .orb__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  DIFFICULTY                                                                 */
/* ─────────────────────────────────────────────────────────────────────────── */

.diff__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 780px) {
  .diff__grid { grid-template-columns: repeat(3, 1fr); }
}

.diff__card {
  position: relative;
  padding: 26px 24px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--tile-shadow);
  transition: transform 0.24s, box-shadow 0.24s, border-color 0.24s;
}
.diff__card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.6);
  border-color: var(--border-hi);
}

.diff__cols {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.diff__cols span {
  width: 18px;
  height: 48px;
  border-radius: 4px;
  background: var(--surface-2);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.diff__card--chill .diff__cols span:nth-child(1) { background: #3e6bc8; }
.diff__card--chill .diff__cols span:nth-child(2) { background: #c4a23a; }
.diff__card--chill .diff__cols span:nth-child(3) { background: #b63f3f; }

.diff__card--tough .diff__cols span:nth-child(1) { background: #b63f3f; }
.diff__card--tough .diff__cols span:nth-child(2) { background: #3e6bc8; }
.diff__card--tough .diff__cols span:nth-child(3) { background: #c4a23a; }
.diff__card--tough .diff__cols span:nth-child(4) { background: #b63f3f; }

.diff__card--gnarly .diff__cols span:nth-child(1) { background: #c4a23a; }
.diff__card--gnarly .diff__cols span:nth-child(2) { background: #b63f3f; }
.diff__card--gnarly .diff__cols span:nth-child(3) { background: #3e6bc8; }
.diff__card--gnarly .diff__cols span:nth-child(4) { background: #c4a23a; }
.diff__card--gnarly .diff__cols span:nth-child(5) { background: #b63f3f; }

.diff__name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.2rem + 2vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.diff__card--chill .diff__name  { color: var(--blue); }
.diff__card--tough .diff__name  { color: var(--gold); }
.diff__card--gnarly .diff__name { color: var(--red); }

.diff__desc {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 28ch;
}

.diff__stats {
  display: flex;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.diff__stats div { display: flex; flex-direction: column; gap: 4px; }
.diff__stats dt {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.diff__stats dd {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  DEPTH                                                                      */
/* ─────────────────────────────────────────────────────────────────────────── */

.depth__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 760px) {
  .depth__grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .feat--big    { grid-column: span 6; }
  .feat--red    { grid-column: span 3; }
  .feat--yellow { grid-column: span 3; }
  .feat--blue   { grid-column: span 3; }
  .feat--wide   { grid-column: span 6; }
}
@media (min-width: 1040px) {
  .feat--big    { grid-column: span 3; grid-row: span 2; }
  .feat--yellow { grid-column: span 3; }
  .feat--red    { grid-column: span 3; }
  .feat--blue   { grid-column: span 3; }
  .feat--wide   { grid-column: span 6; }
}

.feat {
  position: relative;
  padding: 26px 24px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--tile-shadow);
  overflow: hidden;
  transition: transform 0.24s, box-shadow 0.24s, border-color 0.24s;
}
.feat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
  pointer-events: none;
}
.feat:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.55);
  border-color: var(--border-hi);
}

.feat__num {
  position: absolute;
  top: 18px; right: 24px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.4rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: -0.03em;
}
.feat__num-u {
  font-size: 0.5em;
  opacity: 0.8;
  margin-left: 1px;
}

.feat__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 22ch;
  position: relative;
  z-index: 1;
}
.feat__text {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 48ch;
  position: relative;
  z-index: 1;
}
.feat__text strong { color: var(--ink); font-weight: 600; }

.feat__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 680px) {
  .feat__list { grid-template-columns: 1fr 1fr; gap: 12px 36px; }
}
.feat__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.55;
}
.feat__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}
.feat__list li strong { color: var(--ink); font-weight: 600; }

.feat--big {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(144, 96, 232, 0.16), transparent 55%),
    var(--bg-1);
  border-color: rgba(144, 96, 232, 0.25);
}
.feat--big .feat__num  {
  color: rgba(144, 96, 232, 0.3);
  font-size: clamp(2.8rem, 1.8rem + 4vw, 5.4rem);
}
.feat--big .feat__title { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }

.feat--yellow { border-color: rgba(240, 201, 64, 0.25); }
.feat--yellow .feat__num { color: rgba(240, 201, 64, 0.28); }

.feat--red    { border-color: rgba(224, 74, 74, 0.25); }
.feat--red    .feat__num { color: rgba(224, 74, 74, 0.3); }

.feat--blue   { border-color: rgba(74, 130, 236, 0.25); }
.feat--blue   .feat__num { color: rgba(74, 130, 236, 0.3); }

.feat--wide {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(255, 201, 60, 0.07), transparent 60%),
    var(--bg-1);
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  LANGUAGES STRIP                                                            */
/* ─────────────────────────────────────────────────────────────────────────── */

.langs__strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--tile-shadow);
}
.lang {
  padding: 20px 18px;
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s;
}
.lang:hover { background: var(--bg-2); }
.lang__code {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.lang__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.2;
}
.lang__count {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  GALLERY — portrait phone frames, 9:16 aspect, NO CROPPING                  */
/* ─────────────────────────────────────────────────────────────────────────── */

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 600px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 960px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

.shot {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #05050c;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--tile-shadow-lg);
  overflow: hidden;
  transition: transform 0.28s var(--ease-fluid), box-shadow 0.28s, border-color 0.28s;
}
.shot::before {
  /* top bezel sheen */
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
  z-index: 2;
  border-radius: 20px 20px 0 0;
}
.shot::after {
  /* bottom bezel sheen */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 14%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
  z-index: 2;
  border-radius: 0 0 20px 20px;
}
.shot:hover {
  transform: translate(-3px, -4px);
  box-shadow: 9px 12px 0 rgba(0, 0, 0, 0.65);
  border-color: var(--border-hi);
}
.shot__trigger {
  position: absolute;
  inset: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  z-index: 1;
  isolation: isolate;
}
.shot__trigger::after {
  content: '⤢';
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  background: rgba(10, 10, 21, 0.78);
  border: 1px solid var(--border);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 3;
  backdrop-filter: blur(6px);
}
.shot:hover .shot__trigger::after,
.shot__trigger:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.shot__trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease-fluid);
}
.shot:hover .shot__trigger img { transform: scale(1.04); }

.shot figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  background: rgba(10, 10, 21, 0.82);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
}
.shot__tag {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--gold);
  color: #0a0a15;
  border-radius: 5px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0;
}
.shot__label { font-weight: 500; color: var(--ink); }

/* ─────────────────────────────────────────────────────────────────────────── */
/*  LIGHTBOX                                                                   */
/* ─────────────────────────────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 60px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__frame {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox__img {
  max-width: min(90vw, 500px);
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--tile-shadow-xl);
  background: #05050c;
}
.lightbox__caption {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 12px;
  background: rgba(10, 10, 21, 0.7);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--tile-shadow);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.lightbox__close { top: 24px; right: 24px; font-size: 16px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--gold); color: #0a0a15; }
.lightbox__nav--prev:hover { transform: translate(-2px, calc(-50% - 2px)); }
.lightbox__nav--next:hover { transform: translate(-2px, calc(-50% - 2px)); }

/* ─────────────────────────────────────────────────────────────────────────── */
/*  GET THE GAME                                                               */
/* ─────────────────────────────────────────────────────────────────────────── */

.get__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 760px) { .get__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .get__list { grid-template-columns: repeat(4, 1fr); } }

.plat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 18px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--tile-shadow);
  color: inherit;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  min-height: 220px;
}
.plat--live:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.55);
  border-color: rgba(70, 177, 104, 0.4);
}
.plat--soon {
  opacity: 0.75;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 24px,
      rgba(255, 255, 255, 0.012) 24px 48px),
    var(--bg-1);
}

.plat__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.plat__badge {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink-faint);
}
.plat__badge--live {
  background: var(--green);
  color: #052a11;
}
.plat__price {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.plat--soon .plat__price { color: var(--ink-ghost); }

.plat__name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 1.1rem + 1vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.plat__desc {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}
.plat__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.plat__cta {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--green);
  letter-spacing: 0.01em;
}
.plat__cta--mute { color: var(--ink-faint); }
.plat__platforms {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
}

.get__note {
  margin-top: 26px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
  background: rgba(224, 74, 74, 0.04);
  border: 1px solid rgba(224, 74, 74, 0.18);
  border-radius: var(--r-md);
}
.get__note .dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.get__note em { font-style: normal; color: var(--ink); font-weight: 500; }

/* ─────────────────────────────────────────────────────────────────────────── */
/*  FOOTER                                                                     */
/* ─────────────────────────────────────────────────────────────────────────── */

.foot {
  position: relative;
  margin-top: clamp(40px, 5vw, 80px);
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(28px, 4vw, 44px);
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}
.foot::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right,
    transparent 0%, var(--red) 20%, var(--gold) 40%, var(--green) 60%, var(--blue) 80%, transparent 100%);
  opacity: 0.45;
}

.foot__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 800px) {
  .foot__inner {
    grid-template-columns: 1fr 1.6fr;
    align-items: start;
    gap: 60px;
  }
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.foot__mark {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--tile-shadow);
}
.foot__mark img { width: 100%; height: 100%; object-fit: cover; }
.foot__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.foot__studio {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.foot__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.foot__col h4 {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.foot__col ul { display: flex; flex-direction: column; gap: 8px; }
.foot__col a {
  font-size: 14px;
  color: var(--ink-dim);
  transition: color 0.15s;
}
.foot__col a:hover { color: var(--gold); }

.foot__copy {
  grid-column: 1 / -1;
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-ghost);
}
.foot__copy a { color: var(--ink-faint); }
.foot__copy a:hover { color: var(--gold); }

/* ─────────────────────────────────────────────────────────────────────────── */
/*  RESPONSIVE ADJUSTMENTS                                                     */
/* ─────────────────────────────────────────────────────────────────────────── */

@media (max-width: 959px) {
  .hero__grid { min-height: auto; }
  .hero__board { max-width: 380px; margin-top: 8px; }
}

@media (max-width: 720px) {
  .nav__menu { display: none; }
  .nav__inner { gap: 16px; }
  .nav__brand { margin-right: auto; }

  .shead--right { text-align: left; margin-left: 0; }
  .shead--right .shead__sub { margin-left: 0; }

  .hero__wordmark { max-width: 320px; margin-left: -12px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .btn--primary, .btn--ghost { width: 100%; text-align: center; align-items: center; }

  .hero__note { font-size: 11px; }
  .hero__note .ios-note {
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 6px;
    margin-top: 2px;
    width: 100%;
  }

  .hero__board { max-width: 320px; }

  .foot__nav { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .lightbox { padding: 24px; }
  .lightbox__close { top: 16px; right: 16px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero__stats { padding: 14px 18px; gap: 16px 24px; }
  .langs__strip { grid-template-columns: 1fr 1fr; }
  .foot__nav { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  REDUCED MOTION                                                             */
/* ─────────────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__wordmark,
  .hero__meta,
  .hero__desc,
  .hero__ctas,
  .hero__stats,
  .hero__note,
  .hero__tag .word,
  .hero__tag .caret,
  .shead { opacity: 1; transform: none; }
  .tile {
    opacity: 1;
    transform: rotate(var(--r));
  }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/*  FOCUS                                                                      */
/* ─────────────────────────────────────────────────────────────────────────── */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav__cta:focus-visible { outline-offset: 5px; }
.shot__trigger:focus-visible { outline-offset: -2px; }
