/* ============================================================
   UNKNOWN — a question mark on Robinhood Chain
   acid edition / cryptic / alive
   ============================================================ */

:root {
  --bg: #060704;
  --bg-soft: #0b0d07;
  --acid: #ccff00;
  --acid-dim: rgba(204, 255, 0, 0.35);
  --acid-faint: rgba(204, 255, 0, 0.08);
  --pink: #ff2bd6;
  --pink-dim: rgba(255, 43, 214, 0.35);
  --white: #eef2e4;
  --white-dim: rgba(238, 242, 228, 0.55);
  --white-faint: rgba(238, 242, 228, 0.22);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.07);
  --font-main: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-main);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============ question mark cursor ============ */

html, body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ctext x='4' y='21' font-family='monospace' font-size='22' font-weight='bold' fill='%23ccff00' stroke='%23000' stroke-width='1.5' paint-order='stroke'%3E%3F%3C/text%3E%3C/svg%3E") 10 12, auto;
}

a, button, .btn, .qspawn, .card, .panel {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Ctext x='4' y='24' font-family='monospace' font-size='26' font-weight='bold' fill='%23ffffff' stroke='%23ccff00' stroke-width='1.5' paint-order='stroke'%3E%3F%3C/text%3E%3C/svg%3E") 12 14, pointer;
}

::selection { background: var(--acid); color: #000; }

.mono { font-family: var(--font-mono); }
.acid-dim { color: var(--acid-dim); }

/* ============ ambient layers ============ */

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fog {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.fog-1 {
  width: 60vw; height: 60vw;
  top: -20vw; left: -15vw;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.07), transparent 65%);
  animation: fogDrift 26s ease-in-out infinite alternate;
}

.fog-2 {
  width: 50vw; height: 50vw;
  bottom: -15vw; right: -10vw;
  background: radial-gradient(circle, rgba(255, 43, 214, 0.045), transparent 65%);
  animation: fogDrift 34s ease-in-out infinite alternate-reverse;
}

@keyframes fogDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vw, 4vw) scale(1.15); }
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(4) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* ============ idle whisper ============ */

.idle-whisper {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  font-size: clamp(16px, 3vw, 28px);
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: var(--acid-dim);
  text-shadow: 0 0 30px rgba(204, 255, 0, 0.3);
  opacity: 0;
  filter: blur(12px);
  pointer-events: none;
  transition: opacity 2.5s ease, filter 2.5s ease;
  white-space: nowrap;
}

.idle-whisper.visible {
  opacity: 1;
  filter: blur(0.5px);
}

/* ============ floating fragments ============ */

