/* ============================================================
   $GME — GameStop on Robinhood Chain
   Design: "THE HEARING" — congressional-evidence terminal
   ============================================================ */

:root {
  --bg: #0a0000;
  --panel: #140606;
  --line: rgba(255, 255, 255, 0.08);
  --t1: rgba(255, 255, 255, 0.92);
  --t2: rgba(255, 255, 255, 0.65);
  --t3: rgba(255, 255, 255, 0.55);
  --t4: rgba(255, 255, 255, 0.18);
  --green: #EE3124;
  --green-dim: rgba(238, 49, 36, 0.16);
  --red: #EE3124;
  --red-text: #FF5A4E;      /* red for small text on dark — AA */
  --red-on-cream: #C41E12;  /* red for small text on cream — AA */
  --red-dim: rgba(238, 49, 36, 0.12);
  --cream: #F3EFE6;
  --cream-ink: #23201A;
  --gold: #E7B565;
  --nav-h: 60px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  background: var(--bg);
  color: var(--t1);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.display { font-family: "Anton", "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: 0.01em; }
.mono    { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.serif   { font-family: "Source Serif 4", Georgia, serif; }

.green { color: var(--green); }
.red   { color: var(--red-text); }
.gold  { color: var(--gold); }

.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: fixed;
  top: -60px; left: 12px;
  z-index: 200;
  background: var(--panel);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }
.dim   { color: var(--t3); }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--green); color: #04220a; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--green);
  color: #04220a;
  box-shadow: 4px 4px 0 rgba(0, 200, 5, 0.25);
}
.btn-primary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0, 200, 5, 0.25); }

.btn-outline {
  background: transparent;
  color: var(--t1);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.08);
}
.btn-outline:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.5); }

.btn-small { padding: 10px 18px; font-size: 13px; }
.btn-big { padding: 18px 32px; font-size: 16px; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(11, 12, 14, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo { font-size: 24px; color: var(--t1); letter-spacing: 0.03em; }
.nav-logo:hover { text-decoration: none; color: var(--green); }

.nav-links { display: flex; gap: 22px; margin: 0 auto; }
.nav-links a, .nav-links .nav-win {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--t2);
}
.nav-links a:hover, .nav-links .nav-win:hover { color: var(--t1); text-decoration: none; }
.nav-win { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; }

.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-price { font-size: 13px; color: var(--green); min-width: 76px; text-align: right; }
.nav-price.down { color: var(--red); }
.nav-icon { color: var(--t2); display: flex; }
.nav-icon:hover { color: var(--t1); }
.btn-buy-pill {
  background: var(--green);
  color: #04220a;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 999px;
}
.btn-buy-pill:hover { text-decoration: none; filter: brightness(1.1); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--t1); transition: transform 0.25s, opacity 0.25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) 20px 80px;
  overflow: hidden;
}

.hero-ghosts { position: absolute; inset: 0; pointer-events: none; }
.hero-ghosts span {
  position: absolute;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--t4);
  white-space: nowrap;
  animation: ghostFlicker var(--dur, 3s) steps(2, jump-none) infinite;
  opacity: var(--op, 0.5);
}
@keyframes ghostFlicker {
  0%, 100% { opacity: var(--op, 0.5); }
  47%      { opacity: var(--op, 0.5); }
  50%      { opacity: 0.05; }
  53%      { opacity: var(--op, 0.5); }
}

.hero-chart { position: absolute; inset: 0; pointer-events: none; }
.hero-chart svg { width: 100%; height: 100%; }
.chart-grid line { stroke: rgba(255, 255, 255, 0.045); stroke-width: 1; }
.chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  opacity: 0.55;
  filter: drop-shadow(0 0 6px rgba(0, 200, 5, 0.5));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
body.chart-go .chart-line { animation: drawChart 3s ease-out forwards; }
@keyframes drawChart { to { stroke-dashoffset: 0; } }
.chart-area { opacity: 0; transition: opacity 1.2s ease 2.4s; }
body.chart-go .chart-area { opacity: 1; }
.chart-halt {
  stroke: var(--red);
  stroke-width: 1;
  stroke-dasharray: 5 5;
  opacity: 0;
  transition: opacity 0.8s ease 2.2s;
}
body.chart-go .chart-halt { opacity: 0.55; }
.chart-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.8s ease 2.5s;
}
body.chart-go .chart-label { opacity: 0.9; }
.chart-label-gold { fill: var(--gold); }
.chart-label-red  { fill: var(--red-text); }

.hero-inner { position: relative; max-width: 900px; width: 100%; min-width: 0; text-align: center; }
.hero-kicker { font-size: 12px; letter-spacing: 0.28em; color: var(--t3); margin-bottom: 26px; }
.hero-title {
  font-size: clamp(44px, 9vw, 104px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  margin-bottom: 26px;
}
.hero-title .green { display: block; margin-top: 10px; text-shadow: 3px 3px 0 rgba(0, 90, 3, 0.35); }
.hero-sub { font-size: clamp(13px, 1.8vw, 16px); color: var(--t2); margin-bottom: 34px; }

/* CA pill */
.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 12px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--t2);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.3s, color 0.15s;
}
.ca-pill:hover { border-color: rgba(0, 200, 5, 0.5); color: var(--t1); }
.ca-pill .ca-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--green);
  border: 1px solid rgba(0, 200, 5, 0.4);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}
