/* ==========================================================================
   Woblixy
   Design tokens + volcano theme. Mobile-first; enhancements at min-width.
   ========================================================================== */

/* The [hidden] attribute must always win: several components (.field, .btn-action)
   set their own `display`, which otherwise overrides the browser default
   `[hidden]{display:none}` and leaves "hidden" elements visible. */
[hidden] { display: none !important; }

:root {
  --bg-primary: #140A1F;
  --bg-secondary: #221033;
  --accent-primary: #A855F7;
  --accent-secondary: #C4B5FD;
  --color-win: #D8B4FE;
  --color-loss: #B91C1C;
  --color-erupt: #FF3B30;   /* hot red for the crash shout, bright on lava */
  --text-primary: #F3EDF8;
  --text-muted: #B3A1C2;

  --accent-gradient: linear-gradient(135deg, #7C3AED, var(--accent-primary) 55%, var(--accent-secondary));
  --accent-glow: 0 0 12px rgba(168, 85, 247, 0.55), 0 0 4px rgba(196, 181, 253, 0.8);
  --accent-glow-soft: 0 0 18px rgba(168, 85, 247, 0.55);

  --radius: 14px;
  --radius-sm: 9px;
  --max-width: 1080px;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* subtle warm lava ambience */
  background-image:
    radial-gradient(1200px 500px at 50% -10%, rgba(168, 85, 247, 0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 110%, rgba(196, 181, 253, 0.10), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, .brand-name { font-family: var(--font-head); letter-spacing: 0.3px; }
a { color: var(--accent-secondary); text-decoration: none; }
a:hover { color: var(--color-win); }
.muted { color: var(--text-muted); }

/* --- Header / footer ---------------------------------------------------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 1.1rem;
  background: rgba(26, 10, 35, 0.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196, 181, 253, 0.2);
  position: sticky; top: 0; z-index: 20; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.55rem; color: var(--text-primary); }
.brand-mark {
  width: 34px; height: 34px; display: block;
  filter: drop-shadow(0 0 7px rgba(168, 85, 247, 0.55));
  transition: transform 0.25s ease, filter 0.25s ease;
}
.brand:hover .brand-mark {
  transform: translateY(-1px) scale(1.06) rotate(-3deg);
  filter: drop-shadow(0 0 11px rgba(168, 85, 247, 0.8));
}
.brand-name { font-weight: 800; font-size: 1.35rem;
  background: var(--accent-gradient); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.volcano-icon { filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5)); }
.site-nav { display: flex; gap: 0.35rem 1.1rem; flex-wrap: wrap; }
.site-nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text-primary); }

.site-main { flex: 1; width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 1.1rem; }

.site-footer {
  text-align: center; padding: 1.6rem 1rem; margin-top: 2rem;
  border-top: 1px solid rgba(196, 181, 253, 0.18);
  background: rgba(0,0,0,0.25);
}
.site-footer .demo-note {
  color: var(--color-win); font-weight: 600; margin: 0.35rem 0;
}
.brand-name-sm {
  font-family: var(--font-head); font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.footer-mark {
  width: 22px; height: 22px; display: block;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.45));
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 0.8rem 1.4rem; border-radius: var(--radius-sm);
  color: #fff; transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lava { background: var(--accent-gradient); box-shadow: var(--accent-glow-soft); color: #fff; }
.btn-lava:hover { filter: brightness(1.08); color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1.2rem; }
.btn-outline {
  background: transparent; border: 1.5px solid var(--accent-secondary);
  color: var(--text-primary); box-shadow: var(--accent-glow);
}

/* --- Landing / hero ----------------------------------------------------- */
.hero { position: relative; text-align: center; padding: 3rem 1rem 2.5rem; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% 20% auto; height: 340px; z-index: 0;
  background: radial-gradient(closest-side, rgba(168, 85, 247, 0.35), transparent);
  filter: blur(40px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; }
.hero-logo .volcano-icon { width: 44px; height: 44px; }
.hero-mark {
  width: clamp(84px, 20vw, 120px); height: auto; display: block;
  filter: drop-shadow(0 6px 22px rgba(168, 85, 247, 0.55));
  animation: hero-float 4.5s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark { animation: none; }
}
.hero-title {
  font-size: clamp(3rem, 12vw, 5.5rem); font-weight: 800; line-height: 1;
  background: var(--accent-gradient); -webkit-background-clip: text;
  background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.25);
}
.hero-tagline { font-size: clamp(1.2rem, 4vw, 1.7rem); font-weight: 600; margin-top: 0.6rem; }
.hero-sub { color: var(--text-muted); max-width: 34rem; margin: 0.6rem auto 1.6rem; }
.hero-note { color: var(--text-muted); margin-top: 0.9rem; font-size: 0.9rem; }

.features {
  display: grid; gap: 1rem; margin: 2.5rem 0;
  grid-template-columns: 1fr;
}
.feature-card {
  background: var(--bg-secondary); border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: var(--radius); padding: 1.3rem;
}
.feature-card h3 { color: var(--accent-secondary); margin-bottom: 0.4rem; }
.feature-card p { color: var(--text-muted); margin-bottom: 0.5rem; }

.about {
  background: var(--bg-secondary); border-radius: var(--radius); padding: 1.6rem;
  border: 1px solid rgba(196, 181, 253, 0.18); margin-bottom: 2rem;
}
.about h2 { margin-bottom: 0.7rem; }
.about p { color: var(--text-muted); margin-bottom: 0.9rem; }
.about p:last-child { margin-bottom: 0; }
.about--mission { border-color: rgba(196, 181, 253, 0.4); }
.about--mission p { color: var(--text-primary, inherit); font-size: 1.05rem; }
.about-hero {
  width: 100%; max-width: 820px; border-radius: var(--radius);
  border: 1px solid rgba(196, 181, 253, 0.18); margin-bottom: 1.5rem;
}

/* --- Game page ---------------------------------------------------------- */
.game { display: flex; flex-direction: column; gap: 0.9rem; }

.history-bar {
  display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.2rem;
  scrollbar-width: thin;
}
.history-pill {
  flex: 0 0 auto; font-family: var(--font-head); font-weight: 700;
  font-size: 0.82rem; padding: 0.28rem 0.55rem; border-radius: 999px;
  background: var(--bg-secondary); border: 1px solid transparent;
  white-space: nowrap;
}
.history-pill.low { color: var(--color-loss); border-color: rgba(185, 28, 28, 0.45); }
.history-pill.mid { color: var(--text-muted); border-color: rgba(148, 163, 184, 0.4); }
.history-pill.high { color: var(--color-win); border-color: rgba(216, 180, 254, 0.5); }

.stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 120% at 50% 100%, #2A0F3E, #0B0710);
  border: 1px solid rgba(168, 85, 247, 0.22);
  aspect-ratio: 16 / 10; min-height: 260px;
}

/* Wraps the Canvas 2D that composites the whole layered volcano scene. */
.volcano-visual {
  position: absolute; inset: 0; z-index: 1; transform-origin: 50% 70%;
}
.volcano-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
/* Full-body crash reaction: a quick scale + brightness pulse over the scene. */
.volcano-visual.erupting { animation: erupt-pulse 0.6s ease-out; }
@keyframes erupt-pulse {
  0%   { transform: scale(1);     filter: brightness(1); }
  22%  { transform: scale(1.06);  filter: brightness(1.8); }
  60%  { transform: scale(0.985); filter: brightness(1.15); }
  100% { transform: scale(1);     filter: brightness(1); }
}

.stage-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; text-align: center; z-index: 3;
  padding-bottom: 8%; pointer-events: none;
}
.multiplier {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(3rem, 15vw, 6.5rem); line-height: 1;
  color: var(--text-primary); text-shadow: var(--accent-glow-soft);
  transition: color 0.2s ease;
}
/* Poppins has proportional digits (a "1" is barely half the width of a "4")
   and ships no tabular-figure feature, so swapping the text made the big
   readout shuffle sideways on every tick. Each digit gets its own fixed cell
   instead (0.66em ≈ the widest digit's ink) so the number changes in place. */
.multiplier .digit { display: inline-block; width: 0.66em; text-align: center; }
.multiplier.running { color: var(--color-win); }
/* Crash "freeze": the number snaps to a sharp, icy white and holds frozen. */
.multiplier.crashed {
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 20px rgba(191, 219, 254, 0.85),
    0 0 42px rgba(125, 211, 252, 0.6);
  animation: freeze-snap 0.32s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
@keyframes freeze-snap {
  0%   { transform: scale(1.14); filter: brightness(2.2); }
  55%  { transform: scale(0.97); filter: brightness(1.35); }
  100% { transform: scale(1);    filter: brightness(1); }
}
.phase-label { margin-top: 0.4rem; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; }
/* Crash shout: "ERUPTED!" jumps above the frozen multiplier (order: -1 in the
   column overlay), big and in hot red so it reads at a glance on mobile. */
.phase-label.erupted {
  order: -1; margin-top: 0; margin-bottom: 0.25rem;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.6rem, 7vw, 3rem); line-height: 1.1; letter-spacing: 4px;
  color: var(--color-erupt);
  text-shadow: 0 0 10px rgba(255, 59, 48, 0.75), 0 0 30px rgba(255, 59, 48, 0.45);
  animation: erupt-pop 0.32s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
@keyframes erupt-pop {
  0%   { transform: scale(0.82); opacity: 0; }
  100% { transform: scale(1);    opacity: 1; }
}

.stage-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem; gap: 0.5rem;
}
.balance-chip {
  background: rgba(26, 10, 35, 0.7); border: 1px solid rgba(196, 181, 253, 0.3);
  border-radius: 999px; padding: 0.35rem 0.8rem; display: flex; gap: 0.4rem;
  align-items: baseline; font-size: 0.85rem;
}
.balance-chip strong { font-family: var(--font-head); color: var(--color-win); font-size: 1rem; }
.balance-chip .coin { color: var(--text-muted); font-size: 0.75rem; }
.sound-toggle {
  background: rgba(26, 10, 35, 0.7); border: 1px solid rgba(196, 181, 253, 0.3);
  color: var(--text-muted); border-radius: 999px; padding: 0.35rem 0.7rem;
  cursor: pointer; font-family: var(--font-body); font-size: 0.8rem;
}
.sound-toggle[aria-pressed="true"] { color: var(--color-win); border-color: var(--color-win); }

/* --- Bet panels --------------------------------------------------------- */
.bet-panels { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.bet-panel {
  background: var(--bg-secondary); border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: var(--radius); padding: 1rem;
}
.bet-panel-head { font-family: var(--font-head); font-weight: 700; margin-bottom: 0.6rem; }

/* Betting countdown */
.countdown { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.countdown[hidden] { display: none; }
.countdown-track {
  flex: 1; height: 8px; border-radius: 999px; overflow: hidden;
  background: var(--bg-primary); border: 1px solid rgba(148, 163, 184, 0.25);
}
.countdown-bar {
  height: 100%; width: 100%; border-radius: 999px;
  background: var(--accent-gradient); box-shadow: var(--accent-glow-soft);
}
.countdown-text {
  font-family: var(--font-head); font-weight: 700; color: var(--color-win);
  font-size: 0.9rem; min-width: 2.8em; text-align: right;
}

/* Provably-fair commitment line under the stage */
.round-commit { text-align: center; color: var(--text-muted); font-size: 0.78rem; margin: 0.6rem 0 0; }
.round-commit[hidden] { display: none; }
.round-commit span { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.3px; }
.round-commit a { margin-left: 0.45rem; white-space: nowrap; }
.commit-copy {
  margin-left: 0.45rem; padding: 0; white-space: nowrap;
  background: transparent; border: none; cursor: pointer;
  font: inherit; color: var(--accent-secondary); text-decoration: underline;
}
.commit-copy:hover { color: var(--color-win); }
.field-label { display: block; color: var(--text-muted); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 1px; margin: 0 0 0.25rem; }
/* Manual cash-out only: a single Amount field (no auto cash-out target). */
.bet-fields { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
.field { display: flex; flex-direction: column; }
.amount-input {
  width: 100%; background: var(--bg-primary); color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.3); border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem; font-size: 1.05rem; font-family: var(--font-head);
}
.amount-input:focus { outline: none; border-color: var(--accent-secondary); box-shadow: var(--accent-glow); }
.amount-input:disabled { opacity: 0.55; cursor: not-allowed; }
/* Invalid field: red border + glow, nudged with a quick shake so an empty
   Confirm is impossible to miss. Cleared the moment the player edits the field. */
.amount-input.input-error {
  border-color: var(--color-loss);
  box-shadow: 0 0 0 1px var(--color-loss), 0 0 10px rgba(185, 28, 28, 0.4);
  animation: input-shake 0.3s ease;
}
@keyframes input-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.btn-action {
  width: 100%; margin-top: 0.9rem; padding: 0.95rem; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; cursor: pointer;
  border: none; color: #fff; background: var(--accent-gradient); box-shadow: var(--accent-glow-soft);
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn-action:hover { filter: brightness(1.08); }
.btn-action:active { transform: translateY(1px); }
.btn-action:disabled { filter: grayscale(0.6) brightness(0.7); cursor: not-allowed; box-shadow: none; }

/* Cash-out state: gold, pulsing */
.btn-action.cashout { background: linear-gradient(135deg, #7C3AED, var(--color-win)); color: var(--bg-primary); }
.btn-action.cashout.pulse { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 180, 254, 0.55); transform: scale(1); }
  50% { box-shadow: 0 0 0 12px rgba(216, 180, 254, 0); transform: scale(1.02); }
}

/* --- Automation row (Auto bet / Auto Cash Out) -------------------------- */
.auto-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem;
  margin-top: 0.9rem; padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.auto-option { display: flex; align-items: center; gap: 0.55rem; }
.auto-label { color: var(--text-muted); font-size: 0.88rem; font-weight: 600; }
.auto-option.on .auto-label { color: var(--text-primary); }

/* Pill switch: a button[role=switch], coloured by aria-checked. */
.switch {
  position: relative; flex: none; width: 44px; height: 24px; padding: 0;
  border-radius: 999px; cursor: pointer;
  background: var(--bg-primary); border: 1px solid rgba(148, 163, 184, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.switch-knob {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: rgba(226, 232, 240, 0.65);
  transition: transform 0.15s ease, background 0.15s ease;
}
.switch[aria-checked="true"] {
  background: var(--accent-gradient); border-color: transparent;
  box-shadow: var(--accent-glow-soft);
}
.switch[aria-checked="true"] .switch-knob { transform: translateX(20px); background: #fff; }
.switch:focus-visible { outline: 2px solid var(--accent-secondary); outline-offset: 2px; }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }

/* The target sits right beside its switch so the player always sees the exact
   multiplier the auto cash-out will fire at. */
.auto-target {
  display: flex; align-items: center; gap: 0.15rem;
  background: var(--bg-primary); border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-sm); padding: 0.15rem 0.3rem 0.15rem 0.5rem;
}
.auto-target-input {
  width: 4.2em; background: transparent; border: none; padding: 0.25rem 0;
  color: var(--text-primary); font-family: var(--font-head); font-weight: 700;
  font-size: 0.95rem; text-align: center;
}
.auto-target-input:focus { outline: none; }
.auto-target-input:disabled { opacity: 0.55; cursor: not-allowed; }
.auto-target-input::-webkit-outer-spin-button,
.auto-target-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.auto-target-input { -moz-appearance: textfield; appearance: textfield; }
.auto-target-clear {
  flex: none; width: 1.5rem; height: 1.5rem; padding: 0; line-height: 1;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.05rem;
}
.auto-target-clear:hover { color: var(--color-win); }
.auto-target-clear:disabled { opacity: 0.4; cursor: not-allowed; }
.auto-target.input-error {
  border-color: var(--color-loss);
  box-shadow: 0 0 0 1px var(--color-loss), 0 0 10px rgba(185, 28, 28, 0.4);
  animation: input-shake 0.3s ease;
}

.bet-status { margin-top: 0.55rem; font-size: 0.88rem; min-height: 1.2em; font-weight: 600; }
.bet-status.win { color: var(--color-win); }
.bet-status.loss { color: var(--color-loss); }
.bet-status.info { color: var(--text-muted); }

.demo-inline-note { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 0.4rem; }

/* --- Leaderboard -------------------------------------------------------- */
.page-title { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: 0.4rem; }
.board { display: flex; flex-direction: column; gap: 1rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 1rem 0; }
.stat-card {
  background: var(--bg-secondary); border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: 0.3rem;
}
.stat-label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.stat-value { font-family: var(--font-head); font-weight: 800; font-size: 2rem; }
.stat-value.win { color: var(--color-win); text-shadow: var(--accent-glow-soft); }
.stat-sub { color: var(--text-muted); font-size: 0.8rem; }

/* --- Fairness page ------------------------------------------------------ */
.fairness { display: flex; flex-direction: column; gap: 1.2rem; }
.prose { background: var(--bg-secondary); border-radius: var(--radius); padding: 1.2rem;
  border: 1px solid rgba(196, 181, 253, 0.18); }
.prose ol { margin: 0.7rem 0 0.7rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.prose code { background: var(--bg-primary); padding: 0.1rem 0.35rem; border-radius: 5px;
  font-size: 0.85em; color: var(--accent-secondary); word-break: break-word; }
.verify-form { display: grid; gap: 0.8rem; background: var(--bg-secondary);
  border-radius: var(--radius); padding: 1.2rem; border: 1px solid rgba(196, 181, 253, 0.18); }
.verify-field { display: flex; flex-direction: column; gap: 0.3rem; }
.verify-field label { color: var(--text-muted); font-size: 0.82rem; }
.verify-field input {
  background: var(--bg-primary); color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.3); border-radius: var(--radius-sm);
  padding: 0.7rem; font-family: var(--font-body); font-size: 0.95rem;
}
.verify-field input:focus { outline: none; border-color: var(--accent-secondary); box-shadow: var(--accent-glow); }
.verify-result { border-radius: var(--radius); padding: 1.1rem; font-family: var(--font-head); }
.verify-result.ok { background: rgba(92,255,143,0.1); border: 1px solid #5CFF8F; }
.verify-result.bad { background: rgba(124, 58, 237, 0.12); border: 1px solid var(--color-loss); }
.verify-result .row { display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.25rem 0; font-family: var(--font-body); }
.verify-result .row span:last-child { color: var(--text-muted); word-break: break-all; text-align: right; }

/* --- Responsive: two-up layouts on wider screens ------------------------ */
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stage { aspect-ratio: 16 / 8; }
  /* The bet card looked stretched at the full 1080px content width on desktop:
     tighten it and centre it under the stage. The stage stays full width. */
  /* width:100% is required — auto inline margins stop a flex item from
     stretching, which would shrink the card to its fit-content width. */
  .bet-panels { width: 100%; max-width: 620px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-action.pulse,
  .multiplier.crashed,
  .phase-label.erupted,
  .volcano-visual.erupting { animation: none; }
  * { scroll-behavior: auto; }
}

/* --- Meet the Team ------------------------------------------------------- */
.company-facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  margin-top: 0.4rem; color: var(--text-muted);
}
.company-facts .fact-label {
  font-family: var(--font-head); font-weight: 700; color: var(--text-primary);
  margin-right: 0.35rem;
}

.board--center { text-align: center; align-items: center; }
.team-section { margin-bottom: 2.5rem; text-align: center; }
.team-section .page-title { margin-bottom: 1.2rem; }

.team-grid {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
.member-card {
  background: var(--bg-secondary); border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: var(--radius); padding: 1.4rem; text-align: center;
}
.member-photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 0.8rem; display: block;
  border: 2px solid var(--accent-secondary); box-shadow: var(--accent-glow-soft);
}
.member-photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: #fff;
  background: var(--accent-gradient);
}
.member-name { color: var(--text-primary); margin-bottom: 0.15rem; }
.member-role { color: var(--accent-secondary); font-weight: 600; margin-bottom: 0.6rem; }
.member-bio { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0.8rem; }
.member-links { display: flex; gap: 1rem; justify-content: center; font-size: 0.9rem; }

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
