:root {
  --bg: #0f0f14;
  --panel: #181824;
  --panel-2: #222232;
  --text: #f5f7fb;
  --muted: #b8bfd1;
  --accent: #3ddc84;
  --accent-2: #9ef01a;
  --accent-3: #64dfdf;
  --line: rgba(255,255,255,0.1);
  --max: 800px;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at top left, rgba(61,220,132,0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(158,240,26,0.12), transparent 28%),
    linear-gradient(180deg, #11111a 0%, #0b0b11 100%);
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: static;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 16, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand img {
  height: 150px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
  flex-wrap: nowrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a {
  white-space: nowrap;
}

.hero {
  padding: 4rem 0 2.5rem;
}

.tagline {
  margin: 1rem 0 1.7rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.01em;
}

.release-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.03);
}

.episode-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.03);
}

.release-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.08);
  object-fit: scale-down;
}

.release-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.episode-games-grid,
.episode-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.episode-game-card {
  display: block;
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.episode-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(158,240,26,0.32);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.episode-game-card .video-thumb {
  height: 140px;
  margin-bottom: 0.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: stretch;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-media {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 3.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 0.96;
  margin-bottom: 1.2rem;
  letter-spacing: -0.05em;
}

.hero-copy p.lead {
  font-size: 1.12rem;
  color: var(--accent-2);
  font-weight: 700;
  max-width: none;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), #74c69d);
  box-shadow: 0 14px 40px rgba(61,220,132,0.28);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}

.hero-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-meta span,
.pill,
.mini-pill {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
}

.hero-media {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.media-stage {
  position: relative;
  flex: 1;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 12, 26, 0.18), rgba(10, 12, 26, 0.82)),
    url('https://images.unsplash.com/photo-1516450360452-9312f5e86fc7?auto=format&fit=crop&w=1200&q=80') center/cover;
  border: 1px solid rgba(255,255,255,0.08);
}

