:root {
  --bg: #070709;
  --bg-elevated: #0f1014;
  --bg-card: #13141a;
  --text: #f4f4ef;
  --text-muted: #9394a1;
  --volt: #d4ff00;
  --coral: #ff3b1d;
  --cyan: #00f0ff;
  --border: rgba(244, 244, 239, 0.14);
  --border-strong: rgba(244, 244, 239, 0.34);

  --font-display: 'Bebas Neue', 'Syne', 'Noto Sans SC', sans-serif;
  --font-sans: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: clip;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% 14%, rgba(212, 255, 0, 0.08), transparent 36%),
    radial-gradient(circle at 12% 72%, rgba(255, 59, 29, 0.08), transparent 40%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.shake {
  animation: screen-shake 0.28s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

body.chaos-mode {
  background:
    radial-gradient(circle at 50% 45%, rgba(212, 255, 0, 0.2), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(255, 59, 29, 0.2), transparent 45%),
    #090a06;
}

@keyframes screen-shake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-5px, 3px) rotate(-0.35deg); }
  40% { transform: translate(5px, -4px) rotate(0.35deg); }
  60% { transform: translate(-4px, -2px) rotate(-0.2deg); }
  80% { transform: translate(3px, 4px) rotate(0.2deg); }
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: radial-gradient(#ffffff 0.75px, transparent 0.75px);
  background-size: 6px 6px;
}

#eruption-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
}

.burst-tag {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3.8rem);
  letter-spacing: 0.04em;
  padding: 0.15rem 0.75rem;
  border: 2px solid var(--bg);
  color: var(--bg);
  background: var(--volt);
  box-shadow: 6px 6px 0 var(--coral);
  user-select: none;
  animation: burst-float 1.35s var(--ease-out) forwards;
}

@keyframes burst-float {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45) rotate(var(--rot, -8deg));
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1.08) rotate(var(--rot, -8deg));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-170% + var(--dy, -90px))) scale(0.92) rotate(var(--rot2, 10deg));
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  padding: 0.08rem 0.42rem;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--volt);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 9, 0.84);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 12px var(--volt);
}

.brand-tag {
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 255, 0, 0.45);
  color: var(--volt);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--volt);
}

.mobile-nav {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1rem 0.65rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav::-webkit-scrollbar {
  display: none;
}

.mobile-nav a {
  flex: 0 0 auto;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #c8c9d3;
  white-space: nowrap;
}

.mobile-nav a:active {
  border-color: var(--volt);
  color: var(--volt);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.btn-pill:hover,
.btn-pill.active {
  border-color: var(--volt);
  color: var(--volt);
  background: rgba(212, 255, 0, 0.1);
}

.audio-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.audio-bars i {
  display: block;
  width: 3px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
}

.btn-pill.active .audio-bars i:nth-child(1) { animation: bar-bounce 0.55s infinite alternate; }
.btn-pill.active .audio-bars i:nth-child(2) { animation: bar-bounce 0.4s 0.15s infinite alternate; }
.btn-pill.active .audio-bars i:nth-child(3) { animation: bar-bounce 0.65s 0.25s infinite alternate; }

@keyframes bar-bounce {
  from { height: 3px; }
  to { height: 12px; }
}

/* Ticker */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--volt);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.36rem 0;
  animation: ticker-scroll 26s linear infinite;
}

.ticker-track .sep {
  opacity: 0.45;
}

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

/* Layout containers */
main {
  position: relative;
  z-index: 2;
}

.hero,
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  scroll-margin-top: 100px;
}

.hero {
  padding-top: 3.4rem;
  padding-bottom: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.badge-volt {
  padding: 0.25rem 0.65rem;
  background: rgba(212, 255, 0, 0.14);
  border: 1px solid rgba(212, 255, 0, 0.45);
  color: var(--volt);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 4px;
}

.mono-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.hero-title {
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.35rem;
}

.hero-title .line-zh {
  display: block;
  font-size: clamp(2.8rem, 5.4vw, 4.9rem);
}

.hero-title .accent-stroke {
  color: var(--volt);
  text-shadow: 0 0 36px rgba(212, 255, 0, 0.25);
}

.hero-title .line-sub {
  display: block;
  margin-top: 0.65rem;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.hero-desc {
  max-width: 56ch;
  color: #c8c9d3;
  font-size: 1rem;
  margin-bottom: 1.85rem;
}

.hero-desc strong {
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.45rem;
  border-radius: 10px;
  border: 2px solid var(--volt);
  background: var(--volt);
  color: var(--bg);
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--coral);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--coral);
}

