:root {
  --bg: #080910;
  --panel: rgba(16, 18, 31, .82);
  --panel-strong: rgba(8, 10, 18, .94);
  --text: #f5f7ff;
  --muted: #b8bfd6;
  --cyan: #21f6ff;
  --pink: #ff3dbb;
  --violet: #8b5cff;
  --yellow: #ffd84a;
  --green: #7cff9b;
  --line: rgba(255, 255, 255, .14);
  --pixel: "Press Start 2P", system-ui;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 61, 187, .22), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(33, 246, 255, .17), transparent 28%),
    linear-gradient(180deg, #05060c 0%, #0d0e18 42%, #06060b 100%);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.025) 50%, rgba(0,0,0,.035) 50%);
  background-size: 100% 4px;
  z-index: 20;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .game-menu, .section__label { font-family: var(--pixel); }
h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6.4vw, 7rem);
  line-height: 1.02;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 0 10px var(--pink), 0 0 32px var(--violet), 8px 8px 0 rgba(33, 246, 255, .28);
}
h2 {
  font-size: clamp(1.3rem, 3.2vw, 2.55rem);
  line-height: 1.35;
  text-shadow: 0 0 18px rgba(139, 92, 255, .85);
}
h3 { font-size: 1.05rem; line-height: 1.35; }
p { color: var(--muted); line-height: 1.75; }

.boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: #020308;
  animation: bootOut .45s ease 2.15s forwards;
}
.boot__screen {
  width: min(720px, calc(100vw - 32px));
  border: 2px solid var(--cyan);
  padding: 34px;
  background: #090b13;
  box-shadow: 0 0 34px rgba(33,246,255,.45), inset 0 0 38px rgba(255,61,187,.15);
}
.boot__logo {
  display: block;
  width: min(420px, 86vw);
  height: auto;
  filter: invert(1) drop-shadow(0 0 14px var(--yellow)) drop-shadow(0 0 28px var(--pink));
}
.boot__line, .boot__hint { margin-top: 18px; font-family: var(--pixel); font-size: .72rem; color: var(--cyan); }
.boot__bar { height: 18px; margin-top: 22px; border: 2px solid #fff; padding: 3px; }
.boot__bar span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--pink), var(--cyan), var(--yellow)); animation: load 1.6s steps(12) forwards; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 19;
  pointer-events: none;
  opacity: .11;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.18) 18px 19px);
  mix-blend-mode: screen;
  animation: jitter .45s steps(2) infinite;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(3,4,9,.88), rgba(3,4,9,.35));
  backdrop-filter: blur(16px);
}
.topbar__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.topbar__logo img {
  display: block;
  width: clamp(122px, 14vw, 188px);
  height: auto;
  filter: invert(1) drop-shadow(0 0 8px var(--yellow)) drop-shadow(0 0 16px rgba(255,61,187,.62));
}
.topbar__nav { display: flex; gap: clamp(14px, 2vw, 24px); color: var(--muted); font-weight: 700; font-size: clamp(.78rem, 1vw, .95rem); }
.topbar__nav a:hover { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.topbar__cta { border: 1px solid var(--pink); padding: 10px 14px; font-family: var(--pixel); font-size: .62rem; box-shadow: 0 0 16px rgba(255,61,187,.35); }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(36px, 5vw, 96px);
  align-items: center;
  padding: 116px clamp(18px, 5vw, 72px) 58px;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34vh;
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(33,246,255,.35) 49% 51%, transparent 51%),
    repeating-linear-gradient(90deg, rgba(255,61,187,.18) 0 2px, transparent 2px 92px),
    linear-gradient(180deg, transparent, rgba(33,246,255,.08));
  transform: perspective(480px) rotateX(62deg);
  transform-origin: bottom;
  z-index: -1;
}
.hero__content {
  max-width: 980px;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.hero__logo-title {
  margin: 0 0 22px;
  font-size: 0;
  line-height: 1;
  text-shadow: none;
}
.hero__logo-title img {
  display: block;
  width: min(100%, 980px);
  height: auto;
  filter: invert(1) drop-shadow(0 0 10px var(--pink)) drop-shadow(0 0 32px var(--violet)) drop-shadow(8px 8px 0 rgba(33, 246, 255, .28));
}
.eyebrow, .section__label {
  color: var(--cyan);
  font-size: .68rem;
  line-height: 1.8;
  text-shadow: 0 0 12px var(--cyan);
}
.hero__subtitle {
  max-width: 720px;
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  color: #fff;
}
.hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 520px;
}
.hero__actions .btn--primary { grid-column: 1 / -1; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.menu-card-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset;
}
.btn--primary {
  background: linear-gradient(90deg, var(--pink), var(--violet));
  box-shadow: 0 0 24px rgba(255,61,187,.48);
}
.btn--ghost:hover, .btn--primary:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn--small { min-height: 42px; font-size: .8rem; border-color: var(--cyan); box-shadow: 0 0 18px rgba(33,246,255,.28); }
.btn--social {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255,255,255,.35);
  background-size: 240% 100%;
  text-shadow: 0 0 10px rgba(255,255,255,.7);
  animation: socialNeon 4s linear infinite;
}
.btn--social::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: rgba(7,8,15,.74);
}
.btn--social::after {
  content: "";
  position: absolute;
  inset: -45% -25%;
  z-index: -2;
  background: inherit;
  filter: blur(18px);
  opacity: .78;
}
.btn--vk {
  background-image: linear-gradient(110deg, var(--cyan), #fff, var(--violet), var(--pink), var(--cyan));
  box-shadow: 0 0 18px rgba(33,246,255,.4), 0 0 30px rgba(139,92,255,.22);
}
.btn--max {
  background-image: linear-gradient(110deg, var(--yellow), var(--pink), #fff, var(--cyan), var(--yellow));
  box-shadow: 0 0 18px rgba(255,216,74,.36), 0 0 30px rgba(255,61,187,.22);
}
.btn--social:hover {
  transform: translateY(-3px);
  filter: brightness(1.16);
  box-shadow: 0 0 24px rgba(33,246,255,.5), 0 0 38px rgba(255,61,187,.3);
}

.game-menu {
  position: relative;
  z-index: 4;
  justify-self: end;
  width: min(100%, 520px);
  margin-top: clamp(38px, 7vh, 96px);
  padding: 24px;
  border: 2px solid rgba(255,255,255,.42);
  background: linear-gradient(180deg, rgba(8,10,18,.82), rgba(16,18,31,.78));
  box-shadow: 0 0 40px rgba(139,92,255,.28), inset 0 0 28px rgba(33,246,255,.08);
}
.game-menu__status { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 18px; color: var(--yellow); font-size: .6rem; }
.game-menu a {
  display: block;
  padding: 13px 12px 13px 28px;
  color: #fff;
  font-size: clamp(.62rem, 1vw, .78rem);
  line-height: 1.55;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.game-menu a::before { content: "▶"; margin-left: -24px; margin-right: 8px; color: var(--cyan); }
.game-menu a:hover {
  color: var(--yellow);
  background: rgba(255,216,74,.08);
  text-shadow: 0 0 14px var(--yellow);
  transform: translateX(5px);
}

@media (min-width: 861px) {
  .hero {
    align-items: start;
    padding-top: clamp(82px, 9vh, 118px);
  }

  .hero__content {
    transform: translateY(clamp(-42px, -5vh, -18px));
  }

  .game-menu {
    margin-top: clamp(150px, 24vh, 245px);
  }
}

.hero__city, .hero__props { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.building { position: absolute; bottom: 20vh; width: 9vw; min-width: 70px; background: linear-gradient(180deg, #15182a, #080910); border-top: 2px solid var(--cyan); box-shadow: 0 0 25px rgba(33,246,255,.18); }
.building::before { content: ""; position: absolute; inset: 14px; background: repeating-linear-gradient(90deg, var(--yellow) 0 8px, transparent 8px 18px); opacity: .4; }
.b1 { left: 6%; height: 34vh; } .b2 { left: 18%; height: 23vh; } .b3 { right: 18%; height: 30vh; } .b4 { right: 5%; height: 38vh; }
.prop { position: absolute; filter: drop-shadow(0 0 22px rgba(33,246,255,.34)); opacity: .72; }
.prop--tv { right: 8%; top: 20%; width: 140px; height: 100px; border: 8px solid #242842; background: repeating-linear-gradient(0deg, #fff 0 2px, #10131f 2px 8px); transform: rotate(8deg); }
.prop--tv span { position: absolute; right: -26px; top: 18px; width: 18px; height: 46px; background: #242842; }
.prop--cassette { left: 9%; top: 24%; width: 150px; height: 88px; border: 3px solid var(--pink); background: linear-gradient(90deg, rgba(255,61,187,.12), rgba(33,246,255,.12)); transform: rotate(-12deg); }
.prop--cassette::before { content: ""; position: absolute; inset: 24px 18px; border: 3px solid #fff; border-radius: 999px; }
.prop--pad { right: 28%; bottom: 18%; width: 190px; height: 92px; border-radius: 28px; border: 3px solid var(--cyan); background: #111525; transform: rotate(-8deg); }
.prop--pad::before { content: "+"; position: absolute; left: 28px; top: 20px; color: var(--cyan); font-size: 42px; font-weight: 900; }
.prop--pad::after { content: ""; position: absolute; right: 28px; top: 28px; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); box-shadow: 34px 0 var(--yellow); }
.prop--disc { left: 38%; top: 18%; width: 94px; height: 94px; border-radius: 50%; background: conic-gradient(from 30deg, var(--cyan), var(--pink), var(--yellow), var(--cyan)); animation: spin 8s linear infinite; }
.prop--arcade { left: 30%; bottom: 20%; width: 96px; height: 160px; border: 3px solid var(--yellow); background: linear-gradient(#1b1f35 0 45%, #0c0e18 45%); transform: rotate(5deg); }

.section {
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255,255,255,.08);
  scroll-margin-top: 88px;
}
.section > h2, .section-head { margin-bottom: 28px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.split p { max-width: 760px; font-size: 1.08rem; }
.relics, .character-grid, .inventory__grid, .level-grid, .achievement-grid, .review-grid {
  display: grid;
  gap: 16px;
}
.relics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.relic {
  min-height: 116px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(33,246,255,.42);
  background: var(--panel);
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: .6rem;
  text-align: center;
  box-shadow: inset 0 0 22px rgba(33,246,255,.08);
  cursor: pointer;
  appearance: none;
}
.relic:hover {
  border-color: var(--yellow);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 0 26px rgba(255,216,74,.2), inset 0 0 24px rgba(33,246,255,.12);
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(2, 3, 8, .78);
  backdrop-filter: blur(10px);
}
.game-modal.is-open { display: grid; }
.game-modal__panel,
.menu-modal__panel {
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  border: 2px solid var(--cyan);
  background: linear-gradient(180deg, rgba(9,11,20,.96), rgba(4,5,10,.96));
  box-shadow: 0 0 44px rgba(33,246,255,.28), inset 0 0 28px rgba(255,61,187,.12);
}
.game-modal__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.game-modal__top h2 { margin-bottom: 0; }
.game-modal__close {
  width: 46px;
  height: 46px;
  border: 1px solid var(--pink);
  background: rgba(255,61,187,.08);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.game-modal__body { padding: 22px; }
.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(2, 3, 8, .78);
  backdrop-filter: blur(10px);
}
.menu-modal.is-open { display: grid; }
.menu-modal__body {
  display: grid;
  gap: 16px;
  padding: 22px;
}
.menu-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.menu-modal__item {
  padding: 18px;
  border: 1px solid rgba(33,246,255,.34);
  background: rgba(255,255,255,.05);
}
.menu-modal__item span {
  display: block;
  margin-bottom: 12px;
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: .68rem;
}
.menu-modal__item strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}
.menu-modal__position {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.menu-modal__position strong {
  min-width: 0;
  font-size: .96rem;
}
.menu-modal__position em {
  color: var(--muted);
  font-style: normal;
  font-size: .86rem;
  white-space: nowrap;
}
.menu-modal__position small {
  color: var(--yellow);
  font-weight: 900;
  white-space: nowrap;
}
.menu-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.menu-modal__pdf {
  width: 100%;
  min-height: min(70vh, 720px);
  border: 1px solid rgba(255,216,74,.42);
  background: rgba(8,10,18,.92);
}
.mini-game {
  display: grid;
  gap: 18px;
}
.mini-game__hud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: .68rem;
}
.mini-score {
  color: #fff;
  text-shadow: 0 0 12px var(--pink);
}
.mini-game__screen {
  width: 100%;
  min-height: 360px;
  padding: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(33,246,255,.42);
  background:
    linear-gradient(rgba(255,255,255,.03) 50%, rgba(0,0,0,.05) 50%),
    radial-gradient(circle at center, rgba(33,246,255,.08), transparent 58%),
    #070910;
  background-size: 100% 4px, auto, auto;
  touch-action: none;
  user-select: none;
  overflow: hidden;
  box-shadow: inset 0 0 32px rgba(33,246,255,.14), 0 0 24px rgba(255,61,187,.12);
}
.mini-game canvas {
  width: min(100%, 560px);
  max-height: min(62vh, 560px);
  height: auto;
  image-rendering: pixelated;
  border: 1px solid rgba(255,255,255,.14);
  background: #05060b;
  box-shadow: 0 0 24px rgba(33,246,255,.16);
}
.mini-game__controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}
.mini-game__controls button {
  min-height: 52px;
  border: 1px solid rgba(33,246,255,.42);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 14px rgba(33,246,255,.08);
}
.mini-game__controls button:hover,
.mini-game__controls button:focus-visible {
  color: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 20px rgba(255,216,74,.2), inset 0 0 16px rgba(255,216,74,.1);
}
.pet {
  width: 180px;
  height: 220px;
  display: grid;
  place-items: center;
  border: 4px solid var(--yellow);
  border-radius: 45% 45% 42% 42%;
  background: radial-gradient(circle at center, rgba(124,255,155,.18), rgba(33,246,255,.08));
  color: #fff;
  font-family: var(--pixel);
  text-align: center;
  box-shadow: 0 0 28px rgba(255,216,74,.24);
}
.pet::before { content: "(^_^)"; font-size: 1.2rem; }
.pager-shell {
  width: min(100%, 390px);
  padding: 22px;
  border: 3px solid rgba(215,219,255,.52);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02)),
    #171b25;
  box-shadow: inset 0 -10px 18px rgba(0,0,0,.34), 0 0 30px rgba(33,246,255,.14);
}
.pager-display {
  min-height: 72px;
  margin-bottom: 18px;
  padding: 18px;
  border: 2px solid rgba(20,40,22,.85);
  background: #9ec486;
  color: #152412;
  font: 900 1rem var(--pixel);
  letter-spacing: 1px;
  display: grid;
  align-items: center;
  box-shadow: inset 0 0 18px rgba(0,0,0,.28);
}
.pager-code {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pager-code button {
  height: 58px;
  border: 1px solid var(--cyan);
  background: rgba(33,246,255,.08);
  color: #fff;
  font: 900 1.1rem var(--pixel);
  cursor: pointer;
}
.pager-code button:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.character-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding-bottom: 10px; }
.rules {
  background:
    linear-gradient(180deg, rgba(255,216,74,.04), transparent 35%),
    rgba(5,6,12,.5);
}
.rules__head > div { max-width: 760px; }
.rules__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}
.rule-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(33,246,255,.3);
  background: linear-gradient(180deg, rgba(18,21,36,.9), rgba(8,10,18,.94));
  box-shadow: inset 0 0 28px rgba(33,246,255,.05);
}
.rule-card span {
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: .58rem;
  line-height: 1.7;
}
.rule-card h3 { margin: 38px 0 10px; font-size: clamp(1.15rem, 2vw, 1.55rem); }
.rule-card p { margin: 0; }
.rules__details {
  display: grid;
  grid-template-columns: minmax(210px, .45fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.rules__details--warning { border-color: rgba(255,61,187,.42); }
.rules__price-list { display: grid; }
.rules__price-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(255,255,255,.16);
}
.rules__price-list span { color: var(--muted); line-height: 1.5; }
.rules__price-list strong { color: var(--yellow); white-space: nowrap; }
.character, .level-grid article, .review-grid blockquote {
  margin: 0;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(18,21,36,.92), rgba(8,10,18,.92));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.character {
  min-height: 265px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.character::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto;
  height: 110px;
  background:
    linear-gradient(45deg, transparent 42%, rgba(255,255,255,.22) 42% 58%, transparent 58%),
    radial-gradient(circle at 50% 28%, var(--cyan) 0 22px, transparent 23px),
    linear-gradient(180deg, rgba(255,61,187,.65), rgba(139,92,255,.42));
  clip-path: polygon(50% 0, 92% 26%, 78% 100%, 22% 100%, 8% 26%);
  opacity: .9;
}
.character span { color: var(--cyan); font-family: var(--pixel); font-size: .64rem; }
.character:hover, .level-grid article:hover {
  border-color: var(--yellow);
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(255,216,74,.23), inset 0 0 24px rgba(255,216,74,.08);
}

.inventory { background: linear-gradient(180deg, rgba(255,61,187,.04), rgba(33,246,255,.03)); }
.inventory__lead {
  max-width: 620px;
  margin-bottom: 0;
}
.inventory-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 8px 0 18px;
  padding: 6px;
  border: 1px solid rgba(33,246,255,.26);
  background: rgba(255,255,255,.04);
}
.inventory-tabs button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}
.inventory-tabs button.is-active {
  color: #05060b;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(255,216,74,.32);
}
.inventory-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(255,216,74,.36);
  background:
    linear-gradient(90deg, rgba(255,216,74,.12), rgba(33,246,255,.08), rgba(255,61,187,.1)),
    rgba(8,10,18,.78);
  box-shadow: inset 0 0 26px rgba(255,216,74,.06);
}
.inventory-preview__icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,216,74,.5);
  color: var(--yellow);
  font-size: 2rem;
  box-shadow: 0 0 22px rgba(255,216,74,.16);
}
.inventory-preview span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: var(--pixel);
  font-size: .58rem;
}
.inventory-preview h3 {
  margin-bottom: 6px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}
