/* Christmas accents for the Tap to Start welcome only. */
#kioskWelcome .welcome-season-snow,
#kioskWelcome .welcome-season-holly {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
#kioskWelcome .welcome-season-holly::before,
#kioskWelcome .welcome-season-holly::after {
  content: "";
  position: absolute;
  inset: calc(env(safe-area-inset-top, 0px) + 3px) auto auto 3px;
  width: clamp(61px, 14vw, 168px);
  aspect-ratio: 1.17;
  background: url("/site/images/welcome-holly.svg") center / contain no-repeat;
  filter: drop-shadow(0 4px 6px #592e1a38);
}
#kioskWelcome .welcome-season-holly::after {
  left: auto;
  right: 3px;
  transform: scaleX(-1);
}
#kioskWelcome .welcome-season-snow > i {
  position: absolute;
  top: -50px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  background: url("/site/images/welcome-snowflake.svg") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px #51405880);
  opacity: var(--alpha, .8);
  animation: welcome-season-fall var(--duration) linear var(--delay) infinite;
}
#kioskWelcome .welcome-season-snow > i:nth-child(1) { --x: 4%; --duration: 16s; --delay: -5s; --size: clamp(20px, 3.3vw, 42px); }
#kioskWelcome .welcome-season-snow > i:nth-child(2) { --x: 12%; --duration: 22s; --delay: -14s; --size: clamp(15px, 2vw, 30px); --alpha: .58; }
#kioskWelcome .welcome-season-snow > i:nth-child(3) { --x: 21%; --duration: 19s; --delay: -7s; --size: clamp(17px, 2.8vw, 35px); }
#kioskWelcome .welcome-season-snow > i:nth-child(4) { --x: 31%; --duration: 23s; --delay: -18s; --size: 23px; --alpha: .56; }
#kioskWelcome .welcome-season-snow > i:nth-child(5) { --x: 64%; --duration: 20s; --delay: -10s; --size: 25px; --alpha: .61; }
#kioskWelcome .welcome-season-snow > i:nth-child(6) { --x: 76%; --duration: 19s; --delay: -13s; --size: clamp(17px, 2.9vw, 36px); }
#kioskWelcome .welcome-season-snow > i:nth-child(7) { --x: 86%; --duration: 24s; --delay: -7s; --size: clamp(14px, 2.1vw, 27px); --alpha: .64; }
#kioskWelcome .welcome-season-snow > i:nth-child(8) { --x: 94%; --duration: 16s; --delay: -10s; --size: clamp(19px, 3.2vw, 41px); }
@keyframes welcome-season-fall {
  from { transform: translate(-8px, 0) rotate(-20deg); }
  to { transform: translate(14px, calc(100vh + 105px)) rotate(130deg); }
}
.kiosk-stepwise #kioskWelcome #scoutWelcomeArt { position: relative; }
#kioskWelcome #scoutWelcomeArt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/site/images/welcome-scout-scarf.svg") center bottom / contain no-repeat;
  pointer-events: none;
}
#kioskWelcome #scoutWelcomeArt[data-welcome-pose="point"]::after { transform: translate(2%, -1.3%); }
#kioskWelcome #scoutWelcomeArt[data-welcome-pose="invite"]::after { transform: translate(5%, -1.7%) scale(.81, .92); }
/* One switch: data-welcome-season="christmas" hides the tagline. Remove it after the season. */
#kioskWelcome[data-welcome-season="christmas"] .welcome-season-tagline {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.kiosk-stepwise #kioskWelcome #welcomeTitle .welcome-season-greeting { display: none; }
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] #welcomeTitle .welcome-season-greeting {
  display: block;
  max-width: 100%;
  margin-block-start: clamp(8px, 1.5vh, 15px);
  padding: 0 8px;
  color: #29201c;
  font: 700 clamp(18px, 4.6vw, 28px)/1.15 system-ui, sans-serif;
  letter-spacing: .02em;
  text-transform: none;
}
@font-face {
  font-family: "BeeKings Thirsty";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ThirstyScript.otf") format("opentype");
}
#kioskWelcome .welcome-season-greeting > span { display: block; }
#kioskWelcome .welcome-season-greeting .welcome-season-kicker {
  color: #392c25;
  font: inherit;
  letter-spacing: .15em;
}
#kioskWelcome .welcome-season-greeting .welcome-season-main {
  margin: clamp(6px, 1.3vh, 14px) 0 0;
  color: #2d231e;
  font-family: "BeeKings Thirsty", "Brush Script MT", cursive;
  font-size: clamp(52px, 12vw, 104px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-shadow: 0 1px 0 #fff9ea;
}
#kioskWelcome .welcome-season-present { display: none; }
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] #kioskStart {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #782a3c;
  letter-spacing: 0;
  text-transform: none;
  overflow: visible;
  transform: none;
}
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] #kioskStart:is(:hover,:active,:focus,:focus-visible) {
  background: transparent;
  color: #782a3c;
  box-shadow: none;
  outline: none;
  text-decoration: none;
}
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] #kioskStart::before,
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] #kioskStart::after { content: none; animation: none; }
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .kiosk-start-label { display: none; }
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .welcome-season-present {
  display: block;
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 628 / 436;
  margin: 0 auto;
  padding: 0;
  transform-origin: 50% 42%;
  animation: welcome-bow-sway 3.4s ease-in-out infinite;
}
/* Keep Chris's bow and tag; replace only the assembled straight runs to remove the joins. */
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] :is(.welcome-season-band, .welcome-season-bow) {
  position: absolute;
  display: block;
  width: calc(100% * 4228 / 628);
  max-width: none;
  left: calc(100% * -1800 / 628);
  top: calc(100% * -1200 / 436);
}
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .welcome-season-band {
  z-index: 0;
  aspect-ratio: 4228 / 2836;
  background: url("/site/images/welcome-ribbon-satin.svg") center / contain no-repeat;
  clip-path: polygon(0 89.50%, 100% 1.86%, 100% 4.20%, 0 91.90%);
}
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .welcome-season-bow {
  z-index: 1;
  height: auto;
  pointer-events: none;
}
body[data-input-mode="keyboard"].kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] #kioskStart:focus-visible .welcome-season-gift-tag {
  outline: 2px solid #652139;
  outline-offset: 5px;
  border-radius: 2px;
}
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .welcome-season-gift-tag {
  position: absolute;
  z-index: 2;
  left: 77.1%;
  top: 73%;
  color: #682737;
  font: 700 clamp(12px, 3.1vw, 20px)/1 system-ui, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-46%, -50%) rotate(29deg);
}
@keyframes welcome-bow-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(0.7deg); }
}
@media (max-width: 600px) {
  .website-preview.kiosk-stepwise #kioskWelcome > .scout-welcome {
    top: 29.5%;
    left: calc(clamp(-180px, -30vw, -110px) + 6px);
  }
  #kioskWelcome .welcome-season-greeting .welcome-season-main { font-size: clamp(47px, 13vw, 75px); }
  #kioskWelcome .welcome-season-greeting .welcome-season-kicker { letter-spacing: .12em; }
  #kioskWelcome .welcome-season-snow > i:nth-child(4),
  #kioskWelcome .welcome-season-snow > i:nth-child(5) { display: none; }
  #kioskWelcome .welcome-season-snow > i:nth-child(3) { left: 7%; }
  #kioskWelcome .welcome-season-snow > i:nth-child(6) { left: 88%; }
}
@media (max-height: 550px) {
  #kioskWelcome .welcome-season-holly::before,
  #kioskWelcome .welcome-season-holly::after { width: clamp(58px, 10vw, 96px); }
  .kiosk-stepwise #kioskWelcome #welcomeTitle .welcome-season-greeting { font-size: 18px; margin-block-start: 0; }
  #kioskWelcome .welcome-season-greeting .welcome-season-main { font-size: clamp(43px, 10vw, 57px); }
}
@media (prefers-reduced-motion: reduce) {
  #kioskWelcome .welcome-season-snow { display: none; }
  #kioskWelcome .welcome-season-snow > i,
  .kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .welcome-season-present { animation: none; }
}
@media (orientation: landscape) and (min-width: 700px) and (max-height: 540px) {
  .website-preview.kiosk-stepwise #kioskWelcome .kiosk-welcome-inner {
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  #kioskWelcome .welcome-season-greeting .welcome-season-main { font-size: 50px; }
  .kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .welcome-season-present { width: min(70%, 360px); margin-top: 0; }
}