.fragments {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.fragment {
  position: absolute;
  display: block;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
  animation: floatSlow 18s ease-in-out infinite alternate;
}

.fr-1 { width: 90px;  height: 90px;  top: 14%; left: 8%;  animation-duration: 22s; transform: rotate(12deg); }
.fr-2 { width: 46px;  height: 46px;  top: 68%; left: 13%; animation-duration: 17s; transform: rotate(-8deg); }
.fr-3 { width: 120px; height: 66px;  top: 32%; right: 7%; animation-duration: 26s; transform: rotate(5deg); }
.fr-4 { width: 34px;  height: 34px;  top: 80%; right: 16%; animation-duration: 14s; }

.fragment-ring {
  background: transparent;
  border: 1px solid var(--acid-faint);
  border-radius: 50%;
  backdrop-filter: none;
}

.fr-5 { width: 180px; height: 180px; top: 55%; left: -60px; animation-duration: 30s; }
.fr-6 { width: 90px;  height: 90px;  top: 8%;  right: 20%;  animation-duration: 21s; }

.fragment-q {
  background: transparent;
  border: none;
  backdrop-filter: none;
  font-family: var(--font-mono);
  color: var(--white-faint);
  filter: blur(1.5px);
}

.fr-7 { font-size: 22px; top: 24%; left: 26%;  animation-duration: 19s; }
.fr-8 { font-size: 14px; top: 62%; right: 28%; animation-duration: 15s; opacity: 0.6; }
.fr-9 { font-size: 30px; top: 86%; left: 44%;  animation-duration: 24s; opacity: 0.35; }

@keyframes floatSlow {
  from { translate: 0 0; }
  to   { translate: 22px -34px; }
}

/* ============ mini-game entities ============ */

.qspawn {
  position: fixed;
  z-index: 9;
  font-family: var(--font-mono);
  font-weight: 300;
  color: var(--acid);
  text-shadow: 0 0 14px rgba(204, 255, 0, 0.7), 0 0 40px rgba(204, 255, 0, 0.3);
  user-select: none;
  will-change: transform;
  animation: spawnIn 0.7s ease both;
  transition: color 0.2s ease;
}

.qspawn:hover { color: #fff; }

.qspawn.hunted {
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 43, 214, 0.7), 0 0 40px rgba(204, 255, 0, 0.4);
}

@keyframes spawnIn {
  from { opacity: 0; filter: blur(10px); scale: 0.3; }
  to   { opacity: 1; filter: blur(0);    scale: 1; }
}

.qspawn.caught {
  animation: catchBurst 0.5s ease forwards;
  pointer-events: none;
}

@keyframes catchBurst {
  0%   { opacity: 1; filter: blur(0);    scale: 1; }
  40%  { opacity: 1; filter: blur(2px);  scale: 1.8; color: #fff; }
  100% { opacity: 0; filter: blur(14px); scale: 2.6; }
}

.qspawn.escaping {
  animation: escapeFade 1s ease forwards;
  pointer-events: none;
}

@keyframes escapeFade {
  to { opacity: 0; filter: blur(16px); scale: 0.2; }
}

.catch-ring {
  position: fixed;
  z-index: 9;
  border: 1px solid var(--acid);
  border-radius: 50%;
  pointer-events: none;
  animation: ringOut 0.6s ease forwards;
}

@keyframes ringOut {
  from { opacity: 0.9; scale: 0.2; }
  to   { opacity: 0;   scale: 1.6; }
}

/* ============ header ============ */

.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  font-size: 12px;
  letter-spacing: 0.12em;
  mix-blend-mode: difference;
  pointer-events: none;
}

.top-mark { color: var(--white-dim); }

.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white-faint);
  font-size: 11px;
}

/* wallet connect button — the header uses mix-blend + pointer-events:none,
   so the button re-enables pointer events and opts out of the blend. */
.wallet-btn {
  pointer-events: auto;
  mix-blend-mode: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--acid);
  background: transparent;
  border: 1px solid var(--acid-dim);
  border-radius: 2px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.wallet-btn:hover {
  border-color: var(--acid);
  box-shadow: 0 0 18px rgba(204, 255, 0, 0.35);
}

.wallet-btn.is-connected {
  color: #000;
  background: var(--acid);
  border-color: var(--acid);
}

.wallet-btn.is-pending {
  opacity: 0.6;
  pointer-events: none;
}

