/* "Merry Christmas to Me" campaign page (/xmas2026). Builds on style.css. */
.xmas-page {
  --gold: #b0842c;
  --gold-deep: #8a5f17;
  --gold-soft: #f3dfae;
  --cream: #fdf6ea;
  background: var(--cream);
}

/* Keeps a phrase on one line so headings break between phrases, not inside them. */
.xmas-phrase {
  display: inline-block;
}

/* Header: the start button becomes an app download button with an icon. */
.xs-download {
  gap: 8px;
  white-space: nowrap;
}
.xmas-page .nav-links {
  white-space: nowrap;
}
.xmas-page .nav-links a + a {
  margin-left: 22px;
}
@media (max-width: 1040px) {
  .xmas-page .nav-links {
    display: none;
  }
}
.xs-download svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero: headline over the top of the scene, prizes over its foot. */
.xs-hero {
  background: radial-gradient(120% 70% at 50% 0%, #fffaf0 0%, #fdf3e1 55%, var(--cream) 100%);
  overflow: hidden;
  padding-bottom: clamp(34px, 5vw, 56px);
}
.xs-hero-inner {
  display: grid;
  grid-template: 1fr / 1fr;
  width: min(1100px, 100%);
  margin-inline: auto;
}
.xs-art,
.xs-copy,
.xs-prizes {
  grid-area: 1 / 1;
}
.xs-art {
  display: block;
  /* Pushed down so the headline has clear space, and faded into the page on every side. */
  margin-top: 7.5%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.xs-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.xs-copy {
  position: relative;
  z-index: 1;
  align-self: start;
  text-align: center;
  padding: clamp(14px, 2vw, 26px) 20px 0;
}
.xs-lead-in {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font: 500 clamp(16px, 1.9vw, 22px) / 1.5 var(--serif);
  letter-spacing: 0.12em;
  color: var(--forest);
}
.xs-lead-in::before,
.xs-lead-in::after {
  content: "";
  width: 2px;
  height: 1.3em;
  background: var(--gold);
}
.xs-lead-in::before {
  transform: rotate(-28deg);
}
.xs-lead-in::after {
  transform: rotate(28deg);
}
.xs-hero h1 {
  margin-top: 6px;
  font-family: "Zen Old Mincho", var(--serif);
  font-weight: 900;
  color: var(--forest);
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.xs-h1-top {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
  font-size: clamp(22px, 3.7vw, 42px);
  white-space: nowrap;
}
.xs-h1-top strong {
  font-size: clamp(70px, 10.2vw, 114px);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
  padding: 0 0.08em 0.04em 0;
  color: var(--gold);
  background: linear-gradient(180deg, #f9e39a 0%, #e2b344 38%, #b47a16 62%, #8a5a10 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #fff) drop-shadow(0 6px 14px #a8741c40);
  transform-origin: center bottom;
  animation: xs-pop 0.9s var(--ease) both;
}
.xs-h1-top small {
  font-size: 0.62em;
  letter-spacing: -0.02em;
}
.xs-h1-bottom {
  display: block;
  margin-top: 0.06em;
  font-size: clamp(21px, 3.9vw, 44px);
  white-space: nowrap;
}
@keyframes xs-pop {
  from {
    opacity: 0;
    transform: scale(0.84) translateY(12px);
  }
  60% {
    opacity: 1;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.xs-tagline {
  display: inline-block;
  margin-top: clamp(6px, 0.9vw, 12px);
  padding-top: clamp(4px, 0.7vw, 9px);
  border-top: 2px solid var(--gold-soft);
  font: 500 clamp(14px, 1.75vw, 20px) / 1.6 var(--serif);
  letter-spacing: 0.14em;
  color: var(--forest);
}
.xs-prizes {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(8px, 1.4vw, 16px);
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  transform: translateY(42%);
}
.xs-prizes li {
  position: relative;
  padding: clamp(16px, 2.2vw, 24px) 8px clamp(8px, 1.2vw, 14px);
  text-align: center;
  background: linear-gradient(180deg, #fffdf8 0%, #fdf3df 100%);
  border: 1.5px solid #e2c27a;
  border-radius: 16px;
  box-shadow:
    0 10px 26px #8a5f1722,
    inset 0 0 0 3px #fffaf0;
}
.xs-rank {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -55%);
  padding: 2px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9e7a8 0%, #e8bf55 100%);
  color: #4a3508;
  font: 900 clamp(13px, 1.5vw, 17px) / 1.5 "Zen Old Mincho", var(--serif);
  white-space: nowrap;
}
.xs-prizes strong {
  display: block;
  font: italic 900 clamp(30px, 4.4vw, 46px) / 1.1 "Zen Old Mincho", var(--serif);
  letter-spacing: -0.02em;
  color: var(--gold-deep);
  white-space: nowrap;
}
.xs-prizes small {
  font-size: 0.5em;
  font-style: normal;
  color: var(--forest);
  letter-spacing: 0;
  margin-left: 2px;
}
.xs-prizes em {
  display: block;
  font: 500 clamp(13px, 1.7vw, 18px) / 1.4 var(--serif);
  font-style: normal;
  color: var(--forest);
}

/* About: a wide photo with the message set over its empty side. */
.xs-about {
  position: relative;
  display: grid;
  width: min(1100px, 100%);
  margin: 26px auto 0;
  overflow: hidden;
}
.xs-about-photo,
.xs-about-copy {
  grid-area: 1 / 1;
}
.xs-about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  aspect-ratio: 1344 / 500;
  object-fit: cover;
  object-position: 0 40%;
}
.xs-about-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  width: 58%;
  padding: 24px 9% 24px 0;
}
.xs-about-copy p {
  max-width: 31em;
}
@media (min-width: 1101px) {
  .xs-about {
    border-radius: 28px;
  }
}
.xs-about h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--forest);
}
.xs-about-copy p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink);
}

