:root {
  --bg: #081426;
  --bg-soft: #0d2038;
  --surface: #102742;
  --surface-2: #15304f;
  --border: rgba(255, 255, 255, 0.11);
  --text: #f5f8ff;
  --muted: #b9c7d9;
  --alien: #8debf0;
  --forest: #a9ed77;
  --accent: #9eb2ff;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  --radius: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #07101e 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: white; color: #111; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 20, 38, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.topbar-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.brand-text { min-width: 0; }
.brand-text strong { display: block; font-size: 1rem; line-height: 1.2; }
.brand-text span { display: block; color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 700; padding: 9px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.07); }

.hero { padding: 70px 0 44px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 44px; align-items: center; }
.hero-copy { max-width: 700px; }
.eyebrow, .badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.04); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--alien); }
.badge.forest::before { background: var(--forest); }
.badge.gold::before { background: #f2bd71; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1 { margin-top: 16px; font-size: clamp(2.45rem, 6vw, 4.75rem); letter-spacing: -0.045em; }
.hero p, .lead { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 1.08rem; }
.studio-mark { justify-self: end; width: 230px; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 30px; background: var(--surface); padding: 24px; box-shadow: var(--shadow); }
.studio-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border); text-decoration: none; font-weight: 800; font-size: 0.9rem; transition: transform .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--alien); color: #071827; border-color: transparent; }
.btn-forest { background: var(--forest); color: #0b2518; border-color: transparent; }
.btn-secondary { background: rgba(255,255,255,0.055); color: var(--text); }
.btn-disabled { opacity: .55; pointer-events: none; }

.section { padding: 48px 0; }
.section.compact { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -0.025em; }
.section-intro { margin: 8px 0 0; color: var(--muted); max-width: 720px; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }
.game-card { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 18px; min-height: 242px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.game-card-media { align-self: center; }
.game-card-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.game-card-body { align-self: center; min-width: 0; }
.game-card h3 { margin-top: 12px; font-size: 1.65rem; }
.game-card p { margin: 10px 0 0; color: var(--muted); }
.game-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip { padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--muted); font-size: 0.76rem; font-weight: 700; }

.grid-2, .grid-3 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.panel, .legal-card, .prose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel h3, .legal-card h3 { font-size: 1.2rem; }
.panel p, .legal-card p { margin: 10px 0 0; color: var(--muted); }
.about-line { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.link-row a, .mini-list a { color: var(--text); text-underline-offset: 3px; }
.mini-list { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }

.page-hero { padding: 58px 0 28px; }
.page-hero h1 { font-size: clamp(2.35rem, 6vw, 4.1rem); }
.content-wrap { padding: 24px 0 56px; }
.game-hero { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 44px; align-items: center; }
.game-hero-art { border-radius: 28px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.game-hero-art img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.screenshot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.screenshot-card { margin: 0; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.screenshot-card img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 12px; background: #02080e; }
.caption { padding: 10px 4px 3px; color: var(--muted); font-size: .85rem; }

.prose { max-width: 880px; margin: 0 auto; }
.grid-2 .prose { max-width: none; margin: 0; }
.prose h2 { margin: 28px 0 10px; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 8px; font-size: 1.1rem; }
.prose p { margin: 10px 0; color: var(--muted); }
.prose ul, .prose ol { color: var(--muted); padding-left: 22px; }
.prose a { color: #c7d7ff; }
.meta { font-size: .88rem; }
.notice { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--accent); background: rgba(158,178,255,.08); color: var(--muted); border-radius: 10px; }
.contact-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.contact-meta p { margin: 0 0 8px; color: var(--muted); }

.footer { margin-top: 28px; border-top: 1px solid var(--border); background: rgba(0,0,0,.14); }
.footer-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .86rem; }
.footer a { color: var(--muted); text-underline-offset: 3px; }

@media (max-width: 820px) {
  .topbar-inner { min-height: 66px; }
  .brand-text span { display: none; }
  .nav a { padding: 8px 9px; font-size: .84rem; }
  .home-hero, .game-hero { grid-template-columns: 1fr; }
  .studio-mark { justify-self: start; width: 170px; }
  .game-hero-art { max-width: 260px; }
  .grid-3 { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, var(--max)); }
  .topbar-inner { align-items: center; gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .nav { gap: 1px; }
  .nav a { font-size: .78rem; padding: 8px 7px; }
  .hero { padding: 48px 0 28px; }
  .studio-mark { display: none; }
  .section { padding: 36px 0; }
  .game-card { grid-template-columns: 100px minmax(0,1fr); min-height: 0; padding: 14px; }
  .game-card h3 { font-size: 1.35rem; }
  .game-card .actions { margin-top: 16px; }
  .game-card .btn { width: 100%; }
  .grid-2, .about-line, .contact-card { grid-template-columns: 1fr; }
  .screenshot-grid { gap: 10px; }
  .screenshot-card { padding: 7px; }
  .caption { display: none; }
  .footer-inner { padding: 22px 0; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .nav a:nth-child(3) { display: none; }
  .game-card { grid-template-columns: 1fr; }
  .game-card-media { max-width: 130px; }
}
