/* =========================================================================
   ÄGE — ülekatted: vanusekontroll (agegate.js) ja soodushüpik (promo.js)
   Fail laetakse JS-i kaudu automaatselt igale lehele.
   ========================================================================= */

.agegate [hidden],
.promo-dock [hidden],
.promo-modal [hidden] {
  display: none !important;
}

body.ov-locked {
  overflow: hidden;
}

/* =========================================================================
   VANUSEKONTROLL
   ========================================================================= */
.agegate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(60, 0, 40, 0.75), transparent 70%),
    #07030a;
  color: var(--text);
  isolation: isolate;
}
.agegate:focus {
  outline: none;
}
.agegate.grain::after {
  position: fixed;
  z-index: 1;
}
.agegate__blobs {
  position: fixed;
}
.agegate__blobs > span {
  filter: blur(70px);
}
.agegate__inner {
  position: relative;
  z-index: 2;
  width: min(660px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}
.agegate__brand {
  width: 62px;
  height: auto;
  margin-bottom: clamp(14px, 4vh, 40px);
  opacity: 0.92;
}
.agegate__step {
  display: grid;
  justify-items: center;
  width: 100%;
}

/* Logo + 18+ tempel */
.agegate__logo-wrap {
  position: relative;
  width: min(390px, 74vw);
  margin-bottom: clamp(18px, 4vh, 34px);
}
.agegate__logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(255, 47, 168, 0.7)) drop-shadow(0 0 56px rgba(255, 47, 168, 0.4));
}
.agegate__stamp {
  position: absolute;
  top: -16%;
  right: -9%;
  width: clamp(62px, 17vw, 86px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #2a0420, #0b0109 70%);
  border: 2px solid var(--pink);
  box-shadow: 0 0 22px rgba(255, 47, 168, 0.7), inset 0 0 18px rgba(255, 47, 168, 0.35);
  transform: rotate(12deg);
}
.agegate__stamp::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 143, 214, 0.65);
  animation: ag-spin 16s linear infinite;
}
.agegate__stamp span {
  font-family: var(--font-condensed);
  font-size: clamp(1.35rem, 4.4vw, 1.95rem);
  line-height: 1;
  color: var(--pink-hot);
  text-shadow: var(--glow-text);
}

.agegate__q {
  font-size: clamp(1.6rem, 5vw, 2.7rem);
  line-height: 1.08;
  margin-bottom: 12px;
}
.agegate__q .neon {
  white-space: nowrap;
}
.agegate__q--sm {
  font-size: clamp(1.45rem, 4.2vw, 2.15rem);
}
.agegate__q:focus {
  outline: none;
}
.agegate__sub {
  color: var(--muted);
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  max-width: 46ch;
  margin-bottom: clamp(22px, 4vh, 32px);
}
.agegate__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.agegate__yes {
  min-width: 250px;
}
.agegate__no {
  min-width: 150px;
}
.agegate__fine {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 48ch;
  margin-top: clamp(20px, 4vh, 30px);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--faint);
  text-align: left;
}
.agegate__fine svg {
  flex: none;
  margin-top: 2px;
  color: var(--pink-soft);
}

/* „Ei ole“ samm */
.agegate__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}
.agegate__wave {
  width: 58px;
  height: 58px;
  color: var(--pink-hot);
  filter: drop-shadow(0 0 10px rgba(255, 47, 168, 0.8)) drop-shadow(0 0 28px rgba(255, 47, 168, 0.45));
  margin-bottom: 14px;
  transform-origin: 70% 85%;
  animation: ag-wave 2.4s ease-in-out infinite;
}
.agegate__games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}
.ag-game {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  text-align: left;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, box-shadow 0.3s;
}
.ag-game:hover {
  transform: translateY(-3px);
}
.ag-game--oled-semu:hover {
  border-color: rgba(111, 123, 255, 0.7);
  box-shadow: 0 0 34px rgba(111, 123, 255, 0.3);
}
.ag-game--vigur:hover {
  border-color: rgba(255, 31, 107, 0.7);
  box-shadow: 0 0 34px rgba(255, 31, 107, 0.3);
}
.ag-game__img img {
  width: 96px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.ag-game__txt {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.3;
}
.ag-game__txt strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
}
.ag-game__txt span {
  font-size: 0.8rem;
  color: var(--muted);
}
.ag-game__txt em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--pink-soft);
}
.ag-game__arrow {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.3s var(--ease-spring), color 0.2s;
}
.ag-game:hover .ag-game__arrow {
  transform: translateX(4px);
  color: var(--text);
}
.agegate__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.agegate__back:hover {
  color: var(--text);
  background: var(--surface);
}