/* A little more snow, with warm-white powder between the drawn flakes. */
#kioskWelcome .welcome-season-snow > b {
  position: absolute;
  top: -14px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #5b4a3e52;
  opacity: var(--alpha, .86);
  animation: welcome-season-powder var(--duration) linear var(--delay) infinite;
}
#kioskWelcome .welcome-season-snow > b:nth-of-type(1) { --x: 2%; --duration: 14s; --delay: -9s; --size: 10px; }
#kioskWelcome .welcome-season-snow > b:nth-of-type(2) { --x: 8%; --duration: 18s; --delay: -6s; --size: 5px; --alpha: .7; }
#kioskWelcome .welcome-season-snow > b:nth-of-type(3) { --x: 14%; --duration: 13s; --delay: -3s; --size: 8px; }
#kioskWelcome .welcome-season-snow > b:nth-of-type(4) { --x: 19%; --duration: 17s; --delay: -13s; --size: 6px; }
#kioskWelcome .welcome-season-snow > b:nth-of-type(5) { --x: 24%; --duration: 20s; --delay: -9s; --size: 9px; --alpha: .7; }
#kioskWelcome .welcome-season-snow > b:nth-of-type(6) { --x: 31%; --duration: 16s; --delay: -7s; --size: 5px; }
#kioskWelcome .welcome-season-snow > b:nth-of-type(7) { --x: 67%; --duration: 19s; --delay: -18s; --size: 6px; }
#kioskWelcome .welcome-season-snow > b:nth-of-type(8) { --x: 76%; --duration: 14s; --delay: -4s; --size: 9px; --alpha: .7; }
#kioskWelcome .welcome-season-snow > b:nth-of-type(9) { --x: 82%; --duration: 17s; --delay: -12s; --size: 5px; }
#kioskWelcome .welcome-season-snow > b:nth-of-type(10) { --x: 88%; --duration: 16s; --delay: -8s; --size: 8px; }
#kioskWelcome .welcome-season-snow > b:nth-of-type(11) { --x: 93%; --duration: 21s; --delay: -15s; --size: 6px; --alpha: .7; }
#kioskWelcome .welcome-season-snow > b:nth-of-type(12) { --x: 98%; --duration: 13s; --delay: -11s; --size: 10px; }
@keyframes welcome-season-powder {
  0% { transform: translateX(-4px); }
  45% { transform: translate(8px, 48vh); }
  74% { transform: translate(-2px, 80vh); }
  100% { transform: translate(10px, calc(100vh + 28px)); }
}
#kioskWelcome .welcome-season-greeting .welcome-season-end {
  margin-block-start: clamp(4px, .9vh, 9px);
  color: #392c25;
  font: inherit;
  letter-spacing: .15em;
}
@media (max-width: 600px) {
  #kioskWelcome .welcome-season-snow > b:nth-of-type(5),
  #kioskWelcome .welcome-season-snow > b:nth-of-type(6),
  #kioskWelcome .welcome-season-snow > b:nth-of-type(7) { display: none; }
}
@media (max-height: 550px) {
  #kioskWelcome .welcome-season-greeting .welcome-season-end { margin-block-start: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  #kioskWelcome .welcome-season-snow > b { animation: none; }
}

