:root {
  --pink-50: #fff5f8;
  --pink-100: #ffe4ee;
  --pink-200: #ffc9dc;
  --pink-300: #f9a8c6;
  --pink-500: #e5679a;
  --pink-600: #d14b82;
  --pink-700: #a8345f;
  --text: #5b2a40;
  --muted: #8f6377;
  --card: #ffffffd9;
  --shadow: 0 10px 30px -12px #d14b8255;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Quicksand', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle, #ffd3e2 1.6px, transparent 2px) 0 0 / 30px 30px,
    linear-gradient(180deg, var(--pink-100) 0%, var(--pink-50) 40%, #fff 100%);
  min-height: 100vh;
  line-height: 1.5;
}

.hearts { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hearts span {
  position: absolute; bottom: -40px; color: var(--pink-300); opacity: .55;
  animation: float linear infinite;
}
@keyframes float {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-115vh) rotate(25deg); }
}

.hero, main, footer { position: relative; z-index: 1; }

.hero { text-align: center; padding: 12px 16px 24px; max-width: 920px; margin: 0 auto; }
.kicker { text-transform: uppercase; letter-spacing: .25em; font-size: .8rem; color: var(--muted); margin: 0; }
h1 { margin: 8px 0 0; font-weight: 400; line-height: 1; }
h1 .script { display: block; font-family: 'Great Vibes', cursive; font-size: clamp(3.4rem, 13vw, 6rem); color: var(--pink-600); }
h1 .name { display: block; font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 700; letter-spacing: .08em; margin-top: 4px; }
.bow { font-size: 2.4rem; margin: 12px 0 4px; }
.lead { max-width: 32ch; margin: 0 auto 24px; font-size: 1.1rem; color: var(--muted); }

main { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; display: grid; gap: 20px; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  position: relative;
  background: var(--card); backdrop-filter: blur(6px);
  border: 1px solid var(--pink-200); border-radius: 24px;
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow);
}
.card h2 { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 2.3rem; color: var(--pink-600); margin: 0 0 8px; line-height: 1.1; }
.card p { margin: 4px 0; }
.icon { font-size: 1.8rem; }
.links { margin-top: 12px !important; font-size: .95rem; }
a { color: var(--pink-600); font-weight: 600; }

.map { border-radius: 24px; overflow: hidden; border: 1px solid var(--pink-200); box-shadow: var(--shadow); height: 260px; background: var(--pink-100); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.gifts p { max-width: 42ch; margin: 0 auto 18px; }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font: 700 1rem 'Quicksand', sans-serif; color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  padding: 14px 28px; border-radius: 999px; box-shadow: 0 8px 20px -8px var(--pink-600);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px var(--pink-600); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.small { padding: 8px 16px; font-size: .9rem; }
.btn.ghost { background: #fff; color: var(--pink-600); border: 1px solid var(--pink-300); box-shadow: none; }

form { text-align: left; display: grid; gap: 16px; margin-top: 12px; }
form .btn { justify-self: center; margin-top: 4px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
input:not([type=radio]):not([type=checkbox]), textarea {
  font: 500 1rem 'Quicksand', sans-serif; color: var(--text);
  border: 1.5px solid var(--pink-200); border-radius: 14px; padding: 12px 14px; background: #fff;
  width: 100%;
}
input:focus, textarea:focus { outline: none; border-color: var(--pink-500); box-shadow: 0 0 0 4px var(--pink-100); }
textarea { resize: vertical; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block; text-align: center; padding: 12px 8px; border-radius: 14px;
  border: 1.5px solid var(--pink-200); background: #fff; font-weight: 600; height: 100%;
}
.choice input:checked + span { background: var(--pink-100); border-color: var(--pink-500); color: var(--pink-700); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--pink-200); }

.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--pink-600); }
[hidden] { display: none !important; }

.hp { position: absolute; left: -9999px; }
.error { color: #b3261e; background: #fdecea; padding: 10px 14px; border-radius: 12px; margin: 0; font-weight: 600; }

#thanks { padding: 12px 0; }
#thanks h3 { font-size: 1.5rem; margin: 0 0 8px; color: var(--pink-700); }
.big { font-size: 3rem; margin: 0 !important; }
.link { background: none; border: 0; color: var(--pink-600); font: 600 1rem 'Quicksand', sans-serif; text-decoration: underline; cursor: pointer; margin-top: 12px; }

footer { text-align: center; padding: 16px 16px 40px; color: var(--muted); font-size: .95rem; }

/* Admin */
.admin main { max-width: 960px; }
.admin .hero { padding: 40px 16px 16px; }
.admin h1 .script { font-size: clamp(2.8rem, 10vw, 4rem); }
.login { max-width: 400px; width: 100%; margin: 0 auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--pink-200); border-radius: 18px; padding: 16px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 2rem; color: var(--pink-600); }
.stat span { font-size: .9rem; color: var(--muted); font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.toolbar .who { color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--pink-200); border-radius: 18px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--pink-100); vertical-align: top; }
th { background: var(--pink-100); color: var(--pink-700); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.msg { max-width: 260px; color: var(--muted); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.tag.yes { background: #e3f6e8; color: #1e7a3c; }
.tag.no { background: #f3e8ec; color: var(--muted); }
.del { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.1rem; }
.del:hover { color: #b3261e; }
.empty { text-align: center; padding: 32px; color: var(--muted); }

/* Decorations */
.bunting { display: block; position: relative; z-index: 1; width: 100%; max-width: 900px; height: auto; margin: 0 auto; }
.hero > :not(.balloons) { position: relative; z-index: 1; }
.balloons { position: absolute; top: 0; width: 150px; height: auto; pointer-events: none; transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite; }
.balloons.left { left: 16px; }
.balloons.right { right: 16px; animation-delay: -3s; }
@keyframes sway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-8px); }
}
.crown { display: block; width: 52px; height: auto; margin: 0 auto 4px; }
.divider { display: flex; align-items: center; gap: 12px; justify-content: center; }
.divider::before, .divider::after { content: ""; flex: 0 1 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--pink-300)); }
.divider::after { transform: scaleX(-1); }
.divider svg { width: 120px; height: 40px; flex: none; }
.sprig { position: absolute; width: 84px; height: 84px; pointer-events: none; }
.sprig.tl { top: -26px; left: -22px; }
.sprig.tr { top: -26px; right: -22px; transform: scaleX(-1); }
.sprig.bl { bottom: -24px; left: -22px; transform: rotate(180deg) scaleX(-1); }
@media (max-width: 640px) {
  .balloons { width: 62px; top: -8px; }
  .balloons.left { left: -6px; }
  .balloons.right { right: -6px; }
  .sprig { width: 64px; height: 64px; }
  .sprig.tl, .sprig.bl { left: -10px; }
  .sprig.tr { right: -10px; }
}
@media (prefers-reduced-motion: reduce) { .balloons { animation: none; } }
html, body { overflow-x: clip; }
.defs { position: absolute; width: 0; height: 0; }