/* Sisenemine */
.agegate.is-ready .agegate__brand {
  animation: ag-rise 0.8s var(--ease-out) 0.05s both;
}
.agegate.is-ready .agegate__logo {
  animation: ag-flicker 1.6s steps(1, end) 0.15s both, ag-float 6s ease-in-out 2s infinite;
}
.agegate.is-ready .agegate__stamp {
  animation: ag-stamp 0.8s var(--ease-spring) 0.9s both;
}
.agegate.is-ready .agegate__step--ask .agegate__q {
  animation: ag-rise 0.8s var(--ease-out) 0.4s both;
}
.agegate.is-ready .agegate__step--ask .agegate__sub {
  animation: ag-rise 0.8s var(--ease-out) 0.5s both;
}
.agegate.is-ready .agegate__step--ask .agegate__actions {
  animation: ag-rise 0.8s var(--ease-out) 0.6s both;
}
.agegate.is-ready .agegate__step--ask .agegate__fine {
  animation: ag-rise 0.8s var(--ease-out) 0.75s both;
}
.agegate__step.is-leaving {
  animation: ag-step-out 0.26s ease-in forwards;
}
.agegate__step.is-entering > * {
  animation: ag-rise 0.7s var(--ease-out) both;
}
.agegate__step.is-entering > :nth-child(2) {
  animation-delay: 0.06s;
}
.agegate__step.is-entering > :nth-child(3) {
  animation-delay: 0.12s;
}
.agegate__step.is-entering > :nth-child(4) {
  animation-delay: 0.18s;
}
.agegate__step.is-entering > :nth-child(5) {
  animation-delay: 0.24s;
}

/* Väljumine: sisu sähvatab ja paisub, neoonrõngas avab lehe */
.agegate.is-leaving .agegate__inner {
  animation: ag-out 0.6s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}
.agegate.is-leaving .agegate__logo {
  animation: ag-flash 0.5s ease-out forwards;
}
.agegate.is-fading {
  opacity: 0;
  transition: opacity 0.25s;
}
.agegate__ring {
  position: fixed;
  z-index: 3;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid #ff8fd6;
  box-shadow: 0 0 26px 8px rgba(255, 47, 168, 0.85), 0 0 90px 20px rgba(255, 47, 168, 0.35);
  pointer-events: none;
}