/* What the app does */
.xs-features {
  padding-block: 44px 8px;
}
.xs-rule-title {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: clamp(20px, 2.3vw, 26px);
  letter-spacing: 0.06em;
  color: var(--forest);
  white-space: nowrap;
}
.xs-rule-title::before,
.xs-rule-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 30%, var(--gold) 100%);
}
.xs-rule-title::after {
  transform: scaleX(-1);
}
.xs-feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
}
.xs-feature-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-inline: 22px;
}
.xs-feature-list li + li {
  border-left: 1.5px solid var(--gold-soft);
}
.xs-icon {
  flex: 0 0 88px;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffdf7, #f8ead0);
  box-shadow:
    0 8px 20px #8a5f171c,
    inset 0 0 0 1.5px #ecd49c;
}
.xs-icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xs-feature-list h3 {
  font: 900 26px/1.4 "Zen Old Mincho", var(--serif);
  color: var(--forest);
  letter-spacing: 0.06em;
}
.xs-feature-list p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}

/* How to enter */
.xs-entry {
  padding-block: 44px 20px;
  text-align: center;
  scroll-margin-top: 80px;
}
.xs-entry-panel {
  padding: 22px clamp(14px, 2.6vw, 30px) clamp(16px, 2.6vw, 30px);
  border-radius: 30px;
  background: linear-gradient(160deg, #1f5a3d 0%, #143f2b 55%, #0f3322 100%);
  box-shadow: 0 18px 40px #0f332233;
}
.xs-entry-panel h2 {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font: italic 900 clamp(22px, 2.8vw, 30px) / 1.3 "Zen Old Mincho", var(--serif);
  letter-spacing: 0.1em;
  color: #f6e3ab;
}
.xs-entry-panel h2 b {
  font-size: 1.5em;
  line-height: 1;
  margin-inline: 4px;
}
.xs-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
  margin-inline: auto;
  margin-top: 16px;
  padding: 18px 8px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf8, #fdf5e6);
}
.xs-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 18px;
}
.xs-steps li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  border-left: 1.5px solid var(--gold-soft);
}
.xs-steps li + li::after {
  content: "+";
  position: absolute;
  left: 0;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(160deg, #e3bb5a, #a8791f);
  color: #fff;
  font: 700 26px/1 var(--sans);
  box-shadow: 0 0 0 4px #fef9ef;
  transform: translate(-50%, -50%);
}
.xs-step-badge {
  position: absolute;
  left: 14px;
  top: 0;
  display: grid;
  place-items: center;
  align-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(160deg, #c79a3f, #8a5f17);
  color: #fff;
  font:
    900 24px/0.9 Georgia,
    serif;
}
.xs-step-badge small {
  font: 700 9px/1.2 var(--sans);
  letter-spacing: 0.08em;
}
.xs-step-icon {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xs-step-icon .xs-fill {
  fill: #fef9ef;
}
.xs-step-app {
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--forest);
}
.xs-steps h3 {
  margin-top: 10px;
  font: 700 clamp(17px, 2vw, 21px) / 1.4 var(--sans);
  color: var(--ink);
}
.xs-steps p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
.xs-steps a {
  color: var(--forest);
  text-underline-offset: 3px;
}
.xs-apply {
  width: min(520px, 100%);
  min-height: 64px;
  margin-top: 26px;
  gap: 14px;
  font: 700 clamp(18px, 2.3vw, 24px) / 1.3 var(--sans);
  letter-spacing: 0.08em;
  color: #fff8e4;
  background: linear-gradient(180deg, #23684a 0%, #124030 100%);
  border: 2.5px solid #e8c56a;
  box-shadow:
    0 12px 26px #0f33223d,
    inset 0 0 0 2px #0f332280;
}
.xs-apply:hover {
  background: linear-gradient(180deg, #2a7655 0%, #164a38 100%);
}
.xs-apply svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xs-period {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 22px;
  font:
    500 clamp(24px, 3.2vw, 34px) / 1.2 Georgia,
    serif;
  color: var(--forest);
}
.xs-period span {
  align-self: center;
  margin-right: 12px;
  padding: 5px 16px;
  border-radius: 8px;
  background: linear-gradient(160deg, #a67a2a, #7d5513);
  color: #fff;
  font: 700 14px/1.4 var(--sans);
  letter-spacing: 0.1em;
}
.xs-period small {
  font-size: 0.56em;
}
.xs-note {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.xs-note a {
  color: var(--forest);
  margin-left: 4px;
}
.xs-faq {
  padding-top: 56px;
}

@media (min-width: 801px) and (max-width: 1040px) {
  .xs-feature-list li {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding-inline: 16px;
  }
  .xs-icon {
    flex-basis: auto;
  }
}
@media (max-width: 800px) {
  /* Phones: headline, then the products, then the prizes, each in its own row. */
  .xs-hero-inner {
    grid-template: auto auto auto / 1fr;
  }
  .xs-copy {
    grid-area: 1 / 1;
    padding-top: 20px;
  }
  .xs-hero {
    padding-bottom: 8px;
  }
  .xs-art {
    grid-area: 2 / 1;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
    margin-top: 2px;
  }
  .xs-art img {
    aspect-ratio: 187 / 100;
  }
  .xs-prizes {
    grid-area: 3 / 1;
    margin: -14px auto 6px;
    transform: none;
  }
  .xs-about {
    margin-top: 30px;
  }
  .xs-about-photo,
  .xs-about-copy {
    grid-area: auto;
  }
  .xs-about-photo img {
    min-height: 0;
    max-height: 340px;
    aspect-ratio: 16 / 9;
    object-position: 0 35%;
  }
  .xs-about h2 {
    font-size: clamp(20px, 6.2vw, 30px);
  }
  .xs-about-copy p {
    max-width: 34em;
    margin-inline: auto;
  }
  .xs-about-copy {
    width: 100%;
    padding: 22px 24px 0;
    text-align: center;
  }
  .xs-feature-list {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 460px;
    margin-inline: auto;
  }
  .xs-feature-list li {
    padding: 16px 4px;
  }
  .xs-feature-list li + li {
    border-left: 0;
    border-top: 1.5px solid var(--gold-soft);
  }
  .xs-icon {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }
  .xs-icon svg {
    width: 38px;
    height: 38px;
  }
  .xs-steps {
    grid-template-columns: 1fr;
    padding: 6px 16px;
  }
  .xs-steps li {
    display: grid;
    grid-template-columns: 54px 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 16px 0;
    text-align: left;
  }
  .xs-steps li + li::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    border-left: 0;
    border-top: 1.5px solid var(--gold-soft);
  }
  .xs-steps li + li::after {
    left: 50%;
    top: 0;
    width: 30px;
    height: 30px;
    font-size: 21px;
  }
  .xs-step-badge {
    position: static;
    grid-row: 1 / 3;
  }
  .xs-step-icon {
    grid-row: 1 / 3;
    grid-column: 2;
  }
  .xs-steps h3 {
    grid-column: 3;
    margin-top: 0;
  }
  .xs-steps h3 br,
  .xs-steps p br {
    display: none;
  }
  .xs-steps p {
    grid-column: 3;
    margin-top: 2px;
  }
  .xs-note {
    text-align: left;
  }
}
@media (max-width: 540px) {
  .xs-download {
    padding-inline: 14px;
    font-size: 11px;
  }
  .xs-lead-in {
    letter-spacing: 0.06em;
    gap: 10px;
  }
  .xs-copy {
    padding-inline: 12px;
  }
  .xs-h1-top {
    font-size: clamp(18px, 5.4vw, 26px);
    gap: 0.14em;
  }
  .xs-h1-top strong {
    font-size: clamp(60px, 19vw, 92px);
  }
  .xs-h1-bottom {
    font-size: clamp(17px, 5.5vw, 27px);
    letter-spacing: 0;
  }
  .xs-step-icon {
    display: none;
  }
  .xs-steps li {
    grid-template-columns: 54px 1fr;
  }
  .xs-steps h3,
  .xs-steps p {
    grid-column: 2;
  }
  .xs-apply {
    min-height: 58px;
    padding-inline: 16px;
    gap: 8px;
    font-size: clamp(14px, 4.2vw, 18px);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .xs-period {
    display: block;
    font-size: 24px;
  }
  .xs-period span {
    display: table;
    margin: 0 auto 8px;
  }
  .xs-tagline {
    letter-spacing: 0.06em;
  }
  .xs-prizes {
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
    width: calc(100% - 32px);
  }
  .xs-prize-top {
    grid-column: 1 / -1;
  }
  .xs-prize-top strong {
    font-size: 44px;
  }
  .xs-entry-panel {
    border-radius: 22px;
    padding-inline: 12px;
  }
  .xs-rule-title {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .xs-h1-top strong {
    animation: none;
  }
}
