.age-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-modal.hidden {
  display: none;
}

.age-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
}

.age-modal-content {
  position: relative;
  background: #0c0c3a;
  border: 2px solid #0558ff;
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  z-index: 1;
}

.age-modal-logo {
  max-height: 50px;
  width: auto;
  margin: 0 auto 24px;
}

.age-modal-content h2 {
  font-family: var(--font-orbitron);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-white);
  margin-bottom: 16px;
}

.age-modal-subtitle {
  font-family: var(--font-poppins);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: 24px;
}

.age-modal-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
}

.age-modal-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  border: 2px solid #0558ff;
  border-radius: 4px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
}

.age-modal-checkbox input[type="checkbox"]:checked {
  background: #0558ff;
}

.age-modal-checkbox span {
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-white);
}

.age-modal-error {
  font-family: var(--font-poppins);
  font-size: 14px;
  color: #ff4444;
  margin-bottom: 12px;
  display: none;
}

.age-modal-error.visible {
  display: block;
}

.age-modal-disclaimer {
  font-family: var(--font-poppins);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.age-modal-play {
  width: 100%;
  justify-content: center;
}

.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.game-modal.active {
  display: flex;
}

.game-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.game-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.game-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.game-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

#gameFrame {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .age-modal-content {
    padding: 32px 24px;
  }

  .age-modal-content h2 {
    font-size: 22px;
  }

  .game-modal-content {
    width: 95%;
    height: 70vh;
  }
}
