/* ==========================================================================
   choicervoicerpacks.net — "Live from the dubbing stage"
   Visual identity follows The Choicer Voicer itself: light aqua TV studio,
   bubbly white display type with a teal outline (the game logo's signature),
   navy waveform panels, cyan → magenta audio accents.
   ========================================================================== */

:root {
  /* Studio palette — pale aqua stages, near-white cards, teal borders */
  --stage-0: oklch(0.94 0.025 215); /* page — pale aqua */
  --stage-1: oklch(0.9 0.03 215); /* recessed wells / stripes */
  --stage-2: oklch(0.99 0.008 220); /* card face — near white */
  --stage-3: oklch(0.95 0.02 215); /* hover face */
  --line: oklch(0.76 0.08 212); /* teal card border */
  --line-dim: oklch(0.85 0.045 215);

  --pink: oklch(0.62 0.23 355); /* waveform magenta — CTA */
  --pink-deep: oklch(0.52 0.2 355);
  --violet: oklch(0.6 0.18 295); /* waveform mid — minor accents */
  --cyan: oklch(0.78 0.12 205); /* bright aqua — only on dark panels */
  --teal: oklch(0.55 0.11 215); /* logo-outline teal — links/accents on light */
  --gold: oklch(0.58 0.11 85); /* prize tag bronze — readable on white cards */

  --ink: oklch(0.33 0.05 240); /* navy text */
  --ink-dim: oklch(0.45 0.045 235);
  --ink-faint: oklch(0.56 0.04 235);
  --ink-on-pink: oklch(0.99 0.005 220); /* white text on CTA */

  --font-display: 'Fredoka', 'Nunito', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', 'Trebuchet MS', Verdana, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-hard: 0 10px 24px oklch(0.42 0.07 240 / 0.16);
  --shadow-hard-sm: 0 4px 12px oklch(0.42 0.07 240 / 0.13);
  --max-width: 1120px;
  --ease-pop: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  /* The studio: pale aqua with the itch page's signature horizontal stripes */
  background: repeating-linear-gradient(
    0deg,
    var(--stage-1) 0 22px,
    var(--stage-0) 22px 44px
  );
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pink);
}

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

::selection {
  background: var(--pink);
  color: var(--ink-on-pink);
}

/* ---------- Display type ---------- */

.display,
h1.display,
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: oklch(0.99 0.008 220 / 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--line-dim);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.6vw, 1.2rem);
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--line);
  transition: transform 0.18s var(--ease-pop);
  display: inline-block;
}

.logo:hover {
  color: var(--ink);
  transform: rotate(-1.5deg) scale(1.03);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  transition:
    color 0.15s var(--ease-pop),
    border-color 0.15s var(--ease-pop),
    transform 0.15s var(--ease-pop);
}

.site-nav a:hover {
  color: var(--ink);
  border-color: var(--teal);
  transform: translateY(-1px);
  text-decoration: none;
}

.site-nav a[aria-current='page'] {
  color: var(--ink-on-pink);
  background: var(--pink);
  border-color: var(--pink);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.65;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  background: none;
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  transition:
    color 0.15s var(--ease-pop),
    border-color 0.15s var(--ease-pop),
    transform 0.15s var(--ease-pop);
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--ink);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.nav-dropdown.active .nav-dropdown-toggle {
  color: var(--ink-on-pink);
  background: var(--pink);
  border-color: var(--pink);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 30;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 10rem;
  padding: 0.5rem;
  background: var(--stage-2);
  border: 3px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4rem;
  border-top: 3px solid var(--line-dim);
  background: var(--stage-1);
  padding: 2rem 0 2.5rem;
  color: var(--ink-faint);
  font-size: 0.88rem;
  text-align: center;
}

.site-footer .disclaimer {
  max-width: 620px;
  margin: 0 auto 0.75rem;
}

.site-footer a {
  color: var(--ink-dim);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  /* Soft studio light pools: aqua + waveform magenta */
  background:
    radial-gradient(42rem 22rem at 18% 0%, oklch(0.78 0.12 205 / 0.4), transparent 65%),
    radial-gradient(38rem 20rem at 82% 4%, oklch(0.62 0.23 355 / 0.2), transparent 65%);
}

