/* SQUDAI — premium redesign */
:root {
  --bg: #060C18;
  --bg-2: #0A1628;
  --panel: #0F1E36;
  --line: rgba(77, 224, 249, 0.12);
  --line-strong: rgba(77, 224, 249, 0.24);
  --text: #E7F3FF;
  --text-dim: #8FA2BE;
  --text-mute: #5D7493;

  --cyan: #4DE0F9;
  --cyan-2: #7BF4FF;
  --cyan-ink: #0A1628;
  --indigo: #7B8CFF;
  --mint: #2FE6B0;
  --amber: #FFB547;
  --gold: #E8C56A;
  --gold-2: #F5E3A8;
  --gold-dark: #8A5A1B;

  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2,.7,.2,1);

  --shadow-glow: 0 0 0 1px rgba(77,224,249,.12), 0 30px 80px -30px rgba(77,224,249,.3);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

#starfield {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(77,224,249,.06), transparent 60%),
    radial-gradient(900px 700px at 85% 30%, rgba(123,140,255,.05), transparent 60%),
    linear-gradient(180deg, #050A16 0%, #070F1E 40%, #060C18 100%);
}
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 260px at 70% 20%, rgba(77,224,249,.06), transparent 70%),
    radial-gradient(500px 220px at 20% 80%, rgba(123,140,255,.05), transparent 70%);
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0,0,0); opacity:.7; }
  to   { transform: translate3d(-40px, 20px, 0); opacity:1; }
}
main, footer, .nav { position: relative; z-index: 2; }

/* NAV */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 18px 40px;
  position: sticky; top: 0;
  backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(6,12,24,.9) 0%, rgba(6,12,24,.55) 100%);
  border-bottom: 1px solid var(--line);
  z-index: 60;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: .18em;
  color: var(--text); text-decoration: none;
}
.nav__mark { width: 26px; height: 26px; filter: drop-shadow(0 0 4px rgba(77,224,249,.4)); }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 14px; letter-spacing: .04em;
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--cyan); }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--text-dim); padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(77,224,249,.03); letter-spacing: .06em;
}
.nav__status .dot, .vault__live .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .4; transform: scale(.8); } }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  font-family: inherit; font-weight: 600; font-size: 14px;
  letter-spacing: .03em; text-decoration: none;
  border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: all .2s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--primary {
  background: linear-gradient(180deg, #7BF4FF 0%, #4DE0F9 100%);
  color: var(--cyan-ink);
  box-shadow: 0 0 0 1px rgba(77,224,249,.5), 0 10px 30px -10px rgba(77,224,249,.45);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(77,224,249,.7), 0 18px 44px -12px rgba(77,224,249,.6); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); background: rgba(77,224,249,.03); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(77,224,249,.08); }

/* HERO */
.hero {
  position: relative;
  padding: 80px 40px 100px;
  min-height: 82vh;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1320px; margin: 0 auto; width: 100%;
}
.tagline {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .28em; color: var(--cyan);
  padding: 8px 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: rgba(77,224,249,.04);
  margin-bottom: 32px;
}
.tagline__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero__title {
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: 1.02; letter-spacing: -.025em;
  font-weight: 700; margin: 0 0 24px;
}
.shimmer {
  background: linear-gradient(90deg, #4DE0F9 0%, #7BF4FF 30%, #FFFFFF 50%, #7BF4FF 70%, #4DE0F9 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.hero__sub { font-size: 17px; color: var(--text-dim); max-width: 520px; margin: 0 0 14px; }
.hero__mission {
  font-size: 16px; color: var(--text); max-width: 520px; margin: 0 0 36px;
  padding-left: 14px; border-left: 2px solid var(--cyan);
}
.hero__mission em { color: var(--cyan); font-style: normal; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual {
  position: relative; height: 560px;
  display: flex; align-items: center; justify-content: center;
}
.mascot {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
/* Video and fallback overlay each other inside .mascot — both use object-fit: contain
   inside the same box so they line up exactly. PNG sits behind; video fades over once ready. */
.mascot img,
.mascot__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-height: 560px; max-width: 100%;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(77,224,249,.28)) drop-shadow(0 30px 60px rgba(0,0,0,.55));
  animation: floatSoft 8s ease-in-out infinite;
}
.mascot__video {
  z-index: 2;
  display: block;
  opacity: 0;
  transition: opacity .12s ease;
  /* GPU compositor hint — kills flicker on Android during currentTime seeks */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  /* clean touch interaction inside the mascot zone */
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  /* pan-y = browser keeps vertical scrolling, JS gets horizontal moves for scrub */
  touch-action: pan-y;
}
.mascot { touch-action: pan-y; }
.mascot--ready .mascot__video { opacity: 1; }

/* PNG fallback — always present underneath; shown when video is removed/static */
.mascot__img-fallback { z-index: 1; pointer-events: none; }
.mascot--ready .mascot__img-fallback { opacity: 0; transition: opacity .12s ease .05s; }
.mascot--static .mascot__img-fallback { opacity: 1 !important; }

@keyframes floatSoft { 50% { transform: translateY(-10px) translateZ(0); } }

@media (prefers-reduced-motion: reduce) {
  .mascot__video { display: none; }
  .mascot img { animation: none; }
}
.mascot__halo {
  position: absolute; inset: 12% 14%;
  background: radial-gradient(ellipse at 50% 45%, rgba(77,224,249,.22), transparent 62%);
  filter: blur(38px); z-index: 0;
  animation: halo 6s ease-in-out infinite;
}
@keyframes halo { 50% { opacity: .55; transform: scale(1.04); } }

/* SECTION HEADS */
.section-head { max-width: 900px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.05; letter-spacing: -.022em;
  margin: 0 0 18px; font-weight: 700;
}
.section-sub { font-size: 17px; color: var(--text-dim); max-width: 640px; margin: 0 auto; }
.glow { color: var(--cyan); text-shadow: 0 0 26px rgba(77,224,249,.5); }

/* MISSION (no video) */
.mission { padding: 100px 40px; }
.mission__inner {
  max-width: 1200px; margin: 0 auto; text-align: center;
}
.mission__h {
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1; letter-spacing: -.025em;
  margin: 10px 0 24px; font-weight: 700;
}
.mission__lede {
  font-size: 18px; color: var(--text-dim);
  max-width: 640px; margin: 0 auto 60px;
}
.mission__cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  text-align: left;
}
.mission__card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,30,54,.55) 0%, rgba(10,22,40,.55) 100%);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.mission__card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.mission__num {
  font-size: 11px; letter-spacing: .28em; color: var(--cyan);
  margin-bottom: 18px;
}
.mission__card h4 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.mission__card p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* VAULT — premium underwater */
.vault { padding: 120px 40px; }
.vault__wrap { max-width: 1240px; margin: 0 auto; }
.tank {
  position: relative;
  height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(77,224,249,.22);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #0b3a58 0%, transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 100%, #010811 0%, #020c1c 40%, #041a2e 100%);
  box-shadow:
    0 0 0 1px rgba(77,224,249,.1),
    0 40px 100px -30px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.04);
}
.tank::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(123,244,255,.12), transparent 70%);
  pointer-events: none; z-index: 1;
}
.tank::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 25%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.7) 100%);
  pointer-events: none; z-index: 1;
}
.tank__deep { position: absolute; inset: 0; z-index: 0; }