/* header X / twitter link */
.x-top {
  pointer-events: auto;
  mix-blend-mode: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white-dim);
  transition: color 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.x-top:hover {
  color: var(--acid);
  transform: translateY(-1px);
  filter: drop-shadow(0 0 8px rgba(204, 255, 0, 0.5));
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* ============ hero ============ */

.hero {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.qmark-scene {
  position: relative;
  width: 320px;
  height: 320px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.qmark-scene > * {
  grid-area: 1 / 1;
  will-change: transform;
}

.qmark-halo {
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.16), transparent 62%);
  filter: blur(30px);
  animation: haloBreath 6s ease-in-out infinite;
}

@keyframes haloBreath {
  0%, 100% { opacity: 0.7; scale: 1; }
  50%      { opacity: 1;   scale: 1.12; }
}

.qmark-ring-outer {
  width: 270px; height: 270px;
  border-radius: 50%;
  border: 1px dashed rgba(204, 255, 0, 0.25);
  animation: ringSpin 34s linear infinite;
}

.qmark-ring-inner {
  width: 218px; height: 218px;
  border-radius: 50%;
  border: 1px solid rgba(204, 255, 0, 0.14);
  animation: ringSpin 22s linear infinite reverse;
  position: relative;
}

.qmark-ring-inner::before {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px var(--acid);
}

.qmark-ring-inner::after {
  content: "";
  position: absolute;
  bottom: 10px; right: 22px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  opacity: 0.7;
}

@keyframes ringSpin {
  to { rotate: 360deg; }
}

/* glitch-layered question mark logo */

.qmark-stack {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  height: 200px;
  animation: qFloat 7s ease-in-out infinite;
}

.qmark-layer {
  grid-area: 1 / 1;
  font-size: 170px;
  font-weight: 300;
  line-height: 1;
  user-select: none;
}

.qmark-main {
  color: var(--white);
  text-shadow:
    0 0 30px rgba(204, 255, 0, 0.55),
    0 0 90px rgba(204, 255, 0, 0.25);
}

.qmark-glitch-a {
  color: var(--acid);
  opacity: 0.8;
  animation: glitchShiftA 5s steps(1) infinite;
}

.qmark-glitch-m {
  color: var(--pink);
  opacity: 0.65;
  animation: glitchShiftM 5s steps(1) infinite;
}

@keyframes glitchShiftA {
  0%, 88%, 100% { transform: translate(0, 0); clip-path: none; }
  90% { transform: translate(-7px, 3px);  clip-path: inset(20% 0 55% 0); }
  93% { transform: translate(5px, -2px);  clip-path: inset(60% 0 10% 0); }
  96% { transform: translate(-3px, 0);    clip-path: inset(0 0 75% 0); }
}

@keyframes glitchShiftM {
  0%, 88%, 100% { transform: translate(0, 0); clip-path: none; }
  89% { transform: translate(6px, -3px);  clip-path: inset(45% 0 30% 0); }
  92% { transform: translate(-5px, 2px);  clip-path: inset(10% 0 70% 0); }
  95% { transform: translate(4px, 1px);   clip-path: inset(70% 0 5% 0); }
}

.qmark-stack.flicker .qmark-main { animation: qFlicker 0.35s steps(2) 1; }

@keyframes qFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

@keyframes qFlicker {
  0%   { opacity: 1; }
  30%  { opacity: 0.15; }
  60%  { opacity: 0.85; }
  80%  { opacity: 0.3; }
  100% { opacity: 1; }
}

.qmark-echo {
  font-size: 170px;
  font-weight: 300;
  line-height: 1;
  color: var(--acid-dim);
  filter: blur(14px);
  opacity: 0.5;
  animation: qFloat 7s ease-in-out infinite reverse;
  user-select: none;
}

/* glitch headline */

.glitch-title {
  position: relative;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glitch-title::before {
  color: var(--acid);
  animation: titleGlitchA 6s steps(1) infinite;
  opacity: 0;
}

.glitch-title::after {
  color: var(--pink);
  animation: titleGlitchM 6s steps(1) infinite;
  opacity: 0;
}

@keyframes titleGlitchA {
  0%, 91%, 100% { opacity: 0; }
  92% { opacity: 0.85; transform: translate(4px, -2px);  clip-path: inset(15% 0 60% 0); }
  95% { opacity: 0.85; transform: translate(-5px, 1px);  clip-path: inset(65% 0 12% 0); }
}

@keyframes titleGlitchM {
  0%, 91%, 100% { opacity: 0; }
  93% { opacity: 0.7; transform: translate(-4px, 2px); clip-path: inset(40% 0 35% 0); }
  96% { opacity: 0.7; transform: translate(5px, -1px); clip-path: inset(5% 0 80% 0); }
}

.hero-title {
  font-size: clamp(48px, 9vw, 108px);
  font-weight: 700;
  letter-spacing: 0.28em;
  margin-left: 0.28em; /* optically recenter letter-spaced text */
  text-transform: uppercase;
}

.hero-line {
  margin-top: 18px;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 300;
  color: var(--white-dim);
  letter-spacing: 0.04em;
}

.hero-sub {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid-dim);
}

/* CTA */

.cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 44px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 64px;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: #000;
  background: var(--acid);
  box-shadow: 0 0 28px rgba(204, 255, 0, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 56px rgba(204, 255, 0, 0.7);
  transform: translateY(-2px);
}

/* DEV: contract not live yet — Buy is inert. */
.btn.is-disabled {
  background: transparent;
  color: var(--acid-dim);
  border: 1px solid var(--acid-faint);
  box-shadow: none;
  cursor: not-allowed;
}

.btn.is-disabled:hover {
  box-shadow: none;
  transform: none;
}

.cta-note {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-faint);
  opacity: 0.6;
}

