/* Editorial Dark — Amigo Secreto dos Guri */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #1a1714;
  --surface:      #221e19;
  --surface-2:    #2a251f;
  --line:         #372f26;
  --text:         #efe9df;
  --muted:        #9c948a;
  --accent:       #e7b65f;
  --accent-d:     #cf9a45;
  --error:        #e07a64;
  --radius:       14px;
  --maxw:         1120px;
  --confetti:     #e7b65f, #efe9df, #cf9a45, #b07a4a, #6f6657;
  --font-display: 'Anton', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
}

/* ── Light theme overrides ── */
[data-theme="light"] {
  --bg:        #faf7f2;
  --surface:   #ffffff;
  --surface-2: #f5f0e8;
  --line:      #dfd6c8;
  --text:      #1a1714;
  --muted:     #7a6f66;
  --accent:    #9a6800;
  --accent-d:  #7d5500;
  --error:     #c44d38;
}
[data-theme="light"] .site-header       { background: rgba(250,247,242,.90); }
[data-theme="light"] body               { background-image: radial-gradient(120% 80% at 85% -5%, rgba(154,104,0,.06), transparent 55%); }
[data-theme="light"] .hero-title        { color: var(--text); }
[data-theme="light"] .reveal-greeting   { color: var(--text); }
[data-theme="light"] .btn-draw          { background: #1a1714; color: #faf7f2; }
[data-theme="light"] .btn-draw:hover:not(:disabled) {
  background: var(--accent); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(154,104,0,.35);
}
[data-theme="light"] .draw-card         { box-shadow: 0 8px 30px -10px rgba(0,0,0,.10); }
[data-theme="light"] .restrict-popover  { box-shadow: 0 8px 24px -6px rgba(0,0,0,.14); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(120% 80% at 85% -5%, rgba(231,182,95,.10), transparent 55%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,23,20,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -.01em; font-size: 1.02rem; white-space: nowrap;
}
.brand .mark { width: 26px; height: 26px; flex: none; color: var(--accent); }
.brand b { color: var(--accent); font-weight: 800; }
.lang { display: flex; gap: 4px; }
.lang-btn {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); background: none; border: 1px solid transparent; border-radius: 999px;
  padding: 5px 11px; cursor: pointer; transition: .15s; display: inline-block;
}
.lang-btn:hover { color: var(--text); border-color: var(--line); text-decoration: none; }
.lang-btn.active { background: var(--accent); color: #26200f; border-color: var(--accent); }

/* ── Theme toggle ── */
.header-end { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer;
  transition: border-color .15s, color .15s; flex: none;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ── Hero ── */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 40px; align-items: center;
  padding: clamp(40px,7vw,86px) 0 clamp(36px,5vw,64px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; color: var(--accent);
  font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block;
}
.hero-title {
  font-family: var(--font-display); font-weight: 400; line-height: .9;
  font-size: clamp(3.1rem,8.2vw,6.2rem); text-transform: uppercase;
  letter-spacing: .005em; color: #fff;
}
.hero-title .line2 { color: var(--accent); }
.hero-sub {
  color: var(--muted); font-size: clamp(1rem,1.4vw,1.18rem);
  max-width: 42ch; margin: 22px 0 30px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: #26200f;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .01em;
  padding: 16px 30px; border: none; border-radius: 999px;
  cursor: pointer; transition: transform .12s, background .15s, box-shadow .2s;
  box-shadow: 0 10px 30px -10px rgba(231,182,95,.6);
}
.btn-cta:hover {
  background: #f3c372; transform: translateY(-2px);
  box-shadow: 0 16px 38px -10px rgba(231,182,95,.7);
  text-decoration: none;
}
.btn-cta:active { transform: translateY(0); }
.btn-cta svg { width: 20px; height: 20px; }

/* ── Gift box (hero + reveal) ── */
.hero-art { display: flex; justify-content: center; align-items: center; }
.gift {
  position: relative; width: 200px; height: 188px; cursor: default;
  filter: drop-shadow(0 26px 40px rgba(0,0,0,.5));
  animation: float 6s ease-in-out infinite;
}
.hero-art .gift { animation: float-lg 7s ease-in-out infinite; }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}
@keyframes float-lg {
  0%,100% { transform: scale(1.18) translateY(0) rotate(-3deg); }
  50%      { transform: scale(1.18) translateY(-16px) rotate(3deg); }
}

.gift-box {
  position: absolute; left: 14px; bottom: 0; width: 172px; height: 118px; border-radius: 10px;
  background: linear-gradient(160deg, var(--accent), var(--accent-d));
}
.gift-lid {
  position: absolute; left: 0; top: 36px; width: 200px; height: 46px; border-radius: 10px;
  background: linear-gradient(160deg, #f0c374, var(--accent-d)); z-index: 3;
  transform-origin: 80% 100%;
  transition: transform .5s cubic-bezier(.5,-0.4,.3,1.4), opacity .5s;
}
.gift-ribbon-v {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 30px; height: 118px; background: rgba(38,32,15,.85); z-index: 2;
}
.gift-ribbon-h {
  position: absolute; left: 50%; top: 36px; transform: translateX(-50%);
  width: 30px; height: 46px; background: rgba(38,32,15,.85); z-index: 4;
}
.gift-bow {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  width: 54px; height: 30px; z-index: 5;
  background:
    radial-gradient(circle at 25% 50%, var(--accent) 38%, transparent 40%),
    radial-gradient(circle at 75% 50%, var(--accent) 38%, transparent 40%);
  transition: transform .4s, opacity .4s;
}
.gift.open .gift-lid { transform: translateY(-66px) translateX(26px) rotate(20deg); opacity: 0; }
.gift.open .gift-bow { transform: translateX(-50%) translateY(-34px) scale(.6) rotate(18deg); opacity: 0; }

/* ── Divider ── */
.rule { border: none; border-top: 1px solid var(--line); max-width: var(--maxw); margin: 0 auto; }

/* ── Draw section ── */
.draw { padding: clamp(40px,6vw,70px) 0 90px; }
.draw-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px,3vw,34px); max-width: 680px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.draw-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.draw-head h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 1.5rem; letter-spacing: .02em;
}
.count-pill { color: var(--accent); font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; }

.input-row { display: flex; gap: 10px; }
.input-row input {
  flex: 1; background: var(--bg); border: 1.5px solid var(--line); border-radius: 11px;
  color: var(--text); font: inherit; font-size: 1.02rem; padding: 14px 16px; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input-row input::placeholder { color: var(--muted); }
.input-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(231,182,95,.16); }

#btn-add {
  background: var(--accent); color: #26200f; border: none; border-radius: 11px;
  font: inherit; font-weight: 800; padding: 0 22px; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .12s;
}
#btn-add:hover { background: #f3c372; transform: translateY(-1px); }