@keyframes ag-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}
@keyframes ag-step-out {
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
}
@keyframes ag-flicker {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  14% {
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  30% {
    opacity: 0.45;
  }
  34% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes ag-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-1.2deg);
  }
}
@keyframes ag-stamp {
  from {
    opacity: 0;
    transform: rotate(-40deg) scale(2.3);
  }
}
@keyframes ag-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ag-wave {
  0%,
  60%,
  100% {
    transform: rotate(0deg);
  }
  10%,
  30% {
    transform: rotate(14deg);
  }
  20%,
  40% {
    transform: rotate(-8deg);
  }
}
@keyframes ag-out {
  to {
    opacity: 0;
    transform: scale(1.14);
    filter: blur(10px);
  }
}
@keyframes ag-flash {
  30% {
    filter: brightness(2.4) drop-shadow(0 0 30px #ff4fbf) drop-shadow(0 0 90px #ff2fa8);
  }
  100% {
    filter: brightness(1.6) drop-shadow(0 0 40px #ff4fbf);
  }
}

@media (max-width: 560px) {
  .agegate__actions {
    flex-direction: column;
  }
  .agegate__actions .btn {
    width: 100%;
    min-width: 0;
  }
  .agegate__games {
    grid-template-columns: 1fr;
  }
  .agegate__fine {
    font-size: 0.78rem;
  }
}
@media (max-height: 640px) {
  .agegate__brand {
    display: none;
  }
  .agegate__logo-wrap {
    width: min(300px, 64vw);
  }
}

/* =========================================================================
   SOODUSHÜPIK — nurgakaart (teaser) ja pill
   ========================================================================= */
.promo-dock,
.promo-modal {
  --promo-ar: 16 / 9;
}
@media (max-width: 600px), (max-height: 500px) {
  .promo-dock,
  .promo-modal {
    --promo-ar: 2 / 1;
  }
}

.promo-dock {
  --dock-bottom: 24px;
  position: fixed;
  left: max(24px, env(safe-area-inset-left, 0px));
  bottom: calc(var(--dock-bottom) + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  pointer-events: none;
  transform: translateY(calc(-1 * var(--toast-lift, 0px)));
  transition: transform 0.45s var(--ease-out), bottom 0.45s var(--ease-out), opacity 0.3s, visibility 0.3s;
}
.promo-dock > * {
  pointer-events: auto;
}
body.is-locked .promo-dock {
  opacity: 0;
  visibility: hidden;
}
/* Peidetud: allakerimisel (mobiil) või kui kaart kataks lehe põhinuppe (promo.js → syncDock) */
.promo-dock.is-tucked {
  translate: 0 calc(100% + 40px);
  opacity: 0;
  visibility: hidden;
}
.promo-dock.is-tucked > *,
.promo-dock.is-waiting > * {
  pointer-events: none;
}
/* Teaser ootab, kuni nurgas on vaba ruum (nt hero hind ja tellimisnupp on vaatest väljas) */
.promo-dock.is-waiting {
  visibility: hidden;
  transition: none;
}
.promo-dock {
  transition: transform 0.45s var(--ease-out), translate 0.45s var(--ease-out), bottom 0.45s var(--ease-out), opacity 0.3s, visibility 0.3s;
}
@media (max-width: 900px), (max-height: 500px) {
  .promo-dock {
    --dock-bottom: 14px;
    left: max(12px, env(safe-area-inset-left, 0px));
  }
}

/* --- Teaser --- */
.promo-teaser {
  position: relative;
  width: 236px;
  opacity: 0;
  transform: translate(-40px, 70px) rotate(-10deg) scale(0.7);
  transform-origin: 15% 100%;
  transition: opacity 0.35s ease, transform 0.9s var(--ease-spring);
}
.promo-teaser.is-in {
  opacity: 1;
  transform: none;
}
.promo-teaser.is-out {
  opacity: 0;
  transform: translate(-6px, 34px) scale(0.35);
  transition: opacity 0.32s ease 0.05s, transform 0.38s cubic-bezier(0.5, 0, 0.75, 0);
}
.promo-teaser.is-launched {
  opacity: 0 !important;
  visibility: hidden;
  transition: none !important;
}
.promo-teaser__card {
  display: block;
  width: 100%;
  padding: 5px;
  border-radius: 22px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #1c0718, #10040e) padding-box,
    linear-gradient(140deg, #ff6ac6, #8b2cff 45%, #ff2fa8 100%) border-box;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 36px rgba(255, 47, 168, 0.42);
  text-align: left;
  color: var(--text);
  animation: promo-float 6s ease-in-out 1.2s infinite;
  transition: scale 0.4s var(--ease-spring), box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.promo-teaser__card:hover {
  scale: 1.04;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6), 0 0 56px rgba(255, 47, 168, 0.65);
}
.promo-teaser__card:active {
  scale: 0.98;
}
.promo-teaser__card:focus-visible {
  outline-offset: 4px;
  border-radius: 22px;
}
.promo-teaser__media {
  position: relative;
  display: block;
  aspect-ratio: var(--promo-ar);
  border-radius: 17px;
  overflow: hidden;
  background: #0b0109;
}
.promo-teaser__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.7);
  transition: transform 0.7s var(--ease-out);
}
.promo-teaser__card:hover .promo-teaser__media img {
  transform: scale(1.85);
}
.promo-teaser__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: promo-shine 5s ease-in-out 1.6s infinite;
  pointer-events: none;
}
.promo-teaser__txt {
  display: grid;
  gap: 1px;
  padding: 9px 10px 6px;
  line-height: 1.2;
}
.promo-teaser__txt strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.promo-teaser__txt em {
  font-style: normal;
  color: var(--pink-hot);
  text-shadow: var(--glow-text);
}
.promo-teaser__txt > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.promo-tap {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--pink-hot);
}

