body.christmas-page {
  --x-bg: #fcfaf6;
  --x-surface: #ffffff;
  --x-soft: #f5efe6;
  --x-ink: #18181b;
  --x-muted: #57534e;
  --x-wine: #7c1d2b;
  --x-wine-deep: #5e131e;
  --x-wine-tint: #f8edef;
  --x-gold: #c7a45e;
  --x-gold-soft: rgba(199, 164, 94, 0.34);
  --x-line: #e7dfd3;
  --x-amber: #f2b84b;
  --x-radius: 16px;
  --x-serif: "Songti TC", "Noto Serif TC", "PMingLiU", Georgia, serif;
  --x-sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  margin: 0;
  background: var(--x-bg);
  color: var(--x-ink);
  font: 400 16px/1.7 var(--x-sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.christmas-page *, .christmas-page *::before, .christmas-page *::after { box-sizing: border-box; }
.christmas-page :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--x-wine);
  outline-offset: 2px;
}

/* Header */
.christmas-page .xmas-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 12px 20px;
  background: rgba(252, 250, 246, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--x-gold-soft);
}
.christmas-page .xmas-brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--x-ink); text-decoration: none; font-weight: 600; letter-spacing: 0.03em;
}
.christmas-page .xmas-brand img { height: 28px; width: auto; display: block; }
.christmas-page .xmas-back {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--x-line); border-radius: 999px;
  color: var(--x-muted); text-decoration: none; font-size: 14px; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.christmas-page .xmas-back:hover { border-color: var(--x-gold); color: var(--x-wine); }

/* Layout Sections */
.christmas-page main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.christmas-page .xmas-eyebrow {
  margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--x-wine);
}

/* Hero & Copy */
.christmas-page .xmas-hero {
  display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center;
  padding: 40px 0 48px; border-bottom: 1px solid var(--x-gold-soft);
}
.christmas-page .xmas-date {
  margin: 0 0 6px; font: 600 15px/1.2 var(--x-serif);
  letter-spacing: 0.16em; color: var(--x-gold);
}
.christmas-page .xmas-copy h1 {
  margin: 0 0 10px; font: 700 clamp(2rem, 4.5vw, 3.1rem)/1.2 var(--x-serif);
  letter-spacing: 0.04em; color: var(--x-ink);
}
.christmas-page .xmas-sub { margin: 0 0 14px; font-size: 18px; font-weight: 600; color: var(--x-wine); }
.christmas-page .xmas-invite { margin: 0 0 24px; max-width: 34em; color: var(--x-muted); }
.christmas-page .xmas-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.christmas-page :is(.xmas-primary, .xmas-secondary, .pk-primary, .pk-secondary) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.christmas-page :is(.xmas-primary, .pk-primary) {
  background: var(--x-wine); color: #fff; border: 1px solid var(--x-wine);
}
.christmas-page :is(.xmas-primary, .pk-primary):hover { background: var(--x-wine-deep); border-color: var(--x-wine-deep); }
.christmas-page :is(.xmas-secondary, .pk-secondary) {
  background: var(--x-surface); color: var(--x-ink); border: 1px solid var(--x-gold);
}
.christmas-page :is(.xmas-secondary, .pk-secondary):hover { background: var(--x-wine-tint); color: var(--x-wine); }
.christmas-page .xmas-note { margin: 0; font-size: 13px; color: var(--x-muted); }