.validation {
  color: var(--error); font-size: .9rem; min-height: 1.3em; margin: 10px 2px 0;
  opacity: 0; transform: translateY(-3px); transition: .2s;
}
.validation.show { opacity: 1; transform: none; }

/* ── Chips (participant list) ── */
.chips { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 18px 0 6px; }
.chip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 12px 12px 18px; position: relative;
  animation: chip-in .28s ease both;
  animation-delay: calc(var(--i) * .03s);
}
@keyframes chip-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.chip-name { font-weight: 600; font-size: 1.02rem; flex: 1; }
.chip-actions { display: flex; gap: 6px; align-items: center; }

/* badge dot when chip has outgoing restrictions */
.chip.has-restrictions .chip-name::after {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle;
}

.chip-x {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer;
  transition: .15s;
}
.chip-x:hover { border-color: var(--error); color: var(--error); background: rgba(224,122,100,.08); }

/* ⊘ restrict button on chip — always visible */
.chip-restrict {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer;
  transition: .15s; opacity: .55;
}
.chip-restrict:hover { opacity: 1; color: var(--accent); border-color: var(--accent); }
.chip.has-restrictions .chip-restrict { opacity: 1; color: var(--accent); border-color: var(--accent); }

/* hint below the chips list */
.restrict-hint {
  font-size: .8rem; color: var(--muted); margin: 2px 0 0; opacity: .75;
}

