/*!
 * Teamz Lab games — neutral age screen (paired with tz-game-age-gate.js).
 * Shown ONCE on first launch when a game opts in (window.TZ_AGE_GATE) AND is in
 * the native app. Asks year of birth so under-16 players get non-personalized,
 * age-appropriate ads (Families / GDPR-K). Neutral by design — no "are you 13+?".
 * Dark by default; light when html has data-theme="light".
 */

.tz-agegate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600; /* above everything, incl. the loader */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 20, 0.88);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.tz-agegate-card {
  width: min(360px, 92vw);
  background: #141a26;
  color: #e8edf7;
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.tz-agegate-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
}

.tz-agegate-sub {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.72;
  margin-bottom: 18px;
}

.tz-agegate-input {
  width: 100%;
  box-sizing: border-box;
  font: 700 22px/1 inherit;
  text-align: center;
  letter-spacing: 0.18em;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  outline: none;
}

.tz-agegate-input:focus {
  border-color: #4a86e8;
}

.tz-agegate-err {
  min-height: 16px;
  font-size: 12.5px;
  color: #f87171;
  margin: 8px 0 4px;
}

.tz-agegate-btn {
  width: 100%;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  padding: 13px;
  border-radius: 12px;
  border: none;
  background: #1d4ed8;
  color: #fff;
  cursor: pointer;
}

.tz-agegate-btn:active {
  transform: translateY(1px);
}

/* Light theme */
html[data-theme="light"] .tz-agegate-overlay {
  background: rgba(15, 23, 42, 0.55);
}
html[data-theme="light"] .tz-agegate-card {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}
html[data-theme="light"] .tz-agegate-input {
  border-color: rgba(15, 23, 42, 0.18);
  background: #f6f8fc;
}
