/* ═══════════════════════════════════════════════════════════════════════════
   THE BITCOIN DIMENSION — index-theme.css
   A portal to another dimension where Bitcoin IS the universe.
   Companion stylesheet for index.html. Dark, cinematic, alive.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ───────────────────────────────────────────────────────── */
:root {
  --btc:        #F7931A;
  --btc-hot:    #FFB347;
  --btc-deep:   #C96A0E;
  --cyan:       #00F0FF;
  --violet:     #7B2FFF;
  --gold:       #FFD700;
  --green:      #00FF88;
  --pink:       #FF69B4;
  --red:        #FF3355;

  --void:       #02030B;
  --void-2:     #060814;
  --void-3:     #0B0E22;
  --panel:      rgba(12, 16, 38, 0.72);
  --panel-glass:rgba(10, 14, 34, 0.55);
  --line:       rgba(0, 240, 255, 0.16);
  --line-soft:  rgba(120, 140, 220, 0.14);

  --ink:        #EAEDFA;
  --ink-dim:    #9AA4C8;
  --ink-faint:  #5A6488;

  --glow-btc:   0 0 28px rgba(247, 147, 26, 0.55);
  --glow-cyan:  0 0 24px rgba(0, 240, 255, 0.45);

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display:'Orbitron', sans-serif;
  --font-body:   'Rajdhani', 'Inter', sans-serif;
  --font-pixel:  'Press Start 2P', monospace;
  --font-mono:   'Rajdhani', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }

::selection { background: var(--btc); color: var(--void); }

/* Deep-space gradient wash + faint grid lattice */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 18% 6%, rgba(123,47,255,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 65% 70% at 86% 94%, rgba(0,240,255,0.16) 0%, transparent 58%),
    radial-gradient(ellipse 58% 46% at 60% 32%, rgba(247,147,26,0.20) 0%, transparent 52%),
    linear-gradient(165deg, #02030B 0%, #060814 48%, #0B0E22 100%);
  background-attachment: fixed;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(0,240,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 24%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 95% 75% at 50% 24%, #000 0%, transparent 80%);
}

#bgCanvas {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.92;
  will-change: transform;
  transform: translateZ(0);
}

/* Accessibility helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 99999;
  background: var(--void-3); color: var(--cyan);
  padding: 10px 18px; border-radius: 8px;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  text-decoration: none; border: 1px solid var(--cyan);
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   1. BOOT SEQUENCE — CINEMATIC TERMINAL
   ═══════════════════════════════════════════════════════════════════════════ */
#boot {
  position: fixed; inset: 0; z-index: 100000;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 26px; padding: 24px;
  overflow: hidden;
}

/* Warp starfield canvas + radial glow behind the ASCII */
#boot-stars {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; pointer-events: none;
}
.boot-glow {
  position: absolute; z-index: 1; pointer-events: none;
  width: 340px; height: 340px; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(247,147,26,0.10) 0%, transparent 70%);
  animation: bootGlowPulse 3s ease-in-out infinite;
}
@keyframes bootGlowPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1);    opacity: .7; }
  50%     { transform: translate(-50%,-50%) scale(1.18); opacity: 1;  }
}

