/* ==========================================================================
   Tremblant Black Cars — Christmas & New Year Holiday Experience Stylesheet
   Rich alpine luxury holiday theme: obsidian slate, warm champagne gold,
   crimson poinsettia accents, twinkling garland lights, big festive crest,
   and floating Christmas Carols & Snowfall controller.
   ========================================================================== */

:root {
  --xmas-gold: #e6c278;
  --xmas-gold-bright: #fae0a4;
  --xmas-crimson: #9f1d2c;
  --xmas-crimson-bright: #d42b3f;
  --xmas-pine: #164b34;
  --xmas-frost: rgba(226, 240, 255, 0.14);
}

/* Full-page subtle ambient snowfall layer */
#tbc-snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
  opacity: 0.78;
  transition: opacity 0.4s ease;
}

body.tbc-snow-off #tbc-snow-canvas {
  opacity: 0;
}

/* Subtle Twinkling Fairy-Light Garland Bar */
.xmas-garland-bar {
  position: relative;
  height: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.92) 0%, rgba(10, 14, 22, 0.0) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 0 1rem;
  z-index: 6;
  pointer-events: none;
}

.xmas-garland-bar::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -2%;
  right: -2%;
  height: 12px;
  border-bottom: 1px solid rgba(230, 194, 120, 0.28);
  border-radius: 50%;
}

.xmas-bulb {
  width: 7px;
  height: 10px;
  border-radius: 50% 50% 60% 60%;
  margin-top: 8px;
  background: #fde68a;
  box-shadow: 0 0 10px 3px rgba(253, 230, 138, 0.7), 0 0 20px rgba(230, 194, 120, 0.4);
  animation: xmasTwinkle 2.8s ease-in-out infinite;
}

.xmas-bulb:nth-child(3n) {
  background: #f87171;
  box-shadow: 0 0 10px 3px rgba(248, 113, 113, 0.65);
  animation-delay: 0.8s;
}

.xmas-bulb:nth-child(4n) {
  background: #f8fafc;
  box-shadow: 0 0 10px 3px rgba(248, 250, 252, 0.72);
  animation-delay: 1.5s;
}

.xmas-bulb:nth-child(5n) {
  background: #34d399;
  box-shadow: 0 0 9px 2px rgba(52, 211, 153, 0.55);
  animation-delay: 2.1s;
}

@keyframes xmasTwinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* Christmas Hero with Big Floating Holiday Crest */
.tbc-xmas-hero {
  position: relative;
  min-height: 675px;
  padding: 3.4rem 0 4.5rem !important;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.tbc-xmas-hero h1 {
  font-size: clamp(2.25rem, 3.6vw, 3.35rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.tbc-xmas-hero .hero-lead {
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1.55rem;
}

.tbc-xmas-hero .hero-actions {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tbc-xmas-hero .hero-actions .btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 0.82rem;
}

.tbc-xmas-hero .hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  transform: none !important;
  filter: brightness(0.94) contrast(1.04);
}

.tbc-xmas-hero .hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 9, 15, 0.92) 0%, rgba(6, 9, 15, 0.72) 48%, rgba(6, 9, 15, 0.32) 100%),
    linear-gradient(180deg, rgba(6, 9, 15, 0.52) 0%, rgba(6, 9, 15, 0.14) 45%, rgba(6, 9, 15, 0.94) 100%) !important;
}

.xmas-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(240px, 0.68fr);
  align-items: center;
  gap: 2.5rem;
}

.xmas-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--xmas-gold-bright);
  padding: 0.42rem 0.95rem;
  background: linear-gradient(135deg, rgba(159, 29, 44, 0.42), rgba(22, 75, 52, 0.42));
  border: 1px solid rgba(230, 194, 120, 0.48);
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.xmas-crest-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.xmas-crest-aura {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 194, 120, 0.22) 0%, rgba(159, 29, 44, 0.12) 44%, transparent 72%);
}

.xmas-big-crest {
  width: clamp(220px, 23vw, 310px);
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.8));
  will-change: transform;
  animation: xmasCrestFloat 5.5s ease-in-out infinite;
}

@keyframes xmasCrestFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

.xmas-crest-caption {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--xmas-gold-bright);
  text-align: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.92);
  border: 1px solid rgba(230, 194, 120, 0.35);
}

