:root {
  /* paper */
  --bg: #F5F2EA;
  --bg-deep: #EDE8DB;
  --bg-card: #FBF9F2;
  --surface: #FFFEF9;
  --paper-shade: #E8E2D0;

  --glass-1: rgba(10,22,40,0.02);
  --glass-2: rgba(10,22,40,0.04);
  --glass-3: rgba(10,22,40,0.06);
  --glass-4: rgba(10,22,40,0.10);
  --stroke: rgba(10,22,40,0.12);
  --stroke-strong: rgba(10,22,40,0.22);
  --stroke-hair: rgba(10,22,40,0.06);

  /* ink */
  --text: #0A1628;
  --text-soft: #2B3A4F;
  --text-mute: #6B7A8C;
  --text-dim: #9AA5B4;

  /* accent — muted, editorial */
  --gold: #8B6914;
  --gold-soft: #A88A3D;
  --gold-ink: #5C4508;
  --navy: #0A1628;
  --navy-soft: #1D2B42;
  --teal: #2C5F5C;
  --teal-soft: #4A7E7B;
  --wine: #732838;
  --forest: #2F4A36;

  /* rarity (muted, pastel) */
  --r-common: #A8B5C8;
  --r-uncommon: #6A8F6F;
  --r-rare: #5A7E9E;
  --r-epic: #8068A6;
  --r-legendary: #8B6914;

  /* semantic */
  --accent: var(--gold);
  --accent-ink: var(--gold-ink);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  /* subtle paper warmth + ultra-soft pastel UV bloom */
  background:
    radial-gradient(1100px 550px at 18% -10%, rgba(139,105,20,0.05), transparent 60%),
    radial-gradient(900px 500px at 82% 20%, rgba(44,95,92,0.04), transparent 55%),
    radial-gradient(800px 800px at 50% 120%, rgba(115,40,56,0.03), transparent 60%),
    var(--bg);
  min-height: 100vh;
  /* filigree watermark — barely-there topographic paper */
  background-attachment: fixed, fixed, fixed, fixed;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(10,22,40,0.015) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(45deg, rgba(10,22,40,0.010) 0 1px, transparent 1px 30px);
  opacity: 0.8;
}
#root { position: relative; z-index: 1; }

/* ——————————————————————————— type ——————————————————————————— */
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); font-style: italic; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.cyan { color: var(--teal); }
.eyebrow.gold { color: var(--gold); }
.eyebrow.muted { color: var(--text-mute); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }

.h-display {
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  font-family: var(--font-serif);
  font-style: normal;
  color: var(--text);
}
.h-display .serif { font-weight: 400; font-style: italic; font-size: 1em; letter-spacing: -0.01em; color: var(--gold); }
.h-display .thin { font-weight: 300; color: var(--text-soft); font-family: var(--font-sans); font-size: 0.88em; }

.h-1 {
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  font-family: var(--font-serif);
  color: var(--text);
}
.h-1 .serif { font-weight: 400; font-style: italic; color: var(--gold); }

.h-2 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.h-3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--text-soft); line-height: 1.6; margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.25vw, 20px); color: var(--text-soft); max-width: 640px; line-height: 1.55; }

.dim { color: var(--text-mute); }
.strong { color: var(--text); }

/* ——————————————————————————— layout ——————————————————————————— */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
section {
  position: relative;
  padding: 128px 0;
}
section.tight { padding: 80px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.section-head > div:first-child { max-width: 720px; }
.section-head .eyebrow { margin-bottom: 20px; display: block; }

/* MRZ bottom strip between sections */
.mrz-strip {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.16em;
  padding: 16px 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-deep);
}
.mrz-strip > span {
  display: inline-block;
  padding-right: 48px;
}

/* ——————————————————————————— surfaces ——————————————————————————— */
.card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px -16px rgba(10,22,40,0.12);
}
.card.flat {
  background: var(--bg-card);
}
.card-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
}
.card-corner.tr { top: 14px; right: 16px; }
.card-corner.bl { bottom: 14px; left: 16px; }
.card-corner.br { bottom: 14px; right: 16px; }

/* topographic / UV background canvas */
.uv-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
}
.uv-bg svg { width: 100%; height: 100%; display: block; opacity: 0.18; }

/* ——————————————————————————— buttons ——————————————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #F5F2EA;
  border-color: var(--navy);
  box-shadow: 0 10px 24px -14px rgba(10,22,40,0.45);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--navy-soft); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--stroke-strong);
}
.btn-ghost:hover { background: var(--glass-2); border-color: var(--navy); }
.btn-gold {
  background: var(--gold);
  color: #FFF8E1;
  border-color: var(--gold-ink);
  box-shadow: 0 10px 24px -14px rgba(139,105,20,0.5);
}
.btn-gold:hover { background: var(--gold-ink); }
.btn-tiny {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* App Store button — dark on cream */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  background: var(--navy);
  color: #F5F2EA;
  border-radius: 14px;
  font-family: var(--font-sans);
  text-decoration: none;
  box-shadow: 0 14px 30px -16px rgba(10,22,40,0.5);
  transition: transform 160ms ease;
}
.appstore-btn:hover { transform: translateY(-1px); }
.appstore-btn .tiny { font-size: 10px; letter-spacing: 0.08em; opacity: 0.72; }
.appstore-btn .big { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin-top: 2px; }