/* Glass content panel — keeps ASCII/terminal/button readable above the rings */
.boot-panel {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  width: min(520px, 90vw);
  background: rgba(0,3,14,0.72);
  border: 1px solid rgba(247,147,26,0.14);
  border-radius: 20px;
  padding: clamp(22px,5vw,38px) clamp(18px,6vw,36px);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* ENTER THE DIMENSION portal button */
#boot-enter {
  position: relative; z-index: 3;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(0.8rem, 3.8vw, 1rem); letter-spacing: .15em;
  padding: 16px 32px; border-radius: 40px; cursor: pointer;
  width: min(320px, 100%);
  background: linear-gradient(135deg, rgba(247,147,26,0.15), rgba(0,240,255,0.08));
  border: 1.5px solid var(--btc); color: var(--btc);
  text-shadow: 0 0 20px rgba(247,147,26,0.6);
  box-shadow: 0 0 40px rgba(247,147,26,0.3), 0 0 0 0 rgba(247,147,26,0.4);
  opacity: 0; transform: translateY(16px) scale(0.95); pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out),
              box-shadow .3s, border-color .3s;
}
#boot-enter.show {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
  animation: bootEnterGlow 2.4s ease-in-out infinite;
}
#boot-enter:hover {
  box-shadow: 0 0 60px rgba(247,147,26,0.6), 0 0 0 0 rgba(247,147,26,0.4);
  border-color: var(--btc-hot); transform: scale(1.03);
}
@keyframes bootEnterGlow {
  0%,100% { box-shadow: 0 0 40px rgba(247,147,26,0.30), 0 0 0 0  rgba(247,147,26,0.5); }
  50%     { box-shadow: 0 0 60px rgba(247,147,26,0.55), 0 0 0 22px rgba(247,147,26,0); }
}
#boot-enter.explode { animation: bootExplode .6s var(--ease-out) forwards; }
@keyframes bootExplode {
  0%   { transform: scale(1);   opacity: 1;   filter: brightness(1); }
  25%  { transform: scale(3);   opacity: 1;   filter: brightness(3); border-radius: 50%; }
  55%  { transform: scale(14);  opacity: 0.7; filter: brightness(6); border-radius: 0; }
  100% { transform: scale(22);  opacity: 0;   filter: brightness(1); border-radius: 0; }
}

/* ── Portal orbit rings (visible while waiting for user click) ───────────── */
#boot-rings {
  position: absolute; z-index: 2;
  top: 50%; left: 50%;
  pointer-events: none; opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
#boot-rings.show { opacity: 1; }
.br {
  position: absolute; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.br1 {
  width: clamp(160px,38vmin,300px); height: clamp(160px,38vmin,300px);
  border: 1.5px solid rgba(247,147,26,0.55);
  box-shadow: 0 0 16px rgba(247,147,26,0.1), inset 0 0 16px rgba(247,147,26,0.05);
  animation: brSpin 7s linear infinite;
}
.br2 {
  width: clamp(230px,52vmin,400px); height: clamp(230px,52vmin,400px);
  border: 1px dashed rgba(0,240,255,0.3);
  animation: brSpin 13s linear infinite reverse;
}
.br3 {
  width: clamp(300px,66vmin,510px); height: clamp(300px,66vmin,510px);
  border: 1px solid rgba(247,147,26,0.18);
  animation: brSpin 20s linear infinite;
}
.br-dot {
  position: absolute; border-radius: 50%;
  width: 8px; height: 8px; top: -4px; left: 50%; margin-left: -4px;
}
.br1 .br-dot { background: var(--btc); box-shadow: 0 0 14px var(--btc), 0 0 28px rgba(247,147,26,0.5); }
.br2 .br-dot { background: var(--cyan); box-shadow: 0 0 12px var(--cyan), 0 0 22px rgba(0,240,255,0.5); width:6px; height:6px; top:-3px; margin-left:-3px; }
.br3 .br-dot { background: rgba(247,147,26,0.8); box-shadow: 0 0 10px rgba(247,147,26,0.6); width:5px; height:5px; top:-2.5px; margin-left:-2.5px; }
@keyframes brSpin {
  0%   { transform: translate(-50%,-50%) rotate(0deg); }
  100% { transform: translate(-50%,-50%) rotate(360deg); }
}

/* Rings accelerate on portal activation */
#boot.portal-go .br1 { animation-duration: 0.22s; border-color: rgba(247,147,26,0.95); }
#boot.portal-go .br2 { animation-duration: 0.16s; border-color: rgba(0,240,255,0.7); }
#boot.portal-go .br3 { animation-duration: 0.28s; border-color: rgba(247,147,26,0.6); }

/* Flash burst overlay */
#boot-flash {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: radial-gradient(circle at center,
    white 0%, rgba(247,147,26,0.95) 12%, rgba(0,240,255,0.6) 32%, transparent 62%);
  opacity: 0;
}
#boot.portal-go #boot-flash {
  animation: bootFlashBurst 1s var(--ease-out) forwards;
}
@keyframes bootFlashBurst {
  0%   { opacity: 0;   transform: scale(0.15); }
  10%  { opacity: 1;   transform: scale(0.7);  }
  30%  { opacity: 0.85; transform: scale(1.1); }
  100% { opacity: 0;   transform: scale(2.8);  }
}