/* GOD RAYS — soft, from top */
.tank__rays { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.ray {
  position: absolute; top: -20px;
  left: var(--x);
  width: var(--w);
  height: 120%;
  background: linear-gradient(180deg, rgba(180,240,255,.12) 0%, rgba(180,240,255,.04) 40%, transparent 90%);
  transform: skewX(-10deg) translateX(-50%);
  filter: blur(10px);
  animation: raySway 14s ease-in-out infinite alternate;
  animation-delay: var(--d);
  opacity: .7;
}
@keyframes raySway {
  from { transform: skewX(-10deg) translateX(-50%); }
  to   { transform: skewX(-8deg) translate(-45%, 0); opacity: .55; }
}

/* PARTICLES — faint dust */
.tank__particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.particle {
  position: absolute;
  width: 2px; height: 2px; border-radius: 50%;
  background: rgba(180,240,255,.5);
  box-shadow: 0 0 4px rgba(180,240,255,.6);
  animation: particleFloat var(--pd, 30s) linear infinite;
  animation-delay: var(--pdelay, 0s);
  opacity: 0;
}
@keyframes particleFloat {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .5; }
  100% { transform: translate(var(--px, 10px), -600px); opacity: 0; }
}

/* BUBBLES — all rising upward */
.tank__bubbles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.bubble {
  position: absolute; bottom: -20px;
  width: var(--bs, 8px); height: var(--bs, 8px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9) 0%, rgba(180,240,255,.4) 30%, rgba(77,224,249,.15) 70%, rgba(77,224,249,0) 100%);
  border: 1px solid rgba(180,240,255,.35);
  animation: rise var(--br, 9s) ease-in infinite;
  animation-delay: var(--bd, 0s);
  opacity: 0;
}
@keyframes rise {
  0%   { transform: translate(0, 0) scale(.5); opacity: 0; }
  8%   { opacity: .9; }
  80%  { opacity: .7; }
  100% { transform: translate(var(--bx, 10px), -620px) scale(1.1); opacity: 0; }
}

/* GEMS — premium crystal specimens */
.tank__coins { position: absolute; inset: 0; z-index: 5; }
.gem {
  position: absolute;
  width: var(--size, 80px); height: var(--size, 80px);
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  animation: gemDrift var(--dur, 12s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: transform .3s var(--ease), filter .3s var(--ease);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(77,224,249,.3));
  z-index: 5;
}
.gem:hover {
  transform: scale(1.12) !important;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.7)) drop-shadow(0 0 28px rgba(123,244,255,.75));
  z-index: 20;
}
.gem__shell {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%,
      #FFFBE2 0%,
      #F6DF8A 14%,
      #E1B44A 36%,
      #A87618 66%,
      #5A3A08 92%,
      #2A1A02 100%);
  box-shadow:
    inset 0 0 0 2px rgba(90,58,8,.45),
    inset 0 2px 4px rgba(255,248,210,.55),
    inset 0 -5px 10px rgba(0,0,0,.45);
  border: 1px solid rgba(255,232,150,.35);
}
.gem__core {
  position: absolute; inset: 11%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,248,210,.35) 0%, transparent 55%),
    radial-gradient(circle at 50% 60%, #C89A3A 0%, #8F6414 50%, #4A3208 100%);
  border: 1px solid rgba(255,220,130,.35);
  box-shadow:
    inset 0 1px 2px rgba(255,240,180,.45),
    inset 0 -2px 6px rgba(0,0,0,.45);
}
.gem__sheen {
  position: absolute;
  top: 9%; left: 18%;
  width: 38%; height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 70%);
  filter: blur(1.5px);
  pointer-events: none;
}
.gem__ring {
  position: absolute; inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(90,58,8,.35);
  pointer-events: none;
}
.gem--top .gem__shell {
  background:
    radial-gradient(circle at 32% 28%,
      #FFFDEF 0%,
      #FFE99B 12%,
      #F5C84A 32%,
      #B27A14 64%,
      #553708 92%,
      #221100 100%);
  box-shadow:
    inset 0 0 0 2px rgba(85,55,8,.5),
    inset 0 2px 4px rgba(255,252,220,.65),
    inset 0 -5px 10px rgba(0,0,0,.5);
}
.gem--top .gem__core {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,252,220,.5) 0%, transparent 55%),
    radial-gradient(circle at 50% 60%, #D9A13A 0%, #8B5E10 50%, #3E2604 100%);
}
.gem--top .gem__ring { border-color: rgba(85,55,8,.45); }
.gem--top { filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(232,197,106,.4)); }
.gem--top:hover {
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.75)) drop-shadow(0 0 30px rgba(245,227,168,.75));
}
.gem__medal {
  position: absolute; top: -10px; left: -10px;
  font-size: calc(var(--size, 80px) * 0.32);
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
  z-index: 4;
}
.gem__rank {
  position: absolute; top: -8px; left: -8px;
  z-index: 4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 999px;
  background: #061325; color: var(--cyan);
  border: 1px solid rgba(77,224,249,.5);
  box-shadow: 0 0 10px rgba(77,224,249,.3);
  letter-spacing: .05em;
}
.gem__sym {
  position: absolute; top: 32%; left: 0; right: 0;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: calc(var(--size, 80px) * 0.19);
  color: #3E2604;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(255,248,210,.45), 0 -1px 0 rgba(0,0,0,.15);
  z-index: 3;
  line-height: 1;
}
.gem--top .gem__sym {
  color: #2A1A02;
  text-shadow: 0 1px 0 rgba(255,252,220,.55), 0 -1px 0 rgba(0,0,0,.18);
}
.gem__gain {
  position: absolute; bottom: 18%; left: 0; right: 0;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: calc(var(--size, 80px) * 0.125);
  font-weight: 700;
  color: #2F1F03;
  z-index: 3;
  letter-spacing: .02em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,248,210,.35);
}
@keyframes gemDrift {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  35%      { transform: translate(var(--dx, 6px), var(--dy, -10px)) rotate(3deg); }
  65%      { transform: translate(calc(var(--dx) * -.5), calc(var(--dy) * .3)) rotate(-2deg); }
}