.btn-primary:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--coral);
}

.btn-kbd {
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: rgba(7, 7, 9, 0.16);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--volt);
  color: var(--volt);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1.3rem;
}

.stat-box dt {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.stat-box dd {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

/* Hero Visual Stage */
.hero-stage {
  position: relative;
  min-height: 470px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(
      90deg,
      rgba(244, 244, 239, 0.03) 0 1px,
      transparent 1px 44px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(244, 244, 239, 0.03) 0 1px,
      transparent 1px 44px
    ),
    #0b0c10;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  touch-action: pan-y;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(212, 255, 0, 0.14), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.stage-hud-top,
.stage-hud-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  color: var(--volt);
}

.status-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt);
  animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.monumental-pair {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  padding: 1.5rem 0;
}

.numeral-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s var(--ease-out);
  will-change: transform;
}

.numeral-main,
.numeral-shadow {
  font-family: var(--font-display);
  font-size: clamp(9.5rem, 16vw, 15.5rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
}

.numeral-main {
  position: relative;
  color: var(--text);
}

.num-6 .numeral-main {
  color: var(--volt);
}

.num-7 .numeral-main {
  color: var(--text);
  -webkit-text-stroke: 2px var(--text);
}

.numeral-shadow {
  position: absolute;
  top: 8px;
  left: 8px;
  color: transparent;
  -webkit-text-stroke: 2px var(--coral);
  opacity: 0.85;
  pointer-events: none;
}

.palm-indicator {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.dash-pivot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.pivot-bar {
  width: 36px;
  height: 6px;
  border-radius: 99px;
  background: var(--coral);
}

.pivot-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Section Headers */
.section {
  border-top: 1px solid var(--border);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.3rem;
}

.section-index {
  display: block;
  font-size: 0.78rem;
  color: var(--volt);
  margin-bottom: 0.45rem;
  letter-spacing: 0.08em;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 900;
  line-height: 1.15;
}

.section-lead {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.section-lead strong {
  color: var(--text);
}

/* Simulator */
.sim-board {
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  padding: 1.5rem;
}

.sim-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.85fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.palm-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.14s var(--ease-out), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.palm-pad:hover {
  border-color: var(--volt);
}

.palm-pad.is-up {
  transform: translateY(-14px);
  border-color: var(--volt);
  background: rgba(212, 255, 0, 0.12);
  box-shadow: 0 18px 34px rgba(212, 255, 0, 0.16);
}

.palm-pad[data-side="7"].is-up {
  border-color: var(--coral);
  background: rgba(255, 59, 29, 0.14);
  box-shadow: 0 18px 34px rgba(255, 59, 29, 0.2);
}

.pad-kicker {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pad-glyph.mirrored svg {
  transform: scaleX(-1);
}

.pad-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.pad-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sim-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  border: 1px dashed var(--border-strong);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.combo-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.combo-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

#combo-value {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.95;
  color: var(--volt);
}

.combo-tier {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 59, 29, 0.18);
  color: #ff7e69;
  font-weight: 700;
}

.meter-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid var(--border);
}

.meter-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--volt), var(--coral));
  transition: width 0.15s ease-out;
}

.sim-readout {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Meme Gallery */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--volt);
  background: var(--volt);
  color: var(--bg);
  font-weight: 700;
}

.meme-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.meme-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.22s var(--ease-out), border-color 0.22s ease, box-shadow 0.22s ease;
}

.meme-card.is-hidden {
  display: none;
}

