/* Santaminator — Outfit, vivid festive themes, gentle motion. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit/outfit-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit/outfit-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #e11d2a;
  --red-light: #ff5a4a;
  --red-dark: #a50f1c;
  --red-soft: #ffe1e3;
  --green: #0b8a3c;
  --green-light: #34d27a;
  --green-dark: #065f2a;
  --green-soft: #d6f8e2;
  --orange: #c2410c;
  --orange-light: #fb923c;
  --orange-dark: #7c2d12;
  --orange-soft: #ffedd5;
  --gold: #ffc21a;
  --gold-soft: #ffe9c2;
  --text: #1c1917;
  --muted: #57534e;
  --surface: #ffffff;
  --radius: 22px;
  --shadow: 0 6px 20px rgb(28 25 23 / 8%);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Theme defaults (Santa) — overridden per body class. */
  --accent: var(--red);
  --accent-light: var(--red-light);
  --accent-dark: var(--red-dark);
  --accent-soft: var(--red-soft);
  --ground: #fff8f2;
  font-size: 112.5%; /* 18px, follows the system font size */
}

.theme-lists {
  --accent: var(--green);
  --accent-light: var(--green-light);
  --accent-dark: var(--green-dark);
  --accent-soft: var(--green-soft);
  --ground: #f3fbf5;
}

.theme-admin {
  --accent: var(--orange);
  --accent-light: var(--orange-light);
  --accent-dark: var(--orange-dark);
  --accent-soft: var(--orange-soft);
  --ground: #fff7ef;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--ground);
}

a { color: var(--accent-dark); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: 2rem; font-weight: 800; margin: 0; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Hero header ------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 88% -20%, var(--accent-light) 0, var(--accent) 50%, var(--accent-dark) 100%);
  border-radius: 0 0 32px 32px;
  padding: 1rem 1.25rem 2.75rem;
}

.hero-inner { position: relative; max-width: 40rem; margin: 0 auto; }

.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px;
  color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none;
}

.brand svg { transform-origin: 50% 0; animation: sway 3s ease-in-out infinite; }

.hero h1 { margin-top: 1rem; font-size: 2.1rem; }
.hero .lead { margin: 0.35rem 0 0; font-weight: 300; font-size: 1.1rem; }
.eyebrow {
  display: block; width: fit-content; margin: 0.75rem 0 0;
  padding: 0.2rem 0.8rem; border-radius: 999px;
  background: rgb(255 255 255 / 16%);
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Snow */
.snow span {
  position: absolute; top: -12px; border-radius: 50%;
  background: rgb(255 255 255 / 85%);
  animation: snow linear infinite;
}
.snow span:nth-child(1) { left: 7%;  width: 6px; height: 6px; animation-duration: 8s; }
.snow span:nth-child(2) { left: 21%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: -5s; }
.snow span:nth-child(3) { left: 38%; width: 5px; height: 5px; animation-duration: 9s;  animation-delay: -2s; }
.snow span:nth-child(4) { left: 54%; width: 3px; height: 3px; animation-duration: 7s;  animation-delay: -4s; }
.snow span:nth-child(5) { left: 69%; width: 6px; height: 6px; animation-duration: 10s; animation-delay: -7s; }
.snow span:nth-child(6) { left: 83%; width: 4px; height: 4px; animation-duration: 8.5s; animation-delay: -1s; }
.snow span:nth-child(7) { left: 94%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: -9s; }

/* --- Layout ------------------------------------------------------------ */

.container {
  position: relative;
  max-width: 40rem;
  margin: -1.6rem auto 0;
  padding: 0 1rem 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.card > :last-child { margin-bottom: 0; }

.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.row { display: flex; align-items: center; gap: 0.75rem; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature p { margin: 0; color: var(--muted); }
.icon-tile {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.icon-tile.red { background: var(--red-soft); color: var(--red); }
.icon-tile.green { background: var(--green-soft); color: var(--green); }

/* --- Buttons & forms --------------------------------------------------- */

.button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; min-width: 44px;
  padding: 0.6rem 1.4rem;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent) 45%, var(--accent-dark));
  color: #fff;
  font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.button:hover, button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / 18%); }
