/* nightstud.com — Inter (variable 400–700) and Orbitron (700–800), Google Fonts' latin subsets, self-hosted;
   both under the SIL Open Font License 1.1, texts in /fonts/Inter-OFL.txt and /fonts/Orbitron-OFL.txt. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("/fonts/orbitron-var.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --bg: #07070c; --surface: #10101a; --surface2: #171725; --line: rgba(255, 255, 255, 0.08);
  --text: #eceaf4; --muted: #a29fb6; --red: #ff2d55; --blue: #3a7bff; --violet: #a463ff;
  --accent: var(--red); --radius: 14px; --wrap: 1160px;
}
.accent-blue { --accent: var(--blue); }
.accent-violet { --accent: var(--violet); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 "Inter", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: 64px 0; }
.narrow { max-width: 680px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 7, 12, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font: 800 22px/1 "Orbitron", sans-serif; letter-spacing: 0.06em; color: #fff; text-decoration: none; text-shadow: 0 0 12px rgba(255, 45, 85, 0.55); }
.brand span { color: var(--red); }
.brand-sm { font-size: 18px; }
.nav-wide { display: flex; align-items: center; gap: 26px; }
.nav-wide a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-wide a:hover { color: var(--accent); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { width: 22px; height: 2px; background: #fff; display: block; }
.menu-list { position: absolute; right: 0; top: 52px; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-width: 220px; display: grid; }
.menu-list a { padding: 12px 14px; color: var(--text); text-decoration: none; border-radius: 8px; font-weight: 600; }
.menu-list a:hover { background: rgba(255, 255, 255, 0.06); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; border: 1px solid transparent; box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 65%, transparent); }
.btn small { font-weight: 400; opacity: 0.85; }
.btn-ghost { background: transparent; border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: none; }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }

/* home hero */
/* the picture and its shade sit below the copy in one group, so the logo can screen-blend onto them */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 620px; display: flex; align-items: center; }
.hero-bg { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2); opacity: 0.55; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(7, 7, 12, 0.96) 0%, rgba(7, 7, 12, 0.78) 45%, rgba(7, 7, 12, 0.25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero-in { padding: 80px 0; }
.hero-copy { max-width: 600px; }
.hero-logo { width: min(520px, 100%); mix-blend-mode: screen; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 18px; color: #d6d3e6; }
.age { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

/* sections */
.section-title { font: 700 26px/1.2 "Orbitron", sans-serif; letter-spacing: 0.03em; margin-bottom: 28px; }
.section-title::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 12px; background: var(--accent); box-shadow: 0 0 12px var(--accent); border-radius: 3px; }
.band { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-block: 1px solid var(--line); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.card:hover { color: var(--text); transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5), 0 0 22px color-mix(in srgb, var(--accent) 25%, transparent); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; display: grid; gap: 6px; }
.card-body strong { font-size: 18px; }
.card-body .muted { font-size: 14px; }
.tag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 999px; padding: 2px 10px; }

/* features */
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features.cols-4 { grid-template-columns: repeat(4, 1fr); }
.features li { background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; align-content: start; border-top: 2px solid var(--accent); }
.features strong { font-size: 16px; }
.features span { color: var(--muted); font-size: 15px; }

/* downloads */
.dls { display: grid; gap: 14px; margin-top: 24px; }
.dl { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.dl > div { display: grid; }

/* game pages */
.game-hero { background: radial-gradient(1000px 420px at 85% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.game-hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 64px 0; }
.game-logo { width: min(460px, 100%); mix-blend-mode: screen; }
.game-name { font: 700 20px/1.3 "Orbitron", sans-serif; margin: 14px 0 0; }
.neon-title { font: 800 clamp(34px, 6vw, 56px)/1.05 "Orbitron", sans-serif; letter-spacing: 0.04em; color: #fff; text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent); }
.tagline { font-size: 20px; font-weight: 600; margin: 18px 0 10px; }
.game-cover { border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 22%, transparent), 0 24px 60px rgba(0, 0, 0, 0.6); }
.note { background: color-mix(in srgb, var(--accent) 12%, transparent); border-left: 3px solid var(--accent); padding: 12px 14px; border-radius: 6px; font-size: 15px; }
.get { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.get > div:first-child { max-width: 680px; }
.get p:last-child { margin-bottom: 0; }
.get .actions { margin: 0; flex-direction: column; align-items: stretch; }
.get .btn { justify-content: center; }
.narrow-page { max-width: 760px; }
.mail { margin: 26px 0 34px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shot { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.25s, opacity 0.25s; }
.shot:hover img { transform: scale(1.04); }
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scene { margin: 0; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.scene img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.scene figcaption { padding: 12px 14px; font-weight: 600; font-size: 15px; }

/* viewer */
.viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.viewer::backdrop { background: rgba(0, 0, 0, 0.88); }
.viewer img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 0 60px rgba(0, 0, 0, 0.8); }
.viewer button { position: absolute; background: rgba(20, 20, 32, 0.85); color: #fff; border: 1px solid var(--line); width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.viewer-close { top: -14px; right: -14px; }
.viewer-prev { left: -22px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: -22px; top: 50%; transform: translateY(-50%); }

/* footer */
.foot { border-top: 1px solid var(--line); background: #05050a; padding: 48px 0 56px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-links a { color: var(--text); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.foot-meta p { margin-bottom: 8px; }

@media (max-width: 900px) {
  .game-hero-in { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .gallery, .scenes, .features, .features.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
  .get { grid-template-columns: 1fr; }
  .get .actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .nav-wide { display: none; }
  .menu { display: block; }
  .hero { min-height: 540px; }
  .hero-in { padding: 56px 0; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(7, 7, 12, 0.72) 60%, rgba(7, 7, 12, 0.55) 100%); }
  .section { padding: 46px 0; }
  .lead { font-size: 16px; }
  .viewer-prev { left: 4px; } .viewer-next { right: 4px; } .viewer-close { right: 4px; top: 4px; }
}
@media (max-width: 480px) {
  .gallery, .scenes, .features, .features.cols-4 { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