.inventory-preview p { margin-bottom: 0; }
.inventory__grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.item {
  min-height: 168px;
  border: 2px solid rgba(255,255,255,.22);
  background: var(--panel-strong);
  color: #fff;
  font: 800 .95rem var(--sans);
  cursor: pointer;
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  overflow: hidden;
}
.item::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}
.item span { display: block; color: var(--yellow); font-size: 2rem; text-shadow: 0 0 18px var(--yellow); }
.item strong {
  display: block;
  text-align: center;
  font-size: 1rem;
}
.item small {
  display: inline-flex;
  color: var(--cyan);
  font-weight: 900;
}
.item:hover,
.item.is-selected {
  border-color: var(--cyan);
  box-shadow: 0 0 28px rgba(33,246,255,.32);
  color: var(--cyan);
}
.item.is-hidden { display: none; }

.section-head { justify-content: space-between; }
.level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.level-grid article { padding: 24px; min-height: 188px; }
.level-grid span { display: inline-flex; margin-bottom: 30px; color: var(--yellow); font-family: var(--pixel); font-size: .62rem; }

.achievement-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
}
.achievement-grid figure { min-width: 0; margin: 0; }
.achievement-grid figure.is-wide { grid-column: span 2; }
.gallery-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: #090a12;
  cursor: pointer;
  box-shadow: inset 0 0 24px rgba(33,246,255,.06);
}
.achievement-grid figure.is-wide .gallery-photo { aspect-ratio: 3 / 2; }
.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.gallery-photo:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 26px rgba(33,246,255,.25);
}
.gallery-photo:hover img { transform: scale(1.035); filter: brightness(1.08); }
.achievement-grid figcaption { margin-top: 10px; color: #fff; font-weight: 800; }

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(2,3,8,.92);
  backdrop-filter: blur(12px);
}
.gallery-modal.is-open { display: grid; }
.gallery-modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 14px;
  align-items: center;
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);
}
.gallery-modal figure { min-width: 0; margin: 0; text-align: center; }
.gallery-modal img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
}
.gallery-modal figcaption { margin-top: 10px; color: var(--muted); font-weight: 800; }
.gallery-modal__close,
.gallery-modal__nav {
  width: 48px;
  height: 48px;
  border: 1px solid var(--cyan);
  background: rgba(8,10,18,.86);
  color: #fff;
  font-size: 1.55rem;
  cursor: pointer;
}
.gallery-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  border-color: var(--pink);
  transform: translateY(-4px);
}
.gallery-modal__nav:hover,
.gallery-modal__close:hover { color: var(--yellow); box-shadow: 0 0 20px rgba(33,246,255,.3); }