/* ——————————————————————————— nav ——————————————————————————— */
.nav {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(245,242,234,0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--stroke);
}
.nav .inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 13.5px; color: var(--text-soft);
}
.nav-links a { color: inherit; text-decoration: none; transition: color 160ms; }
.nav-links a:hover { color: var(--text); }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--text);
}
.brand .dot { width: 10px; height: 10px; background: var(--gold); border-radius: 2px; transform: rotate(45deg); }

/* ——————————————————————————— hero ——————————————————————————— */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 150px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-copy .meta-row {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-mute);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-copy .meta-row .pill {
  padding: 6px 12px; border: 1px solid var(--stroke); border-radius: 999px;
  background: var(--bg-card);
}
.hero-copy .meta-row .pill.dot::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-right: 8px;
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-copy .cta-row {
  display: flex; gap: 14px; align-items: center; margin-top: 40px;
  flex-wrap: wrap;
}
.hero-copy .sub-row {
  display: flex; gap: 40px; margin-top: 48px;
  padding-top: 28px; border-top: 1px solid var(--stroke);
}
.hero-copy .sub-row > div { min-width: 0; }
.hero-copy .sub-row .kpi {
  font-family: var(--font-serif); font-size: 34px; font-weight: 400; color: var(--text);
  letter-spacing: -0.02em; line-height: 1;
}
.hero-copy .sub-row .kpi.green { color: var(--gold); font-style: italic; }
.hero-copy .sub-row .kpi.cyan { color: var(--teal); font-style: italic; }
.hero-copy .sub-row .label {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-mute);
  letter-spacing: 0.18em; text-transform: uppercase; margin-top: 10px;
}

/* Hero UV map — now a pale vellum passport page */
.hero-map {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, #FDFBF3 0%, #EDE5D0 100%);
  border: 1px solid var(--stroke-strong);
  cursor: crosshair;
  box-shadow: 0 30px 60px -30px rgba(10,22,40,0.25), inset 0 1px 0 rgba(255,255,255,0.8);
}
.hero-map::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,22,40,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,22,40,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 85%);
  pointer-events: none;
}
.hero-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ───────────── District boundaries (real Istanbul geometry) ───────────── */
.hero-map .district {
  fill: #F5F0DE;
  stroke: rgba(10, 22, 40, 0.5);
  stroke-width: 1.2;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 260ms ease, stroke 260ms ease, opacity 260ms ease, stroke-width 180ms ease;
  vector-effect: non-scaling-stroke;
}
.hero-map .district:hover,
.hero-map .district.is-hover {
  fill: rgba(139, 105, 20, 0.25);
  stroke: var(--gold);
  stroke-width: 2.2;
}
.hero-map .district.is-dim {
  opacity: 0.35;
  stroke: rgba(10, 22, 40, 0.25);
}
.hero-map .district.is-outside {
  fill: rgba(10, 22, 40, 0.04);
  stroke: rgba(10, 22, 40, 0.22);
  stroke-width: 0.8;
  pointer-events: none;
  cursor: default;
}

/* District labels (centroids) */
.hero-map .district-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  fill: rgba(10, 22, 40, 0.55);
  opacity: 0;
  transition: opacity 220ms ease, fill 220ms ease;
}
.hero-map .district:hover ~ .district-labels .district-label,
.hero-map .district-label.is-hover {
  opacity: 1;
}
.hero-map .district-label.is-hover {
  fill: #8B6914;
}

/* Tooltip */
.hero-map .district-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  padding: 10px 14px;
  background: #0A1628;
  color: #FDFBF3;
  border: 1px solid rgba(139, 105, 20, 0.55);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4), 0 0 16px rgba(139, 105, 20, 0.2);
  display: flex; align-items: baseline; gap: 6px;
  animation: tip-in 160ms ease-out;
}
@keyframes tip-in {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-map .district-tooltip .t-name {
  font-family: var(--font-serif); font-style: italic;
  font-size: 15px; letter-spacing: 0;
  color: #FFD700;
}
.hero-map .district-tooltip .t-sep { opacity: 0.4; }
.hero-map .district-tooltip .t-count {
  color: #FFD700; font-weight: 600; font-size: 13px;
}
.hero-map .district-tooltip .t-label {
  color: rgba(253, 251, 243, 0.5);
  text-transform: uppercase; font-size: 9px; letter-spacing: 0.2em;
}
.hero-map .uv-light {
  position: absolute;
  width: 460px; height: 460px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
  background: radial-gradient(circle, rgba(139,105,20,0.22) 0%, rgba(44,95,92,0.12) 32%, transparent 66%);
  filter: blur(1px);
  transition: opacity 300ms ease;
}
.hero-map .uv-chrome {
  position: absolute; inset: 14px;
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--font-mono); font-size: 9px; color: var(--text-mute);
  letter-spacing: 0.14em;
  pointer-events: none;
}
.hero-map .corner {
  width: 12px; height: 12px; border: 1px solid var(--gold); opacity: 0.7;
}
.hero-map .corner.tl { border-right: 0; border-bottom: 0; }
.hero-map .corner.tr { border-left: 0; border-bottom: 0; }
.hero-map .corner.bl { border-right: 0; border-top: 0; }
.hero-map .corner.br { border-left: 0; border-top: 0; }

.hero-map .mrz-overlay {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  font-family: var(--font-mono); font-size: 9.5px; color: var(--text-mute);
  letter-spacing: 0.12em;
  display: flex; justify-content: space-between;
  pointer-events: none;
}