/* VAULT STRIP — data floor */
.vault__strip {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 20px; align-items: center;
  padding: 16px 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(6,12,24,.6), rgba(6,12,24,.85));
  border: 1px solid rgba(77,224,249,.18);
  backdrop-filter: blur(10px);
}
.vault__stat { display: flex; flex-direction: column; gap: 4px; }
.vault__stat .mono {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-mute);
}
.vault__stat b {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px; font-weight: 600; color: var(--cyan);
  font-feature-settings: 'tnum' 1; letter-spacing: -.01em;
}
.vault__sep {
  width: 1px; height: 28px;
  background: linear-gradient(180deg, transparent 0%, var(--line-strong) 50%, transparent 100%);
}
.vault__live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--mint) !important;
  font-size: 15px !important;
}
.vault__hint {
  margin-top: 18px; text-align: center;
  font-size: 11px; color: var(--text-mute); letter-spacing: .15em;
}

/* Modal journey + stats refresh */
.coin-modal__journey {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px; align-items: stretch;
  margin-bottom: 16px;
}
.jstep {
  padding: 14px;
  background: rgba(10,22,40,.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.jstep .mono {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute);
}
.jstep b {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px; font-weight: 600; color: var(--text);
  font-feature-settings: 'tnum' 1;
}
.jstep--peak {
  background: linear-gradient(180deg, rgba(77,224,249,.12), rgba(10,22,40,.6));
  border-color: rgba(77,224,249,.4);
}
.jstep--peak b { color: var(--cyan); text-shadow: 0 0 12px rgba(77,224,249,.35); }
.jarrow { display: flex; align-items: center; justify-content: center; }
.jarrow svg { width: 36px; height: 12px; }
.coin-modal__foot {
  font-size: 10px; color: var(--text-mute);
  letter-spacing: .12em; text-align: center;
  padding-top: 4px;
}
/* COIN MODAL */
.coin-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.coin-modal[hidden] { display: none; }
.coin-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(4,8,16,.78);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.coin-modal__card {
  position: relative;
  width: 100%; max-width: 560px;
  background: linear-gradient(180deg, #112340 0%, #0A1628 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(77,224,249,.12);
  animation: modalIn .3s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.coin-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line);
  color: var(--text-dim); font-size: 18px; cursor: pointer; line-height: 1;
}
.coin-modal__close:hover { color: var(--cyan); border-color: var(--cyan); }
.coin-modal__head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  margin-bottom: 22px;
}
.coin-modal__symbol {
  width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFF6D0 0%, #F5E3A8 14%, #E8C56A 34%, #B7882F 62%, #6E4C0E 92%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12px;
  color: #5a3d08;
  border: 2px solid rgba(255, 235, 160, .4);
  box-shadow: 0 0 20px rgba(232,197,106,.35), inset 0 2px 4px rgba(255,250,220,.4);
}
.coin-modal__meta h3 { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
.coin-modal__meta .mono { font-size: 11px; color: var(--text-mute); }
.coin-modal__pnl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px; font-weight: 700;
  color: var(--mint); text-shadow: 0 0 14px rgba(47,230,176,.5);
}
.coin-modal__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; margin-bottom: 22px;
}
.coin-modal__stats > div { background: rgba(10,22,40,.7); padding: 12px 14px; }
.coin-modal__stats span {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 5px;
}
.coin-modal__stats b {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 600; color: var(--text);
  font-feature-settings: 'tnum' 1;
}
.coin-modal__chart {
  background: rgba(10,22,40,.5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px; margin-bottom: 18px;
}
.coin-modal__chart svg { width: 100%; height: 120px; display: block; }
.coin-modal__chart-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text-mute); margin-top: 6px;
  letter-spacing: .12em;
}
.coin-modal__tl {
  display: flex; flex-direction: column; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text-dim);
  padding: 14px; background: rgba(10,22,40,.5);
  border: 1px solid var(--line); border-radius: 12px;
}
.coin-modal__tl > div { display: flex; gap: 12px; }
.coin-modal__tl > div span:first-child { color: var(--text-mute); width: 72px; flex: none; }
.coin-modal__tl > div span:last-child { color: var(--text); }

/* SYSTEM — Emblem + pillars */
.system { padding: 120px 40px; }
.emblem {
  max-width: 680px; margin: 0 auto 48px;
  display: flex; justify-content: center;
}
.emblem svg { width: 100%; max-width: 640px; height: auto; filter: drop-shadow(0 20px 50px rgba(77,224,249,.12)); }
.emblem .diamond {
  animation: diaShimmer 8s ease-in-out infinite;
  transform-origin: 340px 300px;
}
@keyframes diaShimmer {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.15) drop-shadow(0 0 20px rgba(123,244,255,.5)); }
}

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 1240px; margin: 0 auto;
}
.pillar {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,30,54,.55) 0%, rgba(10,22,40,.55) 100%);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.pillar header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.pillar__num { font-size: 11px; letter-spacing: .22em; color: var(--cyan); }
.pillar__status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(47,230,176,.1); color: var(--mint);
  border: 1px solid rgba(47,230,176,.3);
}
.pillar__status--soon { background: rgba(255,181,71,.1); color: var(--amber); border-color: rgba(255,181,71,.3); }
.pillar__status--locked { background: rgba(147,163,196,.08); color: var(--text-dim); border-color: rgba(147,163,196,.2); }
.pillar h3 {
  font-size: 24px; font-weight: 700; margin: 0 0 14px;
  letter-spacing: -.01em; line-height: 1.2;
}
.pillar p { color: var(--text-dim); margin: 0 0 20px; font-size: 14.5px; }
.pillar__stats {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.pillar__stats b { display: block; font-size: 18px; color: var(--cyan); font-weight: 700; }
.pillar__stats span {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .05em;
  color: var(--text-mute); text-transform: uppercase; margin-top: 3px;
}
.pillar--soon { border-color: rgba(255,181,71,.18); }
.pillar--soon .pillar__stats b { color: var(--amber); }
.pillar--locked h3 { color: var(--text-dim); }
.pillar--locked p { color: var(--text-mute); }
.pillar__lock {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0 0; color: var(--text-dim);
  border-top: 1px solid var(--line); margin-top: 6px;
}
.pillar__lock .mono {
  font-size: 10px; letter-spacing: .2em; color: var(--text-mute); text-transform: uppercase;
}

/* TOKENOMICS */
.tokenomics { padding: 100px 40px; }
.flow {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  gap: 22px; align-items: center;
}
.flow__col { display: flex; flex-direction: column; gap: 18px; }
.flow__card {
  position: relative; padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,30,54,.65) 0%, rgba(10,22,40,.65) 100%);
}
.flow__card .mono {
  display: block; font-size: 10px; letter-spacing: .22em; color: var(--cyan);
  text-transform: uppercase; margin-bottom: 8px;
}
.flow__pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; font-weight: 700; color: var(--cyan);
  letter-spacing: -.02em; line-height: 1; margin-bottom: 8px;
}
.flow__card h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.flow__card p { margin: 0; color: var(--text-dim); font-size: 13px; }
.flow__card--hi { box-shadow: 0 0 0 1px rgba(77,224,249,.25), 0 0 30px -10px rgba(77,224,249,.3); }
.flow__card--live { border-color: rgba(47,230,176,.4); }
.flow__card--live .flow__pct { color: var(--mint); }
.flow__card--soon { border-color: rgba(255,181,71,.3); }
.flow__card--soon .flow__pct { color: var(--amber); }
.flow__tag {
  position: absolute; top: 14px; right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(147,163,196,.25);
  color: var(--text-dim); background: rgba(147,163,196,.06);
}
.flow__tag--live { background: rgba(47,230,176,.1); color: var(--mint); border-color: rgba(47,230,176,.32); }
.flow__tag--soon { background: rgba(255,181,71,.1); color: var(--amber); border-color: rgba(255,181,71,.32); }
.flow__arrows { display: flex; align-items: center; justify-content: center; height: 100%; }
.flow__arrows svg { width: 100%; height: 200px; opacity: .55; }