.hero .kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-on-pink);
  background: var(--pink);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  box-shadow: var(--shadow-hard-sm);
  transform: rotate(-2deg);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 7.5vw, 4.6rem);
  text-transform: uppercase;
  margin: 1.1rem auto 0.9rem;
  max-width: 16ch;
  /* The game logo's signature: white bubbly type with a teal outline */
  color: #fff;
  text-shadow:
    -3px -3px 0 var(--teal),
    3px -3px 0 var(--teal),
    -3px 3px 0 var(--teal),
    3px 3px 0 var(--teal),
    -3px 0 0 var(--teal),
    3px 0 0 var(--teal),
    0 -3px 0 var(--teal),
    0 3px 0 var(--teal),
    6px 8px 0 oklch(0.42 0.07 240 / 0.18);
}

.hero .tagline {
  color: var(--ink-dim);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons — big game show buzzers ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--pink);
  color: var(--ink-on-pink);
  border: 3px solid #fff;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s var(--ease-pop),
    box-shadow 0.15s var(--ease-pop),
    background 0.15s var(--ease-pop);
}

.btn:hover {
  background: var(--teal);
  color: var(--ink-on-pink);
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 0 16px 32px oklch(0.42 0.07 240 / 0.22);
  text-decoration: none;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 2px 6px oklch(0.42 0.07 240 / 0.2);
}

.btn.secondary {
  background: var(--stage-2);
  color: var(--teal);
  border-color: var(--teal);
}

.btn.secondary:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink-on-pink);
}

/* ---------- Ticker strip — the navy waveform panel from the game UI ---------- */

.ticker {
  border-top: 3px solid var(--line-dim);
  border-bottom: 3px solid var(--line-dim);
  background: oklch(0.3 0.06 245);
  overflow: hidden;
  padding: 0.55rem 0;
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}

.ticker-track .dot {
  color: var(--pink);
}

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

/* ---------- Sections ---------- */

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head .kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal);
  display: block;
  margin-bottom: 0.4rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  margin: 0 0 0.5rem;
  /* Logo-style bubbly white type with teal outline */
  color: #fff;
  text-shadow:
    -2px -2px 0 var(--teal),
    2px -2px 0 var(--teal),
    -2px 2px 0 var(--teal),
    2px 2px 0 var(--teal),
    -2px 0 0 var(--teal),
    2px 0 0 var(--teal),
    0 -2px 0 var(--teal),
    0 2px 0 var(--teal),
    3px 4px 0 oklch(0.42 0.07 240 / 0.16);
}

.section-head p {
  color: var(--ink-dim);
  max-width: 640px;
  margin: 0;
}

/* ---------- Homepage: centered stage layout ---------- */

.home .section-head {
  text-align: center;
}

.home .section-head p {
  margin: 0 auto;
}

.home .prose {
  margin: 0 auto;
  text-align: center;
}

.home .controls {
  justify-content: center;
}

.home .controls .results-count {
  margin-left: 0;
}

.home .faq-list {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Category / lane cards ---------- */

.lane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.lane-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--stage-2);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 1.4rem 1.3rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.18s var(--ease-pop),
    box-shadow 0.18s var(--ease-pop),
    border-color 0.18s var(--ease-pop);
}

.lane-card:hover {
  transform: translate(-3px, -3px) rotate(-0.6deg);
  box-shadow: 0 16px 32px oklch(0.42 0.07 240 / 0.22);
  border-color: var(--pink);
  text-decoration: none;
}

.lane-card .lane-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.lane-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}

.lane-card p {
  color: var(--ink-dim);
  font-size: 0.94rem;
  margin: 0;
  flex: 1;
}

.lane-card .lane-go {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- Directory controls ---------- */

.controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 1.5rem;
}

.controls input[type='search'],
.controls select {
  background: var(--stage-1);
  border: 3px solid var(--line-dim);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.15s var(--ease-pop);
}

.controls input[type='search']:focus,
.controls select:focus {
  outline: none;
  border-color: var(--teal);
}

.controls input[type='search'] {
  flex: 1;
  min-width: 200px;
}