/* landmark pins on map */
.landmark {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.landmark::after {
  content: '';
  position: absolute; inset: -6px;
  border: 1px dashed currentColor;
  border-radius: 50%;
  opacity: 0.6;
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ——————————————————————————— 35m rule ——————————————————————————— */
.proximity {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center;
}
@media (max-width: 900px) { .proximity { grid-template-columns: 1fr; } }

.distance-viz {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(139,105,20,0.04) 0%, transparent 70%), var(--bg-card);
  border: 1px solid var(--stroke);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10,22,40,0.2);
}
.distance-viz svg { width: 100%; height: 100%; display: block; }
.dist-readout {
  position: absolute; top: 20px; left: 20px; right: 20px;
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--text-mute);
  text-transform: uppercase;
  pointer-events: none;
}
.dist-readout .big {
  font-size: 32px; letter-spacing: -0.02em; color: var(--text); font-weight: 400;
  text-transform: none; font-family: var(--font-serif); font-style: italic;
}

.dist-slider-label { display: flex; justify-content: space-between; margin-bottom: 12px; }

/* ——————————————————————————— passport (the physical object) ——————————————————————————— */
.passport-wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 900px) { .passport-wrap { grid-template-columns: 1fr; } }

.passport-page {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 460px;
  background:
    linear-gradient(160deg, #FDFBF3 0%, #EDE5D0 100%);
  border: 1px solid var(--stroke-strong);
  border-radius: 12px;
  padding: 30px;
  overflow: hidden;
  box-shadow:
    0 50px 100px -30px rgba(10,22,40,0.28),
    0 20px 40px -20px rgba(10,22,40,0.18),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
.passport-page::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(139,105,20,0.08) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(45deg, rgba(44,95,92,0.06) 0 1px, transparent 1px 16px);
  pointer-events: none;
}
.passport-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--font-mono); font-size: 9px; color: var(--text-mute);
  letter-spacing: 0.16em;
  margin-bottom: 28px;
  position: relative; z-index: 2;
}
.passport-title {
  font-family: var(--font-serif); font-style: italic;
  font-size: 40px; color: var(--gold); line-height: 1;
  margin-bottom: 6px;
  position: relative; z-index: 2;
}
.passport-subtitle {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-mute);
  letter-spacing: 0.2em; text-transform: uppercase;
  position: relative; z-index: 2;
}
.stamp-grid {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  position: relative; z-index: 2;
}
.stamp {
  aspect-ratio: 1 / 1;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  padding: 8px;
  color: var(--r-rare);
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0.95;
  position: relative;
  background: rgba(255,255,255,0.5);
}
.stamp.empty { color: var(--text-dim); opacity: 0.4; border-style: dashed; background: transparent; }
.stamp.legendary { color: var(--gold); box-shadow: 0 2px 14px -4px rgba(139,105,20,0.35); background: rgba(255,248,225,0.5); }
.stamp.epic { color: var(--r-epic); }
.stamp.uncommon { color: var(--r-uncommon); }
.stamp .n { font-size: 16px; color: inherit; letter-spacing: -0.02em; font-weight: 700; }
.stamp .glyph { font-size: 18px; }
.stamp .tilt-1 { transform: rotate(-3deg); }
.stamp .tilt-2 { transform: rotate(2deg); }

.passport-mrz {
  position: absolute; left: 30px; right: 30px; bottom: 20px;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-mute);
  letter-spacing: 0.14em;
  border-top: 1px solid var(--stroke); padding-top: 10px;
  z-index: 2;
}
.passport-mrz .line { overflow: hidden; text-overflow: clip; white-space: nowrap; }

/* ——————————————————————————— rarity explainer ——————————————————————————— */
.rarity-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .rarity-grid { grid-template-columns: repeat(2, 1fr); } }

.rarity-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 28px 20px 24px;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.rarity-card:hover { transform: translateY(-4px); border-color: var(--stroke-strong); }
.rarity-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -20%, var(--glow) 0%, transparent 60%);
  opacity: 0.10;
  pointer-events: none;
}
.rarity-card .orb {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  margin: 8px auto 20px;
  position: relative;
  opacity: 0.85;
}
.rarity-card .orb::before {
  content: ''; position: absolute; inset: 22px;
  border-radius: 50%;
  background: var(--glow);
}
.rarity-card .orb::after {
  content: '';
  position: absolute; inset: -6px;
  border: 1px dashed var(--glow);
  opacity: 0.45;
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
.rarity-card .r-name {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-mute); text-align: center; margin-bottom: 6px;
}
.rarity-card .r-tr {
  text-align: center; font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--glow);
  font-family: var(--font-serif); font-style: italic;
}
.rarity-card .r-mult {
  text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 28px;
  margin-top: 14px; color: var(--text);
  letter-spacing: -0.02em;
}
.rarity-card .r-xp {
  text-align: center; font-family: var(--font-mono); font-size: 10px;
  color: var(--text-mute); letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 4px;
}

/* ——————————————————————————— levels ——————————————————————————— */
.levels-wrap {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: stretch;
}
@media (max-width: 900px) { .levels-wrap { grid-template-columns: 1fr; } }

.xp-chart {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 28px;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.xp-chart svg { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); }
.chart-head {
  display: flex; justify-content: space-between; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--text-mute); text-transform: uppercase;
}

