:root {
  --night: #101a16;
  --panel: #192720;
  --layer: #26382e;
  --line: #405349;
  --cream: #fbf4e6;
  --muted: #c3cebf;
  --gold: #edbb7c;
  --paper: #eee8da;
  --paper-muted: #4b594e;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --heading: Cinzel, Georgia, serif;
  --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 85px; }
body {
  margin: 0;
  padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  color: var(--cream);
  background: var(--night);
  font: 400 16px/1.62 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
:where(h1, h2, h3) { font-family: var(--heading); font-weight: 700; line-height: 1.16; }
h1 { font-size: clamp(32px, 6vw, 60px); margin: 0 0 16px; overflow-wrap: anywhere; }
h2 { font-size: clamp(23px, 3.5vw, 36px); margin: 0 0 16px; }
h3 { font-size: clamp(17px, 2vw, 22px); margin: 0 0 8px; }
p { margin: 0 0 16px; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:where(button, input, textarea) { font: inherit; }
:where(a, button, input, textarea, summary):focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
:where([id]) { scroll-margin-top: 16px; }
.shell { width: min(100% - 32px, 1184px); margin-inline: auto; }
.eyebrow {
  margin: 0 0 10px; color: var(--gold); font-weight: 700;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.button, .gpq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--layer); color: var(--cream);
  font: 700 14px/1.3 var(--sans); text-align: center; text-decoration: none;
  cursor: pointer;
}
.button:hover, .gpq-btn:hover { background: var(--line); text-decoration: none; }
.button-primary, .gpq-btn-primary { background: var(--gold); border-color: var(--gold); color: var(--night); }
.button-primary:hover, .gpq-btn-primary:hover { background: var(--cream); border-color: var(--cream); color: var(--night); }
.gpq-btn-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.gpq-btn:disabled { opacity: .5; cursor: default; }
.text-link { font-size: 14px; font-weight: 700; }
.skip {
  position: fixed; z-index: 20; left: 12px; top: 12px; transform: translateY(-160%);
  padding: 8px 14px; background: var(--gold); color: var(--night); border-radius: 6px;
}
.skip:focus { transform: none; }
.masthead {
  position: sticky; top: 0; z-index: 10; background: var(--night);
  border-bottom: 1px solid var(--line);
}
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; color: var(--cream); text-decoration: none; font: 700 clamp(15px, 4vw, 19px)/1.2 var(--heading); }
.brand :is(img, svg) { width: 32px; height: 32px; border-radius: 6px; }
.desktop-nav { display: none; }
.desktop-nav a, .mobile-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.desktop-nav a:hover, .mobile-nav a:hover, :is(.desktop-nav, .mobile-nav) a[aria-current] { color: var(--gold); }
.mobile-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 4px 12px calc(4px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--night); border-top: 1px solid var(--line);
}
.mobile-nav a { min-height: 49px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; line-height: 1.2; }
.mobile-nav a span { font-size: 18px; line-height: 1; }
body:has(.gpq-frame[data-state="play"]) .mobile-nav { display: none; }
body:has(.gpq-frame:is([data-state="play"], [data-state="result"])) [data-after-quiz] { display: none; }
.footer { margin-top: 52px; border-top: 1px solid var(--line); background: var(--panel); }
.footer-inner { display: grid; gap: 20px; padding-block: 32px; }
.footer-brand { font: 700 18px var(--heading); color: var(--cream); text-decoration: none; }
.footer-note { margin: 8px 0; max-width: 37ch; font-size: 13px; color: var(--muted); }
.footer small { color: var(--muted); }
.footer nav { display: grid; gap: 6px; align-content: start; }
.footer nav a { display: inline-flex; align-items: center; min-height: 34px; font-size: 14px; }
.section-heading {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px;
}
.section-heading h2 { margin: 0; }
.disclosure { border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.disclosure + .disclosure { margin-top: 8px; }
.disclosure > summary {
  display: block; position: relative; padding: 12px 42px 12px 16px; min-height: 46px;
  cursor: pointer; font-weight: 700; list-style: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after {
  content: "+"; position: absolute; right: 16px; top: 11px; color: var(--gold);
}
.disclosure[open] > summary::after { content: "−"; }
.disclosure > p { color: var(--muted); padding: 0 16px 14px; margin: 0; }
.disclosure:hover > summary { color: var(--gold); }
.faq .eyebrow { margin-bottom: 8px; }
.faq h2 { margin-bottom: 18px; }
.prose { overflow-wrap: anywhere; }
.prose :is(p, li) { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose :is(h2,h3) { margin: 32px 0 12px; }
.prose h2 { font-size: clamp(21px, 3.5vw, 28px); }
.prose h3 { font-size: 20px; }
.prose :is(ol,ul) { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 8px; border: 1px solid var(--line); text-align: left; }
.prose td a:not([href]) { color: inherit; text-decoration: none; }
.updated { font-size: 13px; color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.missing-page { padding-block: 64px; }
.missing-page p:not(.eyebrow) { color: var(--muted); }
@media (min-width: 740px) {
  body { padding-bottom: 0; }
  .shell { width: min(100% - 64px, 1184px); }
  .masthead-inner { min-height: 66px; }
  .desktop-nav { display: flex; align-items: center; gap: 26px; }
  .desktop-nav a { display: flex; align-items: center; min-height: 46px; font-size: 14px; }
  .mobile-nav { display: none; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

.camp-trail, .camp-discovery, .information-grid { margin-top: 32px; }
.trail-grid { display: grid; gap: 8px; padding: 0; list-style: none; margin: 0; }
.trail-grid li {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px;
  align-items: start; padding: 16px; border-top: 1px solid var(--line); background: var(--panel);
}
.trail-symbol {
  width: 38px; height: 38px; display: grid; place-items: center;
  color: var(--gold); border: 1px solid var(--line); border-radius: 50%; font: 700 20px Georgia, serif;
}
.trail-grid h3 { margin: 3px 0 4px; }
.trail-grid p { color: var(--muted); margin: 0; font-size: 14px; }
.trail-grid a { font-size: 13px; font-weight: 700; display: inline-flex; gap: 5px; margin-top: 6px; align-items: center; }
.camp-discovery {
  display: grid; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--panel);
}
.discovery-copy { padding: 24px; align-self: center; }
.discovery-copy p:not(.eyebrow) { color: var(--muted); max-width: 37ch; }
.discovery-copy .cabin-chips { margin-top: 12px; }
.discovery-art img { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; }
.information-grid { display: grid; gap: 32px; }
.quiz-help { margin-block-start: clamp(32px, 5vw, 56px); }
.quiz-help > h2 { margin-bottom: 20px; }
.help-layout { display: grid; gap: 20px; }
.help-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; align-self: start; padding: 4px; background: var(--panel); border-radius: 10px; }
.help-topics button { min-height: 44px; padding: 9px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.help-topics button:hover { color: var(--cream); background: var(--layer); }
.help-topics button[aria-selected="true"] { color: var(--gold); border-color: var(--gold); background: var(--layer); }
.help-panel + .help-panel { margin-top: 24px; }
.help-topics:not([hidden]) + .help-panels .help-panel { margin: 0; }
.help-panel .disclosure { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; margin: 0; }
.help-panel .disclosure > summary { padding: 14px 34px 14px 4px; }
.help-panel .disclosure > summary::after { top: 14px; right: 6px; }
.help-panel .disclosure > p { padding: 0 30px 18px 4px; max-width: 75ch; }
.help-panel .field-copy { padding: 16px 4px; }
.full-quiz-guide > summary { color: var(--gold); }
@media (min-width: 740px) {
  .help-layout:has(.help-topics:not([hidden])) { grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 64px); }
  .help-topics { grid-template-columns: 1fr; }
  .help-topics button { text-align: left; }
}
.field-copy { padding: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.atlas, .profile, .camp-desk { padding-top: 24px; }
.atlas-hero, .profile-hero {
  display: grid; align-items: center; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
}
.atlas-hero-copy, .profile-copy { padding: 24px; }
.atlas-hero h1, .profile-hero h1 { font-size: clamp(27px, 5.2vw, 49px); text-wrap: balance; }
.atlas-hero-copy p:not(.eyebrow), .profile-lead { color: var(--muted); max-width: 42ch; }
.atlas-illustration { margin: 0; }
.atlas-illustration img { width: 100%; }
.atlas-directory { margin-top: 32px; }
.atlas-controls {
  display: grid; gap: 12px; padding: 14px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.atlas-search, .contact-form label { display: grid; gap: 6px; color: var(--cream); font-size: 14px; font-weight: 600; }
.atlas-search input, .contact-form input, .contact-form textarea, .gpq-share-url {
  width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--night); color: var(--cream); font-size: 16px; 
}
:is(.atlas-search input, .contact-form input, .contact-form textarea)::placeholder { color: var(--muted); opacity: .76; }
.atlas-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: end; }
.atlas-filters button {
  color: var(--muted); background: transparent; border: 1px solid var(--line);
  font-weight: 700; font-size: 13px; min-height: 44px; padding: 5px 11px; border-radius: 6px;
  cursor: pointer;
}
.atlas-filters button:hover { color: var(--cream); background: var(--layer); }
.atlas-filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); }
.atlas-count { font-size: 13px; color: var(--muted); margin: 0; }
.atlas-cards { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.atlas-card {
  display: flex; flex-direction: column; min-width: 0; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.atlas-card:target { border-color: var(--gold); outline: 1px solid var(--gold); }
.atlas-stamp { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.atlas-stamp span:first-child { color: var(--gold); }
.atlas-stamp span:last-child { color: var(--muted); }
.atlas-card-main { display: grid; align-items: start; grid-template-columns: auto minmax(0,1fr); gap: 12px; }
.atlas-card-main h3 { margin: 0 0 4px; }
.atlas-card-main p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.45; }
.crest {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border: 3px double currentColor; border-radius: 50%; color: var(--cabin-ink, var(--gold)); background: var(--cabin-tone, var(--layer));
}
.crest svg { width: 65%; height: 65%; }
.crest > span { font-size: 25px; }
.atlas-card-link {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 43px;
  margin-top: auto; padding: 4px 0; border-top: 1px solid var(--line); text-decoration: none;
  font-weight: 700; font-size: 14px;
}
.atlas-card-link:hover { text-decoration: underline; }
.atlas-guide-link + .atlas-note-link { display: none; }
.atlas-empty { text-align: center; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); }
.atlas-empty p { color: var(--muted); }
.atlas-notes, .atlas-faq { margin-top: 32px; }
.atlas-notes article { border-radius: 0 0 7px 7px; }

.profile-hero { position: relative; }
.profile-emblem {
  position: relative; overflow: hidden; display: grid; place-items: center; min-height: 166px;
  background: radial-gradient(ellipse at center, var(--cabin-tone), var(--panel) 78%);
  border-top: 1px solid var(--line);
}
.profile-emblem::before, .profile-emblem::after {
  content: ""; pointer-events: none; position: absolute; width: 148px; height: 148px;
  border-radius: 50%; border: 1px solid var(--cabin-ink); opacity: .44;
}
.profile-emblem::after { transform: scale(1.18); opacity: .22; }
.profile-emblem .crest { width: 118px; height: 118px; z-index: 1; }
.profile-facts {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
  margin: 0; padding: 14px 24px; border-top: 1px solid var(--line);
}
.profile-facts dt { font-size: 12px; color: var(--muted); }
.profile-facts dd { margin: 0; font-size: 15px; font-weight: 700; }
.reading-layout { display: grid; gap: 12px; margin-top: 24px; }
.reading-sidebar:empty { display: none; }
.reading-sidebar:has([data-contents][hidden]) { display: none; }
.contents nav { display: grid; gap: 2px; padding: 0 14px 12px; }
.contents nav a { display: block; border-left: 1px solid var(--line); padding: 6px 8px; color: var(--muted); text-decoration: none; font-size: 13px; }
.contents nav a:hover { border-color: var(--gold); color: var(--gold); }
.reading { min-width: 0; padding: 18px; background: var(--paper); color: var(--night); border-radius: var(--radius); }
.reading a { color: var(--paper-muted); font-weight: 700; }
.reading .updated { color: var(--paper-muted); }
.profile-related, .profile-faq { margin-top: 32px; }
.profile-related ul { display: grid; list-style: none; margin: 0; padding: 0; gap: 10px; }
.profile-related a {
  display: grid; gap: 4px; min-height: 72px; padding: 14px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none;
}
.profile-related a:hover { border-color: var(--gold); }
.profile-related a strong { display: flex; justify-content: space-between; gap: 8px; }
.profile-related a > span { font-size: 14px; color: var(--muted); }
.profile-faq, .atlas-faq { max-width: 800px; }
.all-guides-h { margin: 24px 0 10px; font-size: 18px; }
.cabin-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cabin-chips a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 600;
}
.cabin-chips a:hover { border-color: var(--gold); }
.cabin-chips span { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.desk-heading { padding: 16px 0 0; }
.desk-heading h1 { font-size: clamp(28px, 5.2vw, 52px); }
.contact-grid { display: grid; gap: 22px; margin-top: 20px; }
.contact-notes { order: 2; color: var(--muted); }
.contact-form { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.contact-form form { display: grid; gap: 14px; }
.contact-form label > span { color: var(--muted); font-weight: 400; }
.contact-form button { justify-self: start; }
.contact-form textarea { resize: vertical; }
.ticket-msg { margin: 0; font-size: 13px; color: var(--muted); }
.ticket-msg:empty { display: none; }
.contact-replies { margin-top: 36px; }
.tickets[data-gf-empty]::before { content: "No messages yet."; color: var(--muted); }
.gf-ticket { padding: 16px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }

@media (min-width: 600px) {
  .atlas-cards, .profile-related ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; }
  .reading { padding: 28px; }
}
@media (min-width: 800px) {
  .camp-trail, .camp-discovery, .information-grid { margin-top: 48px; }
  .trail-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .trail-grid li { padding: 18px 16px; }
  .camp-discovery { grid-template-columns: .86fr 1.14fr; }
  .discovery-copy { padding: 36px; }
  .discovery-art img { aspect-ratio: 1.65; }
  .information-grid { grid-template-columns: .78fr 1.22fr; }
  .atlas-hero, .profile-hero { grid-template-columns: 1fr 1fr; }
  .atlas-hero-copy, .profile-copy { padding: 32px; }
  .atlas-illustration { align-self: stretch; }
  .atlas-illustration img { width: 100%; height: 100%; object-fit: cover; }
  .atlas-controls { grid-template-columns: minmax(220px,.8fr) 1.2fr; align-items: end; }
  .atlas-count { grid-column: 1 / -1; }
  .atlas-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .profile-emblem { align-self: stretch; min-height: 240px; border-top: 0; border-left: 1px solid var(--line); }
  .profile-emblem .crest { width: 156px; height: 156px; }
  .profile-emblem::before, .profile-emblem::after { width: 185px; height: 185px; }
  .profile-facts { grid-column: 1 / -1; padding: 14px 32px; }
  .reading-layout { grid-template-columns: minmax(174px,.72fr) minmax(0,2.4fr); align-items: start; gap: 20px; }
  .reading-sidebar { position: sticky; top: 90px; }
  .reading { padding: 26px 34px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
  .contact-notes { order: 0; }
  .contact-form { padding: 24px; }
}
@media (min-width: 1050px) {
  .atlas-cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

.gpq-hero { padding-top: 20px; }
.gpq-frame {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.gpq-frame[data-state="intro"]:not([data-inviter]) { padding-top: 122px; }
.gpq-frame[data-state="intro"]:not([data-inviter])::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, #19272005 0px, #19272033 104px, #192720b8 190px, var(--panel) 236px);
}
.gpq-art {
  position: absolute; inset: 0 0 auto; z-index: -2; height: 230px; margin: 0; pointer-events: none;
}
.gpq-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.gpq-opening { padding: 18px 16px 0; }
.gpq-opening h1 { max-width: 17ch; font-size: clamp(29px, 7vw, 48px); line-height: 1.08; }
.gpq-lead { max-width: 42ch; color: var(--muted); margin-bottom: 0; }
.gpq-intro { padding: 16px 16px 20px; }
.gpq-facts {
  display: flex; flex-wrap: wrap; padding: 0; margin: 0 0 14px;
  gap: 4px 12px; list-style: none; font-size: 12px; font-weight: 600; color: var(--muted);
}
.gpq-facts li + li::before { content: "·"; color: var(--gold); margin-right: 12px; }
.gpq-intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gpq-intro-actions .gpq-btn { flex: 1 1 auto; }
.gpq-intro-actions .gpq-btn-primary { min-height: 48px; }
.gpq-frame[data-inviter] .gpq-atlas-link { display: none; }
.gpq-invite-art {
  display: grid; place-items: center; min-height: 180px; padding: 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(120deg, #101a16cf, #101a167a), url("https://img.godlyparentquiz.net/s_425n6v034m0p4t/camp-atlas.053f313e98.webp") center / cover;
}
.gpq-invite-art:empty { display: none; }
.gpq-invite-card {
  width: min(100%, 280px); padding: 16px; display: grid; justify-items: center; gap: 6px;
  border: 1px solid var(--gold); border-radius: 8px;
  background: var(--panel); text-align: center;
}
.gpq-invite-card strong { margin-top: 4px; font: 700 25px/1.2 var(--heading); }
.gpq-invite-card p { margin: 0; color: var(--muted); font-size: 14px; }
.gpq-frame:is([data-state="play"], [data-state="result"]) {
  max-width: 940px; margin-inline: auto;
}
.gpq-play, .gpq-res { padding: 14px; }
.gpq-headbar { display: flex; align-items: start; justify-content: space-between; gap: 6px; margin-bottom: 18px; }
.gpq-headbar > button { flex: none; padding-inline: 8px; font-size: 12px; }
.gpq-tracker { min-width: 0; flex: 1; }
.gpq-progress-label {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 10px;
  margin-bottom: 7px; color: var(--muted); font-size: 12px;
}
.gpq-progress-label strong { color: var(--gold); font-weight: 700; }
.gpq-trail { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
.gpq-trail span { height: 4px; border-radius: 6px; background: var(--line); overflow: hidden; }
.gpq-trail i { display: block; height: 100%; border-radius: 6px; background: var(--gold); }
.gpq-question { margin: 0 0 16px; font-size: clamp(22px, 4vw, 35px); text-wrap: pretty; }
.gpq-question:focus, .gpq-result-title:focus { outline: none; }
.gpq-options { display: grid; gap: 7px; }
.gpq-choice {
  display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 10px;
  width: 100%; min-height: 50px; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--layer); color: var(--cream);
  text-align: left; cursor: pointer; font-size: 15px; line-height: 1.35;
}
.gpq-choice:hover, .gpq-choice[aria-pressed="true"] { border-color: var(--gold); }
.gpq-choice-mark {
  display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 5px;
  color: var(--gold); background: var(--night); font-size: 12px; font-weight: 700;
}
.gpq-choice[aria-pressed="true"] .gpq-choice-mark { background: var(--gold); color: var(--night); }
.gpq-quiz-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.gpq-quiz-nav .gpq-btn { padding-inline: 8px; }
.gpq-claim, .gpq-duo {
  --cabin-color: var(--gold);
  position: relative; isolation: isolate; overflow: hidden; padding: 24px 14px;
  background: radial-gradient(ellipse at center top, var(--layer), var(--night) 78%);
  border: 1px solid var(--cabin-color); border-radius: 9px; text-align: center;
}
.gpq-claim::before, .gpq-duo::before {
  content: ""; position: absolute; inset: 6px; z-index: -1; pointer-events: none;
  border: 1px solid var(--cabin-color); border-radius: 6px; opacity: .33;
}
.gpq-overline {
  margin: 0 0 15px; color: var(--gold); font-weight: 700;
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
}
.gpq-seal {
  --cabin-color: var(--gold);
  display: inline-grid; place-items: center; width: 69px; height: 69px;
  border: 3px double currentColor; border-radius: 50%; color: var(--cabin-color); background: var(--night);
  outline: 1px solid var(--cabin-color); outline-offset: 3px;
}
.gpq-seal svg { width: 67%; height: 67%; display: block; }
.gpq-result-title { margin: 12px 0 4px; font-size: clamp(26px, 5vw, 44px); text-wrap: balance; }
.gpq-result-sub { margin: 0 0 8px; color: var(--cabin-color); font-size: 14px; font-weight: 700; }
.gpq-result-note { margin: 0 auto; max-width: 45ch; color: var(--muted); font-size: 14px; }
.gpq-duo-people {
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 9px; align-items: center;
  max-width: 420px; margin: 20px auto 12px;
}
.gpq-duo-person { min-width: 0; }
.gpq-duo-person .gpq-seal { width: 52px; height: 52px; }
.gpq-duo-person strong { display: block; color: var(--cream); margin-top: 9px; overflow-wrap: anywhere; line-height: 1.2; }
.gpq-duo-person small { color: var(--muted); font-size: 12px; }
.gpq-duo-join { color: var(--gold); align-self: start; margin-top: 12px; font-size: 17px; }
.gpq-personal { display: grid; gap: 13px; }
.gpq-share + .gpq-personal { margin-top: 23px; }
.gpq-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gpq-actions > .gpq-btn { flex: 1 1 124px; }
.gpq-res > :where(.gpq-share,.gpq-actions) { margin-top: 12px; }
.gpq-share-feedback { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.gpq-share-feedback:empty { display: none; }
.gpq-share-url { margin-top: 6px; }
.gpq-matches { border: 1px solid var(--line); border-radius: 7px; padding: 13px; }
.gpq-matches h3 { font-size: 17px; margin: 0 0 8px; }
.gpq-match-row {
  display: grid; align-items: center; grid-template-columns: 92px minmax(0,1fr) 37px;
  gap: 7px; margin: 8px 0; color: var(--muted); font-size: 13px;
}
.gpq-match-row strong { text-align: right; color: var(--cream); }
.gpq-match-track { height: 5px; border-radius: 6px; background: var(--line); overflow: hidden; }
.gpq-match-track i { display: block; height: 100%; background: var(--gold); }
.gpq-detail summary { cursor: pointer; margin-top: 12px; color: var(--gold); font-weight: 600; font-size: 14px; }
.gpq-detail dl { margin: 8px 0 0; font-size: 14px; }
.gpq-detail dt { font-weight: 700; }
.gpq-detail dd { margin: 2px 0 6px; color: var(--muted); }
.gpq-result-footer { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-top: 14px; }

@media (min-width: 780px) {
  .gpq-hero { padding-top: 32px; }
  .gpq-frame[data-state="intro"]:not([data-inviter]) {
    min-height: 510px; display: flex; flex-direction: column; justify-content: center; padding-top: 0;
  }
  .gpq-frame[data-state="intro"]:not([data-inviter])::before {
    background: linear-gradient(90deg, var(--panel) 10%, #192720f5 28%, #1927208c 52%, transparent 81%);
  }
  .gpq-art { inset: 0; height: 100%; }
  .gpq-art img { object-position: center 54%; }
  .gpq-opening { padding: 36px 32px 0; width: min(100%, 650px); }
  .gpq-opening h1 { font-size: clamp(43px, 5.4vw, 70px); }
  .gpq-lead { color: var(--cream); }
  .gpq-intro { padding: 20px 32px 36px; }
  .gpq-facts { font-size: 13px; }
  .gpq-intro-actions .gpq-btn { flex: 0 0 auto; }
  .gpq-frame[data-state="intro"][data-inviter] {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: 1fr auto;
  }
  .gpq-frame[data-state="intro"][data-inviter] .gpq-opening { align-self: end; }
  .gpq-frame[data-state="intro"][data-inviter] h1 { font-size: clamp(35px, 4.5vw, 55px); }
  .gpq-invite-art { grid-column: 2; grid-row: 1/3; border-top: 0; border-left: 1px solid var(--line); min-height: 330px; }
  .gpq-headbar { gap: 18px; }
  .gpq-play, .gpq-res { padding: 24px; }
  .gpq-progress-label { font-size: 14px; }
  .gpq-choice { font-size: 16px; }
  .gpq-personal { grid-template-columns: minmax(0,1fr) minmax(0,.95fr); align-items: start; }
  .gpq-personal > .gpq-claim { grid-row: 1/3; align-self: stretch; display: grid; align-content: center; justify-items: center; }
  .gpq-personal > .gpq-matches { grid-column: 2; }
  .gpq-duo-people { margin-top: 24px; }
  .gpq-duo-person .gpq-seal { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: no-preference) {
  .gpq-play .gpq-options, .gpq-res :is(.gpq-claim,.gpq-duo) { animation: arrive .18s ease-out both; }
  @keyframes arrive { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
}


/* Phase 1: claiming reveal, named invitations and collectible cards */
body:has(.gpq-frame[data-state="reveal"]) .mobile-nav,
body:has(.gpq-frame[data-state="reveal"]) [data-after-quiz] { display: none; }
.gpq-frame[data-state="reveal"] { max-width: 940px; margin-inline: auto; }
.gpq-reveal, .gpq-reveal-scene { min-height: 580px; }
.gpq-reveal-scene {
  --cabin-color: var(--gold);
  padding: 32px 16px 12px; display: flex; flex-direction: column;
  align-items: center; overflow: hidden; text-align: center; cursor: pointer;
  background: radial-gradient(ellipse at 50% 28%, var(--layer), var(--night) 72%);
}
.gpq-reveal-fire { width: 116px; height: 116px; color: var(--gold); opacity: 0; }
.gpq-reveal-fire svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gpq-log { fill: none; stroke: #8f6949; stroke-width: 8; stroke-linecap: round; }
.gpq-flame-outer { fill: #edbb7c; transform-origin: 60px 98px; }
.gpq-flame-inner { fill: #fff3bd; transform-origin: 60px 96px; }
.gpq-reveal-seal {
  width: 94px; height: 94px; margin-top: -8px; opacity: 0;
  background: var(--night); filter: drop-shadow(0 0 18px #edbb7c44);
}
.gpq-reveal-title {
  margin: 22px 0 16px; color: var(--cream); opacity: 0;
  font-size: clamp(28px, 7vw, 46px); text-wrap: balance;
}
.gpq-reveal-cabin {
  min-width: 156px; padding: 9px 24px; border: 1px solid var(--cabin-color);
  border-radius: 5px; background: var(--cabin-color); color: var(--night);
  font: 700 24px/1.2 var(--heading); box-shadow: 0 8px 24px #0006; opacity: 0;
}
.gpq-reveal-skip { margin-top: auto; min-width: 132px; position: relative; z-index: 1; }
.gpq-invite-named { font-size: 14px; letter-spacing: 0; text-transform: none; line-height: 1.45; }
.gpq-rarity {
  display: inline-block; margin: 2px auto 12px; padding: 2px 10px;
  border: 1px solid currentColor; border-radius: 999px; color: var(--cabin-color);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

.gpq-name-details { margin-top: 8px; }
.gpq-name-details > summary {
  display: flex; align-items: center; min-height: 44px; color: var(--gold);
  font-size: 14px; font-weight: 700; cursor: pointer; list-style: none;
}
.gpq-name-details > summary::-webkit-details-marker { display: none; }
.gpq-name-details[open] > summary { margin-bottom: 8px; }
.gpq-name-field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.gpq-name-field small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.gpq-name-input {
  width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--night); color: var(--cream); font-size: 16px;
}
.gpq-name-input::placeholder { color: var(--muted); opacity: .76; }
.gpq-card-preview:empty { display: none; }
.gpq-card-preview { display: grid; justify-items: center; gap: 8px; margin-top: 16px; }
.gpq-card-image {
  width: min(100%, 260px); height: auto; max-height: 440px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 7px;
}
.gpq-card-save-hint { max-width: 38ch; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }

@media (min-width: 780px) {
  .gpq-reveal, .gpq-reveal-scene { min-height: 610px; }
  .gpq-reveal-fire { width: 128px; height: 128px; }
  .gpq-reveal-seal { width: 108px; height: 108px; }
  .gpq-card-image { width: min(100%, 300px); }
}

@media (prefers-reduced-motion: no-preference) {
  .gpq-reveal-fire { animation: gpq-fire-arrive .4s ease-out both; }
  .gpq-flame-outer { animation: gpq-flame .3s .4s ease-in-out 5 alternate; }
  .gpq-flame-inner { animation: gpq-flame .24s .42s ease-in-out 6 alternate-reverse; }
  .gpq-reveal-seal { animation: gpq-emblem-arrive .5s .35s ease-out both; }
  .gpq-reveal-title { animation: gpq-title-arrive .4s .8s ease-out both; }
  .gpq-reveal-cabin { animation: gpq-cabin-drop .36s 1.25s cubic-bezier(.2,.8,.3,1.2) both; }
}
@keyframes gpq-fire-arrive {
  from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: scale(1); }
}
@keyframes gpq-flame {
  from { transform: scale(.94, 1.03) rotate(-2deg); } to { transform: scale(1.04, .96) rotate(2deg); }
}
@keyframes gpq-emblem-arrive {
  from { opacity: 0; transform: translateY(8px) scale(.7); } to { opacity: 1; transform: none; }
}
@keyframes gpq-title-arrive {
  from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; }
}
@keyframes gpq-cabin-drop {
  from { opacity: 0; transform: translateY(-28px) rotate(-4deg); }
  to { opacity: 1; transform: translateY(0) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .gpq-reveal-scene *, .gpq-reveal-scene { animation: none !important; }
}
