/* Snowhearth: working name. Search and replace it everywhere when you pick the final one.
   Layout idea: left-aligned editorial hero on a spruce-green night, with the product itself (a window you can
   dig snow out of) as the hero image. Cranberry is the one loud colour and it only marks the buy button. */

:root {
  --bg: #061a1b;
  --bg-2: #0a2a2c;
  --panel: #0d3033;
  --line: rgba(190, 230, 240, 0.14);
  --ink: #eaf6f7;
  --muted: #9bb8bb;
  --ice: #bfe6ff;
  --berry: #d93258;
  --berry-hi: #ee4a70;
  --gold: #ffd36e;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

#page-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
a { color: var(--ice); }
a:focus-visible, button:focus-visible, .door:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Nav */
nav.top {
  position: sticky;
  top: 12px;
  z-index: 5;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 26, 27, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { font: 700 21px var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 26px; height: 26px; }
nav.top .links { display: flex; gap: 22px; }
nav.top .links a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.top .links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font: 600 16px var(--font-body);
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--berry);
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--berry-hi); transform: translateY(-1px); }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.92; }
.btn[disabled] { cursor: default; opacity: 0.75; transform: none; background: var(--berry); }
.btn.small { padding: 10px 18px; font-size: 14px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
  padding-block: 70px 40px;
}
.eyebrow { font-size: 14px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ice); margin-bottom: 20px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--ice); }
.hero p.lede { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--muted); }