.meme-card:hover {
  transform: translateY(-5px);
  border-color: var(--volt);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.meme-media {
  position: relative;
  height: 280px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: radial-gradient(circle at 50% 60%, rgba(212, 255, 0, 0.06), #090a0e 75%);
  overflow: hidden;
  cursor: zoom-in;
}

.meme-media img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  transition: transform 0.35s var(--ease-out);
}

.meme-card:hover .meme-media img {
  transform: scale(1.03);
}

.meme-badge {
  align-self: flex-start;
  order: -1;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: rgba(7, 7, 9, 0.9);
  border: 1px solid var(--volt);
  color: var(--volt);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.meme-body {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.meme-body h3 {
  font-size: 1.08rem;
  font-weight: 800;
}

.meme-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.meme-meta {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #7c7d8b;
  border-top: 1px solid var(--border);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-dialog {
  position: relative;
  max-width: 820px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(7, 7, 9, 0.82);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--volt);
  color: var(--volt);
}

.lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #050507;
  display: block;
}

.lightbox-caption {
  padding: 1rem 1.35rem;
  border-top: 1px solid var(--border);
}

.lightbox-caption h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.lightbox-caption p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Lore Timeline */
.lore-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.lore-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease;
}

.lore-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.lore-card-highlight {
  border-color: rgba(212, 255, 0, 0.45);
  background: linear-gradient(180deg, rgba(212, 255, 0, 0.08), var(--bg-card));
}

.lore-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.72rem;
}

.lore-step {
  color: var(--volt);
  font-weight: 700;
}

.lore-tag {
  font-family: var(--font-mono);
  padding: 0.14rem 0.48rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.lore-visual {
  height: 86px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.visual-waveform {
  gap: 6px;
}

.visual-waveform span {
  width: 6px;
  border-radius: 99px;
  background: var(--volt);
  height: 20px;
  animation: wave 1s infinite ease-in-out;
}

.visual-waveform span:nth-child(2n) {
  background: var(--coral);
  animation-delay: 0.2s;
}
.visual-waveform span:nth-child(3n) {
  animation-delay: 0.45s;
}

@keyframes wave {
  0%, 100% { height: 14px; }
  50% { height: 54px; }
}

.court-arc {
  width: 90px;
  height: 90px;
  border: 2px dashed rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  position: absolute;
  bottom: -44px;
}

.court-height {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--volt);
}

.visual-scales {
  gap: 1rem;
}

.scale-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  background: var(--volt);
  color: var(--bg);
}

.scale-dot.left {
  animation: teeter-left 1.3s ease-in-out infinite alternate;
}

.scale-dot.right {
  background: var(--coral);
  color: var(--text);
  animation: teeter-right 1.3s ease-in-out infinite alternate;
}

.scale-beam {
  width: 56px;
  height: 3px;
  background: var(--text);
  animation: beam-tilt 1.3s ease-in-out infinite alternate;
}

@keyframes teeter-left {
  from { transform: translateY(-10px); }
  to { transform: translateY(10px); }
}

@keyframes teeter-right {
  from { transform: translateY(10px); }
  to { transform: translateY(-10px); }
}

@keyframes beam-tilt {
  from { transform: rotate(-14deg); }
  to { transform: rotate(14deg); }
}

.visual-stamp span {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 0.95;
  text-align: center;
  color: var(--volt);
  letter-spacing: 0.06em;
  border: 2px solid var(--volt);
  padding: 0.25rem 0.65rem;
  transform: rotate(-4deg);
}

.lore-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.lore-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.lore-foot {
  margin-top: auto;
  font-size: 0.7rem;
  color: #777987;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

/* Classroom & Decoder Lab */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.lab-panel {
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-chip {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.status-chip.alert {
  border-color: var(--coral);
  background: rgba(255, 59, 29, 0.2);
  color: #ff8b78;
}

.chalk-quote {
  padding: 1.35rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0a1410;
}

.teacher-line {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.page-num {
  display: inline-block;
  min-width: 2.1ch;
  text-align: center;
  color: var(--volt);
  font-family: var(--font-display);
  font-size: 2rem;
  vertical-align: middle;
}

.class-reaction {
  font-size: 0.92rem;
  color: #a6c4b5;
}

.slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--volt);
  cursor: pointer;
}

.slider-marks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.quick-67 {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--volt);
  background: rgba(212, 255, 0, 0.12);
  color: var(--volt);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
}

.quick-67:hover {
  background: var(--volt);
  color: var(--bg);
}

.decoder-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.decoder-form {
  display: flex;
  gap: 0.7rem;
}

.decoder-form input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.decoder-form input:focus {
  outline: none;
  border-color: var(--volt);
}

.decoder-output {
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.32);
}

.decoder-verdict {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.decoder-verdict span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.decoder-verdict strong {
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--volt);
  letter-spacing: 0.04em;
}

