/* Copyright (c) 2026 VisionStrikeStudios (VSS). All rights reserved. */
:root {
  --bg: #141416;
  --bg2: #1c1c21;
  --panel: #202028;
  --text: #eceaf0;
  --muted: #a3a1ad;
  --teal: #118DA8;
  --teal-glow: #3fd6f5;
  --orange: #F5621D;
  --red: #e03939;
  --yellow: #f2c230;
  --green: #3fbf5f;
  --cyan: #2ec5d6;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Space Grotesk", system-ui, sans-serif;
  /* faint CRT scanlines over everything */
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-glow); }
.pixel { font-family: "Press Start 2P", monospace; letter-spacing: .02em; }

/* ZX Spectrum rainbow stripe */
.speccy { display: flex; height: 6px; }
.speccy span { flex: 1; }
.speccy span:nth-child(1) { background: var(--red); }
.speccy span:nth-child(2) { background: var(--yellow); }
.speccy span:nth-child(3) { background: var(--green); }
.speccy span:nth-child(4) { background: var(--cyan); }
.speccy.mini { width: 120px; height: 10px; transform: skewX(-30deg); margin-top: 16px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(20,20,22,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid #2a2a33;
}
.brand img { width: 180px; }
.nav nav { display: flex; gap: clamp(10px, 2vw, 26px); align-items: center; flex-wrap: wrap; }
.nav nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav nav a:hover { color: var(--teal-glow); }

/* BUTTONS */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--orange); color: #fff !important; text-decoration: none; font-weight: 700;
  border: 2px solid var(--orange); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,98,29,.45); }
.btn.ghost { background: transparent; border-color: var(--teal); color: var(--teal-glow) !important; }
.btn.ghost:hover { box-shadow: 0 6px 24px rgba(17,141,168,.45); }
.btn.small { padding: 7px 16px; font-size: 15px; }
.btn.big { font-size: clamp(16px, 2.6vw, 22px); padding: 16px 30px; }

