:root {
  --bg: #05070d;
  --bg-2: #080c17;
  --panel: #0c1222;
  --panel-2: #101831;
  --text: #e6eef6;
  --muted: #a3b4c7;
  --cyan: #28e7ff;
  --magenta: #ff5ce8;
  --lime: #d9ff3d;
  --line: #1c2940;
  --radius: 16px;
  --max: 1120px;
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(40, 231, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 92, 232, 0.08), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 17px/1.7 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #8ff3ff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--cyan); color: #04121a; padding: 8px 14px; border-radius: 8px; z-index: 10; font-weight: 700; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(5, 7, 13, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.05rem/1 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; }
.brand img { width: 34px; height: 34px; }
.brand span { color: var(--cyan); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font: 600 0.95rem/1.4 var(--font-head); }
.site-nav a:hover { color: var(--text); background: var(--panel); }
.site-nav a[aria-current="page"] { color: #04121a; background: var(--cyan); }
@media (max-width: 560px) {
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .site-nav ul { justify-content: center; }
  .site-nav a { padding: 6px 10px; font-size: 0.92rem; }
  .site-nav li:first-child { display: none; }
}

/* Type */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; color: #f4f8fc; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 56px 0 14px; }
h3 { font-size: 1.25rem; margin: 28px 0 8px; }
p, li { color: var(--text); }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font: 700 0.78rem/1 var(--font-head); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.grad { background: linear-gradient(90deg, var(--cyan), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
main { display: block; padding-bottom: 40px; }
section { scroll-margin-top: 90px; }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }
strong { color: #f4f8fc; }
kbd { font: 600 0.85em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 3px 7px; color: var(--text); white-space: nowrap; }

/* Hero */
.hero { padding: 64px 0 32px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .hero { padding: 88px 0 40px; } }
.hero-shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(40, 231, 255, 0.25), 0 0 0 1px rgba(255, 92, 232, 0.08); overflow: hidden; }
.page-hero { padding: 56px 0 8px; }
.page-hero .lead { margin-bottom: 0; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font: 700 1rem/1 var(--font-head); text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(90deg, var(--cyan), #6ff0ff); color: #04121a; }
.btn-primary:hover { color: #04121a; filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn-ghost:hover { color: var(--text); border-color: var(--cyan); }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 979px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
.card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(40, 231, 255, 0.1); color: var(--cyan); font: 700 1.1rem/1 var(--font-head); margin-bottom: 14px; }
.game-card { display: grid; gap: 0; padding: 0; overflow: hidden; }
@media (min-width: 860px) { .game-card { grid-template-columns: 1.15fr 1fr; } }
.game-card .body { padding: 28px; }
.game-card img.shot { width: 100%; height: 100%; object-fit: cover; }
.game-title { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; }
.game-title img { width: 52px; height: 52px; border-radius: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li { margin: 0; font: 600 0.8rem/1 var(--font-head); padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--bg-2); }
.tags li.on { color: #04121a; background: var(--lime); border-color: var(--lime); }
.post-card { display: flex; flex-direction: column; }
.post-card h3 a { color: #f4f8fc; text-decoration: none; }
.post-card h3 a:hover { color: var(--cyan); }
.post-card .more { margin-top: auto; padding-top: 10px; font-weight: 600; }
.meta { color: var(--muted); font-size: 0.92rem; }

/* Gallery */
.gallery { display: grid; gap: 16px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
figure { margin: 0; }
figure img { border-radius: 12px; border: 1px solid var(--line); width: 100%; }
figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font: 600 0.85rem/1.3 var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg-2); }

/* Prose (articles and legal) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 44px; font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.prose p, .prose li { color: #dce6f0; }
.prose figure { margin: 28px 0; }
.note { border-left: 3px solid var(--cyan); background: var(--panel); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.note p { margin: 0; }
dl.facts { display: grid; grid-template-columns: 1fr; gap: 4px 20px; margin: 0; }
@media (min-width: 640px) { dl.facts { grid-template-columns: 200px 1fr; } }
dl.facts dt { color: var(--muted); font-weight: 600; }
dl.facts dd { margin: 0 0 10px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font: 600 1.02rem/1.4 var(--font-head); color: #f4f8fc; }
details p { margin: 10px 0 0; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin: 0 0 18px; }
.breadcrumb a { color: var(--muted); }

/* CTA band */
.cta { margin-top: 64px; padding: 36px 28px; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(600px 200px at 20% 0%, rgba(40, 231, 255, 0.16), transparent 70%), radial-gradient(500px 200px at 90% 100%, rgba(255, 92, 232, 0.14), transparent 70%), var(--panel); }
.cta h2 { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; background: var(--bg-2); color: var(--muted); font-size: 0.93rem; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 32px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--cyan); }
.site-footer address { font-style: normal; line-height: 1.6; }
.copy { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 0.85rem; }
article.wrap { padding-top: 48px; }