/* Editorial Table Art */
.christmas-page .xmas-art {
  position: relative; width: min(100%, 240px); aspect-ratio: 1; margin: 0 auto;
}
.christmas-page .xmas-orbit {
  position: absolute; inset: 7%; border-radius: 50%;
  border: 1px solid var(--x-gold-soft);
}
.christmas-page .xmas-orbit::after {
  content: ""; position: absolute; inset: 10px; border-radius: 50%;
  border: 1px dashed rgba(124, 29, 43, 0.18);
}
.christmas-page .xmas-plate {
  position: absolute; inset: 22%; border-radius: 50%;
  display: grid; place-items: center; background: var(--x-surface);
  border: 1px solid var(--x-gold);
  box-shadow: inset 0 0 0 8px var(--x-surface), inset 0 0 0 9px var(--x-gold-soft), 0 18px 36px rgba(24, 24, 27, 0.06);
}
.christmas-page .xmas-mark {
  font: 700 clamp(1.3rem, 2.5vw, 1.8rem)/1 var(--x-serif);
  letter-spacing: 0.12em; color: var(--x-wine);
}
.christmas-page .xmas-star {
  position: absolute; top: 10%; right: 17%; width: 22px; height: 22px;
  background: var(--x-gold);
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
}
.christmas-page .xmas-fork {
  position: absolute; left: 9%; top: 26%; width: 12px; height: 48%;
}
.christmas-page .xmas-fork::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 24%;
  background: repeating-linear-gradient(90deg, var(--x-gold) 0 2px, transparent 2px 5px);
  border-bottom: 2px solid var(--x-gold); border-radius: 0 0 6px 6px;
}
.christmas-page .xmas-fork::after {
  content: ""; position: absolute; top: 24%; bottom: 0; left: 5px; width: 2px;
  background: var(--x-gold); border-radius: 2px;
}
.christmas-page .xmas-candle {
  position: absolute; right: 10%; bottom: 18%; width: 14px; height: 34%;
  background: linear-gradient(180deg, #fffdf9, #efe6d8);
  border: 1px solid var(--x-line); border-bottom: 2px solid var(--x-gold); border-radius: 3px 3px 1px 1px;
}
.christmas-page .xmas-candle i {
  position: absolute; bottom: calc(100% + 4px); left: 50%; width: 10px; height: 16px;
  transform: translateX(-50%); background: radial-gradient(circle at 50% 68%, #fff6d6 0 28%, var(--x-amber) 58%, var(--x-wine) 100%);
  border-radius: 50% 50% 50% 50% / 68% 68% 32% 32%;
  box-shadow: 0 0 14px rgba(242, 184, 75, 0.7);
  animation: xmas-flicker 3.2s ease-in-out infinite;
}
@keyframes xmas-flicker {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.95; }
  50% { transform: translateX(-50%) scale(0.94, 1.07); opacity: 1; }
}

/* Welcome & Practical & Footer */
.christmas-page .xmas-welcome {
  max-width: 680px; margin: 0 auto; padding: 48px 0 32px; text-align: center;
}
.christmas-page .xmas-welcome h2 {
  margin: 0 0 12px; font: 700 clamp(1.35rem, 2.8vw, 1.9rem)/1.35 var(--x-serif);
}
.christmas-page .xmas-welcome p:last-child { margin: 0; color: var(--x-muted); }
.christmas-page .xmas-practical {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  padding: 40px 0 56px; border-top: 1px solid var(--x-gold-soft);
}
.christmas-page .xmas-practical > div {
  padding: 22px; background: var(--x-surface);
  border: 1px solid var(--x-line); border-top: 2px solid var(--x-gold); border-radius: var(--x-radius);
}
.christmas-page .xmas-practical h3 { margin: 0 0 6px; font: 700 17px/1.3 var(--x-serif); color: var(--x-wine); }
.christmas-page .xmas-practical p { margin: 0; font-size: 14px; color: var(--x-muted); }
.christmas-page .xmas-footer {
  padding: 28px 20px; text-align: center; font-size: 13px; color: var(--x-muted);
  border-top: 1px solid var(--x-gold-soft);
}

/* Potluck Integration Override */
.christmas-page .xmas-potluck { padding: 8px 0 48px; }
.christmas-page :is(.pk-brand, .pk-intro) { display: none; }
.christmas-page .pk-wrap {
  max-width: none; margin: 0; padding: 24px 18px 0;
  background: var(--x-surface); border: 1px solid var(--x-line); border-radius: var(--x-radius);
  box-shadow: 0 12px 32px rgba(24, 24, 27, 0.04);
}
.christmas-page .pk-content { padding: 0 0 24px; }
.christmas-page .pk-home-layout { display: block; }
.christmas-page .pk-section { margin: 0 0 24px; }
.christmas-page .pk-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.christmas-page :is(.pk-tag, .pk-status) {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--x-wine-tint); color: var(--x-wine);
}
.christmas-page :is(.pk-date, .pk-sub, .pk-note, .pk-privacy, .pk-footer) { color: var(--x-muted); font-size: 14px; }
.christmas-page .pk-title { margin: 0 0 12px; font: 700 20px/1.35 var(--x-serif); color: var(--x-ink); }
.christmas-page .pk-progress {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.christmas-page .pk-category {
  min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 12px;
  background: var(--x-bg); border: 1px solid var(--x-line); border-radius: 12px;
}
.christmas-page .pk-category svg { width: 22px; height: 22px; color: var(--x-wine); flex-shrink: 0; }
.christmas-page .pk-category strong { font-size: 14px; color: var(--x-ink); line-height: 1.3; }
.christmas-page .pk-category span { font-size: 13px; font-weight: 600; color: var(--x-wine); }
.christmas-page .pk-category small { font-size: 12px; color: var(--x-muted); }
.christmas-page .pk-category progress {
  appearance: none; width: 100%; height: 6px; border: 0; border-radius: 999px;
  overflow: hidden; background: var(--x-line);
}
.christmas-page .pk-category progress::-webkit-progress-bar { background: var(--x-line); border-radius: 999px; }
.christmas-page .pk-category progress::-webkit-progress-value { background: var(--x-wine); border-radius: 999px; }
.christmas-page .pk-category progress::-moz-progress-bar { background: var(--x-wine); border-radius: 999px; }

/* Potluck Lists, Cards, Forms, Dialog & Sticky Nav */
.christmas-page :is(.pk-cta, .pk-actions) { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.christmas-page .pk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.christmas-page .pk-tabs button {
  min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--x-line); background: var(--x-bg); color: var(--x-ink); font-size: 14px;
}
.christmas-page .pk-tabs button:is(.is-active, [aria-selected="true"], [aria-pressed="true"]) {
  background: var(--x-wine); border-color: var(--x-wine); color: #fff;
}
.christmas-page .pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.christmas-page :is(.pk-dish, .pk-card, .pk-form-wrap, .pk-detail, .pk-success) {
  background: var(--x-bg); border: 1px solid var(--x-line); border-radius: 14px; padding: 16px;
}
.christmas-page .pk-dish-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px;
  background: var(--x-soft); margin-bottom: 10px;
}
.christmas-page .pk-dish-copy { min-width: 0; overflow-wrap: anywhere; }
.christmas-page .pk-empty { text-align: center; padding: 32px 16px; color: var(--x-muted); }
.christmas-page .pk-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.christmas-page :is(.pk-search input, .pk-search, .pk-field input, .pk-field select, .pk-field textarea) {
  width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px; font-family: inherit;
  color: var(--x-ink); background: var(--x-surface); border: 1px solid var(--x-line); border-radius: 10px;
}
.christmas-page .pk-stepper { display: inline-flex; align-items: center; gap: 10px; }
.christmas-page .pk-stepper button {
  min-width: 44px; min-height: 44px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--x-gold); background: var(--x-surface); color: var(--x-ink); font-size: 18px;
}
.christmas-page .pk-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.christmas-page .pk-check input { width: 20px; height: 20px; accent-color: var(--x-wine); }
.christmas-page .pk-dialog {
  width: min(92vw, 480px); padding: 24px; border: 1px solid var(--x-gold-soft);
  border-radius: var(--x-radius); background: var(--x-surface); color: var(--x-ink);
  box-shadow: 0 24px 60px rgba(24, 24, 27, 0.18);
}
.christmas-page .pk-dialog::backdrop { background: rgba(24, 24, 27, 0.45); }
.christmas-page .pk-picture { width: 100%; border-radius: 12px; border: 1px solid var(--x-gold-soft); }
.christmas-page .pk-blessing {
  margin: 14px 0; padding: 14px 16px; border-left: 3px solid var(--x-gold);
  background: var(--x-surface); font-family: var(--x-serif); color: var(--x-ink);
}
.christmas-page .pk-back {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  background: transparent; border: 0; color: var(--x-wine); font-weight: 600; cursor: pointer;
}
.christmas-page .pk-nav {
  position: sticky; bottom: 0; left: auto; right: auto; z-index: 20;
  display: flex; justify-content: space-around; gap: 6px; margin: 16px -18px 0;
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  background: rgba(252, 250, 246, 0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--x-gold-soft); border-radius: 0 0 var(--x-radius) var(--x-radius);
}
.christmas-page .pk-nav button {
  flex: 1; min-height: 44px; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 10px;
  background: transparent; color: var(--x-muted); font-size: 12px; cursor: pointer;
}
.christmas-page .pk-nav button svg { width: 20px; height: 20px; }
.christmas-page .pk-nav button:is(.is-active, [aria-current="page"], [aria-pressed="true"]) {
  color: var(--x-wine); background: var(--x-wine-tint); font-weight: 600;
}