/* Portal warp exit */
#boot.gone {
  animation: portalWarpExit 3.2s linear forwards;
  z-index: 100001; pointer-events: none;
}
@keyframes portalWarpExit {
  /* ── Implosion phase: screen slowly pulled toward singularity ── */
  0%  {
    opacity: 1; transform: scale(1);
    clip-path: circle(150% at 50% 50%);
    filter: brightness(1) hue-rotate(0deg);
    animation-timing-function: cubic-bezier(0.42, 0, 0.9, 0.55);
  }
  18% {
    opacity: 1; transform: scale(1.02);
    clip-path: circle(65% at 50% 50%);
    filter: brightness(1.3) hue-rotate(10deg);
    animation-timing-function: cubic-bezier(0.42, 0, 0.9, 0.55);
  }
  36% {
    opacity: 1; transform: scale(1.05);
    clip-path: circle(18% at 50% 50%);
    filter: brightness(3) hue-rotate(30deg);
    animation-timing-function: cubic-bezier(0.6, 0, 1, 0.6);
  }
  48% {
    opacity: 1; transform: scale(1.08);
    clip-path: circle(2.5% at 50% 50%);
    filter: brightness(8) hue-rotate(55deg);
    animation-timing-function: cubic-bezier(0.6, 0, 1, 0.6);
  }
  /* ── Singularity ── */
  50% {
    opacity: 1; transform: scale(1.08);
    clip-path: circle(0.2% at 50% 50%);
    filter: brightness(18) hue-rotate(80deg);
    animation-timing-function: steps(1);
  }
  /* ── Portal blast open ── */
  51% {
    opacity: 1; transform: scale(1.05);
    clip-path: circle(200% at 50% 50%);
    filter: brightness(20) hue-rotate(90deg);
    animation-timing-function: ease-out;
  }
  /* ── Ripple shockwave — clip boundary oscillates like a wave ── */
  59% { opacity: 0.95; transform: scale(1.03); clip-path: circle(146% at 50% 50%); filter: brightness(7); }
  66% { opacity: 0.82; transform: scale(1.01); clip-path: circle(170% at 50% 50%); filter: brightness(3.5); }
  73% { opacity: 0.60; transform: scale(1);    clip-path: circle(152% at 50% 50%); filter: brightness(2); }
  80% { opacity: 0.36;                         clip-path: circle(164% at 50% 50%); filter: brightness(1.5); }
  88% { opacity: 0.14;                         clip-path: circle(156% at 50% 50%); filter: brightness(1.2); }
  100%{ opacity: 0;                            clip-path: circle(160% at 50% 50%); filter: brightness(1); }
}

/* Phase 1 — scanline sweep */
#boot .scan {
  position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan) 35%, var(--btc) 65%, transparent);
  box-shadow: 0 0 30px var(--cyan), 0 0 60px rgba(0,240,255,0.5);
  filter: blur(0.5px);
  animation: scanSweep 1.2s var(--ease-out) forwards;
}
@keyframes scanSweep {
  0%   { top: -3%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 103%; opacity: 0; }
}

/* CRT vignette + flicker overlay */
#boot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.28) 2px 4px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.85) 100%);
  animation: crtFlicker 4s steps(60) infinite;
  mix-blend-mode: multiply;
}
@keyframes crtFlicker { 0%,100%{opacity:.9} 50%{opacity:1} 97%{opacity:.78} }

