:root {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}

:root {
  color-scheme: dark;
  --bg: #04060f;
  --bg-accent: #0e1330;
  --surface: rgba(14, 18, 43, 0.85);
  --surface-strong: rgba(21, 26, 58, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f7ff;
  --muted: #9aa5ce;
  --accent: #ffbd59;
  --accent-strong: #ff9f1c;
  --accent-cool: #42d9ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --focus: #f7f372;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(66, 217, 255, 0.2), transparent 45%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #211b0e;
  border-radius: 999px;
  font-weight: 700;
  z-index: 30;
}

.skip-link:focus-visible {
  left: 16px;
  top: 12px;
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(255, 189, 89, 0.2), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(66, 217, 255, 0.18), transparent 45%);
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 4vw, 3rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 18, 43, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.65rem 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-cool));
  box-shadow: 0 0 14px rgba(255, 189, 89, 0.7);
}

.nav-title {
  color: #fff;
}

.site-nav nav {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  cursor: pointer;
}

.nav-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-patreon {
  padding: 0.6rem 1.1rem;
  box-shadow: 0 14px 26px rgba(255, 115, 123, 0.3);
}

.nav-patreon:hover {
  transform: translateY(-2px);
}

.nav-play-latest {
  padding: 0.55rem 1.15rem;
  box-shadow: 0 14px 28px rgba(255, 159, 28, 0.35);
}

.page-shell section {
  scroll-margin-top: 90px;
}

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

.hero-copy {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 189, 89, 0.4), transparent 55%),
    radial-gradient(circle at 70% 10%, rgba(66, 217, 255, 0.4), transparent 60%);
  opacity: 0.8;
  filter: blur(50px);
  z-index: 0;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 1;
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--accent-cool);
  position: relative;
  z-index: 2;
}

 .hero-copy h1 {
  margin: 0.5rem 0 0.4rem;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.15;
  position: relative;
  z-index: 2;
}

.hero-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
}

.hero-cta-row {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.4rem 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

.hero-points li {
  background: rgba(66, 217, 255, 0.08);
  border-radius: 14px;
  padding: 0.45rem 0.75rem 0.45rem 1.6rem;
  font-size: 0.9rem;
  color: rgba(245, 247, 255, 0.85);
  position: relative;
}

.hero-points li::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(255, 189, 89, 0.9), rgba(66, 217, 255, 0.9));
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(66, 217, 255, 0.4);
}


.hero-support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  position: relative;
  z-index: 2;
  border-radius: 20px;
  padding: 0.9rem 1.1rem 1.1rem;
  background: linear-gradient(145deg, rgba(255, 189, 89, 0.18), rgba(66, 217, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.support-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 245, 200, 0.4), transparent 55%);
  opacity: 0.8;
  filter: blur(40px);
}

.support-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffe9c4;
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 18px rgba(255, 172, 82, 0.25);
}

.support-heading {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cool);
  position: relative;
  z-index: 1;
}

