html:has(> body.christmas-page) { scroll-behavior: smooth; }

.christmas-page {
  --xm-column: min(390px, calc(100% - 24px));
  --xm-gutter: 18px;
  --xm-night: #0b0b0b;
  --xm-red: #9b2423;
  --xm-paper: #fff9f0;
  --xm-muted: #f9ded7;
  --xm-pink: #f3b6bf;
  --xm-cta: #ffedf0;
  --xm-cta-ink: #74192f;
  --xm-text: "IBM Plex Sans KR", sans-serif;
  --xm-display: "Anton", "Arial Narrow", sans-serif;
  --xm-divider: 1px solid rgb(255 249 240 / 30%);
  background: var(--xm-night);
  color: var(--xm-paper);
  font: 400 15px/1.65 var(--xm-text);
}

.christmas-page :lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
.christmas-page :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.christmas-page :is(.xm-header, #main) { width: var(--xm-column); margin-inline: auto; }
.christmas-page #main { padding: 30px var(--xm-gutter) 24px; background: var(--xm-red); container-type: inline-size; }
.christmas-page :is(.tg-story > section > h2, .tg-section-heading h2, .xm-closing h2) { font: 700 21px/1.35 var(--xm-text); letter-spacing: -.025em; text-wrap: balance; }

.xm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(76px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--xm-gutter) 0;
}
.xm-header nav { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.xm-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.xm-header [aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.xm-nav-ticket { margin-left: 8px; color: var(--xm-pink); }
.xm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 12px;
  background: var(--xm-cta);
  color: var(--xm-cta-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.xm-button:hover { background: #f8dce3; }
.christmas-page .tg-scroll-progress { position: fixed; z-index: 8; inset: 0 0 auto; height: 2px; background: var(--xm-pink); transform: scaleX(0); transform-origin: left; pointer-events: none; }

.xm-title {
  font: 400 clamp(32px, 16cqi, 56px)/1 var(--xm-display);
  letter-spacing: .01em;
  text-transform: uppercase;
}
.xm-title span { display: block; }
.xm-title .xm-title-small { margin-bottom: 7px; color: var(--xm-pink); font-size: .34em; letter-spacing: .12em; }
.xm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 22px; }
.xm-hero-info { display: grid; gap: 10px; align-content: start; }
.xm-hero-date { font: 400 clamp(20px, 8.5cqi, 30px)/1.12 var(--xm-display), var(--xm-text); text-transform: uppercase; }
.xm-hero-time, .xm-patch-cocktails small, .xm-countdown { font-size: 13px; line-height: 1.4; color: var(--xm-muted); }
.xm-hero-time { margin-top: -6px; }
.xm-hero-time span, .xm-patch-cocktails small { display: block; }
.xm-patch-cocktails { line-height: 1.3; }
.xm-patch-cocktails small { margin-top: 3px; }
.xm-countdown:empty { display: none; }
.xm-poster { display: block; width: 100%; height: auto; }
.xm-hero-intro { margin: 26px auto 0; text-align: center; }
.xm-hero-intro p + p { margin-top: 10px; color: var(--xm-muted); }
.xm-hero-lead { font-size: 18px; font-weight: 700; line-height: 1.4; text-wrap: balance; }

.christmas-page .tg-page-grid, .christmas-page .tg-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; min-width: 0; }
.christmas-page .tg-page-grid { margin-top: 34px; }
.tg-story h2 { margin-bottom: 14px; }

.xm-included { padding: 16px; border-radius: 14px; background: #fdf3e6; color: #5a1a1f; }
.xm-included > img, .xm-program img, .xm-closing-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.xm-included-items { display: grid; gap: 10px; margin-top: 14px; }
.xm-included-items h3 { font-weight: 700; text-align: center; }
.xm-included-items p { margin-top: 4px; padding-left: 10px; border-left: 1px solid #d8aaa4; font-size: 14px; }

.xm-party-highlights, .xm-stats { margin-top: 8px; font-size: 13px; color: var(--xm-muted); }
.xm-stats dt { font-weight: 700; }
.xm-scenes { margin-top: 20px; }
.xm-scenes > h3 { margin-bottom: 10px; font-size: 17px; font-weight: 700; }
.xm-program { display: grid; gap: 14px; padding-left: 24px; border-left: var(--xm-divider); }
.xm-program article { position: relative; }
.xm-program article::before { content: "✦" / ""; position: absolute; top: 0; left: -17px; font-size: 12px; }
.xm-program :is(h3, h4) { font-weight: 700; }
.xm-program p { margin-top: 3px; color: var(--xm-muted); }
.xm-program article > :is(img, figure) { margin-top: 10px; }
.xm-program figcaption { margin-top: 4px; color: var(--xm-pink); font-size: 12px; font-weight: 600; }
.xm-activity-bestdresser img { object-position: 50% 30%; }
.xm-activity-beerpong img { object-position: 50% 85%; }
.xm-activity-games img { object-position: 50% 70%; }

.xm-gallery { margin-top: 16px; }
.xm-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.xm-gallery-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.xm-details dl { display: grid; gap: 14px; }
.xm-details dt { color: var(--xm-pink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.xm-details dd { font-weight: 700; }
.xm-details dd small { display: block; color: var(--xm-muted); font: 400 14px/1.6 var(--xm-text); }
.xm-dress-code dd { margin-top: 2px; font: 700 26px/1.35 Georgia, serif; }
.xm-dress-code dd:lang(ko) { font-family: var(--xm-text); }

.xm-disclosure { border-top: var(--xm-divider); }
.xm-faq, .xm-gallery { border-bottom: var(--xm-divider); }
.xm-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; }
.xm-disclosure summary::-webkit-details-marker { display: none; }
.xm-disclosure summary span::before { content: "+"; }
.xm-disclosure[open] summary span::before { content: "−"; }
.xm-faq details > p { padding-bottom: 12px; color: var(--xm-muted); }
.xm-faq details a { text-decoration: underline; }
.xm-media-notice ul { display: grid; gap: 12px; padding-bottom: 12px; }
.xm-media-notice li p { margin-top: 4px; color: var(--xm-muted); font-size: 14px; }

/* Shared checkout and guest-list forms. */
.christmas-page .tg-tickets {
  --xm-card: #fdf1ea;
  --xm-maroon: #4a1c22;
  --xm-line: #cdb9b2;
  min-width: 0;
  padding: 22px clamp(8px, 3vw, 14px) 20px;
  border-radius: 20px;
  background: #9e2a2b;
  color: var(--xm-paper);
  scroll-margin-top: 24px;
}
.christmas-page .tg-section-heading { margin-bottom: 18px; }
.christmas-page .tg-section-heading .tg-label, .christmas-page .tg-section-heading h2 span { display: none; }
.christmas-page .tg-section-heading > p { margin-top: 8px; font-size: 14px; color: rgb(251 246 234 / 85%); }
.christmas-page .tg-booking { padding: 20px 16px; border-radius: 14px; background: var(--xm-card); color: var(--xm-maroon); }
.christmas-page .tg-offers { display: grid; gap: 12px; min-width: 0; }
.christmas-page .tg-offer { display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 16px 14px; border: 1px solid var(--xm-line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.christmas-page .tg-offer:not(.tg-unavailable):hover { border-color: var(--xm-maroon); }
.christmas-page .tg-offer:has(input:checked) { border-color: var(--xm-maroon); background: #f6e7ea; }
.christmas-page .tg-offer input, .christmas-page .party-guest-list-gender input { flex: none; width: 18px; height: 18px; accent-color: var(--xm-maroon); }
.christmas-page .tg-offer-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.christmas-page .tg-offer-name strong, .christmas-page .party-guest-list-gender legend { font-weight: 600; }
.christmas-page .tg-offer small { display: block; margin-top: 2px; font-size: 12px; color: #8a6b6b; }
.christmas-page .tg-offer-price { text-align: right; }
.christmas-page .tg-offer-price > strong { font: 700 19px/1.2 var(--xm-text); color: var(--xm-maroon); }
.christmas-page .tg-unavailable { cursor: default; background: #fbf7f5; color: #9b8a87; }
.christmas-page .tg-unavailable .tg-offer-price > strong { color: #9b8a87; }
.christmas-page .tg-order-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 6px; }
.christmas-page .tg-order-summary label, .christmas-page .tg-order-summary p { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; font-size: 13px; }
.christmas-page .tg-order-summary { flex-direction: column; align-items: stretch; }
.christmas-page .tg-order-summary strong { font: 700 26px/1.2 var(--xm-text); color: var(--xm-maroon); }
.christmas-page .tg-order-summary select { width: 84px; min-height: 50px; padding: 6px 12px; border: 1px solid var(--xm-line); border-radius: 4px; background: #fffaf2; color: var(--xm-maroon); font-size: 16px; }
.christmas-page .tg-button { width: 100%; margin-top: 20px; min-height: 52px; border-radius: 10px; background: #a8262b; color: #fff; font-weight: 600; }
.christmas-page .tg-consents { margin-top: 16px; }
.christmas-page .tg-consents .dui-alert { display: block; margin-bottom: 12px; padding: 14px; border: 1px solid var(--xm-line); border-radius: 10px; background: #fff; color: var(--xm-maroon); box-shadow: none; text-align: left; font-size: 13px; }
.christmas-page .tg-consents .dui-alert h2 { font: 600 16px/1.5 var(--xm-text); letter-spacing: 0; }
.christmas-page .tg-consents .material-symbols-outlined { display: none; }
.christmas-page .tg-consents input[type=checkbox] { appearance: auto; accent-color: var(--xm-maroon); }
.christmas-page .tg-consents input[type=checkbox]::before { content: none; }
.christmas-page .tg-consents a { color: var(--xm-maroon); text-decoration: underline; }
.christmas-page .tg-booking [role=alert]:not(.dui-alert) { color: #a8262b; }
.christmas-page .tg-status { color: var(--xm-card); }
.christmas-page .tg-booking .tg-status { color: #a8262b; }
.christmas-page .tg-payment-note { margin-top: 14px; color: #7a5a5a; font-size: 12px; }
.christmas-page .tg-ticket-footnote { margin-top: 18px; color: rgb(251 246 234 / 85%); font-size: 13px; text-align: center; }
.christmas-page .tg-refund-policy a { text-decoration: underline; text-underline-offset: 3px; }
.christmas-page .tg-status { padding: 12px 0; }
.christmas-page .tg-coming-soon { padding: 24px 16px; border-radius: 14px; background: var(--xm-card); color: var(--xm-maroon); text-align: center; }
.christmas-page .tg-coming-soon > span { display: block; margin-bottom: 12px; color: #a8262b; font-size: 32px; line-height: 1; }
.christmas-page .tg-coming-soon p + p { margin-top: 8px; color: #7a5a5a; font-size: 13px; }
.christmas-page .party-guest-list-gender { min-width: 0; }
.christmas-page .party-guest-list-gender p { margin: 8px 0; }
.christmas-page .party-guest-list-gender label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: 12px; cursor: pointer; }

.christmas-page .tg-sold-out { position: relative; overflow: hidden; }
.christmas-page .tg-sold-out .tg-offer-price > strong { text-decoration: line-through; text-decoration-thickness: 2px; }
.christmas-page .tg-sold-out-stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); padding: 2px 12px; color: #a8262b; background: rgb(255 255 255 / 70%); border: 3px double currentColor; border-radius: 4px; font-family: var(--xm-display); font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: .06em; white-space: nowrap; pointer-events: none; }

.xm-closing { margin-top: 40px; text-align: center; }
.xm-closing-copy { margin-top: 14px; }
.xm-closing .xm-button { margin-top: 12px; min-width: 154px; }
.xm-image-credit { margin-top: 16px; color: var(--xm-muted); text-align: center; font-size: 12px; }
.christmas-page :is(.tg-visually-hidden, .tg-skip:not(:focus)) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.christmas-page .tg-skip:focus { position: fixed; inset: 10px auto auto 10px; z-index: 9; padding: 10px 18px; background: var(--xm-paper); color: var(--xm-night); }
.christmas-page .tg-mobile-cta { display: none; }
.christmas-page footer { background-color: var(--xm-night); color: var(--xm-paper); }
.christmas-page footer a:hover { color: var(--xm-pink); }
.christmas-page footer a { min-width: 0; transition: none; }
.christmas-page footer .material-symbols-outlined { flex-shrink: 0; }

@media (max-width: 760px) {
  .christmas-page { padding-bottom: calc(46px + env(safe-area-inset-bottom)); }
  .christmas-page .tg-mobile-cta:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 5;
    inset: auto 0 0;
    width: var(--xm-column);
    margin-inline: auto;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid #e0abb5;
  }
}

@media (min-width: 761px) {
  .christmas-page { --xm-column: min(720px, calc(100% - 48px)); --xm-gutter: 36px; font-size: 16px; }
  .christmas-page #main { padding: 44px var(--xm-gutter) 36px; }
  .xm-header nav { font-size: 14px; }
  .christmas-page :is(.tg-story > section > h2, .tg-section-heading h2, .xm-closing h2) { font-size: 26px; }

  .xm-title { font-size: clamp(56px, 14cqi, 92px); }
  .xm-hero-grid { gap: 28px; margin-top: 28px; }
  .xm-hero-info { gap: 12px; }
  .xm-hero-date { font-size: clamp(30px, 6cqi, 40px); }
  .xm-hero-time, .xm-patch-cocktails small, .xm-countdown { font-size: 15px; }
  .xm-patch-cocktails { font-size: 18px; }
  .xm-button { font-size: 15px; min-height: 52px; }
  .xm-hero-info .xm-button { justify-self: start; min-width: 220px; }
  .xm-hero-intro { max-width: 60ch; margin-top: 36px; }
  .xm-hero-lead { font-size: 22px; }

  .christmas-page .tg-page-grid, .christmas-page .tg-story { gap: 56px; }
  .christmas-page .tg-page-grid { margin-top: 48px; }
  .xm-party-highlights, .xm-stats { font-size: 14px; }
  .xm-included { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4px 28px; align-items: center; padding: 24px; }
  .xm-included > h2 { grid-column: 1 / -1; }
  .xm-included > img { aspect-ratio: 4 / 5; }
  .xm-included-items { gap: 16px; margin-top: 0; }
  .xm-included-items h3 { text-align: left; }
  .xm-included-items p { font-size: 15px; }

  #activities .xm-program { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-left: 0; border-left: 0; }
  .xm-activity { display: flex; flex-direction: column; }
  .xm-program .xm-activity::before { content: none; }
  .xm-program .xm-activity > figure { order: -1; margin: 0 0 12px; }
  .xm-activity img { aspect-ratio: 4 / 5; }
  .xm-activity-dj { grid-column: 1 / -1; }
  .xm-activity-dj img { aspect-ratio: 16 / 9; }
  .xm-gallery-grid { gap: 12px; }

  .xm-details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
  .xm-dress-code { grid-column: 1 / -1; }
  .xm-disclosure summary { padding: 16px 0; }
  .xm-closing { margin-top: 56px; }
  .xm-closing-photo { aspect-ratio: 21 / 9; }
  .xm-closing-copy { margin-top: 24px; }
  .christmas-page section.xm-closing h2 { font-size: 30px; }
  .xm-closing .xm-button { min-width: 220px; }
}

@media (min-width: 1024px) {
  .christmas-page { --xm-column: min(1180px, calc(100% - 64px)); --xm-gutter: 56px; }
  .christmas-page #main { padding: 56px var(--xm-gutter) 48px; }

  .xm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(320px, 40cqi, 460px);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(36px, 5cqi, 64px);
    row-gap: 28px;
    align-items: start;
  }
  .xm-hero-grid { display: contents; }
  .xm-title { grid-column: 1; grid-row: 1; font-size: clamp(72px, 10cqi, 116px); }
  .xm-hero-info { grid-column: 1; grid-row: 2; }
  .xm-hero-intro { grid-column: 1; grid-row: 3; max-width: 58ch; margin: 0; text-align: left; }
  .xm-poster { grid-column: 2; grid-row: 1 / span 3; }
  .xm-hero-date { font-size: clamp(36px, 4.4cqi, 48px); }

  .christmas-page .tg-page-grid {
    grid-template-columns: minmax(0, 1fr) clamp(340px, 34cqi, 400px);
    column-gap: clamp(32px, 5cqi, 56px);
    align-items: start;
    margin-top: 64px;
  }
  .christmas-page .tg-story { grid-column: 1; grid-row: 1; }
  .christmas-page .tg-page-grid > [data-controller~="modal"] { display: contents; }
  .christmas-page .tg-tickets {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 24px;
    max-height: calc(100svh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgb(255 249 240 / 45%) transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(> body.christmas-page) { scroll-behavior: auto; }
  .christmas-page *, .christmas-page *::before, .christmas-page *::after { animation: none !important; transition: none !important; }
}