/* ── Restriction popover — fixed to escape stacking contexts ── */
.restrict-popover {
  position: fixed; z-index: 9999;
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  padding: 14px 16px; min-width: 220px; max-width: min(320px, 90vw);
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.8);
}
.restrict-title {
  font-size: .82rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.restrict-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.restrict-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.restrict-check-label {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: .95rem; font-weight: 600; flex: 1;
}
.restrict-check-label input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.restrict-mutual {
  display: flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: .78rem; color: var(--muted); white-space: nowrap;
  transition: opacity .15s;
}
.restrict-mutual.hidden { display: none; }
.restrict-mutual input[type="checkbox"] { accent-color: var(--accent); width: 13px; height: 13px; cursor: pointer; }

/* ── Draw button ── */
.btn-draw {
  width: 100%; margin-top: 20px; background: #fff; color: #1a1714; border: none;
  border-radius: 12px; font: inherit; font-weight: 800; font-size: 1.12rem; padding: 17px;
  cursor: pointer; transition: .15s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-draw:hover:not(:disabled) {
  background: var(--accent); transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(231,182,95,.7);
}
.btn-draw:disabled { opacity: .32; cursor: not-allowed; }
.btn-draw svg { width: 20px; height: 20px; }

/* ── Results ── */
.results {
  max-width: 680px; margin-top: 30px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s, transform .5s;
}
.results.reveal-in { opacity: 1; transform: none; }
.results-head h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 1.7rem; color: var(--accent);
}
.results-head p { color: var(--muted); margin-top: 6px; max-width: 52ch; }
.results-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.result-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px;
  animation: chip-in .35s ease both;
  animation-delay: calc(var(--i) * .06s);
}
.result-owner { font-weight: 700; font-size: 1.1rem; }
.result-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.btn-copy, .btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .92rem;
  padding: 10px 15px; border-radius: 10px; cursor: pointer; transition: .15s;
  border: 1px solid var(--line);
}
.btn-copy { background: transparent; color: var(--text); }
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }
.btn-copy.copied { border-color: var(--accent); color: var(--accent); background: rgba(231,182,95,.1); }
.btn-wa {
  background: rgba(231,182,95,.1); color: var(--accent);
  border-color: rgba(231,182,95,.3); text-decoration: none;
}
.btn-wa:hover { background: rgba(231,182,95,.18); text-decoration: none; }

/* ── Reveal page ── */
.reveal { display: flex; justify-content: center; padding: 60px 24px 90px; }
.reveal-inner { text-align: center; max-width: 560px; }
.reveal-greeting {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.8rem,5vw,2.8rem); color: #fff; margin-bottom: 8px;
}
.reveal-stage {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 34px 0 10px; min-height: 300px;
}
.reveal-stage .gift { cursor: pointer; animation: float 6s ease-in-out infinite; }
.reveal-stage .gift:hover { animation: wiggle .5s ease; }
@keyframes wiggle {
  0%,100% { transform: rotate(0); }
  25%      { transform: rotate(-6deg) scale(1.04); }
  75%      { transform: rotate(6deg) scale(1.04); }
}
.gift-hint {
  color: var(--muted); font-weight: 600; margin-top: 24px; letter-spacing: .02em;
  transition: opacity .3s;
}
.gift-hint.gone { opacity: 0; }
.reveal-result {
  margin-top: 8px; opacity: 0; transform: translateY(14px) scale(.94);
  transition: opacity .5s, transform .5s cubic-bezier(.2,.9,.3,1.3);
}
.reveal-result.show { opacity: 1; transform: none; }
.reveal-label {
  display: block; color: var(--muted); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; font-size: .86rem; margin-bottom: 6px;
}
.reveal-name {
  display: block; font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.8rem,11vw,5rem); line-height: 1; color: var(--accent); letter-spacing: .005em;
}
.reveal-invalid { color: var(--error); font-size: 1.1rem; margin-top: 20px; }
.reveal-back {
  display: inline-block; margin-top: 38px; color: var(--muted); font-weight: 600; font-size: .92rem;
  border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: .15s;
}
.reveal-back:hover { color: var(--accent); border-color: var(--accent); }

/* ── Organizer message on result page ── */
.reveal-msg {
  margin: 0 auto 24px; max-width: 400px; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 16px;
}
.reveal-msg-label {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.reveal-msg-text {
  margin: 0; font-size: .95rem; color: var(--text); white-space: pre-wrap; word-break: break-word;
}

/* ── Organizer message field in form ── */
.msg-row { margin: 16px 0 0; }
.msg-toggle {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 7px;
  background: none; border: none; cursor: pointer; padding: 4px 0; margin: 0;
  text-align: left; color: var(--muted); font: inherit; font-size: .82rem;
  font-weight: 600; letter-spacing: .01em; transition: color .15s;
}
.msg-toggle:hover { color: var(--text); }
.msg-toggle svg { color: var(--accent); transition: transform .2s ease; flex-shrink: 0; }
.msg-toggle[aria-expanded="true"] { color: var(--text); }
.msg-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.msg-eg { color: var(--muted); font-weight: 400; font-size: .76rem; opacity: .8; }
.msg-body { margin-top: 10px; }
.msg-input {
  display: block; width: 100%; background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 11px; color: var(--text); font: inherit; font-size: .96rem;
  padding: 12px 14px; outline: none; resize: vertical; min-height: 72px;
  box-sizing: border-box; transition: border-color .18s, box-shadow .18s;
}
.msg-input::placeholder { color: var(--muted); }
.msg-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(231,182,95,.12); }
.msg-counter {
  display: block; text-align: right; font-size: .75rem; color: var(--muted); margin-top: 4px;
}

