.christmas-page {
  --xm-night: #071a14;
  --xm-pine: #0e3b2e;
  --xm-wool: #efe3cc;
  --xm-paper: #fbf6ea;
  --xm-red: #c5202f;
  --xm-mustard: #e8b33d;
  --xm-ink: #14231d;
  --xm-ink-2: #4c5a52;
  --xm-text: "IBM Plex Sans KR", sans-serif;
  --xm-display: "Bagel Fat One", sans-serif;
  --xm-divider: 2px dashed rgb(20 35 29 / 25%);
  background: var(--xm-wool);
  color: var(--xm-ink);
  font: 400 16px/1.7 var(--xm-text);
}

.christmas-page :is(h1, h2, h3, p):lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
.christmas-page :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.xm-title, .tg-story h2, .tg-story h3, .xm-stats dt, .xm-details dd, .xm-closing h2, .tg-section-heading h2, .tg-offer-price strong, .tg-order-summary strong {
  font: 400 var(--xm-size, clamp(40px, 5.2vw, 72px))/1.06 var(--xm-display);
  font-synthesis: none;
  letter-spacing: 0;
}
.tg-story h3 { --xm-size: clamp(28px, 3vw, 40px); }
.tg-story h2 { margin-bottom: clamp(24px, 3vw, 40px); text-wrap: balance; }

.xm-header {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 5vw, 88px);
  color: var(--xm-paper);
  background: linear-gradient(rgb(7 26 20 / 78%), transparent);
}
.xm-header nav, .xm-hero-actions { display: flex; align-items: center; gap: 12px; }
.xm-header nav { font-size: 13px; font-weight: 600; }
.xm-header [aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.xm-button, .tg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 26px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.xm-button-red, .tg-button { background: var(--xm-red); color: var(--xm-paper); transition: transform .18s ease; }
.xm-button-ghost { min-height: 40px; padding: 6px 18px; border: 1px solid currentColor; background: rgb(7 26 20 / 65%); }
.tg-scroll-progress { position: fixed; z-index: 8; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--xm-red), var(--xm-mustard)); transform: scaleX(0); transform-origin: left; pointer-events: none; }

