/* ───────── Listes au Père Noël — mobile first ───────── */
:root {
  --night: #0a1330;
  --night-2: #13224d;
  --night-3: #1c2f66;
  --ink: #eef2ff;
  --muted: #a7b3d9;
  --red: #e23a4f;
  --red-deep: #b71f36;
  --gold: #f6c453;
  --gold-soft: #ffe5a3;
  --green: #2ea56c;
  --green-deep: #1d7a4d;
  --paper: #fffaf1;
  --paper-ink: #2a2233;
  --paper-muted: #7a6f84;
  --glass: rgba(255, 255, 255, .07);
  --glass-border: rgba(255, 255, 255, .13);
  --radius: 20px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .55);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { background: var(--night); }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); font: 16px/1.45 var(--font);
  background:
    radial-gradient(1200px 600px at 80% -10%, #2a3f86 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, #1d2c63 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, #0d1940 55%, #101d49 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.aurora {
  position: fixed; inset: -20% -10% auto -10%; height: 60vh; z-index: 0; pointer-events: none; filter: blur(50px); opacity: .35;
  background: conic-gradient(from 200deg at 50% 50%, transparent 0deg, #2ea56c55 60deg, transparent 120deg, #6a5cff44 200deg, transparent 260deg);
  animation: aurora 24s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translateX(8%) rotate(8deg) scale(1.1); } }

#app { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 16px calc(110px + var(--safe-b)); }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; } /* pot de miel */

/* ───────── démarrage ───────── */
.boot { min-height: 80dvh; display: grid; place-items: center; }
.boot-star { font-size: 48px; color: var(--gold); animation: twinkle 1.2s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.7) rotate(36deg); opacity: .5; } }

/* ───────── titres ───────── */
.brand { font-family: var(--serif); font-weight: 700; letter-spacing: .2px; }
.gold-text {
  background: linear-gradient(100deg, var(--gold-soft) 0%, var(--gold) 40%, #fff3cf 50%, var(--gold) 60%, #d99a1e 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* ───────── écran de connexion ───────── */
.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0 40px; }
.auth-hero { text-align: center; margin-bottom: 22px; }
.auth-hero .gift-logo { width: 96px; height: 96px; margin: 0 auto 10px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(0,0,0,.4)); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.auth-hero h1 { font-size: clamp(30px, 9vw, 44px); line-height: 1.05; margin: 0 0 8px; }
.auth-hero p { margin: 0; color: var(--muted); }

.card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: var(--shadow); padding: 20px;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: rgba(0,0,0,.25); border-radius: 14px; margin-bottom: 18px; }
.tabs button { border: 0; background: transparent; padding: 10px; border-radius: 10px; color: var(--muted); font-weight: 700; cursor: pointer; transition: .2s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--night); box-shadow: 0 4px 12px rgba(0,0,0,.3); }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 6px 4px; letter-spacing: .3px; }
.input, .field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.14);
  background: rgba(5, 10, 30, .45); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(246, 196, 83, .18); }