.controls label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.controls input[type='checkbox'] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--pink);
}

.results-count {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-left: auto;
  font-weight: 700;
}

/* ---------- Pack cards ---------- */

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin: 0.5rem 0 2rem;
}

/* Featured rows on the homepage hold exactly 6 cards — pin a 3×2 grid. */
.pack-grid.featured {
  grid-template-columns: repeat(3, 1fr);
}

/* Lane grids with 6 cards (homepage guides) — same 3×2 arrangement. */
.lane-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .pack-grid.featured,
  .lane-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pack-grid.featured,
  .lane-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

.pack-card {
  background: var(--stage-2);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s var(--ease-pop),
    box-shadow 0.18s var(--ease-pop),
    border-color 0.18s var(--ease-pop);
}

.pack-card:hover {
  border-color: var(--teal);
  transform: translate(-3px, -3px) rotate(0.5deg);
  box-shadow: 0 14px 28px oklch(0.42 0.07 240 / 0.2);
}

.pack-card a.card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pack-thumb {
  aspect-ratio: 16 / 9;
  background: var(--stage-1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 3px solid var(--line-dim);
}

.pack-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-thumb .thumb-fallback {
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pack-card-body {
  padding: 0.8rem 0.95rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.pack-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0;
}

.pack-card-meta {
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.card-cta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pink);
}

.pack-card:hover .card-cta {
  color: var(--teal);
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 2px solid var(--line-dim);
  color: var(--ink-dim);
  margin-right: 0.35rem;
}

.badge.cat {
  color: var(--teal);
  border-color: var(--line);
}

/* ---------- Buttons inside grids (show more) ---------- */

.grid-more {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0.5rem auto 1rem;
  display: block;
}

/* "Browse all" link below a featured grid */
.more-link {
  text-align: center;
  margin: 0 0 1rem;
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.1rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid #fff;
  color: var(--ink-on-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-hard-sm);
}

/* ---------- Callout note ---------- */

.note {
  background: var(--stage-2);
  border: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  padding: 0.9rem 1.15rem;
  color: var(--ink-dim);
  font-size: 0.93rem;
}

/* ---------- Prose (guides / landing body) ---------- */

.prose {
  max-width: 740px;
}

.prose h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 2px 2px 0 var(--line-dim);
  margin: 0.5rem 0 1rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 2.4rem;
  text-shadow: 1.5px 1.5px 0 var(--line-dim);
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.8rem;
  color: var(--ink);
}

.prose p,
.prose li {
  color: var(--ink-dim);
}

.prose strong {
  color: var(--ink);
}

.prose code {
  background: var(--stage-1);
  border: 2px solid var(--line-dim);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
  color: var(--teal);
}

.prose pre {
  background: var(--stage-1);
  border: 3px solid var(--line-dim);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 1.4rem 0 0;
}

.breadcrumbs a {
  color: var(--ink-dim);
}

/* ---------- FAQ (details/summary as game show cards) ---------- */

.faq-list {
  display: grid;
  gap: 0.9rem;
  max-width: 780px;
}

.faq-list details {
  background: var(--stage-2);
  border: 3px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  padding: 0.2rem 1.1rem;
  transition: border-color 0.15s var(--ease-pop);
}

.faq-list details[open] {
  border-color: var(--pink);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  padding: 0.8rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.faq-list summary::before {
  content: 'Q';
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--ink-on-pink);
  background: var(--pink);
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-list details[open] summary::before {
  background: var(--teal);
}

.faq-list details p {
  margin: 0 0 1rem;
  color: var(--ink-dim);
  padding-left: 2.2rem;
}

/* ---------- Chips ---------- */

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.chip {
  background: var(--stage-2);
  border: 3px solid var(--line-dim);
  border-radius: 999px;
  padding: 0.42rem 1.05rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-hard-sm);
  transition:
    transform 0.15s var(--ease-pop),
    border-color 0.15s var(--ease-pop);
}

.chip:hover {
  border-color: var(--teal);
  transform: translate(-2px, -2px) rotate(-1deg);
  text-decoration: none;
}

.chip .count {
  color: var(--ink-faint);
  font-size: 0.8rem;
}