.xm-hero, .xm-closing { position: relative; isolation: isolate; background: var(--xm-night); color: var(--xm-paper); }
.xm-hero {
  min-height: max(640px, min(100svh, 980px));
  display: flex;
  align-items: flex-end;
  padding: 104px clamp(24px, 5vw, 88px) clamp(36px, 5vh, 70px);
}
.xm-hero-photo, .xm-closing-photo, .xm-snow, .xm-hero::before, .xm-closing::before { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.xm-hero-photo, .xm-closing-photo { z-index: -3; }
.xm-hero-photo img, .xm-closing-photo { width: 100%; height: 100%; object-fit: cover; }
.xm-hero::before, .xm-closing::before { content: ""; z-index: -2; }
.xm-hero::before { background: linear-gradient(to top, var(--xm-night), transparent 62%), linear-gradient(to right, rgb(7 26 20 / 62%), transparent 60%); }
.xm-snow { z-index: -1; }
.xm-title { --xm-size: clamp(64px, 11.5vw, 200px); line-height: 1; }
.xm-title span { display: block; }
.xm-title-small { font-size: .45em; color: var(--xm-mustard); }
.xm-hero-lead { max-width: 34ch; margin: 18px 0; text-wrap: balance; }
.xm-hero-actions { flex-wrap: wrap; gap: 18px; }
.xm-countdown { color: var(--xm-mustard); font-weight: 600; }
.xm-patch {
  position: absolute;
  right: clamp(24px, 5vw, 88px);
  bottom: clamp(36px, 5vh, 70px);
  width: 280px;
  padding: 16px 24px;
  background: var(--xm-paper);
  color: var(--xm-ink);
  outline: 2px dashed var(--xm-red);
  outline-offset: -8px;
  box-shadow: 0 12px 24px rgb(7 26 20 / 38%);
  transform: rotate(3deg);
  font-weight: 600;
}
.xm-patch li { padding: 5px 0; }
.xm-patch li + li { border-top: 1px dashed rgb(20 35 29 / 35%); }

/* Each four-pixel square is a stitch in the repeating band. */
.xm-knit {
  height: 56px;
  background: var(--xm-red) repeat-x center / 96px 56px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='56' viewBox='0 0 96 56'%3E%3Cdefs%3E%3Cpattern id='z' width='16' height='12' patternUnits='userSpaceOnUse'%3E%3Cpath fill='%23fbf6ea' d='M0 0h4v4H0zM4 4h4v4H4zM8 8h4v4H8zM12 4h4v4h-4z'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath fill='url(%23z)' d='M0 0h96v12H0z'/%3E%3Cpath transform='translate(0 56) scale(1 -1)' fill='url(%23z)' d='M0 0h96v12H0z'/%3E%3Cpath fill='%23fbf6ea' d='M20 12h4v32h-4zM8 28h28v4H8zM8 16h4v4H8zM12 20h4v4h-4zM16 24h4v4h-4zM24 32h4v4h-4zM28 36h4v4h-4zM32 40h4v4h-4zM32 16h4v4h-4zM28 20h4v4h-4zM24 24h4v4h-4zM16 32h4v4h-4zM12 36h4v4h-4zM8 40h4v4H8zM68 12h4v4h-4zM64 16h4v4h-4zM72 16h4v4h-4zM60 20h4v4h-4zM76 20h4v4h-4zM56 24h4v4h-4zM80 24h4v4h-4zM60 28h4v4h-4zM76 28h4v4h-4zM64 32h4v4h-4zM72 32h4v4h-4zM68 36h4v4h-4z'/%3E%3C/svg%3E");
}

.tg-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; align-items: start; gap: clamp(42px, 5vw, 80px); max-width: 1440px; margin: auto; padding: clamp(60px, 7vw, 100px) clamp(32px, 5vw, 80px); }
.tg-story { display: grid; gap: clamp(64px, 7vw, 104px); min-width: 0; }
.tg-story > section { min-width: 0; }
.xm-invitation-copy, .xm-activities-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.xm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.xm-stats > div { padding: 20px 16px; background: var(--xm-red); color: var(--xm-paper); outline: 1px dashed currentColor; outline-offset: -6px; }
.xm-stats > div:nth-child(2) { background: var(--xm-pine); }
.xm-stats > div:nth-child(3) { background: var(--xm-mustard); color: var(--xm-ink); }
.xm-stats dt { --xm-size: clamp(28px, 3vw, 48px); }
.xm-stats dd { font-size: 13px; margin-top: 8px; }
.xm-check, .xm-scenes { margin-top: clamp(28px, 4vw, 48px); }
.xm-check {
  padding: 28px;
  background: var(--xm-paper);
  border-left: 6px solid var(--xm-red);
  border-radius: 20px;
  outline: 2px dashed var(--xm-red);
  outline-offset: -8px;
}
.tg-story .xm-check h3, .tg-story .xm-scenes h3 { --xm-size: 32px; margin-bottom: 16px; }
.xm-check ul { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.xm-check li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; color: var(--xm-ink); font-size: 16px; line-height: 1.7; }
.xm-check li::before { content: ""; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--xm-red); }
.xm-check-note { padding-top: 16px; border-top: 1px dashed currentColor; color: var(--xm-ink-2); font-size: 15px; }
.xm-scenes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.xm-scenes img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; }
.tg-story .xm-scenes h4 { margin: 14px 0 8px; font: 400 21px/1.25 var(--xm-display); word-break: keep-all; overflow-wrap: normal; text-wrap: balance; }
.xm-scenes p { color: var(--xm-ink-2); font-size: 15px; }