.gifts-teaser {
  margin-top: 2.5rem; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.2rem;
}
.gifts-teaser-title { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.gifts-teaser ul { color: var(--muted); font-size: .85rem; margin: 0 0 .65rem; padding-left: 1.1rem; }
.gifts-teaser ul li { margin-bottom: .2rem; }
.gifts-teaser a { font-size: .83rem; color: var(--accent); }
.gifts-teaser a:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); }
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding: 24px 0; color: var(--muted); font-size: .88rem;
}
.footer-nav { display: flex; gap: 20px; }
.footer-nav a:hover { color: var(--accent); }

/* ── Content pages ── */
.content-page { max-width: 680px; margin: 0 auto; padding: 2.5rem 24px 3rem; }
.content-page h1 {
  font-family: var(--font-display); font-size: clamp(1.6rem,4vw,2.2rem); color: var(--accent);
  text-transform: uppercase; margin-bottom: 1rem; font-weight: 400;
}
.content-page h2 { font-size: 1.05rem; color: var(--text); font-weight: 700; margin: 1.5rem 0 .4rem; }
.content-page p  { color: var(--muted); margin-bottom: .75rem; }
.content-page section { margin-bottom: 1rem; }

.lead { font-size: 1.05rem; color: var(--text) !important; margin-bottom: 1.5rem !important; }

.steps { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.step h2 { margin-top: 0; }

.privacy-note {
  background: rgba(231,182,95,.07); border-left: 4px solid var(--accent);
  border-radius: 6px; padding: .75rem 1rem; font-size: .9rem; color: var(--accent);
  margin: 1.5rem 0;
}
.privacy-note.how-tip { color: var(--text); }
.privacy-note.how-tip strong { color: var(--accent); display: block; margin-bottom: .35rem; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #26200f; border: none; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1rem; padding: 14px 28px;
  cursor: pointer; transition: transform .12s, background .15s; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(231,182,95,.6); margin-top: 1.5rem;
}
.btn-primary:hover { background: #f3c372; transform: translateY(-2px); text-decoration: none; }

/* ── Error / 404 ── */
.error-page { text-align: center; padding: 5rem 24px; max-width: var(--maxw); margin: 0 auto; }
.error-page h1 {
  font-family: var(--font-display); font-size: 5rem; color: var(--accent);
  margin-bottom: 1rem; font-weight: 400;
}
.error-page p  { color: var(--muted); margin-bottom: 1.5rem; }

/* ── Ad slot ── */
.ad-slot { margin: 1.5rem 0; min-height: 90px; }

/* ── Screen-reader only ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Hero typewriter cursor ── */
#hero-line3::after {
  content: '|';
  color: var(--accent);
  margin-left: 3px;
  font-weight: 400;
  animation: hero-cursor var(--cursor-blink, 1s) step-end infinite;
}
#hero-line3.typing::after {
  animation: none;
  opacity: 1;
}
@keyframes hero-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Confetti ── */
.confetti-bit {
  position: absolute; top: 50%; left: 50%;
  pointer-events: none; border-radius: 2px; z-index: 60;
  animation: confetti-fly var(--dur, 1.2s) cubic-bezier(.18,.7,.35,1) forwards;
}
@keyframes confetti-fly {
  0%   { transform: translate(-50%, -50%) rotate(0); opacity: 1; }
  12%  { opacity: 1; }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 460px)) rotate(var(--rot));
    opacity: 0;
  }
}

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Recovery banner ── */
.recovery-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 auto 24px;
  max-width: var(--maxw);
  font-size: .875rem;
  color: var(--muted);
}
.recovery-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.recovery-load {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
  font-family: var(--font-body);
}
.recovery-load:hover { background: var(--accent); color: var(--bg); }
.recovery-x {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: color .15s, background .15s;
  font-family: var(--font-body);
}
.recovery-x:hover { color: var(--text); background: var(--surface-2); }

/* ── Accessibility ── */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 42px; }
  .hero-art { order: -1; justify-content: center; }
  .hero-art .gift { animation: float-lg-sm 7s ease-in-out infinite; }
  .hero-content { text-align: center; }
  .eyebrow { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  @keyframes float-lg-sm {
    0%,100% { transform: scale(.92) translateY(0) rotate(-3deg); }
    50%      { transform: scale(.92) translateY(-12px) rotate(3deg); }
  }
}
@media (max-width: 560px) {
  .header-row { flex-wrap: wrap; }
  .input-row { flex-direction: column; }
  #btn-add { padding: 14px; }
  .result-card { align-items: flex-start; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .recovery-banner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .confetti-bit { display: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
