/* ================= TOKENS ================= */
/* Layout: a vertical reel feed. Ten full-screen posts that snap one at a time,
   art bleeding edge to edge, captions bottom-left, controls on the right edge. */
:root {
  color-scheme: dark;

  --night: #07051a;
  --ink: #f7f1ff;
  --muted: #c3b8e6;
  --cyan: #3cf2ff;
  --pink: #ff4fd8;
  --violet: #8b5cff;
  --gold: #ffc93c;
  --gold-deep: #d98a12;
  --glass: rgba(16, 10, 40, 0.55);
  --glass-line: rgba(200, 180, 255, 0.22);
  --on-neon: #14062e;

  --grad: linear-gradient(100deg, var(--cyan), var(--pink) 50%, var(--violet));
  --grad-loop: linear-gradient(100deg, var(--cyan), var(--pink), var(--violet), var(--cyan));

  --f-display: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --f-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --top: calc(68px + env(safe-area-inset-top, 0px));
  --bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  --rail-w: 64px;
  --fast: 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@property --spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

svg {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ================= SHARED BITS ================= */
.grad-text {
  background: var(--grad-loop);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-move 6s linear infinite;
}

@keyframes grad-move {
  to { background-position: 300% 0; }
}

.kicker {
  margin: 0 0 8px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(60, 242, 255, 0.6);
}

.reel-h {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* animated neon border */
.ring {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    conic-gradient(from var(--spin), var(--cyan), var(--pink), var(--violet), var(--cyan)) border-box;
  animation: spin 4s linear infinite;
}

@keyframes spin {
  to { --spin: 360deg; }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn svg {
  font-size: 1.15em;
}

.btn:active {
  transform: scale(0.95);
}

.btn-neon {
  color: var(--on-neon);
  background: var(--grad);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 8px 30px rgba(255, 79, 216, 0.45), 0 0 50px rgba(60, 242, 255, 0.25);
}

.btn-neon:hover {
  transform: translateY(-2px);
  filter: brightness(1.08) saturate(1.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 12px 40px rgba(255, 79, 216, 0.6), 0 0 70px rgba(60, 242, 255, 0.35);
}

.btn-glass {
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover {
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.98rem;
}

.btn-xl {
  min-height: 64px;
  padding: 0 40px;
  font-size: 1.45rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 18px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--cyan);
}

.icon-btn:active {
  transform: scale(0.92);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-center {
  justify-content: center;
}

/* copy / check icon swap */
.ico-check {
  display: none;
}

.copied .ico-copy {
  display: none;
}

.copied .ico-check {
  display: block;
  color: #7dffb0;
  animation: pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop-in {
  from { transform: scale(0.2) rotate(-30deg); }
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 79, 216, 0.16);
  border: 1px solid rgba(255, 79, 216, 0.45);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(255, 79, 216, 0.7);
  animation: pulse 1.4s ease-out infinite;
}

@keyframes pulse {
  to { box-shadow: 0 0 0 10px rgba(255, 79, 216, 0); }
}

/* ================= TOP BAR ================= */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 12px;
  background: linear-gradient(180deg, rgba(7, 5, 26, 0.75), rgba(7, 5, 26, 0));
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}

.brand img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(139, 92, 255, 0.7));
}

.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 18px;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(247, 241, 255, 0.55);
}

.tab-on {
  position: relative;
  color: var(--ink);
}

.tab-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  transform: translateX(-50%);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

/* ================= DOTS ================= */
.dots {
  position: fixed;
  right: max(10px, env(safe-area-inset-right, 0px));
  top: 50%;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}

.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  border: 2px solid rgba(247, 241, 255, 0.6);
  background: transparent;
  transition: height var(--fast), background-color var(--fast), border-color var(--fast);
}

.dot:hover {
  border-color: var(--ink);
}

.dot[aria-current="true"] {
  height: 30px;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(255, 79, 216, 0.7);
}

/* ================= EFFECT LAYERS ================= */
.particles {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 242, 255, 0.16), rgba(255, 79, 216, 0.08) 40%, transparent 70%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.cursor-glow.on {
  opacity: 1;
}

/* ================= FEED ================= */
.feed {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.feed::-webkit-scrollbar {
  display: none;
}

.reel {
  position: relative;
  min-height: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.reel-bg {
  position: absolute;
  inset: -3%;
  z-index: -2;
  transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0);
  transition: transform 0.4s ease-out;
}

.bg-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

.reel.is-active .bg-media {
  animation: kenburns 14s ease-out both;
}

@keyframes kenburns {
  from { transform: scale(1.12); }
  to { transform: scale(1.02); }
}

.reel-bg.dim .bg-media {
  filter: brightness(0.45) saturate(1.2);
}

.reel-bg.blur .bg-media {
  filter: blur(26px) brightness(0.5) saturate(1.4);
  transform: scale(1.2);
  animation: none;
}

.scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 5, 26, 0.55) 0%, rgba(7, 5, 26, 0) 22%, rgba(7, 5, 26, 0) 45%, rgba(7, 5, 26, 0.88) 100%);
}