/* Kleeps „−15%“ */
.promo-sticker {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ff8fd6 0%, #ff2fa8 48%, #c4007f 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  pointer-events: none;
}
.promo-sticker b {
  position: relative;
  z-index: 1;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(110, 0, 60, 0.6);
}
.promo-sticker--teaser {
  top: -18px;
  right: -14px;
  width: 64px;
  height: 64px;
  rotate: 12deg;
  box-shadow: 0 0 0 3px #12040f, 0 0 26px rgba(255, 47, 168, 0.9);
  animation: promo-pulse 1.9s ease-in-out infinite;
}
.promo-sticker--teaser b {
  font-size: 0.98rem;
}
.promo-sticker--teaser::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--pink-hot);
  animation: promo-ripple 1.9s ease-out infinite;
}
.promo-teaser__close {
  position: absolute;
  top: -12px;
  left: -12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1c0718;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  transition: background 0.2s, color 0.2s, transform 0.25s var(--ease-spring);
}
.promo-teaser__close::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}
.promo-teaser__close .icon {
  width: 14px;
  height: 14px;
}
.promo-teaser__close:hover {
  background: var(--pink);
  color: #fff;
  transform: rotate(90deg);
}

/* --- Pill --- */
.promo-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 18px 0 7px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #1c0718, #10040e) padding-box,
    linear-gradient(140deg, #ff6ac6, #8b2cff 45%, #ff2fa8 100%) border-box;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 26px rgba(255, 47, 168, 0.42);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: scale 0.35s var(--ease-spring), box-shadow 0.3s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.promo-pill:hover {
  scale: 1.06;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 47, 168, 0.7);
}
.promo-pill__gift {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: var(--glow-sm);
}
.promo-pill__gift svg {
  width: 18px;
  height: 18px;
  animation: promo-gift 3.6s ease-in-out 1s infinite;
}
.promo-pill.is-pop {
  animation: promo-pop 0.7s var(--ease-spring);
}
.promo-pill.is-launched {
  opacity: 0;
  pointer-events: none;
}

/* Telefon (ka rõhtpaigutuses): väiksem nurgakaart */
@media (max-width: 600px), (max-height: 500px) {
  .promo-teaser {
    width: 184px;
  }
  .promo-teaser__card {
    padding: 4px;
    border-radius: 19px;
  }
  .promo-teaser__media {
    border-radius: 15px;
  }
  .promo-teaser__txt {
    padding: 7px 8px 4px;
  }
  .promo-teaser__txt strong {
    font-size: 0.9rem;
  }
  .promo-teaser__txt > span {
    font-size: 0.74rem;
  }
  .promo-sticker--teaser {
    width: 54px;
    height: 54px;
    top: -16px;
    right: -10px;
  }
  .promo-sticker--teaser b {
    font-size: 0.84rem;
  }
  .promo-pill {
    height: 46px;
    font-size: 0.92rem;
  }
  .promo-pill__gift {
    width: 32px;
    height: 32px;
  }
}

/* =========================================================================
   SOODUSHÜPIK — modaal
   ========================================================================= */
.promo-backdrop {
  z-index: 105;
  background:
    radial-gradient(70% 60% at 50% 48%, rgba(90, 0, 58, 0.45), transparent 75%),
    rgba(4, 0, 6, 0.78);
}
.promo-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255, 90, 200, 0.55), rgba(255, 47, 168, 0.12) 40%, transparent 65%);
  opacity: 0;
  pointer-events: none;
}
.promo-backdrop.is-flash::after {
  animation: promo-bd-flash 1s ease-out;
}
.promo-modal {
  z-index: 110;
}
.promo-panel {
  display: flex;
  flex-direction: column;
  width: min(470px, 100%);
  overflow: hidden;
  padding: 0;
  border-color: rgba(255, 143, 214, 0.32);
  background: linear-gradient(180deg, #1a0716 0%, #10040e 55%, #0b0309 100%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 47, 168, 0.1), 0 0 100px rgba(255, 47, 168, 0.3);
  transition: none;
  will-change: transform;
}
.promo-panel:focus {
  outline: none;
}
.promo-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 143, 214, 0.35) transparent;
}
.promo-close {
  top: 12px;
  right: 12px;
  background: rgba(7, 3, 10, 0.6);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s, background 0.2s, transform 0.25s var(--ease-spring);
}
.promo-close:hover {
  background: var(--pink);
  border-color: transparent;
  transform: rotate(90deg);
}

