/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Arial', sans-serif;
  background: radial-gradient(circle at top, #0b0f1a 40%, #000 100%);
  color: #fff;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Age Banner */
.age-banner {
  background: #0a002c;
  color: #7b5cff; /* новый основной цвет */
  text-align: center;
  padding: 8px;
  font-weight: bold;
  font-size: 14px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* Header */
.site-header {
  background: rgb(0, 0, 0);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 32px; /* чтобы баннер не перекрывал */
  z-index: 999;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-header .logo img {
  height: 45px;
  display: block;
}

/* Навигация */
.main-nav {
  display: flex;
  gap: 25px;
  margin-left: auto;
  transition: all 0.4s ease;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #7b5cff; /* новый основной цвет */
}

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 1100;
  transition: transform 0.3s ease;
}

.burger-btn span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Анимация крестика */
.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 9.5px);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -9.5px);
}

/* Hero */
.hero {
  padding: 120px 20px 60px;
  text-align: center;
  background: url('../images/moon_bg_92kd.png') no-repeat center/cover;
  background-attachment: fixed;
}

.hero h1 {
  font-size: 2.8rem;
  color: #7b5cff;
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.hero p {
  margin-top: 20px;
  font-size: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.play-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 28px;
  background: #7b5cff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.play-btn:hover {
  background: #9f87ff;
  transform: translateY(-3px);
}

/* About Section */
.about {
  padding: 80px 50px;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

/* Контейнер для текста */
.about-text {
  flex: 1 1 500px;
  max-width: 700px;
  text-align: left;
}

.about h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: #7b5cff; /* основной фиолетовый */
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.about p {
  font-size: 1.1rem;
  margin-bottom: 18px;
  line-height: 1.8;
  color: #ddd;
}

/* Важные акценты в тексте */
.about strong {
  color: #9f87ff; /* светлый акцент */
}

/* Контейнер для изображения (опционально) */
.about-img {
  flex: 1 1 300px;
  text-align: center;
}

.about-img img {
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

.about-img img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
  .about {
    flex-direction: column;
    text-align: center;
  }
  
  .about-text {
    text-align: center;
  }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 25px 20px;
  background: #111;
  color: #aaa;
  font-size: 14px;
}

.footer-links {
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-links a {
  color: #7b5cff;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #9f87ff;
}

.footer-logos {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logos img:hover {
  transform: scale(1.1);
  opacity: 1;
}


/* Popup */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background: #fff;
  color: #000;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.popup-content h2 {
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.popup-content p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.popup-content button {
  padding: 12px 24px;
  background: #7b5cff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.popup-content button:hover {
  background: #9f87ff;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.95);
    position: fixed;
    top: 70px;
    right: -250px;
    width: 220px;
    padding: 30px 20px;
    border-radius: 10px 0 0 10px;
    box-shadow: -4px 0 10px rgba(0,0,0,0.7);
    gap: 18px;
    z-index: 1000;
    transition: right 0.4s ease;
  }

  .main-nav.active {
    display: flex;
    right: 0;
  }

  .burger-btn {
    display: flex;
  }

  .main-nav a {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: color 0.3s ease;
  }

  .main-nav a:hover {
    color: #7b5cff;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .play-btn {
    padding: 12px 22px;
    font-size: 1rem;
  }
}



.features {
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.75);
  text-align: center;
}

.features h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #7b5cff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
  border-radius: 15px;
  padding: 30px 20px;
  color: #fff;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #9f87ff;
}

.card p {
  font-size: 1rem;
  color: #ddd;
  line-height: 1.6;
}

/* Hover эффект */
.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(123,92,255,0.3) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.card:hover::before {
  transform: scale(1);
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 20px rgba(123,92,255,0.6);
}

.card:hover .icon {
  transform: scale(1.2) rotate(10deg);
}


/* Ready Section */
.ready {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.8);
  flex-wrap: wrap;
}

.ready-text {
  flex: 1 1 500px;
  max-width: 600px;
}

.ready-text h2 {
  font-size: 2.2rem;
  color: #7b5cff;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.ready-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #ddd;
}

.ready-text strong {
  color: #9f87ff;
}

.ready-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #7b5cff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.ready-btn:hover {
  background: #9f87ff;
  transform: translateY(-3px);
}

.ready-img {
  flex: 1 1 400px;
  text-align: center;
}

.ready-img img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  transition: transform 0.4s ease;
}

.ready-img img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
  .ready {
    flex-direction: column;
    text-align: center;
  }

  .ready-text {
    max-width: 100%;
  }

  .ready-img {
    margin-top: 30px;
  }
}

/* Disclaimer Section */
.disclaimer {
  padding: 80px 20px;
  background: #0b0f1a;
  display: flex;
  justify-content: center;
}

.disclaimer-card {
  max-width: 1000px;
  background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
  border-radius: 15px;
  padding: 40px 30px;
  color: #ddd;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  text-align: left;
  line-height: 1.8;
  border: 1px solid rgba(123, 92, 255, 0.3);
}

.disclaimer-card h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #7b5cff;
  text-align: center;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.disclaimer-card p {
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.disclaimer-card strong {
  color: #9f87ff;
}

.disclaimer-card a {
  color: #7b5cff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.disclaimer-card a:hover {
  color: #9f87ff;
}

.disclaimer-card .note {
  margin-top: 25px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
}


/* Legal Pages */
.legal-page {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  color: #ddd;
  line-height: 1.8;
}

.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: #7b5cff;
  text-align: center;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.legal-page h2 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: #9f87ff;
  border-left: 4px solid #7b5cff;
  padding-left: 12px;
}

.legal-page p {
  margin-bottom: 18px;
  font-size: 1rem;
}

.legal-page strong {
  color: #fff;
}

.legal-page a {
  color: #7b5cff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.legal-page a:hover {
  color: #9f87ff;
}


/* Contact Section */
.contact {
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.85);
  text-align: center;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #7b5cff;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.contact p {
  color: #ddd;
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 1.1rem;
}

.contact-form .form-group {
  text-align: left;
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #9f87ff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(123,92,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 1rem;
  transition: border 0.3s ease, background 0.3s ease;
}

.contact-form textarea{
    max-width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid #7b5cff;
  background: rgba(255,255,255,0.1);
  outline: none;
}

.contact-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #7b5cff;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.contact-btn:hover {
  background: #9f87ff;
  transform: translateY(-3px);
}


/* Game Page */
.game-frame {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px 20px;
  background: rgba(0,0,0,0.7);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  text-align: center;
  color: #ddd;
}

.game-frame h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #7b5cff;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.game-frame p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ccc;
}

.iframe-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}