/* ============================================================
   CRYPTO LAB — "VOYAGE" v3
   Full-screen vertical journey · one world per panel
   ============================================================ */
:root {
  --bg:        #04030a;
  --ink:       #f2f0fa;
  --ink-soft:  rgba(242, 240, 250, 0.72);
  --ink-mute:  rgba(242, 240, 250, 0.45);
  --ink-faint: rgba(242, 240, 250, 0.16);
  --line:      rgba(255, 255, 255, 0.09);
  --glass:     rgba(10, 9, 18, 0.55);

  --c-galaxy:    #f7931a;
  --c-pulse:     #22d3ee;
  --c-bubbles:   #34e0a1;
  --c-prix:      #ef4444;
  --c-city:      #ff007a;
  --c-matrix:    #00ff66;
  --c-sentiment: #00ff88;
  --c-ichimoku:  #e0b24a;
  --btc: #f7931a;
  --eth: #627eea;

  --f-display: 'Syne', sans-serif;
  --f-body:    'Space Grotesk', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-snap-type: y proximity; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(247, 147, 26, 0.35); color: #fff; }

/* fixed layers */
#stars { position: fixed; inset: 0; z-index: 0; display: block; }
.aurora {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 38% at 22% 26%, color-mix(in oklab, var(--acc, #f7931a) 16%, transparent), transparent 70%),
    radial-gradient(36% 34% at 80% 74%, color-mix(in oklab, var(--acc, #f7931a) 10%, transparent), transparent 70%);
  filter: blur(40px);
  transition: background 1.2s ease;
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ─────────── TOP BAR ─────────── */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(180deg, rgba(4,3,10,0.85), transparent);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.brand {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
}
.brand i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--acc, #f7931a);
  box-shadow: 0 0 12px var(--acc, #f7931a);
  transition: background .8s, box-shadow .8s; font-style: normal;
}
.bar-right { display: flex; align-items: center; gap: 18px; }
.btc-mini {
  font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-soft);
  display: flex; align-items: baseline; gap: 8px;
}
.btc-mini b { color: var(--btc); font-weight: 600; }
.btc-mini .chg.up { color: #0ecb81; }
.btc-mini .chg.dn { color: #f6465d; }
.bar-cv {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, background .3s;
}
.bar-cv:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.07); }

/* ─────────── RAIL NAV ─────────── */
.rail {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 60;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
.rail button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; gap: 10px; padding: 2px;
}
.rail .lab {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute);
  opacity: 0; transform: translateX(6px);
  transition: opacity .25s, transform .25s, color .25s;
  white-space: nowrap;
}
.rail button:hover .lab, .rail button.on .lab { opacity: 1; transform: none; }
.rail button.on .lab { color: var(--ink); }
.rail .dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--ink-faint);
  transition: background .3s, box-shadow .3s, transform .3s;
}
.rail button.on .dot {
  background: var(--acc, #fff); transform: scale(1.4);
  box-shadow: 0 0 12px var(--acc, #fff);
}
@media (max-width: 760px) { .rail { display: none; } }

/* ─────────── PANELS ─────────── */
.panel {
  position: relative; min-height: 100vh; min-height: 100svh;
  scroll-snap-align: start;
  display: flex; align-items: center;
  overflow: hidden; z-index: 2;
  padding: 90px clamp(24px, 7vw, 110px);
}
.panel::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.content { position: relative; z-index: 3; max-width: 720px; }

.kicker {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--acc, var(--ink-mute));
  display: flex; align-items: center; gap: 12px; margin-bottom: 26px;
}
.kicker::before { content: ''; width: 30px; height: 1px; background: currentColor; opacity: 0.6; }
.panel h2, .panel h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(52px, 10vw, 150px); line-height: 0.92;
  letter-spacing: -0.03em; text-transform: uppercase;
  text-wrap: balance;
}
.panel h2 .ghost {
  display: block;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklab, var(--acc, #fff) 70%, transparent);
}
.panel .desc {
  margin-top: 26px; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.6;
  color: var(--ink-soft); max-width: 46ch; text-wrap: pretty;
}
.cta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 38px; text-decoration: none;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink);
  padding: 16px 26px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--acc, #fff) 55%, transparent);
  background: color-mix(in oklab, var(--acc, #fff) 10%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s, transform .3s, box-shadow .3s;
}
.cta .arr { transition: transform .3s; }
.cta:hover {
  background: color-mix(in oklab, var(--acc, #fff) 22%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 16px 50px -16px color-mix(in oklab, var(--acc, #fff) 60%, transparent);
}
.cta:hover .arr { transform: translateX(6px); }

.bignum {
  position: absolute; right: clamp(10px, 4vw, 70px); bottom: 4vh; z-index: 1;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(140px, 28vw, 420px); line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  pointer-events: none; user-select: none;
}

/* reveal on enter — keyframe animation (fires reliably on class add) */
.content > * { opacity: 0; }
.panel.in .content > * { animation: contentRise .8s cubic-bezier(.2,.7,.2,1) both; }
.panel.in .content > *:nth-child(2) { animation-delay: .1s; }
.panel.in .content > *:nth-child(3) { animation-delay: .2s; }
.panel.in .content > *:nth-child(4) { animation-delay: .3s; }
@keyframes contentRise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

/* ─────────── INTRO ─────────── */
.p-intro { justify-content: center; text-align: center; }
.p-intro .content { max-width: 1000px; }
.p-intro h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffd86b, #ff5470 35%, #b347ff 65%, #00f0ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.p-intro .desc { margin-left: auto; margin-right: auto; }
.ring {
  position: absolute; left: 50%; top: 50%; z-index: 0;
  width: min(78vmin, 700px); height: min(78vmin, 700px);
  margin: calc(min(78vmin, 700px) / -2) 0 0 calc(min(78vmin, 700px) / -2);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
  animation: ringSpin 50s linear infinite;
}
.ring::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(247,147,26,0.55);
  border-right-color: rgba(0,240,255,0.30);
  filter: blur(0.4px);
}
.ring .sat {
  position: absolute; left: 50%; top: -5px; width: 10px; height: 10px;
  margin-left: -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 16px #fff;
}
.ring.r2 {
  width: min(58vmin, 520px); height: min(58vmin, 520px);
  margin: calc(min(58vmin, 520px) / -2) 0 0 calc(min(58vmin, 520px) / -2);
  animation-duration: 34s; animation-direction: reverse;
}
.ring.r2::before { border-top-color: rgba(255,0,122,0.4); border-right-color: transparent; }
.ring.r2 .sat { background: var(--c-galaxy); box-shadow: 0 0 14px var(--c-galaxy); width: 7px; height: 7px; margin-left: -3.5px; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.scroll-hint {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 4;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-mute);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 42px;
  background: linear-gradient(180deg, var(--ink-mute), transparent);
  animation: hintDrop 1.8s ease-in-out infinite;
}
@keyframes hintDrop { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ─────────── GALAXY SCENE ─────────── */
.gx-sun {
  position: absolute; right: 16%; top: 50%; width: 150px; height: 150px;
  margin-top: -75px; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fff6d8, var(--c-galaxy) 52%, #8a3c00);
  box-shadow: 0 0 90px 16px rgba(247,147,26,0.45), 0 0 220px 50px rgba(247,147,26,0.16);
  animation: sunBreathe 5s ease-in-out infinite;
}
@keyframes sunBreathe { 50% { box-shadow: 0 0 110px 24px rgba(247,147,26,0.55), 0 0 260px 70px rgba(247,147,26,0.2); } }
.gx-orbit {
  position: absolute; right: 16%; top: 50%;
  width: var(--d); height: var(--d);
  margin: calc(var(--d) / -2) calc(var(--d) / -2 + 75px) 0 0;
  border-radius: 50%; border: 1px solid rgba(247,147,26,0.18);
  animation: ringSpin var(--t) linear infinite;
}
.gx-orbit .pl {
  position: absolute; left: 50%; top: 0; border-radius: 50%;
  width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: var(--pc); box-shadow: 0 0 14px var(--pc);
}
@media (max-width: 900px) {
  .gx-sun, .gx-orbit { right: 50%; opacity: 0.5; }
}

/* ─────────── PULSE SCENE / CARDS ─────────── */
.p-pulse .content { max-width: none; width: 100%; }
.pulse-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px; margin-top: 40px; max-width: 1180px;
}
.pcard {
  position: relative; border-radius: 18px; padding: 20px 20px 16px;
  background: rgba(10, 12, 20, 0.6); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.pcard:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.4); }
.pcard .sym {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-mute); display: flex; justify-content: space-between; align-items: baseline;
}
.pcard .sym b { color: var(--ink); font-weight: 600; font-size: 13px; }
.pcard .price {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px);
  margin-top: 10px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.pcard .chg { font-family: var(--f-mono); font-size: 12px; font-weight: 600; margin-top: 4px; }
.pcard .chg.up { color: #0ecb81; }
.pcard .chg.dn { color: #f6465d; }
.pcard svg.spark { display: block; width: 100%; height: 40px; margin-top: 12px; }
.pcard svg.spark path { fill: none; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.pcard svg.spark path.fill { fill: url(#sparkfill); stroke: none; opacity: 0.5; }
.ekg {
  position: absolute; left: 0; right: 0; top: 52%; height: 120px; opacity: 0.16;
}
.ekg path {
  fill: none; stroke: var(--c-pulse); stroke-width: 2;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
}
.panel.in .ekg path { animation: ekgDraw 3.4s linear infinite; }
@keyframes ekgDraw { to { stroke-dashoffset: 0; } }

/* ─────────── BUBBLES SCENE ─────────── */
.bub {
  position: absolute; border-radius: 50%;
  animation: bubFloat var(--t, 9s) ease-in-out infinite;
  filter: saturate(1.1);
}
.bub::after {
  content: ''; position: absolute; left: 20%; top: 14%; width: 30%; height: 24%;
  border-radius: 50%; filter: blur(2px);
  background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.65), transparent 70%);
}
.bub.up  { background: radial-gradient(circle at 35% 30%, #a4ffd9, var(--c-bubbles) 58%, #0a7a52); box-shadow: 0 0 70px rgba(52,224,161,0.3); }
.bub.dn  { background: radial-gradient(circle at 35% 30%, #ffc0cb, #ff5470 58%, #7e1c30); box-shadow: 0 0 70px rgba(255,84,112,0.3); }
.bub.neu { background: radial-gradient(circle at 35% 30%, #fff, #cfcfdb 65%, #585866); box-shadow: 0 0 40px rgba(255,255,255,0.16); }
@keyframes bubFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  40% { transform: translateY(-26px) translateX(8px); }
  70% { transform: translateY(10px) translateX(-6px); }
}

/* ─────────── GRAND PRIX SCENE ─────────── */
.p-prix .scene {
  background:
    linear-gradient(180deg, transparent 56%, rgba(0,0,0,0.5)),
    repeating-linear-gradient(100deg, transparent 0 90px, rgba(239,68,68,0.06) 90px 92px),
    repeating-linear-gradient(80deg, transparent 0 130px, rgba(250,204,21,0.05) 130px 132px);
}
.speedlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,0.045) 38px 40px);
  transform: skewX(-18deg) scale(1.3);
  animation: zoom 1.1s linear infinite;
}
@keyframes zoom { to { background-position: 120px 0; } }
.chequer-strip {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background-image:
    linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%),
    linear-gradient(45deg, #eee 25%, #111 25%, #111 75%, #eee 75%);
  background-size: 34px 34px; background-position: 0 0, 17px 17px;
  opacity: 0.6;
  animation: chequerMove 1.4s linear infinite;
}
@keyframes chequerMove { to { background-position: 34px 0, 51px 17px; } }
.start-lights { position: absolute; right: clamp(20px, 8vw, 120px); top: 16vh; display: flex; gap: 10px; }
.start-lights span {
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,70,70,0.18); border: 1px solid rgba(255,70,70,0.35);
}
.panel.in .start-lights span { animation: lightOn .4s ease forwards; }
.panel.in .start-lights span:nth-child(1) { animation-delay: .3s; }
.panel.in .start-lights span:nth-child(2) { animation-delay: .7s; }
.panel.in .start-lights span:nth-child(3) { animation-delay: 1.1s; }
.panel.in .start-lights span:nth-child(4) { animation-delay: 1.5s; }
.panel.in .start-lights span:nth-child(5) { animation-delay: 1.9s; }
@keyframes lightOn { to { background: var(--c-prix); box-shadow: 0 0 18px var(--c-prix); } }

/* ─────────── NEO CITY SCENE ─────────── */
.p-city .scene { perspective: 420px; background: radial-gradient(ellipse at 50% 64%, #2a0833 0%, transparent 70%); }
.city-floor {
  position: absolute; left: -15%; right: -15%; bottom: -12%; height: 58%;
  background-image:
    linear-gradient(90deg, transparent 49.4%, rgba(255,0,122,0.5) 49.4%, rgba(255,0,122,0.5) 50.6%, transparent 50.6%),
    linear-gradient(180deg, transparent 49.4%, rgba(0,240,255,0.4) 49.4%, rgba(0,240,255,0.4) 50.6%, transparent 50.6%);
  background-size: 56px 56px;
  transform: rotateX(72deg); transform-origin: 50% 0;
  animation: floorRun 3.4s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255,0,122,0.5));
  -webkit-mask: linear-gradient(180deg, transparent, #000 30%);
  mask: linear-gradient(180deg, transparent, #000 30%);
}
@keyframes floorRun { to { background-position: 0 0, 0 56px; } }
.city-sun {
  position: absolute; left: 50%; top: 18%; width: clamp(140px, 22vmin, 240px); height: clamp(140px, 22vmin, 240px);
  transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, #ff007a, #ffb700);
  box-shadow: 0 0 100px rgba(255,0,122,0.45);
  clip-path: polygon(0 0, 100% 0, 100% 34%, 0 34%, 0 42%, 100% 42%, 100% 50%, 0 50%, 0 58%, 100% 58%, 100% 66%, 0 66%, 0 100%, 100% 100%);
  opacity: 0.85;
}
@media (max-width: 900px) { .city-sun { top: 10%; opacity: 0.5; } }

/* ─────────── MATRIX SCENE ─────────── */
#matrix-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }
.p-matrix .scene::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,3,10,0.85), transparent 26%, transparent 70%, rgba(4,3,10,0.9)),
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,0.28) 3px 4px);
}
.p-matrix .content {
  background: rgba(2, 8, 4, 0.55); border: 1px solid rgba(0,255,102,0.2);
  border-radius: 20px; padding: clamp(26px, 4vw, 50px);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ─────────── SENTIMENT SCENE ─────────── */
.tug {
  margin-top: 42px; max-width: 760px;
}
.tug-bar {
  position: relative; height: 18px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
}
.tug-bar .bull-side {
  position: absolute; left: 0; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(90deg, rgba(0,255,136,0.25), var(--c-sentiment));
  box-shadow: 0 0 24px rgba(0,255,136,0.4);
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}
.tug-bar .bear-side {
  position: absolute; right: 0; top: 0; bottom: 0;
  background: linear-gradient(270deg, rgba(255,56,102,0.3), #ff3866);
  box-shadow: 0 0 24px rgba(255,56,102,0.4);
  width: 50%;
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
}
.panel.in .tug-bar .bull-side { width: var(--bull, 58%); }
.panel.in .tug-bar .bear-side { width: calc(100% - var(--bull, 58%)); }
.tug-labels {
  display: flex; justify-content: space-between; margin-top: 14px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
}
.tug-labels .bulls { color: var(--c-sentiment); }
.tug-labels .bears { color: #ff3866; }

/* ─────────── ICHIMOKU SCENE ─────────── */
.ichi-svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 56%; }
.ichi-svg .kumo { opacity: 0.9; }
.ichi-svg .price-line {
  fill: none; stroke: var(--c-ichimoku); stroke-width: 2.4;
  filter: drop-shadow(0 0 8px rgba(224,178,74,0.55));
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
}
.panel.in .ichi-svg .price-line { animation: ichiDraw 3s ease forwards; }
@keyframes ichiDraw { to { stroke-dashoffset: 0; } }
.ichi-kanji {
  position: absolute; right: clamp(20px, 7vw, 100px); top: 14vh;
  writing-mode: vertical-rl; font-size: clamp(34px, 5vw, 64px);
  color: rgba(224,178,74,0.28); letter-spacing: 0.3em;
  font-family: serif;
}

/* ─────────── FINAL PANEL ─────────── */
.p-end { display: block; padding-top: 130px; padding-bottom: 60px; min-height: 100vh; }
.end-grid {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px);
  align-items: start; max-width: 1180px; margin: 0 auto;
}
.p-end .kicker { color: var(--ink-mute); }
.p-end h2 { font-size: clamp(40px, 6vw, 92px); }
.p-end h2 em {
  font-style: normal;
  background: linear-gradient(95deg, #22d3ee, #a78bfa 55%, #ff5470);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.op-card {
  display: block; text-decoration: none; color: inherit;
  margin-top: 34px; border-radius: 22px; padding: 28px;
  background: rgba(12, 11, 22, 0.65); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .35s, border-color .35s, box-shadow .35s;
  position: relative; overflow: hidden;
}
.op-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, #22d3ee, #a78bfa 50%, #ff5470);
}
.op-card:hover {
  transform: translateY(-4px); border-color: rgba(167,139,250,0.45);
  box-shadow: 0 30px 70px -28px rgba(0,0,0,0.9), 0 0 60px -28px rgba(167,139,250,0.6);
}
.op-head { display: flex; align-items: center; gap: 16px; }
.op-ava {
  width: 60px; height: 60px; border-radius: 16px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: 22px;
  background:
    radial-gradient(circle at 30% 25%, rgba(167,139,250,0.4), transparent 60%),
    radial-gradient(circle at 75% 80%, rgba(34,211,238,0.35), transparent 60%), #14121f;
  border: 1px solid rgba(255,255,255,0.18);
}
.op-name { font-family: var(--f-display); font-weight: 700; font-size: 19px; }
.op-role { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-top: 5px; }
.op-fields { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.op-fields span {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03);
}
.op-open {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line);
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink);
}
.op-open .arr { transition: transform .3s; }
.op-card:hover .op-open .arr { transform: translateX(6px); }

/* bitcoffee */
.coffee-box {
  border-radius: 22px; padding: 28px;
  background: rgba(12, 11, 22, 0.65); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.coffee-box h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em;
}
.coffee-box h3 em {
  font-style: normal;
  background: linear-gradient(90deg, #ffd86b, var(--c-galaxy) 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.coffee-box p { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.addr { --chip: #fff; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 14px; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center;
  background: rgba(255,255,255,0.02); transition: border-color .3s; }
.addr:hover { border-color: color-mix(in oklab, var(--chip) 35%, var(--line)); }
.addr-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-family: var(--f-mono); font-weight: 700; font-size: 13px;
  color: #04030a; background: var(--chip); box-shadow: 0 0 14px color-mix(in oklab, var(--chip) 45%, transparent); }
.addr-info { min-width: 0; }
.addr-label { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); }
.addr-label b { color: var(--chip); }
.addr-value { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: all; }
.copy-btn { appearance: none; background: rgba(255,255,255,0.04); color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; cursor: pointer;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s; }
.copy-btn:hover { background: rgba(255,255,255,0.08); }
.copy-btn.copied { color: var(--c-bubbles); border-color: rgba(52,224,161,0.4); }

.end-footer {
  position: relative; z-index: 3;
  max-width: 1180px; margin: 60px auto 0; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-mute);
}
.end-footer a { color: var(--ink-soft); text-decoration: none; }
.end-footer a:hover { color: var(--ink); }

/* other versions link */
.alt-versions { display: inline-flex; gap: 14px; }

/* ─────────── SP500 GALAXY SCENE ─────────── */
.gx-sun.sp {
  background: radial-gradient(circle at 36% 32%, #eaf4ff, #5b9cff 52%, #16307a);
  box-shadow: 0 0 90px 16px rgba(91,156,255,0.42), 0 0 220px 50px rgba(91,156,255,0.15);
}
.gx-sun.sp::after {
  content: 'S&P'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
  color: rgba(10,16,40,0.65);
}
/* UFO easter-egg */
.ufo {
  position: absolute; top: 20%; left: -180px; width: 120px; height: 56px; z-index: 1;
  animation: ufoFly 16s ease-in-out infinite; animation-delay: 5s;
  pointer-events: none;
}
.ufo .saucer {
  position: absolute; left: 0; bottom: 12px; width: 120px; height: 30px; border-radius: 50%;
  background: linear-gradient(180deg, #b9c9da 0%, #57708a 55%, #2b3a4c 100%);
  box-shadow: 0 0 26px rgba(120,210,255,0.55), inset 0 -3px 6px rgba(0,0,0,0.4);
}
.ufo .dome {
  position: absolute; left: 38px; top: 0; width: 44px; height: 30px; border-radius: 50% 50% 0 0;
  background: radial-gradient(circle at 40% 28%, #e6f4ff, #79b6e8 70%, #4a7fb5);
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.5);
}
.ufo .lights { position: absolute; left: 12px; bottom: 10px; right: 12px; display: flex; justify-content: space-between; }
.ufo .lights span { width: 7px; height: 7px; border-radius: 50%; background: #8fffd0; box-shadow: 0 0 8px #8fffd0;
  animation: ufoBlink 0.9s steps(1) infinite; }
.ufo .lights span:nth-child(2) { background: #ffd86b; box-shadow: 0 0 8px #ffd86b; animation-delay: .3s; }
.ufo .lights span:nth-child(3) { background: #ff7eb6; box-shadow: 0 0 8px #ff7eb6; animation-delay: .6s; }
.ufo .beam {
  position: absolute; left: 40px; top: 38px; width: 40px; height: 80px;
  background: linear-gradient(180deg, rgba(140,255,210,0.35), rgba(140,255,210,0));
  clip-path: polygon(28% 0, 72% 0, 100% 100%, 0% 100%);
}
@keyframes ufoBlink { 50% { opacity: 0.25; } }
@keyframes ufoFly {
  0%   { transform: translate(0, 0); opacity: 0; }
  6%   { opacity: 1; }
  46%  { transform: translate(46vw, -22px); opacity: 1; }
  50%  { transform: translate(50vw, -16px) scale(1.04); opacity: 1; }
  54%  { transform: translate(54vw, -22px); opacity: 1; }
  94%  { opacity: 1; }
  100% { transform: translate(112vw, -44px); opacity: 0; }
}
@media (max-width: 900px) { .ufo { transform: scale(0.8); } }

/* ─────────── COFFEE CUP + SMOKE ─────────── */
.coffee-head { display: flex; align-items: center; gap: 14px; }
.coffee-cup { position: relative; width: 46px; height: 44px; flex: none; }
.coffee-cup .cup {
  position: absolute; bottom: 0; left: 2px; width: 34px; height: 24px;
  border-radius: 4px 4px 11px 11px;
  background: linear-gradient(180deg, #4a352a, #2a1c15);
  border: 2px solid #6b4a39; border-top: none;
}
.coffee-cup .cup::before {
  content: ''; position: absolute; top: -3px; left: -2px; right: -2px; height: 6px;
  border-radius: 50%; background: radial-gradient(ellipse at 40% 40%, #6b4631, #2c1a11);
}
.coffee-cup .handle {
  position: absolute; right: 0; bottom: 6px; width: 12px; height: 15px;
  border: 2px solid #6b4a39; border-left: none; border-radius: 0 9px 9px 0;
}
.coffee-cup .smoke {
  position: absolute; bottom: 22px; width: 5px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,0.5); filter: blur(3px); opacity: 0;
}
.coffee-cup .smoke.s1 { left: 10px; animation: smoke 3.4s ease-in-out infinite; }
.coffee-cup .smoke.s2 { left: 17px; animation: smoke 3.4s ease-in-out infinite; animation-delay: 1.1s; }
.coffee-cup .smoke.s3 { left: 24px; animation: smoke 3.4s ease-in-out infinite; animation-delay: 2.2s; }
@keyframes smoke {
  0%   { opacity: 0; transform: translateY(4px) translateX(0) scale(0.8); }
  25%  { opacity: 0.35; }
  60%  { opacity: 0.2; transform: translateY(-12px) translateX(-3px) scale(1.3); }
  100% { opacity: 0; transform: translateY(-24px) translateX(2px) scale(1.7); }
}
.coffee-box h3 { margin: 0; }
@media (prefers-reduced-motion: reduce) { .coffee-cup .smoke { display: none; } }

/* ─────────── PROGRESS BAR ─────────── */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
  pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #f7931a, #22d3ee 25%, #34e0a1 45%, #ff007a 70%, #ffc94d);
  box-shadow: 0 0 12px color-mix(in oklab, var(--acc, #f7931a) 60%, transparent);
  transition: width .12s linear;
}

/* ─────────── ABUNDÂNCIA 888 SCENE ─────────── */
.ab-rays {
  position: absolute; left: 68%; top: 50%; width: 180vmax; height: 180vmax;
  transform: translate(-50%, -50%); mix-blend-mode: screen;
  background: repeating-conic-gradient(from 0deg, rgba(255,201,77,0.10) 0deg 6deg, transparent 6deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 56%);
          mask-image: radial-gradient(circle, #000 0%, transparent 56%);
  animation: abSpin 80s linear infinite;
}
@keyframes abSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.ab-halo {
  position: absolute; left: 68%; top: 50%; width: 74vmin; height: 74vmin;
  transform: translate(-50%, -50%); mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,243,196,0.45) 0%, rgba(255,201,77,0.20) 30%, transparent 65%);
  animation: abPulse 7s ease-in-out infinite;
}
@keyframes abPulse { 50% { transform: translate(-50%, -50%) scale(1.16); opacity: 0.85; } }
.ab-eight {
  position: absolute; left: 68%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(120px, 24vmin, 280px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,216,107,0.55);
  text-shadow: 0 0 70px rgba(255,179,0,0.35);
  animation: abFloat 9s ease-in-out infinite;
  user-select: none;
}
@keyframes abFloat { 50% { transform: translate(-50%, -55%); } }
.p-abund h2 .ghost { -webkit-text-stroke-color: rgba(255,201,77,0.7); }
@media (max-width: 900px) { .ab-rays, .ab-halo, .ab-eight { left: 50%; opacity: 0.45; } }

/* ─────────── CV VARIANT LINK ─────────── */
.cv-alt {
  display: flex; align-items: center; gap: 14px;
  margin-top: 14px; padding: 16px 20px; border-radius: 16px;
  text-decoration: none; color: var(--ink-soft);
  border: 1px dashed var(--line); background: rgba(12, 11, 22, 0.45);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, background .3s, color .3s;
}
.cv-alt:hover { border-color: rgba(52,231,255,0.5); background: rgba(52,231,255,0.05); color: var(--ink); }
.cv-alt .led { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #34e7ff; box-shadow: 0 0 10px #34e7ff; animation: cvBlink 2s infinite; }
@keyframes cvBlink { 50% { opacity: 0.25; } }
.cv-alt b { color: #34e7ff; font-weight: 600; }
.cv-alt .arr { margin-left: auto; transition: transform .3s; }
.cv-alt:hover .arr { transform: translateX(5px); }

/* ─────────── RESPONSIVE / MOTION ─────────── */
@media (max-width: 900px) {
  .end-grid { grid-template-columns: 1fr; }
  .bignum { opacity: 0.6; }
  .btc-mini { display: none; }
}
@media (max-width: 640px) {
  .panel { padding-left: 22px; padding-right: 22px; }
  .panel h2 .ghost { -webkit-text-stroke-width: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .content > * { opacity: 1; transform: none; }
}