.button:active, button:active { transform: scale(0.97); }
.button:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}

.button.wide, button.wide { width: 100%; }
.button.big, button.big { min-height: 64px; font-size: 1.2rem; }
.button.green, button.green { background: linear-gradient(135deg, #12a64b, var(--green) 45%, #0b7a35); }
.button.light, button.light {
  background: var(--accent-soft); color: var(--accent-dark);
}
.button.outline, button.outline {
  background: #fff; color: var(--accent-dark); border: 2px solid var(--accent);
}
.button.ghost, button.ghost {
  background: none; color: var(--accent-dark); min-height: 44px; padding: 0.4rem 0.8rem;
  text-decoration: underline;
}
.button.ghost:hover, button.ghost:hover { box-shadow: none; transform: none; }
.icon-button {
  width: 44px; height: 44px; padding: 0; min-height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
}

.shine {
  background: linear-gradient(110deg, var(--accent) 40%, var(--accent-light) 50%, var(--accent) 60%);
  background-size: 200% 100%;
  animation: shine 3s linear infinite;
}
.shine-light {
  background: linear-gradient(110deg, #fff 40%, #ffe9b3 50%, #fff 60%);
  background-size: 200% 100%;
  color: var(--red-dark);
  animation: shine 3.5s linear infinite;
}

label { font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field-hint { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.field-error { color: var(--red-dark); font-size: 0.95rem; font-weight: 600; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.6rem 0.9rem;
  border: 2px solid color-mix(in srgb, var(--accent) 25%, #e7ded3);
  border-radius: 16px;
  background: #fffcf9;
  font: inherit; color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.check { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; font-weight: 500; }
.check input { width: 26px; height: 26px; accent-color: var(--accent); }

/* --- Flash ------------------------------------------------------------- */

.flash {
  margin: 0; padding: 0.8rem 1.1rem; border-radius: 18px;
  font-weight: 600;
  animation: up 0.5s var(--ease) both;
}
.flash-success { background: var(--green-soft); color: #0a4d24; }
.flash-error { background: var(--red-soft); color: var(--red-dark); }

/* --- Lists, chips, avatars -------------------------------------------- */

.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.person {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--surface); border-radius: 20px; padding: 0.6rem 0.6rem 0.6rem 0.9rem;
  box-shadow: var(--shadow);
  animation: up 0.55s var(--ease) both;
}
.person .name { font-weight: 700; display: block; }
.status { font-size: 0.85rem; font-weight: 600; color: #0b7a35; }
.status.waiting { color: #b45309; animation: blink 1.6s ease-in-out infinite; }
.avatar {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
}
.avatar-0 { background: var(--red); }
.avatar-1 { background: var(--green); }
.avatar-2 { background: var(--orange); }
.avatar-3 { background: #7c3aed; }
.avatar-4 { background: #0369a1; }
.avatar-5 { background: #be185d; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.1rem;
  padding: 0.1rem 0.1rem 0.1rem 0.9rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 600;
  animation: up 0.5s var(--ease) both;
}
.chip form { display: contents; }
.chip button { background: none; color: inherit; min-height: 44px; width: 44px; padding: 0; }
.chip button:hover { box-shadow: none; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.fact { padding: 0.7rem 0.9rem; border-radius: 18px; }
.fact span { display: block; font-size: 0.8rem; font-weight: 500; }
.fact strong { font-size: 1.15rem; }
.fact.gold { background: var(--gold-soft); color: #6b3d00; }
.fact.green { background: var(--green-soft); color: #0a4d24; }
.fact.wide { grid-column: 1 / -1; }

.wishes { list-style: none; margin: 0; padding: 0; white-space: pre-line; }

.ring { stroke-dasharray: 151; animation: ring 1.4s var(--ease) 0.2s both; }

.progress { height: 8px; border-radius: 999px; background: rgb(255 255 255 / 25%); overflow: hidden; }

.link-box {
  padding: 0.8rem 1rem; border-radius: 16px; background: var(--accent-soft);
  color: var(--accent-dark); font-weight: 600; word-break: break-all;
}

/* --- Secret Santa participant ----------------------------------------- */

.santa-stage {
  min-height: 100vh;
  position: relative; overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 50% 28%, #ff4f4f 0, var(--red) 45%, var(--red-dark) 100%);
  display: flex; flex-direction: column;
}
.santa-stage .snow span { animation-duration: 10s; }
.santa-stage main {
  position: relative; flex: 1;
  max-width: 28rem; width: 100%; margin: 0 auto;
  padding: 0.5rem 1.5rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center;
}
.santa-stage h1 { font-size: 2.5rem; }
.santa-stage .lead { margin: 0; font-weight: 300; font-size: 1.1rem; }
.santa-stage header { position: relative; padding: 1rem 1.5rem; max-width: 28rem; width: 100%; margin: 0 auto; }
.santa-stage footer {
  position: relative; margin: 0 auto 1.2rem; width: calc(100% - 2.5rem); max-width: 26rem;
  padding: 0.8rem 1.1rem; border-radius: 20px; background: rgb(255 255 255 / 12%);
  display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem;
}
.santa-stage form { width: 100%; }

.envelope {
  position: relative; width: 236px; height: 160px; margin: 1.5rem 0 1rem;
  border-radius: 14px; background: #fbf3e6;
  box-shadow: 0 24px 50px rgb(0 0 0 / 35%);
  display: flex; align-items: center; justify-content: center;
  animation: float 4s ease-in-out infinite;
}
.envelope svg.flap { position: absolute; inset: 0; }
.seal {
  position: relative; top: 12px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold); color: var(--red-dark);
  display: flex; align-items: center; justify-content: center;
  animation: pulse 2.2s ease-out infinite;
}

.reveal-name { display: inline-block; margin: 0.1rem 0 0; font-size: 3.6rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.just-revealed .reveal-name { animation: pop 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.15s both; }
.confetti span { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: confetti linear infinite; }
.confetti span:nth-child(1) { left: 8%;  background: var(--gold); animation-duration: 3.2s; }
.confetti span:nth-child(2) { left: 22%; background: #fff; animation-duration: 4s; animation-delay: -1.5s; }
.confetti span:nth-child(3) { left: 40%; background: #2ee077; animation-duration: 3.6s; animation-delay: -2.4s; }
.confetti span:nth-child(4) { left: 63%; background: var(--gold); animation-duration: 4.4s; animation-delay: -0.8s; }
.confetti span:nth-child(5) { left: 79%; background: #fff; animation-duration: 3.4s; animation-delay: -2s; }
.confetti span:nth-child(6) { left: 91%; background: #2ee077; animation-duration: 4.1s; animation-delay: -3s; }

/* --- Printable QR card ------------------------------------------------- */

.qr-card { max-width: 22rem; margin: 2rem auto; text-align: center; }
.qr-card img { width: 100%; max-width: 260px; height: auto; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 2px dashed #999; }
}

/* --- Motion ------------------------------------------------------------ */

.up { animation: up 0.65s var(--ease) both; }
.d1 { animation-delay: 0.08s; } .d2 { animation-delay: 0.16s; } .d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.32s; } .d5 { animation-delay: 0.4s; }
.people > :nth-child(2) { animation-delay: 0.06s; } .people > :nth-child(3) { animation-delay: 0.12s; }
.people > :nth-child(4) { animation-delay: 0.18s; } .people > :nth-child(5) { animation-delay: 0.24s; }
.people > :nth-child(n+6) { animation-delay: 0.3s; }

@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes snow { from { transform: translateY(0); } to { transform: translateY(110vh); } }
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 194 26 / 70%); } 50% { box-shadow: 0 0 0 16px rgb(255 194 26 / 0%); } }
@keyframes shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.4) rotate(-8deg); } 65% { opacity: 1; transform: scale(1.12) rotate(2deg); } 100% { transform: none; } }
@keyframes confetti { from { transform: translateY(0) rotate(0); } to { transform: translateY(110vh) rotate(540deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes ring { from { stroke-dashoffset: 151; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .snow, .confetti { display: none; }
}
.santa-draft-wishes { margin-top: 1rem; }
.button.compact, button.compact { min-height: 44px; padding: 0.4rem 1rem; }
.person .grow { overflow-wrap: break-word; }
.feature .stack { flex: 1; }

/* --- Anonymous messages ------------------------------------------------ */

.badge {
  display: inline-block; margin-left: 0.3rem; padding: 0.05rem 0.6rem; border-radius: 999px;
  background: var(--gold); color: #6b3d00; font-size: 0.8rem; vertical-align: middle;
  animation: pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.message {
  max-width: 85%; padding: 0.55rem 0.9rem; border-radius: 18px;
  display: flex; flex-direction: column; animation: up 0.4s var(--ease) both;
}
.message .who { font-size: 0.8rem; font-weight: 600; opacity: 0.8; }
.message .body { white-space: pre-line; }
.message.theirs { align-self: flex-start; background: #f1ece6; border-bottom-left-radius: 6px; }
.message.mine { align-self: flex-end; background: var(--accent-soft); color: var(--accent-dark); border-bottom-right-radius: 6px; }
.thread textarea { min-height: 3.5rem; }
details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
details[open] > summary { margin-bottom: 0.75rem; }
.stack > p, .stack > h2 { margin: 0; }

/* --- Wish lists -------------------------------------------------------- */

.avatar-big { width: 60px; height: 60px; font-size: 1.6rem; font-weight: 800; background: var(--gold); color: #6b3d00; }
.items { display: flex; flex-direction: column; gap: 0.75rem; }
.item {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius); padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  animation: up 0.55s var(--ease) both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.item:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgb(10 77 36 / 12%); }
.items > :nth-child(2) { animation-delay: 0.06s; } .items > :nth-child(3) { animation-delay: 0.12s; }
.items > :nth-child(4) { animation-delay: 0.18s; } .items > :nth-child(n+5) { animation-delay: 0.24s; }
.item.fresh { animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.item.archived { opacity: 0.75; }
.item.taken { background: #faf7f2; box-shadow: none; }
.item-photo { flex-shrink: 0; width: 96px; height: 96px; object-fit: cover; border-radius: 16px; background: var(--accent-soft); }
.item-photo.preview { width: 120px; height: 120px; }
.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.item-head h2 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.price { font-weight: 600; color: var(--muted); white-space: nowrap; }
.item-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.prio { padding: 0.05rem 0.6rem; border-radius: 999px; font-weight: 600; }
.prio-3 { background: var(--red-soft); color: var(--red-dark); }
.prio-2 { background: var(--gold-soft); color: #6b3d00; }
.prio-1 { background: #f1ece6; color: #44403c; }
.item-notes { margin: 0; white-space: pre-line; font-size: 0.95rem; }
.item-link { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; width: fit-content; }
.reserve-form { display: flex; gap: 0.5rem; }
.reserve-form .qty { width: 5rem; flex-shrink: 0; }
.reserved-mine {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  padding: 0.2rem 0.2rem 0.2rem 0.9rem; border-radius: 999px; background: var(--green-soft); color: #0a4d24; font-weight: 700;
}
.reserved-mine span { display: inline-flex; align-items: center; gap: 0.4rem; }
.reserved-mine svg path { stroke-dasharray: 24; animation: draw 0.6s ease 0.2s both; }
.taken-label {
  margin: 0; padding: 0.55rem 0.9rem; border-radius: 999px; background: #f1ece6; color: #44403c; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.item-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.notice {
  margin: 0; padding: 0.9rem 1rem; border-radius: 20px; background: #fff3d6; color: #6b3d00;
  display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem;
}
.notice svg { flex-shrink: 0; margin-top: 2px; }
.glow { animation: glow 2.6s ease-in-out infinite; }
.checks { border: 0; margin: 0; padding: 0; }
.checks legend { font-weight: 600; margin-bottom: 0.3rem; }
.checks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.checks li { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; }
.checks input { width: 26px; height: 26px; accent-color: var(--accent); }
.checks label { font-weight: 500; }
input[type="number"], input[type="url"], input[type="file"] {
  width: 100%; min-height: 52px; padding: 0.6rem 0.9rem;
  border: 2px solid color-mix(in srgb, var(--accent) 25%, #e7ded3); border-radius: 16px;
  background: #fffcf9; font: inherit; color: var(--text);
}
@keyframes draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes glow { 0%, 100% { box-shadow: 0 8px 20px rgb(11 138 60 / 30%); } 50% { box-shadow: 0 8px 32px rgb(18 166 75 / 55%); } }

/* --- Notifications ----------------------------------------------------- */

.hero-inner { display: flow-root; }
.bell {
  position: absolute; top: 0; right: 0;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: #fff; border-radius: 50%;
}
.bell-dot {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: #6b3d00; font-size: 0.75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  animation: pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.bell:has(.bell-dot) svg { transform-origin: 50% 10%; animation: bell 3s ease-in-out infinite; }
.news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.news-item { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); animation: up 0.5s var(--ease) both; }
.news-item > a, .news-item > .news-text { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.8rem 1rem; color: inherit; text-decoration: none; }
.news-item.unread { box-shadow: inset 4px 0 0 var(--gold), var(--shadow); }
@keyframes bell { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 40% { transform: rotate(0); } }

/* --- Group gifts & gift statuses -------------------------------------- */

.group-gift { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.8rem; border-radius: 18px; background: var(--gold-soft); color: #4a2c00; }
.group-gift p { margin: 0; }
.group-gift-head { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.group-gift-start summary { font-weight: 600; color: var(--accent-dark); }
.group-gift-start[open] { display: flex; flex-direction: column; gap: 0.5rem; }
.meter { height: 10px; border-radius: 999px; background: rgb(255 255 255 / 70%); overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), #f59e0b); transform-origin: left; animation: grow-x 1s var(--ease) both; }
.meter-0 { width: 4%; } .meter-10 { width: 10%; } .meter-20 { width: 20%; } .meter-30 { width: 30%; } .meter-40 { width: 40%; }
.meter-50 { width: 50%; } .meter-60 { width: 60%; } .meter-70 { width: 70%; } .meter-80 { width: 80%; } .meter-90 { width: 90%; } .meter-100 { width: 100%; }
.gifts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.gift { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 0.9rem; border-bottom: 1px solid #efe6da; }
.gift:last-child { border-bottom: 0; padding-bottom: 0; }
.gift .name { font-weight: 700; display: block; }
.steps { display: flex; gap: 0.3rem; }
.step { flex: 1; text-align: center; padding: 0.15rem 0; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: #f1ece6; color: var(--muted); transition: background 0.3s ease, color 0.3s ease; }
.step.on { background: var(--green-soft); color: #0a4d24; }
.gift-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.done { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; color: #0a4d24; }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }


/* --- Narrow phones (Galaxy S25: 360 px) ------------------------------- */

.button, button { text-align: center; }
.person { flex-wrap: wrap; row-gap: 0.4rem; }
.person .grow { flex: 1 1 6rem; }
.person-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.grid-2 { align-items: end; }
.check { align-items: flex-start; }
.check input { flex-shrink: 0; margin: 0.1rem 0 0; }
.feature-card { display: flex; flex-direction: column; gap: 1rem; }
.reserved-mine { flex-wrap: wrap; border-radius: 18px; }
.reserved-mine span { white-space: nowrap; }
.item-head h2 { flex: 1; min-width: 0; }
@media (max-width: 400px) {
  .item { gap: 0.7rem; padding: 0.8rem 0.85rem; }
  .item-photo { width: 64px; height: 64px; border-radius: 12px; }
  .hero h1 { font-size: 1.85rem; }
  .button.big, button.big { font-size: 1.1rem; }
}
.check-hint { display: block; margin-top: 0.1rem; }

.hero .reveal-title { margin: 0; font-size: 1rem; }
.hero .reveal-title .lead { display: block; font-size: 1.1rem; font-weight: 300; }
.hero .reveal-title .reveal-name { display: inline-block; }