.level-list {
  display: grid; grid-template-columns: 1fr; gap: 8px;
}
.level-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 18px; align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--bg-card);
  transition: border-color 200ms ease, background 200ms ease;
}
.level-row:hover { background: var(--surface); border-color: var(--stroke-strong); }
.level-row .num {
  font-family: var(--font-serif); font-style: italic; font-size: 24px; font-weight: 400;
  color: var(--text); letter-spacing: -0.02em;
}
.level-row .title { font-weight: 600; font-size: 15px; color: var(--text); }
.level-row .range { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.1em; margin-top: 2px; }
.level-row .xp { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); letter-spacing: 0.1em; }
.level-row.legend { border-color: rgba(139,105,20,0.45); background: linear-gradient(135deg, rgba(139,105,20,0.07), transparent); }
.level-row.legend .num, .level-row.legend .title { color: var(--gold); }

/* ——————————————————————————— season ——————————————————————————— */
.season {
  background:
    radial-gradient(ellipse at top left, rgba(139,105,20,0.05), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(44,95,92,0.04), transparent 60%);
}
.season-card {
  position: relative;
  border-radius: 24px;
  padding: 44px;
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(10,22,40,0.2), 0 1px 0 rgba(255,255,255,0.7) inset;
}
.season-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(139,105,20,0.04) 0 1px, transparent 1px 20px);
  pointer-events: none;
}
.season-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: stretch;
  position: relative; z-index: 1;
}
@media (max-width: 900px) { .season-grid { grid-template-columns: 1fr; } }

.tier-track {
  position: relative;
  margin-top: 24px;
  padding: 22px 0 6px;
}
.tier-track::before {
  content: '';
  position: absolute; left: 12px; right: 12px; top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 25%, var(--stroke) 25%);
  transform: translateY(-50%);
  border-radius: 2px;
}
.tier-row {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  position: relative; z-index: 2;
}
.tier-node {
  width: 22px; height: 22px; border-radius: 50%;
  justify-self: center;
  background: var(--bg-card);
  border: 1.5px solid var(--stroke-strong);
  font-family: var(--font-mono); font-size: 9px; color: var(--text-mute);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.tier-node.done {
  background: var(--gold); border-color: var(--gold); color: #FFF8E1;
}
.tier-node.current {
  background: #FFF8E1; border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 0 4px rgba(139,105,20,0.15);
  transform: scale(1.18);
  font-weight: 700;
}
.tier-labels {
  display: grid; grid-template-columns: repeat(15, 1fr); margin-top: 10px;
}
.tier-labels span {
  font-family: var(--font-mono); font-size: 8px; color: var(--text-dim);
  text-align: center; letter-spacing: 0.1em;
}

.spotlight-list {
  display: flex; flex-direction: column; gap: 10px;
}
.spotlight-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  transition: border-color 160ms ease;
}
.spotlight-item:hover { border-color: var(--gold); }
.spotlight-item .glyph {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139,105,20,0.10); color: var(--gold);
  border: 1px solid rgba(139,105,20,0.3); font-size: 16px;
}
.spotlight-item .n { font-size: 14px; font-weight: 600; }
.spotlight-item .s { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.spotlight-item .xp { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: 0.05em; }

/* ——————————————————————————— social ——————————————————————————— */
.social-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  grid-auto-rows: minmax(180px, auto);
}
@media (max-width: 900px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }

.social-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.social-card.span-4 { grid-column: span 4; }
.social-card.span-3 { grid-column: span 3; }
.social-card.span-2 { grid-column: span 2; }
.social-card.span-6 { grid-column: span 6; }
.social-card.tall { grid-row: span 2; }
@media (max-width: 900px) {
  .social-card.span-4, .social-card.span-3, .social-card.span-6 { grid-column: span 2; }
  .social-card.tall { grid-row: auto; }
}

.social-card .label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--text-mute); text-transform: uppercase; margin-bottom: 14px;
}
.social-card h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.social-card p { font-size: 14px; }

/* leaderboard card */
.lb-row {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--stroke);
  font-family: var(--font-mono); font-size: 13px;
}
.lb-row:last-child { border-bottom: none; }
.lb-row .rank { color: var(--text-mute); letter-spacing: 0.1em; }
.lb-row.rank-1 .rank { color: var(--gold); }
.lb-row.rank-2 .rank { color: var(--teal); }
.lb-row.rank-3 .rank { color: var(--gold-soft); }
.lb-row .name { font-family: var(--font-sans); font-weight: 500; color: var(--text); font-size: 14px; }
.lb-row .xp { color: var(--gold); letter-spacing: 0.06em; font-size: 12px; }

/* gem card */
.gem-card {
  border: 1px solid rgba(44,95,92,0.25);
  background: linear-gradient(135deg, rgba(44,95,92,0.06), transparent);
  border-radius: 12px;
  padding: 14px;
  display: flex; gap: 12px; align-items: center;
}
.gem-card .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.gem-card .body { flex: 1; min-width: 0; }
.gem-card .body .who { font-size: 13px; font-weight: 600; }
.gem-card .body .msg { font-size: 12px; color: var(--text-mute); }
.gem-card .diamond {
  width: 14px; height: 14px; background: var(--teal); transform: rotate(45deg);
}

/* ——————————————————————————— districts ——————————————————————————— */
.districts-wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .districts-wrap { grid-template-columns: 1fr; } }

