:root {
  --text: rgba(255,255,255,.96);
  --muted: rgba(255,255,255,.72);
  --glass: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.12);
  --line: rgba(255,255,255,.14);
  --shadow: 0 24px 70px rgba(0,0,0,.24);
  --download1: #ffcc69;
  --download2: #d86a12;
  --youtube1: #ff6868;
  --youtube2: #8e1010;
  --tg1: #62d7ff;
  --tg2: #1f6cff;
  --discord1: #c88bff;
  --discord2: #7b35e6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
  background: #000000;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Cinzel, ui-sans-serif, system-ui, sans-serif;
  opacity: 0;
  transition: opacity 1s ease;
  /* ===== ЗАЩИТА ОТ ВЫДЕЛЕНИЯ ТЕКСТА ===== */
  user-select: none;
}

body.loaded {
  opacity: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(5,8,15,.68)),
              url('https://raw.githubusercontent.com/ROB1K777/Site/master/screen%20fon.png') center center / cover no-repeat;
  filter: blur(14px) brightness(.42) saturate(1.05);
  transform: scale(1.08);
  max-width: 100vw;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at top, rgba(255,255,255,.18), transparent 26%),
              linear-gradient(180deg, transparent, rgba(0,0,0,.18));
}

.mouse-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  filter: blur(20px);
}

.wrap {
  width: min(1280px, calc(100% - 34px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0 0;
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 16px 42px rgba(0,0,0,.12);
  transition: background .3s ease, border-color .3s ease;
  flex-wrap: wrap;
}

.nav-scrolled {
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.10));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.brand h1 {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,.98);
}

.brand span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255,255,255,.70);
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.navlinks a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  transition: .22s ease;
}

.navlinks a:hover {
  background: rgba(255,255,255,.10);
  color: white;
  transform: translateY(-2px);
}

.lang-switch {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.lang-switch button {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
  backdrop-filter: blur(4px);
}

.lang-switch button:hover {
  background: rgba(255,255,255,0.12);
}

.lang-switch button.active {
  background: rgba(255,255,255,0.2);
  color: white;
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ---------- HERO (Desktop grid) ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 34px;
  min-height: calc(100vh - 88px);
  padding: 42px 0 28px;
}

.hero-head {
  grid-column: 1;
  grid-row: 1;
}

.hero-body {
  grid-column: 1;
  grid-row: 2;
}

.hero-figure {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
  font-size: 13px;
}

.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #dbffae;
  box-shadow: 0 0 0 5px rgba(219,255,174,.12);
}

.tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 12px;
  text-transform: uppercase;
}

h2 {
  margin: 18px 0 0;
  font-size: clamp(48px, 8vw, 94px);
  line-height: .90;
  letter-spacing: -3px;
  text-transform: uppercase;
  text-shadow: 0 8px 34px rgba(0,0,0,.20);
}

.line2 {
  display: block;
  margin-top: 8px;
  text-transform: none;
}