.cta-note.nudge {
  animation: cta-nudge 0.6s ease;
  color: var(--acid);
  opacity: 1;
}

@keyframes cta-nudge {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-4px); }
  40%      { transform: translateX(4px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}

/* mini-game HUD */

.game-hud {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.game-hint {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white-faint);
  animation: pulse 4s ease-in-out infinite;
  transition: color 0.5s ease;
  min-height: 14px;
}

.game-hint.result {
  color: var(--acid);
  text-shadow: 0 0 14px rgba(204, 255, 0, 0.4);
  animation: none;
}

.game-start {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
  background: transparent;
  border: 1px solid rgba(204, 255, 0, 0.3);
  padding: 12px 32px;
  border-radius: 2px;
  text-shadow: 0 0 12px rgba(204, 255, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.game-start:hover {
  background: rgba(204, 255, 0, 0.08);
  box-shadow: 0 0 28px rgba(204, 255, 0, 0.2);
  transform: translateY(-2px);
}

.game-start.hunting {
  color: var(--white-faint);
  border-color: var(--glass-border);
  text-shadow: none;
  box-shadow: none;
  animation: pulse 1.2s ease-in-out infinite;
  pointer-events: none;
}

.game-score {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.game-score b {
  color: var(--acid);
  font-weight: 400;
  text-shadow: 0 0 12px rgba(204, 255, 0, 0.5);
}

.game-score b.acid-dim {
  color: var(--white-faint);
  text-shadow: none;
}

.hud-sep {
  margin: 0 10px;
  color: var(--white-faint);
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-faint);
}

.scroll-hint-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, var(--acid-dim));
  animation: hintDrop 2.4s ease-in-out infinite;
}

@keyframes hintDrop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ sections shared ============ */

section { position: relative; z-index: 4; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--acid-dim);
  margin-bottom: 48px;
}

/* ============ info ============ */

.info {
  max-width: 880px;
  margin: 0 auto;
  padding: 160px 24px 140px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  border-radius: 6px;
}

.card {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.03), transparent);
  transition: left 0.9s ease;
  pointer-events: none;
}

.card:hover::after { left: 160%; }

.card:hover {
  border-color: rgba(204, 255, 0, 0.3);
  box-shadow: 0 0 40px rgba(204, 255, 0, 0.07), inset 0 0 30px rgba(204, 255, 0, 0.03);
  transform: translateY(-3px);
}

.card-key {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white-faint);
}

.card-value {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.card-value.accent { color: var(--acid); text-shadow: 0 0 20px rgba(204, 255, 0, 0.45); }

.card-none .card-value {
  color: var(--white-faint);
  font-weight: 300;
  font-style: italic;
}

/* the redacted card — reveals nothing on purpose */

.card-redacted .blurred {
  filter: blur(7px);
  color: var(--white-dim);
  transition: filter 0.6s ease;
  user-select: none;
}

.card-redacted:hover .blurred { filter: blur(5px); } /* teases, never reveals */

.card-hover-hint {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: transparent;
  transition: color 0.6s ease 0.2s;
}

.card-redacted:hover .card-hover-hint { color: var(--acid-dim); }

.info-footnote {
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--white-faint);
  text-align: center;
}

/* ============ glyph ticker ============ */