.ca-pill .ca-addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.ca-pill .ca-icon { flex-shrink: 0; color: var(--t3); }
.ca-pill .ca-icon-check { display: none; color: var(--green); }
.ca-pill.copied { background: var(--green-dim); border-color: var(--green); }
.ca-pill.copied .ca-icon-copy { display: none; }
.ca-pill.copied .ca-icon-check { display: block; }

.hero .ca-pill { margin-bottom: 34px; }

.hero-ctas { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 28px;
  min-width: 150px;
}
.stat-label { display: block; font-size: 10px; letter-spacing: 0.24em; color: var(--t3); margin-bottom: 6px; }
.stat-value { display: block; font-size: 24px; font-weight: 600; color: var(--green); }
.stat-value.down { color: var(--red); }
.hero-datanote { font-size: 11px; color: var(--t3); letter-spacing: 0.08em; }

.hero-chevron {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-chevron span {
  display: block;
  width: 12px; height: 12px;
  border-right: 2px solid var(--t3);
  border-bottom: 2px solid var(--t3);
  transform: rotate(45deg);
  animation: chevBounce 1.8s ease-in-out infinite;
}
@keyframes chevBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(5px, 5px); }
}

/* ============ MARQUEE ============ */
.marquee-wrap { position: relative; }
.marquee-pause {
  position: absolute;
  top: 50%; right: 10px;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(11, 12, 14, 0.7);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--t3);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 6px 8px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.marquee-pause:hover, .marquee-pause:focus-visible { opacity: 1; color: var(--t1); }
.marquee-wrap.paused .marquee-track { animation-play-state: paused; }
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 200, 5, 0.05);
  padding: 12px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 36s linear infinite;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--green);
}
.marquee-track span { white-space: nowrap; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }
.marquee-invert { background: var(--cream); border-color: var(--cream); }
.marquee-invert .marquee-track { color: var(--cream-ink); }

/* ============ SECTIONS ============ */
.section { padding: 110px 20px; }
.section-inner { max-width: 1020px; margin: 0 auto; }
.section-kicker { font-size: 11px; letter-spacing: 0.3em; color: var(--t3); margin-bottom: 10px; }
.section-title {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  margin-bottom: 14px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}
.section-lede { font-size: 14px; color: var(--t2); margin-bottom: 56px; }

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--rd, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ============ TIMELINE ============ */
.timeline { list-style: none; position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.tl-item { position: relative; margin-bottom: 34px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--green);
}
.tl-item-red::before { border-color: var(--red); box-shadow: 0 0 10px rgba(238, 49, 36, 0.6); }

.tl-date { display: block; font-size: 12px; letter-spacing: 0.22em; color: var(--green); margin-bottom: 8px; }
.tl-item-red .tl-date { color: var(--red-text); }

