/* A bright snowy village, with cranberry red and evergreen accents. */
:root{color-scheme:light;--navy:#f5fbfd;--panel:#fff;--ink:#183f48;--soft:#4f6c73;--red:#cf3344;--gold:#b12e40;--line:#b8d3db88;--title:Fredoka,Nunito,system-ui,sans-serif}
body{background:#f6fbfd;color:var(--ink)}
h1,h2,h3{font-weight:600;letter-spacing:-.8px}.hero{height:940px;min-height:850px;background:#d8f2ff}.fallback-sky{background-image:url('assets/village-day.png');background-position:center center;background-size:cover}.scrim{z-index:0;background:linear-gradient(90deg,#f5fcffe8 0%,#f5fcffb8 26%,#f5fcff00 57%),linear-gradient(0deg,#f6fbfd 0%,#f6fbfd00 15%)}
.nav{height:94px;color:#184b51}.brand{font-family:Fredoka,Nunito,sans-serif;font-size:28px}.brand small{color:#4e6b71;font-size:9px}.nav nav{background:#ffffffb8;padding:12px 20px;border:1px solid #fff;border-radius:40px;backdrop-filter:blur(12px)}.nav a:hover{color:#b82739}.sound{background:#ffffffc9;border-color:#a9cbd4;color:#28555f}.sound[aria-pressed=true]{background:#dfefdf;color:#1f694c;border-color:#72a48c}.hero-content{padding-top:90px}.hero-copy{max-width:545px;width:46%}.hero h1{font-size:66px;line-height:1.04;letter-spacing:-1.8px;color:#184951;text-shadow:0 2px 16px #fff8}.hero h1 em{color:#c63043}.hero-intro{font-size:18px;color:#355e68;max-width:405px;margin-top:22px}.place-chip{background:#ffffffe8;border-color:#a9c6cf;color:#276353;font-size:12px;box-shadow:0 3px 12px #3a7c8910}.countdown{gap:10px;margin-top:25px}.countdown>div,.countdown>div:first-child{background:#ffffffd9;padding:10px 11px 8px;border:1px solid white;border-radius:13px;box-shadow:0 5px 14px #2357770c;text-align:center;min-width:69px}.countdown strong{font-family:Fredoka,sans-serif;font-weight:500;font-size:42px;color:#214e58;letter-spacing:0}.countdown span{color:#55727b;font-size:10px;letter-spacing:1px;margin-top:5px}.countdown>b{color:#7098a5;margin-top:12px}.count-note{color:#4d6c76;font-size:13px}.hero-actions .button{font-size:15px;box-shadow:0 5px 20px #36586214}.secondary{background:#ffffffed;color:#195d4c;border-color:#b1c8be;backdrop-filter:blur(8px)}.secondary:hover{background:#e7f5eb}.small-invitation{color:#4e7178}.hero-bottom{color:#325864}.hero-bottom button{background:#ffffffd9;color:#315e67;border:1px solid #c1dbe2;font-size:12px}.scroll-dot{border-color:#5695a5}.scroll-dot:after{background:#b82c40}
.village-flight{position:absolute;top:0;left:0;aspect-ratio:2.25;z-index:0;pointer-events:none;will-change:transform;filter:drop-shadow(0 15px 14px #31577525)}.flight-frame{width:100%;height:100%;background:url('assets/flight.png') 0 0/200% 300%;background-repeat:no-repeat}
.village-life{position:absolute;inset:0;pointer-events:none;z-index:2}.village-life a,.village-life button{pointer-events:auto}.village-door{position:absolute;background:#fff8f0f2;border:2px solid #fff;border-radius:30px;padding:9px 17px;box-shadow:0 6px 20px #67432e33;color:#84402e;font:600 15px Fredoka,Nunito,sans-serif;transition:transform .2s}.village-door:after{content:'';position:absolute;left:50%;bottom:-8px;width:13px;height:13px;background:#fff8f0;transform:rotate(45deg);border:solid white;border-width:0 2px 2px 0}.village-door:hover{transform:translateY(-5px);background:white}.workshop-door{right:12%;top:53%}.game-door{right:31%;top:75%}.elf{position:absolute;display:block;width:83px;height:166px;padding:0;filter:drop-shadow(0 6px 4px #45647725);transform-origin:50% 95%}.elf-sprite{display:block;width:100%;height:100%;background:url('assets/elves.png') 0 50%/300% 100% no-repeat}.elf-delivery .elf-sprite{animation:elfstep .45s ease-in-out infinite}.elf-skater{left:24%;top:75%;width:75px;height:150px;animation:skate 12s ease-in-out infinite}.elf-skater .elf-sprite{background-position:50% 50%;transform:rotate(-7deg)}.elf-guide{right:9%;top:69%;width:96px;height:192px;animation:elfhello 3.2s ease-in-out infinite}.elf-guide .elf-sprite{background-position:100% 50%}.elf-invitation{position:absolute;top:-3px;right:-26px;background:white;border:1px solid #c6dde4;padding:2px 9px;border-radius:20px;font:600 14px Fredoka;color:#bf2f40}.elf-message{position:absolute;right:6%;bottom:29%;max-width:255px;background:#fff;border:1px solid #cbdfe5;box-shadow:0 12px 30px #184b6320;border-radius:18px 18px 0 18px;padding:17px 19px;color:#245460;font-size:15px;line-height:1.5;pointer-events:auto}.elf-message[hidden]{display:none}

@keyframes elfstep{50%{transform:translateY(-4px) rotate(2deg)}}
@keyframes skate{0%,100%{transform:translate(0,0) rotate(-6deg)}45%{transform:translate(150px,-20px) rotate(7deg)}50%{transform:translate(150px,-20px) scaleX(-1)}95%{transform:translate(0,0) scaleX(-1)}}
@keyframes elfhello{0%,100%{transform:rotate(-3deg)}50%{transform:translateY(-5px) rotate(3deg)}}
.hero[data-paused=true] .elf,.hero[data-paused=true] .elf-sprite{animation-play-state:paused}
.eyebrow{color:#a43843;font-size:12px;letter-spacing:1.6px}.section-heading>p{color:#56737d}.experience{background:white;border-color:#c9dfe5;box-shadow:0 7px 22px #2e677312}.experience:hover{border-color:#8ebdb4}.experience-text .eyebrow{color:#a43c42;font-size:10px}.experience p{color:#526e77;font-size:16px}.quiet-link{color:#216c50;border-color:#9bbfae}.game-card .quiet-link{color:#b53041;border-color:#e2b1b8}.game-card{border-color:#e6c7ce}.world-section{background:radial-gradient(ellipse at 70% 15%,#fff 0%,#e7f6fc 65%);border-color:#d0e7ef}.section-description,.country,.route-clock>span,.route-header,.route-stop small,.route-stop time{color:#4b6d7c}.world-detail>p{color:#476473}.world-detail .button{font-size:14px}.text-button{color:#246d51;border-color:#7cae98}.route-header button{color:#315e6d;background:#fff;border-color:#c0dbe4;font-size:13px}.route-track{scrollbar-color:#91bcc9 #d9eef4}.route-stop:before{background:#9dc4cf}.route-stop .dot{background:#d6eaf0;border-color:#6d98a5}.route-stop b{color:#345d6b}.route-stop[aria-pressed=true] b{color:#bc2d41}.route-stop:hover b{color:#166e4e}.route-note{color:#5a7885}.north-art{filter:none}.north-copy p:not(.eyebrow):not(.fine){color:#4e6c75}.north-copy strong{color:#24684e}.north-caption,.preview-caption{color:white}.fine{color:#647c86!important}.game-section{background:#eaf4ee;border-color:#d1e4d8}.game-copy>p:not(.eyebrow){color:#46665e}.game-features span{color:#3f6f5c;border-color:#adc7b8;background:#ffffff99;font-size:12px}.controls{color:#58776a;font-size:12px}kbd{background:#fff;border-color:#b4cdc0;color:#305d49}.share-section{background:transparent}.share-star{color:#c73646}.share-section p{color:#54717b}footer{color:#607c87;border-color:#c2dbe2}.footer-brand{color:#285762}dialog{background:#f7fcff;color:#234d5a;border-color:#bed7e1}dialog::backdrop{background:#164e666e}.close,dialog .muted{color:#527883}input,select{background:white;color:#234d5a;border-color:#abc9d5}input::placeholder{color:#76919d}.select-wrap:after{border-color:#446b7b}.city-results button{background:white;border-color:#c9dee6}.city-results button:hover{background:#e6f6ee;border-color:#78a88e}.city-results small,.divider{color:#587a86}
@media(min-width:1500px){.hero-content{padding-top:105px}.hero{height:980px}}
@media(max-width:1100px){.hero h1{font-size:57px}.hero-copy{width:49%}.hero-actions .button{font-size:13px;padding-inline:14px}.hero-intro{font-size:16px}.countdown{gap:5px}.countdown>div,.countdown>div:first-child{min-width:59px;padding-inline:8px}.countdown strong{font-size:36px}.workshop-door{right:7%}.game-door{right:26%}}
@media(max-width:760px){.hero{height:1050px;min-height:1050px}.nav{height:82px}.brand{font-size:22px}.brand small{font-size:7px}.sound{font-size:12px}.hero-content{padding-top:33px}.hero-copy{width:100%;max-width:510px}.hero h1{font-size:47px;max-width:360px;letter-spacing:-1px}.hero-intro{max-width:330px;font-size:16px}.hero-intro br{display:none}.countdown{gap:6px}.countdown>div,.countdown>div:first-child{min-width:57px;padding:9px 8px}.countdown strong{font-size:35px}.count-note{font-size:12px}.hero-actions .button{font-size:13px}.fallback-sky{background-size:auto 700px;background-position:64% bottom;background-repeat:no-repeat;background-color:#dff5ff}.scrim{background:linear-gradient(#eaf9ff 0%,#eaf9ffdd 37%,#eaf9ff00 56%,#f6fbfd00 94%,#f6fbfd 100%)}.place-chip{font-size:11px}.hero-bottom{bottom:13px;font-size:10px}.hero-bottom button{font-size:10px}.village-door{font-size:12px;padding:8px 12px}.workshop-door{right:5%;top:67%}.game-door{right:auto;left:5%;top:83%}.elf-skater{left:10%;top:87%;width:48px;height:96px;animation-name:skatemobile}.elf-guide{right:5%;top:82%;width:66px;height:132px}.elf-message{right:5%;bottom:20%;font-size:14px;max-width:230px}.elf-invitation{font-size:12px;right:-6px;top:-17px}.world-detail .button{font-size:12px}.world-section .eyebrow{font-size:11px}}

@keyframes skatemobile{0%,100%{transform:translate(0,0) rotate(-6deg)}45%{transform:translate(70px,-10px) rotate(7deg)}50%{transform:translate(70px,-10px) scaleX(-1)}95%{transform:translate(0,0) scaleX(-1)}}
@media(prefers-reduced-motion:reduce){.hero[data-paused=false] .elf{animation-play-state:running}.hero[data-paused=false] .elf-sprite{animation-play-state:running}}

/* Use the same canvas and crop as the village illustration.
   Anchor the elf's boots to the cobbles between the workshop and the lamp. */
.village-life { container-type: size; }
.delivery-map {
  position: absolute;
  width: max(100cqw, 150cqh);
  aspect-ratio: 3 / 2;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.delivery-map .elf-delivery {
  width: 4.2%; height: auto; aspect-ratio: 1 / 2;
  left: 65.4%; top: 73.6%;
  transform: translate(-50%, -100%);
  animation: workshop-path 11s ease-in-out infinite;
}
@keyframes workshop-path {
  0%, 100% { left: 65.4%; top: 73.6%; transform: translate(-50%, -100%); }
  43%, 48% { left: 62.5%; top: 69%; transform: translate(-50%, -100%); }
  49%, 53% { left: 62.5%; top: 69%; transform: translate(-50%, -100%) scaleX(-1); }
  95%, 99% { left: 65.4%; top: 73.6%; transform: translate(-50%, -100%) scaleX(-1); }
}
@media (max-width: 760px) {
  .delivery-map {
    width: 1050px; left: 64%; top: auto; bottom: 0;
    transform: translateX(-64%);
  }
}