/* BUY */
.buy { padding: 100px 40px; }
.buy__inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
  gap: 60px; align-items: center;
  padding: 56px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(77,224,249,.08), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(123,140,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(15,30,54,.7), rgba(10,22,40,.7));
  box-shadow: var(--shadow-glow);
}
.buy__copy { min-width: 0; }                /* grid item must be allowed to shrink */
.buy h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05; margin: 0 0 16px;
  letter-spacing: -.022em; font-weight: 700;
}
.buy p { color: var(--text-dim); max-width: 520px; margin: 0 0 22px; font-size: 15px; }
.buy__ca {
  display: inline-flex; align-items: center; gap: 10px;
  flex-wrap: wrap;                            /* copy button drops below if pill hits max-width */
  max-width: 100%;                            /* never overflow the parent column */
  padding: 9px 10px 9px 14px;
  border: 1px dashed var(--line-strong); border-radius: 10px;
  background: rgba(77,224,249,.04);
  color: var(--cyan); font-size: 13px; margin-bottom: 24px;
}
.buy__ca code {
  color: var(--cyan-2); font-size: 13px;
  flex: 1 1 auto; min-width: 0;
  word-break: break-all;                      /* random hash wraps cleanly mid-string */
}
.buy__copy-btn {
  background: var(--cyan); color: var(--cyan-ink);
  border: none; padding: 6px 10px; border-radius: 6px;
  font-family: inherit; font-weight: 600; font-size: 12px;
  cursor: pointer; letter-spacing: .05em;
}
.buy__links { display: flex; gap: 12px; flex-wrap: wrap; }
.buy__mascot img {
  width: 100%; max-width: 280px;
  filter: drop-shadow(0 0 40px rgba(77,224,249,.25));
  display: block; margin: 0 auto;
}

/* DISCLAIMER */
.disclaimer { padding: 20px 40px 80px; }
.disclaimer__inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: 22px;
  padding: 24px;
  border: 1px solid rgba(255,181,71,.25);
  border-radius: var(--radius);
  background: rgba(255,181,71,.03);
}
.disclaimer__mark { color: var(--amber); display: flex; align-items: flex-start; padding-top: 2px; }
.disclaimer h5 { margin: 0 0 6px; color: var(--amber); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.disclaimer p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.6; }

/* FOOTER */
.footer {
  padding: 60px 40px 30px;
  border-top: 1px solid var(--line);
  background: rgba(4,8,16,.5);
}
.footer__grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px;
  padding-bottom: 40px;
}
.footer__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: .18em;
}
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer__cols h6 {
  margin: 0 0 14px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .2em; color: var(--cyan);
}
.footer__cols a {
  display: block; color: var(--text-dim); text-decoration: none;
  font-size: 14px; margin-bottom: 8px;
  transition: color .2s var(--ease);
}
.footer__cols a:hover { color: var(--cyan); }
.footer__bar {
  max-width: 1240px; margin: 0 auto;
  padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-mute); letter-spacing: .08em;
}

/* ===========================================================
   OUR TECH — terminal-styled code snippet stack
   =========================================================== */
