/* ════════════════════════════════════════════════════════════════
   gateway.css — Age Gate 18+ (mobile-first)
   Accent: --brand-red (#E50914)
   ════════════════════════════════════════════════════════════════ */

.gateway-body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow::before {
  content: '';
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 120vw);
  height: min(700px, 120vw);
  background:
    radial-gradient(circle, rgba(229, 9, 20, 0.22) 0%, transparent 52%),
    radial-gradient(circle at 30% 70%, rgba(178, 7, 16, 0.14) 0%, transparent 60%);
  filter: blur(80px);
  animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.gate {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  width: 100%;
}

.gate-card {
  width: 100%;
  max-width: 560px;
  background: rgba(20, 20, 24, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px var(--brand-glow),
    0 0 0 1px rgba(229, 9, 20, 0.12);
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

.gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--brand-red-dark) 25%,
    var(--brand-red) 50%,
    var(--brand-red-light) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.gate-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  filter: drop-shadow(0 0 18px var(--brand-glow));
  animation: pulse-logo 2.5s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.gate-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.gate-brand strong {
  color: var(--brand-red);
}

.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem auto 1rem;
  padding: 0.5rem 1rem;
  background: rgba(229, 9, 20, 0.14);
  border: 1.5px solid var(--brand-red);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-red-light);
}

.gate-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 8px var(--brand-red);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.45);
  }
}

.gate-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.gate-title strong {
  color: var(--brand-red);
}

.gate-warning {
  background: var(--brand-glow-sm);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.gate-warning-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-red-light);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.gate-warning-text {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.gate-declarations {
  text-align: left;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gate-decl {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.gate-decl i {
  flex-shrink: 0;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--success);
}

.gate-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out);
  user-select: none;
}

.gate-consent:hover {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.05);
}

.gate-consent.checked {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.08);
}

.gate-checkbox {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-hi);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
  margin-top: 1px;
}

.gate-consent.checked .gate-checkbox {
  background: var(--success);
  border-color: var(--success);
}

.gate-checkbox i {
  color: #fff;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gate-consent.checked .gate-checkbox i {
  opacity: 1;
}

.gate-consent-text {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.gate-consent-text strong {
  color: var(--ink);
  font-weight: 700;
}

.gate-consent-text a {
  color: var(--brand-red);
  text-decoration: underline;
}

.gate-consent-text a:hover {
  color: var(--brand-red-light);
}

.gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.gate-btn-enter {
  background: linear-gradient(135deg, var(--brand-red-dark), var(--brand-red));
  color: #fff;
  box-shadow: 0 8px 25px var(--brand-glow);
  position: relative;
  overflow: hidden;
}

.gate-btn-enter:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.45);
}

.gate-btn-enter:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px var(--brand-glow);
}

.gate-btn-enter:not(:disabled)::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.18);
  transform: skewX(-20deg);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  60%,
  100% {
    left: 125%;
  }
}

.gate-btn-leave {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

.gate-btn-leave:hover {
  background: #000;
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.gate-terms {
  font-size: 0.7rem;
  color: var(--ink-mute);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.gate-terms + .gate-terms {
  margin-bottom: 0;
}

.gate-lang {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  background: rgba(20, 20, 24, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.lang-btn {
  min-width: 36px;
  height: 32px;
  padding: 0 0.4rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: opacity var(--duration) var(--ease-out),
    background var(--duration) var(--ease-out);
  opacity: 0.5;
  background: none;
  border: none;
  cursor: pointer;
}

.lang-btn:hover {
  opacity: 1;
}

.lang-btn.active {
  opacity: 1;
  background: var(--brand-glow-sm);
  box-shadow: 0 0 12px var(--brand-glow);
  color: #fff;
}

@media (min-width: 600px) {
  .gate-card {
    padding: 2.5rem 2rem;
  }

  .gate-actions {
    flex-direction: row;
  }

  .gate-btn {
    flex: 1;
  }
}

@media (min-width: 860px) {
  .gate-card {
    padding: 3rem 2.5rem;
  }

  .gate-title {
    font-size: 2.25rem;
  }
}
