.npl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.npl-modal[hidden] {
  display: none;
}

.npl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 3, 26, 0.85);
  backdrop-filter: blur(6px);
}

.npl-modal__dialog {
  position: relative;
  z-index: 2;
  background: var(--npl-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 420px;
  padding: 28px;
  text-align: center;
}

/* Age modal */
.npl-age__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.npl-age__brand img {
  max-height: 40px;
}

.npl-age__title {
  font-size: 20px;
  margin: 0 0 10px;
  color: #fff;
}

.npl-age__text {
  color: var(--npl-text-muted);
  font-size: 13px;
  margin: 0 0 16px;
}

.npl-age__check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-radius: 10px;
  margin: 0 0 14px;
  text-align: left;
  font-size: 13px;
  color: var(--npl-text-muted);
}

.npl-age__check input {
  accent-color: var(--npl-pink);
}

.npl-age__terms {
  color: var(--npl-text-soft);
  font-size: 11.5px;
  margin: 0 0 18px;
  line-height: 1.55;
}

.npl-age__btn {
  width: 100%;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.npl-age__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* Cookie banner */
.npl-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;
}

.npl-cookie[hidden] {
  display: none;
}

.npl-cookie__inner {
  background: var(--npl-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.5);
  padding: 18px 20px;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.npl-cookie__body {
  flex-grow: 1;
  min-width: 240px;
}

.npl-cookie__title {
  font-size: 16px;
  margin: 0 0 4px;
  color: #fff;
}

.npl-cookie__text {
  font-size: 13px;
  color: var(--npl-text-muted);
  margin: 0;
  line-height: 1.5;
}

.npl-cookie__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.npl-cookie__btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s ease;
}

.npl-cookie__btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Game modal */
.npl-game-modal__dialog {
  max-width: 1080px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #0e052b;
}

.npl-game-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--npl-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.npl-game-modal__title {
  margin: 0;
  font-size: 16px;
  color: #fff;
}

.npl-game-modal__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.npl-game-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.npl-game-modal__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e052b;
}

.npl-game-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 600px) {
  .npl-cookie__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .npl-cookie__actions {
    justify-content: center;
  }
  .npl-game-modal__frame {
    aspect-ratio: 9 / 14;
  }
}