.field .hint { font-size: 12.5px; color: var(--muted); margin: 6px 4px 0; }
.center { text-align: center; }
.hint.center { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.field input.phone-input { font-size: 20px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.field input.pin-input { font-size: 26px; letter-spacing: 12px; text-align: center; font-variant-numeric: tabular-nums; padding-left: 26px; }
.field input.pin-input::placeholder { letter-spacing: 8px; color: rgba(255,255,255,.25); }
.form-error { color: #ffb3bd; background: rgba(226, 58, 79, .15); border: 1px solid rgba(226, 58, 79, .35); padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.form-error:empty { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border: 0; border-radius: 14px;
  font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .12s, filter .2s, background .2s; user-select: none; color: #fff;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-block { width: 100%; }
.btn-red { background: linear-gradient(180deg, #f0566a, var(--red) 55%, var(--red-deep)); box-shadow: 0 8px 20px -8px rgba(226,58,79,.8), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-green { background: linear-gradient(180deg, #43c487, var(--green) 55%, var(--green-deep)); box-shadow: 0 8px 20px -8px rgba(46,165,108,.8), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--ink); border: 1px solid var(--glass-border); }
.btn-ghost-dark { background: rgba(42, 34, 51, .07); color: var(--paper-ink); border: 1px solid rgba(42,34,51,.12); }
.btn-sm { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn-icon { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; font-size: 20px; }
.btn.loading { position: relative; color: transparent; }
.btn.loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.profile-pick {
  text-align: left; padding: 12px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.14); background: rgba(5,10,30,.4); cursor: pointer; transition: .2s;
}
.profile-pick small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.profile-pick[aria-pressed="true"] { border-color: var(--gold); background: rgba(246,196,83,.14); box-shadow: 0 0 0 4px rgba(246,196,83,.12); }
.profile-pick.new { border-style: dashed; }
.step-title { font-weight: 800; margin: 0 0 10px; font-size: 17px; }
.link-btn { background: none; border: 0; color: var(--gold); padding: 0; cursor: pointer; text-decoration: underline; font-weight: 700; }

/* ───────── en-tête ───────── */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  background: linear-gradient(180deg, rgba(10,19,48,.92) 60%, rgba(10,19,48,0)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.topbar .title { flex: 1; min-width: 0; font-family: var(--serif); font-weight: 700; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold); background: var(--night-3); color: var(--gold-soft); font-weight: 800; cursor: pointer; display: grid; place-items: center; }

.hero { padding: 6px 0 18px; }
.hero h1 { font-size: clamp(28px, 8vw, 38px); line-height: 1.1; margin: 4px 0 6px; }
.hero p { margin: 0; color: var(--muted); }
.countdown {
  display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(226,58,79,.25), rgba(246,196,83,.15)); border: 1px solid rgba(246,196,83,.3);
}
.countdown .num { font-family: var(--serif); font-size: 40px; font-weight: 800; line-height: 1; color: var(--gold); min-width: 2ch; text-align: center; }
.countdown .lbl { font-size: 14px; color: var(--ink); }
.countdown .lbl b { display: block; font-size: 16px; }

.quick { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.quick .btn { justify-content: space-between; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 2px 10px; }
.section-title h2 { margin: 0; font-family: var(--serif); font-size: 22px; }
.section-title .members { font-size: 13px; color: var(--muted); text-align: right; }
.members .pending { opacity: .55; }

/* ───────── cartes enfants ───────── */
.kids { display: grid; grid-template-columns: 1fr; gap: 12px; }
.kid {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); text-decoration: none; color: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  transition: transform .18s, border-color .2s; overflow: hidden; animation: rise .5s both;
}
.kid:active { transform: scale(.98); }
.kid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%); transform: translateX(-100%); transition: transform .8s; }
.kid:hover::after { transform: translateX(100%); }
.kid .emoji { width: 58px; height: 58px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 32px;
  background: radial-gradient(circle at 30% 30%, #ffffff33, transparent 60%), linear-gradient(135deg, var(--red), #8a1830); box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
.kid:nth-child(3n+2) .emoji { background: radial-gradient(circle at 30% 30%, #ffffff33, transparent 60%), linear-gradient(135deg, var(--green), #145c39); }
.kid:nth-child(3n) .emoji { background: radial-gradient(circle at 30% 30%, #ffffff44, transparent 60%), linear-gradient(135deg, #e0a52b, #9a6512); }
.kid .info { flex: 1; min-width: 0; }
.kid .name { font-family: var(--serif); font-weight: 800; font-size: 21px; }
.kid .meta { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.kid .chev { color: var(--muted); font-size: 22px; }
.kid.add { justify-content: center; border-style: dashed; background: transparent; color: var(--muted); font-weight: 700; min-height: 70px; box-shadow: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.progress { position: relative; height: 10px; border-radius: 99px; background: rgba(0,0,0,.35); overflow: visible; }
.progress > i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: repeating-linear-gradient(-45deg, var(--red) 0 8px, #fff 8px 14px); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.progress > b { position: absolute; top: 50%; font-size: 18px; transform: translate(-50%, -58%) scaleX(-1); transition: left .8s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }

.empty { text-align: center; color: var(--muted); padding: 30px 16px; border: 1.5px dashed var(--glass-border); border-radius: var(--radius); }
.empty .big { font-size: 46px; display: block; margin-bottom: 6px; }

/* ───────── page enfant ───────── */
.child-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; }
.child-head .emoji { width: 72px; height: 72px; font-size: 42px; border-radius: 22px; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 30% 30%, #ffffff44, transparent 60%), linear-gradient(135deg, var(--red), #8a1830); box-shadow: var(--shadow); animation: bob 4s ease-in-out infinite; }
.child-head h1 { margin: 0; font-size: 32px; line-height: 1.1; }
.child-head .sub { color: var(--muted); font-size: 14px; }
.child-note { background: rgba(246,196,83,.1); border: 1px solid rgba(246,196,83,.3); border-radius: 16px; padding: 12px 14px; font-size: 14.5px; margin: 0 0 14px; white-space: pre-wrap; }
.child-note::before { content: "✉️ "; }
.stats { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.stats .progress { flex: 1; }
.stats .count { font-weight: 800; font-size: 14px; color: var(--gold-soft); white-space: nowrap; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--glass-border); background: var(--glass); color: var(--ink); padding: 8px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--night); }

/* ───────── cadeaux (étiquettes papier) ───────── */
.gifts { display: grid; gap: 14px; }
.gift {
  position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 18px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7);
  overflow: hidden; animation: rise .45s both; transition: transform .25s, opacity .4s;
}
.gift::before { /* ruban */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 7px;
  background: repeating-linear-gradient(180deg, var(--red) 0 10px, #fff 10px 16px, var(--green) 16px 26px, #fff 26px 32px);
}
.gift-body { display: flex; gap: 12px; padding: 14px 14px 12px 20px; }
.gift-img { width: 84px; height: 84px; flex: none; border-radius: 14px; object-fit: cover; background: #efe6d6; cursor: zoom-in; }
.gift-main { flex: 1; min-width: 0; }
.gift-title { font-weight: 800; font-size: 17px; line-height: 1.25; margin: 0 0 3px; word-wrap: break-word; }
.gift-note { font-size: 14px; color: var(--paper-muted); margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.stars { color: #e0a52b; font-size: 13px; letter-spacing: 1px; margin-bottom: 2px; }
.stars .off { color: #ddd2bf; }
.gift-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13.5px; font-weight: 700; color: #2c5fd6; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-actions { display: flex; align-items: center; gap: 6px; padding: 10px 8px 12px 20px; border-top: 1.5px dashed #eadfcb; }
.gift-actions .btn, .gift-actions .taker { white-space: nowrap; }
.gift-actions .taker { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gift-actions .spacer { flex: 1; }
.gift-actions .btn { min-height: 42px; }
.btn-take { background: linear-gradient(180deg, #f0566a, var(--red)); color: #fff; }
.btn-untake { background: #efe6d6; color: var(--paper-ink); }
.btn-comment { background: transparent; color: var(--paper-ink); border: 1px solid #e3d7c2; padding: 0 12px; }
.btn-comment .n { background: var(--red); color: #fff; border-radius: 99px; font-size: 12px; padding: 1px 7px; margin-left: 2px; }
.btn-more { background: transparent; color: var(--paper-muted); border: 0; width: 40px; padding: 0; font-size: 22px; }

.gift.taken { background: #f2ede4; }
.gift.taken .gift-title { text-decoration: line-through; text-decoration-color: rgba(226,58,79,.6); text-decoration-thickness: 2px; color: #6d6475; }
.gift.taken .gift-img { filter: grayscale(.7) opacity(.75); }
.stamp {
  position: absolute; top: 12px; right: 10px; transform: rotate(-12deg); border: 3px solid var(--green-deep); color: var(--green-deep);
  font-weight: 900; font-size: 13px; letter-spacing: 1px; padding: 3px 8px; border-radius: 8px; text-transform: uppercase; background: rgba(255,255,255,.6);
  pointer-events: none; mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0,0,0,.75));
}
.gift.just-taken .stamp { animation: stamp .45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stamp { from { transform: rotate(-30deg) scale(2.4); opacity: 0; } }
.taker { font-size: 13px; color: var(--green-deep); font-weight: 700; }
.taker.me { color: var(--red-deep); }

/* ───────── FAB ───────── */
.fab {
  position: fixed; z-index: 6; right: max(16px, calc(50% - 344px)); bottom: calc(20px + var(--safe-b)); height: 60px; padding: 0 22px 0 18px; border-radius: 30px;
  border: 0; color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: linear-gradient(180deg, #f0566a, var(--red) 55%, var(--red-deep)); box-shadow: 0 14px 30px -8px rgba(226,58,79,.8), inset 0 1px 0 rgba(255,255,255,.35);
  animation: pop .5s .2s cubic-bezier(.2,1.6,.4,1) both;
}
.fab span { font-size: 24px; line-height: 1; }
@keyframes pop { from { transform: scale(0); } }

/* ───────── feuilles (bottom sheets) ───────── */
.backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(3, 7, 20, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .25s both; }
.sheet {
  position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  margin: 0 auto; max-width: 640px; padding: 8px 18px calc(22px + var(--safe-b)); border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #1a2a5c, #111d45); border: 1px solid var(--glass-border); border-bottom: 0; box-shadow: 0 -20px 50px rgba(0,0,0,.5);
  animation: slideup .35s cubic-bezier(.2,.9,.25,1) both;
}
.sheet.closing { animation: slidedown .22s ease-in both; }
.backdrop.closing { animation: fade .22s reverse both; }
.sheet .grip { width: 44px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.25); margin: 4px auto 12px; }
.sheet h2 { font-family: var(--serif); margin: 0 0 16px; font-size: 24px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 8px; }
.sheet-actions .btn { flex: 1; }
@keyframes slideup { from { transform: translateY(100%); } }
@keyframes slidedown { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.menu-list { display: grid; gap: 8px; }
.menu-list .btn { justify-content: flex-start; }
.danger { color: #ff9aa8 !important; }

.avatar-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.avatar-picker button { aspect-ratio: 1; font-size: 26px; border-radius: 14px; border: 1.5px solid transparent; background: rgba(255,255,255,.06); cursor: pointer; }
.avatar-picker button[aria-pressed="true"] { border-color: var(--gold); background: rgba(246,196,83,.18); transform: scale(1.06); }

.prio { display: flex; gap: 8px; }
.prio button { flex: 1; min-height: 46px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.14); background: rgba(5,10,30,.4); cursor: pointer; font-size: 13px; }
.prio button[aria-pressed="true"] { border-color: var(--gold); background: rgba(246,196,83,.16); }

.img-drop { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1.5px dashed rgba(255,255,255,.2); cursor: pointer; }
.img-drop img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.img-drop .ph { width: 72px; height: 72px; border-radius: 12px; display: grid; place-items: center; font-size: 28px; background: rgba(255,255,255,.06); }
.img-drop input { display: none; }

/* commentaires */
.comments { display: grid; gap: 10px; margin-bottom: 14px; max-height: 50dvh; overflow-y: auto; }
.bubble { background: rgba(255,255,255,.08); border-radius: 16px 16px 16px 4px; padding: 10px 12px; max-width: 88%; }
.bubble.mine { margin-left: auto; background: rgba(46,165,108,.22); border-radius: 16px 16px 4px 16px; }
.bubble .who { font-size: 12.5px; font-weight: 800; color: var(--gold-soft); display: flex; gap: 8px; align-items: baseline; }
.bubble .who time { font-weight: 500; color: var(--muted); }
.bubble .who .del { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; }
.bubble p { margin: 2px 0 0; white-space: pre-wrap; word-wrap: break-word; }
.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form textarea { flex: 1; min-height: 48px; max-height: 140px; resize: none; }

/* visionneuse */
.viewer { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: 20px; animation: fade .2s both; cursor: zoom-out; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* toasts */
#toasts { position: fixed; z-index: 40; left: 0; right: 0; top: calc(12px + env(safe-area-inset-top, 0px)); display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--paper); color: var(--paper-ink); font-weight: 700; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); max-width: 92vw; animation: toast 3.4s both; }
.toast.err { background: #ffe3e6; color: #8d1427; }
@keyframes toast { 0% { transform: translateY(-30px); opacity: 0; } 8%, 85% { transform: none; opacity: 1; } 100% { transform: translateY(-20px); opacity: 0; } }

/* confettis */
.burst { position: fixed; z-index: 35; pointer-events: none; }
.burst i { position: absolute; left: 0; top: 0; font-style: normal; animation: burst 1s cubic-bezier(.15,.8,.3,1) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.4); opacity: 0; } }

.footer-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 36px; }

@media (min-width: 600px) {
  .kids { grid-template-columns: 1fr 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .gift-img { width: 110px; height: 110px; }
}
@media (hover: hover) { .kid:hover { border-color: rgba(246,196,83,.5); transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