.stage-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(61,220,132,0.92);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.stage-overlay {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(11,11,17,0.72);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.trial-jump-card {
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.trial-jump-card:hover {
  transform: translateY(-4px);
  border-color: rgba(158,240,26,0.32);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.trial-panel {
  scroll-margin-top: 90px;
}

.contestant {
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.contestant small,
.stage-vs,
.tiny {
  color: var(--muted);
}

.contestant strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.stage-vs {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.media-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.stat-box {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.stat-box strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
}

section {
  padding: 1.4rem 0 4.4rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.35rem;
}

.section-head p {
  color: var(--accent-2);
  font-weight: 700;
  max-width: none;
  margin-bottom: 0;
}

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step-card,
.category-card,
.game-card,
.experience-card,
.path-card,
.video-card {
  border-radius: 24px;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(61,220,132,0.14);
  color: var(--accent-2);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.category-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.8));
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.fear { background-image: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80'); }
.disgust { background-image: url('https://images.unsplash.com/photo-1519999482648-25049ddd37b1?auto=format&fit=crop&w=900&q=80'); }
.humiliation { background-image: url('https://images.unsplash.com/photo-1521572267360-ee0c2909d518?auto=format&fit=crop&w=900&q=80'); }
.envy { background-image: url('https://images.unsplash.com/photo-1513151233558-d860c5398176?auto=format&fit=crop&w=900&q=80'); }

.category-card h3,
.game-card h3,
.experience-card h3,
.path-card h3,
.video-card h3,
.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.category-card p,
.game-card p,
.experience-card p,
.video-card p,
.path-card p,
.step-card p,
.vote-copy p,
.text-muted {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 0.8rem;
  font-weight: 700;
  color: var(--accent-2);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.trial-panel .games-grid,
.group-panel .games-grid,
.special-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.game-thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  margin-bottom: 0.95rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.video-thumb {
  height: 170px;
  border-radius: 18px;
  margin-bottom: 0.95rem;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,255,255,0.08);
  background-color: rgba(255,255,255,0.03);
}

.vote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.vote-copy,
.vote-panel {
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(61,220,132,0.15);
  color: #dbffe8;
  font-weight: 800;
  margin-bottom: 1rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.countdown.is-closed {
  background: rgba(255,255,255,0.08);
  color: #f5f7fb;
  border-color: rgba(255,255,255,0.16);
}

.vote-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.vote-matchup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  align-items: start;
  margin-bottom: 1rem;
}

.vote-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.vote-card .appeal {
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.vote-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.vote-button {
  flex: 1;
  min-width: 120px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--accent), #ff7b54);
}

.watch-button {
  flex: 1;
  min-width: 120px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.videos-grid,
.experiences-grid,
.paths-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.7rem 0 1rem;
}

.double-cta {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.trust-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: start;
}

.trust-list {
  display: grid;
  gap: 0.8rem;
}

.trust-item {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.quote-panel {
  min-height: 100%;
  padding: 1.4rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(100,223,223,0.12), rgba(255,209,102,0.12));
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-panel blockquote {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.final-cta {
  text-align: center;
  padding: 2.2rem;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(61,220,132,0.16), rgba(158,240,26,0.12));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 1.6rem 0 2.4rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.9rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.footer-brand strong {
  color: var(--text);
  font-size: 0.98rem;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.page-fixed {
  width: 100%;
}

.panel + .panel,
.notice-card + .notice-card,
.trial-panel + .trial-panel,
.group-panel + .group-panel,
.site-note + .site-note {
  margin-top: 1.1rem;
}

@media (max-width: 900px) {
  .nav {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 0;
  }

  .brand {
    align-self: start;
  }

  .brand img {
    height: 82px;
    width: auto;
    display: block;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem 0.6rem;
    align-items: center;
    justify-items: start;
    width: 100%;
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .nav-links a {
    display: block;
    white-space: nowrap;
  }

  .hero-grid,
  .vote-layout,
  .trust-panel {
    grid-template-columns: 1fr;
  }

  .media-footer,
  .cards-3,
  .cards-4,
  .games-grid,
  .videos-grid,
  .experiences-grid,
  .paths-grid,
  .episode-games-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions,
  .hero-meta,
  .double-cta,
  .footer-inner,
  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 0.7rem;
  }

  .brand img {
    height: 72px;
  }

  .nav-links {
    gap: 0.4rem 0.45rem;
    font-size: 0.76rem;
  }

  .nav-links a {
    white-space: normal;
  }

  .trials-grid {
    grid-template-columns: 1fr;
  }

  .trial-panel .games-grid,
  .group-panel .games-grid,
  .special-grid,
  .episode-game-grid,
  .episode-games-grid {
    grid-template-columns: 1fr;
  }

  .vs-row {
    grid-template-columns: 1fr;
  }

  .stage-vs {
    padding: 0.15rem 0;
  }
  .container {
    width: min(var(--max), calc(100% - 1.25rem));
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero-copy {
    padding: 1.5rem;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-copy p.lead {
    font-size: 1rem;
  }

  .media-stage {
    min-height: 280px;
  }

  .stage-overlay {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .media-footer,
  .cards-3,
  .cards-4,
  .games-grid,
  .videos-grid,
  .experiences-grid,
  .paths-grid,
  .episode-games-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-meta,
  .double-cta,
  .footer-inner,
  .footer-links {
    flex-wrap: wrap;
  }

  .button,
  .vote-button,
  .watch-button {
    width: 100%;
  }

  .vote-actions {
    flex-direction: column;
  }

  .panel,
  .final-cta,
  .episode-card,
  .release-card,
  .vote-copy,
  .vote-panel,
  .step-card,
  .category-card,
  .game-card,
  .experience-card,
  .path-card,
  .video-card {
    padding: 1rem;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-meta,
  .video-meta,
  .pill {
    flex-wrap: wrap;
  }
}




/* Additional shared page styles pulled in from About, Apply, Contact, Games, Flushin' Roulette, Vote Totals, and gallery pages */

.trials-grid,
.step-grid,
.group-grid,
.path-grid,
.faq-grid,
.types-grid,
.expect-grid,
.routes-grid,
.form-grid,
.checkbox-grid,
.stats-grid,
.episode-grid,
.gallery-grid,
.notice-card,
.appeals-grid,
.archive-grid,
.results-layout,
.totals-form,
.summary-list {
  display: grid;
  gap: 1rem;
}

.trials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-grid,
.path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid,
.types-grid,
.expect-grid,
.routes-grid,
.checkbox-grid,
.stats-grid,
.episode-grid,
.appeals-grid,
.archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.results-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
}

.totals-form {
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
}

.summary-list {
  gap: 0.8rem;
  margin-top: 1rem;
}

.trial-card,
.step-card,
.group-card,
.path-card,
.disclaimer-card,
.faq-card,
.type-card,
.expect-card,
.route-card,
.game-group,
.stat-card,
.notice-card,
.results-card,
.summary-card,
.cta-card,
.total-card,
.summary-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.trial-card,
.step-card,
.group-card,
.path-card,
.disclaimer-card,
.faq-card,
.type-card,
.expect-card,
.route-card,
.game-group,
.stat-card,
.results-card,
.summary-card,
.cta-card,
.total-card,
.summary-item {
  padding: 1.15rem;
}

.trial-card,
.faq-card {
  background: rgba(255,255,255,0.04);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}

.faq-card h3,
.trial-card h3,
.step-card h3,
.group-card h3,
.path-card h3,
.disclaimer-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.type-card,
.route-card {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.type-card:hover,
.route-card:hover {
  transform: translateY(-3px);
  border-color: rgba(158,240,26,0.32);
}

.type-card.is-selected,
.route-card.is-selected {
  border-color: rgba(61,220,132,0.55);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  background: linear-gradient(180deg, rgba(61,220,132,0.08), rgba(255,255,255,0.02));
}

.games-stack,
.consent-list {
  display: grid;
  gap: 1rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.structure-note,
.disclaimer-card p,
.group-card p,
.path-card p,
.step-card p,
.rules-list,
.tiny {
  color: var(--muted);
}

.games-stack,
.consent-list {
  display: grid;
  gap: 1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-group.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
}

input,
textarea,
select,
.totals-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  outline: none;
}

option {
  color: #111;
}

input:focus,
textarea:focus,
select:focus,
.totals-input:focus {
  border-color: rgba(61,220,132,0.5);
  box-shadow: 0 0 0 3px rgba(61,220,132,0.12);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-item,
.consent-item,
.vote-option,
.summary-item,
.contestant-tease,
.email-recommendation,
.total-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: none;
}

.appeal-card,
.archive-card,
.vote-card {
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.appeal-quote {
  font-style: italic;
  margin-bottom: 1rem;
}

.vote-form {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.vote-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.vote-options {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.vote-note {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.vs-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
}

.checkbox-item,
.consent-item,
.vote-option,
.summary-item,
.contestant-tease,
.email-recommendation,
.total-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: none;
}

.total-card,
.summary-item,
.contestant-tease,
.email-recommendation {
  display: block;
}

.checkbox-item input[type="checkbox"],
.consent-item input[type="checkbox"],
.vote-option input {
  width: auto;
  margin-top: 0.15rem;
  accent-color: #74c69d;
}

.checkbox-note,
.stat-value-sub,
.totals-message {
  color: var(--muted);
}

.helper-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.group-stack,
.trial-stack {
  display: grid;
  gap: 1.1rem;
}

.trial-panel,
.site-note,
.hero-banner,
.notice-card,
.panel,
.cta-card {
  padding: 1.3rem;
}

.trial-panel,
.site-note,
.notice-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.trial-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.special-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.archive-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.archive-card:hover,
.appeal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(158,240,26,0.32);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.hero-banner {
  padding: 2.2rem;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
  width: 100%;
}

.hero-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-logo-chip {
  flex: 0 0 250px;
  width: 250px;
  max-width: 250px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-chip img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  margin-bottom: 0.45rem;
}

.stat-value,
.total-value {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.rules-list {
  display: grid;
  gap: 0.9rem;
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.rules-list li {
  padding-left: 0.15rem;
}

.rules-list strong,
.total-head strong {
  color: var(--text);
}

.episode-thumb,
.result-image,
.archive-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(255,255,255,0.08);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255,255,255,0.03);
}

.pill-row,
.release-meta {
  display: flex;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.94rem;
  flex-wrap: wrap;
}

.results-card,
.summary-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.winner-banner,
.loser-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 1rem;
}

.winner-banner {
  background: rgba(61,220,132,0.15);
  color: #dbffe8;
  border: 1px solid rgba(61,220,132,0.28);
}

.loser-banner {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.total-head,
.totals-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.total-head {
  margin-bottom: 0.7rem;
}

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

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #74c69d);
  transition: width 0.35s ease;
}

.totals-meta {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-card {
  padding: 0.9rem;
}

.thumb-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 0.85rem;
  cursor: pointer;
  text-align: left;
}

.thumb-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.thumb-button:hover .thumb-frame img {
  transform: scale(1.03);
}

.thumb-meta {
  display: grid;
  gap: 0.25rem;
}

.thumb-label {
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(8px);
  z-index: 9999;
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-dialog {
  width: min(1100px, calc(100vw - 4rem));
  max-height: calc(100vh - 4rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(24,24,36,0.98), rgba(18,18,28,0.98));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}

.lightbox-topbar,
.lightbox-bottombar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.lightbox-stage {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.lightbox-image-wrap {
  flex: 1;
  min-width: 0;
  height: min(70vh, 760px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-nav,
.lightbox-close {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(255,255,255,0.12);
}

.lightbox-meta {
  min-width: 0;
}

.lightbox-meta h3 {
  margin-bottom: 0.35rem;
}

.lightbox-counter {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .step-grid,
  .group-grid,
  .path-grid,
  .gallery-grid,
  .notice-card,
  .step-grid,
  .group-grid,
  .path-grid,
  .results-layout {
    grid-template-columns: 1fr;
  }

  .trials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .types-grid,
  .expect-grid,
  .routes-grid,
  .form-grid,
  .checkbox-grid,
  .stats-grid,
  .episode-grid,
  .appeals-grid,
  .archive-grid,
  .special-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-layout {
    grid-template-columns: 1fr;
  }

  .helper-row,
  .totals-form,
  .lightbox-topbar,
  .lightbox-bottombar {
    grid-template-columns: 1fr;
    display: grid;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .trials-grid,
  .step-grid,
  .group-grid,
  .path-grid,
  .gallery-grid,
  .notice-card,
  .types-grid,
  .expect-grid,
  .routes-grid,
  .form-grid,
  .checkbox-grid,
  .stats-grid,
  .episode-grid,
  .appeals-grid,
  .archive-grid,
  .special-grid,
  .faq-grid,
  .totals-form {
    grid-template-columns: 1fr;
  }

  .field-group.full {
    grid-column: auto;
  }

  .helper-row,
  .pill-row,
  .release-meta,
  .total-head,
  .totals-meta,
  .lightbox-topbar,
  .lightbox-bottombar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-top {
  flex-direction: column;
  align-items: stretch;
}

.hero-logo-chip {
  max-width: none;
  width: 100%;
}

  .lightbox {
    padding: 0.75rem;
  }

  .lightbox-dialog {
    width: min(100vw - 1.5rem, 1100px);
    max-height: calc(100vh - 1.5rem);
    padding: 0.75rem;
  }

  .lightbox-stage {
    gap: 0.6rem;
  }

  .lightbox-nav,
  .lightbox-close {
    width: 44px;
    height: 44px;
  }

  .lightbox-image-wrap {
    height: min(58vh, 520px);
  }
}

/* ===== Page-specific grid fixes: About + How It Works ===== */

.trials-grid,
.step-grid,
.group-grid,
.path-grid {
  display: grid;
  gap: 1rem;
}

.trials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-grid,
.path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Tablet */
@media (max-width: 900px) {
  .trials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-grid,
  .group-grid,
  .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .thumb-button {
    cursor: default;
  }

  .thumb-button:hover {
    transform: none;
  }

}

/* Mobile */
@media (max-width: 640px) {
  .trials-grid,
  .step-grid,
  .group-grid,
  .path-grid {
    grid-template-columns: 1fr;
  }

.footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 0.6rem 1rem;
  }

  .release-content,
  .release-meta {
    min-width: 0;
  }

  .release-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .release-meta .pill {
    display: inline-flex;
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
  }

  .section-head .button {
    align-self: flex-start;
  }
}