.stage-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
#stage { display: block; width: 100%; height: auto; aspect-ratio: 620 / 420; touch-action: none; cursor: crosshair; }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.stage-bar .chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font: 500 14px var(--font-body);
  cursor: pointer;
}
.stage-bar .chip[aria-pressed="true"] { background: var(--ice); color: #06222b; border-color: var(--ice); }
.stage-bar .hint { margin-left: auto; }

/* Sections */
section { padding-block: 70px; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

.toys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.toy {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.toy .art { position: relative; height: 210px; overflow: hidden; background: #04141a; }
.toy .body { padding: 18px 20px 22px; }
.toy h3 { font-size: 22px; font-weight: 700; }
.toy p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* Aurora */
.aurora .blob { position: absolute; left: -20%; width: 140%; height: 80px; filter: blur(22px); opacity: 0.75; border-radius: 50%; animation: drift 9s ease-in-out infinite alternate; }
.aurora .b1 { top: 28px; background: linear-gradient(90deg, #17ffa0, #19d3d8, #6a63ff); }
.aurora .b2 { top: 70px; background: linear-gradient(90deg, #6a63ff, #17ffa0, #a24dff); animation-duration: 12s; animation-delay: -4s; }
.aurora .b3 { top: 108px; background: linear-gradient(90deg, #19d3d8, #b94dff, #17ffa0); animation-duration: 15s; opacity: 0.45; }
.aurora .stars { position: absolute; inset: 0; background:
  radial-gradient(1.5px 1.5px at 12% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 30% 60%, #fff, transparent),
  radial-gradient(1px 1px at 55% 25%, #fff, transparent), radial-gradient(1.5px 1.5px at 72% 70%, #fff, transparent),
  radial-gradient(1px 1px at 88% 30%, #fff, transparent), radial-gradient(1px 1px at 44% 85%, #fff, transparent); animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-6%) skewX(-8deg); } to { transform: translateX(6%) skewX(8deg); } }
@keyframes twinkle { from { opacity: 0.5; } to { opacity: 1; } }

/* Fire */
.fire .glow { position: absolute; left: 50%; bottom: -30px; width: 320px; height: 320px; margin-left: -160px; background: radial-gradient(circle, rgba(255, 140, 50, 0.5), transparent 62%); animation: flick 1.6s ease-in-out infinite alternate; }
.fire .flame { position: absolute; bottom: 44px; left: 50%; width: 46px; height: 92px; margin-left: -23px; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; background: radial-gradient(ellipse at 50% 85%, #fff7c2 0 18%, #ffb52e 42%, #ff5a1f 72%, rgba(120, 20, 0, 0) 100%); mix-blend-mode: screen; transform-origin: 50% 100%; animation: lick 0.9s ease-in-out infinite alternate; }
.fire .f2 { margin-left: -52px; width: 34px; height: 64px; animation-duration: 0.7s; animation-delay: -0.3s; }
.fire .f3 { margin-left: 18px; width: 34px; height: 70px; animation-duration: 0.8s; animation-delay: -0.5s; }
.fire .log { position: absolute; bottom: 30px; left: 50%; width: 110px; height: 18px; margin-left: -55px; border-radius: 9px; background: #5c3a1e; border: 2px solid #301a0a; }
.fire .l1 { transform: rotate(14deg); }
.fire .l2 { transform: rotate(-14deg); }
.fire .ember { position: absolute; bottom: 70px; width: 4px; height: 4px; border-radius: 50%; background: #ffc66b; animation: rise 2.6s linear infinite; opacity: 0; }
@keyframes lick { 0% { transform: scale(1, 0.92) skewX(-3deg); } 100% { transform: scale(0.92, 1.1) skewX(4deg); } }
@keyframes flick { from { opacity: 0.7; } to { opacity: 1; } }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx, 10px), -120px); opacity: 0; } }

/* Lights */
.lights svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lights .bulb { animation: bulb 2.4s ease-in-out infinite alternate; }
@keyframes bulb { from { opacity: 0.35; } to { opacity: 1; } }

/* Santa */
.santa .moon { position: absolute; right: 26px; top: 22px; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fffbe8, #f1e2a8); box-shadow: 0 0 60px 14px rgba(255, 244, 190, 0.28); }
.santa svg { position: absolute; left: 0; top: 40px; width: 270px; height: 120px; animation: fly 9s linear infinite; }
@keyframes fly { 0% { transform: translate(-300px, 14px) rotate(2deg); } 50% { transform: translate(110px, -14px) rotate(-2deg); } 100% { transform: translate(560px, 12px) rotate(2deg); } }
.santa .leg { transform-box: fill-box; transform-origin: 50% 0; animation: gallop 0.34s ease-in-out infinite alternate; }
.santa .leg.b { animation-delay: -0.17s; }
@keyframes gallop { from { transform: rotate(28deg); } to { transform: rotate(-28deg); } }

/* Frost */
.frost { --x: -200px; --y: -200px; background: linear-gradient(135deg, #1b4f7a, #6a3b8f 60%, #d9534f); }
.frost .scene { position: absolute; inset: 0; display: grid; place-items: center; font: 700 30px var(--font-display); color: rgba(255, 255, 255, 0.9); }
.frost .ice { position: absolute; inset: 0; background:
  radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.75), transparent 38%), radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.65), transparent 34%),
  radial-gradient(circle at 0 100%, rgba(255, 255, 255, 0.7), transparent 36%), radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.7), transparent 36%),
  rgba(226, 240, 255, 0.34);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: radial-gradient(circle 56px at var(--x) var(--y), transparent 0 55%, #000 100%);
  mask-image: radial-gradient(circle 56px at var(--x) var(--y), transparent 0 55%, #000 100%); }
.frost .tag { position: absolute; left: 14px; bottom: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.85); z-index: 2; }

/* Snow globe */
.globe { background: radial-gradient(circle at 50% 45%, #14507a, #07263f 70%); }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.globe .tag { position: absolute; left: 14px; bottom: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.85); pointer-events: none; }

/* Snowman card */
.snowman svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.snowman .wave { transform-origin: 0 100%; animation: wave 1.2s ease-in-out infinite alternate; }
@keyframes wave { from { transform: rotate(-14deg); } to { transform: rotate(10deg); } }

/* Advent */
.advent { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.doors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.door {
  position: relative;
  aspect-ratio: 1 / 1.1;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  font: 700 24px var(--font-display);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  perspective: 500px;
  padding: 0;
}
.door .front { backface-visibility: hidden; -webkit-backface-visibility: hidden; position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28); transform-origin: left center; transition: transform 0.7s cubic-bezier(0.3, 1.3, 0.5, 1), opacity 0.7s; }
.door.open .front { transform: rotateY(-112deg); opacity: 0.55; }
.door .back { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; background: #ffeeb4; color: #c0182f; }
.door .back svg { width: 46%; height: 46%; }
.door.o0 { --c1: #d93258; --c2: #8f1636; }
.door.o1 { --c1: #1f8a5b; --c2: #0f5238; }
.door.o2 { --c1: #e8a93a; --c2: #b3711a; }
.advent-note { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 22px; min-height: 220px; }
.advent-note h3 { font-size: 24px; }
.advent-note p { margin-top: 10px; color: var(--muted); }
.advent-note .effect { margin-top: 16px; font-size: 14px; color: var(--ice); }

/* Price */
.price-card {
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, #0f3d40, #082224);
  padding: 34px;
}
.price { font: 800 74px/1 var(--font-display); letter-spacing: -0.03em; }
.price small { font: 500 17px var(--font-body); color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.price-card li { padding-left: 28px; position: relative; color: var(--ink); }
.price-card li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 11px; height: 6px; border-left: 2px solid var(--ice); border-bottom: 2px solid var(--ice); transform: rotate(-45deg); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; background: rgba(255, 255, 255, 0.02); }
summary { cursor: pointer; padding: 14px 0; font: 600 18px var(--font-display); list-style: none; }
summary::-webkit-details-marker { display: none; }
details p { padding: 0 0 16px; color: var(--muted); }

footer { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding-block: 40px 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer a { color: var(--muted); }
footer .flinks { display: flex; flex-wrap: wrap; gap: 6px 18px; min-width: 0; }

/* Legal pages */
.legal { max-width: 740px; margin: 0 auto; padding-block: 60px 80px; position: relative; z-index: 1; }
.legal h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 34px 0 8px; }
.legal p, .legal li { color: #c6dcde; }
.legal ul { padding-left: 22px; }
.draft { border: 1px dashed var(--gold); color: var(--gold); border-radius: 12px; padding: 12px 16px; margin: 18px 0 24px; font-size: 15px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .toys { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .advent { grid-template-columns: minmax(0, 1fr); }
  nav.top .links { display: none; }
}
@media (max-width: 600px) {
  .toys { grid-template-columns: minmax(0, 1fr); }
  .doors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .price { font-size: 60px; }
  .stage-bar .hint { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
