:root {
  --bg: #0b0d12;
  --surface: #131724;
  --surface-2: #1a2030;
  --border: #262e42;
  --text: #e8ecf4;
  --muted: #a3adc2;
  --orange: #ff7a1a;
  --cyan: #22d3ee;
  --magenta: #e879f9;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
a:hover { color: #7ce9fa; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--border); background: rgba(11, 13, 18, .92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-family: var(--mono); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); text-decoration: none; font-size: 15px; }
.brand span { color: var(--orange); }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--orange); }

/* hero */
.hero { padding: 64px 0 36px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 14px; }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 46em; margin: 0; }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: 19px; margin: 0 0 6px; }
section { padding: 36px 0; }
.section-note { color: var(--muted); margin: 0 0 24px; max-width: 44em; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 10px; font: 700 17px var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--orange); color: #1a0d00; }
.btn-primary:hover { background: #ff923f; color: #1a0d00; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--text); }
.btn[aria-disabled="true"] { border-color: var(--border); color: var(--muted); background: transparent; cursor: not-allowed; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.cta-note { color: var(--muted); font-size: 15px; }

/* project bars */
.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bar { display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; transition: border-color .15s, transform .15s; }
.bar:hover { border-color: var(--orange); }
.bar .thumb { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.bar .thumb img, .bar .thumb svg { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.bar h3 { font-size: 22px; margin: 0 0 4px; }
.bar p { margin: 0; color: var(--muted); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.chip { font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); }
.chip.live { border-color: var(--cyan); color: var(--cyan); }
.chip.soon { border-color: #6b5a2a; color: #e6c35c; }
.bar .go { white-space: nowrap; }

/* game band */
.game { background: linear-gradient(135deg, #1a0f2e 0%, #131724 60%); border: 1px solid #3a2a5c; border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
.game .thumb { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid #3a2a5c; }
.game h2 { margin-bottom: 8px; }
.game p { color: var(--muted); margin: 0 0 18px; }

/* detail page */
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.shot { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .n { font: 700 13px var(--mono); color: var(--orange); letter-spacing: .1em; margin-bottom: 8px; display: block; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px 18px 66px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #1a0d00; font: 700 16px var(--mono); display: grid; place-items: center; }
.steps b { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 16px; }
.callout { border-left: 4px solid var(--cyan); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 10px; color: var(--muted); }
.feature-list { columns: 2 300px; column-gap: 40px; padding-left: 20px; margin: 0; }
.feature-list li { margin-bottom: 10px; break-inside: avoid; }
.feature-list li::marker { color: var(--orange); }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 520px; }
.key { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 6px; text-align: center; font-size: 13px; color: var(--muted); }
.key kbd { display: block; font: 700 18px var(--mono); color: var(--orange); }
.crumbs { font-size: 15px; margin: 28px 0 0; color: var(--muted); }
.crumbs a { color: var(--muted); }

footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 28px 0 40px; color: var(--muted); font-size: 15px; }

@media (max-width: 760px) {
  .bar { grid-template-columns: 1fr; gap: 14px; }
  .bar .thumb { max-width: 360px; }
  .game { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .keys { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* game screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.shots a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #3a2a5c; background: #0c0818; }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .5s ease, filter .5s; filter: saturate(.95); }
.shots a:hover img { transform: scale(1.06); filter: saturate(1.15); }
.lb { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(6,3,14,.94); }
.lb[hidden] { display: none; }
.lb img { max-width: 96vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 0 60px rgba(160,80,255,.35); }
.lb button { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #5a4a8c; background: #1a0f2e; color: #fff; font-size: 22px; cursor: pointer; }

/* Asder, the SynthCraft mascot */
.hero-asder { display: grid; grid-template-columns: 1fr 270px; gap: 28px; align-items: center; }
.asder { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; }
.asder-btn { background: none; border: 0; padding: 0; cursor: pointer; animation: asder-float 5s ease-in-out infinite; filter: drop-shadow(0 0 26px rgba(255,63,164,.28)); }
.asder-btn img { width: 100%; max-width: 270px; height: auto; display: block; }
.asder .bubble { position: relative; max-width: 250px; margin: 0 0 10px; padding: 9px 14px; border: 1px solid #5a4a8c; border-radius: 12px; background: #1a0f2e; color: var(--text); font: 600 14px/1.35 var(--mono); text-align: center; }
.asder .bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; margin-left: -6px; background: #1a0f2e; border-right: 1px solid #5a4a8c; border-bottom: 1px solid #5a4a8c; transform: rotate(45deg); }
@keyframes asder-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@media (max-width: 720px) { .hero-asder { grid-template-columns: 1fr; } .asder { order: -1; } .asder-btn img { max-width: 190px; } }
@media (prefers-reduced-motion: reduce) { .asder-btn { animation: none; } }
