@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/unbounded-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/unbounded-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/golos-text-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/golos-text-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #0b0912;
  --ink: #edeaf6;
  --soft: #c6c1d8;
  --dim: #9e99b8;
  --faint: #6b6684;
  --accent: #8b5cf6;
  --accent-2: #c4b5fd;
  --line: rgba(167, 139, 250, 0.18);
  --line-strong: rgba(167, 139, 250, 0.38);
  --card: rgba(20, 17, 31, 0.86);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Golos Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: var(--accent-2); }

/* Каталог остается в разметке, чтобы поисковик видел названия игр.
   До 18+ его закрывает непрозрачная ширма, а не display:none. */
html:not([data-age="ok"]) body { overflow: hidden; }
html[data-age="ok"] .gate { display: none; }
html[data-lang="ru"] .en { display: none; }
html[data-lang="en"] .ru { display: none; }

.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 480px at 100% 100%, rgba(56, 189, 248, 0.10), transparent 55%),
    var(--ground);
}
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(rgba(237, 234, 246, 0.18) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: auto;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 480px at 100% 100%, rgba(56, 189, 248, 0.10), transparent 55%),
    var(--ground);
}
.gate-card {
  width: min(42rem, 100%);
  padding: 2.2rem 2rem 1.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.4rem;
  background: rgba(11, 9, 18, 0.72);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.mark {
  margin: 0 0 1.2rem;
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: var(--accent);
  color: white;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.gate h1, .app h1, .card h2, .files h3, .steps h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.gate h1 { margin: 0 0 0.8rem; font-size: clamp(2rem, 5vw, 3.2rem); }
.gate-copy { margin: 0 0 1.6rem; color: var(--soft); max-width: 34rem; }
.gate-actions, .files li { display: flex; gap: 0.75rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.8rem;
  padding: 0.75rem 1.15rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: #7c3aed; }
.btn:focus-visible, .lang button:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}
.btn-ghost {
  background: transparent;
  color: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { background: rgba(167, 139, 250, 0.08); color: white; }

.app { width: min(68rem, calc(100% - 2rem)); margin: 0 auto; padding: 1.4rem 0 3rem; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-note {
  color: var(--dim);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 400;
}
.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.4rem;
  display: block;
}
.lang { display: flex; gap: 0.3rem; }
.lang button {
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
}
html[data-lang="ru"] .lang button[data-lang="ru"],
html[data-lang="en"] .lang button[data-lang="en"] {
  color: white;
  background: rgba(167, 139, 250, 0.14);
}

.app h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); max-width: 16em; }
.lede { margin: 1rem 0 2.2rem; max-width: 40rem; color: var(--soft); }

.grid { display: grid; gap: 1rem; }
@media (min-width: 880px) {
  .grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.card {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--card);
  padding: 1.3rem 1.2rem 0.4rem;
}
.card h2 { margin: 0 0 0.45rem; font-size: 1.28rem; line-height: 1.3; letter-spacing: -0.02em; }
.card-head p:last-child { margin: 0 0 0.4rem; color: var(--soft); }
.files { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.files li {
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.files h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.files h3 span { color: var(--dim); font-size: 0.85rem; margin-left: 0.35rem; }
.files p { margin: 0; color: var(--soft); }
.files .count { margin: 0.45rem 0 0; color: var(--dim); font-size: 0.85rem; }
.files .count b { color: var(--ink); font-weight: 500; }
.files .btn { margin-top: 0.15rem; }

.steps {
  margin-top: 1.4rem;
  padding: 1.3rem 1.3rem 1.1rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
}
.steps h2 { margin: 0 0 0.8rem; font-size: 1.35rem; }
.steps ol { margin: 0; padding-left: 1.2rem; color: var(--soft); }
.steps li + li { margin-top: 0.45rem; }
.bep {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
  margin: 1rem 0 0;
  color: var(--dim);
}

.log {
  margin-top: 1.4rem;
  padding: 1.3rem 1.3rem 0.4rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
}
.log h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.log-block + .log-block { margin-top: 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.log h3 { margin: 0 0 0.55rem; font-size: 1.02rem; }
.log ul { list-style: none; margin: 0; padding: 0; }
.log li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.35rem 0.8rem;
  align-items: baseline;
  margin: 0 0 0.7rem;
}
.log .ver { color: var(--accent-2, #c4b5fd); font-size: 0.92rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  color: var(--faint);
  font-size: 0.92rem;
}
footer p { margin: 0; }
.foot-brand { display: flex; gap: 0.75rem; }

.denied {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: left;
}
.denied .gate-card { max-width: 32rem; }

@media (max-width: 640px) {
  .files li, .gate-actions { flex-direction: column; align-items: stretch; }
  .files .btn, .gate-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Keep keyboard focus and touch targets clear without changing the visual theme. */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}
.lang button { min-width: 44px; min-height: 44px; color: var(--soft); }
.top { gap: 1rem; flex-wrap: wrap; }
.card, .files li > div { min-width: 0; }
.app h1, .card h2, .files h3, .gate-copy, .bep a { overflow-wrap: anywhere; }
footer { color: var(--dim); }
@media (max-width: 400px) {
  .gate { padding: 1rem; }
  .gate-card { padding: 1.5rem 1.1rem; }
}
