﻿:root {
  --primary: #4cc9f0;
  --secondary: #8ce99a;
  --bg-dark: #0a1018;
  --bg-card: #121a24;
  --text-light: #eef3fb;
  --text-muted: #9fb3c8;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 16, 24, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo a {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
}

.logo a:hover {
  color: var(--primary);
  transition: color var(--transition);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.btn-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-dark);
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76, 201, 240, 0.3);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 3px;
  background: var(--text-light);
  border-radius: 4px;
  transition: var(--transition);
}


.cookie-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-popup.show {
  display: flex;
}

.cookie-content {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  max-width: 500px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-content h3 {
  margin-bottom: 16px;
  color: var(--primary);
}

.cookie-content p {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(76, 201, 240, 0.3);
}


.page-hero {
  padding: 100px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.1), rgba(140, 233, 154, 0.1));
}

.page-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-light);
}

.page-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-muted);
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.fade-in-delay {
  animation: fadeIn 0.8s ease-out 0.3s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 48px;
  text-align: center;
  color: var(--text-light);
}

.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}


.description-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.description-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary);
}

.description-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.description-images {
  display: flex;
  justify-content: center;
  width: 100%;
}

.description-images img {
  width: 100%;
  max-width: 600px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition);
}

.description-images img:hover {
  transform: scale(1.05);
}


.accordion-list {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all var(--transition);
}

.accordion-item:hover {
  border-color: var(--primary);
}

.accordion-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-header h3 {
  font-size: 20px;
  color: var(--text-light);
}

.accordion-icon {
  font-size: 24px;
  color: var(--primary);
  transition: transform var(--transition);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 24px;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  padding: 0 24px 20px;
}

.accordion-content p {
  color: var(--text-muted);
  line-height: 1.8;
}


.game-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.game-container {
  text-align: center;
}

.game-result {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-game {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-dark);
  font-size: 18px;
  padding: 16px 32px;
  margin-bottom: 16px;
}

.btn-game:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 26px rgba(76, 201, 240, 0.3);
}

.game-description {
  color: var(--text-muted);
  font-size: 14px;
}

.btn-bonus {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--bg-dark);
  font-size: 18px;
  padding: 16px 32px;
  display: inline-block;
  text-align: center;
}


.table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
}

.achievements-table-content {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.achievements-table-content thead {
  background: rgba(76, 201, 240, 0.1);
}

.achievements-table-content th {
  padding: 16px 20px;
  text-align: left;
  color: var(--primary);
  font-weight: 600;
}

.achievements-table-content td {
  padding: 16px 20px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.table-row {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.table-row.visible {
  opacity: 1;
  transform: translateX(0);
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.05);
}


.footer {
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-contact {
  text-align: right;
}

.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-fs-note {
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
  margin-top: 8px;
}


.footer-google-play {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.google-play-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  text-decoration: none;
  transition: var(--transition);
  font-family: 'Roboto', sans-serif;
  width: fit-content;
}

.google-play-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.google-play-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-play-icon svg {
  width: 100%;
  height: 100%;
}

.google-play-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.google-play-text-top {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.google-play-text-bottom {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
}


@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    padding: 24px;
    transition: left var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .burger {
    display: flex;
  }

  .description-content {
    grid-template-columns: 1fr;
  }

  .description-images {
    width: 100%;
  }
  
  .description-images img {
    max-width: 100%;
    height: 300px;
  }

  .game-wrapper {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-google-play {
    margin-top: 16px;
  }

  .modal {
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .modal.show {
    padding: 0;
    margin: 0;
  }

  .modal-content {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .modal-content * {
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
  }

  .modal-content h2 {
    padding: 20px 20px 15px;
    font-size: 24px;
    word-wrap: break-word;
  }

  .modal-body {
    padding: 20px;
    word-wrap: break-word;
  }

  .modal-body h3 {
    font-size: 18px;
    word-wrap: break-word;
  }

  .modal-body p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}


.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  overflow-y: auto;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.modal-close:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
  padding: 40px 40px 20px;
  color: var(--primary);
  font-size: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 30px 40px 40px;
}

.modal-body h3 {
  color: var(--text-light);
  margin: 24px 0 12px;
  font-size: 20px;
}

.modal-body p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.modal-body strong {
  color: var(--text-light);
}


