:root {
  --bg: #1b0f3b;
  --bg2: #3b1046;
  --card: #fffdf8;
  --ink: #24151c;
  --ink2: #5e4c55;
  --line: #ece2d9;
  --field: #c9bab0;
  --red: #d0172a;
  --red-d: #9c0e1d;
  --green: #11733f;
  --green-d: #0a5029;
  --gold: #ffd66b;
  --focus: #ffb703;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 19px;
  line-height: 1.55;
  color: #fff;
  background: var(--bg);
  overflow-x: hidden;
}

/* ---------- Décor : ciel, neige, guirlande ---------- */
.sky {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(700px 420px at 0% 0%, #6a1d8a 0%, transparent 65%),
    radial-gradient(600px 420px at 100% 10%, #8e1444 0%, transparent 60%),
    radial-gradient(700px 500px at 50% 110%, #0f5a40 0%, transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.sky::after {
  content: ''; position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, #fff, transparent),
    radial-gradient(1.3px 1.3px at 60px 170px, #ffeab0, transparent),
    radial-gradient(1px 1px at 210px 40px, #fff, transparent),
    radial-gradient(1.8px 1.8px at 180px 200px, #fff, transparent);
  background-size: 240px 240px;
}
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.garland {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 44px;
  display: flex; justify-content: space-between; padding: 0 4px; overflow: hidden; pointer-events: none;
  border-top: 3px solid #1f3d22;
}
.garland i {
  position: relative; flex: none; width: 11px; height: 17px; margin-top: 9px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--c); box-shadow: 0 0 10px 2px var(--c);
  animation: bulb 1.8s ease-in-out infinite;
}
.garland i::before { content: ''; position: absolute; top: -5px; left: 2px; width: 7px; height: 6px; background: #3a3a3a; border-radius: 2px; }
.garland i:nth-child(odd) { margin-top: 17px; }
.garland i:nth-child(4n+1) { --c: #ff3b4e; }
.garland i:nth-child(4n+2) { --c: #ffd66b; animation-delay: .45s; }
.garland i:nth-child(4n+3) { --c: #38e08a; animation-delay: .9s; }
.garland i:nth-child(4n+4) { --c: #4fc3ff; animation-delay: 1.35s; }

/* ---------- Mise en page : une colonne, format téléphone ---------- */
.wrap { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; padding: 60px 16px 16px; }
.foot { position: relative; z-index: 2; text-align: center; padding: 16px 16px 40px; font-size: .95rem; color: rgba(255, 255, 255, .7); }
.logo-small { font-family: 'Mountains of Christmas', cursive; font-size: 1.6rem; color: var(--gold); text-decoration: none; }

/* ---------- En-tête ---------- */
.hero { text-align: center; margin: 4px 0 18px; }
.brand {
  font-family: 'Mountains of Christmas', Georgia, cursive; font-weight: 700;
  font-size: clamp(3.3rem, 16vw, 5rem); line-height: 1; margin: 0;
  background: linear-gradient(100deg, #fff2c4 0%, #ffd66b 25%, #f0a81c 45%, #fff6d6 60%, #ffcf4a 80%, #fff2c4 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 200, 80, .5)) drop-shadow(0 3px 0 #7a3b00);
  animation: shine 5s linear infinite;
}
.lead { font-size: 1.15rem; margin: 10px auto 0; max-width: 28ch; }
.kicker {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: rgba(255, 214, 107, .16); border: 1px solid rgba(255, 214, 107, .55);
  color: var(--gold); font-weight: 600; font-size: 1rem;
}
.title {
  font-weight: 700; font-size: clamp(1.9rem, 8vw, 2.5rem); line-height: 1.15;
  color: #fff; margin: 10px 0 0; overflow-wrap: anywhere;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

/* ---------- Cartes ---------- */
.card {
  position: relative; overflow: hidden;
  background: var(--card); color: var(--ink);
  border-radius: 22px; padding: 26px 18px 22px; margin: 0 0 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 10px, #fff 10px 20px);
}
.card.green::before { background: repeating-linear-gradient(-45deg, var(--green) 0 10px, #fff 10px 20px); }
.card.soft::before { background: repeating-linear-gradient(-45deg, #f0a81c 0 10px, #fff 10px 20px); }
.card h2 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.card p { margin: 0 0 12px; }
.card > :last-child, .card form > :last-child { margin-bottom: 0; }
.big { font-size: 1.15rem; }
.muted { color: var(--ink2); }
.small { font-size: .92rem; }
.ok { color: var(--green); font-weight: 600; }
.grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.num {
  flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 1.1rem;
}
.card.green .num { background: var(--green); }

.status { display: flex; gap: 14px; align-items: flex-start; }
.status-icon { font-size: 2.4rem; line-height: 1.1; flex: none; }
.status h2 { margin-bottom: 6px; }

.infos { list-style: none; padding: 0; margin: 4px 0 12px; }
.infos li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.quote {
  margin: 4px 0 0; padding: 14px 16px; border-radius: 14px;
  background: #fff3d2; color: #4d3418; font-style: italic;
}
.quote b { display: block; margin-top: 6px; font-style: normal; font-size: .95rem; }
.quote b::before { content: '— '; }

.how { margin: 0; padding: 0; list-style: none; counter-reset: how; }
.how li { position: relative; padding: 0 0 14px 50px; counter-increment: how; }
.how li:last-child { padding-bottom: 0; }
.how li::before {
  content: counter(how); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700;
}

/* ---------- Formulaires ---------- */
label { display: block; font-weight: 600; font-size: 1.05rem; margin: 20px 0 8px; }
.card h2 + label, .card .flash + label { margin-top: 12px; }
.help { display: block; font-weight: 400; font-size: .95rem; color: var(--ink2); margin: 2px 0 0; }
p.help { margin: 0 0 10px; }
input, textarea {
  display: block; width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  min-height: 56px; padding: 12px 14px; border-radius: 14px;
  border: 2px solid var(--field); background: #fff;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
input::placeholder, textarea::placeholder { color: #9d8f96; }
.check {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  margin: 20px 0 0; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff;
}
.check input { width: 28px; height: 28px; min-height: 0; flex: none; accent-color: var(--red); }

details.more { margin-top: 18px; }
details.more summary {
  cursor: pointer; list-style: none; font-weight: 600; color: var(--red-d);
  padding: 12px 0; min-height: 48px;
}
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { border-bottom: 1px solid var(--line); }

/* ---------- Boutons ---------- */
.btn {
  display: flex; width: 100%; min-height: 60px; margin: 22px 0 0; padding: 12px 18px;
  align-items: center; justify-content: center; gap: 10px; text-align: center;
  font: inherit; font-weight: 700; font-size: 1.15rem; line-height: 1.25;
  color: #fff; background: var(--red); text-decoration: none; cursor: pointer;
  border: 0; border-radius: 16px; box-shadow: 0 5px 0 var(--red-d);
  -webkit-tap-highlight-color: transparent; transition: transform .1s, box-shadow .1s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--red-d); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn + .btn { margin-top: 14px; }
.btn.green { background: var(--green); box-shadow: 0 5px 0 var(--green-d); }
.btn.whatsapp { background: #1c9c50; box-shadow: 0 5px 0 #106b35; }
.btn.light { background: #fff; color: var(--ink); border: 2px solid var(--field); box-shadow: none; }
.btn.on-dark { margin: 4px 0 16px; }
.btn.inline { display: inline-flex; width: auto; flex: none; min-height: 48px; margin: 0; padding: 8px 16px; font-size: 1rem; }
.btn[disabled] { background: #b5a9af; box-shadow: none; cursor: not-allowed; }
.btn.armed { background: #d96c00; box-shadow: 0 5px 0 #8f4700; color: #fff; border-color: transparent; }
.btn.loading { pointer-events: none; opacity: .8; }

.copy { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.copy input { flex: 1; min-width: 0; min-height: 48px; font-size: .9rem; background: #faf5ee; color: var(--ink2); }

/* ---------- Messages ---------- */
.flash {
  margin: 0 0 16px; padding: 14px 16px; border-radius: 14px;
  background: #fff4c7; color: #4a3300; border-left: 6px solid #f0a81c; font-weight: 600;
  animation: pop .4s ease-out both;
}
.flash.err { background: #ffe3e5; color: #7a0a16; border-left-color: var(--red); }

/* ---------- Personnes ---------- */
.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 1.1rem;
  background: linear-gradient(135deg, hsl(var(--h) 70% 52%), hsl(calc(var(--h) + 40) 70% 40%));
}
.people { list-style: none; padding: 0; margin: 0 0 12px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.3; }
.person:first-child { border-top: 0; }
.person form { margin: 0; }
.person-card { border-top: 1px solid var(--line); padding: 4px 0 12px; scroll-margin-top: 20px; }
.person-card:first-child { border-top: 0; }
.person-card .person { border-top: 0; }
.person-card.highlight { background: #fff3c4; border-radius: 16px; padding: 4px 10px 12px; margin: 0 -10px; border-top-color: transparent; animation: pop .5s ease-out both; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions:empty { display: none; }
.row-actions form { margin: 0; }
.opt { font-weight: 400; font-size: .9rem; color: var(--ink2); }

/* ---------- Liste de souhaits ---------- */
.wishlist { list-style: none; padding: 0; margin: 0 0 12px; }
.wishlist li { position: relative; padding: 12px 0 12px 38px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.wishlist li:first-child { border-top: 0; }
.wishlist li::before { content: '🎁'; position: absolute; left: 2px; top: 11px; }
.wishlist a {
  display: inline-block; color: var(--red-d); font-weight: 600;
  background: #ffe9ec; padding: 2px 12px; border-radius: 999px;
}
.empty { color: var(--ink2); font-style: italic; }

.not-me { text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .8); margin: 8px 0 0; }
.not-me a { color: var(--gold); }

/* ---------- Le cadeau ---------- */
.reveal { text-align: center; margin: 0 -16px 16px; padding: 0 16px; overflow-x: clip; }
.reveal-title { font-size: 1.6rem; margin: 0; color: var(--gold); }
.reveal-intro { margin: 6px auto 0; max-width: 26ch; }
.gift {
  position: relative; display: block; width: 170px; height: 180px; margin: 34px auto 4px;
  border: 0; padding: 0; background: none; cursor: pointer;
  transform-origin: 50% 100%; animation: wiggle 2.6s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.gift:focus-visible { outline: 3px dashed var(--gold); outline-offset: 10px; border-radius: 12px; }
.gift-glow {
  position: absolute; left: 50%; top: 55%; width: 260px; height: 260px; margin: -130px 0 0 -130px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 107, .5), transparent 65%);
  animation: glow 2s ease-in-out infinite alternate;
}
.gift-box {
  position: absolute; bottom: 0; left: 10px; width: 150px; height: 112px; border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 42%, var(--gold) 42%, var(--gold) 58%, transparent 58%),
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, .25) 0 5px, transparent 6px) 0 0 / 30px 30px,
    linear-gradient(180deg, #ff4458, #c3122a);
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, .14), 0 14px 26px rgba(0, 0, 0, .45);
}
.gift-lid {
  position: absolute; bottom: 106px; left: 0; width: 170px; height: 36px; border-radius: 10px; z-index: 2;
  background:
    linear-gradient(90deg, transparent 42%, #ffe08a 42%, #ffe08a 58%, transparent 58%),
    linear-gradient(180deg, #ff6273, #d8162e);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .14);
  transition: transform .9s cubic-bezier(.2, .9, .3, 1.2), opacity .9s;
}
.gift-bow { position: absolute; left: 50%; bottom: 100%; width: 0; height: 0; }
.gift-bow::before, .gift-bow::after {
  content: ''; position: absolute; bottom: -6px; width: 46px; height: 34px;
  border: 10px solid var(--gold); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.gift-bow::before { right: -4px; transform: rotate(-22deg); }
.gift-bow::after { left: -4px; transform: rotate(22deg); }
.gift.opening { animation: shake .12s linear infinite; }
.gift.open { animation: none; pointer-events: none; }
.gift.open .gift-lid { transform: translate(80px, -240px) rotate(50deg); opacity: 0; }
.gift.open .gift-box { animation: vanish .7s .35s ease-in forwards; }
.gift.open .gift-glow { animation: flashout .8s forwards; }
.gift.gone, .hidden { display: none !important; }

[data-result] { display: none; }
[data-result].show { display: block; animation: reveal .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.card[data-result].show { animation-delay: .3s; }
.reveal-result { position: relative; padding: 24px 0 8px; }
.rays {
  position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px; z-index: -1;
  border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 214, 107, .26) 0 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 15%, transparent 68%); mask: radial-gradient(circle, #000 15%, transparent 68%);
  animation: spin 26s linear infinite;
}
.reveal-label { font-size: 1.25rem; margin: 0; }
.giftee {
  font-weight: 700; font-size: clamp(2.8rem, 14vw, 4.5rem); line-height: 1.1; margin: 4px 0;
  color: var(--gold); text-shadow: 0 0 18px rgba(255, 200, 80, .55), 0 3px 0 #7a3b00;
  overflow-wrap: anywhere;
}
.shh { margin: 4px 0 0; font-weight: 600; }


/* ---------- Boîte mail ---------- */
.mailbox { text-align: center; }
.mailbox .how { text-align: left; margin-top: 14px; }
.envelope { font-size: 3.4rem; line-height: 1; margin: 4px 0 6px; animation: env 2.4s ease-in-out infinite; }
.mail-addr { display: inline-block; margin-top: 4px; padding: 4px 12px; border-radius: 999px; background: #fff3c4; overflow-wrap: anywhere; }
.dev { margin-top: 16px; padding: 12px; border: 2px dashed #f0a81c; border-radius: 12px; font-size: .92rem; text-align: left; }
.dev a { color: var(--red-d); font-weight: 600; }
@keyframes env { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }


/* ---------- Scènes de vie des lutins ---------- */
.scene-wrap { margin: 16px -6px 0; text-align: left; }
.scene-card {
  margin: 0; line-height: 0; overflow: hidden; border-radius: 22px;
  border: 4px solid var(--gold); background: #6b3a26;
  box-shadow: 0 0 0 4px rgba(255, 214, 107, .18), 0 16px 36px rgba(0, 0, 0, .45);
}
.scene-svg { display: block; width: 100%; height: auto; }
.bubble.up { margin: 16px 8px 0; animation-delay: .4s; }
.bubble.up::before { left: 50%; top: -9px; bottom: auto; margin-left: -10px; }
.lead b { color: var(--gold); }
@media (min-width: 600px) { .scene-wrap { margin: 18px -24px 0; } }

/* ================= Illustrations ================= */

/* ---------- Lulu le lutin ---------- */
.say { display: flex; align-items: flex-end; justify-content: center; gap: 6px; margin: 14px auto 0; max-width: 420px; text-align: left; }
.elf { flex: none; width: 118px; height: auto; overflow: visible; }
.bubble {
  position: relative; margin: 0 0 54px; padding: 12px 15px; border-radius: 20px;
  background: #fff; color: var(--ink); font-weight: 500; font-size: 1.02rem; line-height: 1.4;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3); animation: bubble-in .6s .2s cubic-bezier(.2, 1.5, .4, 1) both;
}
.bubble::before {
  content: ''; position: absolute; left: -9px; bottom: 16px; width: 20px; height: 20px;
  background: #fff; border-radius: 3px; transform: rotate(45deg);
}
.bubble b { color: var(--red-d); }

.elf .elf-all { animation: elf-breathe 2.6s ease-in-out infinite; transform-origin: 100px 236px; }
.elf .elf-head { animation: elf-tilt 5s ease-in-out infinite; transform-origin: 100px 160px; }
.elf .elf-eyes { animation: elf-blink 4.6s infinite; transform-origin: 100px 125px; }
.elf .elf-bell { animation: elf-bell 1.3s ease-in-out infinite alternate; transform-origin: 170px 44px; }
.elf .elf-arm-l, .elf .elf-arm-r { transition: transform .4s; }
.elf .elf-arm-l { transform-origin: 70px 172px; }
.elf .elf-arm-r { transform-origin: 130px 172px; }
.elf .elf-eyes-closed, .elf .elf-zzz { display: none; }

.elf--wave .elf-arm-r { animation: elf-wave .9s ease-in-out infinite alternate; }

.elf--sleep .elf-eyes { display: none; }
.elf--sleep .elf-eyes-closed { display: inline; }
.elf--sleep .elf-zzz { display: inline; }
.elf--sleep .elf-arm-r { transform: rotate(100deg); }
.elf--sleep .elf-all { animation-duration: 4s; }
.elf--sleep .elf-head { animation: elf-doze 4s ease-in-out infinite; }
.elf--sleep .elf-mouth { transform: scale(.55); transform-origin: 100px 148px; }
.elf-zzz text { animation: elf-z 3s ease-in-out infinite; opacity: 0; }
.elf-zzz .z2 { animation-delay: 1s; }
.elf-zzz .z3 { animation-delay: 2s; }

.elf--cheer .elf-all { animation: elf-jump .9s cubic-bezier(.3, 0, .3, 1) infinite; }
.elf--cheer .elf-arm-l { transform: rotate(120deg); }
.elf--cheer .elf-arm-r { animation: elf-wave .45s ease-in-out infinite alternate; }
.elf--cheer .elf-shadow { animation: elf-shadow .9s cubic-bezier(.3, 0, .3, 1) infinite; transform-origin: 100px 242px; }

@keyframes elf-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, .975); } }
@keyframes elf-tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-4deg); } 60% { transform: rotate(3deg); } }
@keyframes elf-doze { 0%, 100% { transform: rotate(8deg) translateY(2px); } 50% { transform: rotate(11deg) translateY(4px); } }
@keyframes elf-blink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@keyframes elf-bell { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes elf-wave { from { transform: rotate(-12deg); } to { transform: rotate(22deg); } }
@keyframes elf-z { 0% { opacity: 0; transform: translate(0, 10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -14px); } }
@keyframes elf-jump {
  0%, 100% { transform: translateY(0) scale(1.06, .92); }
  35% { transform: translateY(-26px) scale(.96, 1.05); }
  55% { transform: translateY(-30px) scale(1, 1); }
  85% { transform: translateY(0) scale(1.04, .95); }
}
@keyframes elf-shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .5; } }
@keyframes bubble-in { from { opacity: 0; transform: scale(.6) translateX(-20px); } to { opacity: 1; transform: none; } }

/* ---------- Lune ---------- */
.moon {
  position: fixed; z-index: 0; top: 62px; right: 7%; width: 54px; height: 54px; border-radius: 50%;
  box-shadow: inset -14px 8px 0 0 #fff4cf; filter: drop-shadow(0 0 16px rgba(255, 236, 170, .7));
  transform: rotate(-20deg);
}

/* ---------- Traîneau du Père Noël ---------- */
.sleigh {
  position: fixed; z-index: 1; top: 16%; left: 100%; display: flex; gap: 2px; font-size: 26px;
  pointer-events: none; filter: drop-shadow(0 0 6px rgba(255, 214, 107, .8));
  animation: sleigh 26s linear 3s infinite;
}
.sleigh span { display: inline-block; animation: hop .5s ease-in-out infinite alternate; }
.sleigh span:nth-child(2) { animation-delay: .15s; }
.sleigh .sled { animation-delay: .3s; }
@keyframes sleigh {
  0% { transform: translate(0, 0) rotate(-6deg); }
  30% { transform: translate(calc(-100vw - 160px), 60px) rotate(-6deg); }
  100% { transform: translate(calc(-100vw - 160px), 60px) rotate(-6deg); }
}
@keyframes hop { from { transform: translateY(0); } to { transform: translateY(-5px); } }

/* ---------- Paysage enneigé ---------- */
.scene { position: relative; z-index: 2; margin-top: 24px; height: 150px; line-height: 0; }
.scene svg { width: 100%; height: 100%; display: block; }
.scene .window { animation: window 3s ease-in-out infinite alternate; }
.scene .smoke circle { animation: smoke 4s ease-out infinite; opacity: 0; transform-box: fill-box; transform-origin: center; }
.scene .smoke circle:nth-child(2) { animation-delay: 1.3s; }
.scene .smoke circle:nth-child(3) { animation-delay: 2.6s; }
@keyframes window { from { fill: #ffd66b; } to { fill: #ffb347; } }
@keyframes smoke { 0% { opacity: .7; transform: translate(0, 10px) scale(.5); } 100% { opacity: 0; transform: translate(14px, -20px) scale(1.4); } }

.foot { background: #eef3fb; color: var(--ink2); margin-top: -1px; padding-top: 4px; }
.logo-small { color: var(--red); }

@media (max-width: 599px) {
  .moon { top: 54px; right: auto; left: 10px; width: 36px; height: 36px; box-shadow: inset -9px 5px 0 0 #fff4cf; }
}
@media (min-width: 600px) {
  .elf { width: 132px; }
  .scene { height: 190px; }
}

/* ---------- Animations ---------- */
@keyframes shine { to { background-position: -200% center; } }
@keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: .35; box-shadow: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes wiggle {
  0%, 62%, 100% { transform: rotate(0); }
  68% { transform: rotate(-6deg); } 74% { transform: rotate(6deg); }
  80% { transform: rotate(-4deg); } 86% { transform: rotate(2deg); }
}
@keyframes shake {
  0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-4px, 1px) rotate(-5deg); }
  50% { transform: translate(3px, -2px) rotate(4deg); } 75% { transform: translate(-2px, 2px) rotate(-3deg); }
}
@keyframes vanish { to { transform: scale(.2) translateY(40px); opacity: 0; } }
@keyframes glow { from { transform: scale(.85); opacity: .6; } to { transform: scale(1.1); opacity: 1; } }
@keyframes flashout { 30% { transform: scale(2.2); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }
@keyframes reveal { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 600px) {
  .wrap { padding-top: 76px; }
  .card { padding: 30px 28px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
