:root {
  color-scheme: light;
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef5ff;
  color: #101c3b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background:
    radial-gradient(circle at 15% 8%, rgba(0, 91, 255, .22), transparent 24rem),
    radial-gradient(circle at 95% 88%, rgba(242, 40, 123, .16), transparent 24rem),
    linear-gradient(150deg, #f7faff 0%, #eaf3ff 52%, #fff3f8 100%);
}

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: max(24px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

.gift-card {
  position: relative;
  width: min(100%, 440px);
  overflow: hidden;
  text-align: center;
  padding: 30px 22px 24px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 32px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 26px 70px rgba(24, 67, 142, .17), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px);
}

h1 {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: .015em;
  margin: 0;
  font-size: clamp(2.8rem, 13vw, 4.5rem);
  font-weight: 950;
  line-height: .95;
  letter-spacing: -.095em;
}

h1 span:nth-child(1) { color: #005bff; }
h1 span:nth-child(2) { color: #f1117a; }
h1 span:nth-child(3) { color: #005bff; }
h1 span:nth-child(4) { color: #00a6ff; }

.barcode-shell {
  position: relative;
  min-height: 180px;
  margin: 24px auto 0;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid #dce7fa;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 61, 121, .1);
}

.barcode-shell[hidden],
#barcode[hidden] {
  display: none;
}

#barcode {
  display: block;
  width: 100%;
  max-width: 350px;
  max-height: 270px;
  object-fit: contain;
  image-rendering: auto;
}

.spark {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(3px);
  opacity: .23;
}
.spark-one { top: -95px; left: -50px; background: #2c7fff; }
.spark-two { right: -70px; bottom: -90px; background: #f62987; }

@media (max-width: 380px) {
  .gift-card { padding: 28px 16px 22px; border-radius: 26px; }
  .barcode-shell { padding: 13px; min-height: 155px; }
}
