@font-face { font-family: 'Fredoka'; src: url('/fonts/fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/fonts/fredoka-ext.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Caveat'; src: url('/fonts/caveat.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Mountains of Christmas'; src: url('/fonts/christmas-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --night: #0b1a3a;
  --night-2: #13285a;
  --snow: #f4f8ff;
  --ice: #cfe0ff;
  --red: #d62839;
  --red-dark: #9e1b2a;
  --gold: #ffd166;
  --green: #2d9a5f;
  --mint: #3dffa8;
  --ink: #1b2440;
  --muted: #5b6888;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(8, 18, 50, 0.18);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Fredoka', ui-rounded, system-ui, sans-serif;
  color: var(--ink);
  background: var(--snow);
  line-height: 1.5;
  font-size: 18px;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.4em; }
h1, h2 { font-family: 'Mountains of Christmas', 'Fredoka', cursive; font-weight: 700; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--red-dark); }
h3 { font-size: 1.2rem; }
a { color: var(--red-dark); }
p { margin: 0 0 1em; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px max(16px, env(safe-area-inset-left)) 14px max(16px, env(safe-area-inset-right));
  color: #fff;
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.logo .icon { color: var(--gold); width: 1.4em; height: 1.4em; filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.7)); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: #e9efff; text-decoration: none; font-weight: 500; }
.nav a[aria-current='page'] { color: var(--gold); }
.nav a:not(.btn):hover { color: #fff; text-decoration: underline; }
@media (max-width: 640px) { .nav > a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none;
  padding: 14px 26px; min-height: 52px;
  background: var(--gold); color: var(--ink);
  box-shadow: 0 6px 0 #c99a2e, var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #c99a2e; }
.btn-small { padding: 8px 18px; min-height: 40px; font-size: 1rem; box-shadow: 0 4px 0 #c99a2e; }
.btn-ghost { background: #fff; box-shadow: 0 6px 0 #c6d3ef, var(--shadow); }
.btn-call {
  background: linear-gradient(180deg, #ff4d5e, var(--red));
  color: #fff; font-size: 1.35rem; padding: 18px 34px; min-height: 64px;
  box-shadow: 0 7px 0 var(--red-dark), 0 0 0 0 rgba(255, 77, 94, 0.6), var(--shadow);
  animation: pulse 2.4s ease-out infinite;
}
.btn-call:active { box-shadow: 0 2px 0 var(--red-dark); }
.btn-call .ring { display: inline-flex; animation: wiggle 2.4s ease-in-out infinite; }
.btn-call .icon { width: 1.3em; height: 1.3em; }
@keyframes pulse {
  0% { box-shadow: 0 7px 0 var(--red-dark), 0 0 0 0 rgba(255, 77, 94, 0.55), var(--shadow); }
  70% { box-shadow: 0 7px 0 var(--red-dark), 0 0 0 22px rgba(255, 77, 94, 0), var(--shadow); }
  100% { box-shadow: 0 7px 0 var(--red-dark), 0 0 0 0 rgba(255, 77, 94, 0), var(--shadow); }
}
@keyframes wiggle {
  0%, 60%, 100% { transform: rotate(0); }
  64%, 72%, 80% { transform: rotate(-16deg); }
  68%, 76%, 84% { transform: rotate(16deg); }
}

/* ---------- hero village ---------- */
.hero { position: relative; min-height: max(620px, 100svh); background: var(--night); overflow: hidden; color: #fff; }
#village { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; cursor: pointer; }
.hero-copy {
  position: relative; z-index: 2; pointer-events: none;
  max-width: 900px; margin: 0 auto; text-align: center; padding: 86px 16px 0;
  text-shadow: 0 2px 18px rgba(4, 10, 34, 0.8);
}
.hero-copy .btn { pointer-events: auto; }
.eyebrow { margin-top: 0; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; color: var(--mint); font-weight: 600; margin-bottom: 6px; }
.hero h1 { color: #fff; margin-bottom: 0.2em; }
.lead { font-size: 1.2rem; max-width: 34em; }
.hero .lead { margin: 0 auto 18px; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; }
.hero .lead { color: #e7eeff; }
.countdown {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px; padding: 6px 16px; font-weight: 600; color: var(--gold); text-shadow: none;
}
.snowflake { display: inline-block; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tap-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%);
  margin: 0; width: max-content; max-width: calc(100% - 32px); text-align: center;
  font-size: 0.95rem; color: var(--ink); background: rgba(255, 255, 255, 0.85);
  padding: 6px 14px; border-radius: 999px; pointer-events: none;
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, -6px); } }
.sound-toggle {
  position: absolute; z-index: 3; right: 16px; bottom: 64px;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 999px;
  background: rgba(11, 26, 58, 0.55); color: #fff; padding: 8px 16px; cursor: pointer; backdrop-filter: blur(6px);
}
.sound-toggle[aria-pressed='true'] { background: var(--gold); color: var(--ink); border-color: var(--gold); }

@media (max-width: 700px) {
  .hero { min-height: max(680px, 100svh); }
  .hero-copy { padding-top: 72px; }
  .hero h1 { font-size: 2.8rem; }
  .hero .lead { font-size: 1.05rem; }
  .sound-toggle { bottom: 96px; right: 12px; font-size: 0.85rem; padding: 6px 12px; }
}

/* ---------- sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 64px 16px; }
.section > h2 { text-align: center; }
.center { text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0 0 auto; height: 8px; }
.card-0::before { background: var(--red); }
.card-1::before { background: var(--green); }
.card-2::before { background: var(--gold); }
.card h3 { color: var(--ink); }
.card p { margin: 0; color: var(--muted); }

.board { background: linear-gradient(180deg, var(--night-2), var(--night)); color: #fff; max-width: none; }
.board > h2 { color: var(--gold); }
.status { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.status > div { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 18px; padding: 16px 18px; }
.status .wide { grid-column: 1 / -1; }
.status dt { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mint); }
.status dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.meter { flex: 1; max-width: 160px; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--gold)); border-radius: 99px; }

.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.steps { counter-reset: step; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 56px 24px 24px; box-shadow: var(--shadow); text-align: center; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: 'Mountains of Christmas', cursive; font-weight: 700; font-size: 2rem; color: #fff; background: linear-gradient(180deg, #ff4d5e, var(--red)); box-shadow: 0 6px 0 var(--red-dark), 0 10px 24px rgba(214, 40, 57, 0.35); }
.steps li::after { position: absolute; top: 14px; right: 18px; font-size: 1.6rem; opacity: 0.9; }
.steps li:nth-child(1)::after { content: '✍️'; }
.steps li:nth-child(2)::after { content: '📞'; }
.steps li:nth-child(3)::after { content: '🎅'; }
.how .steps { margin-top: 44px; gap: 40px 22px; }
.steps p { margin: 0; color: var(--muted); }
.steps h3 { font-size: 1.25rem; }

.checks { list-style: none; padding: 0; max-width: 680px; margin: 0 auto 20px; }
.checks li { padding: 12px 0 12px 44px; position: relative; border-bottom: 1px dashed var(--ice); }
.checks li::before { content: '✓'; position: absolute; left: 6px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }

.faq details { max-width: 760px; margin: 0 auto 12px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 16px 34px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details { transition: box-shadow 0.2s ease; }
.faq details:hover { box-shadow: 0 14px 34px rgba(8, 18, 50, 0.16); }
.faq details p { color: var(--muted); }

.footer { background: var(--night); color: #c9d4f2; text-align: center; padding: 36px 16px 48px; font-size: 0.95rem; }
.footer a { color: var(--gold); }
.langs { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.langs a[aria-current] { color: #fff; font-weight: 600; text-decoration: none; }

/* ---------- inner pages: mini village header + panel ---------- */
.call-main, .article-main { position: relative; background: var(--night); min-height: 100svh; padding: 0 16px 60px; }
#village.mini { position: absolute; inset: 0 0 auto; height: 360px; cursor: default; }
.panel {
  position: relative; z-index: 2; max-width: 680px; margin: 0 auto; top: 230px; margin-bottom: 230px;
  background: #fff; border-radius: 28px; padding: 32px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.panel h1 { color: var(--red-dark); font-size: clamp(2.4rem, 6vw, 3.4rem); }
.article h2 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.35rem; color: var(--ink); margin-top: 1.4em; }

/* form */
form { display: grid; gap: 16px; }
.row { display: flex; gap: 14px; }
.grow { flex: 1; }
.field { display: grid; gap: 4px; }
.field span { font-weight: 600; }
.field small, .hint { color: var(--muted); font-size: 0.85rem; }
.hint { margin-top: -10px; }
@media (max-width: 520px) { .row { flex-wrap: wrap; } .row .grow { flex-basis: 100%; } }
input, select {
  font: inherit; font-size: 1.05rem; padding: 12px 14px; border-radius: 14px;
  border: 2px solid var(--ice); background: #f8fbff; color: var(--ink); width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--red); background: #fff; }
.consent { display: flex; gap: 12px; align-items: flex-start; background: #fff7e0; border-radius: 14px; padding: 12px 14px; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 3px; accent-color: var(--red); }
.note { color: var(--muted); font-size: 0.9rem; text-align: center; margin: 0; }
.error { color: #b00020; font-weight: 600; background: #ffe9ec; border-radius: 12px; padding: 10px 14px; margin: 0; }
.tips { font-size: 1.15rem; padding-left: 1.2em; }
.tips li { margin-bottom: 8px; }

/* ringing */
.phone-stage { position: relative; z-index: 2; padding-top: 120px; }
.ringing { display: grid; justify-items: center; gap: 18px; color: #fff; text-align: center; }
.old-phone svg { width: min(70vw, 280px); animation: shake 0.9s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(255, 209, 102, 0.5)); }
@keyframes shake {
  0%, 40%, 100% { transform: rotate(0); }
  5%, 15%, 25%, 35% { transform: rotate(-7deg) translateY(-6px); }
  10%, 20%, 30% { transform: rotate(7deg) translateY(-6px); }
}
.calling { font-family: 'Mountains of Christmas', cursive; font-size: 2.6rem; font-weight: 700; color: var(--gold); margin: 0; }
.answer {
  display: grid; justify-items: center; gap: 6px; border: 0; cursor: pointer; background: none; color: #fff; font: inherit; font-weight: 600; font-size: 1.2rem;
}
.answer svg {
  width: 110px; height: 110px; padding: 28px; border-radius: 50%; background: #22c55e; color: #fff;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); animation: answer 1.3s ease-out infinite;
}
@keyframes answer { 70% { box-shadow: 0 0 0 30px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* the call */
body[data-phase='call'] .topbar, body[data-phase='call'] .footer, body[data-phase='ringing'] .footer { display: none; }
body[data-phase='call'] .call-main { padding: 0; }
.santa-room { position: fixed; inset: 0; z-index: 20; background: #3a1a12; display: grid; }
.room { width: 100%; height: 100%; display: block; }
.call-bar {
  position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  display: flex; gap: 14px; align-items: center; white-space: nowrap;
  background: rgba(11, 26, 58, 0.7); color: #fff; padding: 8px 18px; border-radius: 999px; backdrop-filter: blur(8px);
}
.call-bar .who { font-weight: 600; }
.call-bar .status { color: var(--gold); }
.call-bar .clock { color: #cfe0ff; font-variant-numeric: tabular-nums; }
.captions {
  position: absolute; left: 50%; bottom: 130px; transform: translateX(-50%); width: min(92vw, 640px);
  background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1.2rem; padding: 10px 16px; border-radius: 14px; text-align: center; margin: 0;
}
.call-controls { position: absolute; left: 0; right: 0; bottom: max(24px, env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: center; gap: 18px; }
.ctl { font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 12px 18px; background: rgba(255, 255, 255, 0.9); color: var(--ink); cursor: pointer; }
.ctl[aria-pressed='true'] { background: var(--gold); }
.hangup { border: 0; cursor: pointer; width: 76px; height: 76px; border-radius: 50%; background: #ef4444; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.hangup svg { width: 36px; height: 36px; transform: rotate(135deg); }
.santa-room .error { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); width: min(90vw, 480px); text-align: center; }
.flame { transform-origin: 670px 495px; animation: flicker 0.5s ease-in-out infinite alternate; }
.fl2 { animation-duration: 0.37s; }
@keyframes flicker { from { transform: scale(1, 1); } to { transform: scale(1.06, 0.9) skewX(3deg); } }
.eyes { animation: blink 4.5s infinite; transform-origin: 400px 282px; }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
.flake { animation: fall 6s linear infinite; }
.f1 { animation-delay: -1.5s; } .f2 { animation-delay: -3s; } .f3 { animation-delay: -4.5s; }
@keyframes fall { from { transform: translate(0, -30px); } to { transform: translate(8px, 180px); opacity: 0; } }
.aurora-band { animation: glowband 5s ease-in-out infinite alternate; }
@keyframes glowband { to { opacity: 0.4; } }

/* certificate */
.certificate {
  margin: 10px 0 24px; padding: 30px 22px; text-align: center; border-radius: 18px; position: relative;
  background: #fffaf0; border: 6px double var(--gold); box-shadow: inset 0 0 0 10px #fff, inset 0 0 0 12px #f4d58d;
}
.certificate h2 { color: var(--red); font-size: clamp(2rem, 6vw, 2.8rem); }
.cert-stars { color: var(--gold); letter-spacing: 0.4em; font-size: 1.4rem; }
.cert-date { color: var(--muted); }
.cert-sign { font-family: 'Mountains of Christmas', cursive; font-weight: 700; font-size: 1.6rem; color: var(--green); margin: 0; }
.cert-seal { position: absolute; right: 18px; bottom: 14px; width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.6rem; transform: rotate(-12deg); }
.after-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media print {
  body * { visibility: hidden; }
  #certificate, #certificate * { visibility: visible; }
  #certificate { position: fixed; inset: 10mm; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; }
}
.hero-actions .countdown { margin: 0; }

/* ---------- kids' corner: shared ---------- */
.section-lead { text-align: center; color: var(--muted); max-width: 36em; margin: -4px auto 26px; font-size: 1.1rem; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(-6deg); } 40%, 80% { transform: rotate(6deg); } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- advent calendar ---------- */
.advent {
  max-width: none; color: #fff;
  background:
    radial-gradient(2px 2px at 10% 20%, #fff8 50%, transparent 51%), radial-gradient(2px 2px at 70% 30%, #fff8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 80%, #fff6 50%, transparent 51%), radial-gradient(2px 2px at 90% 70%, #fff7 50%, transparent 51%),
    linear-gradient(180deg, #123d2a, #0c2a1d);
  background-size: 180px 180px, 230px 230px, 150px 150px, 260px 260px, auto;
}
.advent > h2 { color: var(--gold); }
.advent .section-lead { color: #d5ead9; }
.advent-grid {
  max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  padding: 18px; border-radius: 26px; background: #5a3a22;
  box-shadow: inset 0 0 0 6px #c9a227, inset 0 0 0 10px #5a3a22, inset 0 0 0 12px #e8c372, 0 20px 50px rgba(0, 0, 0, 0.4);
}
@media (max-width: 640px) { .advent-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; } }
.door {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 14px; cursor: pointer; overflow: hidden;
  font: inherit; color: #fff; display: grid; place-items: center;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.25), 0 3px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.door::before { content: ''; position: absolute; inset: 0 0 auto; height: 22%; background: radial-gradient(circle at 20% 100%, #fff 40%, transparent 42%) 0 0 / 22px 100% repeat-x, #fff0; opacity: 0.95; }
.door:hover { transform: translateY(-3px); }
.door-0 { background: linear-gradient(160deg, #d62839, #9e1b2a); }
.door-1 { background: linear-gradient(160deg, #2d9a5f, #1f6f43); }
.door-2 { background: linear-gradient(160deg, #2b4c8c, #1b2f5c); }
.door-3 { background: linear-gradient(160deg, #c98a3a, #8a5a20); }
.door-num { font-family: 'Mountains of Christmas', cursive; font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.door-num.small { position: absolute; top: 6px; right: 8px; font-size: 1rem; color: var(--ink); text-shadow: none; }
.door-tag { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; font-weight: 700; background: var(--gold); color: var(--ink); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.door.locked { filter: saturate(0.6) brightness(0.85); }
.door.today { outline: 4px solid var(--gold); outline-offset: 2px; animation: glowdoor 1.6s ease-in-out infinite; }
@keyframes glowdoor { 50% { box-shadow: 0 0 0 8px rgba(255, 209, 102, 0.35), inset 0 -6px 0 rgba(0, 0, 0, 0.25); } }
.door.open { background: #fff8e8; }
.door.open::before { display: none; }
.door-icon { font-size: clamp(1.8rem, 5vw, 2.6rem); animation: pop 0.4s ease both; }
.door.wiggle { animation: wiggle 0.5s ease; }
.advent-reveal { max-width: 640px; margin: 22px auto 0; }
.advent-card { display: flex; gap: 18px; align-items: center; background: #fff; color: var(--ink); border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow); animation: pop 0.45s ease both; }
.advent-card h3 { color: var(--red-dark); font-family: 'Mountains of Christmas', cursive; font-size: 1.8rem; margin: 0; }
.advent-card p { margin: 4px 0 0; }
.advent-big { font-size: 3.6rem; }
.advent-day { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.advent-wait { text-align: center; color: var(--gold); font-weight: 600; font-size: 1.15rem; animation: pop 0.3s ease both; }

/* ---------- wish mailbox ---------- */
.letter {
  max-width: 760px; margin: 0 auto; position: relative; padding: 36px 24px 22px; border-radius: 10px;
  background: repeating-linear-gradient(180deg, #fffdf6 0 34px, #e9e1cc 34px 35px);
  box-shadow: var(--shadow), 0 0 0 1px #eadfc4; transform: rotate(-0.6deg);
}
.letter::after { content: '❄'; position: absolute; top: -30px; right: -14px; width: 54px; height: 62px; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: var(--red); border: 4px dashed #fff; outline: 3px solid var(--red); transform: rotate(6deg); }
.wish-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .wish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 460px) { .wish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wish-item {
  font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ink); cursor: pointer; position: relative;
  display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border-radius: 18px; border: 3px solid transparent;
  background: #fff; box-shadow: 0 4px 0 #e2e8f5, 0 6px 16px rgba(8, 18, 50, 0.08); transition: transform 0.15s;
}
.wish-item:hover { transform: translateY(-2px) rotate(-1deg); }
.wish-icon { font-size: 2.4rem; }
.wish-item[aria-pressed='true'] { border-color: var(--red); transform: rotate(-3deg) scale(1.04); background: #fff4f2; }
.wish-item[aria-pressed='true']::after { content: '✓'; position: absolute; top: -10px; right: -8px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.wish-note { text-align: center; color: var(--red-dark); font-weight: 600; min-height: 1.5em; margin: 10px 0 4px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.wish-sent { text-align: center; font-size: 1.2rem; font-weight: 600; max-width: 640px; margin: 0 auto; }
.flying-letter { font-size: 4rem; position: relative; height: 140px; animation: fly 2.6s ease-in forwards; }
.flying-deer { position: absolute; font-size: 3rem; margin-left: -6px; margin-top: -20px; }
@keyframes fly { 0% { transform: translate(-30vw, 60px) rotate(-10deg); } 60% { transform: translate(0, -10px) rotate(5deg); } 100% { transform: translate(40vw, -160px) rotate(12deg) scale(0.5); opacity: 0; } }

/* ---------- reindeer stable ---------- */
.stable { max-width: none; background: linear-gradient(180deg, #f4f8ff, #e6eefc); }
.deer-grid { max-width: 1040px; margin: 0 auto; display: grid; align-items: start; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .deer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; } }
.deer-card {
  font: inherit; color: var(--ink); cursor: pointer; border: 0; text-align: center;
  display: grid; justify-items: center; align-content: start; gap: 6px; padding: 16px 12px; border-radius: 22px;
  background: #fff; box-shadow: var(--shadow); transition: transform 0.2s;
}
.deer-card:hover { transform: translateY(-4px); }
.deer-face svg { width: 84px; height: 84px; transition: transform 0.3s; }
.deer-card:hover .deer-face svg, .deer-card[aria-expanded='true'] .deer-face svg { transform: rotate(-8deg) scale(1.08); }
.deer-card strong { font-family: 'Mountains of Christmas', cursive; font-size: clamp(1rem, 4.6vw, 1.45rem); line-height: 1.1; color: var(--red-dark); overflow-wrap: anywhere; hyphens: auto; max-width: 100%; min-height: 2.2em; display: flex; align-items: center; justify-content: center; }
.deer-card { min-width: 0; }
.deer-card.rudolph { background: linear-gradient(180deg, #fff, #fff1f1); }
.deer-fact { display: none; font-size: 0.95rem; color: var(--muted); }
.deer-card[aria-expanded='true'] .deer-fact { display: block; animation: pop 0.3s ease both; }

/* ---------- elf name ---------- */
.elfname { text-align: center; }
.elf-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 0 auto; }
.elf-form input { flex: 1; min-width: 200px; font-size: 1.2rem; text-align: center; }
.elf-card {
  position: relative; max-width: 460px; margin: 34px auto 0; padding: 46px 24px 22px; border-radius: 26px;
  background: linear-gradient(160deg, #2d9a5f, #1f6f43); color: #fff; box-shadow: var(--shadow);
}
.elf-card.pop { animation: pop 0.5s ease both; }
.elf-hat { position: absolute; top: -34px; left: 50%; width: 70px; height: 60px; transform: translateX(-50%) rotate(-12deg); background: var(--red); clip-path: polygon(0 100%, 100% 100%, 60% 0); }
.elf-hat::after { content: ''; position: absolute; }
.elf-card p { margin: 0 0 6px; }
.elf-name { font-family: 'Mountains of Christmas', cursive; font-weight: 700; font-size: clamp(2.2rem, 7vw, 3.2rem); color: var(--gold); line-height: 1.1; }
.elf-job span { opacity: 0.85; }
.wish-sent { overflow: hidden; }
@media (max-width: 520px) { .letter::after { right: 4px; top: -26px; } .letter { transform: none; } }

.consent.watch { margin: 6px 0 18px; background: #eef6ff; }
.consent.watch small { color: var(--muted); }

/* painted certificate */
.cert-canvas { display: block; width: 100%; max-width: 560px; margin: 8px auto 22px; border-radius: 12px; box-shadow: 0 18px 50px rgba(8, 18, 50, 0.35); }
@media print {
  .cert-canvas { visibility: visible; position: fixed; inset: 0; width: 100%; height: auto; max-width: none; box-shadow: none; border-radius: 0; }
}

/* elf card on the home page */
.elfcard { max-width: none; background: linear-gradient(180deg, #fff6e6, #ffeccc); }
.elfcard-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.elfcard img { width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow); }
.elfcard h2 { text-align: left; }
@media (max-width: 760px) { .elfcard-inner { grid-template-columns: 1fr; } .elfcard h2 { text-align: center; } .elfcard-inner > div { text-align: center; } }
.elf-after { text-align: center; }
.elf-after .gold { font-family: 'Mountains of Christmas', cursive; font-weight: 700; font-size: clamp(1.6rem, 4.6vw, 2.3rem); color: #b8860b; text-shadow: 0 0 18px rgba(255, 209, 102, 0.8); margin: 6px 0 18px; }
.mission-card { background: #fff8e6; border: 3px dashed var(--gold); border-radius: 20px; padding: 18px 20px; margin: 0 auto 18px; max-width: 520px; }
.mission-card h3 { color: var(--green); margin: 0 0 6px; }
.mission-card p { font-size: 1.2rem; font-weight: 600; margin: 0; }
.santa-upsell { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--ice); color: var(--muted); }

/* accounts, previews and offers (always English) */
.account-slot:empty { display: none; }
.account-card { background: #f7f9ff; border: 2px solid var(--ice); border-radius: 20px; padding: 20px; margin: 4px 0 18px; }
.account-card h2 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.35rem; color: var(--ink); text-align: left; margin-bottom: 6px; }
.btn-google { background: #fff; color: #1f1f1f; box-shadow: 0 4px 0 #d0d6e6, var(--shadow); }
.btn-google .g { font-weight: 700; color: #4285f4; font-size: 1.2em; }
.account-bar { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 0.92rem; color: var(--muted); background: #f3f6fd; border-radius: 14px; padding: 8px 14px; margin-bottom: 14px; }
.account-bar .left { color: var(--ink); }
.linkish { font: inherit; background: none; border: 0; color: var(--red-dark); text-decoration: underline; cursor: pointer; padding: 0; }
.preview-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 6px; }
.preview-form input { flex: 1; min-width: 180px; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 16px; }
.product { background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 3px 12px rgba(8, 18, 50, 0.08); display: flex; flex-direction: column; gap: 6px; }
.product.main { outline: 3px solid var(--gold); }
.product h3 { margin: 0; }
.product .price { font-size: 1.6rem; font-weight: 700; color: var(--red-dark); margin: 0; }
.product p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.product .btn { margin-top: auto; }
.small { font-size: 0.85rem; color: var(--muted); }
.thanks { background: #e9f8ef; color: #1f6f43; font-weight: 600; border-radius: 12px; padding: 10px 14px; }
.preview-end { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 520px); background: rgba(255, 255, 255, 0.96); border-radius: 22px; padding: 22px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.preview-end h2 { color: var(--red-dark); }

/* ================= the landing: living hero, offers, magic ================= */
:root {
  --paper: #fbf3e4;
  --wood: #6b3f22;
  --ember: #ffb35c;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* the hero: a night sky, and Santa's painting hanging in it like a lit window */
.lhero {
  position: relative; overflow: hidden; color: #fff;
  padding: 92px 16px 36px;
  background:
    radial-gradient(1200px 520px at 72% 38%, rgba(255, 170, 90, 0.16), transparent 70%),
    radial-gradient(900px 500px at 10% -10%, rgba(61, 255, 168, 0.12), transparent 60%),
    linear-gradient(180deg, #07122c 0%, #0b1a3a 55%, #10224a 100%);
}
.lhero::before { /* stars */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.8;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 46% 22%, #fff, transparent), radial-gradient(1px 1px at 63% 6%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 81% 14%, #fff, transparent), radial-gradient(1px 1px at 92% 30%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 6% 52%, #fff, transparent), radial-gradient(1px 1px at 36% 64%, #cfe0ff, transparent),
    radial-gradient(1.3px 1.3px at 55% 88%, #fff, transparent), radial-gradient(1px 1px at 96% 72%, #fff, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: 0.45; } }
.lhero-inner {
  position: relative; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: 44px; align-items: center;
}
.lhero-copy h1 { color: #fff; font-size: clamp(2.7rem, 5.6vw, 4.6rem); margin-bottom: 0.25em; text-shadow: 0 4px 30px rgba(255, 179, 92, 0.25); }
.lhero-copy .lead { color: #dfe7fb; font-size: 1.2rem; max-width: 30em; }
.lhero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 22px 0 14px; }
.btn-hear {
  background: rgba(255, 255, 255, 0.1); color: #fff; border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: none; backdrop-filter: blur(6px); min-height: 64px; padding: 14px 24px;
}
.btn-hear:hover { background: rgba(255, 255, 255, 0.18); }
.btn-hear:active { box-shadow: none; }
.hear-icon { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--gold); }
.btn-hear.on { border-color: var(--gold); }
.btn-hear.on .hear-icon { width: 14px; height: 16px; border: 0; background: linear-gradient(90deg, var(--gold) 0 35%, transparent 35% 65%, var(--gold) 65%); }
.from { color: #b9c6e8; font-size: 0.95rem; margin: 0 0 14px; }
.lhero .countdown { margin: 0; }

/* the painting's frame: a storybook plate with paper grain and warm edges, so it reads as painted */
.frame {
  position: relative; display: block; overflow: hidden; border-radius: 22px;
  aspect-ratio: 1920 / 1072; background: #2a160d;
  box-shadow: 0 0 0 1px rgba(255, 220, 170, 0.18), 0 0 0 9px rgba(107, 63, 34, 0.9), 0 0 0 10px rgba(255, 209, 102, 0.35),
    0 30px 70px rgba(0, 0, 0, 0.55), 0 0 140px rgba(255, 160, 70, 0.22);
}
.frame > img, .frame > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.frame > img { object-fit: cover; }
.frame > canvas { opacity: 0; transition: opacity 0.9s ease; }
.frame.alive > canvas { opacity: 1; }
.frame::after { /* grain + vignette over everything */
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(40, 18, 6, 0.45) 100%), var(--grain);
  mix-blend-mode: multiply; opacity: 0.7;
}
.lhero-art { position: relative; }
.lhero .frame { transform: rotate(0.6deg); }

/* the pretend call in speech bubbles */
.bubble {
  position: absolute; z-index: 2; max-width: 46%; padding: 10px 16px; border-radius: 20px;
  font-weight: 600; font-size: clamp(0.85rem, 1.25vw, 1.05rem); line-height: 1.3; color: var(--ink);
  background: #fffaf0; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 0.35s ease, transform 0.35s ease;
}
.bubble.show { opacity: 1; transform: none; }
.bubble-santa { left: 45%; top: 6%; border-bottom-left-radius: 4px; }
.bubble-santa::before { content: ''; position: absolute; left: -9px; bottom: 6px; border: 10px solid transparent; border-right-color: #fffaf0; border-left: 0; }
.bubble-child { right: 4%; top: 46%; background: #dff0ff; border-bottom-right-radius: 4px; }
.bubble-child::before { content: ''; position: absolute; right: -9px; bottom: 6px; border: 10px solid transparent; border-left-color: #dff0ff; border-right: 0; }

/* "Santa is on the line" */
.oncall {
  position: absolute; z-index: 2; left: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 14px; border-radius: 16px;
  background: rgba(10, 20, 44, 0.72); backdrop-filter: blur(8px); color: #fff; font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.oncall strong { display: block; line-height: 1.15; }
.oncall small { color: #b9c6e8; }
.oncall .timer { font-variant-numeric: tabular-nums; color: var(--mint); font-weight: 600; margin-left: 4px; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: #34d27b; box-shadow: 0 0 0 0 rgba(52, 210, 123, 0.7); animation: live 1.6s ease-out infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(52, 210, 123, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 210, 123, 0); } }

/* handwritten notes in the margins */
.scribble {
  position: absolute; margin: 0; font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.65rem; line-height: 1;
  color: var(--gold); display: flex; align-items: flex-end; gap: 4px; pointer-events: none; white-space: nowrap;
}
.scribble svg { width: 60px; height: 40px; flex: none; }
.scribble path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scribble-cat { right: 4%; bottom: -46px; transform: rotate(-3deg); flex-direction: row-reverse; }
.scribble-cat svg { transform: scaleX(-1) rotate(-12deg) translateY(-26px); }
.scribble-eyes { left: 6%; top: -46px; transform: rotate(-4deg); flex-direction: row-reverse; }
.scribble-eyes svg { transform: scaleY(-1) rotate(-20deg) translateY(-30px); }

/* the proof strip */
.proof {
  position: relative; list-style: none; max-width: 1240px; margin: 64px auto 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: #dfe7fb; font-size: 0.98rem;
}
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: '★'; color: var(--gold); font-size: 0.9rem; }

@media (max-width: 900px) {
  .lhero { padding-top: 76px; }
  .lhero-inner { grid-template-columns: 1fr; gap: 26px; }
  .lhero-art { order: -1; margin: 0 -4px; }
  .lhero .frame { transform: none; border-radius: 16px; }
  .lhero-copy { text-align: center; }
  .lhero-copy .lead { margin-left: auto; margin-right: auto; font-size: 1.08rem; }
  .lhero-actions { justify-content: center; }
  .scribble { display: none; }
  .bubble { max-width: 58%; font-size: 0.8rem; padding: 7px 11px; }
  .bubble-santa { left: 40%; top: 4%; }
  .oncall { left: 8px; bottom: 8px; padding: 6px 10px; font-size: 0.8rem; gap: 8px; }
  .oncall small { display: none; }
  .proof { margin-top: 34px; font-size: 0.92rem; }
}

/* two ways to call */
.choose { max-width: 1160px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; margin-top: 28px; }
.offer { background: #fff; border-radius: 26px; box-shadow: 0 18px 50px rgba(8, 18, 50, 0.14); overflow: hidden; display: flex; flex-direction: column; }
.offer .frame { aspect-ratio: 3 / 2; border-radius: 0; box-shadow: none; }
.offer-santa .frame > canvas, .crop-santa > canvas { width: 183.5%; height: 153.6%; left: -23.3%; top: -15%; }
.offer-elf .frame > canvas, .crop-elf > canvas { width: 172%; height: 144%; left: -43.75%; top: -5.6%; }
.offer-body { padding: 22px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.offer-body h3 { font-family: 'Mountains of Christmas', cursive; font-size: 2.3rem; color: var(--red-dark); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 0.2em; }
.offer-elf .offer-body h3 { color: #1f6b43; }
.price { font-family: 'Fredoka', sans-serif; font-size: 1.35rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.badge { display: inline-block; align-self: flex-start; margin: 0 0 8px; padding: 4px 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; background: #ffe7c2; color: #8a4b10; }
.offer-elf .badge { background: #d9f3e4; color: #1f6b43; }
.offer-body > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.ticks li { position: relative; padding: 5px 0 5px 30px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.offer .btn { align-self: flex-start; }
.btn-elf { background: linear-gradient(180deg, #3fbf7a, var(--green)); color: #fff; font-size: 1.35rem; padding: 18px 34px; min-height: 64px; box-shadow: 0 7px 0 #1f6b43, var(--shadow); }
.btn-elf:active { box-shadow: 0 2px 0 #1f6b43; }
.btn-elf .ring { display: inline-flex; }
.bundle-note { margin-top: 22px; color: var(--muted); font-weight: 500; }

/* the little magic */
.magic { max-width: none; background: linear-gradient(180deg, #0b1a3a, #13285a); color: #fff; }
.magic > h2 { color: var(--gold); }
.magic-row { max-width: 1060px; margin: 44px auto 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.magic-row.flip .magic-demo { order: 2; }
.magic-text h3 { font-family: 'Mountains of Christmas', cursive; font-size: 2.2rem; color: #fff; }
.magic-text p { color: #cdd8f3; font-size: 1.1rem; }
.magic-demo { position: relative; }
.knows-demo { display: grid; grid-template-columns: 1fr; gap: 0; }
.mini-form { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 16px 20px; width: 78%; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); transform: rotate(-2deg); }
.mini-form p { margin: 0; padding: 8px 0; border-bottom: 1px dashed #e2d3b6; display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.mini-form p:last-child { border: 0; }
.mini-form span { color: var(--muted); }
.mini-form b { font-family: 'Caveat', cursive; font-size: 1.45rem; line-height: 1; color: #24408e; }
.swoosh { width: 110px; height: 56px; margin: -6px 0 -12px 40%; color: var(--gold); }
.swoosh path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.said { justify-self: end; width: 84%; background: #fffaf0; color: var(--ink); padding: 16px 20px; border-radius: 22px; border-bottom-left-radius: 4px; font-weight: 500; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); transform: rotate(1.5deg); }
.said-who { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); font-weight: 600; margin-bottom: 2px; }
.cert-demo { display: grid; place-items: center; }
#demo-cert { width: min(78%, 360px); height: auto; aspect-ratio: 1792 / 2400; border-radius: 6px; transform: rotate(-3deg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); background: var(--paper) url(/cabin/certificate.jpg) center / cover; }
.sparkles { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(3px 3px at 22% 18%, #ffe9a8, transparent), radial-gradient(2px 2px at 78% 26%, #fff, transparent),
  radial-gradient(3px 3px at 70% 80%, #ffe9a8, transparent), radial-gradient(2px 2px at 26% 74%, #fff, transparent);
  animation: twinkle 1.8s ease-in-out infinite alternate; }
.langs-demo { min-height: 240px; }
.hello { position: absolute; padding: 10px 18px; border-radius: 20px; background: #fffaf0; color: var(--ink); font-weight: 600; font-size: 1.2rem; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); animation: floaty 6s ease-in-out infinite; }
.hello-0 { left: 4%; top: 6%; animation-delay: 0s; }
.hello-1 { left: 46%; top: 0; background: #e4efff; animation-delay: -1.2s; }
.hello-2 { left: 18%; top: 40%; background: #fff3c4; animation-delay: -2.4s; }
.hello-3 { left: 58%; top: 46%; background: #ffe2e2; animation-delay: -3.6s; }
.hello-4 { left: 30%; top: 76%; background: #dcf5e6; animation-delay: -4.8s; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (max-width: 800px) {
  .magic-row { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
  .magic-row.flip .magic-demo { order: 0; }
  .magic-text { text-align: center; }
  .mini-form, .said { width: 92%; }
}

/* the village, now further down the page */
.village-intro { text-align: center; padding: 64px 16px 18px; background: var(--night); color: #fff; }
.village-intro h2 { color: var(--gold); }
.village-intro .section-lead { color: #cdd8f3; max-width: 36em; margin: 0 auto; }
.hero.village-scene { min-height: 0; height: clamp(420px, 62vh, 640px); }

/* the last call to action */
.final { position: relative; min-height: 460px; background: #2a160d; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(1.1); }
.final::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, rgba(7, 14, 34, 0.72), rgba(7, 14, 34, 0.25) 70%, transparent); pointer-events: none; }
.final-copy { position: relative; z-index: 1; padding: 60px 16px; max-width: 760px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.final-copy h2 { text-wrap: balance; }
.final-copy h2 { color: #fff; }
.final-copy p { color: #e7eeff; font-size: 1.15rem; }

@media (prefers-reduced-motion: reduce) {
  .lhero::before, .hello, .sparkles, .live-dot, .btn-call, .btn-call .ring { animation: none; }
}
.btn-small { white-space: nowrap; }
.logo span { white-space: nowrap; }
@media (max-width: 480px) {
  .logo { font-size: 1rem; gap: 6px; }
  .nav .btn-small { padding: 6px 14px; min-height: 36px; font-size: 0.9rem; }
}
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-top: -6px; }
.legal h2 { margin-top: 1.6em; }
.account-bar [data-delete] { color: var(--muted); }

/* the painting at the top of the call and article panels */
.panel .page-art { aspect-ratio: 3 / 2; margin: -32px -24px 22px; border-radius: 28px 28px 0 0; box-shadow: none; }

@media (max-width: 520px) {
  .panel { top: 150px; margin-bottom: 150px; padding: 28px 18px; }
  .panel .page-art { margin: -28px -18px 18px; }
}
.footer .credit { margin: 14px 0 0; font-size: 0.85rem; color: #8fa0c8; }
.footer .credit a { color: #c9d4f2; }

/* header language menu */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); color: #e9efff; font-weight: 600; font-size: 0.95rem; background: rgba(11, 26, 58, 0.35); backdrop-filter: blur(6px); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.lang-menu[open] summary { background: rgba(255, 255, 255, 0.15); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; list-style: none; margin: 0; padding: 6px; min-width: 150px; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.lang-menu li a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink) !important; text-decoration: none; font-weight: 500; }
.lang-menu li a:hover { background: #f1f5ff; text-decoration: none !important; }
.lang-menu li a[aria-current] { font-weight: 700; color: var(--red-dark) !important; }
.lang-menu li a[aria-current]::after { content: ' ✓'; }
@media (max-width: 640px) {
  .nav { gap: 10px; }
  .lang-menu summary { padding: 5px 10px; font-size: 0.88rem; }
}
@media (max-width: 480px) {
  .nav .btn-small { display: none; } /* the hero's own call button is right below */
}
/* long Nordic words (Utklädningskläder, Rakennuspalikat) wrap inside their cards */
.wish-item { min-width: 0; }
.wish-item > span:last-child { overflow-wrap: anywhere; hyphens: auto; font-size: clamp(0.78rem, 2.9vw, 0.95rem); line-height: 1.2; }
/* the header's text links need room: below 760 px only the logo, language and call button stay */
@media (max-width: 760px) { .nav > a:not(.btn) { display: none; } }
/* very small phones (320 px) */
.deer-face svg { max-width: 100%; height: auto; }
.offer-body h3 { flex-wrap: wrap; }
.badge { white-space: normal; }
@media (max-width: 360px) {
  .deer-card { padding: 12px 6px; }
  .deer-grid { gap: 8px; }
  .offer-body { padding: 18px 18px 22px; }
  .offer-body h3 { font-size: 2rem; }
}
/* desktop: two centred rows (5 + 4) of roomy cards, so even "Petteri Punakuono" fits on two lines */
@media (min-width: 981px) {
  .deer-grid { display: flex; flex-wrap: wrap; justify-content: center; max-width: 980px; gap: 16px; }
  .deer-card { width: 172px; }
  .deer-card strong { font-size: 1.45rem; overflow-wrap: normal; hyphens: manual; }
}