.scrim-center {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(7, 5, 26, 0.72), rgba(7, 5, 26, 0.25) 70%),
    linear-gradient(180deg, rgba(7, 5, 26, 0.5), rgba(7, 5, 26, 0) 25%, rgba(7, 5, 26, 0) 70%, rgba(7, 5, 26, 0.8));
}

.reel-body {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--top) calc(var(--gutter) + 22px) var(--bottom) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

/* reveal: visible by default; hidden only while a reel is off screen (JS on) */
.rv {
  transition: opacity var(--fast), transform var(--fast);
  transition-delay: var(--d, 0s);
}

.js .reel:not(.is-active) .rv {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition-delay: 0s;
}

/* ================= 01 HERO ================= */
.hero-body {
  align-items: flex-start;
  padding-bottom: calc(var(--bottom) + 56px);
}

.hero-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-wrap: balance;
  filter: drop-shadow(0 4px 24px rgba(255, 79, 216, 0.45));
}

.hero-ticker {
  margin: -4px 0 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(255, 201, 60, 0.55), 0 3px 0 #6b3300;
}

.hero-tag {
  max-width: 44ch;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.ca {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 540px;
  min-width: 0;
  padding: 6px 6px 6px 6px;
  border-radius: 16px;
  text-align: left;
}

.ca-tag {
  flex: none;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--grad);
  color: var(--on-neon);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.78rem;
}

.ca-code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 0.88rem;
}

.ca-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(247, 241, 255, 0.1);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ca-act svg {
  font-size: 15px;
}

.ca.copied {
  animation: spin 4s linear infinite, flash 0.6s ease-out;
}

@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(125, 255, 176, 0.8); }
  100% { box-shadow: 0 0 0 16px rgba(125, 255, 176, 0); }
}

.swipe-hint {
  position: absolute;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 4px 12px;
  border: 0;
  background: none;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transform: translateX(-50%);
}

.swipe-hint svg {
  font-size: 22px;
  animation: nudge 1.2s ease-in-out infinite;
}

@keyframes nudge {
  50% { transform: translateY(5px); }
}

/* ================= 02 CLIP ================= */
.clip-body {
  padding-right: calc(var(--gutter) + var(--rail-w) + 36px);
}

.clip-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
  min-width: 0;
}

.clip-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.1rem;
}

