/* TerraChat Age Gate (+18) */

/* Bloqueo de scroll en paginas con age-gate (solo cuando NO esta aceptado) */
body.tc-agegate-scope {
  overflow: hidden;
}
html.tc-agegate-ok body.tc-agegate-scope {
  overflow: auto;
}

/* Contenedor */
.tc-agegate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Cuando esta OK, ocultamos */
html.tc-agegate-ok .tc-agegate {
  display: none;
}

.tc-agegate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.tc-agegate__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  border: 1px solid rgba(0,0,0,0.12);
}

.tc-agegate__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #0b0f14;
}

.tc-agegate__logo {
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.tc-agegate__logo span {
  font-weight: 700;
  opacity: 0.85;
}

.tc-agegate__badge {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #d01616;
  color: #ffffff;
}

.tc-agegate__headline {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  padding: 18px 18px 8px 18px;
  color: #0b0f14;
}

.tc-agegate__body {
  padding: 0 18px 14px 18px;
  color: rgba(11,15,20,0.85);
  font-size: 14px;
  line-height: 1.5;
}

.tc-agegate__actions {
  padding: 12px 18px 18px 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.tc-agegate__remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px 0;
  font-size: 13px;
  color: rgba(11,15,20,0.85);
  user-select: none;
}

.tc-agegate__remember input {
  width: 16px;
  height: 16px;
}

.tc-agegate__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tc-agegate__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 44px;
}

.tc-agegate__btn--enter {
  flex: 1 1 260px;
  background: #d01616;
  color: #ffffff;
}

.tc-agegate__btn--enter:hover {
  filter: brightness(0.95);
}

.tc-agegate__btn--exit {
  flex: 1 1 140px;
  background: rgba(11,15,20,0.08);
  color: #0b0f14;
}

.tc-agegate__btn--exit:hover {
  background: rgba(11,15,20,0.12);
}

.tc-agegate__fine {
  padding: 0 18px 16px 18px;
  color: rgba(11,15,20,0.65);
  font-size: 12px;
  line-height: 1.4;
}

.tc-agegate__noscript {
  margin: 12px 18px 18px 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(208, 22, 22, 0.10);
  color: #0b0f14;
  font-size: 12px;
}

/* Accesibilidad */
.tc-agegate[aria-hidden="true"] {
  display: none;
}

/* Responsive */
@media (max-width: 420px) {
  .tc-agegate__headline {
    font-size: 18px;
  }
  .tc-agegate__buttons {
    flex-direction: column;
  }
  .tc-agegate__btn--enter,
  .tc-agegate__btn--exit {
    flex: 1 1 auto;
    width: 100%;
  }
}
