:root {
  --ink: #f5f7ff; --muted: #93a9c5; --bg: #020b18; --panel: #07172a;
  --panel-2: #0b2038; --line: #27486a; --cyan: #42dcff; --pink: #ff3d91;
  --yellow: #ffe36b; --green: #61ffc4; --danger: #ff627d;
  --display: "Courier New", ui-monospace, monospace;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0; min-width: 320px; color: var(--ink); font-family: var(--body); line-height: 1.6;
  background: radial-gradient(circle at 82% 8%, rgba(20,92,145,.22), transparent 30rem),
    radial-gradient(circle at 12% 36%, rgba(255,61,145,.08), transparent 24rem), var(--bg);
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .16; z-index: 30; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.04) 4px); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; display: block; }
.shell { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 99; padding: 10px 16px; background: var(--yellow); color: #07111f; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(2,11,24,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 220px; }
.brand img { width: 48px; height: 48px; image-rendering: pixelated; }
.brand strong { display: block; font: 800 20px/1.1 var(--display); letter-spacing: .08em; }
.brand small { color: var(--yellow); font: 700 10px/1 var(--display); letter-spacing: .2em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { min-height: 44px; padding: 10px 13px; color: #c9d8ea; text-decoration: none; border-bottom: 3px solid transparent; font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-color: var(--pink); }
.nav-toggle { display: none; width: 48px; height: 48px; color: var(--cyan); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 470px; }
.hero-copy { padding: 62px 32px 58px 0; align-self: center; }
.eyebrow { color: var(--cyan); font: 700 12px/1.3 var(--display); letter-spacing: .24em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 640px; font: 900 clamp(40px,4.2vw,62px)/1.12 var(--display); letter-spacing: .02em; margin-bottom: 22px; }
h1 em { color: var(--pink); font-style: normal; text-shadow: 0 0 22px rgba(255,61,145,.42); }
.hero-line { white-space: nowrap; }
.hero-copy > p { color: #c6d5e7; font-size: 18px; margin-bottom: 8px; }
.hero-copy .slogan { color: var(--cyan); font: 700 13px/1.6 var(--display); letter-spacing: .2em; margin: 20px 0 28px; }
.primary-cta, .button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 1px solid var(--pink); border-radius: 8px; color: white; background: linear-gradient(135deg,#a31d62,var(--pink)); box-shadow: 0 0 28px rgba(255,61,145,.2); text-decoration: none; font-weight: 800; cursor: pointer; }
.primary-cta:hover, .button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.primary-cta small { display: block; font: 700 10px/1 var(--display); letter-spacing: .15em; opacity: .8; }
.hero-art { min-height: 470px; background: #07182b; border-left: 1px solid var(--line); position: relative; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.section { padding: 50px 0; }
.section + .section { border-top: 1px solid rgba(39,72,106,.5); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font: 800 clamp(24px,3vw,34px)/1.2 var(--display); }
.section-head p { color: var(--muted); margin: 6px 0 0; }
.text-link { color: var(--cyan); text-decoration: none; font-weight: 800; }
.game-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.game-card { min-width: 0; background: linear-gradient(145deg,rgba(11,32,56,.95),rgba(5,16,31,.96)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 0 24px rgba(66,220,255,.12); }
.game-card.featured { grid-column: span 2; display: grid; grid-template-columns: 1.05fr 1.25fr; border-color: var(--cyan); }
.cover { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: #102845; }
.game-card.featured .cover { height: 100%; aspect-ratio: auto; }
.card-body { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.card-kicker { color: var(--yellow); font: 700 11px/1.4 var(--display); letter-spacing: .14em; }
.card-body h3 { font: 800 21px/1.3 var(--display); margin: 8px 0; }
.card-body p { color: #b9cce2; font-size: 14px; flex: 1; }
.tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 4px 0 18px; }
.tag { border: 1px solid #365779; color: #bad2e9; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.card-body .button { width: 100%; min-height: 46px; padding: 10px 16px; background: transparent; box-shadow: none; }
.card-body .button:hover { background: rgba(255,61,145,.12); }
.loading, .empty { color: var(--muted); padding: 26px; border: 1px dashed var(--line); border-radius: 10px; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(7,23,42,.9); }
.stat { padding: 22px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font: 800 28px/1.2 var(--display); color: var(--ink); }
.stat span { color: var(--cyan); font-size: 12px; letter-spacing: .12em; }
.page-hero { padding: 58px 0 34px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px,5vw,56px); margin-bottom: 10px; }
.page-hero p { color: var(--muted); max-width: 720px; }
.log-list { display: grid; gap: 14px; }
.log-entry { display: grid; grid-template-columns: 130px 1fr auto; gap: 22px; align-items: center; padding: 20px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; }
.log-entry time { color: var(--cyan); font: 700 13px var(--display); }
.log-entry h3 { margin: 0; font-size: 18px; }
.log-entry p { margin: 4px 0 0; color: var(--muted); }
.status-ready { color: var(--green); font: 800 12px var(--display); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.info-card h2 { font: 800 22px var(--display); }
.info-card p, .info-card li { color: #b9cce2; }
.site-footer { margin-top: 50px; border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #b9cce2; text-decoration: none; }
@media (max-width: 860px) {
  .header-inner { min-height: 68px; } .brand { min-width: auto; } .brand strong { font-size: 16px; }
  .nav-toggle { display: block; } .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 10px 16px 18px; background: #03101f; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; } .nav a { width: 100%; } .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 46px 0 36px; } .hero-art { min-height: 310px; border-left: 0; border-top: 1px solid var(--line); }
  .game-grid { grid-template-columns: repeat(2,1fr); } .game-card.featured { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2,1fr); } .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); } .stat:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 580px) {
  .shell { width: min(100% - 24px,1160px); } .brand small { display: none; } .hero-copy { padding-top: 34px; }
  h1 { font-size: clamp(36px,11.2vw,48px); } .hero-line { white-space: nowrap; } .hero-art { min-height: 250px; margin-inline: -12px; } .primary-cta { width: 100%; }
  .section { padding: 38px 0; } .section-head { align-items: flex-start; flex-direction: column; }
  .game-grid { grid-template-columns: 1fr; } .game-card.featured { grid-column: auto; display: block; } .game-card.featured .cover { aspect-ratio: 16/10; height: auto; }
  .stats { grid-template-columns: 1fr 1fr; } .stat { padding: 18px; } .log-entry { grid-template-columns: 1fr; gap: 6px; }
  .about-grid { grid-template-columns: 1fr; } .footer-inner { align-items: flex-start; flex-direction: column; }
}
