:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #102e27; color: #fff6de; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at top, #2c6450, #102e27 55%); min-height: 100vh; }
main { width: min(100% - 28px, 550px); margin: auto; padding: 30px 0 48px; }
header, .card:first-of-type { text-align: center; }
h1 { font-family: Georgia, serif; font-size: clamp(2.5rem, 9vw, 4.5rem); line-height: 1; margin: 24px 0 14px; }
h1 span, .details { color: #ffdb92; }
.badge { display: inline-block; padding: 6px 14px; border: 1px solid #ffdb9270; border-radius: 40px; }
.card { background: #fff6de; color: #213c31; border-radius: 24px; padding: 22px; margin-top: 18px; box-shadow: 0 10px 24px #071a1b44; }
h2 { margin: 8px 0 14px; font-size: 1.3rem; }
button { border: 0; background: #a62338; color: white; padding: 11px 18px; border-radius: 30px; font: inherit; font-weight: 700; cursor: pointer; }
:focus-visible { outline: 3px solid #267e65; outline-offset: 3px; }
label { display: block; font-weight: 650; margin: 12px 0 5px; }
textarea { display: block; width: 100%; border: 1px solid #78867d; background: #fffdf7; color: #213c31; border-radius: 10px; padding: 10px; margin-bottom: 14px; font: inherit; resize: vertical; }
[role=status]:empty { display: none; }
summary { font-weight: 700; cursor: pointer; }
dl div { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0; }
dd { margin: 0; }
.present { position: relative; margin: 66px auto 28px; width: 106px; height: 74px; background: linear-gradient(135deg,#de4658,#9e1b2c); border-radius: 0 0 8px 8px; }
.ribbon { position: absolute; inset: 0 43% 0; background: #ffe4a1; }
.lid { position: absolute; top: -15px; left: -7px; width: 120px; height: 20px; border-radius: 4px; background: linear-gradient(90deg,#c63247 42%,#ffe4a1 42% 58%,#c63247 58%); }
.bow { position: absolute; top: -53px; inset-inline: 0; font-size: 38px; }
.sparkles { position: absolute; inset: -36px -38px auto; font-size: 25px; color: #925c00; opacity: 0; }
.open .lid { transform: translate(26px,-32px) rotate(16deg); }
.open .bow { transform: translate(26px,-32px) rotate(16deg); }
.open .sparkles { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .lid,.bow { transition: transform .55s cubic-bezier(.18,.8,.3,1.3); }
  .sparkles { transition: opacity .45s ease .25s; }
}
[hidden] { display: none !important; }
input { display: block; margin: 6px 0 14px; width: 100%; padding: 10px; border: 1px solid #78867d; border-radius: 10px; background: #fffdf7; color: #213c31; font: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
button:disabled { opacity: .55; cursor: wait; }
a { color: inherit; }
nav { text-align: center; margin-top: 24px; }
li { margin: 8px 0; overflow-wrap: anywhere; }
#gift-result { white-space: pre-wrap; overflow-wrap: anywhere; }
