/* n0tViable Games studio site. Brand colours from branding/v2/final (symbol_color.svg). */
:root {
  --bg: #070b09;
  --bg-2: #0b120e;
  --panel: #0f1813;
  --line: #1c2a22;
  --line-hi: #1e9e55;
  --text: #e6f2ea;
  --muted: #8fa597;
  --green: #3dff8b;
  --green-dim: #1e9e55;
  --teal: #1fa692;
  --crimson: #b0215f;
  --radius: 14px;
  --wrap: 1140px;
  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", ui-monospace, Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}
body::before { /* faint scanlines over everything */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
  z-index: 50;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #9dffc4; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--green); color: #000; padding: 8px 12px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 11, 9, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--green); font-weight: 700; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none;
  font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 10px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); background: rgba(61,255,139,.07); }

/* Shared type */
.eyebrow {
  font: 600 13px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); margin: 0 0 14px;
}
.eyebrow::before { content: "// "; color: var(--green-dim); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 16px; letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 20px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }

/* Glitch: brand teal and crimson ghosts behind the text */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.glitch::before { color: var(--teal); transform: translate(-3px, -2px); opacity: .55; }
.glitch::after { color: var(--crimson); transform: translate(3px, 2px); opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .glitch::before { animation: ghost-a 5s infinite steps(1); }
  .glitch::after { animation: ghost-b 5s infinite steps(1); }
}
@keyframes ghost-a {
  0%, 88%, 100% { transform: translate(-3px, -2px); clip-path: none; }
  90% { transform: translate(-9px, 1px); clip-path: inset(10% 0 55% 0); }
  93% { transform: translate(6px, -3px); clip-path: inset(60% 0 8% 0); }
  96% { transform: translate(-4px, 2px); clip-path: inset(30% 0 40% 0); }
}
@keyframes ghost-b {
  0%, 88%, 100% { transform: translate(3px, 2px); clip-path: none; }
  90% { transform: translate(8px, -1px); clip-path: inset(50% 0 20% 0); }
  93% { transform: translate(-7px, 3px); clip-path: inset(5% 0 70% 0); }
  96% { transform: translate(4px, -2px); clip-path: inset(70% 0 5% 0); }
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 14px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 15px 22px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--green); color: var(--green); background: transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { color: var(--green); background: rgba(61,255,139,.08); box-shadow: 0 0 24px rgba(61,255,139,.25); transform: translateY(-1px); }
.btn.solid { background: var(--green); color: #04140a; }
.btn.solid:hover { background: #7dffb0; color: #04140a; }

/* Hero */
.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero::before { /* corner glows */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(61,255,139,.13), transparent 70%),
    radial-gradient(500px 360px at 5% 90%, rgba(176,33,95,.10), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero-mark { justify-self: center; width: min(360px, 100%); filter: drop-shadow(0 0 40px rgba(61,255,139,.22)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-mark { animation: float 7s ease-in-out infinite; }
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Featured game */
.feature {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background: #05070d;
  display: grid; grid-template-columns: 1.1fr 1fr; min-height: 440px;
}
.feature-art { position: relative; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.feature-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, #05070d 100%);
}
.feature-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.feature-body .logo { width: min(260px, 70%); margin: 0 0 18px -6px; }
.feature-body .tag { font: 600 13px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #d9b36a; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li {
  font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--muted); padding: 8px 10px; border-radius: 999px;
}
.btn.gold { border-color: #d9b36a; color: #f0d79a; }
.btn.gold:hover { background: rgba(217,179,106,.1); box-shadow: 0 0 24px rgba(217,179,106,.25); color: #f0d79a; }

/* Screenshot grid */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shots button {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #000; cursor: zoom-in; aspect-ratio: 16 / 9;
  transition: border-color .15s, transform .15s;
}
.shots button:hover { border-color: var(--green-dim); transform: translateY(-2px); }
.shots img { width: 100%; height: 100%; object-fit: cover; }

dialog.lightbox {
  padding: 0; border: 1px solid var(--line-hi); border-radius: var(--radius);
  background: #000; max-width: min(1400px, 96vw);
}
dialog.lightbox::backdrop { background: rgba(0,0,0,.85); }
dialog.lightbox img { width: 100%; height: auto; }
dialog.lightbox p { margin: 0; padding: 10px 14px; font: 13px/1.4 var(--mono); color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
dialog.lightbox button { font: inherit; color: var(--green); background: none; border: 0; cursor: pointer; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: var(--panel); }
.stat b { display: block; font: 800 44px/1 var(--sans); color: var(--green); letter-spacing: -.02em; }
.stat span { display: block; margin-top: 10px; font: 600 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Two column + fact table */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.facts {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  font: 14px/1.5 var(--mono); margin: 0; padding: 8px 0;
}
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 20px; border-bottom: 1px dashed var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); text-transform: lowercase; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* Cards (press downloads) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  overflow: hidden; display: flex; flex-direction: column;
}
.card .thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; background: #0a0f0c; padding: 18px; }
.card .thumb.light { background: #e9efe9; }
.card .thumb { overflow: hidden; }
.card .thumb img { max-height: 110px; width: auto; max-width: 100%; object-fit: contain; }
.card .thumb.full { padding: 0; }
.card .thumb.full img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.card .meta { padding: 12px 16px 16px; font: 13px/1.5 var(--mono); }
.card .meta b { display: block; font-family: var(--sans); font-size: 15px; margin-bottom: 4px; }
.card .meta a { margin-right: 10px; }

/* Prose pages */
.page-head { padding: clamp(48px, 7vw, 80px) 0 8px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: #c9d8cf; }
.callout {
  border: 1px solid var(--line-hi); border-radius: var(--radius); padding: 24px 28px;
  background: linear-gradient(135deg, rgba(61,255,139,.07), transparent 60%), var(--panel);
}
.callout h2 { font-size: 24px; margin-top: 0; }
.mail { font: 700 clamp(20px, 3vw, 28px)/1.3 var(--mono); overflow-wrap: anywhere; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--green); }

/* Phones and small tablets */
@media (max-width: 860px) {
  .hero .wrap, .split, .feature { grid-template-columns: 1fr; }
  .hero-mark { width: 120px; order: -1; justify-self: start; }
  .hero .wrap { gap: 24px; }
  .feature-art { aspect-ratio: 16 / 9; }
  .feature-art::after { background: linear-gradient(180deg, transparent 55%, #05070d 100%); }
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav a { padding: 8px 7px; font-size: 11px; letter-spacing: .06em; }
  .brand span { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat b { font-size: 36px; }
  .btn { width: 100%; justify-content: center; }
  .facts div { grid-template-columns: 84px 1fr; padding: 10px 14px; }
}