.boot-ascii {
  position: relative; z-index: 2;
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(9.5px, 3vmin, 13px); line-height: 1.05;
  color: var(--btc);
  text-shadow: 0 0 12px rgba(247,147,26,0.7);
  white-space: pre; opacity: 0;
  animation: bootFadeIn .5s ease 1.2s forwards;
  letter-spacing: 1px;
}
.boot-terminal {
  position: relative; z-index: 2;
  width: 100%;
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(.78rem, 3.2vw, 1rem);
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,240,255,0.5);
  min-height: 132px;
}
.boot-terminal .line { display: block; opacity: 0; white-space: pre-wrap; }
.boot-terminal .line .ok { color: var(--green); float: right; }
.boot-terminal .line .hl { color: var(--btc); }
.boot-cursor {
  display: inline-block; width: 10px; height: 1.05em;
  background: var(--cyan); vertical-align: text-bottom;
  margin-left: 2px; box-shadow: 0 0 10px var(--cyan);
  animation: blink 0.8s steps(2) infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes bootFadeIn { to { opacity: 1; } }

#boot-skip {
  position: absolute; top: 28px; right: 28px; z-index: 4;
  background: rgba(0,240,255,0.06);
  border: 1px solid rgba(0,240,255,0.4);
  color: var(--cyan);
  font-family: var(--font-display); font-size: .66rem; font-weight: 700;
  letter-spacing: .14em;
  padding: 10px 18px; border-radius: 7px; cursor: pointer;
  opacity: 0; transition: background .2s, transform .2s;
  animation: bootFadeIn .4s ease .6s forwards;
}
#boot-skip:hover { background: rgba(0,240,255,0.16); transform: translateX(-3px); }

#boot .boot-hint {
  position: relative; z-index: 3;
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--ink-faint); letter-spacing: .1em;
  text-align: center;
  opacity: 0; transition: opacity .5s var(--ease-out);
  margin-top: -8px;
}
#boot .boot-hint.show { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   2. NAVIGATION — THE COMMAND BRIDGE
   ═══════════════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 9000;
  background: rgba(4, 6, 18, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease-out), background .3s;
}
.nav.shrunk {
  background: rgba(3, 4, 12, 0.94);
}
.nav.shrunk .nav-inner { height: 52px; }
.nav.shrunk .nav-rain { opacity: 0.5; }

.nav-rain {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.nav-rain canvas { width: 100%; height: 100%; }

.nav-inner {
  max-width: 1220px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; transition: height .3s var(--ease-out);
}
.nav-logo {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.02rem; letter-spacing: .12em;
  color: var(--btc); text-decoration: none;
  text-shadow: var(--glow-btc); white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo .brk { color: var(--cyan); text-shadow: var(--glow-cyan); opacity: .9; }
.nav-logo:hover { filter: brightness(1.15); }

.nav-marquee {
  flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.nav-marquee .track {
  display: inline-flex; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700;
  font-size: .68rem; letter-spacing: .22em;
  color: var(--ink-dim);
  animation: marquee 26s linear infinite;
}
.nav-marquee .track span { padding: 0 2px; }
.nav-marquee .track b { color: var(--btc); font-weight: 900; }
@keyframes marquee { to { transform: translateX(-50%); } }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-btn {
  width: 40px; height: 40px; border-radius: 9px;
  background: rgba(0,240,255,0.06);
  border: 1px solid rgba(0,240,255,0.22);
  color: var(--ink); cursor: pointer;
  display: grid; place-items: center; font-size: 1rem;
  transition: background .2s, transform .2s, border-color .2s;
}
.nav-btn:hover { background: rgba(247,147,26,0.14); border-color: var(--btc); transform: translateY(-2px); }

#hamburger { display: none; }
#hamburger .bar {
  display: block; width: 19px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}
#hamburger .bar + .bar { margin-top: 4px; }
#hamburger.open .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#hamburger.open .bar:nth-child(2) { opacity: 0; }
#hamburger.open .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Pulsing gradient line beneath nav */
.nav-pulse {
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--btc), var(--cyan), var(--violet), var(--btc));
  background-size: 300% 100%;
  animation: huePulse 7s linear infinite;
  box-shadow: 0 0 12px rgba(0,240,255,0.4);
}
@keyframes huePulse { to { background-position: 300% 0; } }

