:root {
  color-scheme: light;
  --paper: #fcfaf4;
  --canvas: #edece4;
  --ink: #102f27;
  --muted: #53645b;
  --line: #dce1d4;
  --green: #104537;
  --lime: #ddf29b;
  --berry: #8f2e42;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 70% 0%, #faf8ec 0%, transparent 66%);
}
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #59752e; outline-offset: 4px; }
.layout { width: min(1120px, calc(100% - 64px)); margin: auto; padding: 44px 0; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  font-size: .875rem;
}
header strong { display: inline-flex; align-items: center; gap: 10px; }
header strong span {
  display: grid;
  place-items: center;
  width: 33px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--green);
  color: var(--lime);
  font-size: 1.1rem;
}
header small {
  border: 1px solid #cfd5c6;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  font-weight: 650;
}
main {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  min-height: 590px;
  border: 1px solid #ffffffb5;
  border-radius: 32px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 70px #213c2e1c;
}
.cover {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 38px 42px 22px;
  background: radial-gradient(ellipse at 61% 74%, #20644d, #102f28 64%, #0b251f);
  color: #f6f7e9;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle, #e5f4b430 1px, transparent 1.4px) 0 0 / 24px 24px,
    linear-gradient(145deg, #5d8c3d20, transparent 64%);
  mask-image: linear-gradient(165deg, #0005, #000);
}
.eyebrow {
  margin: 0 0 13px;
  color: #c5df8c;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2 { margin: 0; line-height: .99; letter-spacing: -.065em; text-wrap: balance; }
h1 { font-size: clamp(3.3rem, 7.5vw, 6.15rem); font-weight: 780; }
h1 em { color: var(--lime); font-style: normal; }
h2 { font-size: clamp(2.12rem, 4.4vw, 3.65rem); font-weight: 750; }
.art {
  position: relative;
  width: min(100%, 370px);
  height: 292px;
  margin: auto auto 0;
  container-type: inline-size;
}
.art::before, .art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.art::before {
  width: 84%;
  aspect-ratio: 1;
  left: 8%;
  bottom: -4%;
  border-radius: 50%;
  background: radial-gradient(circle, #b4e88240, #b4e88212 54%, transparent 71%);
  box-shadow: inset 0 0 0 1px #cfefa221, inset 0 0 0 28px #103a3229, inset 0 0 0 29px #cfefa219;
}
.art::after {
  left: 16%;
  right: 13%;
  bottom: 6%;
  height: 12%;
  z-index: -1;
  border-radius: 50%;
  background: #051a14b5;
  filter: blur(13px);
}
.spark { position: absolute; color: var(--lime); line-height: 1; font-size: 1.8rem; }
.spark:nth-child(1) { left: 7%; top: 30%; }
.spark:nth-child(2) { right: 7%; top: 62%; font-size: 1.7rem; }
.spark:nth-child(3) { right: 12%; top: 12%; font-size: 2.7rem; }
.spark:nth-child(4) { left: 17%; bottom: 8%; font-size: .9rem; }
.gift {
  position: absolute;
  left: 25%;
  bottom: 12%;
  width: 50%;
  aspect-ratio: 1.18;
  overflow: visible;
  border-radius: 9px 9px 20px 20px;
  background:
    repeating-linear-gradient(134deg, #ffbcb329 0 1px, transparent 1px 18px),
    linear-gradient(112deg, #f47e7a, #cb4a57 58%, #aa3048);
  box-shadow: inset -8px -13px 24px #79182d54, inset 2px 0 #ffc2b5a1, 14px 22px 28px #051a1470;
  transform: rotate(-11deg);
  animation: float-gift 5s ease-in-out infinite;
}
.gift::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -8% -5% auto;
  height: 29%;
  border-radius: 8px;
  background: linear-gradient(105deg, #ff9b8f, #e36267 75%, #cd505c);
  box-shadow: inset 0 2px #ffbeb0b0, 0 5px 7px #85243b67;
}
.ribbon {
  position: absolute;
  z-index: 2;
  inset: -8% auto 0 42%;
  width: 17%;
  background: linear-gradient(90deg, #e6ab52, #ffeab2 73%, #ecc075);
  box-shadow: 3px 0 6px #771f3040;
}
.ribbon::before, .ribbon::after {
  content: "";
  position: absolute;
  bottom: 100%;
  width: 16cqw;
  height: 8.5cqw;
  border: max(5px, 1.9cqw) solid #f7d58b;
  box-shadow: inset 1px 2px #ffecd480, 1px 1px #c68945;
}
.ribbon::before { right: 48%; border-radius: 64% 68% 10% 59%; transform: rotate(18deg); }
.ribbon::after { left: 48%; border-radius: 68% 64% 59% 10%; transform: rotate(-18deg); }
.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 65px);
}
.panel .eyebrow { color: var(--berry); }
.intro, #status { line-height: 1.55; overflow-wrap: anywhere; }
.intro { margin: 19px 0 26px; max-width: 35ch; color: var(--muted); }
#status { margin: 16px 0 0; color: var(--berry); font-size: .9rem; }
#status:empty { display: none; }
.primary, .secondary, button.person {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 44px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 680;
  transition: background-color .2s, translate .2s, box-shadow .2s;
}
.primary {
  width: 100%;
  min-height: 54px;
  padding: 12px 17px;
  border: 0;
  background: var(--green);
  color: #fff;
}
.primary::after { content: "→"; color: var(--lime); font-size: 1.2em; }
.primary:hover { background: #1c5b47; box-shadow: 0 6px 16px #245d4a35; }
.primary:active, button.person:active, .secondary:active { translate: 0 1px; }
.secondary, button.person {
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: #fffdf7;
  color: var(--green);
}
.secondary:hover, button.person:hover { background: #edf4e6; }
#reset { color: var(--berry); border-color: #eccfd5; }
#reset:hover { background: #fae8eb; }
button:disabled { opacity: .6; cursor: wait; }
.link-list { display: grid; gap: 7px; margin-bottom: 18px; }
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 6px 6px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f2f4eb;
}
.link-row button { min-height: 38px; font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.recipient {
  margin: 0 0 20px;
  padding: 19px 15px;
  border: 1px solid #d9e6bc;
  border-radius: 15px;
  background: #eef6d8;
  color: var(--green);
  font-size: clamp(2.45rem, 6vw, 4.5rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
  animation: open-gift .5s ease-out both;
}
.revealed .gift { animation: open-gift .6s ease-out both; }
.revealed .gift::before, .revealed .ribbon { animation: lift-lid .65s ease-out both; }
.revealed .spark { animation: celebrate .65s ease-out both; }
@keyframes float-gift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes open-gift { from { scale: .85; opacity: .5; } to { scale: 1; opacity: 1; } }
@keyframes lift-lid { 50% { rotate: 7deg; } to { translate: 0 -15%; } }
@keyframes celebrate { 55% { scale: 1.65; } }

@media (max-width: 740px) {
  .layout { width: min(500px, calc(100% - 28px)); padding: 17px 0 24px; }
  header { margin-bottom: 13px; }
  main { grid-template-columns: 1fr; min-height: auto; border-radius: 24px; }
  .cover { padding: 25px 24px 13px; }
  h1 { font-size: clamp(2.85rem, 13vw, 4.6rem); }
  .art { width: min(72%, 250px); height: 180px; }
  .art::before { width: 73%; left: 13.5%; }
  .panel { padding: 29px 24px 34px; }
  .intro { margin: 13px 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.admin-login { display: grid; gap: 11px; }
.admin-login label { font-weight: 650; }
.admin-login input {
  min-height: 48px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
}