.map-svg {
  aspect-ratio: 1 / 1;
  background: radial-gradient(ellipse at center, #FDFBF3 0%, #EDE5D0 100%);
  border: 1px solid var(--stroke-strong);
  border-radius: 20px;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10,22,40,0.22);
}
.map-svg svg { width: 100%; height: 100%; display: block; }
.map-svg .corner {
  position: absolute;
  width: 14px; height: 14px; border: 1px solid var(--gold); opacity: 0.7;
}
.map-svg .corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.map-svg .corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.map-svg .corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.map-svg .corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* Large interactive district map (Districts section) */
.map-svg.map-large {
  aspect-ratio: 10 / 7;
  cursor: default;
}
.map-svg .district-lg {
  fill: #F5F0DE;
  stroke: rgba(10, 22, 40, 0.45);
  stroke-width: 1.1;
  stroke-linejoin: round;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
  transition: fill 200ms ease, stroke 200ms ease, stroke-width 180ms ease;
}
.map-svg .district-lg:hover {
  fill: rgba(139, 105, 20, 0.10);
  stroke: var(--gold);
  stroke-width: 1.6;
}
.map-svg .district-lg.is-active {
  fill: rgba(139, 105, 20, 0.22);
  stroke: var(--gold);
  stroke-width: 2;
}
.map-svg .district-lg.is-outside {
  fill: rgba(10, 22, 40, 0.04);
  stroke: rgba(10, 22, 40, 0.2);
  stroke-width: 0.8;
  pointer-events: none;
  cursor: default;
}
.map-svg .district-label-lg {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  fill: rgba(10, 22, 40, 0.4);
  pointer-events: none;
  transition: fill 200ms ease, font-size 200ms ease;
}
.map-svg .district-label-lg.is-active {
  fill: var(--gold);
  font-size: 13px;
}

.district-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 160ms ease;
}
.district-pill:hover { border-color: var(--gold); color: var(--gold); background: rgba(139,105,20,0.05); }
.district-pill.active { border-color: var(--navy); color: #F5F2EA; background: var(--navy); }
.district-pill.active .n { color: rgba(245,242,234,0.6); }
.district-pill .n { color: var(--text-mute); }

.district-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
}

.district-info {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--bg-card);
  min-height: 120px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.district-info .name {
  font-family: var(--font-serif); font-style: italic;
  font-size: 40px; color: var(--gold); line-height: 1; margin-bottom: 8px;
}
.district-info .stats { display: flex; gap: 24px; margin-top: 14px; }
.district-info .stat .n { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--text); letter-spacing: -0.02em; }
.district-info .stat .l { font-family: var(--font-mono); font-size: 9px; color: var(--text-mute); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px; }

/* ——————————————————————————— categories ——————————————————————————— */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

.cat-card {
  aspect-ratio: 1 / 1.1;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 16px;
  background: var(--bg-card);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
  cursor: default;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.cat-card .glyph {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--bg-deep);
  border: 1px solid var(--stroke);
}
.cat-card .name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.cat-card .en { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

/* ——————————————————————————— screens (device mockups) ——————————————————————————— */
.device-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: end;
}
@media (max-width: 900px) { .device-rail { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.device {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  padding: 8px;
  background: linear-gradient(145deg, #1a1a2e, #0a0a18);
  /* pop the dark devices against cream */
  box-shadow:
    0 50px 100px -30px rgba(10,22,40,0.45),
    0 20px 40px -20px rgba(10,22,40,0.25),
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.8);
  border: 1px solid rgba(10,22,40,0.25);
}
.device .screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden;
  background: #000;
}
.device .screen img {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.device .notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.device .caption {
  position: absolute; bottom: -52px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--text-mute); text-transform: uppercase;
}
.device.offset-1 { transform: translateY(-28px); }
.device.offset-2 { transform: translateY(-12px); }
@media (max-width: 900px) { .device.offset-1, .device.offset-2 { transform: none; } }

/* ——————————————————————————— FAQ ——————————————————————————— */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-top: 1px solid var(--stroke);
  padding: 22px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--stroke); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: 19px; font-weight: 500; color: var(--text); letter-spacing: -0.01em;
  font-family: var(--font-serif); font-style: italic;
}
.faq-q .toggle {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--stroke-strong);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); font-size: 14px;
  transition: transform 200ms ease, background 200ms ease;
  flex-shrink: 0;
  font-family: var(--font-sans); font-style: normal;
}
.faq-item.open .faq-q .toggle { transform: rotate(45deg); background: var(--navy); color: #F5F2EA; border-color: var(--navy); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 300ms ease, padding-top 300ms ease, opacity 200ms ease;
  opacity: 0;
  padding-top: 0;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 720px;
  line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 400px; opacity: 1; padding-top: 14px; }

/* ——————————————————————————— press ——————————————————————————— */
.press-card {
  position: relative;
  background:
    radial-gradient(ellipse at top left, rgba(139,105,20,0.06), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(44,95,92,0.05), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--stroke-strong);
  border-radius: 24px;
  padding: 64px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10,22,40,0.2), 0 1px 0 rgba(255,255,255,0.7) inset;
}
@media (max-width: 600px) { .press-card { padding: 32px; } }
.press-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .press-grid { grid-template-columns: 1fr; } }

.press-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.press-stat {
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--surface);
}
.press-stat .n { font-family: var(--font-serif); font-style: italic; font-size: 38px; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
.press-stat .n.green { color: var(--gold); }
.press-stat .n.cyan { color: var(--teal); }
.press-stat .n.gold { color: var(--gold); }
.press-stat .l { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 10px; }

/* ——————————————————————————— footer ——————————————————————————— */
.footer {
  border-top: 1px solid var(--stroke-strong);
  padding: 72px 0 40px;
  background: var(--bg-deep);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--text-soft); text-decoration: none;
  font-size: 14px; padding: 6px 0;
  transition: color 160ms;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--stroke);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-mute);
  letter-spacing: 0.16em;
  flex-wrap: wrap; gap: 16px;
}