.review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yandex-review-banner {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid rgba(255,216,74,.58);
  background:
    linear-gradient(90deg, rgba(255,216,74,.18), rgba(33,246,255,.1), rgba(255,61,187,.12)),
    rgba(8,10,18,.82);
  box-shadow: 0 0 28px rgba(255,216,74,.16), inset 0 0 26px rgba(33,246,255,.08);
}
.yandex-review-banner span {
  color: var(--cyan);
  font-family: var(--pixel);
  font-size: .62rem;
  text-shadow: 0 0 12px var(--cyan);
}
.yandex-review-banner strong {
  color: #fff;
  font-size: clamp(1.1rem, 2.6vw, 2rem);
  text-transform: uppercase;
}
.yandex-review-banner:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: 0 0 34px rgba(255,216,74,.26), inset 0 0 26px rgba(255,216,74,.08);
}
.review-grid blockquote { padding: 24px; }
.review-grid strong { display: block; color: var(--cyan); font-family: var(--pixel); font-size: .72rem; }
.review-grid span { display: block; margin: 14px 0; color: var(--yellow); text-shadow: 0 0 12px var(--yellow); }
.yandex-reviews-widget {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 620px;
  border: 1px solid rgba(33,246,255,.42);
  background: rgba(8,10,18,.92);
}