.tech { padding: 120px 40px 100px; }
.tech__stack {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.tech__stack > .tcard:first-child,
.tech__stack > .tcard:last-child { grid-column: 1 / -1; }
.tech__foot {
  text-align: center; margin: 40px auto 0;
  font-size: 11px; letter-spacing: .22em; color: var(--text-mute);
  text-transform: uppercase;
}

.tcard {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,30,54,.72) 0%, rgba(7,15,30,.85) 100%);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.tcard:hover { border-color: rgba(77,224,249,.45); transform: translateY(-3px); }
.tcard::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77,224,249,.6), transparent);
  opacity: .65;
}
.tcard__top {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: rgba(4,10,22,.7);
  border-bottom: 1px solid var(--line);
}
.tcard__dots { display: inline-flex; gap: 6px; }
.tcard__dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a3a55; display: inline-block;
}
.tcard__dots i:nth-child(1) { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,.3); }
.tcard__dots i:nth-child(2) { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,.3); }
.tcard__dots i:nth-child(3) { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,.3); }
.tcard__file { flex: 1; font-size: 11.5px; color: var(--text-dim); letter-spacing: .04em; }
.tcard__lang {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); padding: 3px 8px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(77,224,249,.05);
}
.tcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tcard__step {
  font-size: 10px; letter-spacing: .28em; color: var(--cyan);
  text-transform: uppercase;
}
.tcard__body h4 {
  margin: 0; font-size: 19px; font-weight: 600;
  letter-spacing: -.01em; line-height: 1.25;
}
.tcard__body > p {
  margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.55;
}
.code {
  margin: 6px 0 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, #04080F 0%, #060C18 100%);
  border: 1px solid rgba(77,224,249,.14);
  border-radius: 10px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px; line-height: 1.65;
  color: #C9D7EC;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), inset 0 0 30px rgba(0,0,0,.5);
  -webkit-overflow-scrolling: touch;
}
.code code { display: block; white-space: pre; }
.code .k  { color: #7BF4FF; }                /* keywords (async, def, await, return, if, etc.) */
.code .fn { color: #FFD68A; font-weight: 600; }  /* function names */
.code .s  { color: #2FE6B0; }                /* strings */
.code .n  { color: #F5A0FF; }                /* numbers */
.code .kw { color: #FFB547; }                /* True / False / None */
.code .cm { color: var(--text-mute); font-style: italic; }  /* comments */

/* ===========================================================
   TOKENOMICS — three-stage cascading flow
   =========================================================== */
.tokenomics { padding: 110px 40px; }
.tnmx {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
}

.tnmx__source {
  position: relative;
  width: min(560px, 100%);
  text-align: center;
  padding: 22px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(77,224,249,.12), transparent 65%),
    linear-gradient(180deg, rgba(15,30,54,.7), rgba(10,22,40,.7));
  box-shadow: 0 0 0 1px rgba(77,224,249,.18), 0 20px 60px -20px rgba(77,224,249,.18);
}
.tnmx__source .mono {
  display: block; font-size: 10px; letter-spacing: .28em;
  color: var(--cyan); margin-bottom: 8px; text-transform: uppercase;
}
.tnmx__source h4 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.tnmx__source p  { margin: 0; color: var(--text-dim); font-size: 12.5px; letter-spacing: .04em; }

.tnmx__pipe {
  width: 2px; height: 56px;
  background: linear-gradient(180deg, rgba(77,224,249,.6), rgba(77,224,249,.05));
  position: relative;
}
.tnmx__pipe::after {
  content: ''; position: absolute; bottom: -6px; left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid rgba(77,224,249,.55);
}
.tnmx__pipe--right { /* same vertical connector — visual alignment is centered */ }

.tnmx__pipe--from-engine {
  width: 100%;
  background: none;
}
.tnmx__pipe--from-engine::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(75% + 66.5px);
  width: 2px;
  height: 56px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(77,224,249,.6), rgba(77,224,249,.05));
}
.tnmx__pipe--from-engine::after {
  left: calc(75% + 66.5px);
}

.tnmx__stage {
  width: 100%;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px; align-items: stretch;
}
.tnmx__label {
  display: flex; flex-direction: column; justify-content: center;
  gap: 6px;
  padding-right: 18px;
  border-right: 1px dashed rgba(77,224,249,.2);
  text-align: right;
}
.tnmx__label .mono:first-child {
  font-size: 10px; letter-spacing: .28em; color: var(--cyan);
}
.tnmx__label b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.tnmx__label i { font-style: normal; font-size: 11px; color: var(--text-mute); letter-spacing: .12em; }

.tnmx__pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.tnmx__node {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,30,54,.55) 0%, rgba(10,22,40,.6) 100%);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.tnmx__node:hover { transform: translateY(-2px); }
.tnmx__pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1;
  color: var(--cyan);
}
.tnmx__node h5 { margin: 6px 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.tnmx__node p  { margin: 0; color: var(--text-dim); font-size: 12.5px; letter-spacing: .04em; }

/* Variants */
.tnmx__node--minor   { opacity: .9; }
.tnmx__node--minor   .tnmx__pct { color: var(--text-dim); }
.tnmx__node--major   { border-color: rgba(77,224,249,.45); box-shadow: 0 0 0 1px rgba(77,224,249,.2), 0 18px 50px -18px rgba(77,224,249,.25); }
.tnmx__node--major   .tnmx__pct { color: var(--cyan-2); text-shadow: 0 0 18px rgba(123,244,255,.5); }
.tnmx__node--reward  { border-color: rgba(47,230,176,.4); }
.tnmx__node--reward  .tnmx__pct { color: var(--mint); }
.tnmx__node--engine  { border-color: rgba(77,224,249,.4); box-shadow: 0 0 0 1px rgba(77,224,249,.16), 0 18px 50px -18px rgba(77,224,249,.22); }
.tnmx__node--engine  .tnmx__pct { color: var(--cyan); }
.tnmx__node--burn    { border-color: rgba(255,181,71,.36); }
.tnmx__node--burn    .tnmx__pct { color: var(--amber); }
.tnmx__node--sealed  { border-color: rgba(147,163,196,.22); background: rgba(10,22,40,.45); }
.tnmx__node--sealed  .tnmx__pct { color: var(--text-mute); }
.tnmx__node--sealed  h5 { color: var(--text-dim); }

/* Horizontal tokenomics flow */
.tnmx--horizontal {
  max-width: 1240px;
  gap: 22px;
  align-items: stretch;
}
.tnmx__split {
  width: 100%;
  display: grid;
  grid-template-columns: 190px minmax(220px, .78fr) 70px minmax(420px, 1.3fr);
  align-items: stretch;
  gap: 18px;
  min-width: 0;
}
.tnmx--horizontal .tnmx__label {
  min-height: 132px;
}
.tnmx__node--source {
  border-color: rgba(77,224,249,.42);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(77,224,249,.12), transparent 65%),
    linear-gradient(180deg, rgba(15,30,54,.66), rgba(10,22,40,.68));
  justify-content: center;
}
.tnmx__node--source > .mono {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.tnmx__node--parent {
  justify-content: center;
}
.tnmx--horizontal .tnmx__pair,
.tnmx--horizontal .tnmx__node {
  min-width: 0;
}
.tnmx--horizontal .tnmx__node h5,
.tnmx--horizontal .tnmx__node p {
  overflow-wrap: anywhere;
}
.tnmx__fork {
  position: relative;
  min-height: 132px;
}
.tnmx__fork::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(77,224,249,.62), rgba(77,224,249,.18));
}
.tnmx__fork::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -2px;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid rgba(77,224,249,.62);
}
.tnmx--horizontal .tnmx__pair {
  grid-template-columns: 1fr 1fr;
}
.tnmx--horizontal .tnmx__node {
  min-height: 132px;
}
.tnmx--horizontal .tnmx__terminal,
.tnmx--horizontal .tnmx__continues,
.tnmx--horizontal .tnmx__tag,
.tnmx--horizontal .tnmx__lock {
  margin-top: auto;
}

