:root {
  --color-canvas: transparent;
  --color-surface-deep: #101b16;
  --color-surface-forest: #17281f;
  --color-rim-strong: #39e477;
  --color-rim-soft: #159a50;
  --color-text-primary: #ffffff;
  --color-signal-gold: #ffd62a;
  --color-signal-gold-shadow: #b78900;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --type-title: clamp(1.75rem, 7vw, 5rem);
  --motion-entry: 420ms;
  --motion-signal: 2s;
  --motion-rim: 2.8s;
  --motion-ease: cubic-bezier(.16, 1, .3, 1);
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  overflow-x: clip;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
}

.overlay-canvas {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  min-height: 100%;
  place-items: center;
  background: var(--color-canvas);
  overflow-x: clip;
}

.promo-card {
  position: relative;
  box-sizing: border-box;
  display: grid;
  width: min(94vw, 960px);
  min-width: 0;
  min-height: clamp(112px, 31.25vw, 300px);
  place-items: center;
  padding: clamp(var(--space-3), 3vw, var(--space-8));
  overflow: hidden;
  border: 2px solid var(--color-rim-strong);
  border-radius: clamp(var(--space-6), 4vw, var(--space-8));
  background: linear-gradient(135deg, var(--color-surface-forest), var(--color-surface-deep) 58%, var(--color-surface-forest));
  animation: promo-entry var(--motion-entry) var(--motion-ease) both;
}

.promo-card::before {
  position: absolute;
  inset: var(--space-2);
  border: 2px solid var(--color-rim-soft);
  border-radius: calc(clamp(var(--space-6), 4vw, var(--space-8)) - var(--space-2));
  content: "";
  pointer-events: none;
  opacity: .70;
  animation: promo-inner-rim-breathe var(--motion-rim) ease-in-out infinite;
}

.promo-card h1 {
  z-index: 1;
  max-width: 100%;
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--type-title);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.06em;
  text-align: center;
  text-wrap: balance;
  white-space: nowrap;
}

.discount-mark {
  position: absolute;
  top: var(--space-3);
  right: clamp(var(--space-3), 3vw, var(--space-6));
  z-index: 1;
  width: clamp(var(--space-6), 5vw, 52px);
  height: clamp(var(--space-6), 5vw, 52px);
  animation: promo-marker-signal var(--motion-signal) ease-in-out infinite;
}

.discount-mark__plate {
  fill: var(--color-surface-deep);
  stroke: var(--color-rim-soft);
  stroke-width: 4;
}

.discount-mark__bolt {
  fill: var(--color-signal-gold);
  stroke: var(--color-signal-gold-shadow);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

@keyframes promo-entry {
  from {
    opacity: 0;
    transform: translateY(var(--space-2));
  }

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

@keyframes promo-marker-signal {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.06);
  }
}

@keyframes promo-inner-rim-breathe {
  0%,
  100% {
    opacity: .70;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 359px) {
  .promo-card h1 {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-card,
  .discount-mark,
  .promo-card::before {
    animation: none;
    transform: none;
    opacity: 1;
  }
}
