@font-face { font-family: "Great Vibes"; src: url("/static/fonts/GreatVibes-Regular.ttf"); font-display: swap; }

:root { --bg:#2a0a12; --card:#fffaf0; --ink:#2b1b17; --wine:#8c1c2b; --gold:#f6d365; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin:0; font-family: system-ui, sans-serif; line-height:1.5; color:var(--ink);
  background: radial-gradient(circle at top, #5c1524, var(--bg) 70%) fixed var(--bg); min-height:100vh; }
main { max-width:560px; margin:0 auto; padding:16px; }
header { text-align:center; color:var(--gold); }
h1 { font-family:"Great Vibes", cursive; font-weight:400; font-size:3.2rem; margin:8px 0 0; line-height:1.15; }
.sub { margin:0 0 12px; opacity:.85; }
h2 { margin:0 0 8px; color:var(--wine); font-size:1.25rem; }
h3 { margin:16px 0 6px; font-size:1rem; }
.card { background:var(--card); border-radius:16px; padding:18px; margin-bottom:14px; box-shadow:0 8px 24px #0005; overflow-wrap:anywhere; }
.hint { font-size:.88rem; color:#6d5a52; margin:6px 0; }
.privacy { color:#f3dcd0; font-size:.8rem; text-align:center; }
.divider { text-align:center; color:#8a766d; border-top:1px solid #e5d8c8; padding-top:10px; margin-top:16px; }
label { display:block; font-weight:600; margin:10px 0 4px; font-size:.92rem; }
input, textarea, select { width:100%; padding:11px 12px; font:inherit; border:1px solid #cdbcaa; border-radius:10px; background:#fff; color:var(--ink); }
select { margin-bottom:8px; }
.check { font-weight:400; display:flex; gap:8px; align-items:center; margin:2px 0; }
.check input { width:auto; }
button { cursor:pointer; font:inherit; font-weight:700; border:0; border-radius:10px; padding:12px 16px; background:var(--wine); color:#fff; width:100%; margin-top:12px; }
button:disabled { cursor:not-allowed; }
button.secondary { background:#fff; color:var(--wine); border:2px solid var(--wine); }
button.link, button.small { width:auto; margin:0; }
button.link { background:none; color:var(--gold); text-decoration:underline; padding:4px; }
button.small { padding:6px 10px; font-size:.8rem; }
:focus-visible { outline:3px solid #2b7fff; outline-offset:2px; }

.topbar { display:flex; justify-content:space-between; align-items:center; color:#fff; }
.status { text-align:center; font-weight:700; border-radius:999px; padding:8px 14px; margin:10px 0 14px; background:#fff1c9; color:#6b4a00; }
.status.done { background:#d8f3dc; color:#14532d; }
.hero { text-align:center; padding:22px; }
.reveal { display:flex; flex-direction:column; align-items:center; gap:4px; font-size:3.4rem; min-height:170px; justify-content:center; margin:0;
  color:#3d2400; border-radius:20px; background:linear-gradient(135deg,#fff3b0,#f6c343 45%,#c8901a); box-shadow:0 0 0 4px #fff7, 0 10px 30px #c8901a88; }
.reveal span { font-size:1.9rem; letter-spacing:.12em; font-weight:900; }
.reveal:not(:disabled) { animation:pulse 1.8s ease-in-out infinite; }
.reveal:disabled { background:#e6ddd2; color:#7d6e66; box-shadow:none; }
@keyframes pulse { 50% { transform:scale(1.03); } }

nav { display:flex; gap:6px; margin-bottom:12px; }
nav button { margin:0; padding:10px 4px; background:#ffffff1f; font-size:.9rem; }
nav button.active { background:var(--card); color:var(--wine); }
.gift-row { display:grid; gap:6px; padding:10px 0; border-bottom:1px dashed #d9c8b5; }
ul { padding-left:18px; margin:8px 0; }
ul.plain, #admin-people, #exclusions { list-style:none; padding:0; }
#admin-people li, #exclusions li { border-bottom:1px solid #eaded0; padding:10px 0; }
#admin-people small { display:block; color:#6d5a52; }
#admin-people .error { color:#a30000; }
.row { display:flex; gap:8px; flex-wrap:wrap; margin-top:6px; }
a { color:var(--wine); font-weight:600; }
.domain { font-weight:400; color:#7d6e66; font-size:.8rem; }
#toast { position:fixed; left:16px; right:16px; bottom:16px; max-width:528px; margin:auto; z-index:30; background:#111; color:#fff; border-radius:10px; padding:12px 16px; box-shadow:0 6px 20px #0008; }

/* ── Revelação ── */
#stage { position:fixed; inset:0; z-index:20; overflow-y:auto; display:flex; flex-direction:column; align-items:center; padding:24px 16px;
  background:radial-gradient(circle at 50% 40%, #4a0f1d, #0d0205 75%); color:#fdf1d6; text-align:center; }
#confetti { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; }
#giftbox { margin:auto; font-size:8rem; animation:shake .45s ease-in-out infinite; }
#giftbox.pop { animation:pop .5s ease-in forwards; }
@keyframes shake { 25% { transform:rotate(-13deg) scale(1.05); } 75% { transform:rotate(13deg) scale(1.12); } }
@keyframes pop { to { transform:scale(3); opacity:0; } }
#result { margin:auto; width:100%; max-width:500px; position:relative; }
.you { font-size:1.2rem; letter-spacing:.3em; text-transform:uppercase; margin:0; }
.gold { font-family:"Great Vibes", cursive; font-size:clamp(3.4rem, 17vw, 6rem); line-height:1.25; margin:6px 0 14px; padding:0 8px; overflow-wrap:anywhere;
  background:linear-gradient(100deg,#9a6b12 0%,#f9e08b 25%,#fffbe0 38%,#d9a531 52%,#f9e08b 75%,#9a6b12 100%);
  background-size:220% auto; -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 3px 10px #f6c34366);
  animation:appear 1.3s cubic-bezier(.2,1.6,.4,1) both, shine 3.5s linear infinite; }
@keyframes appear { from { transform:scale(.2) rotate(-8deg); opacity:0; } }
@keyframes shine { to { background-position:-220% center; } }
.quote { font-style:italic; white-space:pre-wrap; }
#target-gifts { list-style:none; padding:0; }
#target-gifts li { background:#ffffff14; border-radius:10px; padding:10px; margin-bottom:8px; }
#stage a { color:var(--gold); }
#stage .hint, #stage .domain { color:#d9c3b8; }

@media (prefers-reduced-motion: reduce) { * { animation:none !important; } }
