@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800&display=swap');

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

html { scroll-behavior: smooth; }

body {
  background-color: #000509;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ─── CONTAINER ─── */
.container {
  max-width: 1368px;
  margin: 0 auto;
  padding: 0 84px;
  width: 100%;
}

/* ─── HEADER ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #000509;
  padding: 20px 0;
}

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

/* ─── LOGO ─── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon { width: 30px; height: 30px; }

.logo-text {
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  white-space: nowrap;
}

/* ─── NAV ─── */
.nav-desktop {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  font-weight: 400;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link:hover { color: #ee1fe4; }

/* ─── BURGER ─── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

/* ─── MOBILE NAV ─── */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 20px 15px 24px;
  background: #000509;
  border-top: 1px solid rgba(238,31,228,0.2);
}

.nav-mobile.is-open { display: flex; }
.nav-mobile .nav-link { font-size: 16px; }

/* ─── BUTTON ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ee1fe4;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 22px 50px;
  border-radius: 10px;
  white-space: nowrap;
  transition: opacity 0.2s;
  overflow: hidden;
  border: none;
  cursor: pointer;
  max-width: 190px;
}

.btn:hover { opacity: 0.88; }
.btn-full { width: 100%; }

/* ─── GEM IMAGE ─── */
/* Variant A: deep crop (center of gem) – used for 172px & 60px */
.gem-a {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.gem-a img {
  position: absolute;
  width: 275.24%;
  height: 275.24%;
  left: -150.48%;
  top: -150.48%;
  max-width: none;
}

/* Variant B: upper-center crop – used for 105px & 80px */
.gem-b {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.gem-b img {
  position: absolute;
  width: 275.24%;
  height: 275.24%;
  left: -150.48%;
  top: -23.81%;
  max-width: none;
}

.gem-172 { width: 172px; height: 172px; }
.gem-160 { width: 160px; height: 160px; }
.gem-105 { width: 105px; height: 105px; }
.gem-80  { width: 80px;  height: 80px; }
.gem-60  { width: 60px;  height: 60px; }

/* ─── IMAGE FRAMES (pixel-perfect crops) ─── */
.img-frame {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.img-frame img {
  position: absolute;
  max-width: none;
  display: block;
}

.img-hero-robot  { width: 456px; height: 588px; border-radius: 20px; }
.img-hero-robot img { width: 144.93%; height: 122.62%; left: -21.15%; top: -15.48%; }

.img-legacy      { width: 386px; height: 351px; border-radius: 16px; }
.img-legacy img  { width: 117.1%; height: 124.26%; left: -11.14%; top: -15.97%; }

.img-contacts    { width: 465px; height: 328px; border-radius: 16px; }
.img-contacts img { width: 132.44%; height: 187.68%; left: -15.38%; top: -54.03%; }

.img-footer-robot { width: 295px; height: 280px; }
.img-footer-robot img { width: 141.02%; height: 111.43%; left: -24.07%; top: -7.5%; }

/* ─── CARD ─── */
.card {
  background: rgba(238,31,228,0.05);
  border: 3px solid #ee1fe4;
  border-radius: 30px;
  overflow: hidden;
  padding: 30px;
}

/* ─── SECTIONS ─── */
.section { margin-bottom: 60px; }

.section-title {
  font-weight: 600;
  font-size: 54px;
  color: #def3ff;
  line-height: 1.1;
}

.section-text {
  font-weight: 400;
  font-size: 14px;
  color: #def3ff;
  line-height: 1.7;
}

/* ═══════════════════════════════════
   HERO SECTION
═══════════════════════════════════ */
.section-hero { padding-top: 50px; margin-bottom: 60px; }

.hero-top {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}

.hero-title {
  font-weight: 700;
  font-size: 60px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.05;
  flex: 1;
}

.hero-body {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.hero-left-col {
  width: 339px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-desc-text {
  font-weight: 400;
  font-size: 14px;
  color: #fff;
  line-height: 1.7;
}

.hero-spiral { flex-shrink: 0; }
.hero-spiral img { display: block; width: 100%; height: 100%; }
.hero-spiral-desktop { width: 200px; height: 200px; }

.hero-right-group {
  display: flex;
  gap: 60px;
  align-items: flex-end;
}

.hero-right-col {
  width: 282px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-info-text {
  font-weight: 400;
  font-size: 14px;
  color: #fff;
  line-height: 1.7;
}

/* ═══════════════════════════════════
   LEGACY SECTION
═══════════════════════════════════ */
.section-legacy { margin-bottom: 60px; }

.legacy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.legacy-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ═══════════════════════════════════
   PILLARS SECTION
═══════════════════════════════════ */
.section-pillars { margin-bottom: 60px; }

.pillars-header {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.pillars-spiral { flex-shrink: 0; }
.pillars-spiral img { display: block; width: 100%; height: 100%; }
.pillars-spiral-desktop { width: 160px; height: 160px; }

.pillars-header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.pillars-cards {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.pillar-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(238,31,228,0.05);
  border: 3px solid #ee1fe4;
  border-radius: 30px;
  overflow: hidden;
  padding: 20px;
}

.pillar-title {
  font-weight: 600;
  font-size: 24px;
  color: #ee1fe4;
  line-height: 1.2;
}

.pillar-text {
  font-weight: 400;
  font-size: 14px;
  color: #def3ff;
  line-height: 1.7;
}

/* ═══════════════════════════════════
   SOVEREIGN SELECTION
═══════════════════════════════════ */
.section-sovereign { margin-bottom: 60px; }

.sovereign-text {
  max-width: 1098px;
  margin: 0 auto 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Games row – desktop: horizontal full-width; mobile: stacked */
.games-row {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  width: 100%;
  overflow-x: auto;
}

.games-group-sm {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  flex-shrink: 0;
}

.games-group-lg {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
}

.game-img-sm {
  display: block;
  width: 155px;
  height: 155px;
  border: 4px solid #ee1fe4;
  border-radius: 26px;
  overflow: hidden;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.game-img-sm:hover { opacity: 0.85; }

.game-img-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-img-lg {
  display: block;
  width: 329px;
  height: 329px;
  border: 4px solid #ee1fe4;
  border-radius: 26px;
  overflow: hidden;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.game-img-lg:hover { opacity: 0.85; }

.game-img-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════
   CONTACTS SECTION
═══════════════════════════════════ */
.section-contacts { margin-bottom: 60px; }

.contacts-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contacts-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contacts-info {
  display: flex;
  flex-direction: column;
}

.contacts-info .contacts-regular {
  font-weight: 400;
  font-size: 14px;
  color: #def3ff;
  line-height: 1.7;
  margin-bottom: 14px;
}

.contacts-address {
  font-weight: 700;
  font-size: 24px;
  color: #ee1fe4;
  line-height: 1.4;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer {
  background: rgba(238,31,228,0.05);
  border-top: 3px solid #ee1fe4;
  overflow: hidden;
}

.footer-inner {
  max-width: 1368px;
  margin: 0 auto;
  padding: 0 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 280px;
  gap: 30px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-link img {
  width: 40px;
  height: 40px;
  display: block;
}

.copyright {
  font-weight: 400;
  font-size: 14px;
  color: rgba(222,243,255,0.6);
}

/* ═══════════════════════════════════
   CATALOG PAGE
═══════════════════════════════════ */
.catalog-intro {
  text-align: center;
  padding-top: 50px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.catalog-title {
  font-weight: 700;
  font-size: 60px;
  color: #def3ff;
  text-transform: uppercase;
  line-height: 1.05;
  text-align: center;
  width: 100%;
}

.catalog-intro-text {
  font-weight: 400;
  font-size: 14px;
  color: #def3ff;
  line-height: 1.7;
  max-width: 1098px;
  text-align: center;
}

/* Floating robot below games grid (desktop only) */
.catalog-robot {
  display: flex;
  justify-content: center;
  margin: 60px 0;
}

.img-catalog-robot {
  width: 238px;
  height: 285px;
  border-radius: 0;
}

.img-catalog-robot img {
  width: 159.39%;
  height: 132.49%;
  left: -31.22%;
  top: -11.07%;
}

/* ═══════════════════════════════════
   GAME PAGES
═══════════════════════════════════ */

/* Game hero section */
.section-game-hero {
  padding-top: 50px;
  margin-bottom: 60px;
}

.game-hero-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

/* Hero row: [spiral 140px] [gap 319px] [center 282px] [gap 319px] [spiral 140px] */
.game-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 319px;
  width: 100%;
}

.game-hero-spiral {
  width: 140px;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.game-hero-spiral img {
  position: absolute;
  top: 4.05%;
  bottom: 4.05%;
  left: 0;
  right: 0;
  display: block;
  max-width: none;
  width: 100%;
}

.game-hero-spiral-right { transform: scaleX(-1); }

.game-hero-center {
  width: 282px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.game-thumb {
  display: block;
  width: 200px;
  height: 200px;
  border: 4px solid #ee1fe4;
  border-radius: 26px;
  overflow: hidden;
  flex-shrink: 0;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-title-block {
  width: 1098px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.game-title {
  font-weight: 700;
  font-size: 60px;
  color: #def3ff;
  text-transform: uppercase;
  line-height: 1.05;
}

.game-intro {
  font-weight: 400;
  font-size: 14px;
  color: #def3ff;
  line-height: 1.7;
}

/* Game description section */
.section-game-desc { margin-bottom: 60px; }

.game-desc-inner {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.game-section-spiral {
  width: 160px;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.game-section-spiral img {
  position: absolute;
  top: 4.05%;
  bottom: 4.05%;
  left: 0;
  right: 0;
  display: block;
  max-width: none;
  width: 100%;
}

.game-desc-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.game-section-title {
  font-weight: 600;
  font-size: 54px;
  color: #def3ff;
  line-height: 1.1;
}

.game-long-desc {
  font-weight: 400;
  font-size: 14px;
  color: #def3ff;
  line-height: 1.7;
  max-width: 915px;
}

.game-screenshot {
  display: block;
  width: 556px;
  height: 310px;
  border: 4px solid #ee1fe4;
  border-radius: 26px;
  overflow: hidden;
  flex-shrink: 0;
}

.game-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════
   POLICY PAGES
═══════════════════════════════════ */
.section-policy { padding: 50px 0 80px; }

.policy-content {
  max-width: 1098px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.policy-title {
  font-weight: 700;
  font-size: 60px;
  color: #def3ff;
  text-transform: uppercase;
  line-height: 1.05;
}

.policy-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 14px;
  color: #def3ff;
  line-height: 1.7;
}

.policy-body p { margin: 0; }

.policy-section {
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════
   RESPONSIVE — MOBILE ≤ 1023px
═══════════════════════════════════ */
@media (max-width: 1023px) {

  .container { padding: 0 15px; }

  /* Header */
  .header { padding: 14px 0 0; }

  .header-inner {
    flex-wrap: wrap;
    row-gap: 12px;
    padding-bottom: 14px;
  }

  .nav-desktop {
    display: flex;
    width: 100%;
    gap: 24px;
  }

  .burger { display: none; }
  .nav-mobile { display: none !important; }

  /* Hero */
  .section-hero { padding-top: 20px; }

  .hero-top {
    gap: 0;
    margin-bottom: 20px;
  }

  .hero-gem-desktop { display: none; }

  .hero-title {
    font-size: 32px;
    width: 100%;
  }

  .hero-body {
    flex-direction: column;
    gap: 20px;
  }

  .hero-left-col {
    width: 100%;
    gap: 20px;
  }

  .hero-spiral-desktop {
    width: 80px;
    height: 80px;
  }

  .hero-right-group {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 100%;
  }

  .img-hero-robot {
    width: 226px;
    height: 293px;
  }

  .hero-right-col {
    width: 100%;
  }

  /* On mobile, gem-105 becomes 80px */
  .hero-right-col .gem-105 {
    width: 80px;
    height: 80px;
  }

  /* Sections */
  .section-title { font-size: 30px; }

  /* Legacy */
  .legacy-inner {
    flex-direction: column;
  }

  .img-legacy {
    width: 100%;
    height: 245px;
    border-radius: 0;
    flex-shrink: 0;
  }

  /* Pillars */
  .pillars-header { flex-direction: column; gap: 20px; }

  .pillars-spiral-desktop {
    width: 80px;
    height: 80px;
  }

  .pillars-cards { flex-direction: column; }

  /* Games grid – mobile: stacked */
  .games-row {
    flex-direction: column;
    align-items: center;
    overflow-x: visible;
    gap: 20px;
  }

  .games-group-lg {
    flex-direction: column;
    gap: 20px;
  }

  .game-img-lg {
    width: 329px;
    height: 329px;
  }

  /* Contacts */
  .contacts-inner { flex-direction: column; }

  .img-contacts {
    width: 100%;
    height: 190px;
    border-radius: 0;
    flex-shrink: 0;
  }

  /* Catalog page */
  .catalog-title {
    font-size: 30px;
    font-weight: 600;
  }

  .catalog-intro {
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .catalog-robot { display: none; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    padding: 20px 15px 30px;
    min-height: auto;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 20px;
  }

  .img-footer-robot {
    width: 198px;
    height: 188px;
  }

  /* Game pages */
  .section-game-hero { padding-top: 20px; }

  .game-hero-row { gap: 15px; }

  .game-hero-spiral {
    width: 50px;
    height: 50px;
  }
  .game-hero-spiral img{
    width: 100%;
    height: 100%;
  }
.game-section-spiral img{
  width: 100%;
  height: 100%;
}
  .game-hero-center {
    width: 200px;
    gap: 15px;
  }

  .game-title-block { width: 100%; }

  .game-title {
    font-size: 30px;
    font-weight: 600;
  }

  .game-desc-inner { flex-direction: column; }

  .game-section-spiral {
    width: 80px;
    height: 80px;
  }

  .game-section-title { font-size: 30px; }

  .game-long-desc { max-width: 100%; }

  .game-screenshot {
    width: 100%;
    height: 184px;
  }

  /* Policy pages */
  .policy-title {
    font-size: 30px;
    font-weight: 600;
  }
}

/* ─── ANIMATIONS & HOVER EFFECTS ─── */

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gem float */
.gem { animation: floatY 4s ease-in-out infinite; }

/* Spiral slow spin */
.hero-spiral img,
.game-hero-spiral img,
.game-section-spiral img {
  animation: spinSlow 20s linear infinite;
}

/* Button enhanced hover */
.btn {
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(238, 31, 228, 0.5);
}

/* Card hover glow */
.card {
  transition: box-shadow 0.35s;
}
.card:hover {
  box-shadow: 0 0 40px rgba(238, 31, 228, 0.18);
}

/* Pillar card hover lift */
.pillar-card {
  transition: transform 0.3s, box-shadow 0.3s;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 34px rgba(238, 31, 228, 0.3);
}

/* Social links hover */
.social-link {
  display: inline-flex;
  transition: transform 0.25s;
}
.social-link:hover {
  transform: scale(1.2) rotate(-6deg);
}

/* Logo hover */
.logo {
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }

/* Game image hover — scale + pink overlay with game name */
.game-img-sm,
.game-img-lg {
  position: relative;
}

.game-img-sm:hover,
.game-img-lg:hover {
  opacity: 1;
}

.game-img-sm::after,
.game-img-lg::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  background: #ee1fe4;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-img-sm::after { font-size: 14px; }
.game-img-lg::after { font-size: 20px; }

.game-img-sm:hover::after,
.game-img-lg:hover::after {
  opacity: 1;
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  max-width: 860px;
  background: #000509;
  border: 3px solid #ee1fe4;
  border-radius: 30px;
  padding: 30px 30px 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.cookie-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.cookie-text {
  font-size: 13px;
  font-weight: 400;
  color: rgba(222, 243, 255, 0.8);
  line-height: 1.6;
}

.cookie-btn {
  width: 100%;
  padding: 18px;
  border-radius: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cookie-btn:hover {
  opacity: 0.85;
}

.cookie-btn-accept {
  background: #ee1fe4;
  border: none;
  color: #fff;
}

.cookie-btn-decline {
  background: transparent;
  border: 2px solid #ee1fe4;
  color: #ee1fe4;
}

@media (max-width: 1023px) {
  .cookie-banner {
    bottom: 15px;
    padding: 24px 20px 22px;
    border-radius: 22px;
  }

  .cookie-title {
    font-size: 20px;
  }
}