/* Inline Hero Carols Quick-Start Button */
.btn-xmas-jolly {
  background: linear-gradient(135deg, #b91c2e 0%, #8c1623 100%);
  color: #ffffff;
  border: 1px solid rgba(250, 224, 164, 0.55);
  box-shadow: 0 10px 28px rgba(159, 29, 44, 0.38);
}

.btn-xmas-jolly:hover {
  background: linear-gradient(135deg, #d42b3f 0%, #9f1d2c 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(212, 43, 63, 0.45);
}

/* Editorial Photo Gallery of Real Mont-Tremblant Christmas Landmarks */
.xmas-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.xmas-photo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0e131c;
  border: 1px solid rgba(230, 194, 120, 0.22);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.xmas-photo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 194, 120, 0.55);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.58);
}

.xmas-photo-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #06090f;
}

.xmas-photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.xmas-photo-card:hover .xmas-photo-media img {
  transform: scale(1.04);
}

.xmas-photo-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(9, 13, 21, 0.92);
  border: 1px solid rgba(230, 194, 120, 0.45);
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
}

.xmas-photo-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.xmas-photo-body h3 {
  font-size: 1.18rem;
  color: #ffffff;
  margin: 0 0 0.55rem;
}

.xmas-photo-body p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #cbd5e1;
  text-align: justify;
  margin: 0;
  max-width: none;
}

/* Joyful Cartoon Illustration Spotlight Banner */
.xmas-cartoon-showcase {
  margin-top: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96) 0%, rgba(28, 16, 24, 0.94) 55%, rgba(12, 28, 22, 0.96) 100%);
  border: 1px solid rgba(230, 194, 120, 0.42);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.62);
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
  align-items: stretch;
}

.xmas-cartoon-art {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.xmas-cartoon-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xmas-cartoon-copy {
  padding: 2.2rem 2.3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.xmas-cartoon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #090b10;
  background: linear-gradient(135deg, #fae0a4 0%, #d4b475 100%);
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
}

.xmas-cartoon-copy h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.xmas-cartoon-copy p {
  color: #dbe3ee;
  font-size: 0.97rem;
  line-height: 1.72;
  text-align: justify;
  margin: 0;
  max-width: none;
}

/* Second Holly & Gold Ribbon Crest Band */
.xmas-crest-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2.25rem;
  padding: 2.25rem 2.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 22, 33, 0.95) 0%, rgba(16, 34, 26, 0.9) 100%);
  border: 1px solid rgba(230, 194, 120, 0.38);
}

.xmas-holly-crest {
  width: 155px;
  height: auto;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.75));
}

/* Floating Jolly Christmas Carols & Snow Mini-Player (Bottom-Left — Zero Collision with Call Dispatch!) */
.tbc-holiday-player {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 9985;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(11, 15, 24, 0.96);
  border: 1px solid rgba(230, 194, 120, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72), 0 0 22px rgba(230, 194, 120, 0.14);
  color: #f8fafc;
  font-family: var(--font-sans);
  max-width: calc(100vw - 2.5rem);
}

.tbc-hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tbc-hp-play {
  padding: 0.48rem 0.92rem;
  background: linear-gradient(135deg, #b91c2e 0%, #8c1623 100%);
  color: #ffffff;
  border: 1px solid rgba(250, 224, 164, 0.45);
}

.tbc-hp-play:hover {
  background: linear-gradient(135deg, #d42b3f 0%, #9f1d2c 100%);
}

.tbc-hp-play.is-playing {
  background: linear-gradient(135deg, #f0d090 0%, #c49b4e 100%);
  color: #090b10;
  border-color: transparent;
}

.tbc-hp-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.16);
}

.tbc-hp-icon:hover {
  background: rgba(230, 194, 120, 0.2);
  color: #ffffff;
  border-color: rgba(230, 194, 120, 0.5);
}

.tbc-hp-icon[aria-pressed="true"] {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(125, 211, 252, 0.55);
  color: #bae6fd;
}

.tbc-hp-track {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding: 0 0.2rem;
  min-width: 112px;
}

.tbc-hp-kicker {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--xmas-gold);
  font-weight: 700;
}

.tbc-hp-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  max-width: 165px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tbc-hp-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.tbc-hp-bars span {
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
}

.tbc-hp-play.is-playing .tbc-hp-bars span {
  animation: xmasEq 0.75s ease-in-out infinite alternate;
}

.tbc-hp-play.is-playing .tbc-hp-bars span:nth-child(2) { animation-delay: 0.18s; }
.tbc-hp-play.is-playing .tbc-hp-bars span:nth-child(3) { animation-delay: 0.36s; }