.support-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  border: 1px solid transparent;
  cursor: pointer;
  appearance: none;
  background: transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #211b0e;
  box-shadow: 0 18px 30px rgba(255, 159, 28, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
  background: transparent;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn.patreon {
  border: none;
  background: linear-gradient(120deg, #ff4e6a, #ff9557);
  color: #fff8f3;
  box-shadow: 0 20px 35px rgba(255, 115, 123, 0.35);
  position: relative;
  overflow: hidden;
  gap: 0.35rem;
}

.btn.patreon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 200ms ease;
}

.btn.patreon:hover::after,
.btn.patreon:focus-visible::after {
  opacity: 1;
}

.btn.patreon:hover {
  transform: translateY(-3px) scale(1.02);
}

.patreon-helper {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.patreon-icon {
  font-size: 1.1rem;
  display: inline-flex;
  animation: sparkleBounce 1.8s ease-in-out infinite;
}

@keyframes sparkleBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) rotate(8deg);
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.hero-highlight {
  background: rgba(16, 22, 46, 0.95);
  border-radius: 26px;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.hero-highlight > * {
  position: relative;
  z-index: 1;
}

.hero-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(66, 217, 255, 0.6), rgba(255, 189, 89, 0.6));
  opacity: 0.45;
  -webkit-mask: linear-gradient(#000, #000) padding-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000, #000) padding-box, linear-gradient(#000, #000);
          mask-composite: exclude;
  pointer-events: none;
}

.hero-highlight::after {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: radial-gradient(circle, rgba(255, 189, 89, 0.35), transparent 65%);
  filter: blur(60px);
  opacity: 0.8;
  z-index: 0;
}

.hero-highlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.hero-card-label {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-status-pill {
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.hero-preview {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(19, 27, 54, 0.9), rgba(15, 22, 42, 0.9));
  z-index: 1;
}

.preview-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}

[data-active-preview="gauntlet"] .preview-scene[data-preview-id="gauntlet"],
[data-active-preview="zombie"] .preview-scene[data-preview-id="zombie"],
[data-active-preview="farmlands"] .preview-scene[data-preview-id="farmlands"] {
  opacity: 1;
}

.preview-gauntlet {
  background: radial-gradient(circle at top left, rgba(66, 217, 255, 0.15), transparent 55%),
    linear-gradient(145deg, #121a32, #0e162b);
}

.gauntlet-track {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.gauntlet-track.track-1 {
  top: 60px;
}

.gauntlet-track.track-2 {
  top: 110px;
}

.gauntlet-track.track-3 {
  top: 160px;
}

.gauntlet-tower {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 189, 89, 0.8);
  box-shadow: 0 0 20px rgba(255, 189, 89, 0.4);
  animation: towerPulse 2s ease-in-out infinite;
}

.gauntlet-tower.tower-1 {
  top: 40px;
  left: 120px;
}

.gauntlet-tower.tower-2 {
  top: 125px;
  left: 260px;
  animation-delay: 0.4s;
}

.gauntlet-tower.tower-3 {
  top: 90px;
  right: 90px;
  animation-delay: 0.8s;
}

.gauntlet-runner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cool);
  box-shadow: 0 0 12px rgba(66, 217, 255, 0.5);
  left: -40px;
  animation: runnerDash 7s linear infinite;
}

.gauntlet-runner.runner-1 {
  top: 52px;
}

.gauntlet-runner.runner-2 {
  top: 102px;
  animation-duration: 6s;
  animation-delay: 1s;
}

.gauntlet-runner.runner-3 {
  top: 152px;
  animation-duration: 8s;
  animation-delay: 0.5s;
}

.gauntlet-beam {
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), transparent);
  border-radius: 999px;
  transform-origin: left center;
  animation: beamFlash 2.2s ease-in-out infinite;
}

.gauntlet-beam.beam-1 {
  top: 50px;
  left: 134px;
  width: 120px;
}

.gauntlet-beam.beam-2 {
  top: 138px;
  left: 274px;
  width: 150px;
  animation-delay: 0.6s;
}

