/* $CT rocket theme. Black + CT yellow, night launch pad.
   Performance rules (phones under viral traffic):
   - animate only transform and opacity; never box-shadow, background-position, left/top, width/height, filter
   - no full-screen animated layers; the sky image is static, the 3D canvas pauses when the tab is hidden
   - every looping CSS animation lives in a section that pauseOffscreen() watches (.offscreen pauses it) */
@font-face { font-family: Mont; src: url(/fonts/montserrat.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Mono; src: url(/fonts/mono.woff2) format('woff2'); font-display: swap; }
:root {
  --bg: #05060a; --bg2: #0b0c12; --card: rgba(12, 13, 19, .86); --line: rgba(255, 255, 255, .1); --yline: rgba(255, 209, 0, .3);
  --text: #f6f3e8; --mute: #a4a092; --accent: #FFD100; --accent2: #ffb000; --accent-ink: #0b0a05; --ok: #2be37a; --warn: #ffb547; --red: #ff3b3b;
  --r: 22px; --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --f-body: Mont, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --f-display: Mont, system-ui, sans-serif; --f-mono: Mono, ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.5 var(--f-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--f-mono); }
/* static night sky behind the 3D canvas */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: url(/media/space-s.webp) center / cover no-repeat, var(--bg); }
@media (min-width: 900px) { .sky { background-image: url(/media/space.webp); } }
.stage { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }
.bg { display: none; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 16px/1.05 var(--f-display); letter-spacing: .01em; }
.brand img { border-radius: 10px; width: 38px; height: 38px; }
.brand small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--accent); }
.nav-r { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(0, 0, 0, .45); font: 700 12px/1 var(--f-mono); color: var(--mute); white-space: nowrap; }
.chip b { color: var(--text); }
.chain-chip i { width: 8px; height: 8px; border-radius: 50%; background: #ccff00; box-shadow: 0 0 8px #ccff00; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: rgba(0, 0, 0, .45); text-decoration: none; font-weight: 800; color: var(--text); cursor: pointer; font-size: 15px; padding: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 900 15px/1 var(--f-body); letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 6px 0 #9c7c00; transition: transform .15s var(--ease), opacity .2s; }
.btn:active { transform: translateY(5px); }
.btn:disabled, .btn.wait { opacity: .65; pointer-events: none; }
.btn.ghost { background: rgba(0, 0, 0, .35); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.small { padding: 9px 14px; font-size: 12px; border-radius: 12px; box-shadow: 0 4px 0 #9c7c00; }
.btn.big { width: 100%; min-height: 70px; padding: 0 22px; font-size: 19px; border-radius: 20px; box-shadow: 0 9px 0 #9c7c00, 0 18px 40px rgba(255, 209, 0, .28); }
.btn svg { width: 22px; height: 22px; flex: none; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.4s ease-in-out infinite; }
.dot.red { background: var(--red); }
@keyframes blink { 50% { opacity: .25; } }
.offscreen, .offscreen * { animation-play-state: paused !important; }
.pulse { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.pulse:active { animation: none; }

.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 34px 0 50px; color: var(--mute); font-size: 13px; }
.timer { display: inline-flex; gap: 5px; font-family: var(--f-mono); }
.timer b { display: grid; place-items: center; min-width: 34px; padding: 6px 4px; border-radius: 8px; background: rgba(0, 0, 0, .55); border: 1px solid var(--yline); color: var(--accent); font-size: 15px; line-height: 1; }
@media (max-width: 420px) { .brand { font-size: 13px; } .brand small { font-size: 9px; } .chip { padding: 7px 9px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