.booking {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(139,92,255,.22), transparent 56%);
}
.save-window {
  width: min(860px, 100%);
  padding: clamp(22px, 4vw, 42px);
  border: 2px solid var(--cyan);
  background: rgba(5,6,12,.9);
  box-shadow: 0 0 42px rgba(33,246,255,.28), inset 0 0 32px rgba(139,92,255,.18);
}
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 800; }
input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 0 14px;
  font: inherit;
}
input:focus { outline: 2px solid var(--pink); box-shadow: 0 0 20px rgba(255,61,187,.24); }
.consent-field {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(33,246,255,.24);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}
.consent-field input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
}
.consent-field a { color: var(--cyan); }
form button { grid-column: 1 / -1; border: 0; cursor: pointer; }
.booking__note { margin: 18px 0 0; color: var(--green); }

.footer {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(220px, .5fr);
  gap: 24px;
  padding: 52px clamp(18px, 5vw, 72px);
  background: #030409;
  border-top: 2px solid var(--pink);
  scroll-margin-top: 88px;
}
.footer__over { color: var(--pink); font-family: var(--pixel); font-size: .62rem; }
.footer h2 { margin: 12px 0 0; color: var(--yellow); }
.footer__logo {
  display: block;
  width: min(320px, 80vw);
  height: auto;
  margin-top: 14px;
  filter: invert(1) drop-shadow(0 0 10px var(--yellow)) drop-shadow(0 0 18px var(--pink));
}
.contacts { display: grid; gap: 10px; color: var(--muted); }
.contacts a:hover { color: var(--cyan); }
.map-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(33,246,255,.38);
  background: #090b12;
  box-shadow: 0 0 24px rgba(33,246,255,.12);
}
.map-card__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  border: 0;
  filter: saturate(.85) contrast(1.05);
}
.map-card__route {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 11px 14px;
  color: #030409;
  font-family: var(--pixel);
  font-size: .5rem;
  background: var(--cyan);
  border: 1px solid #fff;
  box-shadow: 0 0 16px rgba(33,246,255,.7);
}
.map-card__route:hover {
  color: #030409;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(255,224,74,.75);
}

