/* BTCgold — home page only: the vault-door opening and the effects layer.
   Base styles stay in styles.css (shared with /otc/, /pay/ and /news/), so nothing here can change those pages.
   The opening plays once per browser session. It is skipped for reduced motion, deep links (#section), bots,
   and when JavaScript is off. Force it with ?intro=1, switch it off with ?intro=0. */

/* =====================================================================
   1. Vault opening
   Timeline (seconds x --u): reels .25–1.65 · granted 1.75 · wheel 1.8–2.65 · bolts 1.9–2.4 ·
   door swing 2.6–3.85 · rays 2.72– · light bursts out 3.05–3.8 · gold fills the screen 3.2–3.75 ·
   the gold fades and the page appears 3.8–4.5

   Two rules keep it smooth on phones:
   - The overlay is never see-through. The page is first seen when the whole overlay fades, so no page text
     can show behind the door.
   - Every animation here moves only transform or opacity, so the browser runs it off the main thread and it
     does not stutter while the page behind is still loading. No masks, no filters, no per-frame drawing.
   ===================================================================== */
.vault-intro { display: none; }
.vault-intro[hidden] { display: none !important; }
html.intro-on .vault-intro {
  --vi-d: min(74vmin, 820px);
  --u: 1s;
  position: fixed; inset: 0; z-index: 1000; display: block; overflow: hidden; background: #0b0906;
  touch-action: none; cursor: pointer; -webkit-user-select: none; user-select: none;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  animation: vi-out calc(var(--u) * .7) ease-in-out calc(var(--u) * 3.8) forwards, vi-gone 1ms linear calc(var(--u) * 4.5) forwards;
}
@media (max-height: 520px) { html.intro-on .vault-intro { --vi-d: 62vmin; } }
@keyframes vi-out { to { opacity: 0; } }
@keyframes vi-gone { to { visibility: hidden; } }
.vault-intro.vi-leave { animation: vi-leave .3s ease forwards !important; }
@keyframes vi-leave { to { opacity: 0; } }

/* While the door is up, the page behind stands still: nothing else competes for the phone's processor. */
html.intro-on .prices-track, html.intro-on .ticker-track, html.intro-on .coin, html.intro-on .coin-glow,
html.intro-on .orbit i, html.intro-on .bg-aurora::before, html.intro-on .bg-aurora::after,
html.intro-on h1 .gold-text, html.intro-on .pulse { animation-play-state: paused !important; }

/* The stage pushes in a little as the light comes out. */
.vi-stage {
  position: absolute; inset: 0;
  perspective: calc(var(--vi-d) * 2.6); perspective-origin: 50% 50%;
  transform-origin: 50% 50%; will-change: transform;
  animation: vi-zoom calc(var(--u) * .8) cubic-bezier(.6, 0, .9, .4) calc(var(--u) * 3.05) forwards, vi-gone 1ms linear calc(var(--u) * 3.78) forwards;
}
@keyframes vi-zoom { to { transform: scale(1.5); } }

