:root {
  --bg: #080d17;
  --bg-soft: #0c1320;
  --panel: rgba(22, 31, 48, 0.86);
  --panel-strong: rgba(27, 39, 61, 0.94);
  --blue: #2b7fff;
  --blue-soft: #58a4ff;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(110, 158, 255, 0.22);
  --shadow: rgba(0, 0, 0, 0.34);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 9%, rgba(44, 104, 210, 0.13), transparent 30%),
    linear-gradient(180deg, #0c1220 0%, #080d17 44%, #070b13 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 107, 187, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 107, 187, 0.15) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.45;
  filter: blur(1px);
}

.bg-game {
  position: absolute;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.12;
  filter: blur(8px);
  pointer-events: none;
}

.bg-game-one {
  width: 700px;
  height: 700px;
  right: -150px;
  top: 250px;
  background-image: url("../images/rings-of-olympus.webp");
  transform: rotate(-18deg);
}

.bg-game-two {
  width: 500px;
  height: 500px;
  left: -120px;
  top: 720px;
  background-image: url("../images/aviamasters.webp");
  transform: rotate(11deg);
}

.shell {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px 0;
  border-bottom: 1px solid rgba(43, 127, 255, 0.23);
  background: rgba(8, 13, 23, 0.9);
  box-shadow: 0 0 18px rgba(43, 127, 255, 0.08);
  backdrop-filter: blur(10px);
}

.nav-shell {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  flex: 0 0 auto;
}

.brand-link img {
  width: auto;
  height: 40px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 16px;
  font-weight: 700;
}

.main-nav a,
.footer-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--blue-soft);
}

.telegram-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 25px;
  border: 2px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.telegram-button:hover,
.btn-primary:hover,
.play-link:hover,
.inline-cta:hover {
  background: transparent;
  color: var(--blue-soft);
  transform: translateY(-1px);
}

.telegram-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: currentColor;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.25));
}

.hero-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 80px 0;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 20px rgba(43, 127, 255, 0.28));
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--white);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
.section-title {
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  max-width: 1100px;
  margin: 0;
  color: var(--blue);
  font-size: 48px;
  line-height: 1.05;
  text-shadow: 0 0 7px rgba(43, 127, 255, 0.9), 0 0 18px rgba(43, 127, 255, 0.36);
}

.hero-copy {
  max-width: 620px;
  margin: 20px auto 40px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions,
.copy-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn,
.inline-cta,
.play-link {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn {
  min-width: 190px;
  padding: 0 35px;
  font-size: 18px;
}

.btn-primary,
.play-link,
.inline-cta {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.section-block {
  padding: 80px 0;
  text-align: center;
}

.section-title {
  max-width: 980px;
  margin: 0 auto 60px;
  font-size: 36px;
  line-height: 1.12;
}

.section-title span {
  color: var(--blue);
  text-shadow: 0 0 6px rgba(43, 127, 255, 0.86), 0 0 16px rgba(43, 127, 255, 0.34);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.game-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 12px 28px var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.game-tile:hover,
.feature-tile:hover {
  border-color: rgba(43, 127, 255, 0.72);
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
}

.game-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 0 15px rgba(43, 127, 255, 0.3);
}

.game-body {
  min-height: 235px;
  display: flex;
  flex-direction: column;
  padding-top: 25px;
  text-align: left;
}

.game-body h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 22px;
  line-height: 1.2;
}

.game-body p {
  flex: 1 1 auto;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.play-link {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 16px;
  font-size: 18px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-tile {
  min-height: 300px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-strong);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--white);
}

.feature-icon svg {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-tile h3 {
  margin: 0 0 15px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.seo-stack {
  padding: 34px 0 20px;
}

.copy-section {
  padding: 58px 0;
  text-align: center;
}

.copy-section .section-title {
  margin-bottom: 25px;
}

.copy-section p {
  max-width: 760px;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.78;
}

.inline-cta {
  min-width: 210px;
  margin-top: 10px;
  padding: 0 28px;
  font-size: 18px;
}

.reviews-section {
  padding-top: 62px;
}

.reviews-list {
  max-width: 760px;
  margin: 0 auto;
}

.review-line {
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

.review-line strong {
  color: var(--white);
}

.tag-section {
  padding: 32px 0 54px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(43, 127, 255, 0.28);
  border-radius: 6px;
  background: rgba(22, 31, 48, 0.58);
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  font-weight: 800;
}

.site-footer {
  padding: 56px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 11, 18, 0.92);
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 21px;
}

.footer-brand img {
  width: auto;
  height: 35px;
}

.footer-note {
  max-width: 640px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 18px;
  font-weight: 900;
  flex-wrap: wrap;
}

.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(43, 127, 255, 0.34);
  border-radius: 8px;
  background: rgba(22, 31, 48, 0.6);
  text-transform: uppercase;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.6;
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(43, 127, 255, 0.18), transparent 34%),
    var(--bg);
  text-align: center;
}

.redirect-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.redirect-box img {
  width: 116px;
  height: 116px;
  object-fit: contain;
}

.redirect-box h1 {
  max-width: 520px;
  color: var(--white);
  font-size: 28px;
  line-height: 1.2;
  text-shadow: 0 0 12px rgba(43, 127, 255, 0.45);
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, var(--max));
  }

  .nav-shell {
    gap: 14px;
  }

  .brand-link img {
    width: auto;
    height: 35px;
  }

  .main-nav {
    display: none;
  }

  .telegram-button {
    min-height: 40px;
    padding: 0 15px;
    font-size: 14px;
  }

  .telegram-icon {
    width: 18px;
    height: 18px;
  }

  .hero-section {
    min-height: auto;
    padding: 52px 0 70px;
  }

  .hero-logo {
    width: 130px;
    height: 130px;
  }

  .hero-kicker {
    font-size: 16px;
  }

  h1 {
    max-width: 610px;
    font-size: 34px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .section-block {
    padding: 58px 0;
  }

  .section-title {
    margin-bottom: 34px;
    font-size: 25px;
  }

  .games-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bg-game {
    display: none;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    min-height: 54px;
  }

  .brand-link img {
    width: auto;
    height: 32px;
  }

  .telegram-button {
    max-width: 176px;
  }

  .hero-section {
    padding: 42px 0 58px;
  }

  .hero-logo {
    width: 118px;
    height: 118px;
    margin-bottom: 19px;
  }

  .hero-kicker {
    font-size: 14px;
  }

  h1 {
    font-size: 27px;
    line-height: 1.12;
  }

  .hero-copy {
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.62;
  }

  .hero-actions,
  .copy-actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .btn,
  .inline-cta {
    width: 100%;
  }

  .games-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .game-tile,
  .feature-tile {
    max-width: 340px;
    margin-inline: auto;
  }

  .game-body {
    min-height: auto;
  }

  .section-title {
    font-size: 22px;
  }

  .copy-section {
    padding: 44px 0;
  }

  .copy-section p,
  .review-line {
    font-size: 16px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 13px;
    font-size: 16px;
  }

  .tag-cloud span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 14px;
  }
}