.legal-page {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 70px);
  background:
    var(--scanlines),
    radial-gradient(circle at 12% 18%, rgba(33,246,255,.12), transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(255,61,187,.12), transparent 30%),
    var(--graphite);
}
.legal-page__back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--cyan);
  font-weight: 900;
}
.legal-card {
  width: min(980px, 100%);
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(33,246,255,.34);
  background: rgba(7,9,16,.86);
  box-shadow: 0 0 40px rgba(33,246,255,.14), inset 0 0 28px rgba(255,61,187,.08);
}
.legal-card h1 {
  margin-bottom: 26px;
  font-size: clamp(2rem, 5vw, 4.4rem);
}
.legal-card h2 {
  margin-top: 28px;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}
.legal-card p {
  max-width: 880px;
  color: var(--muted);
}
.legal-card a { color: var(--cyan); }
.legal-page__date {
  margin-top: 34px;
  color: var(--yellow) !important;
  font-weight: 900;
}

@keyframes load { to { width: 100%; } }
@keyframes bootOut { to { opacity: 0; visibility: hidden; } }
@keyframes jitter { 0% { transform: translate(0); } 50% { transform: translate(1px, -1px); } 100% { transform: translate(-1px, 1px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes socialNeon { to { background-position: 240% 0; } }

@media (max-width: 860px) {
  .topbar__nav { display: none; }
  .hero, .split, .level-grid, .review-grid, .footer, .rules__summary, .rules__details { grid-template-columns: 1fr; }
  .hero { padding-top: 96px; }
  .game-menu { justify-self: stretch; width: 100%; max-width: 620px; margin-top: 12px; }
  .inventory__grid, .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .relics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .topbar { padding: 14px 16px; }
  .topbar__logo img { width: 126px; }
  .topbar__cta { display: none; }
  .menu-card-links { width: 100%; display: grid; grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-bottom: 42px; }
  h1 { font-size: clamp(2.35rem, 10vw, 3.35rem); }
  .hero__logo-title img { width: min(100%, 520px); }
  .hero__actions { grid-template-columns: 1fr; }
  .hero__actions .btn--primary { grid-column: auto; }
  .game-menu { padding: 16px; }
  .inventory-preview { grid-template-columns: 1fr; }
  .inventory-preview__icon { width: 64px; height: 64px; }
  .inventory-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inventory-tabs button { padding: 0 8px; }
  .section { padding: 62px 16px; }
  .relics, .inventory__grid, .achievement-grid, form { grid-template-columns: 1fr; }
  .achievement-grid figure.is-wide { grid-column: span 1; }
  .achievement-grid figure.is-wide .gallery-photo { aspect-ratio: 4 / 5; }
  .gallery-modal__panel { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 6px; }
  .gallery-modal__nav { width: 40px; height: 44px; }
  .character-grid { grid-template-columns: repeat(7, 78vw); overflow-x: auto; }
  .footer { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition: none !important; }
  .boot { display: none; }
}
