/* Christmas Competitions: themed on top of the Fiesta signup styles. */
.christmas-page {
  --xmas-green: #0b4d2c;
  --xmas-green-2: #146b3a;
  --xmas-red: #b3121f;
  --xmas-red-2: #d62e2e;
  --xmas-gold: #e8b923;
  --xmas-gold-soft: #f8e3a1;
  --xmas-cream: #fffaf0;
  --xmas-ink: #13261b;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 214, 102, 0.35), transparent 22rem),
    radial-gradient(circle at 92% 30%, rgba(214, 46, 46, 0.35), transparent 26rem),
    linear-gradient(160deg, #06331d 0%, #0b4d2c 45%, #7d0d16 115%);
  color: var(--xmas-ink);
}

/* Gentle snowfall behind everything */
.christmas-page::before {
  animation: xmas-snow 26s linear infinite;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(3px 3px at 90px 120px, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(2px 2px at 160px 60px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(3px 3px at 230px 170px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 300px 90px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(2px 2px at 60px 210px, rgba(255, 255, 255, 0.7), transparent);
  background-size: 320px 240px;
  content: "";
  height: 200%;
  left: 0;
  opacity: 0.55;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: -100%;
  z-index: 0;
}

@keyframes xmas-snow {
  from { transform: translateY(0); }
  to { transform: translateY(50%); }
}

@media (prefers-reduced-motion: reduce) {
  .christmas-page::before,
  .xmas-banner-sleigh { animation: none !important; }
}

.christmas-page .fiesta-shell {
  z-index: 1;
}

/* Language picker sits inside the hero's top corner to save height. */
.christmas-page .fiesta-language {
  margin: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 4;
}

.christmas-page .fiesta-language select {
  border-color: var(--xmas-gold);
  color: var(--xmas-green);
  font-size: 0.85rem;
  min-height: 32px;
  padding: 4px 26px 4px 10px;
}

/* Full hero (phone step) */
.xmas-hero {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 249, 226, 0.98) 0 32%, rgba(255, 238, 186, 0.9) 52%, transparent 78%),
    linear-gradient(180deg, #0b4d2c 0%, #146b3a 40%, #9c1420 100%);
  border: 3px solid var(--xmas-gold);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  overflow: hidden;
  padding: 38px clamp(14px, 4vw, 40px) 18px;
  position: relative;
  text-align: center;
}

.xmas-lights {
  background:
    radial-gradient(circle, #fff6c4 0 3px, #ffd34d 4px, rgba(255, 196, 0, 0.45) 7px, transparent 12px) 0 6px / 56px 30px repeat-x;
  height: 30px;
  inset: 0 0 auto;
  pointer-events: none;
  position: absolute;
}

.xmas-lights::before {
  border-top: 2px solid rgba(40, 40, 20, 0.45);
  border-radius: 0 0 50% 50% / 0 0 18px 18px;
  content: "";
  height: 18px;
  inset: 0 0 auto;
  position: absolute;
}

.xmas-hero-copy {
  position: relative;
  z-index: 1;
}

.xmas-logo {
  display: block;
  height: auto;
  margin: 0 auto 4px;
  width: min(160px, 40vw);
}

.xmas-hero-reindeer {
  height: auto;
  opacity: 0.9;
  position: absolute;
  top: 46px;
  width: clamp(54px, 11vw, 104px);
}

.xmas-hero-reindeer--left {
  animation: xmas-hop 1.6s ease-in-out infinite;
  left: clamp(10px, 6vw, 70px);
  rotate: -6deg;
  scale: -1 1;
}

.xmas-hero-reindeer--right {
  animation: xmas-hop 1.6s ease-in-out 0.8s infinite;
  right: clamp(10px, 6vw, 70px);
  rotate: -6deg;
}

@keyframes xmas-hop {
  0%, 100% { translate: 0 0; }
  35% { translate: 0 -14px; }
  55% { translate: 0 -10px; }
  80% { translate: 0 2px; }
}

/* Santa's sleigh flies across the splash every few seconds */
.xmas-fly-sleigh {
  animation: xmas-sleigh-flight 11s linear 1s infinite;
  filter: drop-shadow(0 0 3px rgba(90, 20, 0, 0.75)) drop-shadow(0 0 10px rgba(255, 215, 90, 0.55));
  height: auto;
  left: -40%;
  pointer-events: none;
  position: absolute;
  top: 60%;
  width: clamp(150px, 26vw, 260px);
  z-index: 0;
}

@keyframes xmas-sleigh-flight {
  0% { left: -40%; top: 62%; rotate: -10deg; opacity: 0; }
  4% { opacity: 1; }
  45% { left: 105%; top: 4%; rotate: -14deg; opacity: 1; }
  48%, 100% { left: 110%; top: 0%; opacity: 0; }
}

/* Snowflakes drifting through the splash */
.xmas-flakes {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.xmas-flakes span {
  animation: xmas-flake-fall var(--d, 9s) linear var(--delay, 0s) infinite;
  color: #fff;
  font-size: var(--s, 16px);
  left: var(--x, 50%);
  opacity: 0;
  position: absolute;
  text-shadow: 0 0 4px rgba(120, 150, 180, 0.9);
  top: -10%;
}

@keyframes xmas-flake-fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  10% { opacity: 0.95; }
  50% { transform: translate(18px, 260px) rotate(180deg); }
  90% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(-12px, 560px) rotate(360deg); }
}

/* Twinkling string lights */
.xmas-lights::after {
  animation: xmas-twinkle 1.4s steps(1) infinite;
  background:
    radial-gradient(circle, #ffd0d0 0 3px, #ff3b3b 4px, rgba(255, 40, 40, 0.45) 7px, transparent 12px) 28px 6px / 56px 30px repeat-x;
  content: "";
  inset: 0;
  position: absolute;
}

.xmas-hero .xmas-lights,
.xmas-banner .xmas-lights {
  animation: xmas-glow 1.4s steps(1) infinite;
}

@keyframes xmas-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes xmas-glow {
  0%, 100% { filter: brightness(0.8); }
  50% { filter: brightness(1.25); }
}

/* Splash details that bounce and glow */
.xmas-hero .xmas-date,
.xmas-banner .xmas-date {
  animation: xmas-pulse 2.4s ease-in-out infinite;
}

/* Form page: snow in the slim banner (shorter fall to suit its height) */
.xmas-banner .xmas-flakes span {
  animation-name: xmas-flake-fall-short;
}

.xmas-banner > :not(.xmas-flakes):not(.xmas-lights) {
  position: relative;
  z-index: 1;
}

@keyframes xmas-flake-fall-short {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  12% { opacity: 0.95; }
  50% { transform: translate(14px, 110px) rotate(180deg); }
  88% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(-10px, 240px) rotate(360deg); }
}

/* Form page: Santa's sleigh swoops across the screen now and then */
.xmas-page-sleigh {
  animation: xmas-page-flight 22s linear 4s infinite;
  filter: drop-shadow(0 0 3px rgba(90, 20, 0, 0.75)) drop-shadow(0 0 12px rgba(255, 215, 90, 0.6));
  height: auto;
  left: -40vw;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 55vh;
  width: clamp(160px, 24vw, 280px);
  z-index: 5;
}

@keyframes xmas-page-flight {
  0% { left: -40vw; top: 70vh; rotate: -12deg; opacity: 0; }
  2% { opacity: 1; }
  24% { left: 105vw; top: 8vh; rotate: -16deg; opacity: 1; }
  26%, 100% { left: 110vw; top: 4vh; opacity: 0; }
}

/* Form page: lively details on each person card */
.xmas-holly {
  animation: xmas-sway 3s ease-in-out infinite;
  transform-origin: 50% 70%;
}

@keyframes xmas-sway {
  0%, 100% { rotate: -6deg; }
  50% { rotate: 6deg; }
}

.xmas-person .xmas-person-reindeer {
  animation: xmas-hop 1.6s ease-in-out infinite;
  opacity: 0.12;
}

.xmas-choice-photo {
  transition: transform 0.25s ease;
}

.xmas-choice:hover .xmas-choice-photo {
  transform: rotate(-8deg) scale(1.08);
}

.xmas-choice:has(input:checked) .xmas-choice-photo {
  animation: xmas-pop 0.6s ease-out;
}

@keyframes xmas-pop {
  0% { scale: 1; rotate: 0deg; }
  40% { scale: 1.25; rotate: -12deg; }
  70% { scale: 0.95; rotate: 6deg; }
  100% { scale: 1; rotate: 0deg; }
}

.xmas-kids-choice .xmas-choice-photo {
  animation: xmas-bounce 1.2s ease-in-out infinite;
}

@keyframes xmas-bounce {
  0%, 100% { translate: 0 0; }
  45% { translate: 0 -7px; }
  60% { translate: 0 0; }
  70% { translate: 0 -2px; }
}

.christmas-page .fiesta-submit-panel .fiesta-primary,
.christmas-page .fiesta-add {
  animation: xmas-button 2.2s ease-in-out infinite;
}

.xmas-submit-sleigh {
  animation: xmas-fly 4s ease-in-out infinite;
}

@keyframes xmas-pulse {
  0%, 100% { box-shadow: 0 6px 14px rgba(120, 10, 20, 0.3), 0 0 0 0 rgba(232, 185, 35, 0.6); }
  50% { box-shadow: 0 6px 14px rgba(120, 10, 20, 0.3), 0 0 0 8px rgba(232, 185, 35, 0); }
}

.xmas-hero-sports li {
  animation: xmas-bob 2.6s ease-in-out infinite;
}

.xmas-hero-sports li:nth-child(2) { animation-delay: 0.25s; }
.xmas-hero-sports li:nth-child(3) { animation-delay: 0.5s; }
.xmas-hero-sports li:nth-child(4) { animation-delay: 0.75s; }
.xmas-hero-sports li:nth-child(5) { animation-delay: 1s; }

@keyframes xmas-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.xmas-hero-sports img {
  transition: transform 0.25s ease;
}

.xmas-hero-sports li:hover img {
  transform: rotate(-8deg) scale(1.08);
}

.christmas-page .fiesta-phone-step .fiesta-primary {
  animation: xmas-button 2.2s ease-in-out infinite;
}

@keyframes xmas-button {
  0%, 100% { box-shadow: 0 10px 22px rgba(150, 12, 24, 0.28), 0 0 0 0 rgba(214, 46, 46, 0.45); }
  50% { box-shadow: 0 10px 22px rgba(150, 12, 24, 0.28), 0 0 0 10px rgba(214, 46, 46, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-hero-reindeer,
  .xmas-fly-sleigh,
  .xmas-flakes,
  .xmas-lights,
  .xmas-lights::after,
  .xmas-hero .xmas-date,
  .xmas-banner .xmas-date,
  .xmas-hero-sports li,
  .christmas-page .fiesta-phone-step .fiesta-primary,
  .christmas-page .fiesta-submit-panel .fiesta-primary,
  .christmas-page .fiesta-add,
  .xmas-holly,
  .xmas-person .xmas-person-reindeer,
  .xmas-choice-photo,
  .xmas-submit-sleigh {
    animation: none !important;
  }

  .xmas-fly-sleigh,
  .xmas-page-sleigh,
  .xmas-flakes {
    display: none;
  }
}

.xmas-date {
  background: linear-gradient(180deg, var(--xmas-red-2), var(--xmas-red));
  border: 2px solid var(--xmas-gold);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(120, 10, 20, 0.3);
  color: #fff;
  display: inline-block;
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 4px 0 6px;
  padding: 5px 18px;
  text-transform: uppercase;
}

.xmas-hero h1 {
  color: var(--xmas-red);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.7rem, 8vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.86;
  margin: 2px 0;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

.xmas-tagline {
  color: var(--xmas-green);
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  font-weight: 900;
  margin: 4px 0 12px;
}

.xmas-hero-sports {
  display: grid;
  gap: clamp(6px, 1.6vw, 16px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0 auto;
  max-width: 560px;
  padding: 0;
  position: relative;
}

.xmas-hero-sports li {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.xmas-hero-sports img {
  aspect-ratio: 1;
  border: 3px solid var(--xmas-gold);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.xmas-hero-sports span {
  color: #fff;
  font-size: clamp(0.62rem, 2vw, 0.85rem);
  font-style: italic;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

@media (min-width: 700px) {
  .xmas-hero h1 br {
    display: none;
  }

  .xmas-hero h1 {
    font-size: clamp(3rem, 5.4vw, 4rem);
  }

  .xmas-logo {
    width: 140px;
  }

  .xmas-hero-sports {
    max-width: 480px;
  }
}

/* Slim banner (form, matches, thank you) */
.xmas-banner {
  align-items: center;
  background:
    radial-gradient(circle at 85% 50%, rgba(255, 214, 102, 0.28), transparent 45%),
    linear-gradient(120deg, #0b4d2c 0%, #146b3a 55%, #9c1420 100%);
  border: 3px solid var(--xmas-gold);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 44px 26px 22px;
  position: relative;
}

/* Lockup: big logo on the left; title and date bar share one column whose
   top and bottom line up with the logo's edges. */
.xmas-banner-brand {
  column-gap: clamp(16px, 3vw, 32px);
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: 1fr auto;
  justify-self: start;
}

.xmas-banner-logo {
  align-self: stretch;
  display: flex;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  grid-row: 1 / 3;
}

.xmas-banner-logo img {
  display: block;
  height: auto;
  width: clamp(190px, 25vw, 290px);
}

.xmas-banner h1 {
  align-self: center;
  color: #fff6d8;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 400;
  grid-column: 2;
  letter-spacing: 0.05em;
  line-height: 0.92;
  margin: 0;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
}

.xmas-banner-date {
  align-self: end;
  background: linear-gradient(180deg, var(--xmas-red-2), var(--xmas-red));
  border-bottom: 2px solid var(--xmas-gold);
  border-top: 2px solid var(--xmas-gold);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: clamp(0.9rem, 1.9vw, 1.2rem);
  font-weight: 900;
  contain: inline-size;
  grid-column: 2;
  letter-spacing: 0.24em;
  margin: 0;
  padding: 8px 12px;
  text-align: center;
  text-transform: uppercase;
}

.xmas-banner-sleigh {
  align-self: end;
  animation: xmas-fly 4s ease-in-out infinite;
  height: auto;
  justify-self: end;
  margin-top: 34px;
  width: clamp(150px, 24vw, 230px);
}

@keyframes xmas-fly {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(-8px, -6px) rotate(-2deg); }
}

/* Panels and controls */
.christmas-page .fiesta-panel {
  background: rgba(255, 250, 240, 0.98);
  border: 2px solid rgba(232, 185, 35, 0.75);
}

.christmas-page .fiesta-panel h2,
.christmas-page .fiesta-panel h3,
.christmas-page .fiesta-person-total strong,
.christmas-page .fiesta-submit-panel strong,
.christmas-page .fiesta-grand-total strong,
.christmas-page .fiesta-payment-methods h3,
.christmas-page .fiesta-payment-methods h4 {
  color: var(--xmas-green);
}

.christmas-page .fiesta-kicker,
.christmas-page .fiesta-section-label {
  color: var(--xmas-red);
}

.christmas-page .fiesta-page label > span:first-child,
.christmas-page legend {
  color: var(--xmas-ink);
}

.christmas-page input:focus,
.christmas-page select:focus,
.christmas-page button:focus-visible,
.christmas-page a:focus-visible {
  outline-color: rgba(232, 185, 35, 0.7);
}

.christmas-page .fiesta-primary {
  background: linear-gradient(135deg, var(--xmas-red-2), var(--xmas-red));
  box-shadow: 0 10px 22px rgba(150, 12, 24, 0.28);
  color: #fff;
}

.christmas-page .fiesta-outline,
.christmas-page .fiesta-add {
  border-color: var(--xmas-green-2);
  color: var(--xmas-green);
}

.christmas-page .fiesta-match-list button,
.christmas-page .fiesta-shared-phone,
.christmas-page .fiesta-confirmation-names span {
  background: var(--xmas-green);
}

.christmas-page .fiesta-match-list button strong,
.christmas-page .fiesta-shared-phone span {
  color: var(--xmas-gold);
}

.christmas-page .fiesta-text-link,
.christmas-page .fiesta-secondary-link,
.christmas-page .fiesta-consent summary {
  color: var(--xmas-green-2);
}

.christmas-page .fiesta-person-heading {
  border-bottom-color: var(--xmas-gold-soft);
}

.christmas-page .fiesta-phone-step h2 {
  font-size: clamp(1.9rem, 6vw, 2.8rem);
}

.christmas-page .fiesta-phone-step > p:not(.fiesta-section-label) {
  margin: 8px 0 0;
}

.christmas-page .fiesta-phone-step .fiesta-form {
  margin-top: 16px;
}

.christmas-page .xmas-funds-note {
  background: #fdf1d2;
  border: 2px solid var(--xmas-gold);
  border-left: 6px solid var(--xmas-red);
  color: var(--xmas-ink);
  font-size: 1rem;
  font-weight: 800;
  grid-column: 1 / -1;
  line-height: 1.45;
  margin: 16px 0 4px;
  padding: 12px 16px;
}

.christmas-page .xmas-funds-note strong {
  color: var(--xmas-red);
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.xmas-signup-intro h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem) !important;
}

.xmas-signup-intro > p:last-child {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Person cards: holly, a clear remove button and a reindeer watermark */
.xmas-person {
  overflow: hidden;
  position: relative;
}

.xmas-person-title {
  align-items: center;
  display: flex;
  gap: 10px;
}

.xmas-holly {
  flex: none;
  height: 34px;
  width: 54px;
}

.christmas-page .xmas-remove,
.xmas-remove-bottom {
  align-items: center;
  background: #fff;
  border: 2px solid var(--xmas-red);
  border-radius: 999px;
  color: var(--xmas-red);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  gap: 6px;
  min-height: 38px;
  padding: 6px 14px;
}

.christmas-page .xmas-remove:hover,
.xmas-remove-bottom:hover {
  background: var(--xmas-red);
  color: #fff;
}

.christmas-page .xmas-remove-bottom,
.christmas-page .xmas-remove {
  flex: 0 0 auto;
  width: auto;
}

.christmas-page .xmas-remove[hidden],
.xmas-remove-bottom[hidden] {
  display: none !important;
}

.xmas-person-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.xmas-person-footer .fiesta-person-total {
  margin: 0 0 0 auto;
}

.xmas-person-reindeer {
  bottom: 54px;
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  position: absolute;
  right: 12px;
  width: 150px;
}

.christmas-page .fiesta-add {
  background: #fff url("christmas-reindeer-red.png") no-repeat right 16px center / 30px auto;
  border-style: dashed;
}

/* Sleigh flying over the total */
.xmas-submit-panel {
  overflow: hidden;
  position: relative;
}

.xmas-submit-sleigh {
  height: auto;
  opacity: 0.16;
  pointer-events: none;
  position: absolute;
  right: 20px;
  top: 8px;
  width: min(300px, 50%);
}

.xmas-submit-panel > div,
.xmas-submit-panel > button {
  position: relative;
}

.xmas-event-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.christmas-page .xmas-choice {
  align-items: center;
  grid-template-columns: 24px auto minmax(0, 1fr);
}

.christmas-page .fiesta-choice:has(input:checked) {
  background: #fdf1d2;
  border-color: var(--xmas-red);
}

.christmas-page .fiesta-choice input,
.christmas-page .fiesta-consent-check input {
  accent-color: var(--xmas-red);
}

.xmas-choice-photo {
  border: 3px solid var(--xmas-gold);
  border-radius: 50%;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.xmas-kids-choice {
  background: #eef7f0;
  margin-top: 12px;
}

.christmas-page .fiesta-kids-count {
  background: #f1f8f2;
  border-color: #b9dcc2;
}

.christmas-page .fiesta-consent-check {
  background: #fdf1d2;
  border-color: var(--xmas-gold);
}

.christmas-page .fiesta-sun {
  background: linear-gradient(135deg, var(--xmas-gold), var(--xmas-red-2));
  color: #fff;
}

.christmas-page .fiesta-grand-total {
  background: #fdf1d2;
}

.christmas-page .fiesta-payment-reference {
  background: var(--xmas-green);
  border-color: var(--xmas-gold);
}

.christmas-page .fiesta-payment-reference span {
  color: var(--xmas-gold);
}

.christmas-page .fiesta-payment-methods article {
  border-left-color: var(--xmas-red);
}

.christmas-page .fiesta-waitlist-confirmation {
  background: #fdf1d2;
  border-color: var(--xmas-red);
}

.christmas-page .fiesta-waitlist-confirmation h3 {
  color: var(--xmas-red);
}

@media (max-width: 640px) {
  .christmas-page {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .xmas-hero {
    border-radius: 22px;
    padding: 34px 10px 12px;
  }

  .xmas-logo {
    width: 124px;
  }

  .xmas-hero-reindeer {
    top: 40px;
  }

  .xmas-hero-sports img {
    border-width: 2px;
  }

  .christmas-page .fiesta-phone-step {
    padding: 18px 16px;
  }

  .christmas-page .fiesta-phone-step > p:not(.fiesta-section-label) {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .christmas-page .fiesta-phone-step .fiesta-phone-grid {
    gap: 10px;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .christmas-page .fiesta-phone-step .fiesta-form {
    gap: 14px;
  }



  .xmas-signup-intro {
    padding: 16px;
  }

  .xmas-signup-intro > p:last-child {
    font-size: 0.88rem;
    line-height: 1.45;
  }



  .xmas-person-reindeer {
    width: 110px;
  }

  .xmas-event-grid {
    grid-template-columns: 1fr;
  }

  .xmas-choice-photo {
    height: 52px;
    width: 52px;
  }
}

/* Admin */
.christmas-admin-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(232, 185, 35, 0.22), transparent 26rem),
    linear-gradient(160deg, #06331d 0%, #0b4d2c 55%, #5e0a12 120%);
}

.christmas-admin-page .fiesta-section-label {
  color: #b3121f;
}

.christmas-admin-page h1,
.christmas-admin-page h2 {
  color: #0b4d2c;
}

.christmas-admin-brand {
  display: block;
  height: auto;
  margin-bottom: 10px;
  width: 150px;
}

.christmas-admin-kids select {
  margin-top: 6px;
  max-width: 120px;
}

/* Phones: stack the banner into straight full-width rows.
   Row 1: logo (left) + flying Santa (right)
   Row 2: title on one line, full width
   Row 3: date bar, exactly the title's width
   Sizes use vw so the lines never wrap, even with large phone text. */
@media (max-width: 760px) {
  .xmas-banner {
    align-items: center;
    column-gap: 4vw;
    grid-template-areas:
      "logo sleigh"
      "title title"
      "date date";
    grid-template-columns: auto minmax(0, 1fr);
    padding: 54px 5vw min(5vw, 28px);
    row-gap: min(3vw, 18px);
  }

  .xmas-banner-brand {
    display: contents;
  }

  .xmas-banner-logo,
  .xmas-banner h1,
  .xmas-banner-date {
    position: relative;
    z-index: 1;
  }

  .xmas-banner-logo {
    grid-area: logo;
  }

  .xmas-banner-logo img {
    width: min(44vw, 240px);
  }

  .xmas-banner-sleigh {
    align-self: center;
    grid-area: sleigh;
    justify-self: end;
    margin: 0;
    width: 100%;
  }

  .xmas-banner h1 {
    font-size: 8.4vw;
    grid-area: title;
    letter-spacing: 0.03em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .xmas-banner h1 br {
    display: none;
  }

  .xmas-banner-date {
    contain: none;
    font-size: 3.7vw;
    grid-area: date;
    letter-spacing: 0.16em;
    padding: 2vw 2vw;
    white-space: nowrap;
  }
}

/* Random fun scenes (christmas_fun.js) */
.xf-stage {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 6;
}

.xf-actor {
  bottom: 0;
  left: 0;
  position: absolute;
  transform-origin: 50% 100%;
  will-change: transform;
}

.xf-bob {
  height: 100%;
  width: 100%;
}

.xf-actor svg,
.xf-splat svg {
  display: block;
  height: 100%;
  overflow: visible;
  width: 100%;
}

.xf-actor svg * {
  transform-box: fill-box;
}

.xf-flip {
  transform: scaleX(-1);
}

.xf-mallet,
.xf-arm {
  transform-origin: 0% 100%;
}

.xf-pants,
.xf-lid {
  transform-origin: 50% 50%;
}

.xf-canopy {
  transform-origin: 50% 100%;
}

.xf-bubble {
  background: #fffaf0;
  border: 2px solid var(--xmas-gold, #e8b923);
  border-radius: 12px;
  bottom: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #9c1420;
  font: 900 clamp(0.8rem, 3.4vw, 1.05rem) / 1.2 system-ui, sans-serif;
  left: 50%;
  margin-bottom: 8px;
  padding: 3px 10px;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.xf-bubble::after {
  border: 7px solid transparent;
  border-top-color: var(--xmas-gold, #e8b923);
  content: "";
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
}

.xf-bubble--below {
  bottom: auto;
  margin-bottom: 0;
  margin-top: 8px;
  top: 100%;
}

.xf-bubble--below::after {
  border-bottom-color: var(--xmas-gold, #e8b923);
  border-top-color: transparent;
  bottom: 100%;
  top: auto;
}

.xf-free,
.xf-spark {
  left: 0;
  position: absolute;
  top: 0;
}

.xf-ice {
  background: linear-gradient(180deg, rgba(225, 245, 254, 0.95), rgba(129, 212, 250, 0.85));
  border-radius: 50%;
  bottom: -6px;
  box-shadow: 0 0 18px rgba(179, 229, 252, 0.9);
  height: 22px;
  position: absolute;
}

.xf-leg1,
.xf-leg2 {
  transform-origin: 50% 100%;
}

.xf-club {
  transform-origin: 0% 0%;
}

.xf-rays {
  transform-origin: 50% 50%;
}

.xf-shout {
  -webkit-text-stroke: 2px #9c1420;
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.4rem, 11vw, 4.2rem);
  letter-spacing: 0.04em;
  text-shadow: 0 4px 0 #9c1420;
  white-space: nowrap;
}

.xf-bauble {
  background: radial-gradient(circle at 35% 30%, #fff 0 10%, #e53935 32%, #8e0000);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 82, 82, 0.6);
}

.xf-pball {
  background: radial-gradient(circle at 35% 30%, #fffde7, #d4e157 60%, #9e9d24);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 160, 0.8);
}

.xf-net {
  background: repeating-linear-gradient(180deg, #fff 0 3px, transparent 3px 7px);
  border-top: 4px solid #fff;
  bottom: 0;
  height: 46px;
  position: absolute;
  width: 6px;
}

.xf-paddle {
  position: absolute;
  transform-origin: 50% 100%;
  width: 30%;
}

.xf-actor .xf-paddle svg {
  height: auto;
}

.xf-cord {
  animation: xf-cord-blink 0.9s steps(1) infinite;
  background:
    radial-gradient(circle, #ff5252 0 4px, transparent 5px) 0 50% / 66px 12px repeat-x,
    radial-gradient(circle, #ffd740 0 4px, transparent 5px) 22px 50% / 66px 12px repeat-x,
    radial-gradient(circle, #40c4ff 0 4px, transparent 5px) 44px 50% / 66px 12px repeat-x,
    linear-gradient(#1b5e20, #1b5e20) 0 50% / 100% 2px no-repeat;
  height: 12px;
  left: 0;
  position: absolute;
}

.xf-cord-party {
  animation-duration: 0.25s;
}

@keyframes xf-cord-blink {
  50% { filter: hue-rotate(140deg) brightness(1.3); }
}

.xf-bulb {
  animation: xf-bulb 0.5s steps(1) infinite;
}

.xf-bulb-b {
  animation-delay: 0.25s;
}

@keyframes xf-bulb {
  50% { opacity: 0.3; }
}

.xf-snowball {
  background: radial-gradient(circle at 35% 30%, #fff, #e3ecf1 60%, #b0c4cf);
  border-radius: 50%;
  height: 34px;
  width: 34px;
}

.xf-splat {
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

.xf-splat-word {
  color: #1565c0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.6rem, 8vw, 2.6rem);
  left: 50%;
  letter-spacing: 0.05em;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.xf-spark {
  color: #ffd54f;
  font-size: 18px;
  text-shadow: 0 0 6px #fff;
}

@media (prefers-reduced-motion: reduce) {
  .xf-stage {
    display: none;
  }
}

/* Easter egg ornament: hangs from the lights beside the logo. Tap 1 cracks
   it, tap 2 cracks it wide open, tap 3 opens the mini-game. */
.xmas-logo-wrap {
  margin: 0 auto;
  position: relative;
  width: fit-content;
}

.xmas-banner-logo {
  position: relative;
}

.christmas-page .xmas-ornament {
  -webkit-tap-highlight-color: transparent;
  animation: xmas-ornament-swing 3.2s ease-in-out infinite;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  height: 58px;
  min-height: 0;
  min-width: 0;
  padding: 0;
  position: absolute;
  touch-action: manipulation;
  transform-origin: 50% 0;
  width: 36px;
  z-index: 3;
}

.xmas-ornament::after {
  content: "";
  inset: 10px -6px -6px;
  position: absolute;
}

.xmas-ornament svg {
  display: block;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  width: 100%;
}

.xmas-ornament--hero {
  left: -40px;
  top: -34px;
}

.xmas-ornament--banner {
  left: -12px;
  top: -46px;
}

.xmas-ornament:focus-visible {
  outline: 3px solid var(--xmas-gold);
  outline-offset: 2px;
}

.xmas-ornament-crack1,
.xmas-ornament-crack2,
.xmas-ornament-glow {
  opacity: 0;
  transition: opacity 0.2s;
}

.xmas-ornament[data-stage="1"] .xmas-ornament-crack1,
.xmas-ornament[data-stage="2"] .xmas-ornament-crack1,
.xmas-ornament[data-stage="2"] .xmas-ornament-crack2,
.xmas-ornament[data-stage="2"] .xmas-ornament-glow {
  opacity: 1;
}

.xmas-ornament[data-stage="2"] svg {
  filter: drop-shadow(0 0 8px rgba(255, 213, 79, 0.95));
}

.xmas-ornament[data-stage="2"] .xmas-ornament-glow {
  animation: xmas-ornament-pulse 0.7s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

@keyframes xmas-ornament-swing {
  0%, 100% { rotate: -7deg; }
  50% { rotate: 7deg; }
}

@keyframes xmas-ornament-pulse {
  from { scale: 0.9; }
  to { scale: 1.15; }
}

@media (prefers-reduced-motion: reduce) {
  .christmas-page .xmas-ornament,
  .xmas-ornament[data-stage="2"] .xmas-ornament-glow {
    animation: none;
  }
}