/* ---------- Embed frame (Voxalike) ---------- */

.embed-frame {
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background: var(--stage-1);
  margin: 1.25rem 0;
}

.embed-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
}

.embed-caption {
  font-size: 0.85rem;
  color: var(--ink-faint);
  padding: 0.65rem 1rem;
  border-top: 3px solid var(--line-dim);
  margin: 0;
}

/* ---------- Mic test ---------- */

.mic-panel {
  background: var(--stage-2);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 1.6rem;
  max-width: 640px;
  margin: 1.5rem 0;
}

.mic-bar-track {
  height: 20px;
  background: var(--stage-1);
  border-radius: 999px;
  border: 3px solid var(--line-dim);
  overflow: hidden;
  margin: 1rem 0;
}

.mic-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--violet), var(--pink));
  transition: width 0.05s linear;
}

.mic-status {
  color: var(--ink-dim);
  font-size: 0.92rem;
}

.mic-controls {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.mic-controls .btn {
  font-size: 0.72rem;
  padding: 0.6rem 1.1rem;
}

.mic-device-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}

.mic-device-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-dim);
}

.mic-device-row select {
  background: var(--stage-1);
  border: 3px solid var(--line-dim);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  max-width: 100%;
  transition: border-color 0.15s var(--ease-pop);
}

.mic-device-row select:focus {
  outline: none;
  border-color: var(--teal);
}

.mic-readout {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

.mic-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

.mic-modal-overlay[hidden] {
  display: none;
}

.mic-modal {
  background: var(--stage-2);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 1.4rem 1.6rem;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
}

.mic-modal h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.mic-modal p {
  font-size: 0.92rem;
}

.mic-modal ol {
  padding-left: 1.2rem;
  margin: 0.6rem 0 1rem;
}

.mic-modal li {
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.mic-modal-note {
  font-size: 0.85rem;
  color: var(--ink-dim);
}

/* ---------- Guide list cards ---------- */

.guide-list {
  display: grid;
  gap: 1rem;
  max-width: 780px;
  padding: 0;
  list-style: none;
  margin: 1.5rem 0;
}

.guide-list a {
  display: block;
  background: var(--stage-2);
  border: 3px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  padding: 1rem 1.2rem;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.16s var(--ease-pop),
    border-color 0.16s var(--ease-pop);
}

.guide-list a:hover {
  transform: translate(-2px, -2px);
  border-color: var(--pink);
  text-decoration: none;
}

.guide-list .g-title {
  font-weight: 800;
  display: block;
  margin-bottom: 0.15rem;
}

.guide-list .g-sub {
  color: var(--ink-dim);
  font-size: 0.9rem;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: clamp(2rem, 6vw, 3.5rem) 0 0.5rem;
}

.page-hero .kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--teal);
  display: block;
  margin-bottom: 0.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  /* Logo-style bubbly white type with teal outline */
  color: #fff;
  text-shadow:
    -2.5px -2.5px 0 var(--teal),
    2.5px -2.5px 0 var(--teal),
    -2.5px 2.5px 0 var(--teal),
    2.5px 2.5px 0 var(--teal),
    -2.5px 0 0 var(--teal),
    2.5px 0 0 var(--teal),
    0 -2.5px 0 var(--teal),
    0 2.5px 0 var(--teal),
    4px 6px 0 oklch(0.42 0.07 240 / 0.18);
  max-width: 20ch;
}

.page-hero .lede {
  color: var(--ink-dim);
  font-size: 1.08rem;
  max-width: 680px;
  margin: 0;
}

/* ---------- Reduced motion ---------- */

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

  .ticker-track {
    animation: none;
    width: auto;
    white-space: normal;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .hero h1 {
    text-shadow:
      -2px -2px 0 var(--teal),
      2px -2px 0 var(--teal),
      -2px 2px 0 var(--teal),
      2px 2px 0 var(--teal),
      -2px 0 0 var(--teal),
      2px 0 0 var(--teal),
      0 -2px 0 var(--teal),
      0 2px 0 var(--teal),
      4px 5px 0 oklch(0.42 0.07 240 / 0.18);
  }

  .results-count {
    margin-left: 0;
    width: 100%;
  }
}