/* Pilt ülal */
.promo-top {
  position: relative;
}
.promo-hero {
  position: relative;
  aspect-ratio: var(--promo-ar);
  overflow: hidden;
  background: #050105;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, 0.55) 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, 0.55) 80%, transparent 100%);
}
.promo-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
}
.promo-hero__flash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 110, 205, 0.7) 22%, rgba(255, 47, 168, 0.25) 45%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.promo-hero.is-flash .promo-hero__flash {
  animation: promo-flash 0.9s ease-out;
}
.promo-hero.is-flash .promo-hero__img {
  animation: promo-neon 1.1s ease-out;
}
.promo-hero__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 3, 10, 0.62);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}
.promo-hero__tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: promo-blink 1.6s ease-in-out infinite;
}
.promo-sticker--hero {
  right: 18px;
  bottom: -36px;
  z-index: 3;
  width: 106px;
  height: 106px;
  rotate: -10deg;
  box-shadow: 0 0 0 4px #1a0716, 0 0 34px rgba(255, 47, 168, 0.85), 0 12px 30px rgba(0, 0, 0, 0.5);
}
.promo-sticker--hero b {
  font-size: 1.42rem;
}
.promo-sticker__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: ag-spin 18s linear infinite;
}
.promo-sticker__ring text {
  font-family: var(--font-display);
  font-size: 8.4px;
  font-weight: 800;
  letter-spacing: 0.08em;
  fill: rgba(255, 255, 255, 0.92);
}
/* Lennu ajal on näha ainult pilt; kleeps „templitakse“ peale maandumisel */
.promo-modal.is-flying .promo-close,
.promo-modal.is-flying .promo-hero__tag {
  opacity: 0;
  transition: none;
}
.promo-modal:not(.is-landed) .promo-sticker--hero {
  opacity: 0;
}
.promo-modal.is-landed .promo-sticker--hero {
  animation: promo-stamp 0.8s var(--ease-spring) both;
}

