@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.28) 0%, rgba(10, 14, 22, 0.42) 100%),
    url("/studio-watermark.png?v=5");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #9bc4ff; }

.shell { display: flex; min-height: 100vh; }

.rail {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: var(--rail-w);
  min-height: 100vh;
  padding: 1.6rem 1.15rem 1.4rem;
  background-color: rgba(13, 19, 32, 0.72);
  background-image:
    linear-gradient(180deg, rgba(13, 19, 32, 0.32), rgba(13, 19, 32, 0.48)),
    url("/studio-menu-pixel.png?v=6");
  background-size: cover;
  background-position: center top;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.brand {
  color: inherit;
  transition: color 0.25s ease;
}
.brand:hover { color: inherit; }
.mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: #1a2740;
  border: 1px solid #2a3b5c;
  display: grid; place-items: center;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-weight: 400; font-size: 0.42rem; letter-spacing: 0;
  margin-bottom: 0.7rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.brand:hover .mark {
  transform: translateY(-2px);
  border-color: #d4b56a;
  box-shadow: 0 0 0 3px rgba(212, 181, 106, 0.18);
}
.brand strong {
  display: block;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 0.48rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--gold);
  text-shadow: 2px 2px 0 #120e06;
}
.brand em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
}

.menu { display: flex; flex-direction: column; gap: 0.15rem; }
.menu a {
  position: relative;
  display: block;
  padding: 0.55rem 0.7rem 0.55rem 0.85rem;
  font-family: "Press Start 2P", "Courier New", monospace;
  color: var(--muted);
  font-size: 0.52rem;
  line-height: 1.45;
  border-radius: 6px;
  overflow: hidden;
  transition: color 0.22s ease, background 0.22s ease, transform 0.18s ease;
}
.menu a::before {
  content: "";
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.22s ease;
}
.menu a:hover {
  color: var(--text);
  background: #121a2c;
  transform: translateX(4px);
}
.menu a:hover::before,
.menu a.is-on::before {
  transform: scaleY(1);
}
.menu a:active {
  transform: translateX(4px) scale(0.98);
}
.menu a.is-on {
  color: var(--text);
  background: #121a2c;
}

.rail-foot {
  margin-top: auto;
  font-size: 0.72rem;
  color: #6b778c;
  line-height: 1.4;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 2.4rem 3rem 3rem;
  max-width: 860px;
  background: rgba(10, 14, 22, 0.38);
  border: 1px solid rgba(30, 42, 64, 0.55);
  border-radius: 14px;
  margin: 2rem 2rem 2rem 0;
  animation: rise 0.55s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.main h1 {
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: clamp(0.72rem, 1.7vw, 1.05rem);
  font-weight: 400;
  line-height: 1.65;
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-align: center;
  text-shadow:
    3px 3px 0 #120e06,
    0 0 16px rgba(212, 181, 106, 0.35);
}
.main .lead { color: var(--muted); margin: 0 0 2.2rem; max-width: 36rem; }
.main h2 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2.4rem 0 0.9rem;
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.game {
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
  color: inherit;
  text-decoration: none;
  display: block;
}
a.game:hover { color: inherit; text-decoration: none; }
.game:not(.soon):hover {
  transform: translateY(-4px);
  border-color: #3a4f72;
}
.game.soon { opacity: 0.55; }
.cover {
  height: 168px;
  background: #152036;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #7d93b5;
  overflow: hidden;
  padding: 0;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.game-body { padding: 1rem 1.05rem 1.15rem; }
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.game h3 { margin: 0 0 0.35rem; font-size: 1.08rem; font-weight: 650; }
.game p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.hero-art {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #0a0e16;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 1.2rem;
  display: block;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
}
.facts span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid #3a4f72;
  background: #121a2c;
  padding: 0.28rem 0.55rem;
}
.story { color: var(--text); max-width: 38rem; }
.story + .story { margin-top: 0.85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.3rem 0 0.4rem; }
.actions.play-now {
  justify-content: center;
  margin: 0 0 1.6rem;
}
.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  background: #2eb86b;
  border: none;
  border-radius: 14px;
  padding: 12px 28px;
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.45);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-play:hover {
  color: #fff;
  text-decoration: none;
  background: #38d180;
  transform: translateY(-1px);
}
.btn-play:active {
  background: #249456;
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}
.btn-ghost {
  display: inline-block;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 0.46rem;
  line-height: 1.5;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  text-decoration: none;
  text-align: center;
  max-width: 100%;
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

.note { color: var(--muted); max-width: 36rem; }
.phone { color: var(--text); }

.news-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.2rem 1.25rem;
  margin-top: 0.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.news-head h2 {
  margin: 0;
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 0.58rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.news-badge {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9bc4ff;
  border: 1px solid #3a4f72;
  background: #121a2c;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.news-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.75rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.news-item:hover {
  border-color: #2a3b5c;
  background: rgba(18, 26, 44, 0.65);
}
.news-date {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.45;
}
.news-body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--text);
}
.news-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.news-body a {
  font-size: 0.85rem;
}

.legal { padding-bottom: 1rem; }
.legal h1 { margin-bottom: 0.6rem; }
.legal h2 { margin-top: 1.8rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.15rem; }

.burger {
  display: none;
  position: fixed;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 30;
  background: var(--rail);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.burger:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.burger:active { transform: scale(0.96); }

@media (max-width: 800px) {
  .burger { display: block; }
  .rail {
    position: fixed;
    z-index: 20;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 8px 0 24px rgba(0,0,0,0.35);
  }
  .rail.open { transform: none; }
  .main { padding: 4.2rem 1.25rem 2.4rem; margin: 4.2rem 0.85rem 1.2rem; }
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