/* Steel wall. */
.vi-wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 195, 91, .10) 0, transparent calc(var(--vi-d) * .95)),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .7) calc(var(--vi-d) * .5), transparent calc(var(--vi-d) * .7)),
    repeating-linear-gradient(0deg, transparent 0 139px, rgba(0, 0, 0, .55) 139px 140px, rgba(255, 255, 255, .035) 140px 141px),
    repeating-linear-gradient(90deg, transparent 0 279px, rgba(0, 0, 0, .5) 279px 280px, rgba(255, 255, 255, .03) 280px 281px),
    linear-gradient(180deg, #17140e 0%, #0d0b08 50%, #070605 100%);
}
.vi-frame {
  position: absolute; inset: 0; margin: auto;
  width: calc(var(--vi-d) * 1.17); height: calc(var(--vi-d) * 1.17); border-radius: 50%;
  background: conic-gradient(from 210deg, #7a6330, #2a2112 12%, #b89448 25%, #3a2e17 38%, #8f7537 50%, #1d170c 62%, #a78642 75%, #2f2513 88%, #7a6330);
  box-shadow: 0 0 0 2px #0a0805, 0 calc(var(--vi-d) * .04) calc(var(--vi-d) * .12) rgba(0, 0, 0, .8);
}
/* Gold light inside the vault, behind the door. When the door is open it bursts out and covers the wall. */
.vi-light {
  position: absolute; inset: 0; margin: auto;
  width: calc(var(--vi-d) + 6px); height: calc(var(--vi-d) + 6px); border-radius: 50%;
  background: radial-gradient(circle, #fffef6 0%, #fff1c4 22%, #f6cf6d 48%, #d49a2b 78%, #8a5e12 100%);
  will-change: transform;
  animation: vi-burst calc(var(--u) * .75) cubic-bezier(.6, 0, .9, .4) calc(var(--u) * 3.05) forwards;
}
@keyframes vi-burst { to { transform: scale(7); } }
/* Light leaking around the door once the bolts are back. */
.vi-seam {
  position: absolute; inset: 0; margin: auto;
  width: calc(var(--vi-d) * 1.03); height: calc(var(--vi-d) * 1.03); border-radius: 50%;
  box-shadow: 0 0 calc(var(--vi-d) * .05) calc(var(--vi-d) * .012) rgba(255, 226, 150, .95), 0 0 calc(var(--vi-d) * .16) calc(var(--vi-d) * .03) rgba(242, 195, 91, .55);
  opacity: 0; animation: vi-show calc(var(--u) * .5) ease-out calc(var(--u) * 2.3) forwards;
}
@keyframes vi-show { to { opacity: 1; } }
@keyframes vi-fade { to { opacity: 0; } }

/* The door: a 3D slab hinged on its left edge. */
.vi-door {
  position: absolute; inset: 0; margin: auto;
  width: calc(var(--vi-d) * 1.03); height: calc(var(--vi-d) * 1.03);
  -webkit-transform-style: preserve-3d; transform-style: preserve-3d;
  transform-origin: 0 50%; will-change: transform;
  animation: vi-swing calc(var(--u) * 1.25) cubic-bezier(.5, .05, .3, 1) calc(var(--u) * 2.6) forwards;
}
@keyframes vi-swing { to { transform: rotateY(-110deg); } }
.vi-slab { position: absolute; inset: 0; border-radius: 50%; background: #16120a; border: 2px solid #55451f; }
.vi-slab:nth-child(1) { transform: translateZ(calc(var(--vi-d) * -.018)); border-color: #8d7335; }
.vi-slab:nth-child(2) { transform: translateZ(calc(var(--vi-d) * -.036)); }
.vi-slab:nth-child(3) { transform: translateZ(calc(var(--vi-d) * -.054)); border-color: #8d7335; }
.vi-slab:nth-child(4) { transform: translateZ(calc(var(--vi-d) * -.072)); background: radial-gradient(circle at 60% 50%, #7a6534, #2a2212 60%, #120e07); }

.vi-bolts { position: absolute; inset: 0; transform: translateZ(-2px); }
.vi-bolts i {
  position: absolute; left: 50%; top: 50%; width: 7%; height: 12%; margin: -6% 0 0 -3.5%; border-radius: 4px;
  background: linear-gradient(90deg, #3a2f18, #d3ae5c 45%, #6e5a2b 58%, #2a2212);
  transform: rotate(var(--a)) translateY(calc(var(--vi-d) * -.49));
  animation: vi-bolt calc(var(--u) * .5) cubic-bezier(.6, 0, .3, 1) calc(var(--u) * 1.9) forwards;
}
@keyframes vi-bolt { to { transform: rotate(var(--a)) translateY(calc(var(--vi-d) * -.39)); } }
.vi-bolts i:nth-child(1) { --a: 0deg; } .vi-bolts i:nth-child(2) { --a: 45deg; }
.vi-bolts i:nth-child(3) { --a: 90deg; } .vi-bolts i:nth-child(4) { --a: 135deg; }
.vi-bolts i:nth-child(5) { --a: 180deg; } .vi-bolts i:nth-child(6) { --a: 225deg; }
.vi-bolts i:nth-child(7) { --a: 270deg; } .vi-bolts i:nth-child(8) { --a: 315deg; }

.vi-face { position: absolute; inset: 0; border-radius: 50%; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 0 0 1px #0a0805; }
.vi-plate { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vi-engrave { fill: #b9963f; font-size: 25px; font-weight: 800; letter-spacing: .2em; }
.vi-sheen {
  position: absolute; inset: 14%; border-radius: 50%;
  background: conic-gradient(from 20deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, .07) 24%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, .12) 52%, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, .06) 80%, rgba(255, 255, 255, 0) 92%, rgba(255, 255, 255, .10));
}

/* Code display: five reels that stop on 2 1 0 0 0. The glows are separate layers that only fade in. */
.vi-code { position: absolute; left: 0; right: 0; top: 17.5%; display: flex; flex-direction: column; align-items: center; gap: .3em; font-size: calc(var(--vi-d) * .078); }
.vi-code-label { display: inline-flex; align-items: center; gap: .6em; font-size: .3em; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #b9a26a; }
.vi-code-label::after { content: "Vault code"; }
.vi-led { position: relative; width: .9em; height: .9em; }
.vi-led::before, .vi-led::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.vi-led::before { background: #ff5a4a; box-shadow: 0 0 .7em #ff5a4a; animation: vi-fade calc(var(--u) * .2) linear calc(var(--u) * 1.75) forwards; }
.vi-led::after { background: #3fd17a; box-shadow: 0 0 1em #3fd17a; opacity: 0; animation: vi-show calc(var(--u) * .2) linear calc(var(--u) * 1.75) forwards; }
.vi-reels {
  position: relative; display: flex; gap: .1em; padding: .16em .2em; border-radius: .2em; background: #060504; border: .03em solid #7a6330;
  box-shadow: inset 0 0 .4em #000, 0 .05em 0 rgba(255, 255, 255, .07), 0 .25em .6em rgba(0, 0, 0, .6);
}
.vi-reels::after {
  content: ""; position: absolute; inset: -.03em; border-radius: inherit; border: .03em solid #fff0c2;
  box-shadow: 0 0 .9em rgba(255, 220, 130, .9); opacity: 0;
  animation: vi-pop calc(var(--u) * .6) ease-out calc(var(--u) * 1.75) forwards;
}
@keyframes vi-pop { 30% { opacity: 1; } 100% { opacity: .6; } }
.vi-reel {
  position: relative; box-sizing: content-box; display: block; width: .8em; height: 1.15em; overflow: hidden; border-radius: .1em;
  background: linear-gradient(180deg, #000 0%, #1c160b 50%, #000 100%); border: 1px solid #3d321d;
}
.vi-reel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  box-shadow: inset 0 0 0 1px #ffe39a, inset 0 0 .4em rgba(255, 210, 110, .9);
  animation: vi-pop calc(var(--u) * .5) ease-out calc(var(--u) * (.85 + var(--i) * .2)) forwards;
}
.vi-reel i {
  display: block; font: 700 1em/1.15 ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  white-space: pre; text-align: center; color: #ffd978; text-shadow: 0 0 .22em rgba(255, 200, 90, .85);
  animation: vi-spin calc(var(--u) * (.6 + var(--i) * .2)) cubic-bezier(.2, .7, .2, 1) calc(var(--u) * .25) both;
}
.vi-reel i::before { content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9"; }
@keyframes vi-spin { from { transform: translateY(0); } to { transform: translateY(calc((20 + var(--d)) * -1.15em)); } }
.vi-reel:nth-child(1) { --i: 0; --d: 2; }
.vi-reel:nth-child(2) { --i: 1; --d: 1; }
.vi-reel:nth-child(3) { --i: 2; --d: 0; }
.vi-reel:nth-child(4) { --i: 3; --d: 0; }
.vi-reel:nth-child(5) { --i: 4; --d: 0; }

/* Handwheel with the BTCgold coin as its hub. Its shadow is a plain gradient, not a filter. */
.vi-wheel { position: absolute; left: 32%; top: 44%; width: 36%; height: 36%; }
.vi-wheel::before { content: ""; position: absolute; inset: -7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6) 70%, transparent); transform: translateY(5%); }
.vi-wheel svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: vi-turn calc(var(--u) * .85) cubic-bezier(.5, 0, .2, 1) calc(var(--u) * 1.8) forwards; }
@keyframes vi-turn { to { transform: rotate(432deg); } }
.vi-hub { position: absolute; left: 33%; top: 33%; width: 34%; height: 34%; border-radius: 50%; }

/* Rays and sparks: fx.js paints each canvas once; after that they only turn, grow and fade. */
.vi-rays, .vi-sparks { position: absolute; left: 50%; top: 50%; width: 142vmax; height: 142vmax; margin: -71vmax 0 0 -71vmax; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.vi-rays { animation: vi-rays calc(var(--u) * 1.2) ease-out calc(var(--u) * 2.72) forwards, vi-gone 1ms linear calc(var(--u) * 3.78) forwards; }
@keyframes vi-rays { 0% { opacity: 0; transform: scale(.55); } 40% { opacity: 1; } 100% { opacity: .9; transform: scale(1.2) rotate(16deg); } }
.vi-sparks { animation: vi-sparks calc(var(--u) * 1) cubic-bezier(.1, .6, .3, 1) calc(var(--u) * 2.95) forwards, vi-gone 1ms linear calc(var(--u) * 3.78) forwards; }
@keyframes vi-sparks { 0% { opacity: 0; transform: scale(.3); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5) rotate(8deg); } }
/* Gold that fills the whole screen before the overlay fades away. Once it is solid (3.75), the door, wall, rays
   and sparks under it are switched off, so the fade that shows the page is a single flat layer. */
.vi-flood {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, #fffdf2 0%, #ffedb8 45%, #f6cf6d 100%);
  animation: vi-show calc(var(--u) * .55) ease-in calc(var(--u) * 3.2) forwards;
}

.vi-caption {
  position: absolute; left: 0; right: 0; top: calc(50% + var(--vi-d) * .62 + 6px); margin: 0; height: 1.4em;
  text-align: center; font-size: clamp(11px, 1.9vmin, 15px); font-weight: 800; letter-spacing: .34em; text-transform: uppercase; color: #9a8e75;
  animation: vi-fade calc(var(--u) * .3) ease calc(var(--u) * 2.7) forwards;
}
.vi-caption span { position: absolute; left: 0; right: 0; }
.vi-c1::before { content: "Enter vault code"; }
.vi-c2::before { content: "Access granted"; }
.vi-c1 { animation: vi-fade calc(var(--u) * .15) linear calc(var(--u) * 1.68) forwards; }
.vi-c2 { color: #f2c35b; text-shadow: 0 0 18px rgba(242, 195, 91, .6); opacity: 0; animation: vi-c2 calc(var(--u) * .4) ease-out calc(var(--u) * 1.78) forwards; }
@keyframes vi-c2 { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: none; } }
.vi-skip {
  position: absolute; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  padding: 10px 16px; border-radius: 999px; border: 1px solid #3d321d; background: rgba(7, 6, 10, .6); color: #cfc3a8;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
  animation: vi-fade calc(var(--u) * .3) ease calc(var(--u) * 2.9) forwards;
}
.vi-skip:hover { border-color: #b9831f; color: #f8f1e1; }

/* =====================================================================
   2. Entrance of the page
   On a normal load (html.site-enter) the hero rises in straight away. After the vault opening (html.intro-run)
   the same entrance is timed here, in CSS, to start when the gold begins to fade (3.8 s), so it does not wait
   for any script to run on time. If the opening's --u changes, change these delays with it.
   ===================================================================== */
html.site-enter .hero-copy > *, html.intro-run .hero-copy > * { animation: hero-rise .9s cubic-bezier(.2, .7, .2, 1) backwards; }
html.site-enter .hero-copy > :nth-child(1) { animation-delay: .10s; }
html.site-enter .hero-copy > :nth-child(2) { animation-delay: .20s; }
html.site-enter .hero-copy > :nth-child(3) { animation-delay: .34s; }
html.site-enter .hero-copy > :nth-child(4) { animation-delay: .46s; }
html.site-enter .hero-copy > :nth-child(5) { animation-delay: .58s; }
html.intro-run .hero-copy > :nth-child(1) { animation-delay: 3.90s; }
html.intro-run .hero-copy > :nth-child(2) { animation-delay: 4.00s; }
html.intro-run .hero-copy > :nth-child(3) { animation-delay: 4.14s; }
html.intro-run .hero-copy > :nth-child(4) { animation-delay: 4.26s; }
html.intro-run .hero-copy > :nth-child(5) { animation-delay: 4.38s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } }
html.site-enter .coin-stage, html.intro-run .coin-stage { animation: coin-in 1.3s cubic-bezier(.2, .8, .2, 1) .05s backwards; }
html.intro-run .coin-stage { animation-delay: 3.85s; }
@keyframes coin-in { from { opacity: 0; transform: scale(.72) rotate(-14deg); } }
html.site-enter .live-chip, html.intro-run .live-chip { animation: chip-in .8s ease .8s backwards; }
html.intro-run .live-chip { animation-delay: 4.6s; }
@keyframes chip-in { from { opacity: 0; transform: translate(-50%, 18px); } }

/* =====================================================================
   3. Effects layer
   ===================================================================== */
.scroll-bar { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px; z-index: 70; pointer-events: none; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #b9831f, #f2c35b 60%, #fff0c2); box-shadow: 0 0 12px rgba(242, 195, 91, .6); }

/* Slow gold glow behind the whole page. */
.bg-aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-aurora::before, .bg-aurora::after { content: ""; position: absolute; width: 72vmax; height: 72vmax; border-radius: 50%; will-change: transform; animation: aurora 38s ease-in-out infinite alternate; }
.bg-aurora::before { left: -24vmax; top: 6vh; background: radial-gradient(closest-side, rgba(242, 195, 91, .095), transparent); }
.bg-aurora::after { right: -28vmax; top: 48vh; background: radial-gradient(closest-side, rgba(201, 143, 34, .085), transparent); animation-duration: 47s; animation-direction: alternate-reverse; }
@keyframes aurora { to { transform: translate3d(12vmax, -9vh, 0) scale(1.18); } }

/* Hero: gold dust, a tilting coin with two orbit rings, and a light sweep over "21,000 forever". */
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-art { perspective: 1100px; }
.coin-stage { position: relative; display: grid; place-items: center; width: 100%; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease-out; }
.orbit { position: absolute; width: min(112%, 540px); aspect-ratio: 1; pointer-events: none; transform: perspective(900px) rotateZ(-16deg) rotateX(72deg); }
.orbit.o2 { width: min(96%, 460px); transform: perspective(900px) rotateZ(24deg) rotateX(76deg); }
.orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid; border-color: rgba(242, 195, 91, .8) rgba(242, 195, 91, .16) rgba(242, 195, 91, .55) rgba(242, 195, 91, .16); animation: orbit 13s linear infinite; }
.orbit.o2 i { animation-duration: 19s; animation-direction: reverse; }
.orbit i::after { content: ""; position: absolute; left: 50%; top: -6px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #fff0c2; box-shadow: 0 0 16px 5px rgba(242, 195, 91, .85); }
.orbit.front { clip-path: inset(50% -20% -20% -20%); }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .orbit { width: min(80vw, 360px); } .orbit.o2 { width: min(69vw, 310px); } }

/* Two lines on every screen: "Fixed supply." and "21,000 forever." */
.hero h1 { font-size: clamp(42px, 6vw, 86px); }
h1 .gold-text {
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .9) 50%, transparent 58%) 220% 0 / 260% 100% no-repeat, var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sweep 6.5s ease-in-out 1.6s infinite;
}
@keyframes sweep { 0% { background-position: 220% 0, 0 0; } 45%, 100% { background-position: -120% 0, 0 0; } }

/* Section rhythm: a gold hairline on top of each section and a dash before each kicker. */
.section { position: relative; }
.section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1200px, calc(100% - 64px)); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(242, 195, 91, .3), transparent); }
.kicker { display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; flex: none; width: 28px; height: 2px; border-radius: 2px; background: var(--gold-fill); }

/* Cards: gradient border and a gold spotlight that follows the pointer. */
.card, .cd-tile, .status-card, .calc-card, .chart-card, .table-card, .token-facts > div { position: relative; }
.card { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(160deg, rgba(242, 195, 91, .45), rgba(242, 195, 91, .06) 42%, rgba(242, 195, 91, .22)) border-box; }
.card:hover { border-color: transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(160deg, #f2c35b, rgba(242, 195, 91, .18) 45%, #b9831f) border-box; box-shadow: 0 24px 60px -30px rgba(242, 195, 91, .45); }
.card::after, .cd-tile::after, .status-card::after, .calc-card::after, .token-facts > div::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(242, 195, 91, .13), transparent 62%);
}
@media (hover: hover) { .card:hover::after, .cd-tile:hover::after, .status-card:hover::after, .calc-card:hover::after, .token-facts > div:hover::after { opacity: 1; } }
.card-icon { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.stat { transition: transform .3s ease, box-shadow .3s ease; }
.stat:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(242, 195, 91, .6); }
.countdown-panel { box-shadow: 0 40px 120px -60px rgba(242, 195, 91, .35); }
.big-timer { filter: drop-shadow(0 0 28px rgba(242, 195, 91, .22)); }

/* Gold buttons: a light sweep on hover. */
.btn-gold { position: relative; overflow: hidden; isolation: isolate; }
.btn-gold::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-20deg); transition: left .7s ease; }
.btn-gold:hover::after { left: 130%; }

/* Scroll reveal: a longer rise, staggered inside grids. */
.reveal.in { animation: rise2 .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise2 { from { opacity: 0; transform: translateY(34px) scale(.985); } }
.card-grid .reveal.in:nth-child(3n + 2), .stat-grid .reveal.in:nth-child(2) { animation-delay: .09s; }
.card-grid .reveal.in:nth-child(3n + 3), .stat-grid .reveal.in:nth-child(3) { animation-delay: .18s; }
.stat-grid .reveal.in:nth-child(4) { animation-delay: .27s; }

@media (prefers-reduced-motion: reduce) {
  .bg-aurora::before, .bg-aurora::after, .orbit i, h1 .gold-text { animation: none; }
  .hero-fx, .scroll-bar { display: none; }
  .coin-stage, .stat, .card-icon, .btn-gold::after { transition: none; }
  .reveal.in { animation: none; }
}

/* Header fixes found while testing the new layout: the menu stays on one line on small laptops and tablets,
   and the logo no longer touches the Whitepaper button on 320px phones. */
.nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1040px) { .nav a { padding: 7px 11px; } }
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand img { width: 30px; height: 30px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 0 12px; font-size: 14px; }
}
.trust-chip { border-radius: 22px; }

@media print { .vault-intro, .bg-aurora, .scroll-bar, .hero-fx, .orbit { display: none !important; } }
