/* Derpy Studios: deep-space purples from Die Fighter, orange from the mascot's pot. */
:root {
  --bg: #120e26;
  --bg-2: #1b1538;
  --panel: #231b47;
  --line: #3a2f6b;
  --text: #ece8ff;
  --muted: #b3a9d9;
  --orange: #ff9a3c;
  --orange-hi: #ffb468;
  --violet: #b56cff;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
.intro-inner > *, .feature > *, .studio-inner > * { min-width: 0; }
a { color: var(--orange-hi); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.pixel, h1, .section-title, .brand span { font-family: Silkscreen, monospace; font-weight: 700; letter-spacing: .02em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--orange); color: #000; padding: 8px 12px; }

.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700; color: var(--orange); margin: 0 0 12px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.lede strong { color: var(--text); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--orange); color: #1a0f00;
  padding: 13px 22px; border-radius: 10px;
  box-shadow: 0 4px 0 #b65f12, 0 0 24px rgba(255,154,60,.25);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--orange-hi); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b65f12; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--panel); }
.btn-sm { padding: 8px 14px; font-size: 15px; box-shadow: 0 3px 0 #b65f12; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(18,14,38,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 18px; white-space: nowrap; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* Intro */
.intro {
  padding: 72px 0 88px;
  background:
    radial-gradient(800px 420px at 78% 50%, rgba(181,108,255,.22), transparent 70%),
    radial-gradient(500px 300px at 82% 60%, rgba(255,154,60,.14), transparent 70%);
}
.intro-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.intro h1 { font-size: clamp(3rem, 8vw, 5.6rem); line-height: .95; text-shadow: 0 4px 0 #3a2f6b; }
.intro-mark img { width: 100%; max-width: 460px; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* Game */
.game { position: relative; padding-bottom: 72px; background: var(--bg-2); }
.game-hero { position: relative; overflow: hidden; }
.game-hero img { width: 100%; height: auto; aspect-ratio: 16 / 6; object-fit: cover; object-position: top; image-rendering: pixelated; }
.game-hero-fade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(27,21,56,0) 45%, var(--bg-2) 100%); }
.game-head { position: relative; margin-top: -80px; }
.game-head h2 { font-size: clamp(2.4rem, 6vw, 4rem); color: #d4f6f8; text-shadow: 0 4px 0 #2a2257; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.facts b { color: var(--text); margin-right: 6px; }

.features { display: grid; gap: 56px; margin-top: 72px; }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; }
.feature.flip > video { order: 2; }
.feature video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.4); image-rendering: pixelated; background: #000; aspect-ratio: 16 / 9; }
.feature h3 { font-size: 1.6rem; font-family: Silkscreen, monospace; color: var(--orange-hi); }
.feature p { color: var(--muted); }

/* Gallery */
.gallery { padding: 80px 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.shot { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; cursor: zoom-in; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; transition: transform .25s ease; image-rendering: pixelated; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.04); }
.shot:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(8,6,20,.9); }
.lightbox img { max-height: 92vh; width: auto; border-radius: 8px; image-rendering: pixelated; }
.lightbox-close { position: fixed; top: 14px; right: 18px; font-size: 34px; line-height: 1; background: none; border: 0; color: #fff; cursor: pointer; }

/* Steam widget */
.steam { padding: 0 0 80px; }
.steam iframe { display: block; margin: 0 auto; border: 0; max-width: 100%; }

/* Studio */
.studio { padding: 80px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.studio-inner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.studio p { color: var(--muted); max-width: 62ch; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }

@media (max-width: 860px) {
  .intro-inner, .feature, .studio-inner { grid-template-columns: minmax(0, 1fr); }
  .feature.flip > video { order: 0; }
  .intro { padding-top: 40px; }
  .intro-mark { order: -1; }
  .intro-mark img { max-width: 280px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .studio-badge { width: 160px; }
  .game-head { margin-top: -30px; }
}
@media (max-width: 560px) {
  .nav nav a:not(.btn) { display: none; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro-mark img { animation: none; }
}
.studio .contact { color: var(--text); font-weight: 500; }