.decoder-explain {
  font-size: 0.9rem;
  color: #cbccd6;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.3rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--volt);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid,
  .section-head,
  .lab-grid {
    grid-template-columns: 1fr;
  }
  .lore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .meme-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }
  .hero,
  .section {
    scroll-margin-top: 132px;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    padding: 0.72rem 1rem;
    gap: 0.5rem;
  }
  .brand {
    font-size: 0.8rem;
    gap: 0.45rem;
  }
  .brand-tag {
    font-size: 0.64rem;
    padding: 0.1rem 0.4rem;
  }
  .btn-pill {
    padding: 0.4rem 0.72rem;
    font-size: 0.68rem;
    gap: 0.4rem;
  }
  .ticker {
    font-size: 0.68rem;
  }
  .hero {
    padding: 1.75rem 1rem 2.6rem;
  }
  .section {
    padding: 2.75rem 1rem;
  }
  .hero-grid {
    gap: 1.5rem;
  }
  .hero-title .line-zh {
    font-size: clamp(2.25rem, 10.5vw, 3.1rem);
  }
  .hero-title .line-sub {
    font-size: 1rem;
  }
  .hero-desc {
    font-size: 0.92rem;
    margin-bottom: 1.35rem;
  }
  .hero-cta {
    gap: 0.7rem;
    margin-bottom: 1.5rem;
  }
  .btn-primary,
  .btn-ghost {
    padding: 0.78rem 1.15rem;
    font-size: 0.9rem;
    touch-action: manipulation;
  }
  .btn-kbd {
    display: none;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    padding-top: 1rem;
  }
  .stat-box dt {
    font-size: 0.68rem;
  }
  .stat-box dd {
    font-size: 0.88rem;
    word-break: break-word;
  }
  .hero-stage {
    min-height: 270px;
    padding: 1rem;
    border-radius: 16px;
  }
  .stage-hud-top,
  .stage-hud-bottom {
    font-size: 0.66rem;
    flex-wrap: wrap;
  }
  .monumental-pair {
    padding: 0.75rem 0;
    gap: 0.85rem;
  }
  .numeral-main,
  .numeral-shadow {
    font-size: clamp(6rem, 23vw, 8.2rem);
  }
  .numeral-shadow {
    top: 5px;
    left: 5px;
  }
  .section-head {
    gap: 0.85rem;
    margin-bottom: 1.5rem;
  }
  .section-head h2 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }
  .section-lead {
    font-size: 0.9rem;
  }
  /* Side-by-side thumb pads on mobile */
  .sim-board {
    padding: 1rem;
    border-radius: 16px;
  }
  .sim-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .sim-center {
    grid-column: 1 / -1;
    order: -1;
    padding: 1rem 0.9rem;
    gap: 0.75rem;
  }
  #combo-value {
    font-size: 3.4rem;
  }
  .palm-pad {
    padding: 1.15rem 0.65rem;
    gap: 0.45rem;
    touch-action: manipulation;
  }
  .palm-pad.is-up {
    transform: translateY(-7px);
  }
  .pad-glyph svg {
    width: 62px;
    height: 62px;
  }
  .pad-num {
    font-size: 1.95rem;
  }
  .pad-kicker,
  .pad-hint {
    font-size: 0.66rem;
  }
  /* Gallery on mobile */
  .gallery-toolbar {
    gap: 0.65rem;
    margin-bottom: 1rem;
  }
  .filter-pills {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
  }
  .filter-pills::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex: 0 0 auto;
    padding: 0.42rem 0.8rem;
    font-size: 0.72rem;
  }
  .meme-masonry,
  .lore-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .meme-media {
    height: 230px;
  }
  .lightbox {
    padding: 0.75rem;
  }
  .lightbox-close {
    width: 42px;
    height: 42px;
    top: 0.65rem;
    right: 0.65rem;
  }
  .lightbox-img {
    max-height: 62vh;
  }
  .lightbox-caption {
    padding: 0.9rem 1rem;
  }
  /* Lab panels on mobile */
  .lab-panel {
    padding: 1.15rem;
    gap: 1rem;
  }
  .chalk-quote {
    padding: 1rem;
  }
  .teacher-line {
    font-size: 1.05rem;
  }
  .page-num {
    font-size: 1.7rem;
  }
  .slider-wrap input[type="range"] {
    height: 28px;
  }
  .decoder-form {
    flex-direction: column;
  }
  .decoder-form input {
    font-size: 16px;
  }
  .footer-inner {
    padding: 1.8rem 1rem;
  }
  .footer-right {
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .brand-tag {
    display: none;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary,
  .btn-ghost {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