/* HERO */
.hero {
  max-width: 1100px; margin: 0 auto; padding: clamp(56px, 10vw, 120px) clamp(16px, 4vw, 48px) 60px;
  text-align: center;
}
.eyebrow { color: var(--green); font-size: 13px; margin: 0 0 22px; }
.cursor { animation: blink 1s steps(1) infinite; margin-left: 4px; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-size: clamp(38px, 7vw, 78px); line-height: 1.05; margin: 0 0 22px; font-weight: 700; }
.glow { color: var(--teal-glow); text-shadow: 0 0 6px var(--teal-glow), 0 0 22px rgba(63,214,245,.6); }
.glow.orange { color: #ff8a52; text-shadow: 0 0 6px #ff8a52, 0 0 22px rgba(245,98,29,.6); }
.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 760px; margin: 0 auto 30px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.platforms { list-style: none; padding: 0; margin: 42px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.platforms li { border: 1px solid #34343f; border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.platforms li:last-child { border-style: dashed; font-style: italic; }

/* SECTIONS */
.section { max-width: 1180px; margin: 0 auto; padding: 70px clamp(16px, 4vw, 48px); }
.section-lead { color: var(--muted); max-width: 780px; font-size: 18px; margin: 0 0 38px; }
/* Vectrex-style glowing outline headings */
h2.vector {
  font-size: clamp(30px, 5vw, 48px); margin: 0 0 14px; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px var(--teal-glow);
  text-shadow: 0 0 10px rgba(63,214,245,.55);
}
@supports not (-webkit-text-stroke: 1px black) { h2.vector { color: var(--teal-glow); } }

/* GAMES */
.game {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background: var(--panel); border: 1px solid #2c2c37; border-radius: var(--radius);
  padding: clamp(18px, 3vw, 36px); margin-bottom: 36px;
}
.game.flip .game-art { order: 2; }
.game h3 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0 12px; }
.tag { margin: 0; color: var(--orange); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
.aside { color: var(--yellow); font-style: italic; }
.small-pixel { font-size: 11px; color: var(--green); line-height: 1.8; }
.game-art.zs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.game-art.zs img { border-radius: 10px; border: 2px solid #34343f; }
.game-art.zs img:nth-child(2) { transform: translateY(-14px); }
.game-art.ai { display: grid; gap: 12px; }
.game-art.ai img { border-radius: 8px; border: 2px solid #34343f; }
.pixelated { image-rendering: pixelated; }

/* JUKEBOX (game music players) */
.jukebox {
  display: flex; align-items: center; gap: 14px; margin: 4px 0 22px;
  background: #121216; border: 2px solid #34343f; border-radius: 12px; padding: 12px 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.jb-play {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--teal); color: #fff; font-size: 18px; line-height: 1;
  box-shadow: 0 0 0 3px rgba(17,141,168,.25);
}
.jb-play:hover { box-shadow: 0 0 0 3px rgba(63,214,245,.5), 0 0 18px rgba(63,214,245,.5); }
.jb-play:focus-visible, .jb-tracks button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.jb-body { flex: 1; min-width: 0; }
.jb-label { margin: 0 0 8px; font-size: 9px; color: var(--green); }
.jb-tracks { display: flex; flex-wrap: wrap; gap: 8px; }
.jb-tracks button {
  background: transparent; color: var(--muted); border: 1px solid #3a3a46; border-radius: 999px;
  padding: 4px 12px; font: 500 13px "Space Grotesk", sans-serif; cursor: pointer;
}
.jb-tracks button.on { color: #fff; border-color: var(--orange); background: rgba(245,98,29,.15); }
/* equaliser bars: still when paused, dancing when playing */
.jb-eq { flex: none; display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.jb-eq i { width: 5px; height: 6px; background: var(--green); border-radius: 1px; }
.jukebox.playing { border-color: var(--teal); }
.jukebox.playing .jb-eq i { animation: eq .9s ease-in-out infinite alternate; }
.jukebox.playing .jb-eq i:nth-child(2) { animation-duration: .6s; background: var(--yellow); }
.jukebox.playing .jb-eq i:nth-child(3) { animation-duration: .75s; background: var(--orange); }
.jukebox.playing .jb-eq i:nth-child(4) { animation-duration: .5s; background: var(--red); }
.jukebox.playing .jb-eq i:nth-child(5) { animation-duration: .8s; background: var(--cyan); }
@keyframes eq { from { height: 4px; } to { height: 30px; } }
@media (prefers-reduced-motion: reduce) { .jukebox.playing .jb-eq i { animation: none; height: 18px; } }

/* SECRET */
.secret-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.dossier {
  position: relative; overflow: hidden;
  background: #e9e1cc; color: #2a2518; border-radius: 6px; padding: 30px 28px 26px;
  font-family: "Courier New", monospace; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.dossier h3 { font-family: "Space Grotesk", sans-serif; font-size: 28px; margin: 0 0 6px; }
.dossier .machine { font-weight: bold; margin: 0 0 14px; }
.dossier .aside { color: #7a4a00; }
.redact { background: #111; color: #111; border-radius: 2px; user-select: none; }
.stamp {
  position: absolute; top: 18px; right: -6px; transform: rotate(12deg);
  border: 3px solid var(--red); color: var(--red); padding: 4px 12px; margin: 0;
  font: 700 18px "Space Grotesk", sans-serif; text-transform: uppercase; letter-spacing: .15em; opacity: .85;
}
.vec-art { width: 100%; max-width: 260px; margin-top: 10px; background: #0a0a0c; border-radius: 6px; padding: 8px; }
.vec-art path { stroke: #9ff; stroke-width: 2; filter: drop-shadow(0 0 3px #9ff); }
.vec-art circle { fill: #fff; filter: drop-shadow(0 0 4px #9ff); }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 440px) { .team-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; } }
.polaroid {
  margin: 0; background: #faf8f2; color: #222; padding: 12px 12px 18px; border-radius: 4px;
  box-shadow: 0 12px 26px rgba(0,0,0,.45); transition: transform .2s;
}
.polaroid img { width: 100%; aspect-ratio: 1; border-radius: 2px; }
.polaroid figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.polaroid strong { font-size: 19px; }
.polaroid span { color: var(--orange); font-weight: 700; font-size: 14px; }
.polaroid em { font-size: 14px; line-height: 1.45; color: #4a4a52; margin-top: 6px; }
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(2deg); }
.polaroid:hover { transform: rotate(0) scale(1.04); }
.stats { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.stats li { background: var(--panel); border: 1px solid #2c2c37; border-radius: var(--radius); padding: 18px; text-align: center; }
.stats b { display: block; font-size: 34px; color: var(--teal-glow); }
.stats span { color: var(--muted); font-size: 14px; }

/* ABOUT / CONTACT */
.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; color: var(--muted); font-size: 18px; }
.contact { text-align: center; }
.contact .section-lead { margin-left: auto; margin-right: auto; }

/* FOOTER */
.footer { text-align: center; color: var(--muted); padding: 0 16px 40px; border-top: 1px solid #2a2a33; margin-top: 40px; }
.footer .speccy { margin: 0 -16px 30px; }
.footer img { margin: 0 auto; width: 140px; }
.footer .small { font-size: 13px; }
.footer .pixel { font-size: 10px; color: var(--green); }

/* PHONE */
@media (max-width: 820px) {
  .game, .secret-grid, .about-cols { grid-template-columns: minmax(0, 1fr); }
  .game.flip .game-art { order: 0; }
  .nav { flex-direction: column; align-items: flex-start; }
  .nav nav { gap: 14px; }
  .brand img { width: 150px; }
}
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } html { scroll-behavior: auto; } }