/* Mobile drawer */
#drawer {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(3, 4, 12, 0.97);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  display: flex; flex-direction: column; padding: 22px;
  transform: translateX(100%);
  transition: transform .35s var(--ease-spring);
}
#drawer.open { transform: translateX(0); }
#drawer .drawer-close {
  align-self: flex-end;
  background: rgba(0,240,255,0.08); border: 1px solid rgba(0,240,255,0.3);
  color: var(--cyan); font-family: var(--font-display); font-size: .62rem;
  font-weight: 700; letter-spacing: .12em;
  padding: 11px 18px; border-radius: 8px; cursor: pointer;
}
#drawer .drawer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 26px; overflow-y: auto;
}
#drawer a {
  text-decoration: none; color: var(--ink-dim);
  font-family: var(--font-display); font-weight: 700;
  font-size: .76rem; letter-spacing: .06em;
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(12,16,38,0.5);
  transition: color .18s, border-color .18s, background .18s;
}
#drawer a:hover { color: var(--btc); border-color: var(--btc); background: rgba(247,147,26,0.08); }

/* ═══════════════════════════════════════════════════════════════════════════
   3. HERO — THE ARCADE DIMENSION PORTAL
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  max-width: 1320px; margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 56px) 80px;
}
#starfield {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

/* Left column — headline */
.hero-head { text-align: right; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700;
  font-size: .72rem; letter-spacing: .34em;
  color: var(--cyan); text-shadow: var(--glow-cyan);
  margin-bottom: 14px;
}
.hero-kicker::before { content: ''; width: 26px; height: 1px; background: var(--cyan); box-shadow: var(--glow-cyan); }
.hero-line { font-family: var(--font-display); font-weight: 900; line-height: 0.96; }
.hero-line.sm {
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  color: var(--ink-dim); letter-spacing: .12em;
}
.hero-line.big {
  font-size: clamp(3.4rem, 10vw, 7.4rem);
  background: linear-gradient(135deg, var(--btc-hot) 0%, var(--btc) 40%, var(--btc-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 32px rgba(247,147,26,0.45));
  margin: 4px 0;
}
.hero-line.mid {
  font-size: clamp(2rem, 5.6vw, 3.9rem);
  color: var(--ink); letter-spacing: .06em;
}
.hero-sub {
  margin-top: 20px; font-size: clamp(.95rem, 1.8vw, 1.12rem);
  color: var(--ink-dim); font-weight: 500; line-height: 1.5;
  max-width: 380px; margin-left: auto;
}
.hero-cta { display: flex; gap: 14px; justify-content: flex-end; margin-top: 28px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-display); font-weight: 700;
  font-size: .82rem; letter-spacing: .08em;
  padding: 15px 26px; border-radius: 12px;
  text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  transition: transform .2s var(--ease-out), box-shadow .25s, background .2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--btc-hot), var(--btc));
  color: #1a0d00;
  box-shadow: 0 8px 28px rgba(247,147,26,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
  animation: ctaPulse 2.6s var(--ease-out) infinite;
}
@keyframes ctaPulse {
  0%,100% { box-shadow: 0 8px 28px rgba(247,147,26,0.4), 0 0 0 0 rgba(247,147,26,0.5); }
  50%     { box-shadow: 0 8px 36px rgba(247,147,26,0.6), 0 0 0 12px rgba(247,147,26,0); }
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); }
.btn-ghost {
  background: rgba(0,240,255,0.05);
  border-color: var(--cyan); color: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0,240,255,0.3);
}
.btn-ghost:hover { transform: translateY(-3px); background: rgba(0,240,255,0.14); box-shadow: var(--glow-cyan); }

