:root {
  color-scheme: light;
  -webkit-tap-highlight-color: transparent;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  position: fixed;
  inset: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #a8c4d5;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}
.world, .world__image, .world__glow, .world__snow, .world__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.world {
  background: linear-gradient(155deg,#16233a 8%,#485678 51%,#9bb3c4 100%);
}
.world__image {
  background: url('../assets/winter.svg') center 61% / cover no-repeat;
  transform: scale(1.025);
}
.world__glow {
  background: radial-gradient(ellipse at 50% 70%, rgba(255,196,116,.16), transparent 44%);
  animation: glow 9s ease-in-out infinite alternate;
}
.world__vignette {
  box-shadow: inset 0 0 150px rgba(9,24,46,.15);
}
.world__snow span {
  position: absolute;
  top: -5%;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255,250,233,var(--opacity));
  filter: blur(var(--blur));
  animation: snowfall var(--duration) linear var(--delay) infinite;
  will-change: transform;
}
.frost {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 2;
  touch-action: none;
  cursor: crosshair;
}
.hint {
  position: absolute;
  z-index: 3;
  top: max(calc(env(safe-area-inset-top, 0px) + 36px), 42px);
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  max-width: calc(100vw - 28px);
  padding: 14px 19px 15px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(246,251,255,.79);
  color: #39556b;
  box-shadow: 0 10px 44px rgba(57,83,117,.12), inset 0 1px rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  font-size: clamp(13px, 3.7vw, 16px);
  font-weight: 500;
  letter-spacing: .005em;
  pointer-events: none;
  text-align: center;
  transition: opacity .75s ease, transform .75s ease;
}
.hint__sparkle { display: inline-flex; width: 21px; height: 21px; flex-shrink: 0; color: #638db4; }
.hint__sparkle svg { width: 100%; height: 100%; }
.hint.is-hidden { opacity: 0; transform: translate(-50%, -12px); }
@keyframes snowfall {
  from { transform: translate3d(0, -7vh, 0); }
  to { transform: translate3d(var(--drift), 112vh, 0); }
}
@keyframes glow { from { opacity: .58; } to { opacity: 1; } }
@media (min-width: 850px) {
  .world__image { background-position: center 72%; }
  .hint { top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .world__snow span, .world__glow { animation: none; }
  .hint { transition: none; }
}
