:root {
  --maroon: #7a1631;
  --maroon-dark: #3e0a1a;
  --green: #009d73;
  --gold: #f4dc97;
  --ink: #233047;
  --muted: #5f6f84;
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #e3e8ee;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--green); }
img { max-width: 100%; display: block; }

header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.hero {
  background: radial-gradient(circle at 70% 10%, #a3324f 0, var(--maroon) 35%, var(--maroon-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 56px 0 40px;
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 16px 0 10px; letter-spacing: -.02em; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 19px; opacity: .9; margin: 0 auto 26px; max-width: 620px; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #111; color: #fff; text-decoration: none;
  padding: 14px 26px; border-radius: 14px; font-weight: 600; font-size: 17px;
}
.btn.light { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .banner { display: block; width: min(100%, 760px); height: auto; margin: 36px auto 0; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }

section { padding: 56px 0; }
section h2 { font-size: 30px; margin: 0 0 8px; letter-spacing: -.01em; }
section .lead { color: var(--muted); margin: 0 0 28px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feature b { display: block; margin-bottom: 4px; font-size: 17px; }
.feature span { color: var(--muted); font-size: 15px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.shots img { border-radius: 14px; border: 1px solid var(--line); }

.doc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin: 32px auto; }
.doc h1 { font-size: 32px; margin-top: 0; }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc h3 { font-size: 18px; margin-top: 22px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc td, .doc th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg); }
.lang { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 13px; color: var(--muted); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

footer { border-top: 1px solid var(--line); background: #fff; padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer nav a { color: var(--muted); }

@media (max-width: 600px) {
  nav { gap: 12px; font-size: 14px; }
  .doc { padding: 18px; }
}

/* Game screenshot gallery */
.shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shot { padding: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.shot:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(35,48,71,.14); }
.shot:focus-visible, .lightbox-close:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.shots .shot img { width: 100%; height: auto; aspect-ratio: 1400 / 644; object-fit: contain; border: 0; border-radius: 0; }
.shot > span { display: flex; justify-content: space-between; gap: 6px; padding: 9px 11px; font-size: 13px; font-weight: 600; }
.lightbox { max-width: min(1200px, 94vw); max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(15, 16, 23, .88); }
.lightbox-content { position: relative; }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 12px; }
.lightbox-caption { color: white; text-align: center; margin: 10px 0 0; }
.lightbox-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
@media (max-width: 700px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .shot > span { font-size: 12px; padding: 8px; } }