/* Sisu */
.promo-body {
  position: relative;
  padding: 18px clamp(20px, 5vw, 32px) clamp(20px, 5vw, 28px);
}
.promo-step {
  display: grid;
  gap: 12px;
}
.promo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-soft);
  padding-right: 110px;
}
.promo-kicker__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  animation: promo-dot 1.8s ease-out infinite;
}
.promo-title {
  font-size: clamp(1.45rem, 5vw, 1.95rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.promo-title:focus {
  outline: none;
}
.promo-title__pct {
  color: var(--pink-hot);
  text-shadow: var(--glow-text);
  white-space: nowrap;
}
.promo-lead {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.promo-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.promo-perks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
}
.promo-perks .icon {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  color: var(--ok);
  background: rgba(61, 255, 168, 0.12);
}

/* Vorm */
.promo-form {
  position: relative;
  margin-top: 4px;
}
.promo-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.promo-form__row {
  position: relative;
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s, box-shadow 0.25s;
}
.promo-form__row:hover {
  border-color: rgba(255, 143, 214, 0.45);
}
.promo-form__row:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 47, 168, 0.18), 0 0 34px rgba(255, 47, 168, 0.22);
}
.promo-form__row:has([aria-invalid='true']) {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 90, 110, 0.15);
}
.promo-form__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  translate: 0 -50%;
  color: var(--faint);
  pointer-events: none;
  transition: color 0.2s;
}
.promo-form__row:focus-within .promo-form__icon {
  color: var(--pink-soft);
}
.promo-form__icon .icon {
  width: 18px;
  height: 18px;
}
.promo-form__input,
.promo-form__input:hover,
.promo-form__input:focus {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 10px 0 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  box-shadow: none;
}
.promo-form__input[aria-invalid='true'] {
  box-shadow: none;
}
.promo-form__btn {
  flex: none;
  min-height: 50px;
  padding: 0 22px;
}
.promo-form__btn.is-loading {
  opacity: 1;
}
.promo-form__btn.is-loading .promo-form__btn-txt {
  opacity: 0.75;
}
.promo-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: ag-spin 0.7s linear infinite;
}
.promo-form__btn.is-loading .promo-spinner {
  display: block;
}
.promo-form__err {
  min-height: 0;
  padding: 0 18px;
}
.promo-form__err:not(:empty) {
  margin-top: 8px;
}
.promo-consent {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--faint);
}
.promo-consent a {
  color: var(--pink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.promo-later {
  justify-self: center;
  min-height: 44px;
  margin-top: -4px;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.promo-later:hover {
  color: var(--muted);
}

/* Sisu ilmub järjest */
.promo-step [data-stagger] {
  opacity: 0;
}
.promo-step.is-in [data-stagger] {
  opacity: 1;
  animation: promo-rise 0.62s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 65ms + 40ms);
}

/* Kraapekaart */
.promo-step--code .promo-kicker {
  padding-right: 110px;
}
.scratch {
  position: relative;
  height: 140px;
  margin-top: 2px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 143, 214, 0.25);
}
.scratch__ticket {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  text-align: center;
  border-radius: inherit;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(255, 47, 168, 0.28), transparent 60%),
    linear-gradient(180deg, #240a1f, #0e030c);
}
.scratch__ticket::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  border: 1.5px dashed rgba(255, 143, 214, 0.35);
  pointer-events: none;
}
.scratch__label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink-soft);
}
.scratch__code {
  display: flex;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 9vw, 2.75rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 47, 168, 0.9), 0 0 40px rgba(255, 47, 168, 0.5);
  user-select: all;
}
.scratch__code span {
  display: inline-block;
}
.promo-step.is-revealed .scratch__code span {
  animation: promo-letter 0.75s var(--ease-spring) both;
  animation-delay: calc(var(--k) * 70ms + 120ms);
}
.scratch__meta {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}
.scratch__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  touch-action: none;
  border-radius: inherit;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='15' fill='%23ffd34d' stroke='%23b8860b' stroke-width='2'/%3E%3Ccircle cx='18' cy='18' r='10.5' fill='none' stroke='%23e0a800' stroke-width='1.5'/%3E%3Ctext x='18' y='23' text-anchor='middle' font-family='Arial' font-weight='900' font-size='13' fill='%23a66f00'%3E%E2%82%AC%3C/text%3E%3C/svg%3E") 18 18, crosshair;
  transition: opacity 0.6s ease, transform 0.7s var(--ease-out);
}
.scratch.is-cleared .scratch__canvas {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}
.scratch:not(.is-scratching):not(.is-cleared)::after {
  content: '';
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 8px;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11.5V5a1.5 1.5 0 0 1 3 0v5.5'/%3E%3Cpath d='M12 10V8.5a1.5 1.5 0 0 1 3 0V11'/%3E%3Cpath d='M15 10.5a1.5 1.5 0 0 1 3 0V15a6 6 0 0 1-6 6h-.6a6 6 0 0 1-4.6-2.2L4.3 15.6a1.6 1.6 0 0 1 2.4-2.1L9 15.5'/%3E%3Cpath d='M5.5 4.5 4 3M14.5 3.5 16 2'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  animation: promo-hand 2.4s ease-in-out infinite;
}
.promo-reveal {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--line-strong);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.promo-reveal:hover {
  color: var(--text);
  border-color: var(--pink-soft);
  background: var(--surface);
}
.promo-reveal__spark svg {
  width: 13px;
  height: 13px;
  color: var(--pink-soft);
}
.promo-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
  animation: promo-rise 0.55s var(--ease-out) backwards;
}
.promo-actions .btn {
  min-height: 54px;
  padding-inline: 16px;
}
.promo-actions__copy.is-done {
  border-color: var(--ok);
  color: var(--ok);
}
.promo-small {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--faint);
  text-align: center;
}