.clip-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.follow-pill {
  padding: 3px 12px;
  border-radius: 8px;
  border: 1px solid rgba(247, 241, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 800;
}

.follow-pill:hover {
  background: var(--ink);
  color: var(--on-neon);
}

.clip-cap {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.clip-tags {
  margin: 0;
  font-weight: 800;
  color: var(--cyan);
}

.clip-sound {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  max-width: 280px;
  overflow: hidden;
  font-size: 0.9rem;
  color: var(--muted);
}

.sound-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 9s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.rail {
  position: absolute;
  right: calc(var(--gutter) + 22px);
  bottom: var(--bottom);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: var(--rail-w);
}

.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
}

.rail-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 26px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.rail-btn:hover .rail-ico {
  transform: scale(1.1);
}

.rail-btn:active .rail-ico {
  transform: scale(0.9);
}

.rail-lbl {
  font-weight: 800;
  font-size: 0.78rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.rail-buy .rail-ico {
  background: var(--grad);
  color: var(--on-neon);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(255, 79, 216, 0.6);
}

.rail-btn[aria-pressed="true"] .rail-ico {
  color: #ff3d6e;
  animation: like-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes like-pop {
  30% { transform: scale(1.35); }
}

.disc {
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(#222, #444, #222, #444, #222);
  animation: rotate 4s linear infinite;
}

.disc img {
  border-radius: 50%;
}

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

.dbl-hint {
  position: absolute;
  top: calc(var(--top) + 8px);
  left: 50%;
  z-index: 7;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  transform: translateX(-50%);
  pointer-events: none;
}

.big-heart {
  position: fixed;
  z-index: 40;
  width: 110px;
  height: 110px;
  color: #ff3d6e;
  filter: drop-shadow(0 0 20px rgba(255, 61, 110, 0.8));
  pointer-events: none;
  animation: big-heart 0.8s ease-out forwards;
}

@keyframes big-heart {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(var(--r)); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(var(--r)); }
  100% { opacity: 0; transform: translate(-50%, -140%) scale(0.9) rotate(var(--r)); }
}

.float-bit {
  position: fixed;
  z-index: 40;
  width: 22px;
  height: 22px;
  pointer-events: none;
  animation: float-bit 0.9s ease-out forwards;
}

@keyframes float-bit {
  from { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--r)); }
}

/* ================= 03 ABOUT ================= */
.about-body {
  align-items: flex-start;
}

.post {
  max-width: 620px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-head img {
  width: 44px;
  height: 44px;
}

.post-head div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.post-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.pin {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 201, 60, 0.16);
  color: var(--gold) !important;
  font-weight: 800;
  font-size: 0.75rem !important;
}

.post-text {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  text-wrap: pretty;
}

.post-sub {
  margin-top: 14px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 800;
  font-size: 1rem;
  color: var(--cyan);
}

.reel.is-active .tag {
  animation: bob 3s ease-in-out infinite;
  animation-delay: calc(var(--d) * 3);
}

.tag:nth-child(even) {
  color: var(--pink);
}

@keyframes bob {
  50% { translate: 0 -6px; }
}

/* ================= 04 TOKEN INFO ================= */
.chart-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  z-index: -1;
  width: 100%;
  height: 40%;
  opacity: 0.5;
}

.chart-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 8px var(--cyan));
  stroke-dasharray: 2000;
  stroke-dashoffset: 0;
}

.reel-info.is-active .chart-line {
  animation: draw 2.2s ease-out both;
}

@keyframes draw {
  from { stroke-dashoffset: 2000; }
}

.info-body {
  justify-content: center;
}

.supply {
  display: flex;
  flex-direction: column;
}

