/* BumperQuest — public site (bumper.quest landing).
 *
 * Loaded only by templates/public/_layout.html so admin styles don't bleed in.
 * Reads design tokens from app.css (already loaded above this file).
 */

/* ============================================================ Reset admin bleed */
body.public-page {
  background: var(--bg);
}
/* Reset only what conflicts with the public design. Everything else (background,
   border, padding, radius) comes from the per-component classes below
   (.podium__slot, .feature, .spot, .reg-card, .lb-table, .stat-card, …) so we
   must not blow them away with an `article` blanket. */
body.public-page article {
  position: relative;          /* anchor absolute children (medals, numbers) */
  overflow: visible;           /* let medals/numbers float outside the card */
  margin: 0;
}
body.public-page article::before { display: none !important; }
body.public-page article > header {
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 .75rem;
}
body.public-page table { background: transparent; }
body.public-page article > header {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 0 .75rem;
}
body.public-page table { background: transparent; }

/* ============================================================ Public tokens */
body.public-page {
  --hero-grad: linear-gradient(135deg, #1e0a4a 0%, #4c1d95 50%, #7c3aed 100%);
  --hero-grad-soft: linear-gradient(160deg, rgba(124, 58, 237, .08) 0%, rgba(168, 85, 247, .03) 50%, transparent 100%);
  --section-radius: 20px;
  --hero-text: #ffffff;
  --hero-muted: rgba(255, 255, 255, .78);
}

/* ============================================================ Layout shell */
body.public-page main.container,
body.public-page nav.public-nav,
body.public-page .quest-status-bar {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.public-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.public-page-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.4rem);
}

/* ============================================================ Top nav */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.pub-nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: .8rem clamp(1rem, 4vw, 2.4rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pub-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 1.05rem;
}
.pub-nav__brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--hero-grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 4px 10px rgba(124, 58, 237, .3);
}
.pub-nav__links {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.pub-nav__links li { list-style: none; }
.pub-nav__links a {
  display: inline-block;
  padding: .45rem .75rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .89rem;
  font-weight: 500;
  transition: background .12s ease, color .12s ease;
}
.pub-nav__links a:hover { background: var(--surface-soft); color: var(--text); }
.pub-nav__links a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pub-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--hero-grad);
  color: #fff !important;
  padding: .5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  border: 0;
  box-shadow: 0 4px 12px rgba(124, 58, 237, .25);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pub-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, .35);
  text-decoration: none;
}
.pub-nav__toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}
@media (max-width: 880px) {
  .pub-nav__links { display: none; }
  .pub-nav__cta { padding: .45rem .8rem; font-size: .82rem; }
  .pub-nav__toggle { display: inline-flex; }
}
.pub-nav__drawer {
  display: none;
  position: fixed;
  top: 64px;
  right: clamp(1rem, 4vw, 2.4rem);
  width: min(280px, 90vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .15);
  padding: .55rem;
  z-index: 60;
}
.pub-nav__drawer.is-open { display: block; }
.pub-nav__drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
.pub-nav__drawer li {
  display: block;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pub-nav__drawer a {
  display: block;
  padding: .55rem .75rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
}
.pub-nav__drawer a:hover { background: var(--surface-soft); }

/* ============================================================ Status pill */
.pub-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: var(--hero-muted);
  font-size: .82rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pub-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pub-pulse 2s ease-in-out infinite;
}
@keyframes pub-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.2); }
}

/* ============================================================ Hero */
.hero {
  position: relative;
  background: var(--hero-grad);
  color: var(--hero-text);
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 9vw, 6rem);
  margin-top: -1rem; /* pull up under nav */
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(168, 85, 247, .35), transparent 70%),
    radial-gradient(45% 40% at 15% 80%, rgba(99, 102, 241, .35), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.4rem);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .85rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: var(--hero-muted);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 800;
  color: var(--hero-text);
  margin: 0 0 1rem;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, #fcd34d, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--hero-muted);
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 38rem;
}
.hero__ctas {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn--primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
  text-decoration: none;
  color: var(--accent-hover);
}
.btn--ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .2);
  text-decoration: none;
}
.btn--accent {
  background: var(--hero-grad);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(124, 58, 237, .35);
}
.btn--accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, .45);
  text-decoration: none;
  color: #fff !important;
}
.btn--lg { padding: 1rem 1.85rem; font-size: 1rem; }
.btn--outline {
  background: var(--surface);
  color: var(--text) !important;
  border: 1px solid var(--border);
}
.btn--outline:hover {
  background: var(--surface-soft);
  border-color: var(--border-strong);
  text-decoration: none;
}