/* selection */
::selection { background: var(--gold); color: #FFF8E1; }

/* scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--stroke); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--stroke-strong); }

/* ══════════════════════════════════════════════════════════════════════════
   UV TORCH SYSTEM
   The page is two realities: daylight (default) and UV (revealed under torch).
   Each section contains a .uv-variant absolute layer clipped to a 220px circle
   following the cursor. Inside that circle, the app's real neon identity.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* UV palette — the app's real colors, hidden until the torch hits */
  --uv-bg: #050510;
  --uv-deep: #0A0A14;
  --uv-panel: rgba(0, 230, 118, 0.04);
  --uv-stroke: rgba(0, 230, 118, 0.25);
  --uv-stroke-soft: rgba(0, 230, 118, 0.12);
  --uv-text: #E0F2F1;
  --uv-text-mute: #6FB8A0;
  --uv-primary: #00E676;
  --uv-cyan: #00BCD4;
  --uv-gold: #FFD700;
  --uv-pink: #FF4081;

  --uv-x: -9999px;
  --uv-y: -9999px;
  --uv-r: 0px;
}

/* Global cursor treatment — show users this is interactive */
html { cursor: crosshair; }

/* Global UV torch overlay — a subtle vignette that follows the cursor
   so users feel the light is actually landing on the page, even on
   sections without a dedicated .uv-variant */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 45;
  background: radial-gradient(
    circle 240px at var(--uv-x) var(--uv-y),
    rgba(5, 5, 16, 0.0),
    rgba(5, 5, 16, 0.0) 55%,
    rgba(5, 5, 16, 0.08) 85%,
    rgba(5, 5, 16, 0) 100%
  );
  mix-blend-mode: multiply;
  transition: opacity 300ms ease;
  opacity: 0;
}
html.uv-on body::after { opacity: 1; }

/* The UV variant — an absolute layer inside a section's wrapper that
   holds the section's dark-neon alternate reality, clipped to a circle
   around the cursor. */
.uv-variant {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: var(--uv-bg);
  color: var(--uv-text);
  overflow: hidden;
  /* element-local cursor (set by uv-controller) */
  --lx: -9999px;
  --ly: -9999px;
  transition: opacity 320ms ease;
  opacity: 0;
}
html.uv-on .uv-variant { opacity: 1; }

/* Light ring — the visible edge of the UV torch */
.uv-ring {
  position: fixed;
  left: var(--uv-x);
  top: var(--uv-y);
  width: 560px; height: 560px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 46;
  opacity: 0;
  transition: opacity 280ms ease;
  background:
    radial-gradient(circle at center,
      rgba(0, 230, 118, 0.22) 0%,
      rgba(0, 230, 118, 0.14) 20%,
      rgba(0, 188, 212, 0.10) 45%,
      rgba(138, 43, 226, 0.06) 70%,
      transparent 100%);
  mix-blend-mode: screen;
  filter: blur(12px);
}
html.uv-on .uv-ring { opacity: 1; }

/* Sections that contain a .uv-variant need to establish positioning context
   and hide overflow of the absolute layer. */
section, .hero, .nav {
  position: relative;
}
section { overflow: hidden; }

/* ———— UV variant internals ———— */
/* Shared motif background: topographic contours + filigree + star cross.
   Rendered as CSS only so it scales and doesn't need assets. */
.uv-variant .uv-motifs {
  position: absolute; inset: 0;
  background-color: #050510;
  background-image:
    /* bold topographic contour sweeps */
    radial-gradient(ellipse 80% 60% at 30% 40%, transparent 37%, rgba(0, 230, 118, 0.28) 39%, transparent 41%),
    radial-gradient(ellipse 70% 50% at 30% 40%, transparent 47%, rgba(0, 230, 118, 0.22) 49%, transparent 51%),
    radial-gradient(ellipse 60% 40% at 30% 40%, transparent 57%, rgba(0, 230, 118, 0.18) 59%, transparent 61%),
    radial-gradient(ellipse 50% 35% at 30% 40%, transparent 67%, rgba(0, 230, 118, 0.14) 69%, transparent 71%),
    radial-gradient(ellipse 90% 70% at 70% 60%, transparent 27%, rgba(0, 188, 212, 0.22) 29%, transparent 31%),
    radial-gradient(ellipse 75% 55% at 70% 60%, transparent 37%, rgba(0, 188, 212, 0.18) 39%, transparent 41%),
    radial-gradient(ellipse 60% 45% at 70% 60%, transparent 47%, rgba(0, 188, 212, 0.14) 49%, transparent 51%),
    /* diamond grid */
    linear-gradient(45deg, rgba(0, 230, 118, 0.06) 25%, transparent 25%, transparent 75%, rgba(0, 230, 118, 0.06) 75%),
    linear-gradient(-45deg, rgba(0, 230, 118, 0.06) 25%, transparent 25%, transparent 75%, rgba(0, 230, 118, 0.06) 75%),
    /* star cross field */
    radial-gradient(circle 1.5px at 15% 20%, rgba(255, 215, 0, 0.95), transparent),
    radial-gradient(circle 1.5px at 85% 15%, rgba(0, 230, 118, 0.95), transparent),
    radial-gradient(circle 1.5px at 45% 75%, rgba(0, 188, 212, 0.95), transparent),
    radial-gradient(circle 1.5px at 72% 48%, rgba(255, 64, 129, 0.95), transparent),
    radial-gradient(circle 1.5px at 25% 65%, rgba(255, 215, 0, 0.9), transparent),
    radial-gradient(circle 1px at 55% 30%, rgba(0, 188, 212, 0.8), transparent),
    radial-gradient(circle 1px at 88% 82%, rgba(255, 64, 129, 0.8), transparent),
    radial-gradient(circle 1px at 8% 85%, rgba(0, 230, 118, 0.85), transparent);
  background-size:
    100% 100%, 100% 100%, 100% 100%, 100% 100%,
    100% 100%, 100% 100%, 100% 100%,
    28px 28px, 28px 28px,
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

/* Hairline MRZ strip along top + bottom edge of UV content */
.uv-variant .uv-mrz {
  position: absolute; left: 0; right: 0;
  padding: 12px 32px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; color: rgba(0, 230, 118, 0.95);
  white-space: nowrap; overflow: hidden;
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.85), 0 0 20px rgba(0, 230, 118, 0.4);
  z-index: 3;
}
.uv-variant .uv-mrz.top { top: 0; border-bottom: 1px solid rgba(0, 230, 118, 0.35); }
.uv-variant .uv-mrz.bot { bottom: 0; border-top: 1px solid rgba(0, 230, 118, 0.35); }