/* Tags inside nodes */
.tnmx__tag {
  align-self: flex-start;
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(147,163,196,.25);
  color: var(--text-dim); background: rgba(147,163,196,.06);
}
.tnmx__tag--live { background: rgba(47,230,176,.1); color: var(--mint); border-color: rgba(47,230,176,.32); }
.tnmx__tag--soon { background: rgba(255,181,71,.1); color: var(--amber); border-color: rgba(255,181,71,.32); }

.tnmx__terminal,
.tnmx__continues {
  align-self: flex-start; margin-top: 10px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-mute);
}
.tnmx__continues { color: var(--cyan); }

.tnmx__lock {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(147,163,196,.22);
  border-radius: 999px;
  color: var(--text-dim); background: rgba(147,163,196,.05);
}
.tnmx__lock .mono { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 420px; order: -1; }
  .mascot img, .mascot__video { max-height: 380px; }
  .mission__cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow__arrows { display: none; }
  .buy__inner { grid-template-columns: minmax(0, 1fr); padding: 36px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .nav__links { display: none; }
  .tank { height: 540px; }
  .vault__strip { grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 16px; }
  .vault__sep { display: none; }

  /* Tech */
  .tech__stack { grid-template-columns: 1fr; }
  .tech__stack > .tcard:first-child,
  .tech__stack > .tcard:last-child { grid-column: auto; }

  /* Tokenomics — stack label above nodes, switch the offset arrow to centred */
  .tnmx__stage { grid-template-columns: 1fr; gap: 14px; }
  .tnmx__label {
    border-right: none;
    border-bottom: 1px dashed rgba(77,224,249,.2);
    padding-right: 0; padding-bottom: 10px;
    text-align: left;
    flex-direction: row; align-items: baseline; gap: 12px; flex-wrap: wrap;
  }
  .tnmx__pipe--right { height: 36px; }
  .tnmx__pipe--right::before { left: 50%; }
  .tnmx__pipe--right::after { left: 50%; }
  .tnmx__pipe--from-engine { height: 36px; }
  .tnmx__pipe--from-engine::before { left: calc(75% + 4.5px); height: 36px; }
  .tnmx__pipe--from-engine::after { left: calc(75% + 4.5px); }

  .tnmx__split {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tnmx--horizontal .tnmx__label {
    min-height: auto;
  }
  .tnmx__fork {
    min-height: 30px;
  }
  .tnmx__fork::before {
    top: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: 30px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(77,224,249,.62), rgba(77,224,249,.18));
  }
  .tnmx__fork::after {
    top: auto;
    right: auto;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid rgba(77,224,249,.62);
    border-bottom: 0;
  }
}
@media (max-width: 640px) {
  .nav, .hero, .mission, .vault, .system, .tech, .tokenomics, .buy, .disclaimer, .footer { padding-left: 20px; padding-right: 20px; }
  .coin-modal__stats { grid-template-columns: 1fr 1fr; }
  .footer__bar { flex-direction: column; gap: 8px; }
  .disclaimer__inner { grid-template-columns: 1fr; }
  .nav__cta .nav__status { display: none; }
  .tank { height: 500px; }

  /* Vertical rhythm — tighten section paddings on phones */
  .hero      { padding-top: 50px; padding-bottom: 60px; min-height: auto; }
  .mission   { padding-top: 70px; padding-bottom: 70px; }
  .vault     { padding-top: 70px; padding-bottom: 70px; }
  .system    { padding-top: 70px; padding-bottom: 70px; }
  .tech      { padding-top: 70px; padding-bottom: 60px; }
  .tokenomics{ padding-top: 70px; padding-bottom: 70px; }
  .buy       { padding-top: 60px; padding-bottom: 60px; }
  .disclaimer{ padding-top: 10px; padding-bottom: 50px; }
  .footer    { padding-top: 40px; padding-bottom: 24px; }
  .section-head { margin-bottom: 32px; }

  /* Hero — shrink the mascot stage so the headline lands above the fold */
  .hero__visual { height: 260px; }
  .mascot img, .mascot__video { max-height: 245px; }
  .hero__title { font-size: clamp(36px, 9vw, 56px); }
  .hero__sub, .hero__mission { font-size: 15px; }

  /* Nav — tighten on phones */
  .nav { padding: 14px 20px; }
  .nav__logo { font-size: 15px; }
  .btn { padding: 9px 14px; font-size: 13px; }

  /* Mission — single column was already set, tighten cards */
  .mission__card { padding: 22px 20px; }
  .mission__h { font-size: clamp(32px, 8vw, 52px); }

  /* System — emblem smaller on phone */
  .emblem { margin-bottom: 28px; }
  .emblem svg { max-width: 100%; }
  .pillar { padding: 24px 20px; }
  .pillar h3 { font-size: 22px; }

  /* Tech — slightly tighter code on small screens */
  .tcard__body { padding: 18px 16px 20px; }
  .code { font-size: 11.5px; padding: 14px; line-height: 1.55; }
  .tcard__top { padding: 10px 14px; }
  .tcard__file { font-size: 10.5px; }
  .tcard__lang { display: none; }

  /* Tokenomics — keep each split visible as two branches on phones */
  .tnmx--horizontal .tnmx__pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tnmx--horizontal {
    gap: 18px;
  }
  .tnmx__split { gap: 8px; }
  .tnmx__fork {
    min-height: 44px;
  }
  .tnmx__fork::before {
    top: 0;
    left: 50%;
    height: 15px;
  }
  .tnmx__fork::after {
    top: 15px;
    bottom: auto;
    left: 25%;
    right: 25%;
    height: 29px;
    transform: none;
    border: 0;
    border-top: 1px solid rgba(77,224,249,.62);
    border-left: 1px solid rgba(77,224,249,.42);
    border-right: 1px solid rgba(77,224,249,.42);
  }
  .tnmx--horizontal .tnmx__node {
    min-height: auto;
    padding: 18px 16px 16px;
  }
  .tnmx--horizontal .tnmx__pair .tnmx__node {
    min-height: 122px;
    padding: 14px 11px 12px;
  }
  .tnmx__pipe--from-engine::before { left: 50%; }
  .tnmx__pipe--from-engine::after { left: 50%; }
  .tnmx__pct { font-size: 26px; }
  .tnmx__source h4,
  .tnmx--horizontal .tnmx__node h5 { font-size: 16px; }
  .tnmx--horizontal .tnmx__pair .tnmx__node h5 { font-size: 14px; line-height: 1.25; }
  .tnmx--horizontal .tnmx__node p { font-size: 11.5px; }
  .tnmx--horizontal .tnmx__pair .tnmx__node p { font-size: 10.5px; line-height: 1.4; letter-spacing: 0; }
  .tnmx--horizontal .tnmx__node--source > .mono { font-size: 9px; letter-spacing: .22em; }
  .tnmx__label { gap: 6px; padding-bottom: 8px; }
  .tnmx__label .mono:first-child { letter-spacing: .2em; }
  .tnmx--horizontal .tnmx__tag,
  .tnmx--horizontal .tnmx__terminal,
  .tnmx--horizontal .tnmx__continues,
  .tnmx--horizontal .tnmx__lock { font-size: 8.5px; letter-spacing: .1em; }

  /* Buy CTA — a bit calmer */
  .buy__inner { padding: 28px 22px; }
  .buy h2 { font-size: clamp(28px, 7vw, 40px); }
  .buy__links .btn { flex: 1 1 calc(50% - 6px); justify-content: center; }
  .buy__mascot img { max-width: 200px; }

  /* Footer — 1-col on tiny phones */
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer__cols h6 { margin-bottom: 8px; }

  /* Modal — fit narrow viewports */
  .coin-modal { padding: 14px; }
  .coin-modal__card { padding: 22px 18px; }
  .coin-modal__head { gap: 12px; grid-template-columns: 44px 1fr auto; }
  .coin-modal__symbol { width: 44px; height: 44px; font-size: 11px; }
  .coin-modal__pnl { font-size: 18px; }
  .coin-modal__journey { gap: 6px; }
  .jstep { padding: 10px 8px; }
  .jstep b { font-size: 13px; }
  .jstep .mono { font-size: 9px; letter-spacing: .1em; }
  .jarrow svg { width: 24px; }
}