/* Size the illustrated box independently of the extra line in the title. */
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .kiosk-welcome-art {
  --welcome-art-size: min(104cqw, calc(100cqh / .61), 555px);
}
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .kiosk-attract-box {
  top: calc(50% - var(--welcome-art-size) * .335);
}
@media (max-width: 600px) {
  #kioskWelcome .welcome-season-greeting .welcome-season-end { letter-spacing: .12em; }
  .kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .kiosk-welcome-art {
    --welcome-art-size: min(104cqw, calc(100cqh / .65), 450px);
  }
}
@media (max-height: 550px) {
  .kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] #welcomeTitle .welcome-season-greeting {
    font-size: clamp(15px, 3.4vw, 18px);
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .kiosk-welcome-art {
    --welcome-art-size: min(100cqw, calc(100cqh / .67), 450px);
  }
}

/* Give the fully open lid clearance below the matching captions. The gift
   tag stays attached to the ribbon, with safe space at the bottom. */
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] #welcomeTitle .welcome-season-greeting {
  margin-block-start: clamp(4px, .65vh, 8px);
}
.kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .welcome-season-present {
  rotate: 15deg;
  scale: .86;
  translate: 0 -17px;
}
@media (max-width: 600px) {
  .kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .welcome-season-present {
    rotate: 12deg;
    scale: .88;
    translate: 0 -9px;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .kiosk-stepwise #kioskWelcome[data-welcome-season="christmas"] .welcome-season-present {
    rotate: 8deg;
    scale: .92;
    translate: 0 -5px;
  }
}
