:root {
  --color-dark-bg: #0d1117;
  --color-medium-bg: #161b22;
  --color-text-light: #f0f6fc;
  --color-accent-blue: #007bff;
  --color-accent-green: #38f838;
  --color-highlight: #58a6ff;
  --font-primary: "Helvetica Neue", Arial, sans-serif;
  --spacing-lg: 4rem;
  --spacing-md: 2rem;
  --spacing-sm: 1rem;
}

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

body.game-page {
  font-family: var(--font-primary);
  background-color: var(--color-dark-bg);
  color: var(--color-text-light);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

a {
  color: var(--color-highlight);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-blue);
}

.main-header {
  background-color: rgba(13, 17, 23, 0.95);
  padding: var(--spacing-sm) 0;
  border-bottom: 2px solid var(--color-medium-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

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

.logo-link {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-text-light);
}

.site-logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  filter: drop-shadow(0 0 5px var(--color-accent-blue));
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
}

.main-nav .nav-item {
  margin-left: var(--spacing-md);
}

.nav-link {
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.nav-link:hover {
  background-color: var(--color-medium-bg);
  color: var(--color-text-light);
}

.hero-section {
  padding: var(--spacing-lg) 0 6rem;
  text-align: center;
  background: radial-gradient(
    circle at top,
    var(--color-medium-bg) 0%,
    var(--color-dark-bg) 80%
  );
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent-green);
  text-shadow: 0 0 15px var(--color-accent-green);
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
}

.hero-image-wrapper {
  margin: var(--spacing-lg) auto;
  max-width: 600px;
}

.hero-main-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px var(--color-highlight);
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 20px var(--color-highlight);
  }
  100% {
    transform: scale(1.02);
    box-shadow: 0 0 40px var(--color-highlight);
  }
}

.hero-description {
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  font-size: 1.1rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.app-badge {
  height: 60px;
  transition: transform 0.3s ease;
}

.app-badge:hover {
  transform: translateY(-5px);
}

.price-info {
  font-size: 0.9rem;
  color: var(--color-text-light);
  opacity: 0.7;
  margin-top: 10px;
}

.info-section {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-medium-bg);
}

.info-section:nth-child(even) {
  background-color: var(--color-medium-bg);
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-accent-blue);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  text-transform: uppercase;
  border-bottom: 3px solid var(--color-highlight);
  display: inline-block;
  padding-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.section-subtitle {
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-style: italic;
  color: var(--color-highlight);
}

.description-content p {
  margin-bottom: var(--spacing-md);
  font-size: 1.05rem;
}

.content-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: var(--spacing-lg) auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.feature-item {
  background-color: var(--color-dark-bg);
  padding: var(--spacing-md);
  border-left: 5px solid var(--color-accent-blue);
  border-radius: 5px;
  transition: transform 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent-green);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feature-item strong {
  color: var(--color-accent-green);
}

.gallery-section {
  padding-bottom: 6rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.screenshot-item {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--color-medium-bg);
}

.screenshot-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7), 0 0 10px var(--color-highlight);
  z-index: 10;
}

.how-to-list {
  list-style: none;
  counter-reset: how-to-counter;
  max-width: 800px;
  margin: 0 auto;
}

.how-to-item {
  counter-increment: how-to-counter;
  background-color: var(--color-medium-bg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  border-radius: 8px;
  position: relative;
  padding-left: 4rem;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}

.how-to-item:before {
  content: counter(how-to-counter);
  position: absolute;
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-accent-blue);
  color: var(--color-text-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.7);
}

.how-to-item strong {
  color: var(--color-accent-blue);
}

.cta-section {
  text-align: center;
  background-color: var(--color-dark-bg);
  padding: 6rem 0;
}

.cta-text {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
}

.cta-download .app-badge {
  height: 70px;
}

.main-footer {
  background-color: var(--color-medium-bg);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  border-top: 3px solid var(--color-accent-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(240, 246, 252, 0.1);
}

.footer-heading {
  color: var(--color-accent-blue);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--color-text-light);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-link:hover {
  color: var(--color-accent-blue);
  opacity: 1;
}

.contact-info {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-text-light);
  opacity: 0.8;
}

.footer-download-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-badge-footer {
  height: 45px;
  width: auto;
  transition: opacity 0.3s;
}

.app-badge-footer:hover {
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
}

.copyright {
  font-size: 0.8rem;
  color: var(--color-text-light);
  opacity: 0.6;
}

@media (max-width: 900px) {
  .main-nav .nav-list {
    gap: var(--spacing-sm);
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .main-nav {
    margin-top: var(--spacing-sm);
  }

  .main-nav .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
  }

  .main-nav .nav-item {
    margin: 5px 10px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .download-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .app-badge {
    height: 50px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }

  .footer-col-contact,
  .footer-col-download {
    margin-top: var(--spacing-md);
  }

  .footer-download-buttons {
    align-items: center;
  }

  .how-to-item {
    padding-left: 3.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.7rem;
  }
}