/* Center column — the portal */
.portal {
  position: relative;
  width: clamp(220px, 30vw, 380px);
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.portal-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
}
.portal-ring.r1 {
  border-color: rgba(247,147,26,0.55);
  box-shadow: 0 0 50px rgba(247,147,26,0.5), inset 0 0 60px rgba(247,147,26,0.28);
  animation: spin 18s linear infinite;
}
.portal-ring.r2 {
  inset: 11%;
  border: 1px dashed rgba(0,240,255,0.5);
  box-shadow: inset 0 0 40px rgba(0,240,255,0.2);
  animation: spin 26s linear infinite reverse;
}
.portal-ring.r3 {
  inset: 22%;
  border: 1px solid rgba(123,47,255,0.55);
  box-shadow: 0 0 30px rgba(123,47,255,0.4);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.portal-core {
  position: absolute; inset: 30%; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, rgba(255,179,71,0.95), rgba(247,147,26,0.5) 45%, rgba(11,14,34,0.1) 80%);
  box-shadow: 0 0 70px rgba(247,147,26,0.7), inset 0 0 40px rgba(255,179,71,0.6);
  animation: corePulse 3.4s var(--ease-out) infinite;
}
@keyframes corePulse { 0%,100%{transform:scale(1);opacity:.95} 50%{transform:scale(1.07);opacity:1} }
.portal-btc {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(4.6rem, 12vw, 8rem);
  color: #fff;
  text-shadow: 0 0 30px rgba(255,255,255,0.9), 0 0 60px var(--btc);
  animation: btcSpin 12s var(--ease-out) infinite;
}
@keyframes btcSpin {
  0%   { transform: perspective(600px) rotateY(0deg); }
  50%  { transform: perspective(600px) rotateY(180deg); }
  100% { transform: perspective(600px) rotateY(360deg); }
}

/* Right column — stat pills */
.hero-stats { display: flex; flex-direction: column; gap: 14px; max-width: 220px; }
.stat-pill {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease-out), border-color .25s;
}
.stat-pill::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--btc); box-shadow: var(--glow-btc);
}
.stat-pill:hover { transform: translateX(6px); border-color: var(--btc); }
.stat-pill .num {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.7rem; color: var(--btc); line-height: 1;
}
.stat-pill .lbl {
  font-family: var(--font-display); font-weight: 700;
  font-size: .62rem; letter-spacing: .16em;
  color: var(--ink-dim); margin-top: 6px;
}
.stat-pill.cyan::before { background: var(--cyan); box-shadow: var(--glow-cyan); }
.stat-pill.cyan .num { color: var(--cyan); }
.stat-pill.violet::before { background: var(--violet); box-shadow: 0 0 22px rgba(123,47,255,0.6); }
.stat-pill.violet .num { color: #b08bff; }

/* Scroll arrow */
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: .58rem; font-weight: 700;
  letter-spacing: .22em; color: var(--ink-faint);
  z-index: 2;
}
.scroll-cue .chev {
  font-size: 1.2rem; color: var(--cyan);
  animation: bob 1.8s var(--ease-out) infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0);opacity:.4} 50%{transform:translateY(8px);opacity:1} }

/* ═══════════════════════════════════════════════════════════════════════════
   4. STATS TICKER
   ═══════════════════════════════════════════════════════════════════════════ */
.ticker {
  background: linear-gradient(180deg, rgba(8,10,24,0.95), rgba(4,5,14,0.95));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 14px 0;
}
.ticker .track {
  display: inline-flex; white-space: nowrap;
  font-family: var(--font-display); font-weight: 900;
  font-size: .92rem; letter-spacing: .14em;
  color: var(--btc); text-shadow: var(--glow-btc);
  animation: marquee 32s linear infinite;
}
.ticker .track .dot { color: var(--cyan); padding: 0 14px; text-shadow: var(--glow-cyan); }

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION SCAFFOLD
   ═══════════════════════════════════════════════════════════════════════════ */
