@font-face {
  font-family: "Press Start 2P";
  src: url("/PressStart2P.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #0a0e16;
  --rail: #0d1320;
  --bg-card: #121826;
  --line: #1e2a40;
  --text: #e7edf6;
  --muted: #8b98ad;
  --accent: #6ea8ff;
  --gold: #d4b56a;
  --rail-w: 248px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(10, 14, 22, 0.2), rgba(10, 14, 22, 1)),
    radial-gradient(1200px 500px at 20% -10%, rgba(110, 168, 255, 0.12), transparent 60%),
    radial-gradient(800px 400px at 90% 0%, rgba(212, 181, 106, 0.08), transparent 55%);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.burger {
  display: none;
  position: fixed;
  z-index: 40;
  top: 14px;
  right: 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  font: 700 12px/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--rail);
  border-right: 1px solid var(--line);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.mark {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f0d48a, var(--gold));
  color: #1a1408;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #8a6d2e inset, 0 8px 18px rgba(0, 0, 0, 0.35);
}
.brand strong {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}
.menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}
.menu a:hover,
.menu a.is-on {
  color: var(--text);
  background: rgba(110, 168, 255, 0.1);
  text-decoration: none;
}
.menu a.is-on {
  box-shadow: inset 2px 0 0 var(--gold);
}
.main {
  padding: 48px 56px 80px;
  max-width: 920px;
}
h1 {
  font-family: "Press Start 2P", monospace;
  font-size: 22px;
  line-height: 1.55;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--gold);
}
h2 {
  font-size: 18px;
  margin: 0;
}
h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 46rem;
}
.news-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.news-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.news-badge {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1408;
  background: var(--gold);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}
.news-item:first-child { border-top: 0; }
.news-date {
  color: var(--gold);
  font-size: 13px;
  padding-top: 3px;
}
.news-body p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}
.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.game {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  min-height: 100%;
}
a.game:hover {
  text-decoration: none;
  border-color: rgba(110, 168, 255, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.game.soon { opacity: 0.78; }
.cover {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.15), rgba(10, 14, 22, 0.55)),
    repeating-linear-gradient(45deg, #152036 0 8px, #101828 8px 16px);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  overflow: hidden;
}
.cover img,
.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-art {
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 0 0 24px;
  background: var(--bg-card);
}
.game-body { padding: 16px 18px 20px; }
.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.game-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.facts span {
  border: 1px solid var(--line);
  background: rgba(18, 24, 38, 0.8);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}
.story {
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 46rem;
}
.note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 22px;
  max-width: 46rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 22px;
}
.play-now { margin: 0 0 22px; }
.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 22px;
  background: linear-gradient(180deg, #f0d48a, var(--gold));
  color: #1a1408;
  font-family: "Press Start 2P", monospace;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(212, 181, 106, 0.28);
}
.btn-play:hover { text-decoration: none; filter: brightness(1.05); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  background: transparent;
}
.btn-ghost:hover { text-decoration: none; border-color: var(--accent); }
.legal h2 { margin: 28px 0 10px; color: var(--gold); }
.legal p, .legal li {
  color: var(--muted);
  line-height: 1.65;
}
.legal ul { padding-left: 1.2rem; }
.legal code {
  color: var(--text);
  font-size: 0.95em;
}
@media (max-width: 860px) {
  .burger { display: block; }
  .shell { display: block; }
  .rail {
    position: fixed;
    z-index: 30;
    left: 0;
    top: 0;
    width: min(84vw, var(--rail-w));
    transform: translateX(-110%);
    transition: transform 0.2s ease;
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.35);
  }
  .rail.open { transform: none; }
  .main { padding: 72px 20px 56px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .games { grid-template-columns: 1fr; }
  h1 { font-size: 16px; }
}