@media (max-width: 600px) {
  .promo-modal {
    padding: 12px;
  }
  .promo-panel {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  .promo-body {
    padding: 14px 18px 18px;
  }
  .promo-step {
    gap: 10px;
  }
  .promo-sticker--hero {
    width: 84px;
    height: 84px;
    right: 14px;
    bottom: -26px;
  }
  .promo-sticker--hero b {
    font-size: 1.14rem;
  }
  .promo-sticker__ring text {
    font-size: 8.8px;
  }
  .promo-kicker,
  .promo-step--code .promo-kicker {
    padding-right: 88px;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }
  .promo-title {
    font-size: clamp(1.32rem, 6.4vw, 1.6rem);
  }
  .promo-lead {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .promo-perks {
    gap: 6px 12px;
  }
  .promo-perks li {
    font-size: 0.78rem;
  }
  .promo-hero__tag {
    top: 12px;
    left: 12px;
  }
  .scratch {
    height: 128px;
  }
}
@media (max-width: 400px) {
  .promo-form__row {
    flex-direction: column;
    border-radius: 22px;
  }
  .promo-form__icon {
    top: 30px;
  }
  .promo-form__btn {
    width: 100%;
  }
  .promo-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-height: 560px) and (max-width: 900px) {
  .promo-perks {
    display: none;
  }
}

/* Konfeti lõuend */
.promo-fx {
  position: fixed;
  inset: 0;
  z-index: 130;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Animatsioonid ---------- */
@keyframes promo-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  22% {
    transform: translateY(-7px) rotate(-0.8deg);
  }
  44% {
    transform: translateY(0) rotate(0deg);
  }
  58% {
    transform: translateY(-3px) rotate(-3.5deg);
  }
  64% {
    transform: translateY(-3px) rotate(3deg);
  }
  70% {
    transform: translateY(-2px) rotate(-2deg);
  }
  76% {
    transform: translateY(0) rotate(0.6deg);
  }
  82% {
    transform: translateY(0) rotate(0deg);
  }
}
@keyframes promo-shine {
  0% {
    transform: translateX(-130%);
  }
  28%,
  100% {
    transform: translateX(130%);
  }
}
@keyframes promo-pulse {
  0%,
  100% {
    scale: 1;
  }
  50% {
    scale: 1.1;
  }
}
@keyframes promo-ripple {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(1.65);
    opacity: 0;
  }
}
@keyframes promo-pop {
  0% {
    scale: 0.3;
    opacity: 0;
  }
  60% {
    scale: 1.12;
    opacity: 1;
  }
  100% {
    scale: 1;
  }
}
@keyframes promo-gift {
  0%,
  70%,
  100% {
    transform: rotate(0deg);
  }
  76% {
    transform: rotate(-16deg) scale(1.1);
  }
  82% {
    transform: rotate(14deg) scale(1.1);
  }
  88% {
    transform: rotate(-8deg);
  }
}
@keyframes promo-bd-flash {
  0% {
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes promo-flash {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}
@keyframes promo-neon {
  0% {
    filter: brightness(1);
  }
  18% {
    filter: brightness(2.1) saturate(1.5);
  }
  100% {
    filter: brightness(1);
  }
}
@keyframes promo-stamp {
  0% {
    opacity: 0;
    scale: 2.2;
    rotate: -60deg;
  }
  100% {
    opacity: 1;
    scale: 1;
    rotate: -10deg;
  }
}
@keyframes promo-blink {
  50% {
    opacity: 0.35;
  }
}
@keyframes promo-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 47, 168, 0.75);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(255, 47, 168, 0);
  }
}
@keyframes promo-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes promo-letter {
  0% {
    transform: none;
  }
  40% {
    transform: translateY(-12px) scale(1.18);
    color: #ffd1ee;
  }
  100% {
    transform: none;
  }
}
@keyframes promo-hand {
  0%,
  100% {
    transform: translateX(-70px) rotate(-12deg);
  }
  50% {
    transform: translateX(50px) rotate(10deg);
  }
}

/* ---------- Vähendatud liikumine ---------- */
@media (prefers-reduced-motion: reduce) {
  .promo-step [data-stagger] {
    opacity: 1;
  }
  .promo-teaser,
  .promo-teaser.is-in,
  .promo-teaser.is-out {
    transform: none;
  }
  .promo-teaser__card,
  .promo-teaser__shine,
  .promo-sticker,
  .promo-sticker::after,
  .promo-sticker__ring,
  .promo-pill__gift svg,
  .agegate__logo,
  .agegate__stamp::before,
  .agegate__wave,
  .scratch::after {
    animation: none !important;
  }
  .scratch:not(.is-scratching):not(.is-cleared)::after {
    display: none;
  }
  /* base.css annab igale elemendile 0.01ms ülemineku — ka päritud visibility'le. Siis oleks
     e-posti väli avamise hetkel veel „hidden“ ja fookust ei saaks dialoogi viia. */
  .promo-modal,
  .promo-modal * {
    transition: none !important;
  }
}

