:root {
  --blue: #0086e7;
  --blue-deep: #00669c;
  --blue-light: #3aa6ff;
  --ink: #08151f;
  --bg: #0d0d0d;
  --bg-deep: #080808;
  --panel: #1f1f1f;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.08);
  --display: "Quicksand", Arial, sans-serif;
  --script: "Kaushan Script", cursive;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: var(--display);
  font-weight: 500;
  color: var(--white);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

section {
  scroll-margin-top: 90px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--script);
  color: var(--blue);
  font-size: 24px;
  margin: 0 0 10px;
}

.heading {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.02;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.2s ease;
  border: 2px solid transparent;
}

.btn img {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--blue);
  color: var(--ink);
}

.btn-primary img {
  filter: brightness(0) saturate(100%);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-outline img {
  filter: invert(1);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 10;
}

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px 14px 22px;
  background: rgba(31, 31, 31, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 24px;
  width: auto;
}

.nav-logo span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--white);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.current {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.current::after {
  opacity: 1;
  transform: none;
}

.socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: 0.2s ease;
}

.socials a img {
  width: 17px;
  height: 17px;
  filter: invert(1);
  opacity: 0.85;
}

.socials a:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.socials a:hover img {
  filter: brightness(0) saturate(100%);
  opacity: 1;
}

.socials a svg {
  width: 18px;
  height: 18px;
  color: var(--white);
  opacity: 0.85;
}

.socials a:hover svg {
  color: var(--ink);
  opacity: 1;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.25s ease;
}

.nav.open .menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .menu-btn span:nth-child(2) {
  opacity: 0;
}
.nav.open .menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 270px 0 190px;
  text-align: center;
}

.hero h1 {
  margin: 0;
}

.hero-logo {
  width: min(640px, 100%);
  margin: 0 auto;
}

.hero .slogan {
  font-family: var(--script);
  font-size: clamp(26px, 3.4vw, 40px);
  color: rgba(255, 255, 255, 0.8);
  margin: 18px 0 0;
}

.games {
  padding: 30px 0 130px;
}

.section-title {
  font-family: var(--script);
  font-weight: normal;
  font-size: clamp(30px, 3.6vw, 44px);
  color: var(--white);
  margin: 0 0 44px;
}

.game {
  position: relative;
  background: var(--panel);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: 1.75fr 1fr;
}

.top-tab {
  position: absolute;
  top: -18px;
  right: 50px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px 6px 0 0;
}

.top-tab img {
  width: 15px;
  height: 15px;
  filter: brightness(0) saturate(100%);
}

.game-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #121821;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
}

.game-media .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.game-media .slide.active {
  opacity: 1;
}

.game-info {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.game-info h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 30px);
  white-space: nowrap;
  line-height: 1.2;
  margin: 0;
}

.game-info h3::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  margin: 16px auto 20px;
}

.game-info p {
  margin: 0;
  line-height: 1.8;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
}

.about {
  padding: 120px 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-badge {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.about-badge img {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.about .eyebrow {
  font-size: clamp(30px, 3.4vw, 40px);
  margin-bottom: 4px;
}

.about h2 {
  font-size: clamp(34px, 5vw, 60px);
  margin-bottom: 26px;
}

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

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  background: var(--panel);
  border-radius: 20px;
  padding: 26px 0;
  text-align: center;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--blue);
}

.fact span {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}

.touch {
  padding: 120px 0;
}

.touch .section-title {
  margin-bottom: 28px;
}

.touch-card {
  background: var(--panel);
  border-radius: 28px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.touch-text {
  text-align: center;
}

.touch-card p {
  margin: 0 auto 14px;
  font-size: 22px;
  line-height: 1.6;
  color: var(--white);
  max-width: 520px;
}

.touch-card p:last-child {
  margin-bottom: 0;
  font-size: 18px;
  color: var(--muted);
}

.touch-card p em {
  font-family: var(--script);
  font-style: normal;
  font-weight: normal;
  font-size: 1.15em;
  color: var(--blue);
}

.touch-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.touch-actions .btn {
  justify-content: center;
  gap: 12px;
  padding: 15px 26px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.touch-actions .btn:hover {
  transform: translateY(-2px);
}

.touch-actions .btn img,
.touch-actions .btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-mail {
  background: var(--white);
  color: var(--ink);
}

.btn-mail svg {
  color: var(--blue);
}

.btn-x {
  background: #000000;
  color: var(--white);
}

.btn-x img {
  filter: invert(1);
}

.btn-youtube {
  background: #ff0000;
  color: var(--white);
}

.btn-youtube img {
  filter: invert(1);
}

footer {
  margin-top: auto;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 56px 0 30px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

.footer-brand {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  height: 54px;
  width: auto;
  margin: 0 auto;
}

.footer-brand .slogan {
  font-family: var(--script);
  font-size: 22px;
  color: var(--muted);
  margin: 10px 0 0;
}

.footer-bottom {
  padding-top: 24px;
  line-height: 1.7;
}

.footer-bottom p {
  margin: 0;
}

.hl {
  color: var(--blue);
}

@media (max-width: 900px) {
  .wrap {
    padding: 0 24px;
  }

  .menu-btn {
    display: block;
  }

  .nav .socials {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--panel);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.25s ease;
  }

  .nav.open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links a {
    padding: 14px 16px;
    border-radius: 10px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.current {
    background: rgba(255, 255, 255, 0.05);
  }

  .game {
    grid-template-columns: 1fr;
  }

  .game-media {
    border-radius: 24px 24px 0 0;
  }

  .game-info {
    padding: 32px 32px 38px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-badge {
    max-width: 240px;
  }

  .touch-card {
    grid-template-columns: 1fr;
    padding: 54px 40px;
  }

}

@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }

  .nav {
    top: 10px;
  }

  .nav-logo img {
    height: 20px;
  }

  .nav-logo span {
    font-size: 16px;
  }

  .hero {
    padding: 180px 0 110px;
  }

  .games {
    padding-bottom: 90px;
  }

  .section-title {
    text-align: center;
  }

  .about-grid > div {
    text-align: center;
  }

  .top-tab {
    right: 20px;
    font-size: 11px;
    padding: 5px 10px;
    top: -16px;
  }

  .game-info {
    padding: 26px 22px 30px;
  }

  .about {
    padding: 90px 0;
  }

  .facts {
    padding: 20px 0;
  }

  .fact {
    padding: 0 8px;
  }

  .fact b {
    font-size: 28px;
  }

  .fact span {
    font-size: 13px;
  }

  .touch {
    padding: 80px 0;
  }

  .touch-card {
    padding: 36px 22px;
    border-radius: 22px;
  }

  .touch-card p {
    font-size: 18px;
  }

  .touch-card p:last-child {
    font-size: 16px;
  }

  .touch-actions .btn {
    padding: 14px 18px;
    letter-spacing: 1px;
    font-size: 12px;
    word-break: break-all;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
