:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Aptos", sans-serif;
  color: #321b2e;
  background: #f9f1f5;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 16rem; }
p { margin: 0; }

.shell {
  width: min(100% - 2.5rem, 35rem);
  margin: auto;
  padding: clamp(2rem, 7vw, 4.75rem) 0 2rem;
}

.intro { margin: 0 0 clamp(1.55rem, 5vw, 2.4rem); }
.kicker, .card-top {
  font-size: .875rem;
  font-weight: 720;
  letter-spacing: .14em;
}
.kicker { color: #80475f; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; margin: 0; }
h1 {
  font-size: clamp(3.7rem, 11vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.06em;
  margin: .64rem 0 1rem;
}
h1 em { display: block; color: #8b3d65; font-weight: 400; }
.intro-note { color: #614853; line-height: 1.48; font-size: 1.05rem; }

.voucher {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 16rem;
  padding: clamp(1.35rem, 5vw, 2.15rem);
  border: 1px solid #683052;
  border-radius: 1.3rem;
  color: #fff1f8;
  background: radial-gradient(ellipse at 103% 5%, #733257 0%, #3e1836 49%, #281029 85%);
  box-shadow: 0 .75rem 2rem #4c20331d;
}
.voucher::before, .voucher::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -9% -31% auto auto;
  width: 58%;
  height: 176%;
  border: 1px solid #ecafd55b;
  border-radius: 50%;
  transform: rotate(28deg);
}
.voucher::after { inset: -27% -35% auto auto; width: 69%; height: 211%; }
.card-top { display: flex; justify-content: space-between; align-items: center; color: #ffd3ea; }
.spark { font-size: 1.85rem; line-height: 1; }
.card-balance { margin: 1.7rem 0 1.25rem; }
.card-balance p:first-child { color: #eec5df; }
.balance {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 10vw, 4.4rem);
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.12;
  letter-spacing: -.04em;
  white-space: nowrap;
  margin-top: .18rem;
}
.meter { display: block; appearance: none; width: 100%; border: 0; border-radius: 99rem; background: #ffffff33; height: .32rem; overflow: hidden; accent-color: #f7aed3; }
.meter::-webkit-progress-bar { background: transparent; }
.meter::-webkit-progress-value { background: #f7aed3; border-radius: 99rem; }
.meter::-moz-progress-bar { background: #f7aed3; border-radius: 99rem; }
.original { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem; margin-top: .75rem; color: #eec5df; }
.original strong { color: #fff1f8; }

.activity { margin-top: clamp(1.75rem, 6vw, 2.7rem); }
.activity-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); letter-spacing: -.04em; }
button {
  color: #713450;
  background: #fff8fb;
  border: 1px solid #d9b6c8;
  border-radius: 99rem;
  font: inherit;
  font-size: .9rem;
  min-height: 2.75rem;
  padding: .45rem .95rem;
  cursor: pointer;
}
button:hover { background: #f5e1ed; }
button:focus-visible { outline: 2px solid #8b3d65; outline-offset: 3px; }
button:disabled { cursor: progress; opacity: .65; }
.purchases { list-style: none; margin: .85rem 0 0; padding: 0; border-top: 1px solid #e2cbd9; }
.purchase { display: flex; justify-content: space-between; align-items: center; gap: .6rem; border-bottom: 1px solid #e2cbd9; padding: .9rem .15rem; }
.purchase-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.notice { color: #614853; line-height: 1.55; margin-top: .78rem; }
.notice:empty { display: none; }
.timestamp, footer { color: #715768; font-size: .875rem; line-height: 1.4; }
.timestamp { margin-top: .7rem; }
footer { margin-top: 1.8rem; }
footer span { margin-inline: .2rem; }

@media (max-width: 23rem) {
  .shell { width: calc(100% - 1.75rem); }
  h1 { font-size: clamp(2.8rem, 10.6vw, 3.7rem); }
}

.access-panel, .admin, dialog {
  border-radius: 1rem;
  border: 1px solid #e6c8d8;
  background: #fff7fb;
  color: #321b2e;
  padding: clamp(1rem, 4vw, 1.5rem);
}
.access-panel { display: grid; gap: .75rem; }
.access-panel label { font-weight: 620; }
.access-code { width: 100%; min-height: 2.9rem; border: 1px solid #a8708b; border-radius: .6rem; padding: .5rem .8rem; font: inherit; color: inherit; background: #fff; }
.access-panel button { justify-self: start; }
.admin { margin-top: 1.75rem; }
.admin > button { margin: .8rem .25rem 0 0; }
dialog { width: min(33rem, calc(100% - 2rem)); }
dialog::backdrop { background: #2b1429a8; }
dialog p { line-height: 1.5; margin: .75rem 0 1.1rem; }
dialog form { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.primary { color: #fff7fb; background: #68274d; border-color: #68274d; }
.primary:hover { background: #4b1936; }
footer form { margin-top: .65rem; }