@media (max-width: 380px) {
  .ag-game {
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    padding: 10px 12px 10px 10px;
  }
  .ag-game__img img {
    width: 72px;
    height: 52px;
  }
}

/* =========================================================================
   Rõhtpaigutusega telefon (nt 844×390): kõik oluline peab mahtuma esimesse vaatesse
   ========================================================================= */
@media (max-height: 500px) and (orientation: landscape) {
  /* Vanusekontroll: logo vasakul, küsimus ja nupud paremal */
  .agegate {
    padding: max(14px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  }
  .agegate__inner {
    width: min(820px, 100%);
  }
  .agegate__brand {
    display: none;
  }
  .agegate__step--ask {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-areas:
      'logo q'
      'logo sub'
      'logo actions'
      'logo fine';
    column-gap: clamp(20px, 4vw, 40px);
    align-items: center;
    justify-items: start;
    text-align: left;
  }
  .agegate__step--ask .agegate__logo-wrap {
    grid-area: logo;
    width: min(260px, 100%);
    margin: 0;
    justify-self: center;
  }
  .agegate__step--ask .agegate__q {
    grid-area: q;
    font-size: clamp(1.3rem, 3.6vw, 1.75rem);
    margin-bottom: 6px;
  }
  .agegate__step--ask .agegate__sub {
    grid-area: sub;
    margin-bottom: 14px;
    font-size: 0.92rem;
  }
  .agegate__step--ask .agegate__actions {
    grid-area: actions;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .agegate__step--ask .agegate__actions .btn {
    width: auto;
    min-width: 0;
  }
  .agegate__yes {
    flex: 1 1 auto;
  }
  .agegate__step--ask .agegate__fine {
    grid-area: fine;
    justify-content: flex-start;
    margin-top: 12px;
    font-size: 0.76rem;
  }
  .agegate__stamp {
    width: 58px;
  }
  .agegate__games {
    grid-template-columns: 1fr 1fr;
  }
  .agegate__wave {
    width: 42px;
    height: 42px;
    margin-bottom: 6px;
  }

  /* Soodushüpik: pilt vasakul, vorm paremal — pealkiri, e-post ja nupp on kohe näha */
  .promo-modal {
    padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .promo-panel {
    width: min(780px, 100%);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }
  .promo-scroll {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
  }
  .promo-top {
    position: sticky;
    top: 0;
    align-self: stretch;
  }
  .promo-hero {
    aspect-ratio: auto;
    height: 100%;
    min-height: 220px;
    -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
  }
  .promo-sticker--hero {
    right: 10px;
    bottom: 24px;
    width: 84px;
    height: 84px;
  }
  .promo-sticker--hero b {
    font-size: 1.14rem;
  }
  .promo-body {
    padding: 16px 22px 16px 10px;
  }
  .promo-step {
    gap: 8px;
  }
  .promo-kicker,
  .promo-step--code .promo-kicker,
  .promo-title {
    padding-right: 48px;
  }
  .promo-title {
    font-size: 1.35rem;
  }
  .promo-lead {
    font-size: 0.86rem;
    line-height: 1.45;
  }
  .promo-perks {
    display: none;
  }
  .promo-form__row {
    flex-direction: row;
    border-radius: var(--radius-pill);
  }
  .promo-form__icon {
    top: 50%;
  }
  .promo-form__input,
  .promo-form__btn {
    min-height: 46px;
  }
  .promo-form__btn {
    width: auto;
    padding-inline: 16px;
  }
  .promo-later {
    margin-top: -6px;
  }
  .scratch {
    height: 108px;
  }
  .promo-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .promo-actions .btn {
    min-height: 48px;
    padding-inline: 12px;
    gap: 8px;
    font-size: 0.86rem;
  }
}