.section { max-width: 1220px; margin: 0 auto; padding: 84px clamp(20px,4vw,40px); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-eyebrow {
  font-family: var(--font-display); font-weight: 700;
  font-size: .68rem; letter-spacing: .3em;
  color: var(--cyan); text-shadow: var(--glow-cyan);
}
.section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  margin-top: 10px; color: var(--ink);
  letter-spacing: .03em;
}
.section-title .accent {
  background: linear-gradient(135deg, var(--btc-hot), var(--btc));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-desc {
  margin-top: 12px; color: var(--ink-dim);
  font-size: 1.02rem; font-weight: 500;
  max-width: 540px; margin-left: auto; margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. GAME CARDS — ARCADE CABINETS
   ═══════════════════════════════════════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  --accent: var(--btc);
  position: relative;
  display: block; text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 26px 20px 22px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.card::before { /* top accent bar */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transition: box-shadow .3s, height .3s;
}
.card::after { /* scanline sweep on hover */
  content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  opacity: 0; pointer-events: none;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px rgba(0,0,15,0.7), 0 0 30px color-mix(in srgb, var(--accent) 30%, transparent);
}
.card:hover::before { height: 6px; box-shadow: 0 0 26px var(--accent); }
.card:hover::after { animation: cardScan 0.8s var(--ease-out); }
@keyframes cardScan { 0%{top:-40%;opacity:.9} 100%{top:120%;opacity:0} }

.card-emoji {
  font-size: 3rem; text-align: center; line-height: 1;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 60%, transparent));
  transition: transform .3s var(--ease-spring);
}
.card:hover .card-emoji { transform: scale(1.16) translateY(-3px); }
.card-title {
  font-family: var(--font-pixel); font-size: .62rem;
  text-align: center; color: var(--ink);
  margin-top: 16px; line-height: 1.5;
  letter-spacing: .02em;
}
.card-tag {
  text-align: center; font-size: .82rem; font-weight: 600;
  color: var(--ink-faint); margin-top: 6px;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.diff-dots { display: flex; gap: 4px; }
.diff-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-faint); display: block;
}
.diff-dots i.on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.card-score {
  font-family: var(--font-mono); font-weight: 700;
  font-size: .74rem; color: var(--ink-dim);
  letter-spacing: .04em;
}
.card-score.has { color: var(--gold); text-shadow: 0 0 10px rgba(255,215,0,0.5); }
.card-coin {
  margin-top: 14px; text-align: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: .66rem; letter-spacing: .14em;
  color: var(--accent);
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.card:hover .card-coin { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════════════════
   6. HALL OF LEGENDS
   ═══════════════════════════════════════════════════════════════════════════ */
.legends-wrap { position: relative; }
.legends {
  width: 100%; border-collapse: collapse;
  background: var(--panel-glass);
  border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.legends thead th {
  font-family: var(--font-display); font-weight: 700;
  font-size: .68rem; letter-spacing: .14em;
  color: var(--cyan); text-align: left;
  padding: 16px 20px;
  background: rgba(0,240,255,0.05);
  border-bottom: 1px solid var(--line);
}
.legends tbody td {
  font-family: var(--font-mono); font-weight: 600;
  font-size: .92rem; color: var(--ink-dim);
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.legends tbody tr:last-child td { border-bottom: none; }
.legends tbody .rank { color: var(--gold); font-family: var(--font-display); font-weight: 900; }
.legends-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(2,3,11,0.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border-radius: 16px;
}
.legends-badge {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(.9rem, 2.6vw, 1.4rem);
  letter-spacing: .14em; color: var(--btc);
  padding: 20px 36px; border-radius: 14px;
  background: rgba(8,10,24,0.85);
  border: 2px solid var(--btc);
  text-shadow: var(--glow-btc);
  animation: badgePulse 2.4s var(--ease-out) infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(247,147,26,0.5), var(--glow-btc); }
  50%     { box-shadow: 0 0 0 14px rgba(247,147,26,0), var(--glow-btc); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. SATOSHI'S MANIFESTO
   ═══════════════════════════════════════════════════════════════════════════ */
.manifesto {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6,8,20,0.7), rgba(3,4,12,0.9));
  overflow: hidden;
}
.manifesto::before {
  content: ''; position: absolute; inset: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(247,147,26,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,147,26,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent);
}
.manifesto-inner {
  position: relative; max-width: 980px; margin: 0 auto;
  padding: 96px clamp(20px,4vw,40px); text-align: center;
}
.manifesto-quote {
  position: relative; padding-top: 40px;
}
.manifesto-quote::before {
  content: '\201C';
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  font-family: Georgia, serif; font-size: 7rem; line-height: 1;
  color: var(--btc); text-shadow: var(--glow-btc); opacity: .9;
}
.manifesto-quote p {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 3.6vw, 2.2rem);
  line-height: 1.4; color: var(--ink);
}
.manifesto-quote cite {
  display: block; margin-top: 22px;
  font-family: var(--font-mono); font-style: normal;
  font-size: .9rem; letter-spacing: .2em;
  color: var(--btc);
}
.creed {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 56px;
}
.creed-card {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 28px 22px; text-align: center;
  transition: transform .25s var(--ease-out), border-color .25s;
}
.creed-card:hover { transform: translateY(-6px); border-color: var(--btc); }
.creed-card .ic { font-size: 2.2rem; }
.creed-card h3 {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.05rem; letter-spacing: .1em;
  margin-top: 12px; color: var(--btc);
}
.creed-card p { margin-top: 8px; color: var(--ink-dim); font-size: .95rem; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════════════
   8. FOOTER — THE BLOCKCHAIN
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  padding: 72px clamp(20px,4vw,40px) 44px;
  border-top: 1px solid var(--line);
}
.chain {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  max-width: 1100px; margin: 0 auto 44px;
}
.chain-block {
  font-family: var(--font-mono); font-weight: 700;
  font-size: .68rem; letter-spacing: .06em;
  color: var(--ink-dim); text-decoration: none;
  padding: 11px 14px; border-radius: 8px;
  border: 1px solid rgba(247,147,26,0.3);
  background: rgba(12,16,38,0.6);
  box-shadow: 0 0 12px rgba(247,147,26,0.12);
  transition: color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.chain-block:hover {
  color: var(--btc); border-color: var(--btc);
  transform: translateY(-4px);
  box-shadow: 0 0 22px rgba(247,147,26,0.4);
}
.chain-link {
  width: 18px; height: 2px;
  background: linear-gradient(90deg, rgba(247,147,26,0.6), rgba(0,240,255,0.5));
  flex-shrink: 0;
}
.footer-base {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line-soft);
}
.footer-base .copy { font-size: .86rem; color: var(--ink-faint); }
.footer-base .copy b { color: var(--btc); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-family: var(--font-display); font-weight: 700;
  font-size: .68rem; letter-spacing: .1em;
  color: var(--ink-dim); text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--cyan); }

/* Back-to-top */
#to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 8000;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(8,10,24,0.85); border: 1px solid var(--cyan);
  color: var(--cyan); font-size: 1.1rem; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease-spring);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
#to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#to-top:hover { background: rgba(0,240,255,0.16); box-shadow: var(--glow-cyan); }

/* Page-transition veil */
#veil {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--void); opacity: 0; pointer-events: none;
  transition: opacity .24s;
}
#veil.out { opacity: 1; pointer-events: all; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .creed { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-marquee { display: none; }
  #hamburger { display: flex; flex-direction: column; }
  .hero {
    grid-template-columns: 1fr;
    text-align: center; gap: 28px;
    padding-top: 24px;
  }
  .hero-head { text-align: center; order: 2; }
  .hero-sub { margin: 20px auto 0; }
  .hero-cta { justify-content: center; }
  .portal { order: 1; margin: 0 auto; }
  .hero-stats { order: 3; flex-direction: row; max-width: none; flex-wrap: wrap; justify-content: center; }
  .stat-pill { flex: 1; min-width: 130px; }
  .legends thead th:nth-child(5), .legends tbody td:nth-child(5) { display: none; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 20px 14px 18px; }
  .card-emoji { font-size: 2.4rem; }
  .legends thead th:nth-child(4), .legends tbody td:nth-child(4) { display: none; }
  #drawer .drawer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .portal-btc { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
