:root {
  color-scheme: dark;
  --navy: #0a1628;
  --navy-soft: #0f1f3a;
  --gold: #c9a227;
  --gold-light: #f4d96b;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --border: rgba(255, 255, 255, 0.12);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--navy);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 50% -20%, rgba(39, 53, 212, 0.48), transparent 42%),
    linear-gradient(165deg, #0f2140 0%, var(--navy) 58%, #050b14 100%);
}

button {
  font: inherit;
}

.page-glow {
  position: fixed;
  z-index: 0;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}

.page-glow-left {
  top: 22%;
  left: -18rem;
  background: #3455ff;
}

.page-glow-right {
  right: -18rem;
  bottom: 8%;
  background: var(--gold);
}

.site-header,
.site-footer,
.promo-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, 70rem);
  margin: 0 auto;
  padding: 1.15rem 0;
}

.brand-logo {
  width: clamp(9rem, 28vw, 13rem);
  height: auto;
}

.anniversary-pill {
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(244, 217, 107, 0.5);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.1);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.promo-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 10rem);
  padding: 1rem;
}

.promo-card,
.scratch-card {
  width: min(100%, 25rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(10, 22, 40, 0.94);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 15rem;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(140deg, rgba(39, 53, 212, 0.95), rgba(10, 22, 40, 0.2)),
    repeating-linear-gradient(135deg, transparent 0 16px, rgba(255, 255, 255, 0.04) 16px 17px);
}

.hero-art::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(transparent, rgba(10, 22, 40, 0.72));
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: 82%;
  max-height: 13rem;
  object-fit: contain;
  filter: drop-shadow(0 1.1rem 1rem rgba(0, 0, 0, 0.36));
  transform: rotate(-7deg) translateY(1rem);
}

.hero-number {
  position: absolute;
  top: -1.9rem;
  left: 0.6rem;
  color: rgba(255, 255, 255, 0.09);
  font-size: 11rem;
  font-weight: 950;
  letter-spacing: -0.1em;
  line-height: 1;
}

.hero-years {
  position: absolute;
  top: 1.2rem;
  right: 1.25rem;
  padding-left: 0.45rem;
  border-left: 2px solid var(--gold-light);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.promo-copy,
.scratch-content {
  padding: 1.4rem;
}

.promo-copy {
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.promo-copy h1,
.scratch-heading h2,
.result-dialog h2 {
  margin: 0;
  line-height: 1.12;
}

.promo-copy h1 {
  font-size: 1.6rem;
}

.promo-copy > p:not(.eyebrow) {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.promo-copy strong,
.result-dialog strong {
  color: var(--gold-light);
}

.discount-banner,
.chance-banner {
  display: flex;
  flex-direction: column;
  margin: 1.1rem 0;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--navy-soft);
}

.discount-banner strong,
.chance-banner strong {
  color: var(--gold-light);
  font-size: 1.25rem;
  font-weight: 950;
}

.discount-banner span,
.chance-banner span {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
}

.primary-button {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.7rem;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0.7rem 1.8rem rgba(201, 162, 39, 0.18);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.045em;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.primary-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:focus-visible,
.text-button:focus-visible {
  outline: 3px solid rgba(244, 217, 107, 0.48);
  outline-offset: 3px;
}

.is-hidden {
  display: none;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--navy-soft);
}

.card-header img {
  width: 8.4rem;
}

.card-header span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.scratch-heading {
  margin-bottom: 1rem;
  text-align: center;
}

.scratch-heading h2 {
  font-size: 1.2rem;
}

.scratch-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--navy-soft);
  box-shadow: inset 0 0 2.5rem rgba(0, 0, 0, 0.24);
  isolation: isolate;
  touch-action: none;
}

.prize-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  background: radial-gradient(circle at center, rgba(39, 53, 212, 0.3), transparent 58%), var(--navy-soft);
  text-align: center;
}

.result-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  place-items: center;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  font-size: 1.55rem;
  box-shadow: 0 0 2rem rgba(201, 162, 39, 0.22);
}

.result-main {
  color: var(--gold-light);
  font-size: 1.45rem;
  font-weight: 950;
}

.result-subtitle {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.77rem;
}

#scratch-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.progress-row {
  display: grid;
  grid-template-columns: auto 1fr 2rem;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.66rem;
}

.progress-track {
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 100ms linear;
}

.progress-row strong {
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}

.scratch-instruction {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: center;
}

.text-button {
  display: block;
  margin: 0.35rem auto 0;
  padding: 0.35rem;
  border: 0;
  color: rgba(255, 255, 255, 0.54);
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.result-dialog {
  width: min(calc(100% - 2rem), 22rem);
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.58);
  text-align: center;
}

.result-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.result-dialog[open] {
  animation: dialog-in 220ms ease-out;
}

.dialog-icon {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  place-items: center;
  font-size: 1.65rem;
  font-weight: 900;
}

.dialog-icon.muted {
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
}

.dialog-icon.winner {
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 2rem rgba(201, 162, 39, 0.3);
}

.result-dialog h2 {
  font-size: 1.35rem;
}

.result-dialog > p:not(.eyebrow) {
  margin: 0.7rem 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.winner-percentage {
  margin: 1rem 0 0.6rem;
  color: var(--gold-light);
  font-size: 2.4rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1rem 1.4rem;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.65rem;
  text-align: center;
}

.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;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(0.7rem) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 48rem) {
  .promo-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    width: min(100%, 48rem);
  }

  .hero-art {
    min-height: 27rem;
  }

  .promo-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.1rem;
  }
}

@media (max-width: 24rem) {
  .site-header {
    width: min(100% - 1.2rem, 70rem);
  }

  .promo-shell {
    padding: 0.6rem;
  }

  .promo-copy,
  .scratch-content {
    padding: 1.1rem;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