.tl-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 26px;
  max-width: 660px;
  overflow: hidden;
}
.tl-item-red .tl-card { border-color: rgba(238, 49, 36, 0.5); background: linear-gradient(180deg, var(--red-dim), var(--panel) 70%); }
.tl-card p { font-size: 15.5px; color: var(--t1); }
.tl-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--t3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 12px;
}
.tl-tag-red { color: var(--red-text); border-color: rgba(238, 49, 36, 0.45); }
.tl-tag-green { color: var(--green); border-color: rgba(0, 200, 5, 0.45); }
.tl-cite { display: block; margin-top: 8px; font-size: 12px; color: var(--t3); }
.tl-stamp {
  position: absolute;
  top: 16px; right: -34px;
  transform: rotate(18deg);
  border: 2px solid var(--red);
  color: var(--red-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 5px 40px;
  opacity: 0.85;
}

.lore-micdrop {
  margin-top: 64px;
  padding: 34px 30px;
  border-left: 2px solid var(--green);
  background: linear-gradient(90deg, rgba(0, 200, 5, 0.06), transparent 60%);
}
.lore-micdrop p { font-size: clamp(14px, 2vw, 17px); color: var(--t1); margin-bottom: 8px; }
.lore-micdrop p:last-child { margin-bottom: 0; }

/* ============ EXHIBITS ============ */
.section-crime { background: linear-gradient(180deg, var(--bg), #0e0f12 50%, var(--bg)); }

.exhibits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.exhibit {
  position: relative;
  background: var(--cream);
  color: var(--cream-ink);
  border-radius: 6px;
  padding: 34px 30px 28px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.exhibit:nth-child(odd)  { rotate: -0.5deg; }
.exhibit:nth-child(even) { rotate: 0.4deg; }
.exhibit p { font-size: 17px; line-height: 1.55; color: #3a362e; }
.exhibit-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--cream-ink);
}
.exhibit-kicker { margin-top: 14px; font-weight: 600; font-style: italic; color: var(--cream-ink) !important; }
.exhibit-stamp {
  position: absolute;
  top: 18px; right: 18px;
  transform: rotate(6deg);
  border: 2.5px solid var(--red);
  color: var(--red-on-cream);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  padding: 4px 10px;
  border-radius: 3px;
  opacity: 0.8;
}
.exhibit-asterisk { background: #e9e4d7; }
.exhibit-asterisk p { font-size: 15.5px; }

.killswitch {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-wrap: wrap;
}
.killswitch-label { font-size: 13px; letter-spacing: 0.2em; color: var(--t2); }
.switch {
  position: relative;
  width: 92px; height: 40px;
  border-radius: 999px;
  background: var(--green-dim);
  border: 1px solid rgba(0, 200, 5, 0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.switch-knob {
  position: absolute;
  top: 4px; left: 56px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(0, 200, 5, 0.5);
  transition: left 0.18s ease;
}
.switch.flipping .switch-knob { left: 4px; }
.switch-on {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--green);
}

.crime-footnote { margin-top: 34px; text-align: center; font-size: 12px; color: var(--t3); }

/* ============ HOW TO BUY ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px 28px 28px;
}
.step-num {
  position: absolute;
  top: -22px; left: 20px;
  font-size: 52px;
  color: var(--green);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.7);
}
.step-title { font-size: 15px; letter-spacing: 0.14em; margin: 8px 0 12px; color: var(--t1); }
.step p { font-size: 14.5px; color: var(--t2); margin-bottom: 12px; }
.step-aside { font-size: 12.5px !important; color: var(--t3) !important; border-left: 2px solid var(--green); padding-left: 10px; }
.step .btn { margin-bottom: 14px; }
.step-links { line-height: 2; }
.step-links a { font-weight: 600; }

.chain-table { font-size: 12px; }
.chain-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.chain-table div:last-child { border-bottom: none; }
.chain-table dt { color: var(--t3); }
.chain-table dd { color: var(--t1); text-align: right; overflow-wrap: anywhere; }

.verify-warning {
  margin-top: 56px;
  border: 1px solid rgba(238, 49, 36, 0.55);
  background: linear-gradient(180deg, var(--red-dim), transparent 70%);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}
.verify-warning h3 { font-size: 15px; letter-spacing: 0.24em; color: var(--red-text); margin-bottom: 12px; }
.verify-warning p { font-size: 13.5px; color: var(--t2); margin-bottom: 16px; }
.verify-warning p:last-child { margin-bottom: 0; margin-top: 14px; font-size: 12px; }
.ca-pill-warning { border-color: rgba(238, 49, 36, 0.5); }
.ca-pill-warning:hover { border-color: var(--red); }

/* ============ RECEIPTS ============ */
.receipts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.receipt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 28px;
  color: var(--t1);
  transition: border-color 0.15s, transform 0.15s;
}
.receipt:hover { border-color: rgba(0, 200, 5, 0.55); transform: translateY(-3px); text-decoration: none; }
.receipt-title { font-size: 30px; letter-spacing: 0.02em; }
.receipt-sub { font-size: 12px; color: var(--t3); letter-spacing: 0.06em; }
.receipt:hover .receipt-sub { color: var(--green); }
.receipts-note { margin-top: 36px; font-size: 12px; color: var(--t3); text-align: center; }

/* ============ ROADMAP ============ */
.section-roadmap { text-align: center; }
.phases { list-style: none; margin-top: 26px; }
.phase {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.phase:first-child { border-top: 1px solid var(--line); }
.phase-name {
  display: block;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  color: var(--t2);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}
.phase-sub { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0.14em; color: var(--t3); }
.phase-note { display: block; margin-top: 10px; font-size: 12px; letter-spacing: 0.24em; color: var(--t3); }
.phase-current .phase-name { color: var(--green); }
.phase-current .phase-note { color: var(--green); }
.roadmap-footnote { margin-top: 46px; font-size: 13px; color: var(--t3); }

/* ============ COMMUNITY / FOOTER ============ */
.section-community { text-align: center; padding-bottom: 80px; }
.community-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 20px 40px;
  text-align: center;
}
.footer-disclaimer {
  max-width: 720px;
  margin: 0 auto 26px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--t3);
}
.footer-copy { font-size: 12px; color: var(--t2); margin-bottom: 10px; }
.footer-cat { font-size: 11px; color: var(--t4); }

/* ============ PRESS B PILL ============ */
.bpill-wrap {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bpill-wrap.b-muted .bpill { opacity: 0.45; }
.bpill-wrap.b-muted .keycap { color: var(--t3); text-decoration: line-through; }
.bpill-mute {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--t3);
  width: 26px; height: 26px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, color 0.15s;
}
.bpill-mute:hover, .bpill-mute:focus-visible { opacity: 1; color: var(--t1); }
.bpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--t3);
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.bpill:hover { border-color: rgba(0, 200, 5, 0.5); color: var(--t1); }
.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom-width: 3px;
  border-radius: 5px;
  font-weight: 600;
  color: var(--green);
  background: rgba(255, 255, 255, 0.04);
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translate(-50%, 16px);
  z-index: 60;
  background: var(--panel);
  border: 1px solid rgba(0, 200, 5, 0.55);
  color: var(--t1);
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.toast-red { border-color: rgba(238, 49, 36, 0.6); }

/* ============ FLASH (easter egg) ============ */
.flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 4, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.flash.show { opacity: 1; }
.flash-text {
  font-size: clamp(36px, 8vw, 90px);
  color: var(--green);
  letter-spacing: 0.04em;
  text-shadow: 0 0 30px rgba(0, 200, 5, 0.6), 4px 4px 0 rgba(0, 0, 0, 0.7);
  text-align: center;
  padding: 0 20px;
}

/* Confetti bits */
.bit {
  position: fixed;
  z-index: 110;
  pointer-events: none;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  will-change: transform, opacity;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .exhibits, .steps, .receipts { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 12, 14, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .nav-win { padding: 14px 24px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-burger { display: flex; }
  .nav-price { display: none; }
  .tl-stamp { position: static; display: inline-block; transform: rotate(-2deg); margin-bottom: 12px; padding: 4px 12px; }
  .hero-stats .stat { flex: 1 1 40%; min-width: 130px; padding: 14px 18px; }
  .stat-value { font-size: 19px; }
  .section { padding: 80px 18px; }
  .bpill-wrap { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .hero-ctas .btn { flex: 1 1 100%; }
  .ca-pill { width: 100%; justify-content: space-between; }
  .community-links .btn { width: 100%; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .hero-ghosts span { animation: none; }
  .hero-chevron span { animation: none; }
  .chart-line { stroke-dashoffset: 0 !important; animation: none !important; }
  .chart-area, .chart-halt, .chart-label { opacity: 1 !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============ WINDOW LAYER ============ */
.winlayer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 5, 6, 0.8);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 4vh 16px 40px;
}
.win {
  position: relative;
  width: min(880px, 100%);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: grab;
  user-select: none;
}
.win-bar:active { cursor: grabbing; }
.win-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.win-title { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 13px; letter-spacing: 0.18em; color: var(--t2); margin: 0; }
.win-close {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--t3);
  width: 28px; height: 28px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.win-close:hover { color: var(--red-text); border-color: rgba(238, 49, 36, 0.5); }

/* ============ TRADE-IN APP ============ */
.win-body.tradein { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ti-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 34px 10px 6px;
  grid-row: 1;
}
.ti-hint { grid-row: 2; text-align: center; font-size: 10px; letter-spacing: 0.2em; color: var(--t3); padding-bottom: 20px; }
.ti-arrow {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--t2);
  width: 36px; height: 56px;
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.ti-arrow:hover { color: var(--green); border-color: rgba(0, 200, 5, 0.5); }

.box-scene {
  width: 230px;
  height: 310px;
  perspective: 950px;
  touch-action: none;
  cursor: grab;
}
.box-scene:active { cursor: grabbing; }
.box3d {
  position: relative;
  width: 170px;
  height: 270px;
  margin: 20px auto;
  transform-style: preserve-3d;
  will-change: transform;
}
.bface {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid rgba(0, 0, 0, 0.5);
}
.bface-front  { transform: rotateY(0deg) translateZ(12px); }
.bface-back   { transform: rotateY(180deg) translateZ(12px); }
.bface-left   { width: 24px; left: 73px; transform: rotateY(-90deg) translateZ(85px); }
.bface-right  { width: 24px; left: 73px; transform: rotateY(90deg) translateZ(85px); }
.bface-top    { height: 24px; top: 123px; transform: rotateX(90deg) translateZ(135px); }
.bface-bottom { height: 24px; top: 123px; transform: rotateX(-90deg) translateZ(135px); }
.bface-left, .bface-right, .bface-top, .bface-bottom { background: #101114; }

/* cover anatomy */
.cov {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
}
.cov-plat { font-family: "IBM Plex Mono", monospace; font-size: 8px; letter-spacing: 0.3em; opacity: 0.85; }
.cov-title {
  font-family: "Anton", sans-serif;
  font-size: 26px;
  line-height: 1;
  margin-top: auto;
  text-transform: uppercase;
  word-break: break-word;
}
.cov-sub { font-family: "IBM Plex Mono", monospace; font-size: 8px; letter-spacing: 0.18em; margin-top: 6px; opacity: 0.8; }
.preowned {
  position: absolute;
  top: 10px; right: -30px;
  transform: rotate(30deg);
  background: #F5C518;
  color: #1a1500;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.22em;
  padding: 4px 34px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.spine-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
  white-space: nowrap;
  font-family: "Anton", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}
.backface-inner {
  position: absolute;
  inset: 0;
  background: #16171b;
  padding: 14px;
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Mono", monospace;
}
.backface-blurb { font-size: 9px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.pricestack { margin-top: auto; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.pricetag {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 2px;
  background: #e8e2d2;
  color: #222;
}
.pricetag s { opacity: 0.75; }
.pricetag.final { background: #F5C518; }
.barcode {
  margin-top: 8px;
  height: 26px;
  width: 84px;
  background: repeating-linear-gradient(90deg, #ddd 0 2px, #16171b 2px 4px, #ddd 4px 5px, #16171b 5px 8px);
  border-radius: 1px;
}

/* right panel */
.ti-panel {
  grid-row: 1 / span 2;
  grid-column: 2;
  border-left: 1px solid var(--line);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ti-game { font-size: clamp(22px, 3vw, 30px); line-height: 1.05; margin: 0 0 6px; }
.ti-platline { font-size: 11px; letter-spacing: 0.14em; color: var(--t2); }
.ti-chip {
  display: inline-block;
  margin-left: 8px;
  font-size: 9px;
  letter-spacing: 0.22em;
  border: 1px solid rgba(238, 49, 36, 0.5);
  color: var(--red-text);
  border-radius: 4px;
  padding: 2px 7px;
  vertical-align: 1px;
}
.ti-chip.chip-ok { border-color: rgba(0, 200, 5, 0.45); color: var(--green); }
.ti-controls { display: flex; flex-direction: column; gap: 14px; }
.ti-field { font-size: 10px; letter-spacing: 0.24em; color: var(--t3); display: flex; flex-direction: column; gap: 7px; }
.ti-field select {
  background: var(--bg);
  color: var(--t1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  letter-spacing: normal;
}
.ti-payout { display: flex; gap: 8px; }
.ti-pay {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--t2);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 10px 6px;
  cursor: pointer;
}
.ti-pay.selected { border-color: rgba(0, 200, 5, 0.55); color: var(--t1); background: var(--green-dim); }
.ti-check { width: 100%; }
.ti-out { min-height: 150px; font-size: 12px; }
.ti-log { color: var(--t3); margin-bottom: 4px; }
.ti-offer { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 14px; }
.ti-offer-label { font-size: 10px; letter-spacing: 0.28em; color: var(--t3); }
.ti-offer-value {
  font-family: "Anton", sans-serif;
  font-size: 54px;
  line-height: 1.1;
  color: var(--gold);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
}
.ti-offer-line { font-size: 14px; font-weight: 600; color: var(--t1); letter-spacing: 0.06em; margin-top: 2px; }
.ti-offer-sub { font-size: 12px; color: var(--t2); margin-top: 8px; max-width: 34ch; }
.ti-offer-final { font-size: 10px; letter-spacing: 0.2em; color: var(--t3); margin-top: 12px; }

@media (max-width: 900px) {
  .win-body.tradein { grid-template-columns: 1fr; }
  .ti-panel { grid-column: 1; grid-row: auto; border-left: none; border-top: 1px solid var(--line); }
  .winlayer { padding: 2vh 10px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .box3d { transition: none !important; }
}

/* ============ TRADE-IN: actions row ============ */
.ti-actions { display: flex; gap: 10px; }
.ti-actions .btn { flex: 1; padding-left: 8px; padding-right: 8px; }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: default; }
.btn-primary[aria-disabled="true"]:hover { transform: none; box-shadow: 4px 4px 0 rgba(0, 200, 5, 0.25); }

/* ============ TRADE-IN: front-face art ============ */
.cov-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bface-front svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.13) 38%, rgba(255, 255, 255, 0.03) 44%, transparent 52%);
}

/* ============ TRADE-IN launcher pill ============ */
.fab-tradein {
  position: fixed;
  bottom: 22px; left: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--t2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.fab-tradein:hover { border-color: rgba(245, 197, 24, 0.55); color: var(--t1); }
.fab-tag {
  width: 15px; height: 10px;
  background: #F5C518;
  clip-path: polygon(0 50%, 28% 0, 100% 0, 100% 100%, 28% 100%);
}

@media (max-width: 900px) {
  .fab-tradein { bottom: 16px; left: 16px; }
}

/* ============ FEATURES SHEET (mobile) ============ */
.features-fab { display: none; }

.features-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  background: rgba(17, 19, 23, 0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px 20px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  max-height: 62vh;
  display: flex;
  flex-direction: column;
  transform: translateY(102%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0s 0.32s;
}
.features-sheet.open {
  transform: none;
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.fs-handle {
  width: 42px; height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin: 2px auto 12px;
}
.fs-title {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--t3);
  margin-bottom: 12px;
  text-align: center;
}
.fs-scroll {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.fs-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--t1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
}
.features-sheet.open .fs-card {
  animation: fsIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.features-sheet.open .fs-card:nth-child(1) { animation-delay: 0.05s; }
.features-sheet.open .fs-card:nth-child(2) { animation-delay: 0.12s; }
.features-sheet.open .fs-card:nth-child(3) { animation-delay: 0.19s; }
@keyframes fsIn { to { opacity: 1; transform: none; } }
.fs-card:active { border-color: rgba(0, 200, 5, 0.5); }
.fs-icon { grid-row: 1 / span 2; justify-self: center; }
.fs-tag {
  width: 20px; height: 14px;
  background: #F5C518;
  clip-path: polygon(0 50%, 28% 0, 100% 0, 100% 100%, 28% 100%);
}
.fs-lock { color: var(--t3); font-size: 18px; }
.fs-name { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; }
.fs-sub { grid-column: 2; font-size: 11px; color: var(--t3); }
.fs-locked { opacity: 0; cursor: default; }
.features-sheet.open .fs-locked { animation: fsIn 0.35s 0.19s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; }
.fs-locked .fs-name { color: var(--t3); }

.features-caret { display: inline-block; font-size: 9px; transition: transform 0.25s; }
.features-fab[aria-expanded="true"] .features-caret { transform: rotate(180deg); }

@media (max-width: 900px) {
  .fab-tradein, .bpill-wrap { display: none; }
  .features-fab {
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    z-index: 46;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--panel);
    border: 1px solid rgba(0, 200, 5, 0.4);
    border-radius: 999px;
    color: var(--t1);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .features-sheet { transition: none; }
  .features-sheet.open .fs-card, .features-sheet.open .fs-locked { animation: none; opacity: 1; transform: none; }
}

/* ============ PFP TERMINAL ============ */
.win-body.pfp { display: grid; grid-template-columns: 1.1fr 1fr; }
.pfp-stage { padding: 26px 24px; }
#pfp-canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  touch-action: pan-y;
  cursor: grab;
  display: block;
}
#pfp-canvas:active { cursor: grabbing; }
.pfp-note { margin-top: 12px; font-size: 10px; letter-spacing: 0.16em; color: var(--t3); text-align: center; }
.pfp-panel {
  border-left: 1px solid var(--line);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pfp-upload { position: relative; overflow: hidden; }
.pfp-upload:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.pfp-panel input[type="range"] { accent-color: var(--green); width: 100%; }
.pfp-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pfp-hint { font-size: 10px; letter-spacing: 0.18em; color: var(--t3); text-align: center; }

.fs-band {
  width: 22px; height: 9px;
  background: #C8102E;
  border-radius: 5px;
  transform: rotate(-8deg);
  box-shadow: 0 3px 0 -1px #8F0C20;
}

@media (max-width: 900px) {
  .win-body.pfp { grid-template-columns: 1fr; }
  .pfp-panel { border-left: none; border-top: 1px solid var(--line); }
}

/* ============ PFP TERMINAL v2 (AI) ============ */
.pfp-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pfp-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pfp-empty { text-align: center; font-size: 15px; font-weight: 600; letter-spacing: 0.2em; color: var(--t3); line-height: 2.2; }
.pfp-empty span { font-size: 11px; font-weight: 400; letter-spacing: 0.16em; }
.pfp-out { min-height: 68px; font-size: 12px; }
#pfp-turnstile:empty { display: none; }

/* PFP: pull-from-X row */
.pfp-handle { display: flex; align-items: center; gap: 8px; }
.pfp-at { color: var(--t3); font-size: 15px; }
.pfp-handle input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  color: var(--t1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  letter-spacing: normal;
}
.pfp-handle input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.pfp-handle .btn { flex-shrink: 0; }
.pfp-or { text-align: center; font-size: 10px; letter-spacing: 0.2em; color: var(--t4); }

/* ============ PFP GEN prominence ============ */
.band-dot {
  display: inline-block;
  width: 14px; height: 7px;
  background: #C8102E;
  border-radius: 4px;
  transform: rotate(-8deg);
  flex-shrink: 0;
}
@keyframes pfpGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 200, 5, 0.14); }
  50%      { box-shadow: 0 0 18px rgba(0, 200, 5, 0.42); }
}
.nav-links .nav-win-hot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  border: 1px solid rgba(0, 200, 5, 0.45);
  border-radius: 999px;
  padding: 6px 14px;
  animation: pfpGlow 2.8s ease-in-out infinite;
}
.nav-links .nav-win-hot:hover { color: var(--t1); border-color: var(--green); }

.fab-pfp {
  position: fixed;
  bottom: 74px; left: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid rgba(0, 200, 5, 0.5);
  border-radius: 999px;
  color: var(--t1);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 12px 18px;
  cursor: pointer;
  animation: pfpGlow 2.8s ease-in-out infinite;
}
.fab-pfp:hover { border-color: var(--green); color: var(--green); }

.fs-card.fs-hot {
  border-color: rgba(0, 200, 5, 0.5);
  box-shadow: 0 0 22px rgba(0, 200, 5, 0.14);
}
.fs-new {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--green);
  border: 1px solid rgba(0, 200, 5, 0.5);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: 2px;
}

@media (max-width: 900px) {
  .fab-pfp { display: none; }
  .nav-links .nav-win-hot {
    border: 0;
    border-radius: 0;
    padding: 14px 24px;
    animation: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links .nav-win-hot, .fab-pfp { animation: none; }
}

/* ============ PFP/window mobile hardening ============ */
/* grid items default to min-width:auto — oversized content (pulled avatars,
   long log lines) must never be able to widen the window */
.win-body.pfp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.win-body.tradein { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pfp-stage, .pfp-panel, .ti-stage, .ti-panel { min-width: 0; }
.pfp-frame { max-width: 420px; margin-left: auto; margin-right: auto; }
.pfp-frame img { max-width: 100%; max-height: 100%; }
.pfp-out, .ti-out { overflow-wrap: anywhere; }
.winlayer { overflow-x: hidden; }
.win { max-width: 100%; }

@media (max-width: 900px) {
  .win-body.pfp, .win-body.tradein { grid-template-columns: minmax(0, 1fr); }
  .pfp-frame { max-width: min(100%, 340px); }
  .pfp-stage { padding: 20px 18px 10px; }
}

/* iOS auto-zooms any focused field under 16px — keep controls at 16px on mobile */
@media (max-width: 900px) {
  .pfp-handle input,
  .ti-field select {
    font-size: 16px;
  }
}

/* ============ PFP GEN prominence ============ */
.band-dot {
  display: inline-block;
  width: 14px; height: 7px;
  background: #C8102E;
  border-radius: 4px;
  transform: rotate(-8deg);
  flex-shrink: 0;
}
@keyframes pfpGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 200, 5, 0.14); }
  50%      { box-shadow: 0 0 18px rgba(0, 200, 5, 0.42); }
}
.nav-links .nav-win-hot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  border: 1px solid rgba(0, 200, 5, 0.45);
  border-radius: 999px;
  padding: 6px 14px;
  animation: pfpGlow 2.8s ease-in-out infinite;
}
.nav-links .nav-win-hot:hover { color: var(--t1); border-color: var(--green); }

.fab-pfp {
  position: fixed;
  bottom: 74px; left: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid rgba(0, 200, 5, 0.5);
  border-radius: 999px;
  color: var(--t1);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 12px 18px;
  cursor: pointer;
  animation: pfpGlow 2.8s ease-in-out infinite;
}
.fab-pfp:hover { border-color: var(--green); color: var(--green); }

.fs-card.fs-hot {
  border-color: rgba(0, 200, 5, 0.5);
  box-shadow: 0 0 22px rgba(0, 200, 5, 0.14);
}
.fs-new {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--green);
  border: 1px solid rgba(0, 200, 5, 0.5);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: 2px;
}

@media (max-width: 900px) {
  .fab-pfp { display: none; }
  .nav-links .nav-win-hot {
    border: 0;
    border-radius: 0;
    padding: 14px 24px;
    animation: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links .nav-win-hot, .fab-pfp { animation: none; }
}

/* ============ PFP/window mobile hardening ============ */
/* grid items default to min-width:auto — oversized content (pulled avatars,
   long log lines) must never be able to widen the window */
.win-body.pfp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.win-body.tradein { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pfp-stage, .pfp-panel, .ti-stage, .ti-panel { min-width: 0; }
.pfp-frame { max-width: 420px; margin-left: auto; margin-right: auto; }
.pfp-frame img { max-width: 100%; max-height: 100%; }
.pfp-out, .ti-out { overflow-wrap: anywhere; }
.winlayer { overflow-x: hidden; }
.win { max-width: 100%; }

@media (max-width: 900px) {
  .win-body.pfp, .win-body.tradein { grid-template-columns: minmax(0, 1fr); }
  .pfp-frame { max-width: min(100%, 340px); }
  .pfp-stage { padding: 20px 18px 10px; }
}

/* iOS auto-zooms any focused field under 16px — keep controls at 16px on mobile */
@media (max-width: 900px) {
  .pfp-handle input,
  .ti-field select {
    font-size: 16px;
  }
}

/* ============ HALT TERMINAL (3D reaction game) ============ */
.win-body.halt { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.halt-stage {
  min-width: 0;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.halt-canvas {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
}
.halt-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.halt-status { min-height: 38px; font-size: 12px; color: var(--t2); letter-spacing: 0.06em; }
.halt-status.armed { color: var(--red-text); font-weight: 600; }
.halt-status.scored { color: var(--green); font-weight: 600; }
.btn-danger {
  background: var(--red);
  color: #2a0300;
  box-shadow: 4px 4px 0 rgba(238, 49, 36, 0.25);
}
.btn-danger:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(238, 49, 36, 0.25); }
.btn-danger[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.btn-danger[aria-disabled="true"]:hover { transform: none; box-shadow: 4px 4px 0 rgba(238, 49, 36, 0.25); }
.halt-bar { width: 100%; }
.halt-hint { font-size: 9px; letter-spacing: 0.22em; color: var(--t3); text-align: center; }
.halt-side {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.halt-side input {
  background: var(--bg);
  color: var(--t1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  letter-spacing: normal;
}
.halt-note { font-size: 10px; letter-spacing: 0.2em; color: var(--t3); }
.halt-board-head { font-size: 10px; letter-spacing: 0.22em; color: var(--t3); margin-bottom: 8px; }
.halt-board ol { list-style: none; }
.halt-board li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.halt-board li .hb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--t2); }
.halt-board li .hb-ms { color: var(--green); flex-shrink: 0; }
.halt-board li:first-child .hb-name, .halt-board li:first-child .hb-ms { color: var(--gold); }
.halt-board-empty { font-size: 12px; color: var(--t3); }
#halt-turnstile:empty { display: none; }
.fs-haltbtn {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 3px 0 #7d0a1c;
}

@media (max-width: 900px) {
  .win-body.halt { grid-template-columns: minmax(0, 1fr); }
  .halt-side { border-left: none; border-top: 1px solid var(--line); }
  .halt-side input { font-size: 16px; }
  .halt-canvas { aspect-ratio: 4 / 3; }
}


/* ============ HALT TERMINAL v2 ============ */
.win-body.halt2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 22px;
  min-width: 0;
}
.halt-explain { font-size: 12px; color: var(--t2); letter-spacing: 0.04em; line-height: 1.6; }
.halt-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #06070a;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
}
.halt-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.halt-result[hidden] { display: none; }
.halt-result {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(5, 6, 8, 0.55);
  backdrop-filter: blur(2px);
  text-align: center;
  padding: 20px;
  pointer-events: none;
}
.halt-result .hr-ms {
  font-family: "Anton", sans-serif;
  font-size: clamp(44px, 9vw, 92px);
  color: var(--gold);
  text-shadow: 0 0 34px rgba(231, 181, 101, 0.5), 3px 3px 0 rgba(0, 0, 0, 0.7);
  line-height: 1;
}
.halt-result .hr-ms.hr-bad { color: var(--red-text); text-shadow: 0 0 34px rgba(238, 49, 36, 0.4), 3px 3px 0 rgba(0, 0, 0, 0.7); }
.halt-result .hr-line { font-size: 13px; color: var(--t1); letter-spacing: 0.08em; max-width: 46ch; }
.halt-result .hr-rank { font-size: 11px; color: var(--green); letter-spacing: 0.22em; }
.halt-status { min-height: 22px; font-size: 12px; color: var(--t2); letter-spacing: 0.06em; }
.halt-status.armed { color: var(--red-text); font-weight: 600; }
.halt-status.scored { color: var(--green); font-weight: 600; }
.halt-bar { width: 100%; }
.halt-hint { font-size: 9px; letter-spacing: 0.22em; color: var(--t3); text-align: center; }
.halt-row { display: flex; gap: 12px; align-items: flex-end; }
.halt-namefield { flex: 1; min-width: 0; }
.halt-namefield input {
  width: 100%;
  background: var(--bg);
  color: var(--t1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  letter-spacing: normal;
}
.halt-open { flex-shrink: 0; }
.halt-note { font-size: 10px; letter-spacing: 0.2em; color: var(--t3); }
.halt-board-head { font-size: 10px; letter-spacing: 0.22em; color: var(--t3); margin-bottom: 8px; }
.halt-board ol { list-style: none; column-count: 2; column-gap: 28px; }
.halt-board li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
  break-inside: avoid;
}
.halt-board li .hb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--t2); }
.halt-board li .hb-ms { color: var(--green); flex-shrink: 0; }
.halt-board li:first-child .hb-name, .halt-board li:first-child .hb-ms { color: var(--gold); }
.halt-board-empty { font-size: 12px; color: var(--t3); }
#halt-turnstile:empty { display: none; }
.btn-danger {
  background: var(--red);
  color: #2a0300;
  box-shadow: 4px 4px 0 rgba(238, 49, 36, 0.25);
}
.btn-danger:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(238, 49, 36, 0.25); }
.btn-danger[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.btn-danger[aria-disabled="true"]:hover { transform: none; box-shadow: 4px 4px 0 rgba(238, 49, 36, 0.25); }
.fs-haltbtn {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 3px 0 #7d0a1c;
}

@media (max-width: 900px) {
  .halt-canvas { aspect-ratio: 4 / 3; }
  .halt-board ol { column-count: 1; }
  .halt-namefield input { font-size: 16px; }
  .halt-row { flex-direction: column; align-items: stretch; }
}

/* ============ HALT game launcher pill ============ */
.halt-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 0 #7d0a1c, 0 0 8px rgba(238, 49, 36, 0.5);
  flex-shrink: 0;
}
.fab-halt {
  position: fixed;
  bottom: 126px; left: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid rgba(238, 49, 36, 0.5);
  border-radius: 999px;
  color: var(--t1);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 12px 18px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.fab-halt:hover { border-color: var(--red); color: var(--red-text); }

@media (max-width: 900px) {
  .fab-halt { display: none; }
}

/* ============ LIQUIDITY LOCKED ============ */
.section-lock { text-align: center; }
.lock-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 32px;
  background: linear-gradient(180deg, rgba(0, 200, 5, 0.06), var(--panel) 70%);
  border: 1px solid rgba(0, 200, 5, 0.35);
  border-radius: 16px;
}
.lock-badge {
  color: var(--green);
  filter: drop-shadow(0 0 16px rgba(0, 200, 5, 0.4));
}
.lock-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  justify-content: center;
}
.lock-stat { display: flex; flex-direction: column; gap: 4px; }
.lock-value {
  font-family: "Anton", sans-serif;
  font-size: clamp(30px, 6vw, 46px);
  color: var(--green);
  line-height: 1;
}
.lock-label { font-size: 10px; letter-spacing: 0.26em; color: var(--t3); }
.lock-link { margin-top: 4px; }
.lock-mech { font-size: 12px; line-height: 1.6; color: var(--t2); max-width: 42ch; }


/* ===== Red/Black animated background ===== */
.gme-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #050000;
}
.gme-bg__base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(238, 49, 36, 0.35), transparent 55%),
    radial-gradient(900px 600px at 85% 80%, rgba(120, 0, 0, 0.55), transparent 50%),
    linear-gradient(160deg, #0a0000 0%, #1a0505 40%, #050000 100%);
  animation: gmeBgPulse 12s ease-in-out infinite alternate;
}
.gme-bg__grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(238, 49, 36, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 49, 36, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(600px) rotateX(55deg) translateY(-10%);
  animation: gmeGridDrift 22s linear infinite;
  opacity: 0.55;
}
.gme-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.gme-bg__glow--1 {
  width: 42vw; height: 42vw;
  left: -8%; top: 10%;
  background: rgba(238, 49, 36, 0.45);
  animation: gmeFloat1 18s ease-in-out infinite;
}
.gme-bg__glow--2 {
  width: 36vw; height: 36vw;
  right: -6%; bottom: 5%;
  background: rgba(140, 0, 0, 0.55);
  animation: gmeFloat2 22s ease-in-out infinite;
}
.gme-bg__glow--3 {
  width: 28vw; height: 28vw;
  left: 40%; top: 45%;
  background: rgba(255, 60, 40, 0.22);
  animation: gmeFloat3 14s ease-in-out infinite;
}
.gme-bg__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(238, 49, 36, 0.06) 48%,
    transparent 52%
  );
  background-size: 100% 220%;
  animation: gmeScan 7s linear infinite;
  opacity: 0.7;
}
@keyframes gmeBgPulse {
  0% { filter: brightness(0.95) saturate(1); }
  100% { filter: brightness(1.12) saturate(1.25); }
}
@keyframes gmeGridDrift {
  0% { transform: perspective(600px) rotateX(55deg) translateY(-12%) translateX(0); }
  100% { transform: perspective(600px) rotateX(55deg) translateY(8%) translateX(-4%); }
}
@keyframes gmeFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, 12%) scale(1.12); }
}
@keyframes gmeFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10%, -8%) scale(1.15); }
}
@keyframes gmeFloat3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  50% { transform: translate(-6%, 10%); opacity: 0.65; }
}
@keyframes gmeScan {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 200%; }
}
@media (prefers-reduced-motion: reduce) {
  .gme-bg__base, .gme-bg__grid, .gme-bg__glow, .gme-bg__scan { animation: none !important; }
}
body { background: #050000 !important; }
.nav, .nav-inner, header.nav {
  background: rgba(10, 0, 0, 0.72) !important;
}