.xm-activities-grid { row-gap: 40px; }
.xm-activity-sweater { grid-column: 1 / -1; --xm-tilt: -1.5deg; }
.xm-activity-games { --xm-tilt: 2deg; }
.xm-activity-photozone { --xm-tilt: -2deg; margin-top: 40px; }
.xm-print {
  position: relative;
  padding: 12px 12px 44px;
  background: var(--xm-paper);
  box-shadow: 0 24px 50px rgb(7 26 20 / .28);
  transform: rotate(var(--xm-tilt));
  transition: transform .2s ease;
}
.xm-print img { display: block; width: 100%; height: auto; }
.xm-photo-tag { position: absolute; top: 20px; left: -6px; padding: 5px 14px; font-size: 13px; font-weight: 600; background: var(--xm-red); color: var(--xm-paper); }
.xm-activities-grid h3 { margin: 28px 0 10px; }
.xm-activities-grid p { max-width: 60ch; }
.xm-stub {
  display: grid;
  grid-template-columns: 36% 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 66px;
  padding: 24px;
  color: var(--xm-paper);
  background: radial-gradient(circle at left center, var(--xm-wool) 10px, transparent 11px),
              radial-gradient(circle at right center, var(--xm-wool) 10px, transparent 11px), var(--xm-pine);
}
.xm-stub .xm-print { --xm-tilt: -3deg; margin-top: -64px; padding: 8px 8px 26px; }
.xm-stub-items { border-left: 2px dashed rgb(251 246 234 / 55%); padding-left: 24px; }
.xm-stub-items li + li { margin-top: 18px; }
.xm-stub-items h3 { color: var(--xm-mustard); }
.xm-stub-items p { margin-top: 8px; }
.xm-details dl > div, .xm-faq details { border-top: var(--xm-divider); padding: 20px 0; }
.xm-details dl > div { display: grid; grid-template-columns: 30% 1fr; }
.xm-details dt { color: var(--xm-pine); font-weight: 600; }
.xm-details dd { --xm-size: 32px; overflow-wrap: anywhere; }
.xm-details small { display: block; margin-top: 8px; font: 400 16px/1.7 var(--xm-text); color: var(--xm-ink-2); }
.xm-event-description p + p { margin-top: 1em; }
.xm-faq details:last-child { border-bottom: var(--xm-divider); }
.xm-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.xm-faq summary::-webkit-details-marker { display: none; }
.xm-faq summary span { color: var(--xm-red); font-size: 26px; line-height: 1; transition: transform .16s ease; }
.xm-faq [open] summary span { transform: rotate(45deg); }
.xm-faq details p { padding-top: 12px; }
.xm-faq details a { text-decoration: underline; }

/* Shared checkout and guest-list forms. */
.tg-tickets {
  position: sticky;
  top: 24px;
  min-width: 0;
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  padding: 30px 24px;
  border-radius: 20px;
  outline: 2px dashed var(--xm-mustard);
  outline-offset: -8px;
  background: var(--xm-pine);
  color: var(--xm-paper);
  scrollbar-width: thin;
  scrollbar-color: var(--xm-mustard) var(--xm-pine);
  scroll-margin-top: 24px;
}
.tg-section-heading { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px dashed currentColor; }
.tg-section-heading .tg-label, .tg-section-heading h2 span { display: none; }
.tg-section-heading > p { margin-top: 12px; }
.tg-offers { display: grid; gap: 10px; min-width: 0; }
.tg-offer { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 14px 12px; border: 1px solid var(--xm-paper); border-radius: 10px; cursor: pointer; }
.tg-offer:not(.tg-unavailable):hover { border-color: var(--xm-mustard); }
.tg-offer:has(input:checked) { border-color: var(--xm-red); background: rgb(197 32 47 / 25%); }
.tg-offer input, .party-guest-list-gender input { flex: none; width: 18px; height: 18px; accent-color: var(--xm-red); }
.tg-offer-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tg-offer-name strong, .party-guest-list-gender legend { font-weight: 600; }
.tg-offer small { display: block; margin-top: 4px; font-size: 13px; }
.tg-offer-price { text-align: right; }
.tg-offer-price > strong, .tg-order-summary strong { --xm-size: 24px; color: var(--xm-mustard); }
.tg-unavailable { border-style: dashed; cursor: default; color: var(--xm-wool); }
.tg-order-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; border-bottom: 1px dashed currentColor; }
.tg-order-summary label, .tg-order-summary p { display: grid; gap: 6px; font-size: 13px; }
.tg-order-summary p { text-align: right; }
.tg-order-summary strong { --xm-size: 32px; }
.tg-order-summary select { min-width: 76px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--xm-paper); border-radius: 8px; background: var(--xm-night); color: var(--xm-paper); }
.tg-button { width: 100%; margin-top: 20px; }
.tg-consents { margin-top: 20px; }
.tg-consents .dui-alert { display: block; margin-bottom: 12px; padding: 14px; border: 1px solid var(--xm-wool); border-radius: 10px; background: var(--xm-night); color: var(--xm-paper); box-shadow: none; text-align: left; font-size: 13px; }
.tg-consents .dui-alert h2 { font: 600 16px/1.5 var(--xm-text); letter-spacing: 0; }
.tg-consents .material-symbols-outlined { display: none; }
.tg-consents input[type=checkbox] { appearance: auto; accent-color: var(--xm-red); }
.tg-consents input[type=checkbox]::before { content: none; }
.tg-consents a { color: var(--xm-paper); text-decoration: underline; }
.tg-booking [role=alert]:not(.dui-alert), .tg-status { color: var(--xm-mustard); }
.tg-payment-note, .tg-ticket-footnote { margin-top: 16px; color: var(--xm-wool); font-size: 13px; }
.tg-refund-policy a { text-decoration: underline; text-underline-offset: 3px; }
.tg-status { padding: 12px 0; }
.tg-coming-soon { padding: 24px 16px; border: 1px dashed var(--xm-paper); border-radius: 12px; text-align: center; }
.tg-coming-soon > span { display: block; margin-bottom: 12px; color: var(--xm-mustard); font-size: 32px; line-height: 1; }
.tg-coming-soon p + p { margin-top: 8px; color: var(--xm-wool); font-size: 13px; }
.party-guest-list-gender { min-width: 0; }
.party-guest-list-gender p { margin: 8px 0; }
.party-guest-list-gender label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: 12px; cursor: pointer; }

