/* The home page is a Christmas campaign. Gift recipients still see their own world. */
body[data-mode="home"] { background: #3d101c; }
body[data-mode="home"] .shell { background: #f8ead4; border-color: #97304170; }
#home {
  background: #f8ead4;
  color: #392027;
}

.holiday-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'copy' 'scene' 'actions';
  color: var(--holiday-paper);
  padding: 21px 22px 22px;
  overflow: hidden;
  background: #751328;
}
.holiday-hero::before,
.holiday-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.holiday-hero::before {
  z-index: -2;
  background:
    linear-gradient(180deg, #7b1528 0%, #831727e3 11%, #3d253236 31%, transparent 45%, transparent 64%, #581023e5 88%, #5b1123 100%),
    url('./assets/images/world-classic.webp?v=20261117') center 48% / cover no-repeat;
}
.holiday-hero::after {
  z-index: -1;
  background: radial-gradient(ellipse at 48% 50%, #efad6016, transparent 57%),
    linear-gradient(90deg, #2f152225, transparent 36%, transparent 64%, #2f152225);
}
.holiday-copy { grid-area: copy; z-index: 1; text-align: center; }
.holiday-copy h1 {
  margin: 0;
  color: var(--holiday-paper);
  font: 700 clamp(37px, 12vw, 61px)/.99 var(--holiday-display);
  letter-spacing: -.068em;
  text-shadow: 0 2px 17px #4b061a60;
  text-wrap: balance;
}
.holiday-copy p {
  max-width: 31ch;
  margin: 10px auto 0;
  color: #ffe9cf;
  font-size: 14px;
  line-height: 1.4;
  text-wrap: pretty;
}
.holiday-scene {
  grid-area: scene;
  display: grid;
  place-items: center;
  position: relative;
  height: clamp(223px, 39vh, 320px);
  height: clamp(223px, 39svh, 320px);
  margin: 8px -4px 7px;
}
.holiday-scene::before {
  content: '';
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 6%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffc38169, #f0a05416 50%, transparent 74%);
  pointer-events: none;
}
.holiday-present {
  border: 0;
  background: transparent;
  padding: 0;
  width: min(100%, 382px);
  height: 100%;
  position: relative;
  border-radius: 28px;
  isolation: isolate;
}
.holiday-present::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 20%;
  right: 20%;
  bottom: 8%;
  height: 9%;
  border-radius: 50%;
  background: #240b19b5;
  filter: blur(13px);
  pointer-events: none;
}
#hero-gift,
#hero-gift .photo-wrap { display: block; width: 100%; height: 100%; pointer-events: none; }
#hero-gift .photo-wrap { transform-origin: 50% 86%; animation: parcel-knocks 6.4s .30s ease-in-out infinite; }
#hero-gift .gift-photo {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 13px 14px #21060e7d);
  transform: scale(1.09);
  transform-origin: center 82%;
}
/* Two small knocks, then stillness. The parcel stays planted on the snow. */
@keyframes parcel-knocks {
  0%, 12%, 39%, 100% { transform: translate(0, 0) rotate(0); }
  15% { transform: translate(-1px, 0) rotate(-1.55deg); }
  18% { transform: translate(.7px, 0) rotate(.9deg); }
  21%, 25% { transform: translate(0, 0) rotate(0); }
  28% { transform: translate(1.1px, -1px) rotate(2.35deg); }
  31% { transform: translate(-.5px, 0) rotate(-1.35deg); }
  35% { transform: translate(0, 0) rotate(.45deg); }
}

.holiday-actions { grid-area: actions; width: 100%; max-width: 408px; margin: 0 auto; }
.holiday-choices { display: grid; grid-template-columns: 1.24fr 1fr; gap: 9px; }
.holiday-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 50px;
  padding: 9px 8px;
  border: 1px solid #ffebc9bb;
  border-radius: 12px;
  font: 800 13px/1.12 Arial, sans-serif;
  letter-spacing: .035em;
  box-shadow: 0 3px 0 #32091566, 0 9px 17px #350b1a45;
  transition: transform .13s ease, background-color .15s ease;
}
.holiday-choice:active, .holiday-company-more:active { transform: translateY(2px); }
.holiday-choice-main { color: #65121e; background: linear-gradient(#fff1d4, #f6d899); }
.holiday-choice-main small { flex: none; color: #751d29; font-size: 11px; }
.holiday-choice-try { color: #fff3da; background: #6a1027d9; }
.holiday-play { width: 0; height: 0; border-left: 8px solid var(--holiday-gold); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.holiday-price { color: #f4cdaf; text-align: center; font-size: 11px; line-height: 1.35; margin: 10px 0 7px; }
.holiday-company-link {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  border: 0;
  border-top: 1px solid #fac18444;
  color: #fce3c3;
  text-align: left;
  background: transparent;
}
.holiday-company-link strong { font-size: 11px; letter-spacing: .035em; }
.holiday-company-link small { color: #f2c9ac; font-size: 11px; line-height: 1.3; }
.holiday-company-link > span { font-size: 26px; line-height: .8; padding-right: 4px; color: var(--holiday-gold); }
#home :is(button, a):focus-visible { outline-color: #ffcf7f; }

#home .world-collection { padding: 31px 22px 28px; background: #f9ecd8; border-color: #92412a28; }
#home .collection-heading h2,
#home .holiday-business h2 {
  color: #6d1829;
  margin: 0;
  font: 700 clamp(27px, 7vw, 40px)/1.06 var(--holiday-display);
  letter-spacing: -.041em;
}
#home .collection-copy { font-size: 13px; color: #664939; margin-top: 9px; }
#home .world-grid-home { margin-top: 18px; gap: 11px; }
#home .world-card { background: #71182a; border-color: #b865567a; box-shadow: 0 4px 0 #7e2b1d1c, 0 9px 15px #55201628; }
#home .world-art {
  height: clamp(110px, 34vw, 151px);
  background-image: linear-gradient(180deg, transparent 63%, #160f1d45 100%), var(--world-art);
}
#home .world-art img { transform: rotate(0); }
#home .world-card:hover .world-art img { transform: translateY(-3px); }
#home .world-caption { padding: 11px 10px 13px; }
#home .world-caption strong { font: 700 16px/1.1 var(--holiday-display); color: #fff0d9; letter-spacing: -.022em; }
#home .world-card-action { font-size: 9px; margin-top: 9px; color: #ffdcaa; }
#home .world-card:focus-visible { outline-color: #9b2636; }

#home .gift-steps { padding: 22px 22px 30px; gap: 16px; background: #fff4df; border-top: 1px solid #9c421d23; }
#home .gift-steps article > span { background: #f4d8ad; border-color: #ad692341; color: #741b2a; font-style: normal; }
#home .gift-steps h3 { color: #6d1829; font: 700 18px/1.15 var(--holiday-display); }
#home .gift-steps article p, #home .gift-extra-note { color: #664939; font-size: 13px; line-height: 1.45; }
#home .gift-extra-note { background: #fcebd1; border-color: #b47a4338; }
.holiday-business {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 33%;
  gap: 7px;
  overflow: hidden;
  padding: 26px 20px;
  background: radial-gradient(ellipse at 85% 26%, #ae412c76, transparent 67%), #6b1627;
  color: #ffefcf;
}
#home .holiday-business h2 { color: #fff0d2; font-size: clamp(23px, 6.4vw, 36px); }
.holiday-business p { font-size: 13px; line-height: 1.45; color: #ffdec1; margin: 9px 0 12px; }
.holiday-company-more { min-height: 44px; color: #641a24; background: #f5d6a5; padding: 9px 11px; border: 0; border-radius: 8px; font: 800 10px Arial, sans-serif; letter-spacing: .035em; }
.holiday-business small { display: block; margin-top: 8px; font-size: 11px; color: #f2ccae; }
.holiday-business-gift { display: block; align-self: center; height: 142px; rotate: 6deg; }
#home .notice { margin: 0; padding: 22px; color: #795344; background: #f8ead4; }

@media (max-width: 360px) {
  .holiday-hero { padding: 17px 16px 15px; }
  .holiday-copy p { font-size: 13px; }
  .holiday-scene { height: clamp(199px, 37svh, 246px); margin-bottom: 5px; }
  .holiday-choice { font-size: 12px; min-height: 48px; }
  .holiday-company-link strong, .holiday-company-link small { font-size: 10px; }
}
@media (min-width: 840px) {
  body[data-mode="home"] .shell { width: calc(100% - 62px); max-width: 1080px; }
  body[data-mode="home"] .app-header { padding-inline: 40px; }
  .holiday-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-rows: auto auto;
    grid-template-areas: 'copy scene' 'actions scene';
    align-items: center;
    align-content: center;
    min-height: 515px;
    gap: 18px 22px;
    padding: 44px 50px;
  }
  .holiday-hero::before {
    background:
      linear-gradient(90deg, #791627 0%, #781328ee 22%, #4d243950 47%, transparent 64%, #3a192733 100%),
      linear-gradient(180deg, #7318276b, transparent 44%, #5b1123 100%),
      url('./assets/images/world-classic.webp?v=20261117') center 45% / cover no-repeat;
  }
  .holiday-copy, .holiday-price { text-align: left; }
  .holiday-copy h1 { font-size: clamp(55px, 6.6vw, 88px); }
  .holiday-copy p { margin-left: 0; font-size: 16px; }
  .holiday-actions { margin: 0; }
  .holiday-scene { height: 410px; margin: 0; }
  .holiday-present { width: 100%; max-width: 465px; }
  #home :is(.world-collection, .gift-steps) { padding: 38px 50px; }
  #home .world-grid-home { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  #home .world-art { height: 165px; }
  #home .gift-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #home .gift-extra-note { grid-column: 1 / -1; }
  .holiday-business { padding: 30px 50px; }
  .holiday-business-gift { height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  #hero-gift .photo-wrap { animation: none; }
  #home :is(.holiday-choice, .world-card, .world-art img) { transition: none; }
}