.hero-body p {
  margin-top: 20px;
  max-width: 62ch;
  color: rgba(255,255,255,.82);
  line-height: 1.74;
  font-size: 17px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .22s ease, box-shadow .22s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn.primary {
  color: #2d1300;
  background: linear-gradient(135deg, var(--download1), var(--download2));
  box-shadow: 0 16px 34px rgba(216,106,18,.28);
}

.btn.youtube {
  color: #1a0000;
  background: linear-gradient(135deg, var(--youtube1), var(--youtube2));
  box-shadow: 0 16px 34px rgba(142,16,16,.30);
}

.btn.tg {
  color: #06111b;
  background: linear-gradient(135deg, var(--tg1), var(--tg2));
  box-shadow: 0 16px 34px rgba(31,108,255,.28);
}

.btn.discord {
  color: #12061f;
  background: linear-gradient(135deg, var(--discord1), var(--discord2));
  box-shadow: 0 16px 34px rgba(123,53,230,.28);
}

.card {
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: var(--shadow);
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 24px;
}

.mini {
  padding: 16px;
}

.mini strong {
  display: block;
  margin-bottom: 6px;
}

.mini span {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.6;
}

.screenshot-frame {
  width: min(125%, 2040px);
  padding: 14px;
  margin-top: -330px;
  border-radius: 34px;
  transition: transform .4s ease;
  box-sizing: border-box;
  perspective: 1000px;
}

.screenshot-frame img {
  width: min(800px, 125vw);
  border-radius: 24px;
  display: block;
  object-fit: cover;
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
  transition: transform .15s ease-out;
  transform-style: preserve-3d;
}

/* ---------- SECTIONS ---------- */
.section {
  padding-top: 28px;
}

.section h3 {
  margin: 0 0 12px;
  font-size: 30px;
}

.lead {
  margin-bottom: 18px;
  max-width: 70ch;
  line-height: 1.72;
  color: rgba(255,255,255,.76);
}

.grid,
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.feature,
.fact {
  padding: 18px;
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

svg {
  width: 22px;
  height: 22px;
  stroke: white;
  fill: none;
  stroke-width: 1.8;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.screenshot-item {
  padding: 14px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .26s ease;
}

.screenshot-item img {
  width: 100%;
  height: 250px;
  display: block;
  border-radius: 18px;
  cursor: pointer;
  object-fit: cover;
}

.screenshot-item figcaption {
  margin-top: 10px;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
  font-size: 13px;
}

/* ---------- MODAL ---------- */
.image-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: .3s ease;
  z-index: 999;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-image {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 22px;
  transform: scale(.92);
  transition: transform .3s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,.40);
}

.image-modal.active .modal-image {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: white;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  transition: .22s ease;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.08);
}

.footer {
  padding: 32px 0 46px;
  text-align: center;
  color: rgba(255,255,255,.64);
  font-size: 13px;
}

.disklaimer {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  line-height: 1.65;
  color: rgba(255,255,255,.70);
  font-size: 13px;
}

/* ---------- DOWNLOADS ---------- */
.download-section {
  margin-top: 0;
  padding-top: 20px;
}

.download-section h3 {
  text-align: center;
  margin-bottom: 28px;
  font-size: 38px;
  letter-spacing: -1px;
  text-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.download-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  color: white;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              background 0.28s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.download-btn:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 28px 50px rgba(0,0,0,0.35);
}

.download-btn img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.download-btn.windows {
  background: linear-gradient(135deg, #0078d4, #003c6e);
  border-color: rgba(0, 120, 212, 0.5);
}

.download-btn.android {
  background: linear-gradient(135deg, #3ddc84, #0a6729);
  border-color: rgba(61, 220, 132, 0.5);
}

.download-btn.linux {
  background: linear-gradient(135deg, #f5a623, #c55300);
  border-color: rgba(245, 166, 35, 0.5);
}

.download-stores {
  text-align: center;
  margin-top: 40px;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.12);
}

.download-stores h4 {
  margin: 0 0 24px;
  font-size: 24px;
  color: rgba(255,255,255,0.9);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  padding: 17px 30px;
  border-radius: 26px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  color: white;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
}

.store-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.3);
}

.store-icon {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.store-btn.rustore {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.store-btn.gamejolt {
  background: linear-gradient(135deg, #9ca3af, #4b5563);
}

.store-btn.itch {
  background: linear-gradient(135deg, #ef4444, #991b1b);
}

.store-btn.telegram {
  background: linear-gradient(135deg, #2aabee, #1478b2);
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- MOBILE ---------- */
@media (max-width: 980px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: auto;
    padding-top: 24px;
  }

  .hero-head,
  .hero-body,
  .hero-figure {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .hero-figure {
    order: 2;
    margin: 28px 0;
  }

  .hero-body {
    order: 3;
  }

  .grid,
  .facts,
  .meta,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .navlinks {
    justify-content: center;
  }

  .lang-switch {
    justify-content: center;
    margin-left: 0;
  }

  h2 {
    font-size: clamp(42px, 14vw, 70px);
  }

  .modal-close {
    top: 16px;
    right: 16px;
  }

  .mouse-glow {
    display: none;
  }

  .screenshot-frame {
    width: 100% !important;
    margin-top: 0 !important;
    padding: 10px;
  }

  .screenshot-frame img {
    width: 100% !important;
    max-width: 100% !important;
  }

  .download-platforms {
    flex-direction: column;
    align-items: center;
  }

  .download-btn {
    width: 100%;
    max-width: 380px;
    justify-content: center;
  }

  .stores {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }
}
