/* ========================================
   CHRISTMAS PROMO 2026 (/xmas2026)
   Page-only styles, loaded after /styles.css.
   Look follows the promo poster: red and gold, iPhone photo, icon list.
   Mobile first; print stylesheet (plain black on white) at the end.
   ======================================== */
:root {
  --xmas-red: #C8102E;
  --xmas-gold: #F2C94C;
  --xmas-gold-text: #FFD24A;
  --xmas-gold-fill: linear-gradient(180deg, #FFF0A6 0%, #F8CF4E 45%, #E3A11F 100%);
  --xmas-ink: #5B0A12;
  --xmas-hairline: rgba(0, 0, 0, 0.06);
  --xmas-line-light: rgba(255, 255, 255, 0.22);
  --xmas-display: 'Montserrat', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.xmas-page {
  overflow-wrap: break-word;
}

/* ========================================
   POSTER BLOCK (hero + prize + key facts)
   ======================================== */
.xmas-poster {
  position: relative;
  overflow: hidden; /* older browsers */
  overflow: clip;   /* clips the decorations but keeps the sticky prize photo working */
  color: var(--white);
  background:
    radial-gradient(ellipse 70% 22% at 50% 14%, rgba(214, 84, 40, 0.42) 0%, rgba(214, 84, 40, 0) 72%),
    radial-gradient(ellipse 150% 60% at 50% 22%, #9A121B 0%, #820E16 45%, #5E0911 82%, #3F050A 100%);
}

.xmas-deco {
  position: absolute;
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.xmas-deco-pine {
  top: 0;
  left: 0;
  width: 104px;
}

.xmas-deco-parol {
  top: -4px;
  right: -14px;
  width: 96px;
  filter: drop-shadow(0 0 18px rgba(255, 190, 80, 0.6));
}

/* ---------- hero ---------- */
.xmas-hero {
  position: relative;
  z-index: 1;
  padding: 92px 0 18px;
  text-align: center;
}

.xmas-hero-title {
  margin: 0 auto 4px;
  color: var(--white);
  font-family: var(--xmas-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.xmas-hero-prize {
  margin: 0;
  font-family: var(--xmas-display);
  font-style: italic;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.xmas-hero-prize .xmas-win {
  display: block;
  padding: 0 0.12em;
  font-size: clamp(3rem, 15vw, 6.2rem);
  color: var(--xmas-gold-text);
  background: linear-gradient(180deg, #FFF6C2 0%, #FBD75A 42%, #E2A01E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.4));
}

.xmas-hero-prize .xmas-iphone {
  display: block;
  color: var(--white);
  font-size: clamp(2.05rem, 9.6vw, 4.9rem);
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.xmas-hero-prize::after {
  content: '';
  display: block;
  width: min(72%, 440px);
  height: 6px;
  margin: 12px auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #FBD75A 0%, rgba(251, 215, 90, 0.55) 45%, rgba(251, 215, 90, 0) 72%);
}

.xmas-hero-sub {
  max-width: 560px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.05rem;
  line-height: 1.55;
}

.xmas-hero-callout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 18px;
  padding: 10px 18px 10px 12px;
  border: 2px solid var(--xmas-gold-text);
  border-radius: 999px;
  background: linear-gradient(180deg, #A30E1F 0%, #7D0A17 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  color: var(--white);
  font-family: var(--xmas-display);
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
}

.xmas-callout-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--xmas-gold-text);
}

.xmas-callout-icon svg {
  width: 30px;
  height: 30px;
}

.xmas-hero-terms-link {
  margin-top: 16px;
  font-size: 0.95rem;
}

.xmas-hero-terms-link a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.xmas-hero-terms-link a:hover {
  color: var(--xmas-gold-text);
}

/* the site-wide focus ring is too faint on red: use gold here */
.xmas-poster a:focus-visible,
.xmas-footer a:focus-visible {
  outline: 3px solid var(--xmas-gold-text);
  outline-offset: 3px;
}

/* ---------- prize photo + key facts ---------- */
.xmas-facts-section {
  position: relative;
  z-index: 1;
  padding: 18px 0 44px;
}

.xmas-facts-grid {
  display: grid;
  gap: 30px;
  max-width: 1040px;
}

.xmas-prize {
  margin: 0;
  text-align: center;
}

.xmas-prize-art {
  position: relative;
  width: min(220px, 60vw);
  margin: 0 auto;
}

.xmas-phones {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
}

/* The gift cut-out has a flat cut on its left side (it sat on the edge of the
   generated background). Mirrored and tucked behind the back phone, that flat
   side stays hidden: the cut spans 31-65% of the gift's height, all of which
   the back phone covers. */
.xmas-prize-art .xmas-deco-gift {
  z-index: 0;
  left: -31%;
  bottom: 2%;
  width: 46%;
  transform: scaleX(-1);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
}

.xmas-badge {
  position: absolute;
  z-index: 2;
  right: -16%;
  bottom: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #FFF3B4 0%, #F9CF52 42%, #DC9A1B 100%);
  box-shadow: 0 0 0 4px rgba(255, 236, 160, 0.5), 0 8px 16px rgba(0, 0, 0, 0.45);
  color: var(--xmas-ink);
  font-family: var(--xmas-display);
  line-height: 1.05;
  text-align: center;
}

.xmas-badge-name {
  font-size: clamp(0.68rem, 2.7vw, 0.98rem);
  font-weight: 800;
}

.xmas-badge-small {
  margin-top: 3px;
  font-size: clamp(0.62rem, 1.9vw, 0.66rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xmas-badge-price {
  color: #B40F22;
  font-size: clamp(1.2rem, 5.6vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.xmas-prize figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
  font-style: italic;
}

.xmas-facts-panel h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-family: var(--xmas-display);
  font-size: 1.45rem;
  font-weight: 800;
}

.xmas-facts {
  display: grid;
  margin: 0;
}

.xmas-fact {
  position: relative;
  padding: 13px 0 13px 58px;
  border-top: 1px solid var(--xmas-line-light);
}

.xmas-fact:first-child {
  border-top: 0;
}

.xmas-fact dt {
  color: var(--xmas-gold-text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xmas-fact dd {
  margin: 2px 0 0;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.5;
}

.xmas-fact dd strong {
  color: var(--xmas-gold-text);
}

.xmas-fact-icon {
  position: absolute;
  top: 13px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
}

.xmas-fact-icon svg {
  width: 22px;
  height: 22px;
}

.xmas-age {
  font-family: var(--xmas-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
}

/* ========================================
   SECTIONS (light)
   ======================================== */
.xmas-section {
  padding: 40px 0;
}

.xmas-section h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

/* ---------- prize pool updates ---------- */
.xmas-section .xmas-prize-list {
  margin-top: 0;
}

.xmas-prize-list li {
  color: var(--text-primary);
  font-weight: 600;
}

.xmas-prize-list li::marker {
  color: var(--xmas-red);
}

.xmas-section .xmas-prize-note {
  margin-top: 14px;
}

/* ---------- terms and conditions ---------- */
.xmas-terms {
  background: var(--white);
  border-top: 4px solid var(--xmas-gold);
  border-bottom: 1px solid var(--xmas-hairline);
}

.xmas-terms .tcs-intro {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
}

.xmas-terms .tcs-list {
  padding-left: 1.9em;
  list-style: decimal outside;
}

.xmas-terms .tcs-list > li {
  padding-left: 0.3em;
  line-height: 1.75;
}

.xmas-terms .tcs-list > li + li {
  margin-top: 18px;
}

.xmas-terms .tcs-list > li::marker {
  color: var(--xmas-red);
  font-weight: 800;
}

.xmas-terms .tcs-list strong {
  color: var(--text-primary);
}

.xmas-terms .tcs-list ul {
  margin: 10px 0 0 1.2em;
  list-style: disc outside;
}

.xmas-terms .tcs-list ul li + li {
  margin-top: 6px;
}

/* ---------- winner ---------- */
.xmas-winner-card {
  padding: 22px 20px;
  border: 1px solid var(--xmas-hairline);
  border-left: 6px solid var(--xmas-gold);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.xmas-winner-card .xmas-winner-status {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
}

/* ========================================
   FOOTER (red band, real logo)
   ======================================== */
.xmas-footer {
  padding: 30px 0 24px;
  border-top: 4px solid var(--xmas-gold-text);
  background: linear-gradient(180deg, #C8102E 0%, #8E0A1F 100%);
  color: rgba(255, 255, 255, 0.9);
}

.xmas-footer-band {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

/* The logo has its own white border, so no white card behind it: just a soft shadow. */
.xmas-footer-logo {
  width: 168px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.xmas-footer-tagline {
  color: var(--white);
  font-family: var(--xmas-display);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1.3;
}

.xmas-footer-contact {
  display: grid;
  gap: 4px;
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.5;
}

.xmas-footer-contact .xmas-footer-name {
  color: var(--white);
  font-weight: 700;
}

.xmas-footer a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.xmas-footer a:hover {
  color: var(--xmas-gold-text);
}

.xmas-footer a[href^="tel:"] {
  white-space: nowrap;
}

.xmas-footer-notes {
  display: grid;
  gap: 4px;
  margin: 22px 0 18px;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

.xmas-footer .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.82);
}

.xmas-footer .footer-legal-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.xmas-footer .footer-legal-links a:hover {
  color: var(--white);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 600px) {
  .xmas-deco-pine {
    width: 170px;
  }

  .xmas-deco-parol {
    top: -8px;
    right: -10px;
    width: 150px;
  }

  .xmas-hero {
    padding-top: 110px;
  }
}

@media (min-width: 900px) {
  .xmas-deco-pine {
    width: 250px;
  }

  .xmas-deco-parol {
    top: -12px;
    right: 0;
    width: 210px;
  }

  .xmas-hero {
    padding: 64px 0 24px;
  }

  .xmas-hero-title {
    font-size: 1.3rem;
  }

  .xmas-facts-section {
    padding: 28px 0 64px;
  }

  .xmas-facts-grid {
    grid-template-columns: 330px 1fr;
    align-items: start;
    gap: 56px;
  }

  .xmas-prize {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding-top: 36px;
  }

  .xmas-prize-art {
    width: 270px;
  }

  .xmas-facts-panel h2 {
    font-size: 1.7rem;
  }

  .xmas-section {
    padding: 56px 0;
  }

  .xmas-terms {
    padding: 64px 0 72px;
  }

  .xmas-section h2 {
    margin-bottom: 18px;
    font-size: 1.6rem;
  }

  .xmas-winner-card {
    padding: 28px 32px;
  }

  .xmas-footer {
    padding: 40px 0 28px;
  }

  .xmas-footer-band {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
  }

  .xmas-footer-contact {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-hero-prize .xmas-win {
    filter: none;
  }
}

/* Windows high contrast: drop the gold gradient text so "WIN an" stays visible */
@media (forced-colors: active) {
  .xmas-hero-prize .xmas-win {
    background: none;
    -webkit-text-fill-color: currentColor;
    filter: none;
  }
}

/* ========================================
   PRINT (A4, for the counter): plain black on white
   ======================================== */
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
  }

  html {
    font-size: 10.5pt;
  }

  body {
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .site-header {
    position: static;
    border-bottom: 0.75pt solid #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-inner {
    height: auto;
    padding: 0 0 3mm;
  }

  .header-logo-img {
    height: 11mm;
    max-width: none;
  }

  .header-nav,
  .header-phone,
  .xmas-deco,
  .xmas-prize,
  .xmas-fact-icon,
  .xmas-callout-icon,
  .xmas-hero-prize::after,
  .xmas-hero-terms-link,
  .xmas-footer-logo,
  .xmas-footer .footer-bottom {
    display: none !important;
  }

  .legal-page {
    min-height: 0;
    padding-top: 0;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .xmas-poster {
    overflow: visible;
  }

  .xmas-hero,
  .xmas-facts-section,
  .xmas-section {
    padding: 4mm 0;
    border: 0;
    text-align: left;
  }

  .xmas-hero-title {
    margin: 0 0 1mm;
    font-family: inherit;
    font-size: 20pt;
  }

  .xmas-hero-prize .xmas-win,
  .xmas-hero-prize .xmas-iphone {
    display: inline;
    padding: 0;
    font-size: 15pt;
  }

  .xmas-hero-sub {
    max-width: none;
    margin: 1.5mm 0 0;
    font-size: 11pt;
  }

  .xmas-hero-callout {
    display: block;
    margin-top: 2mm;
    padding: 1.5mm 3mm;
    border: 1pt solid #000;
    border-radius: 2mm;
    font-size: 12pt;
    font-style: normal;
  }

  .xmas-facts-grid {
    display: block;
  }

  .xmas-facts-panel {
    padding: 3.5mm 4mm;
    border: 0.75pt solid #000;
    border-top-width: 2.25pt;
    border-radius: 2mm;
  }

  .xmas-facts-panel h2,
  .xmas-section h2 {
    margin-bottom: 2mm;
    font-family: inherit;
    font-size: 13pt;
  }

  .xmas-fact {
    display: grid;
    grid-template-columns: 28mm 1fr;
    gap: 4mm;
    padding: 1.5mm 0 0;
    border-top: 0.5pt solid #999;
  }

  .xmas-fact:first-child {
    border-top: 0;
  }

  .xmas-fact dt {
    font-size: 9pt;
    letter-spacing: 0.04em;
  }

  .xmas-fact dd,
  .legal-container p,
  .legal-container li {
    margin: 0;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  h2,
  .xmas-terms .tcs-intro {
    break-after: avoid;
    page-break-after: avoid;
  }

  .xmas-facts-panel,
  .xmas-winner-card,
  .xmas-terms .tcs-list > li,
  .xmas-footer {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .xmas-winner-card {
    padding: 3.5mm 4mm;
    border: 0.75pt solid #000;
    border-radius: 2mm;
  }

  .xmas-terms .tcs-intro {
    margin-bottom: 3mm;
  }

  .xmas-terms .tcs-list > li {
    line-height: 1.45;
  }

  .xmas-terms .tcs-list > li + li {
    margin-top: 2.5mm;
  }

  .xmas-terms .tcs-list ul {
    margin-top: 1.5mm;
  }

  .xmas-terms .tcs-list ul li + li {
    margin-top: 1mm;
  }

  .xmas-terms .tcs-list > li::marker,
  .xmas-prize-list li::marker {
    color: #000;
  }

  .xmas-footer {
    margin-top: 4mm;
    padding: 3mm 0 0;
    border-top: 0.75pt solid #000;
  }

  .xmas-footer-band {
    display: block;
    text-align: left;
  }

  .xmas-footer-tagline {
    font-family: inherit;
    font-size: 10pt;
    text-align: left;
  }

  .xmas-footer-contact,
  .xmas-footer-notes {
    display: block;
    margin: 1mm 0 0;
    font-size: 9pt;
    line-height: 1.4;
    text-align: left;
  }

  .xmas-footer a {
    text-decoration: none;
  }

  .xmas-footer a[href^="https://"]::after {
    content: " (" attr(href) ")";
  }
}