@keyframes xmasEq {
  from { height: 3px; }
  to { height: 12px; }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  .xmas-bulb,
  .xmas-big-crest,
  .tbc-hp-play.is-playing .tbc-hp-bars span {
    animation: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .xmas-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .xmas-crest-showcase {
    order: -1;
  }
  .xmas-big-crest {
    width: 185px;
  }
  .xmas-gallery-grid {
    grid-template-columns: 1fr;
  }
  .xmas-cartoon-showcase {
    grid-template-columns: 1fr;
  }
  .xmas-cartoon-art {
    min-height: 240px;
  }
  .xmas-crest-band {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 1.75rem 1.35rem;
  }
}

@media (max-width: 768px) {
  .tbc-xmas-hero {
    min-height: auto;
    padding: 1.75rem 0 2.75rem !important;
  }
  .xmas-crest-aura {
    padding: 0.45rem;
  }
  .xmas-big-crest {
    width: 146px;
  }
  .xmas-crest-caption {
    margin-top: 0.5rem;
    font-size: 0.64rem;
    padding: 0.28rem 0.72rem;
    letter-spacing: 0.12em;
  }
  .tbc-xmas-hero h1 {
    font-size: 1.9rem;
  }
  .tbc-holiday-player {
    bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
    left: 0.75rem;
    right: 0.75rem;
    justify-content: space-between;
    padding: 0.48rem 0.65rem;
  }
  .tbc-hp-track {
    min-width: 0;
    flex: 1;
  }
  .tbc-hp-title {
    max-width: 100%;
  }
  body.has-law25-banner .tbc-holiday-player {
    display: none;
  }
}

/* ==========================================================================
   Interactive Christmas Card & Postcard Studio (True Ivory Stationery Card)
   ========================================================================== */
.xmas-ecard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas:
    "preview config"
    "details submit";
  column-gap: 2.25rem;
  row-gap: 1.5rem;
  align-items: start;
  padding: 2.25rem;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(16, 20, 29, 0.98) 0%, rgba(36, 12, 18, 0.96) 100%);
  border: 1px solid rgba(230, 194, 120, 0.42);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.62);
}

.xmas-ecard-shell > .ecard-envelope-frame {
  grid-area: preview;
}

.ecard-step-config {
  grid-area: config;
}

.ecard-step-details {
  grid-area: details;
}

.ecard-step-details .ecard-field:last-child {
  margin-bottom: 0;
}

.ecard-step-submit {
  grid-area: submit;
  align-self: end;
}

/* Deep Crimson Envelope Backdrop Framing the Ivory Christmas Card */
.ecard-envelope-frame {
  padding: 1.05rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #741220 0%, #4b0a14 100%);
  border: 1px solid rgba(230, 194, 120, 0.48);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Genuine Warm Ivory Cotton-Paper Christmas Card */
.ecard-live-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #fdf8ee;
  border: 2px solid #c89b3c;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 6px #fdf8ee, inset 0 0 0 7px rgba(139, 21, 36, 0.28);
  color: #2c1e16;
  padding: 0.9rem;
}

.ecard-live-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #140b0d;
  border: 2px solid #c89b3c;
  border-radius: 3px;
}

.ecard-live-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ecard-stationery-body {
  padding: 1.25rem 0.95rem 0.95rem;
}

.ecard-stationery-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.ecard-stationery-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #14532d;
  margin-bottom: 0.28rem;
}

.ecard-stationery-headline {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  line-height: 1.12;
  color: #8b1524;
  margin: 0 0 0.55rem;
}

.ecard-gold-rule {
  width: 96px;
  height: 2px;
  background: linear-gradient(90deg, #c89b3c 0%, rgba(200, 155, 60, 0.2) 100%);
}

/* Perforated Vintage Mont-Tremblant Postage Stamp */
.ecard-postage-stamp {
  flex-shrink: 0;
  width: 112px;
  padding: 0.45rem 0.35rem;
  background: #fffdf8;
  border: 2px dashed #9f1d2c;
  border-radius: 3px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(44, 30, 22, 0.14);
}

.ecard-stamp-top {
  display: block;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b1524;
}

.ecard-stamp-flake {
  display: block;
  font-size: 1.15rem;
  line-height: 1.15;
  color: #c89b3c;
}

.ecard-stamp-dist {
  display: block;
  font-family: Georgia, serif;
  font-size: 0.54rem;
  font-weight: 700;
  color: #7a1320;
  line-height: 1.25;
  margin-top: 0.1rem;
}

.ecard-stamp-city {
  display: block;
  font-family: Georgia, serif;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #14532d;
  margin-top: 0.12rem;
}

.ecard-live-to {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 700;
  color: #7a1320;
  margin-bottom: 0.45rem;
}

.ecard-live-msg {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.72;
  color: #2c1e16;
  margin: 0 0 1.05rem;
  text-align: left;
  max-width: none;
}

.ecard-stationery-signrow {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(200, 155, 60, 0.35);
}

.ecard-live-from {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
  font-weight: 700;
  color: #8b1524;
  margin-bottom: 0.22rem;
}

.ecard-compliments {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c6a5b;
  font-weight: 600;
}

.ecard-live-crest {
  width: 58px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(44, 30, 22, 0.35));
}

