:root {
  color-scheme: light;
  --cream: #fff3c4;
  --paper: #fffaf0;
  --navy: #1b3768;
  --navy-soft: #34527d;
  --coral: #ff554f;
  --orange: #ffa827;
  --line: rgba(27, 55, 104, .18);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--navy); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.page-shell { max-width: 1200px; min-height: 100svh; margin: auto; padding: 0 clamp(20px, 5vw, 64px); display: flex; flex-direction: column; }
.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 30px; font-weight: 900; letter-spacing: -.07em; color: var(--navy); text-decoration: none; }
.spark { color: var(--coral); font-size: 28px; margin-left: 5px; vertical-align: top; }
.text-button, .back-button { background: none; border: 0; color: var(--navy); font-weight: 700; padding: 10px 0; }
.text-button:hover, .back-button:hover { color: var(--coral); }
main { flex: 1; }
.site-footer { padding: 30px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; color: var(--navy-soft); font-size: 13px; }
.eyebrow, .section-number, .small-label, .station-overline { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 900; }
.hero { padding: clamp(50px, 8vw, 98px) 0 70px; position: relative; overflow: hidden; }
.hero::after { content: "✳"; position: absolute; right: 0; top: 12px; font-size: clamp(160px, 30vw, 370px); line-height: 1; color: var(--orange); opacity: .75; transform: rotate(-18deg); z-index: -1; }
.hero h1, .finish-card h1, .host-head h1 { font-size: clamp(48px, 7vw, 90px); line-height: .97; letter-spacing: -.06em; margin: 26px 0; max-width: 900px; }
.hero h1 em, .finish-card h1 em { font-style: normal; color: var(--coral); }
.hero-copy { max-width: 620px; font-size: clamp(18px, 2.1vw, 24px); line-height: 1.35; margin: 0 0 26px; }
.hero-note { display: inline-flex; align-items: center; gap: 10px; padding: 12px 17px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; }
.hero-note span { color: var(--coral); font-size: 20px; }
.selection { padding-bottom: 86px; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -.05em; margin: 8px 0 0; }
.section-heading p { margin: 0 0 6px; max-width: 300px; line-height: 1.4; }
.group-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.group-card { min-height: 190px; padding: 24px; border-radius: 18px; background: var(--paper); border: 2px solid var(--navy); color: var(--navy); text-align: left; display: flex; flex-direction: column; justify-content: space-between; transition: transform .18s, box-shadow .18s; }
.group-card:hover { transform: translateY(-5px); box-shadow: 0 12px 0 rgba(27,55,104,.1); }
.group-card .color-dot { width: 52px; height: 52px; border-radius: 50%; background: var(--group-color); border: 2px solid var(--navy); }
.group-card strong { font-size: 29px; letter-spacing: -.04em; }
.group-card small { font-size: 13px; font-weight: 700; }
.join-form, .returning { max-width: 580px; background: var(--paper); border: 2px solid var(--navy); border-radius: 22px; padding: clamp(22px, 4vw, 38px); box-shadow: 8px 8px 0 var(--orange); }
.join-form label, .qr-panel label { display: block; font-weight: 850; margin: 0 0 8px; }
.join-form input, .join-form select, .qr-panel select { display: block; width: 100%; min-height: 55px; border: 2px solid var(--navy); border-radius: 11px; padding: 12px 15px; background: white; color: var(--navy); font: inherit; font-size: 17px; margin-bottom: 22px; }
.join-form input:focus, .join-form select:focus, .qr-panel select:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.join-form .primary-button { width: 100%; }
.form-status { min-height: 20px; color: #aa302e; font-weight: 750; line-height: 1.4; }
.privacy-note { color: var(--navy-soft); font-size: 13px; line-height: 1.4; margin: 0; }
.returning[hidden] { display: none; }
.returning h3 { font-size: 30px; letter-spacing: -.04em; margin: 16px 0 6px; }
.returning p { line-height: 1.45; }
.returning .primary-button { margin: 12px 0; }
.returning .text-button { display: block; }
.route-page { max-width: 760px; margin: 34px auto 80px; }
.route-header, .progress-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.group-pill { border: 2px solid var(--navy); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--group-color); }
.progress-area { margin: 30px 0 22px; }
.progress-top { font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.progress-track { height: 9px; background: rgba(27,55,104,.12); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 25%; background: var(--coral); border-radius: inherit; transition: width .25s; }
.station-card { background: var(--paper); border: 2px solid var(--navy); border-radius: 25px; padding: clamp(26px, 6vw, 56px); box-shadow: 10px 10px 0 var(--orange); }
.station-overline { color: var(--coral); }
.station-card h1 { font-size: clamp(40px, 6vw, 66px); line-height: 1; letter-spacing: -.055em; margin: 18px 0 14px; }
.station-badge { display: inline-block; padding: 8px 13px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.station-section { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 23px; }
.station-section p { margin: 8px 0 0; font-size: clamp(20px, 2.5vw, 27px); line-height: 1.35; }
.station-section.conversation { border: 0; background: var(--cream); border-radius: 16px; padding: 22px; margin-top: 22px; }
.station-section.conversation p { font-weight: 750; }
.station-note { font-size: 14px; line-height: 1.45; margin: 24px 0 0; color: var(--navy-soft); }
.route-actions { margin-top: 35px; text-align: center; }
.route-actions p { color: var(--navy-soft); font-size: 14px; }
.primary-button, .secondary-button { border-radius: 999px; padding: 17px 27px; font-weight: 900; border: 2px solid var(--navy); min-height: 56px; }
.primary-button { background: var(--coral); color: white; box-shadow: 5px 5px 0 var(--navy); }
.primary-button:hover { background: #e7423e; }
.secondary-button { background: var(--paper); color: var(--navy); }
.secondary-button:hover { background: var(--cream); }
.finish-card { max-width: 820px; margin: 80px auto 100px; text-align: center; }
.finish-symbol { font-size: 90px; color: var(--orange); line-height: 1; margin-top: 30px; }
.finish-card h1 { font-size: clamp(45px, 6vw, 76px); }
.finish-card p { font-size: 21px; line-height: 1.45; max-width: 630px; margin: 0 auto 30px; }
.finish-words { font-weight: 900; margin-bottom: 35px; }
.finish-words span { color: var(--coral); padding: 0 6px; }
.host-page { margin: 34px 0 80px; }
.host-head { max-width: 780px; margin: 45px 0 50px; }
.host-head h1 { font-size: clamp(44px, 6vw, 76px); }
.host-head p { font-size: 20px; line-height: 1.45; }
.host-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.host-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 30px; margin-bottom: 18px; }
.host-panel h2 { margin: 0 0 22px; font-size: 27px; letter-spacing: -.04em; }
.host-panel p, .host-panel blockquote { line-height: 1.5; }
.host-panel blockquote { font-size: 21px; font-weight: 750; margin: 0 0 20px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.timeline strong { color: var(--coral); }
.timer { font-size: clamp(64px, 8vw, 110px); font-weight: 900; line-height: 1; letter-spacing: -.07em; font-variant-numeric: tabular-nums; margin: 20px 0; }
.timer-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.timer-panel p { font-size: 14px; color: var(--navy-soft); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; text-align: left; }
th, td { padding: 13px; border-bottom: 1px solid var(--line); }
th { color: var(--navy-soft); font-size: 13px; }
.route-letter { font-weight: 900; font-size: 19px; }
.route-color { display: inline-block; width: 15px; height: 15px; border-radius: 50%; background: var(--group-color); vertical-align: middle; margin-right: 7px; }
.qr-layout { display: flex; align-items: center; gap: 30px; margin-top: 20px; }
.qr-layout img { display: block; width: min(100%, 280px); aspect-ratio: 1; border: 2px solid var(--navy); border-radius: 12px; background: white; }
.share-url { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 25px; }
.count-card { background: var(--cream); padding: 15px; border-radius: 12px; border: 1px solid var(--line); }
.count-card strong { display: block; font-size: 30px; }
.count-card small { display: block; line-height: 1.4; }
.day-hero { padding: clamp(42px, 7vw, 82px) 0 32px; }
.day-hero h1 { font-size: clamp(46px, 8vw, 88px); line-height: 1; letter-spacing: -.06em; margin: 22px 0; }
.day-hero h1 em { color: var(--coral); font-style: normal; }
.day-hero p { max-width: 580px; font-size: clamp(18px, 2vw, 23px); line-height: 1.4; }
.day-group { display: inline-block; background: var(--group-color, var(--paper)); border: 2px solid var(--navy); border-radius: 999px; padding: 10px 17px; font-weight: 800; }
.day-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.day-nav a { color: var(--navy); text-decoration: none; font-weight: 800; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 11px 15px; }
.day-nav a:hover { background: var(--orange); }
.day-section { padding: 70px 0 10px; scroll-margin-top: 20px; }
.day-agenda { list-style: none; padding: 0; margin: 0 0 30px; border-top: 2px solid var(--navy); }
.day-agenda li { display: grid; grid-template-columns: 160px 1fr; gap: 20px; border-bottom: 1px solid var(--line); padding: 20px 0; }
.day-agenda time { color: var(--coral); font-weight: 900; font-variant-numeric: tabular-nums; }
.day-agenda strong, .day-agenda span { display: block; }
.day-agenda strong { font-size: 21px; margin-bottom: 5px; }
.day-agenda span { color: var(--navy-soft); line-height: 1.4; }
.day-card { background: var(--paper); border: 2px solid var(--navy); border-radius: 24px; padding: clamp(23px, 5vw, 45px); max-width: 760px; box-shadow: 8px 8px 0 var(--orange); margin-bottom: 18px; }
.day-card h3 { font-size: clamp(29px, 4vw, 43px); letter-spacing: -.045em; margin: 15px 0; }
.day-card p, .day-card li { font-size: 17px; line-height: 1.5; }
.world-card ol { padding-left: 23px; }
.world-card li { margin-bottom: 9px; }
.feedback-card form { margin-top: 20px; }
.feedback-card fieldset { border: 0; padding: 0; margin: 0 0 25px; }
.feedback-card legend, .feedback-card form > label { display: block; font-weight: 800; margin-bottom: 10px; }
.rating-options { display: flex; gap: 8px; margin: 12px 0; }
.rating-options label { position: relative; flex: 1; max-width: 70px; }
.rating-options input { position: absolute; opacity: 0; }
.rating-options span { display: grid; place-items: center; min-height: 55px; border: 2px solid var(--navy); border-radius: 12px; background: white; font-size: 20px; font-weight: 900; }
.rating-options input:checked + span { background: var(--coral); color: white; }
.rating-options input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }
.feedback-card textarea { width: 100%; border: 2px solid var(--navy); border-radius: 12px; padding: 13px; font: inherit; margin-bottom: 23px; resize: vertical; }
.feedback-card textarea:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.feedback-card small { color: var(--navy-soft); }
.feedback-card .primary-button { margin-bottom: 18px; }
#feedback-thanks { font-size: 22px; font-weight: 800; }
@media (max-width: 760px) {
  .topbar { min-height: 70px; }
  .hero { padding: 32px 0 26px; }
  .hero::after { right: -40px; top: 0; opacity: .25; }
  .hero h1 { font-size: clamp(38px, 10vw, 52px); margin: 16px 0; }
  .hero-copy { font-size: 16px; margin-bottom: 16px; }
  .hero-note { font-size: 13px; padding: 9px 12px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 10px; }
  .group-grid { grid-template-columns: repeat(2, 1fr); }
  .group-card { min-height: 150px; padding: 18px; }
  .group-card strong { font-size: 24px; }
  .site-footer { flex-direction: column; }
  .host-grid { grid-template-columns: 1fr; }
  .qr-layout { display: block; }
  .qr-layout img { margin: 18px auto; }
  .counts { grid-template-columns: repeat(2, 1fr); }
  .day-agenda li { grid-template-columns: 1fr; gap: 5px; }
  .day-section { padding-top: 50px; }
  .day-nav { gap: 6px; }
  .day-nav a { padding: 9px 11px; font-size: 14px; }
}
@media (max-width: 420px) {
  .group-grid { gap: 10px; }
  .group-card { min-height: 135px; }
  .route-page { margin-top: 20px; }
  .station-card { box-shadow: 5px 5px 0 var(--orange); }
  .station-section.conversation { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  @page { size: A4; margin: 18mm; }
  body, .page-shell { background: white; color: #1b3768; }
  .topbar, .site-footer, .host-page > .back-button, .host-head, .host-grid, .host-page > .host-panel:not(.qr-panel), .qr-panel > p, .qr-panel label, .qr-panel select, .qr-panel .counts, .qr-panel button, .qr-panel .form-status { display: none !important; }
  .host-page { margin: 0; }
  .qr-panel { border: 0; margin: 0; padding: 0; }
  .qr-panel h2 { font-size: 34pt; margin: 10mm 0 15mm; }
  .qr-layout { display: block; }
  .qr-layout img { width: 100mm; margin: 0 auto; border: 0; }
  .share-url { text-align: center; font-size: 16pt; margin: 12mm 0; }
}