.preview-zombie {
  background: radial-gradient(circle at 30% 20%, rgba(61, 217, 214, 0.2), transparent 50%),
    linear-gradient(160deg, #071117, #0f1b23);
}

.preview-farmlands {
  background: radial-gradient(circle at 25% 20%, rgba(242, 193, 79, 0.18), transparent 55%),
    linear-gradient(150deg, #0c120f, #0f1a12);
}

.preview-farmlands img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.zombie-backdrop {
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.zombie-tree {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(57, 82, 64, 0.9);
  filter: blur(0.5px);
}

.zombie-tree.tree-1 {
  top: 40px;
  left: 60px;
}

.zombie-tree.tree-2 {
  top: 140px;
  right: 40px;
}

.zombie-tree.tree-3 {
  top: 100px;
  left: 20px;
}

.zombie-player {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-cool);
  top: 110px;
  left: 120px;
  box-shadow: 0 0 25px rgba(61, 217, 214, 0.6);
  animation: playerPulse 1.8s ease-in-out infinite;
}

.zombie-enemy {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 15px rgba(255, 87, 87, 0.45);
  animation: zombieWander 6s ease-in-out infinite;
}

.zombie-enemy.enemy-1 {
  top: 70px;
  right: 50px;
}

.zombie-enemy.enemy-2 {
  top: 160px;
  left: 220px;
  animation-delay: 0.6s;
}

.zombie-enemy.enemy-3 {
  top: 40px;
  left: 200px;
  animation-delay: 1s;
}

.zombie-projectile {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fdf5a6;
  left: 130px;
  top: 120px;
  box-shadow: 0 0 12px rgba(253, 245, 166, 0.8);
  animation: arrowFlight 1.5s linear infinite;
}

.zombie-projectile.proj-2 {
  animation-delay: 0.5s;
  top: 96px;
  left: 140px;
}

.hero-highlight-info h2 {
  margin: 0;
  font-size: 1.5rem;
}

.hero-highlight-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-highlight-cta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.hero-highlight-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.hero-toggle:hover {
  transform: translateY(-1px);
}

.hero-toggle.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.tab-label {
  font-weight: 700;
}

.tab-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-rotate-toggle {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

.hero-rotate-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-rotate-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@keyframes runnerDash {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(100% + 90px));
  }
}

@keyframes towerPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes beamFlash {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  40% {
    transform: scaleX(1);
    opacity: 1;
  }
  80%,
  100% {
    transform: scaleX(1.1);
    opacity: 0;
  }
}

@keyframes playerPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

@keyframes zombieWander {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -10px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes arrowFlight {
  0% {
    transform: translate(0, 0) scale(0.7);
    opacity: 1;
  }
  100% {
    transform: translate(220px, -50px) scale(1.1);
    opacity: 0;
  }
}

main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lab-note-card {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.note-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.note-pill {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
}

.note-pill:hover,
.note-pill:focus-visible {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  color: var(--accent-cool);
  margin: 0 0 0.2rem;
}

.note-date {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.game-showcase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.game-showcase .game-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: var(--surface-strong);
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  align-items: center;
}

.game-card-body {
  flex: 1 1 260px;
}

.game-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.game-card-body h2 {
  margin: 0.3rem 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.game-card-body p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: rgba(66, 217, 255, 0.15);
  color: var(--accent-cool);
  font-weight: 600;
  font-size: 0.85rem;
}

.game-figure {
  flex: 0 0 250px;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-figure img {
  width: 100%;
  display: block;
}

.feedback-strip {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-quickbar {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: rgba(14, 18, 43, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 25;
  gap: 0.4rem;
}

.mobile-quickbar .quickbar-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.mobile-quickbar .quickbar-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.chapters-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chapters-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.notes-page .page-shell {
  max-width: 900px;
  gap: 1.5rem;
}

.notes-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.note-detail {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.note-detail h2 {
  margin-top: 0.2rem;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 15, 0.75);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.feedback-modal.open {
  display: flex;
}

.feedback-modal .modal-panel {
  background: var(--surface-strong);
  border-radius: 28px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  width: min(420px, calc(100% - 2rem));
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.feedback-modal form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.feedback-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.feedback-modal label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--muted);
}

.feedback-modal input,
.feedback-modal textarea {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(5, 10, 30, 0.85);
  color: var(--text);
  padding: 0.75rem 1rem;
  font: inherit;
}

.feedback-modal input:focus-visible,
.feedback-modal textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.feedback-modal button[type="submit"] {
  border: none;
  align-self: flex-start;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #211b0e;
  font-weight: 700;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(255, 159, 28, 0.35);
}

.feedback-modal button[type="submit"]:hover,
.feedback-modal button[type="submit"]:focus-visible {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .gauntlet-runner,
  .gauntlet-beam,
  .gauntlet-tower,
  .zombie-player,
  .zombie-enemy,
  .zombie-projectile {
    animation: none !important;
  }
}

@media (max-width: 960px) {
  .site-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .site-nav {
    position: sticky;
    top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-nav nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-highlight-controls {
    width: 100%;
  }

  .hero-toggle,
  .hero-rotate-toggle {
    width: 100%;
  }

  .hero-copy,
  .hero-highlight,
  .game-showcase .game-card,
  .lab-note-card,
  .feedback-strip {
    padding: 1.2rem;
  }

  .feedback-strip {
    flex-direction: column;
  }

  .mobile-quickbar {
    display: inline-flex;
  }
}