/* Extra-small phones (≤ 380px) — nudge the densest grids */
@media (max-width: 380px) {
  .vstats { grid-template-columns: 1fr 1fr; }
  .vstat b { font-size: 20px; }
  .row__chips { gap: 4px; }
  .chip { font-size: 9.5px; padding: 3px 7px; }
  .row__legend i { font-size: 8.5px; }
  .tokenomics { padding-left: 16px; padding-right: 16px; }
  .tnmx--horizontal { gap: 14px; }
  .tnmx__split { gap: 9px; }
  .tnmx__fork { min-height: 39px; }
  .tnmx__fork::before { height: 13px; }
  .tnmx__fork::after { top: 13px; height: 26px; }
  .tnmx__pct { font-size: 24px; }
  .tnmx--horizontal .tnmx__node { padding: 15px 14px; }
  .tnmx--horizontal .tnmx__node h5 { font-size: 15px; }
  .tnmx--horizontal .tnmx__pair .tnmx__node {
    min-height: 116px;
    padding: 12px 9px 10px;
  }
  .tnmx--horizontal .tnmx__pair .tnmx__node h5 { font-size: 13px; }
  .tnmx__tag, .tnmx__lock { max-width: 100%; }
}

@media (max-width: 330px) {
  .tnmx--horizontal .tnmx__pair { grid-template-columns: 1fr; }
  .tnmx__fork {
    min-height: 25px;
  }
  .tnmx__fork::before {
    height: 25px;
  }
  .tnmx__fork::after {
    display: none;
  }
  .tnmx--horizontal .tnmx__pair .tnmx__node {
    min-height: auto;
  }
}

/* ===========================================================
   THE VAULT — live ticker + stats + leaderboard (v7)
   Replaces the old underwater "tank" gem layout
   =========================================================== */
.vault__wrap { max-width: 1240px; margin: 0 auto; }

/* ---------- Live ticker ---------- */
.ticker {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,30,54,.65) 0%, rgba(7,15,30,.85) 100%);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 0 0 1px rgba(77,224,249,.08), 0 18px 50px -25px rgba(0,0,0,.6);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.ticker__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(4,10,22,.5);
  border-bottom: 1px solid var(--line);
}
.ticker__pulse {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--mint);
}
.ticker__pulse .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 1.6s ease-in-out infinite;
}
.ticker__hint { font-size: 10.5px; letter-spacing: .14em; color: var(--text-mute); }

.ticker__viewport {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.ticker__track {
  display: inline-flex; gap: 12px;
  padding: 14px 0;
  white-space: nowrap;
  animation: tickerSlide 90s linear infinite;
  will-change: transform;
  pointer-events: none;
}
.ticker.ticker--held .ticker__track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .ticker:hover .ticker__track { animation-play-state: paused; }
}
@keyframes tickerSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tkpill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10,22,40,.6);
  font-size: 12.5px; line-height: 1;
  flex: none;
}
.tkpill__time { color: var(--text-mute); font-size: 10.5px; letter-spacing: .12em; }
.tkpill__rec { font-size: 10.5px; letter-spacing: .18em; padding: 2px 7px; border-radius: 4px; }
.tkpill__sym { color: var(--text); font-weight: 600; }
.tkpill__score, .tkpill__detail { color: var(--text-dim); font-size: 11px; letter-spacing: .04em; }

.tkpill--buy  { border-color: rgba(77,224,249,.3); background: rgba(77,224,249,.06); }
.tkpill--buy  .tkpill__rec { color: var(--cyan); background: rgba(77,224,249,.12); }
.tkpill--buy  .tkpill__sym { color: var(--cyan-2); }
.tkpill--skip { border-color: rgba(147,163,196,.18); }
.tkpill--skip .tkpill__rec { color: var(--text-mute); background: rgba(147,163,196,.08); }

/* ---------- Aggregate stats row ---------- */
.vstats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-bottom: 28px;
}
.vstat {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,30,54,.55) 0%, rgba(10,22,40,.55) 100%);
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.vstat:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.vstat .mono:first-child {
  font-size: 10px; letter-spacing: .22em; color: var(--text-mute);
  text-transform: uppercase;
}
.vstat b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05;
  color: var(--text);
  font-feature-settings: 'tnum' 1;
}
.vstat i {
  font-style: normal; font-size: 10.5px; color: var(--text-mute);
  letter-spacing: .06em;
}
.vstat--hl {
  border-color: rgba(47,230,176,.4);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(47,230,176,.1), transparent 60%),
    linear-gradient(180deg, rgba(15,30,54,.6) 0%, rgba(10,22,40,.6) 100%);
}
.vstat--hl b { color: var(--mint); text-shadow: 0 0 18px rgba(47,230,176,.35); }