.ecard-greeting-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.ecard-greeting-btn {
  padding: 0.48rem 0.65rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.16);
  color: #dbe3ee;
  cursor: pointer;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.ecard-greeting-btn.is-active,
.ecard-greeting-btn:hover {
  border-color: #e6c278;
  background: rgba(159, 29, 44, 0.32);
  color: #fffdf8;
}

.ecard-picker-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e6c278;
  margin-bottom: 0.55rem;
}

.ecard-design-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.ecard-design-btn {
  padding: 0.32rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.14);
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.ecard-design-btn img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
}

.ecard-design-btn.is-active,
.ecard-design-btn:hover {
  border-color: #e6c278;
  background: rgba(230, 194, 120, 0.14);
  color: #ffffff;
}

.ecard-crest-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.ecard-crest-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.15);
  color: #cbd5e1;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
}

.ecard-crest-btn img {
  width: 26px;
  height: auto;
}

.ecard-crest-btn.is-active,
.ecard-crest-btn:hover {
  border-color: #e6c278;
  background: rgba(230, 194, 120, 0.16);
  color: #ffffff;
}

.ecard-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ecard-field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.32rem;
}

.ecard-field input,
.ecard-field textarea {
  width: 100%;
  background: #090d15;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 6px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.62rem 0.78rem;
}

.ecard-field input:focus,
.ecard-field textarea:focus {
  outline: none;
  border-color: #e6c278;
  box-shadow: 0 0 0 3px rgba(230, 194, 120, 0.18);
}

.ecard-consent-box {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.9rem 0 1.1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.12);
}

.ecard-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.79rem;
  line-height: 1.48;
  color: #cbd5e1;
  cursor: pointer;
}

.ecard-check input {
  margin-top: 0.2rem;
  accent-color: #d4b475;
  flex-shrink: 0;
}

.ecard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ecard-status {
  margin-top: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

.ecard-status.is-success {
  background: rgba(22, 101, 52, 0.28);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}

.ecard-status.is-error {
  background: rgba(153, 27, 27, 0.28);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

@media (max-width: 980px) {
  .xmas-ecard-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "config"
      "details"
      "submit";
    padding: 1.35rem;
  }
  .ecard-design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ecard-form-row {
    grid-template-columns: 1fr;
  }
}

/* Magazine-style justified editorial prose on Christmas hub pages */
.tbc-xmas-page .tbc-event-card p,
.tbc-xmas-page .tbc-bento-card p,
.tbc-xmas-page .tbc-storm-pillar p,
.tbc-xmas-page .tbc-policy-card p,
.tbc-xmas-page .faq-card p,
.tbc-xmas-page .xmas-crest-band p,
.tbc-xmas-page .tbc-request-header p {
  text-align: justify;
  max-width: none;
}

.xmas-crest-band h2,
.xmas-crest-band h3 {
  color: #ffffff;
  margin: 0 0 0.65rem;
}

.xmas-crest-band p {
  color: #dbe3ee;
  font-size: 0.98rem;
  line-height: 1.72;
  margin: 0 0 1.25rem;
}

/* ==========================================================================
   Animated Snow Canvas, Carol Selector & Full-Screen Musical Envelope Theater
   ========================================================================== */
/* Keep artwork pixel-locked so living fire, candle flames, Santa convoy & strolling villagers align cleanly */
.ecard-live-media img {
  transform: none;
}

.ecard-live-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  z-index: 1;
  transform: translateZ(0);
}

.ecard-snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.ecard-media-audio-pill {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 224, 164, 0.65);
  background: rgba(74, 10, 20, 0.94);
  color: #fffdf8;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.ecard-media-audio-pill:hover,