.supply-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.supply-lbl {
  font-weight: 800;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(139, 92, 255, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 36px rgba(60, 242, 255, 0.3);
}

.ik {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.iv {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.info-ca {
  grid-column: span 3;
}

.ca-mini {
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
}

.ca-mini .ca-code {
  font-size: 0.95rem;
}

/* ================= 05 HOW TO BUY ================= */
.buy-body {
  justify-content: center;
  align-items: flex-start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.step-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad);
  color: var(--on-neon);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.4rem;
}

.step h3 {
  margin: 2px 0 2px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ================= 06 GALLERY ================= */
.gallery-body {
  justify-content: center;
  padding-right: var(--gutter);
  max-width: none;
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-right: 22px;
}

.vault-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vault-count {
  margin-right: 6px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.vault {
  --card: min(72vw, 360px);
  display: flex;
  gap: 16px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 10px max(var(--gutter), calc(50vw - var(--card) / 2)) 18px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.vault::-webkit-scrollbar {
  display: none;
}

.meme {
  position: relative;
  flex: none;
  width: var(--card);
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  scroll-snap-align: center;
  background: #1a1238;
  box-shadow: 0 0 0 1px var(--glass-line), 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meme.on {
  transform: scale(1.03);
  box-shadow: 0 0 0 2px var(--pink), 0 0 40px rgba(255, 79, 216, 0.45), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.meme img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meme span {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(7, 5, 26, 0.9));
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.15;
}

/* ================= 07 COMMUNITY ================= */
.community-body {
  align-items: center;
  justify-content: center;
}

.comments-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  height: 100%;
  max-height: 720px;
  min-height: 0;
  padding: 22px 20px 16px;
  border-radius: 26px;
  background: rgba(10, 6, 30, 0.72);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.comments {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

.comments-track {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: rise 22s linear infinite;
}

.comments:hover .comments-track {
  animation-play-state: paused;
}

@keyframes rise {
  to { transform: translateY(-50%); }
}

.cmt {
  display: flex;
  align-items: center;
  gap: 12px;
}

.av {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c);
  color: var(--on-neon);
  font-family: var(--f-display);
  font-weight: 700;
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent);
}

.cmt div {
  flex: 1;
  min-width: 0;
}

.cmt b {
  font-size: 0.85rem;
  color: var(--muted);
}

.cmt p {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
}

.cmt-heart {
  font-size: 18px;
  color: rgba(247, 241, 255, 0.35);
}

.composer {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-line);
}

.composer input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(247, 241, 255, 0.06);
}

.composer input:focus {
  outline: none;
  border-color: var(--cyan);
}

/* ================= 08 CHART ================= */
.chart-body {
  justify-content: center;
}

.chart-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.chart-frame {
  position: relative;
  width: 100%;
  height: min(56vh, 560px);
  border-radius: 22px;
  overflow: hidden;
}

.chart-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.chart-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

.chart-fallback svg {
  font-size: 34px;
  color: var(--pink);
}

/* ================= 09 ROADMAP ================= */
.road-body {
  justify-content: center;
}

.phases {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2.4vh, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.ph-n {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  min-width: 7.5em;
}

.ph-t {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.reel-road .phase.rv {
  transform-origin: left center;
}

.js .reel-road:not(.is-active) .phase.rv {
  transform: translateX(-60px) skewX(-8deg);
}

.ph-live {
  align-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(125, 255, 176, 0.15);
  border: 1px solid rgba(125, 255, 176, 0.5);
  color: #7dffb0;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ================= 10 FINAL ================= */
.final-body {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.final-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(139, 92, 255, 0.8), 0 4px 0 rgba(20, 6, 46, 0.8);
}

.final-ticker {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  line-height: 0.9;
  filter: drop-shadow(0 0 30px rgba(255, 79, 216, 0.6));
}

.disclaimer {
  max-width: 62ch;
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.coins {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.coin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1b0, var(--gold) 40%, var(--gold-deep) 100%);
  box-shadow: inset 0 0 0 4px rgba(107, 51, 0, 0.35), 0 0 30px rgba(255, 201, 60, 0.55);
  animation: coin 4.5s ease-in-out infinite;
  animation-delay: var(--t);
}

.coin svg {
  width: 55%;
  height: 55%;
  fill: #6b3300;
}

@keyframes coin {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(-22px) rotate(12deg); }
}

/* ================= TOAST ================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-neon);
  font-family: var(--f-display);
  font-weight: 700;
  box-shadow: 0 10px 40px rgba(255, 79, 216, 0.5);
  opacity: 0;
  transform: translate(-50%, 16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .tabs {
    display: none;
  }
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .info-ca {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .coin:nth-child(4),
  .coin:nth-child(5) {
    display: none;
  }
  :root {
    --rail-w: 52px;
    --top: calc(64px + env(safe-area-inset-top, 0px));
  }
  .brand-name {
    font-size: 1.02rem;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .reel-body {
    gap: 12px;
    padding-right: calc(var(--gutter) + 16px);
  }
  .clip-body {
    padding-right: calc(var(--gutter) + var(--rail-w) + 20px);
  }
  .rail {
    right: calc(var(--gutter) + 8px);
    gap: 12px;
  }
  .rail-ico {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
  .disc {
    width: 40px;
    height: 40px;
  }
  .dots {
    right: 4px;
    gap: 7px;
  }
  .dot {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }
  .dot[aria-current="true"] {
    height: 20px;
  }
  .hero-tag,
  .clip-cap {
    font-size: 1rem;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .step {
    padding: 10px 14px;
    align-items: center;
  }
  .step p {
    font-size: 0.86rem;
  }
  .step h3 {
    font-size: 1.12rem;
  }
  .step-n {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
  .info-card {
    padding: 12px 14px;
  }
  .iv {
    font-size: 1.2rem;
  }
  .btn-xl {
    min-height: 56px;
    font-size: 1.25rem;
    width: 100%;
  }
  .cta .btn {
    flex: 1 1 auto;
  }
  .chart-frame {
    height: 52vh;
  }
  .gallery-head {
    padding-right: 0;
  }
  .vault-nav .icon-btn {
    display: none;
  }
}

@media (max-height: 700px) and (max-width: 640px) {
  .step p {
    display: none;
  }
  .reel-h {
    font-size: 1.8rem;
  }
  .supply-num {
    font-size: 2.2rem;
  }
}

@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reel-bg {
    transform: none;
  }
}