/* ---------- Leaderboard ---------- */
.board {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,30,54,.55) 0%, rgba(7,15,30,.7) 100%);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(77,224,249,.08), 0 30px 80px -30px rgba(0,0,0,.55);
}
.board__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: rgba(4,10,22,.5);
  border-bottom: 1px solid var(--line);
}
.board__title {
  font-size: 11.5px; letter-spacing: .22em; color: var(--cyan);
  text-transform: uppercase;
}
.board__sub {
  font-size: 10.5px; letter-spacing: .14em; color: var(--text-mute);
}
.board__rows { display: flex; flex-direction: column; }
.board__empty {
  padding: 48px 22px;
  text-align: center;
  font-size: 11.5px; letter-spacing: .18em;
  color: var(--text-mute); text-transform: uppercase;
}
.board__foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: .14em; color: var(--text-mute);
  text-align: center;
  background: rgba(4,10,22,.3);
}

/* Single row */
.row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.9fr) minmax(280px, 1.6fr) 100px;
  gap: 18px; align-items: center;
  padding: 16px 22px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit; color: inherit;
  transition: background-color .2s var(--ease);
}
.row:first-child { border-top: none; }
.row:hover { background: rgba(77,224,249,.04); }

.row__lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row__medal { font-size: 22px; line-height: 1; width: 28px; text-align: center; }
.row__rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 22px;
  font-size: 11px; font-weight: 600; color: var(--text-mute);
  letter-spacing: .04em;
}
.row__icon {
  width: 36px; height: 36px; border-radius: 50%;
  flex: none;
  background: rgba(10,22,40,.6);
  border: 1px solid var(--line);
  object-fit: cover;
}
.row__icon--fallback {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 11px;
  color: var(--cyan); text-transform: uppercase;
}
.row__id { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.row__sym {
  font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--text);
}
.row__name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-mute); letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.row__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  display: inline-flex; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .08em;
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(147,163,196,.2);
  background: rgba(147,163,196,.06);
  color: var(--text-dim);
  text-transform: lowercase; line-height: 1;
}
.chip--score    { background: rgba(77,224,249,.08); color: var(--cyan-2); border-color: rgba(77,224,249,.28); }
.chip--high     { background: rgba(47,230,176,.1); color: var(--mint); border-color: rgba(47,230,176,.32); }
.chip--medium   { background: rgba(255,181,71,.08); color: var(--amber); border-color: rgba(255,181,71,.3); }
.chip--low      { background: rgba(255,140,140,.08); color: #FF8C8C; border-color: rgba(255,140,140,.3); }
.chip--time     { background: rgba(123,140,255,.08); color: var(--indigo); border-color: rgba(123,140,255,.3); }
.chip--risk-very-high { background: rgba(255,99,99,.08); color: #FF7A7A; border-color: rgba(255,99,99,.3); }
.chip--risk-high      { background: rgba(255,140,90,.08); color: #FFA77A; border-color: rgba(255,140,90,.3); }
.chip--risk-medium    { background: rgba(255,181,71,.08); color: var(--amber); border-color: rgba(255,181,71,.3); }
.chip--risk-low       { background: rgba(47,230,176,.1); color: var(--mint); border-color: rgba(47,230,176,.32); }

/* Journey bar */
.row__journey { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row__bar {
  position: relative;
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(77,224,249,.1) 0%, rgba(77,224,249,.35) 100%);
  border: 1px solid rgba(77,224,249,.2);
}
.row__bar-fill {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(77,224,249,.0) 0%, rgba(77,224,249,.35) 60%, rgba(255,181,71,.5) 100%);
}
.row__bar-cur {
  position: absolute; top: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-dim);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(6,12,24,.9), 0 0 6px rgba(143,162,190,.5);
  z-index: 1;
}
.row__bar-peak {
  position: absolute; top: 50%;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--amber);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(6,12,24,.9), 0 0 12px rgba(255,181,71,.6);
  z-index: 2;
}
.row__legend {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--text-dim);
  letter-spacing: .04em;
}
.row__legend > span { display: inline-flex; flex-direction: column; gap: 1px; }
.row__legend i { font-style: normal; font-size: 9px; letter-spacing: .14em; color: var(--text-mute); text-transform: uppercase; }
.row__legend-cur  { text-align: center; }
.row__legend-peak { text-align: right; color: var(--amber); }
.row__legend-peak i { color: var(--text-mute); }

.row__gain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px; font-weight: 700;
  color: var(--mint);
  text-align: right;
  text-shadow: 0 0 14px rgba(47,230,176,.3);
  font-feature-settings: 'tnum' 1;
}
.row[data-rank="1"] .row__gain,
.row[data-rank="2"] .row__gain,
.row[data-rank="3"] .row__gain {
  font-size: 22px;
}

/* ---------- Modal additions (chips + dex link) ---------- */
.coin-modal__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}
.coin-modal__chips .chip { font-size: 11px; padding: 5px 10px; }
.coin-modal__links { margin-bottom: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.coin-modal__links .btn { padding: 9px 16px; font-size: 13px; }

/* ---------- Vault responsive ---------- */
@media (max-width: 1080px) {
  .vstats { grid-template-columns: repeat(3, 1fr); }
  .vstat:nth-child(4), .vstat:nth-child(5) { grid-column: span 1; }
  .row {
    grid-template-columns: 1fr 90px;
    grid-template-areas:
      "lead   gain"
      "chips  chips"
      "journey journey";
    gap: 12px;
    padding: 16px 18px;
  }
  .row__lead    { grid-area: lead; }
  .row__gain    { grid-area: gain; align-self: start; }
  .row__chips   { grid-area: chips; }
  .row__journey { grid-area: journey; }
  .ticker__track { animation-duration: 120s; }
}
@media (max-width: 640px) {
  .vstats { grid-template-columns: repeat(2, 1fr); }
  .vstat b { font-size: 22px; }
  .vstat:nth-child(5) { grid-column: 1 / -1; } /* "Top catch" wide on tiny screens */
  .ticker__head { padding: 10px 14px; }
  .tkpill { font-size: 11.5px; padding: 7px 12px; }
  .tkpill__time { font-size: 9.5px; }
  /* Stack title above the hint on narrow phones so the longer
     "top 10 catches · last 7 days" doesn't get squashed by the hint. */
  .board__head { padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .board__title { font-size: 11px; line-height: 1.35; }
  .board__sub   { font-size: 10px; }
  .board__empty { padding: 36px 18px; }
  .board__foot  { padding: 12px 16px; font-size: 10px; }
  .row { padding: 14px 16px; }
  .row__icon { width: 30px; height: 30px; }
  .row__sym { font-size: 14px; }
  .row__gain { font-size: 17px !important; }
  .ticker__track { animation-duration: 170s; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
    transform: none;
  }
  .ticker__viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}