.ecard-media-audio-pill.is-playing {
  background: linear-gradient(135deg, #b91c2e 0%, #861123 100%);
  border-color: #fae0a4;
  transform: translateY(-1px);
}

.ecard-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.ecard-eq span {
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: #fae0a4;
}

.ecard-media-audio-pill.is-playing .ecard-eq span,
.ecard-tm-btn.is-playing .ecard-eq span {
  animation: xmasEq 0.7s ease-in-out infinite alternate;
}

.ecard-media-audio-pill.is-playing .ecard-eq span:nth-child(2),
.ecard-tm-btn.is-playing .ecard-eq span:nth-child(2) { animation-delay: 0.18s; }
.ecard-media-audio-pill.is-playing .ecard-eq span:nth-child(3),
.ecard-tm-btn.is-playing .ecard-eq span:nth-child(3) { animation-delay: 0.34s; }

.ecard-song-field {
  margin-bottom: 1.1rem;
}

.ecard-song-select {
  width: 100%;
  padding: 0.62rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(230, 194, 120, 0.42);
  background: rgba(15, 20, 30, 0.92);
  color: #fffdf8;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.ecard-song-select:focus {
  outline: none;
  border-color: #fae0a4;
  box-shadow: 0 0 0 2px rgba(230, 194, 120, 0.25);
}

/* Full-Screen Musical Envelope Opening Theater */
body.ecard-theater-open {
  overflow: hidden;
}

.ecard-theater-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.8rem 1.25rem 1.5rem;
  overflow-y: auto;
}

.ecard-theater-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(74, 10, 20, 0.94), rgba(5, 8, 14, 0.98));
}

.ecard-theater-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: auto;
}

.ecard-theater-close {
  position: absolute;
  top: -2.65rem;
  right: 0;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(250, 224, 164, 0.65);
  background: rgba(20, 8, 12, 0.92);
  color: #fffdf8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}

.ecard-theater-close:hover {
  background: #9f1d2c;
}

/* Sealed Crimson Velvet Envelope */
.ecard-sealed-envelope {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(155deg, #861224 0%, #560a16 58%, #3c0710 100%);
  border: 2px solid rgba(230, 194, 120, 0.65);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: 3.1rem 2rem 2.6rem;
  text-align: center;
  transition: transform 0.36s ease, opacity 0.36s ease;
}

.ecard-sealed-envelope.is-opening {
  transform: scale(1.06) translateY(-16px);
  opacity: 0;
}

.ecard-env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(255, 240, 200, 0.12), rgba(0, 0, 0, 0.2));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 1px solid rgba(230, 194, 120, 0.3);
  pointer-events: none;
}

.ecard-env-inner {
  position: relative;
  z-index: 2;
}

.ecard-env-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fae0a4;
  margin-bottom: 0.75rem;
}

.ecard-env-for {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  font-weight: 700;
  color: #fffdf8;
  margin-bottom: 0.45rem;
}

.ecard-env-from {
  font-size: 0.92rem;
  color: #f3e3d3;
  margin-bottom: 1.75rem;
}

.ecard-wax-seal-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.25rem 2.2rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(253, 248, 238, 0.12), rgba(20, 8, 12, 0.45));
  border: 1.5px solid rgba(250, 224, 164, 0.78);
  color: #fffdf8;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 26px rgba(230, 194, 120, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ecard-wax-seal-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 34px rgba(250, 224, 164, 0.45);
}

.ecard-wax-seal-btn img {
  width: 74px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.ecard-wax-cta {
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fffdf8;
  padding: 0.58rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #c41e33 0%, #8b1524 100%);
  border: 1px solid #fae0a4;
}

.ecard-wax-song {
  font-size: 0.76rem;
  font-weight: 600;
  color: #fae0a4;
}

/* Revealed Musical Card */
.ecard-theater-card-wrap {
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  transition: opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1), transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecard-theater-card-wrap.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ecard-theater-musicbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(20, 8, 12, 0.9);
  border: 1px solid rgba(250, 224, 164, 0.55);
  color: #fffdf8;
}

.ecard-tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 224, 164, 0.55);
  background: linear-gradient(135deg, #b91c2e 0%, #861123 100%);
  color: #fffdf8;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.ecard-tm-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fae0a4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecard-tm-next {
  border: 1px solid rgba(250, 224, 164, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fffdf8;
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  cursor: pointer;
  font-size: 0.82rem;
}

.ecard-theater-footer {
  text-align: center;
  margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .ecard-live-media img,
  .ecard-media-audio-pill.is-playing .ecard-eq span,
  .ecard-tm-btn.is-playing .ecard-eq span {
    animation: none !important;
  }
  .ecard-live-video {
    display: none !important;
  }
}

/* Equal-size side-by-side 2x2 action button grid in Holiday E-Card Studio */
.ecard-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
  align-items: stretch !important;
}

.ecard-actions .btn {
  width: 100% !important;
  min-height: 46px;
  padding: 0.72rem 0.75rem !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.06em !important;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .ecard-actions {
    grid-template-columns: 1fr !important;
  }
}
