:root {
  --ink: #183c3b;
  --ink-soft: #4e6662;
  --paper: #fffaf0;
  --paper-deep: #f8eddb;
  --teal: #0e716b;
  --teal-dark: #07544f;
  --coral: #e46f50;
  --gold: #e9b84a;
  --gold-soft: #ffe6a3;
  --sage: #dceae3;
  --line: rgba(24, 60, 59, 0.16);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(51, 65, 52, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, label, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-150%); padding: 10px 16px; color: white; background: var(--teal-dark); border-radius: 10px; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: white;
  background: rgba(8, 76, 72, .94);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--teal-dark); background: var(--gold-soft); border-radius: 50%; font-family: Georgia, "Songti SC", serif; font-size: 22px; }
.brand-copy { display: flex; flex-direction: column; font-weight: 800; letter-spacing: .03em; line-height: 1.2; }
.brand-copy small { margin-top: 3px; font-size: 11px; font-weight: 500; letter-spacing: .1em; opacity: .8; text-transform: uppercase; }
.language-switcher { display: flex; padding: 4px; background: rgba(255,255,255,.12); border-radius: 999px; }
.lang-button { min-width: 58px; padding: 8px 12px; border: 0; color: rgba(255,255,255,.72); background: transparent; border-radius: 999px; cursor: pointer; }
.lang-button.is-active { color: var(--teal-dark); background: white; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.hero { position: relative; overflow: hidden; color: white; background: linear-gradient(135deg, #07534f 0%, #0a6c65 54%, #205d52 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(circle at 2px 2px, #fff 1px, transparent 1.3px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.moon-glow { position: absolute; right: 6vw; top: 26px; width: 350px; height: 350px; border-radius: 50%; background: radial-gradient(circle, rgba(255,237,177,.6) 0 34%, rgba(255,221,125,.15) 35% 56%, transparent 72%); filter: blur(.3px); }
.hero-grid { position: relative; min-height: 610px; padding-block: 92px 78px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 12px; color: var(--coral); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: #ffd799; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 22px; font-family: Georgia, "Songti SC", "STSong", serif; font-size: clamp(48px, 7vw, 82px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
h1 small { display: block; margin-top: 14px; color: #ffdfa3; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(19px, 2.4vw, 28px); font-weight: 500; letter-spacing: .06em; }
.hero-lede { max-width: 680px; margin-bottom: 30px; font-size: clamp(18px, 2vw, 22px); color: rgba(255,255,255,.82); }
.event-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 36px; }
.fact { display: inline-flex; align-items: center; gap: 10px; min-width: 180px; }
.fact-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: var(--gold-soft); border: 1px solid rgba(255,230,163,.38); border-radius: 50%; font-family: Georgia, "Songti SC", serif; }
.fact > span:last-child { display: flex; flex-direction: column; font-size: 14px; color: rgba(255,255,255,.78); }
.fact strong { color: white; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.primary-cta, .secondary-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 24px; border: 0; border-radius: 999px; text-decoration: none; font-weight: 850; cursor: pointer; }
.primary-cta { color: #163f3c; background: var(--gold-soft); box-shadow: 0 8px 28px rgba(233,184,74,.23); }
.primary-cta:hover { background: #fff0bd; transform: translateY(-1px); }
.hero-note { position: relative; padding: 30px; color: var(--ink); background: rgba(255,250,240,.94); border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.note-kicker { margin-bottom: 14px; color: var(--teal); font-weight: 900; }
.hero-note ul { margin: 0; padding-left: 21px; }
.hero-note li + li { margin-top: 10px; }
.privacy-chip { display: inline-flex; margin: 24px 0 0; padding: 8px 12px; color: var(--teal-dark); background: var(--sage); border-radius: 999px; font-size: 12px; font-weight: 750; }

.activities { padding-block: 86px 72px; }
.section-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, .65fr); align-items: end; gap: 70px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
.section-heading > p { margin: 0; color: var(--ink-soft); }
.activity-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.availability-status { margin: -12px 0 24px; color: var(--teal-dark); font-size: 13px; font-weight: 750; }
.availability-status.is-error { color: #9b3f28; }
.summary-card { padding: 28px; background: white; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 12px 40px rgba(48,73,61,.06); }
.summary-number { display: block; margin-bottom: 12px; color: var(--coral); font-family: Georgia, serif; font-size: 48px; line-height: 1; }
.summary-card h3 { margin-bottom: 3px; font-size: 18px; }
.summary-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.registration-section { padding-block: 78px 96px; background: #f5ecdc; border-block: 1px solid var(--line); }
.form-heading { align-items: center; }
.steps { display: flex; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.steps li > span:first-child { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.steps li.is-current { color: var(--teal-dark); }
.steps li.is-current > span:first-child { color: white; background: var(--teal); border-color: var(--teal); }
.form-panel { min-width: 0; margin: 0 0 20px; padding: 30px; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 14px 44px rgba(70,65,43,.06); }
.form-panel legend { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 0; font-size: 20px; }
.form-panel legend > span:last-child { display: flex; flex-direction: column; }
.form-panel legend small { margin-top: 2px; color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.legend-number { display: grid; width: 34px; height: 34px; place-items: center; color: white; background: var(--coral); border-radius: 50%; font-size: 15px; font-weight: 900; }
.lantern-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 12px; }
.lantern-card { position: relative; display: grid; grid-template-columns: 180px minmax(0,1fr); min-height: 210px; overflow: hidden; background: var(--paper); border: 2px solid transparent; border-radius: var(--radius-md); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.lantern-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(36,64,51,.1); }
.lantern-card:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,113,107,.12); }
.lantern-card.is-full, .companion-card.is-full { cursor: not-allowed; filter: grayscale(.45); opacity: .58; }
.lantern-card.is-full:hover { transform: none; box-shadow: none; }
.capacity.is-full, .capacity-inline.is-full { color: #9b3f28; background: #ffe1d6; }
.lantern-card input { position: absolute; opacity: 0; }
.lantern-card img { width: 100%; height: 100%; object-fit: cover; }
.lantern-content { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; }
.lantern-topline { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lantern-topline strong { font-size: 17px; }
.capacity { flex: 0 0 auto; padding: 4px 8px; color: var(--teal-dark); background: var(--sage); border-radius: 999px; font-size: 11px; }
.difficulty { margin-top: 18px; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 850; }
.difficulty.is-complex { color: #963b26; background: #ffe1d6; }
.difficulty.is-easy { color: #246146; background: #dff0df; }
.duration { margin-top: 7px; font-size: 14px; font-weight: 800; }
.lantern-content small { margin-top: auto; padding-top: 14px; color: var(--ink-soft); }
.card-check, .companion-check { position: absolute; z-index: 2; display: grid; place-items: center; color: white; background: var(--teal); border-radius: 50%; opacity: 0; transform: scale(.7); transition: .2s ease; }
.card-check { top: 12px; left: 12px; width: 30px; height: 30px; }
.lantern-card:has(input:checked) .card-check, .companion-card:has(input:checked) .companion-check { opacity: 1; transform: scale(1); }
.text-button { margin-top: 18px; padding: 8px 0; border: 0; color: var(--teal); background: transparent; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.companion-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.companion-card { position: relative; display: flex; min-height: 110px; align-items: center; gap: 18px; padding: 20px; background: var(--paper); border: 2px solid transparent; border-radius: var(--radius-md); cursor: pointer; }
.companion-card:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,113,107,.12); }
.companion-card input { position: absolute; opacity: 0; }
.companion-check { top: 12px; right: 12px; width: 26px; height: 26px; }
.companion-icon { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; color: #8b3f2a; background: #ffe1ce; border-radius: 18px; font-family: Georgia, "Songti SC", serif; font-size: 24px; }
.companion-card > span:last-child { display: flex; flex-direction: column; }
.companion-card small { margin-top: 4px; color: var(--ink-soft); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 750; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); background: var(--paper); border: 1px solid rgba(24,60,59,.24); border-radius: 11px; outline: none; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,113,107,.12); }
.field input[aria-invalid="true"] { border-color: #b94930; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; color: var(--ink-soft); font-size: 13px; cursor: pointer; }
.consent-row input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--teal); }
.field-error { min-height: 18px; margin: 8px 0 0; color: #a43621; font-size: 12px; font-weight: 650; }
.bot-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px 4px 0; }
.form-submit-row p { max-width: 620px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.form-submit-row .primary-cta { color: white; background: var(--teal); box-shadow: none; }
.form-submit-row .primary-cta:hover { background: var(--teal-dark); }

.confirmation { padding-block: 84px; }
.confirmation-card { max-width: 760px; margin: auto; padding: 52px; text-align: center; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.success-mark { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; color: white; background: var(--teal); border-radius: 50%; font-size: 28px; }
.confirmation-card h2 { font-family: Georgia, "Songti SC", serif; font-size: 36px; }
.confirmation-card > p:not(.eyebrow) { color: var(--ink-soft); }
.confirmation-summary { margin: 24px 0; padding: 18px; text-align: left; background: var(--paper); border-radius: var(--radius-md); }
.registration-code { display: inline-flex; flex-direction: column; gap: 4px; margin: 12px auto 8px; padding: 14px 24px; color: var(--ink) !important; background: var(--gold-soft); border-radius: 14px; }
.registration-code span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.registration-code strong { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 20px; letter-spacing: .05em; }
.primary-cta[disabled] { cursor: wait; opacity: .65; transform: none; }
.secondary-button { color: var(--teal-dark); background: var(--sage); }

.site-footer { padding-block: 58px; color: rgba(255,255,255,.86); background: #103f3c; }
.support-intro { margin-bottom: 18px; color: #ffdda0; font-weight: 850; }
.supporters { display: grid; grid-template-columns: 1.25fr 1fr .75fr; gap: 12px; }
.supporter-logo { display: flex; min-height: 108px; align-items: center; justify-content: center; margin: 0; padding: 20px; overflow: hidden; background: white; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; }
.supporter-logo img { width: 100%; max-height: 70px; object-fit: contain; }
.supporter-logo-wide img { max-height: 82px; }
.footer-note { margin: 24px 0 0; color: rgba(255,255,255,.55); font-size: 12px; }

dialog { width: min(680px, calc(100% - 28px)); padding: 0; color: var(--ink); background: white; border: 0; border-radius: var(--radius-lg); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(8,38,36,.72); backdrop-filter: blur(4px); }
.review-dialog-inner { padding: 30px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-header h2 { margin-bottom: 0; font-family: Georgia, "Songti SC", serif; font-size: 34px; }
.dialog-close { width: 40px; height: 40px; flex: 0 0 auto; border: 0; color: var(--ink); background: var(--paper-deep); border-radius: 50%; font-size: 24px; cursor: pointer; }
.review-summary { margin-block: 24px; }
.review-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-row span:first-child { color: var(--ink-soft); font-size: 13px; font-weight: 750; }
.dialog-notice { padding: 12px 14px; color: var(--teal-dark); background: var(--sage); border-radius: 10px; font-size: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.dialog-actions .primary-cta { color: white; background: var(--teal); box-shadow: none; }

:focus-visible { outline: 3px solid #f5be4c; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

@media (max-width: 900px) {
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding-block: 72px; }
  .moon-glow { right: -110px; top: 20px; }
  .hero-note { max-width: 620px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .form-heading { align-items: flex-start; }
  .steps { justify-content: flex-start; }
  .lantern-grid { grid-template-columns: 1fr; }
  .supporters { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 24px, 1160px); }
  .site-header { position: static; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy small { display: none; }
  .lang-button { min-width: 48px; padding-inline: 9px; }
  .hero-grid { padding-block: 54px; }
  h1 { font-size: 48px; }
  .event-facts { flex-direction: column; }
  .activity-summary-grid, .companion-grid, .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .form-panel { padding: 20px; border-radius: 20px; }
  .form-panel legend { font-size: 17px; }
  .lantern-card { grid-template-columns: 1fr; }
  .lantern-card img { height: 200px; }
  .lantern-content { min-height: 205px; }
  .steps { width: 100%; overflow-x: auto; }
  .form-submit-row { align-items: stretch; flex-direction: column; }
  .confirmation-card { padding: 30px 20px; }
  .review-row { grid-template-columns: 1fr; gap: 3px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
}