.hero__meta {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  color: var(--hero-muted);
  font-size: .85rem;
}
.hero__meta strong { color: #fff; font-weight: 700; }

/* Hero illustration / right column */
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 460px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .15);
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(30, 10, 74, .55) 100%);
}
.hero__visual-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  font-size: .85rem;
}
.hero__visual-caption .pin {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .35);
}

/* ============================================================ Sections */
body.public-page section { margin: 0; }
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  margin: 0;
}
.section--soft { background: linear-gradient(180deg, transparent, var(--surface-soft) 60%, transparent); }
.section--dark {
  background: #0f0a1f;
  color: #f8f5ff;
}
.section--dark h2,
.section--dark h3,
.section--dark p { color: #f8f5ff; }
.section--dark p { color: rgba(248, 245, 255, .75); }

.section__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.4rem);
}
.section__head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section__eyebrow {
  display: inline-block;
  padding: .3rem .85rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.section--dark .section__eyebrow {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 .75rem;
}
.section__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 42rem;
  line-height: 1.55;
}

/* ============================================================ Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--section-radius);
  padding: 1.6rem 1.35rem 1.4rem;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
  border-color: var(--accent-border);
}
.feature__num {
  position: absolute;
  top: 1.1rem; right: 1.2rem;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: var(--hero-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .35;
  line-height: 1;
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: .85rem;
  border: 1px solid var(--accent-border);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; margin: 0 0 .35rem; font-weight: 600; }
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.5;
}

/* ============================================================ Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--section-radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
}
.section--dark .stat-card {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
}
.stat-card__num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: .35rem;
  font-variant-numeric: tabular-nums;
}
.section--dark .stat-card__num {
  background: linear-gradient(120deg, #fcd34d, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card__label {
  font-size: .82rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.section--dark .stat-card__label { color: rgba(255, 255, 255, .65); }

/* ============================================================ Map card */
.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--section-radius);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.map-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 1rem 0 1.1rem;
  background: var(--surface-soft);
}
.map-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.map-card__actions { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }

/* ============================================================ Podium (leaderboard) */
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: end;
  margin: 3rem 0 2rem;
}
@media (max-width: 720px) {
  .podium { grid-template-columns: 1fr; }
  .podium > * { order: 0 !important; height: auto !important; }
}
.podium__slot {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--section-radius);
  padding: 2.5rem 1.1rem 1.4rem;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  transition: transform .15s ease;
}
.podium__slot:hover { transform: translateY(-4px); }
.podium__slot--gold {
  order: 2;
  height: 240px;
  border-color: #facc15;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 60%);
  box-shadow: 0 20px 40px rgba(250, 204, 21, .25);
}
.podium__slot--silver {
  order: 1;
  height: 210px;
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 60%);
}
.podium__slot--bronze {
  order: 3;
  height: 190px;
  border-color: #fdba74;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 60%);
}
.podium__medal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .2);
  z-index: 2;
}
.podium__slot--gold   .podium__medal { background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%); box-shadow: 0 10px 24px rgba(250, 204, 21, .5); }
.podium__slot--silver .podium__medal { background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%); }
.podium__slot--bronze .podium__medal { background: linear-gradient(135deg, #fdba74 0%, #c2410c 100%); }
.podium__name {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 .35rem;
  color: var(--text);
  word-wrap: break-word;
}
.podium__score {
  font-size: 1.85rem;
  font-weight: 800;
  background: var(--hero-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.podium__meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .45rem;
}

/* Empty / vacant podium slot */
.podium__slot.is-vacant {
  background: var(--surface-soft);
  border: 2px dashed var(--border);
  box-shadow: none;
  opacity: .55;
}
.podium__slot.is-vacant .podium__medal {
  background: var(--border) !important;
  box-shadow: none;
  filter: grayscale(.6);
  opacity: .65;
}
.podium__slot.is-vacant .podium__score,
.podium__slot.is-vacant .podium__name { color: var(--text-subtle); -webkit-text-fill-color: var(--text-subtle); }

/* ============================================================ Leaderboard table */
.lb-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--section-radius);
  overflow: hidden;
}
.lb-table__head {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.lb-table__head h3 { margin: 0; font-size: 1rem; flex: 1; }
.lb-table table { width: 100%; }
.lb-table thead { display: none; }
.lb-table tbody td {
  padding: .85rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface) !important;
}
.lb-table tbody tr:last-child td { border-bottom: 0; }
.lb-table tbody tr:hover td { background: var(--surface-soft) !important; }
.lb-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-soft);
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.lb-rank--1 { background: linear-gradient(135deg, #fde047, #f59e0b); color: #fff; }
.lb-rank--2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #fff; }
.lb-rank--3 { background: linear-gradient(135deg, #fdba74, #c2410c); color: #fff; }
.lb-team-name { font-weight: 600; color: var(--text); }
.lb-points {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
}

/* ============================================================ Locations gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.spot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--section-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  cursor: pointer;
}
.spot:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
  border-color: var(--accent-border);
}
.spot__media {
  aspect-ratio: 5 / 3;
  background: linear-gradient(135deg, #ddd6fe, #fce7f3);
  position: relative;
  overflow: hidden;
}
.spot__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot__num {
  position: absolute;
  top: .85rem; left: .85rem;
  width: 32px; height: 32px;
  background: var(--hero-grad);
  border-radius: 50%;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 4px 12px rgba(124, 58, 237, .4);
}
.spot__body { padding: 1rem 1.15rem 1.15rem; flex: 1; display: flex; flex-direction: column; }
.spot__title { font-size: 1.05rem; font-weight: 600; margin: 0 0 .35rem; color: var(--text); }
.spot__address { font-size: .82rem; color: var(--text-subtle); margin: 0 0 .55rem; }
.spot__story { font-size: .88rem; color: var(--text-muted); line-height: 1.5; margin: 0 0 1rem; flex: 1; }
.spot__actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; }

/* ============================================================ FAQ accordion */
.faq-acc { display: flex; flex-direction: column; gap: .6rem; }
.faq-acc details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.faq-acc details[open] { border-color: var(--accent-border); }
.faq-acc summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 1.6rem;
}
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 300;
  line-height: 1;
  transition: transform .2s ease;
}
.faq-acc details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-acc details > p { color: var(--text-muted); margin: .85rem 0 0; font-size: .93rem; line-height: 1.55; }

/* ============================================================ Form (register) */
.reg-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 880px) { .reg-grid { grid-template-columns: 1fr; } }
.reg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--section-radius);
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.reg-card form label { font-weight: 500; }
.reg-card form input:not([type="checkbox"]):not([type="radio"]),
.reg-card form select {
  background: var(--surface-soft) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
}
.reg-card form input:not([type="checkbox"]):not([type="radio"]):focus,
.reg-card form select:focus {
  background: #fff !important;
  border-color: var(--accent) !important;
}
.reg-card form input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}
.reg-side {
  position: sticky;
  top: 84px;
  background: var(--hero-grad);
  border-radius: var(--section-radius);
  padding: 1.85rem 1.5rem;
  color: #fff;
  box-shadow: 0 16px 40px rgba(124, 58, 237, .25);
}
.reg-side h3 { color: #fff; font-size: 1.2rem; margin: 0 0 .5rem; }
.reg-side p { color: rgba(255, 255, 255, .82); font-size: .92rem; line-height: 1.55; margin: 0 0 1rem; }
.reg-side ul {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.reg-side li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .9);
}
.reg-side li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: rgba(255, 255, 255, .18);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================ Footer */
.pub-foot {
  background: #0f0a1f;
  color: rgba(255, 255, 255, .65);
  padding: 2.5rem 0 2rem;
  margin-top: 0;
}
.pub-foot__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.4rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 720px) { .pub-foot__inner { grid-template-columns: 1fr; } }
.pub-foot__brand { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; }
.pub-foot__brand strong { color: #fff; font-size: 1.15rem; font-weight: 700; }
.pub-foot__lead { font-size: .9rem; max-width: 28rem; line-height: 1.55; }
.pub-foot h4 { color: #fff; font-size: .82rem; margin: 0 0 .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pub-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.pub-foot a { color: rgba(255, 255, 255, .65); text-decoration: none; font-size: .88rem; }
.pub-foot a:hover { color: #fff; }
.pub-foot__copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8rem;
  color: rgba(255, 255, 255, .4);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.4rem);
  padding-right: clamp(1rem, 4vw, 2.4rem);
}

/* ============================================================ Quest status bar (mini, under hero) */
body.public-page .quest-status-bar {
  background: transparent;
  border: 0;
  padding: .85rem 0 0;
  margin: 0;
  text-align: center;
}
body.public-page .quest-status-bar small {
  color: var(--hero-muted);
  font-size: .85rem;
}