.xm-closing { min-height: 520px; display: grid; place-items: center; padding: 60px 24px; text-align: center; }
.xm-closing::before { background: rgb(7 26 20 / 70%); }
.xm-closing-copy { max-width: 840px; text-wrap: balance; }
.xm-closing .xm-button { margin-top: 28px; }
.xm-image-credit { padding: 16px 20px; background: var(--xm-night); color: var(--xm-paper); text-align: center; font-size: 13px; }
.tg-visually-hidden, .tg-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tg-skip:focus { position: fixed; inset: 10px auto auto 10px; z-index: 9; padding: 10px 18px; background: var(--xm-paper); color: var(--xm-night); }
.tg-mobile-cta, .tg-mobile-cta[hidden] { display: none; }
.christmas-page footer { background-color: var(--xm-night); color: var(--xm-paper); }
.christmas-page footer a:hover { color: var(--xm-mustard); }
.christmas-page footer a { min-width: 0; transition: none; }
.christmas-page footer .material-symbols-outlined { flex-shrink: 0; }

@media (hover: hover) {
  .xm-button-red:hover, .tg-button:hover { transform: translateY(-2px); }
  .xm-print:hover { transform: rotate(0); }
}
@media (max-width: 1050px) {
  .tg-page-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-inline: 24px; }
  .xm-stats { gap: 6px; }
  .xm-stats > div { padding-inline: 12px; }
  .xm-stub { gap: 16px; padding-inline: 18px; }
}
@media (max-width: 760px) {
  .christmas-page { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .xm-header { padding: 16px 20px; }
  .xm-header img { width: 78px; height: auto; }
  .xm-header nav { gap: 8px; }
  .xm-hero { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 20px; padding: 128px 20px calc(76px + env(safe-area-inset-bottom)); }
  .xm-title { --xm-size: clamp(56px, 17vw, 96px); }
  .xm-patch { position: static; width: 100%; transform: none; }
  .tg-page-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; padding: 56px 20px; }
  .xm-check { padding: 22px; }
  .xm-scenes img { aspect-ratio: 4/3; }
  .xm-scenes-grid, .xm-invitation-copy, .xm-activities-grid, .xm-stub, .xm-stats, .xm-details dl > div { grid-template-columns: minmax(0, 1fr); }
  .xm-stats { gap: 10px; }
  .xm-stats > div { padding: 16px 20px; }
  .xm-activity-sweater, .xm-activity-photozone, .xm-stub .xm-print { --xm-tilt: -1deg; }
  .xm-activity-games { --xm-tilt: 1deg; }
  .xm-activity-photozone { margin-top: 0; }
  .xm-stub { gap: 24px; padding: 24px; }
  .xm-stub .xm-print { width: min(72%, 260px); justify-self: center; }
  .xm-stub-items { border: 0; padding: 0; }
  .xm-details dl > div { gap: 8px; }
  .tg-tickets { position: static; width: 100%; max-height: none; overflow: visible; }
  .tg-mobile-cta { position: fixed; z-index: 5; inset: auto 16px calc(12px + env(safe-area-inset-bottom)); display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .christmas-page *, .christmas-page *::before, .christmas-page *::after { animation: none !important; transition: none !important; }
  .xm-snow { display: none; }
}
