/* Milkyshisha 2.0 — 18+ age notice. Scoped to #mks-age-gate. */
.mks-age-gate,
.mks-age-gate * {
  box-sizing: border-box;
}

.mks-age-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--bs-body-font-family, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.mks-age-gate.is-active,
.mks-age-gate--neutral {
  display: flex;
}

.mks-age-gate__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 26, 0.74);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.mks-age-gate__card {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: 40px 40px 30px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 32px 90px -28px rgba(2, 6, 23, 0.72);
  color: #0f172a;
  animation: mks-age-gate-in 0.24s ease-out both;
}

.mks-age-gate__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 55%, #db2777 100%);
}

.mks-age-gate--neutral .mks-age-gate__card::before {
  background: linear-gradient(90deg, #334155 0%, #0f172a 100%);
}

.mks-age-gate__brand {
  display: flex;
  align-items: center;
  margin: 0 0 18px;
}

.mks-age-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 14px 26px -14px rgba(79, 70, 229, 0.95);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.mks-age-gate--neutral .mks-age-gate__badge {
  background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
  box-shadow: 0 14px 26px -14px rgba(15, 23, 42, 0.8);
}

.mks-age-gate__eyebrow {
  margin: 0 0 8px;
  color: #6366f1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mks-age-gate--neutral .mks-age-gate__eyebrow {
  color: #64748b;
}

.mks-age-gate__title {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(26px, 4.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.14;
  overflow-wrap: break-word;
}

.mks-age-gate__text {
  margin: 0 0 24px;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.mks-age-gate__actions {
  display: grid;
  gap: 10px;
  margin: 0;
}

.mks-age-gate__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mks-age-gate__button--primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 12px 24px -14px rgba(79, 70, 229, 0.95);
  color: #ffffff;
}

.mks-age-gate__button--primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  box-shadow: 0 16px 28px -14px rgba(79, 70, 229, 0.95);
  transform: translateY(-1px);
}

.mks-age-gate__button--secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.mks-age-gate__button--secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.mks-age-gate__button:active {
  transform: translateY(0);
}

.mks-age-gate__button:focus-visible,
.mks-age-gate:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 3px;
}

.mks-age-gate__note {
  margin: 18px 0 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.55;
}

.mks-age-gate--neutral .mks-age-gate__note {
  margin-top: 20px;
}

html.mks-age-gate-open,
body.mks-age-gate-open {
  overflow: hidden !important;
}

@keyframes mks-age-gate-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  .mks-age-gate {
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  }

  .mks-age-gate__card {
    max-width: 100%;
    padding: 28px 20px 22px;
    border-radius: 20px;
  }

  .mks-age-gate__badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 20px;
  }

  .mks-age-gate__brand {
    margin-bottom: 15px;
  }

  .mks-age-gate__title {
    font-size: clamp(24px, 7.2vw, 30px);
    margin-bottom: 12px;
  }

  .mks-age-gate__text {
    margin-bottom: 20px;
    font-size: 15px;
  }

  .mks-age-gate__button {
    min-height: 50px;
    padding: 13px 18px;
    font-size: 15px;
  }
}

@media (max-width: 359px) {
  .mks-age-gate {
    padding-left: 10px;
    padding-right: 10px;
  }

  .mks-age-gate__card {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mks-age-gate__card {
    animation: none;
  }

  .mks-age-gate__button {
    transition: none;
  }
}