/* Floating column of micro-text on left edge */
.uv-variant .uv-rail {
  position: absolute; left: 22px; top: 50%;
  transform: translateY(-50%) rotate(-90deg); transform-origin: left center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  color: rgba(0, 188, 212, 0.9);
  text-shadow: 0 0 8px rgba(0, 188, 212, 0.7), 0 0 16px rgba(0, 188, 212, 0.3);
  white-space: nowrap;
  z-index: 3;
}

/* Generic UV content block positioning */
.uv-variant .uv-content {
  position: relative;
  z-index: 2;
  padding: 0 32px;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100%;
  display: flex; align-items: center;
}

/* ═══════════ section-specific UV content ═══════════ */

/* Hero UV — full-bleed neon passport reveal */
.hero .uv-variant .uv-hero-title {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(56px, 7vw, 110px);
  line-height: 0.95; letter-spacing: -0.03em;
  color: var(--uv-primary);
  text-shadow:
    0 0 12px rgba(0, 230, 118, 0.6),
    0 0 32px rgba(0, 230, 118, 0.35),
    0 0 60px rgba(0, 230, 118, 0.2);
}
.hero .uv-variant .uv-hero-sub {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; color: var(--uv-cyan);
  margin-top: 28px; text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 188, 212, 0.5);
}
.hero .uv-variant .uv-stamp {
  position: absolute;
  font-family: var(--font-mono); font-weight: 700;
  letter-spacing: 0.2em; font-size: 11px;
  padding: 10px 14px;
  border: 1.5px solid var(--uv-gold);
  color: var(--uv-gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 12px rgba(255, 215, 0, 0.08);
  transform: rotate(-8deg);
}

/* section UV headline style */
.uv-variant .uv-headline {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1; color: var(--uv-primary);
  text-shadow:
    0 0 14px rgba(0, 230, 118, 0.55),
    0 0 32px rgba(0, 230, 118, 0.28);
  letter-spacing: -0.025em;
}
.uv-variant .uv-eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.26em; color: var(--uv-cyan);
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 188, 212, 0.5);
  margin-bottom: 14px;
}
.uv-variant .uv-body {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--uv-text-mute); line-height: 1.7;
  letter-spacing: 0.04em; max-width: 420px; margin-top: 18px;
}
.uv-variant .uv-kv {
  display: flex; gap: 24px; margin-top: 24px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--uv-primary);
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.45);
}
.uv-variant .uv-kv span { opacity: 0.55; margin-right: 6px; color: var(--uv-cyan); }

/* Hero UV layout — mirror hero-grid so uv-col sits where hero-copy sits */
.hero .uv-variant .uv-content {
  align-items: center; justify-content: flex-start;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 80px; min-height: 100vh;
}
.hero .uv-variant .uv-col {
  max-width: 640px;
}
.hero .uv-variant .uv-stamp-1 { top: 12%; right: 8%; transform: rotate(-8deg); }
.hero .uv-variant .uv-stamp-2 { bottom: 14%; right: 18%; transform: rotate(6deg); border-color: var(--uv-primary); color: var(--uv-primary); text-shadow: 0 0 8px rgba(0,230,118,0.7); box-shadow: 0 0 18px rgba(0,230,118,0.3); }
.hero .uv-variant .uv-stamp-3 { top: 22%; right: 38%; transform: rotate(-18deg); border-color: var(--uv-pink); color: var(--uv-pink); text-shadow: 0 0 8px rgba(255,64,129,0.7); box-shadow: 0 0 18px rgba(255,64,129,0.25); font-size: 9px; }

/* Pulsing legendary glow on UV stamps */
@keyframes uv-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,215,0,0.3), inset 0 0 12px rgba(255,215,0,0.1); }
  50%      { box-shadow: 0 0 40px rgba(255,215,0,0.7), inset 0 0 20px rgba(255,215,0,0.2); }
}
.hero .uv-variant .uv-stamp-1 { animation: uv-pulse 2.4s ease-in-out infinite; }

