.login-overlay,
.register-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 28, 40, 0.95);
}
.register-overlay {
  background: rgba(12, 16, 26, 0.65);
  backdrop-filter: blur(1.5px);
}
.login-overlay.active,
.register-overlay.active {
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-modal,
.register-modal {
  background: linear-gradient(-25deg, #171d2e 0%, #292e43 100%);
  border-radius: 18px;
  box-shadow: 0 8px 40px #000a;
  border: 0.5px solid #6778a4;
  padding: 48px 40px 32px 40px;
  width: 420px; /* was smaller, nu iets wijder */
  max-width: 95vw;
  color: #fff;
  text-align: center;
  position: relative;
  font-family: inherit;
}
.register-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  filter: brightness(0.85) saturate(0.9);
  transform: scale(1.01);
}
.login-modal h2,
.register-modal h2 {
  margin-top: 0;
  margin-bottom: 32px;
  font-size: 2em;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.login-modal .close-btn,
.register-modal .close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #ffb84a; /* geel/oranje zoals op de foto */
  font-size: 2em;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.login-modal .close-btn:hover,
.register-modal .close-btn:hover {
  opacity: 1;
  color: #ffd580;
}
.login-modal .login-options {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.login-modal .login-btn {
  width: 100%;
  min-width: 0;
  padding: 0 0 0 18px;
  height: 54px;
  font-size: 1.15rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  margin: 0;
}
.login-modal .login-btn img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}
.login-modal .login-btn span {
  flex: 1;
  text-align: left;
  margin-left: 12px;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.login-modal .login-btn.login-google {
  background: linear-gradient(90deg, #0052B7 0%, #0073E7 100%);
  color: #fff;
}
.login-modal .login-btn.login-google:hover {
  background: #c62828;
}
.login-modal .login-btn.login-twitch {
  background: linear-gradient(90deg, #6441a5 0%, #a084ee 100%);
  color: #fff;
}
.login-modal .login-btn.login-twitch:hover {
  background: #6e33c6;
}
.login-modal .login-btn.login-discord {
  background: #5865f2;
}
.login-modal .login-btn.login-discord:hover {
  background: #404eed;
}
.login-modal .login-btn.login-main {
  background: linear-gradient(90deg, #ffb347 0%, #ffcc80 100%);
  color: #181818;
  font-size: 1.2em;
  font-weight: 700;
  border-radius: 8px;
  height: 54px;
  margin-top: 32px;
  justify-content: center;
  box-shadow: 0 2px 8px #0002;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.login-modal .login-btn.login-main:hover {
  background: linear-gradient(90deg, #ffcc80 0%, #ffb347 100%);
  color: #23243a;
}

.register-modal {
  width: 520px;
}
.register-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}
.register-header h2 {
  margin-bottom: 0;
}
.register-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffd580;
}
.register-steps .step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #6778a4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b9c3dc;
}
.register-steps .step.is-active {
  border-color: #ffd580;
  color: #ffd580;
  box-shadow: 0 0 0 2px rgba(255, 213, 128, 0.15);
}
.register-steps .step-line {
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, #ffd580 0%, #48506a 100%);
}
.register-steps.is-step-2 .step-line {
  background: linear-gradient(90deg, #48506a 0%, #ffd580 100%);
}
.register-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}
.register-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: #e7edf7;
  text-align: left;
}
.register-check input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: #ffb347;
}
.register-btn {
  margin-top: 8px;
  background: linear-gradient(90deg, #ffb347 0%, #ffcc80 100%);
  border: none;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1d1d1d;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.register-btn:hover {
  background: linear-gradient(90deg, #ffcc80 0%, #ffb347 100%);
  color: #23243a;
}

/* ── Age Gate ────────────────────────────────────────────────────── */
.age-gate-overlay {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  height: 100dvh;
  background: rgba(8, 11, 22, 0.74);
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
}
.age-gate-overlay.active {
  display: flex;
}
.age-gate-modal {
  background: linear-gradient(180deg, rgba(46, 53, 80, 0.98) 0%, rgba(28, 34, 56, 0.99) 100%);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(103, 120, 164, 0.9);
  padding: 46px clamp(24px, 8vw, 120px) 38px;
  width: min(760px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  min-height: min(52vh, 520px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  font-family: inherit;
}
.age-gate-modal h2 {
  margin: 0 0 14px;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.08;
  color: #ffffff;
}
.age-gate-modal .age-gate-sub {
  max-width: 620px;
  margin: 0 auto 24px;
  color: rgba(214, 221, 239, 0.62);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}
.age-gate-btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #ffb347 0%, #ffcc80 100%);
  border: none;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.09em;
  color: #2d2d2d;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.age-gate-btn:hover {
  background: linear-gradient(90deg, #ffc46a 0%, #ffbb52 100%);
}
.age-gate-ads {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 0.94rem;
  color: rgba(214, 221, 239, 0.86);
  margin-top: 18px;
  cursor: pointer;
  font-style: italic;
  user-select: none;
}
.age-gate-ads input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ffb347;
  background: transparent;
  flex: 0 0 auto;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.14);
  transition: background 0.15s, border-color 0.15s;
}
.age-gate-ads input[type="checkbox"]:checked {
  background: transparent;
  border-color: #ffb347;
}
.age-gate-ads input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #ffb347;
}
.age-gate-disclaimer {
  font-size: 0.82em;
  color: #6778a4;
  margin: 16px 0 0;
}
.age-gate-confirm {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 10px 0 6px;
}

/* ── Under-18 Block Screen ───────────────────────────────────────── */
.age-block-overlay {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  height: 100dvh;
  background: #000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  overflow-y: auto;
}
.age-block-overlay.active {
  display: flex;
}
.age-block-overlay h1 {
  font-size: clamp(1.5rem, 4vw, 2.4em);
  font-weight: 900;
  color: #fff;
  margin: 0 0 16px;
  max-width: 700px;
}
.age-block-overlay p {
  color: #999;
  font-size: 1em;
  margin: 0;
}
.age-block-reset {
  margin-top: 28px;
  background: none;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 24px;
  color: #888;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.age-block-reset:hover {
  border-color: #ffb347;
  color: #ffb347;
}
body.age-gate-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .age-gate-overlay {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px;
  }

  .age-gate-modal {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    max-height: calc(100dvh - 24px);
    padding: 28px 18px 22px;
    margin: auto 0;
    overflow-y: auto;
  }

  .age-gate-modal h2 {
    font-size: 2rem;
    margin-bottom: 14px;
  }

  .age-gate-modal .age-gate-sub br {
    display: none;
  }

  .age-gate-modal .age-gate-sub {
    margin-bottom: 24px;
    font-size: 0.92rem;
  }

  .age-gate-btn {
    padding: 14px 12px;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
  }

  .age-gate-confirm {
    font-size: 0.88rem;
    margin-top: 12px;
  }

  .age-gate-ads {
    margin-top: 14px;
    font-size: 0.84rem;
    justify-content: center;
  }
}

/* ── Footer reset / ads toggle ─────────────────────────────────── */
.age-reset-link {
  background: none;
  border: none;
  padding: 0;
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.age-reset-link:hover {
  opacity: 1;
}

/* ── 18-23 restriction: hide casino banner promos & headlines ────── */
body.age-18-23 .cb-promos,
body.age-18-23 .casino-banner .cb-center h2 {
  display: none !important;
}