.ticker {
  position: relative;
  z-index: 4;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  font-size: 15px;
  letter-spacing: 0.6em;
  color: var(--acid-dim);
  filter: blur(0.6px);
  animation: tickerMove 40s linear infinite;
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ transmission ============ */

.transmission {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 24px 40px;
  text-align: center;
}

.terminal {
  text-align: left;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(204, 255, 0, 0.04);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.t-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.t-dot:first-child { background: rgba(204, 255, 0, 0.4); }

.terminal-title {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--white-faint);
}

.terminal-body {
  padding: 24px 22px 28px;
  min-height: 250px;
  font-size: 13px;
  line-height: 2.1;
  color: var(--white-dim);
  letter-spacing: 0.04em;
}

.terminal-body .t-line { display: block; }
.terminal-body .t-prompt { color: var(--acid-dim); margin-right: 8px; }
.terminal-body .t-acid { color: var(--acid); }
.terminal-body .t-err { color: var(--pink-dim); }

.t-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--acid);
  vertical-align: middle;
  margin-left: 2px;
  animation: pulse 1s steps(2) infinite;
  box-shadow: 0 0 8px rgba(204, 255, 0, 0.6);
}

.transmission-note {
  margin-top: 26px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--white-faint);
}

/* ============ mystery ============ */

.mystery {
  max-width: 880px;
  margin: 0 auto;
  padding: 140px 24px 160px;
  text-align: center;
  position: relative;
}

.mystery-orb {
  position: absolute;
  top: 50%; left: 50%;
  width: 420px; height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.06), transparent 60%);
  filter: blur(40px);
  animation: haloBreath 9s ease-in-out infinite;
  pointer-events: none;
}

.mystery-lines {
  display: flex;
  flex-direction: column;
  gap: 34px;
  position: relative;
}

.mystery-line {
  font-size: clamp(20px, 3.4vw, 34px);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--white);
}

.mystery-line-dim   { color: var(--white-dim);   filter: blur(0.4px); }
.mystery-line-faint { color: var(--white-faint); filter: blur(1px); }

.mystery-panels {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 90px;
}

.panel {
  width: 220px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s ease, filter 0.5s ease;
}

.panel:hover { border-color: rgba(204, 255, 0, 0.25); }

.panel-1 { transform: rotate(-1.5deg); animation: floatSlow 16s ease-in-out infinite alternate; }
.panel-2 { transform: rotate(0.8deg);  animation: floatSlow 20s ease-in-out infinite alternate-reverse; }
.panel-3 { transform: rotate(-0.6deg); animation: floatSlow 24s ease-in-out infinite alternate; filter: blur(1.5px); }

.panel-3:hover { filter: blur(0.8px); }

.panel-glyph {
  font-size: 34px;
  color: var(--acid-dim);
  font-weight: 300;
}

.panel-text {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--white-faint);
  text-transform: uppercase;
}

.blurred-soft { filter: blur(2px); }

.panel-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acid-dim), transparent);
  animation: scan 4s linear infinite;
}

@keyframes scan {
  from { top: -5%; }
  to   { top: 105%; }
}

.mystery-close {
  margin-top: 110px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--white-faint);
}

/* ============ reveal on scroll ============ */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 1.1s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 1.1s cubic-bezier(0.2, 0.7, 0.3, 1),
    filter 1.1s cubic-bezier(0.2, 0.7, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ============ responsive ============ */

@media (max-width: 640px) {
  .qmark-scene { width: 230px; height: 230px; }
  .qmark-layer, .qmark-echo { font-size: 120px; }
  .qmark-stack { width: 130px; height: 145px; }
  .qmark-ring-outer { width: 205px; height: 205px; }
  .qmark-ring-inner { width: 165px; height: 165px; }
  .qmark-halo { width: 230px; height: 230px; }
  .top { padding: 18px 20px; }
  .info { padding: 110px 20px 100px; }
  .transmission { padding: 100px 20px 30px; }
  .mystery { padding: 100px 20px 120px; }
  .btn { padding: 14px 48px; }
}

/* ============ footer ============ */

.site-footer {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 24px 70px;
  border-top: 1px solid var(--acid-faint);
  text-align: center;
}

.x-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white-dim);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--acid-faint);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.x-link:hover {
  color: var(--acid);
  border-color: var(--acid-dim);
  box-shadow: 0 0 22px rgba(204, 255, 0, 0.3);
  transform: translateY(-2px);
}

.x-icon { display: block; }

.footer-note {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white-faint);
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