/* Breakpoints & Reduced Motion */
@media (min-width: 640px) {
  .christmas-page .pk-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .christmas-page .pk-wrap { padding: 28px 28px 0; }
  .christmas-page .pk-nav { margin-inline: -28px; }
}
@media (min-width: 900px) {
  .christmas-page .xmas-hero { grid-template-columns: 1.15fr 0.85fr; gap: 48px; padding: 64px 0 72px; }
  .christmas-page .xmas-art { width: min(100%, 360px); }
  .christmas-page .xmas-practical { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .christmas-page .pk-progress { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .christmas-page *, .christmas-page *::before, .christmas-page *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important;
  }
}

/* Codex integration: reset legacy page box, nested main and fixed-nav transforms. */
.christmas-page .potluck{padding:0;background:transparent;min-height:0;color:var(--x-ink);--app-ink:var(--x-ink);--app-secondary:var(--x-muted);--app-accent:var(--x-wine);--app-border:var(--x-line);--app-surface:var(--x-surface)}
.christmas-page main.pk-content{padding:0 0 24px;width:100%;margin:0;max-width:none}
.christmas-page .potluck :is(h1,h2,h3){color:var(--x-ink)}
.christmas-page .potluck h2{font-size:22px;line-height:1.5}
.christmas-page .potluck .pk-nav{transform:none;width:auto;max-width:none;box-shadow:none;position:relative;bottom:auto}
.christmas-page .potluck button:not(.pk-primary){color:var(--x-ink);border-color:var(--x-line);background:var(--x-surface)}
.christmas-page .potluck .pk-nav button[aria-current=page]{color:var(--x-wine);background:var(--x-wine-tint)}
.christmas-page .potluck .pk-primary{background:var(--x-wine);border-color:var(--x-wine);color:#fff}
.christmas-page .potluck .pk-category .food-art{width:54px;height:54px;margin:0 auto}
.christmas-page .pk-grid{grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr))}
.christmas-page .pk-field input[type=checkbox]{min-height:22px;padding:0;flex:0 0 22px;width:22px;height:22px}
.christmas-page .pk-check{align-items:flex-start;line-height:1.7}
.christmas-page .pk-stepper{display:grid;grid-template-columns:44px minmax(0,1fr) 44px}
.christmas-page .pk-status{display:block;white-space:normal;border-radius:10px;font-size:16px;padding:14px;line-height:1.7}
.christmas-page .potluck .pk-status[hidden]{display:none}
.christmas-page .pk-date{letter-spacing:.08em}
.christmas-page .pk-badge{background:var(--x-wine-tint);color:var(--x-wine)}
.christmas-page .xmas-date{color:#876727;font-family:var(--x-sans);font-weight:700;font-size:18px}
.christmas-page .xmas-brand img{width:40px;height:40px}
.christmas-page .xmas-copy h1{font-family:var(--x-sans);letter-spacing:-.02em;line-height:1.2;font-size:clamp(32px,4.5vw,54px)}
.christmas-page .xmas-mark img{width:42px;height:42px}
.christmas-page .xmas-welcome h2{line-height:1.6;text-wrap:balance}
.christmas-page .xmas-view-back{display:none}
.christmas-page.xmas-inner-view .xmas-home-only{display:none}
.christmas-page.xmas-inner-view .xmas-view-back{display:block;padding:24px 0 0}
.christmas-page .xmas-view-back button{background:none;border:0;color:var(--x-wine);padding:12px 0;min-height:44px;font:inherit;cursor:pointer}
body.christmas-page.potluck-active .line-app{padding:0;background:var(--x-bg)}
body.christmas-page.potluck-active .content{padding:0}
body.christmas-page.potluck-active .line-app{max-width:none}
@media(max-width:400px){.christmas-page .xmas-header{padding-inline:16px;gap:8px}.christmas-page main{padding-inline:16px}.christmas-page .xmas-brand{font-size:14px}.christmas-page .xmas-back{padding-inline:10px}.christmas-page .pk-wrap{padding:20px 12px 0}.christmas-page .potluck .pk-nav{margin-inline:-12px}.christmas-page .xmas-actions{gap:8px}.christmas-page :is(.xmas-primary,.xmas-secondary){padding-inline:16px}.christmas-page .xmas-art{width:210px}}

.christmas-page .pk-footer{display:none}.christmas-page .xmas-footer a{color:var(--x-wine);text-underline-offset:4px}.christmas-page .pk-section{margin-bottom:0}

/* Preview review: full-width form actions on small screens, clear link target. */
.christmas-page .xmas-footer a{display:inline-flex;align-items:center;min-height:44px}
.christmas-page .potluck .pk-secondary{border-color:var(--x-gold)}
@media(max-width:480px){.christmas-page .pk-cta>button,.christmas-page .pk-cta>a{width:100%}}