/* UV map pins (hero map recolored under UV) */
.hero-map .uv-variant { border-radius: 28px; }
.hero-map .uv-variant .uv-mrz,
.hero-map .uv-variant .uv-rail { display: none; }
.hero-map .uv-variant .uv-motifs {
  background-color: #050510;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 36%, rgba(0, 230, 118, 0.18) 38%, transparent 40%),
    radial-gradient(ellipse 60% 44% at 50% 50%, transparent 46%, rgba(0, 230, 118, 0.14) 48%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, transparent 56%, rgba(0, 230, 118, 0.10) 58%, transparent 60%),
    linear-gradient(135deg, rgba(0,230,118,0.04) 25%, transparent 25%),
    linear-gradient(-135deg, rgba(0,230,118,0.04) 25%, transparent 25%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 22px 22px, 22px 22px;
}
.hero-map .uv-variant .uv-landmark {
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--uv-primary);
  box-shadow: 0 0 12px rgba(0,230,118,0.8), 0 0 24px rgba(0,230,118,0.4);
  transform: translate(-50%, -50%);
}
.hero-map .uv-variant .uv-landmark.legendary { background: var(--uv-gold); box-shadow: 0 0 14px rgba(255,215,0,0.9), 0 0 28px rgba(255,215,0,0.5); animation: uv-pulse 2s ease-in-out infinite; }
.hero-map .uv-variant .uv-landmark.rare { background: var(--uv-cyan); box-shadow: 0 0 12px rgba(0,188,212,0.8); }
.hero-map .uv-variant .uv-landmark.epic { background: var(--uv-pink); box-shadow: 0 0 12px rgba(255,64,129,0.8); }
.hero-map .uv-variant .uv-bosph {
  position: absolute; left: 50%; top: 5%; bottom: 5%;
  width: 2px; background: linear-gradient(180deg, transparent, rgba(0,188,212,0.6) 20%, rgba(0,188,212,0.6) 80%, transparent);
  filter: blur(0.5px);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0,188,212,0.5);
}

/* Passport section — stamps turn vivid under UV */
#pasaport .uv-variant .uv-stamp-grid {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; grid-template-columns: repeat(3, 160px); gap: 22px;
}
#pasaport .uv-variant .uv-stamp-card {
  aspect-ratio: 1; border: 1.5px solid var(--uv-stroke);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--uv-primary); letter-spacing: 0.16em;
  text-shadow: 0 0 8px rgba(0,230,118,0.5);
  position: relative;
  background: rgba(0,230,118,0.03);
}
#pasaport .uv-variant .uv-stamp-card.legendary { border-color: var(--uv-gold); color: var(--uv-gold); text-shadow: 0 0 10px rgba(255,215,0,0.7); animation: uv-pulse 2.2s ease-in-out infinite; background: rgba(255,215,0,0.04); }
#pasaport .uv-variant .uv-stamp-card.epic { border-color: var(--uv-pink); color: var(--uv-pink); text-shadow: 0 0 8px rgba(255,64,129,0.7); background: rgba(255,64,129,0.04); }
#pasaport .uv-variant .uv-stamp-card.rare { border-color: var(--uv-cyan); color: var(--uv-cyan); text-shadow: 0 0 8px rgba(0,188,212,0.6); background: rgba(0,188,212,0.04); }
#pasaport .uv-variant .uv-stamp-card .glyph { font-size: 24px; }

/* Nav — UV brand glows (no mask; full-width reveal) */
.nav .uv-variant {}
.nav .uv-variant .uv-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 32px; max-width: 1280px; margin: 0 auto;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--uv-primary); text-shadow: 0 0 8px rgba(0,230,118,0.5);
}
.nav .uv-variant .uv-brand { font-weight: 700; letter-spacing: 0.4em; }
.nav .uv-variant .uv-status { color: var(--uv-cyan); text-shadow: 0 0 8px rgba(0,188,212,0.5); }

/* Nav mode indicator (always visible) */
.nav-mode {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--text-mute);
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px; border: 1px solid var(--stroke);
  border-radius: 999px; background: var(--bg-card);
  transition: all 260ms ease;
}
.nav-mode .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); transition: all 260ms;
}
html.uv-on .nav-mode {
  color: var(--uv-primary); border-color: var(--uv-stroke);
  background: rgba(0,230,118,0.05);
  text-shadow: 0 0 8px rgba(0,230,118,0.4);
}
html.uv-on .nav-mode .dot { background: var(--uv-primary); box-shadow: 0 0 8px var(--uv-primary); }
.nav-mode .day { display: inline; }
.nav-mode .uv { display: none; }
html.uv-on .nav-mode .day { display: none; }
html.uv-on .nav-mode .uv { display: inline; }
@media (max-width: 680px) { .nav-mode { display: none; } }

/* (mobile fallback removed — full-page UV reveal is now universal) */

/* Tooltip hint that appears briefly on load */
.uv-hint {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 60;
  padding: 10px 18px;
  border: 1px solid var(--stroke);
  background: var(--bg-card);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--text-soft);
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 30px -15px rgba(10,22,40,0.25);
  animation: uv-hint-in 400ms ease-out backwards, uv-hint-out 400ms ease-in 4.4s forwards;
}
.uv-hint .k {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border: 1px solid var(--stroke-strong); border-radius: 4px;
  font-weight: 600; color: var(--text);
}
@keyframes uv-hint-in  { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes uv-hint-out { to { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; } }
html.uv-on .uv-hint { opacity: 0 !important; }
