[hidden] { display: none !important; }
:root {
  --bg: #fff7f9;
  --card: #ffffff;
  --ink: #3b2a33;
  --muted: #8a6f7c;
  --pink: #e0478a;
  --pink-dark: #c22f72;
  --pink-soft: #fde3ee;
  --gold: #c9a24a;
  --line: #f1d6e2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(circle at 10% 0%, #ffe3ef 0, transparent 40%),
                    radial-gradient(circle at 90% 10%, #fbf0d8 0, transparent 35%);
  min-height: 100vh;
}
.hero { text-align: center; padding: 40px 16px 16px; max-width: 640px; margin: 0 auto; }
.eyebrow { margin: 0; color: var(--gold); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
h1 { font-family: "Great Vibes", cursive; font-weight: 400; font-size: 3.6rem; margin: 4px 0 8px; color: var(--pink); line-height: 1.1; }
.lede { color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.back { color: var(--pink-dark); font-size: .9rem; text-decoration: none; }
.back:hover { text-decoration: underline; }

main { max-width: 1040px; margin: 0 auto; padding: 16px 16px 60px; }
.status { text-align: center; color: var(--muted); padding: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } h1 { font-size: 3rem; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(224, 71, 138, .08); }
.thumb { aspect-ratio: 1; background: var(--pink-soft); display: grid; place-items: center; font-size: 2.5rem; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.body h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.body p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.body .btn { margin-top: auto; }

.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark)); padding: 11px 16px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(224, 71, 138, .25); transition: transform .1s, opacity .2s; width: 100%; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn.ghost { background: #fff; color: var(--pink-dark); border: 1px solid var(--line); box-shadow: none; }

dialog { border: 0; border-radius: 22px; padding: 0; width: min(420px, calc(100vw - 32px)); color: var(--ink);
  box-shadow: 0 20px 60px rgba(59, 42, 51, .3); }
dialog::backdrop { background: rgba(59, 42, 51, .45); }
dialog form, .done { padding: 22px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.6rem; color: var(--muted); cursor: pointer; }
.dlg-img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; align-self: center; }
dialog h2 { margin: 0; text-align: center; font-size: 1.2rem; }
.hint { margin: 0; text-align: center; color: var(--muted); font-size: .85rem; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 500; }
input, textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fffafc; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--pink); outline-offset: 0; border-color: transparent; }
.error { color: #b3261e; margin: 0; font-size: .85rem; min-height: 1em; }
.done { text-align: center; }
.done p { margin: 0; line-height: 1.5; }
.done .big { font-family: "Great Vibes", cursive; font-size: 2.6rem; color: var(--pink); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 18px; }
.tab { font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; border: 1px solid var(--line); background: #fff;
  color: var(--pink-dark); padding: 8px 14px; border-radius: 999px; }
.tab span { color: var(--muted); font-weight: 400; margin-left: 2px; }
.tab.active { background: linear-gradient(135deg, var(--pink), var(--pink-dark)); color: #fff; border-color: transparent; }
.tab.active span { color: #ffe3ef; }
.pill { align-self: flex-start; font-size: .72rem; font-weight: 600; color: #8a6a1f; background: #fbf0d8; padding: 2px 8px; border-radius: 999px; }
select { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fffafc; color: var(--ink); }
