/* ── 18+ age gate slide-down frame (no popup / modal) ── */
.age-gate-frame {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3500;
  transform: translateY(-110%);
  transition: transform 0.45s cubic-bezier(0.34, 1.25, 0.64, 1);
  pointer-events: none;
}
.age-gate-frame.open {
  transform: translateY(0);
  pointer-events: auto;
}

.age-gate-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: max(10px, env(safe-area-inset-top)) 14px 12px;
  border-bottom: 2px solid rgba(255, 193, 7, 0.45);
  background: linear-gradient(180deg, #1a1428 0%, #12101c 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.age-gate-copy {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.age-gate-copy strong {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text);
}
.age-gate-copy span {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 8px;
  border: 2px solid #e53935;
  color: #ff6b6b;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.age-gate-inner .age-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  flex: 0 1 140px;
}
.age-gate-inner .age-field span {
  font-size: 0.58rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.age-gate-inner .age-field input {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.95rem;
  width: 100%;
}
.age-gate-inner .age-field input:focus {
  outline: none;
  border-color: rgba(255, 193, 7, 0.5);
}

.age-gate-inner .btn-play {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.age-gate-error {
  font-size: 0.78rem;
  color: #ff6b6b;
  margin: 0 0 10px;
  min-height: 1.2em;
}
.age-gate-error[hidden] { display: none; }

.age-gate-inner .age-legal {
  width: 100%;
  font-size: 0.6rem !important;
  font-style: italic;
  margin: 0 !important;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 480px) {
  .age-gate-inner {
    padding-left: 10px;
    padding-right: 10px;
  }
  .age-gate-inner .btn-play {
    width: 100%;
  }
}





/* ── Auth screen (login / signup) ── */
#auth-screen {
  flex-direction: column;
  background: #080b10;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 77, 255, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(255, 193, 7, 0.12), transparent),
    linear-gradient(180deg, #0f1520, #080b10);
  pointer-events: none;
}

.auth-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
}

.auth-brand {
  text-align: center;
  margin-bottom: 20px;
}
.auth-brand .eco-tag { margin-bottom: 6px; }
.auth-brand h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #fff8e1, #ffc107, #ff8f00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-brand p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

.auth-card {
  width: min(440px, 100%);
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 27, 34, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.auth-tab.active {
  background: linear-gradient(180deg, rgba(255, 193, 7, 0.25), rgba(255, 143, 0, 0.15));
  color: var(--gold);
}

.auth-panel[hidden] { display: none !important; }

.auth-panel h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.auth-panel > p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.45;
}

.auth-providers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-screen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.auth-screen-btn:active { transform: scale(0.98); }
.auth-screen-btn.discord { border-color: rgba(88, 101, 242, 0.5); background: rgba(88, 101, 242, 0.15); }
.auth-screen-btn.telegram { border-color: rgba(42, 171, 238, 0.5); background: rgba(42, 171, 238, 0.12); }
.auth-screen-btn.google { border-color: rgba(255, 255, 255, 0.15); }
.auth-screen-btn.facebook { border-color: rgba(24, 119, 242, 0.45); background: rgba(24, 119, 242, 0.12); }

.auth-skip {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
.auth-skip button {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

.auth-18-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(139, 148, 158, 0.9);
}

.lobby-categories {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.lobby-categories::-webkit-scrollbar { display: none; }

.lobby-cat {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.15s;
}
.lobby-cat.active,
.lobby-cat:hover {
  border-color: rgba(255, 193, 7, 0.45);
  background: rgba(255, 193, 7, 0.12);
  color: var(--gold);
}

.menu-section.hidden-cat { display: none; }

.menu-header-premium .btn-auth-header {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 193, 7, 0.4);
  background: linear-gradient(180deg, rgba(255, 193, 7, 0.2), rgba(255, 143, 0, 0.1));
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.cover-18 {
  font-size: 0.72rem;
  color: #ff6b6b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 8px 0 4px;
}

.menu-header-premium .btn-auth-header.signed-in {
  border-color: rgba(105, 240, 174, 0.4);
  color: #69f0ae;
  background: rgba(46, 160, 67, 0.15);
}