:root {
  --black: #080604;
  --deep: #100a06;
  --panel: #140d08;
  --panel-2: #1a1009;
  --phosphor: #ff8a1f;
  --phosphor-soft: #c75d16;
  --amber: #ffc066;
  --paper: #f1e4d5;
  --muted: #9f8e7f;
  --line: #3b281a;
  --line-hot: #8e481a;
  --danger: #ff6b5f;
  --shadow: 8px 8px 0 #000;
  --mono: "IBM Plex Mono", "Cascadia Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% 0%, rgba(255, 116, 24, .11), transparent 31rem),
    var(--black);
  color: var(--paper);
  font-family: var(--mono);
  line-height: 1.55;
  overflow-x: hidden;
}
body::selection { background: var(--phosphor); color: var(--black); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 4px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.25) 100%);
  mix-blend-mode: screen;
  opacity: .65;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: var(--phosphor);
  color: var(--black);
  transform: translateY(-150%);
  z-index: 999;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 6, 4, .92);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--phosphor);
  text-decoration: none;
  letter-spacing: .08em;
}
.brand img { width: 34px; height: 34px; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: .92rem; }
.brand-copy small { color: var(--muted); font-size: .65rem; margin-top: 5px; letter-spacing: .23em; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.8vw, 40px); }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: color 150ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--phosphor); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line-hot);
  background: transparent;
  color: var(--phosphor);
  font: inherit;
  padding: 7px 10px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(38px, 7vw, 110px);
  padding: clamp(72px, 10vw, 150px) clamp(20px, 5vw, 80px) 84px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .28;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 35vw;
  height: 35vw;
  max-width: 600px;
  max-height: 600px;
  left: -12vw;
  bottom: -18vw;
  border: 1px solid var(--line-hot);
  border-radius: 50%;
  box-shadow: 0 0 120px rgba(255, 138, 31, .10);
}
.eyebrow, .section-index {
  color: var(--phosphor-soft);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: var(--phosphor);
  box-shadow: 0 0 12px var(--phosphor);
  animation: blink 1.8s steps(2, end) infinite;
}
.hero h1 {
  max-width: 900px;
  margin: 18px 0 25px;
  font-size: clamp(3rem, 7.4vw, 7.75rem);
  line-height: .9;
  letter-spacing: -.075em;
  font-weight: 900;
  text-transform: uppercase;
}
.invert {
  color: var(--black);
  background: var(--phosphor);
  padding: 0 .08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-intro {
  max-width: 680px;
  color: #c7b8aa;
  font-size: clamp(.98rem, 1.4vw, 1.18rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line-hot);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.button:hover, .button:focus-visible { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 #000; }
.button-primary { background: var(--phosphor); color: var(--black); border-color: var(--phosphor); }
.button-primary span { color: #6c2d08; margin-right: 8px; }
.button-ghost { color: var(--phosphor); background: rgba(20, 13, 8, .82); }

.boot-window {
  width: min(100%, 590px);
  justify-self: end;
  border: 1px solid var(--line-hot);
  background: rgba(12, 8, 5, .94);
  box-shadow: 13px 13px 0 #000, 14px 14px 0 var(--line);
  transform: rotate(.7deg);
}
.window-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-hot);
  background: var(--phosphor-soft);
  color: var(--black);
  font-size: .72rem;
  font-weight: 800;
}
.terminal-lines { padding: clamp(18px, 3vw, 32px); min-height: 275px; color: var(--phosphor); }
.terminal-lines p { margin: 0 0 12px; font-size: clamp(.7rem, 1.15vw, .9rem); white-space: nowrap; }
.terminal-lines b { font-weight: 700; }
.dim { color: #715b4a; }
.warning { color: var(--amber); }
.prompt { color: var(--paper); }
.cursor { animation: cursor 800ms steps(2, end) infinite; }
.hero-meta {
  position: absolute;
  left: clamp(20px, 5vw, 80px);
  right: clamp(20px, 5vw, 80px);
  bottom: 23px;
  display: flex;
  gap: 28px;
  color: #77604f;
  font-size: .65rem;
  letter-spacing: .12em;
}

.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--phosphor); color: var(--black); }
.marquee-track { display: flex; width: max-content; animation: marquee 24s linear infinite; }
.marquee span { padding: 10px 0; font-size: .72rem; font-weight: 900; letter-spacing: .12em; white-space: nowrap; }

.section { padding: clamp(76px, 10vw, 150px) clamp(20px, 5vw, 80px); border-bottom: 1px solid var(--line); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(38px, 6vw, 76px);
}
.section-heading h2, .contact-panel h2 {
  margin: 4px 0 0;
  font-size: clamp(2.3rem, 5vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.055em;
}
.sync-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .08em;
}
.sync-light { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.sync-badge[data-state="local"] .sync-light { background: var(--phosphor); box-shadow: 0 0 10px var(--phosphor); }

.games-container { display: grid; gap: 42px; }
.game-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  min-height: 560px;
  border: 1px solid var(--line-hot);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.game-visual { position: relative; min-height: 460px; overflow: hidden; background: #080604; }
.game-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--panel)), linear-gradient(0deg, rgba(8,6,4,.82), transparent 35%);
  pointer-events: none;
}
.game-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.1); transition: transform 500ms ease, filter 500ms ease; }
.game-card:hover .game-visual img { transform: scale(1.025); filter: saturate(1) contrast(1.05); }
.game-visual .image-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--phosphor-soft);
  background: repeating-linear-gradient(135deg, #0c0805 0 10px, #160d08 10px 20px);
  font-size: clamp(1.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -.08em;
}
.game-number { position: absolute; top: 20px; left: 20px; z-index: 2; background: var(--black); color: var(--phosphor); border: 1px solid var(--line-hot); padding: 7px 9px; font-size: .7rem; }
.game-data {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
}
.game-state { color: var(--amber); font-size: .7rem; letter-spacing: .15em; }
.game-data h3 { margin: 12px 0 16px; font-size: clamp(2.3rem, 4.5vw, 5rem); line-height: .95; letter-spacing: -.06em; }
.game-description { color: #c7b9ad; font-size: .98rem; }
.game-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.meta-block { padding-top: 10px; border-top: 1px solid var(--line); }
.meta-block span { display: block; color: var(--muted); font-size: .62rem; letter-spacing: .13em; margin-bottom: 4px; }
.meta-block strong { color: var(--paper); font-size: .82rem; font-weight: 500; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.tag { border: 1px solid var(--line); color: var(--phosphor-soft); padding: 5px 7px; font-size: .62rem; text-transform: uppercase; }
.screenshot-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line-hot);
  background: var(--line);
}
.screenshot-strip.count-1 { grid-template-columns: 1fr; }
.screenshot-strip.count-2 { grid-template-columns: repeat(2, 1fr); }
.screenshot-strip.count-3 { grid-template-columns: repeat(3, 1fr); }

.screenshot-strip.count-6 { grid-template-columns: repeat(3, 1fr); }
.game-logo { width: min(100%, 460px); margin: 18px 0 4px; border: 1px solid var(--line); }
.game-loop { margin: 5px 0 0; color: var(--phosphor); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.screenshot-strip a { aspect-ratio: 16 / 8.5; overflow: hidden; background: #000; }
.screenshot-strip img { width: 100%; height: 100%; object-fit: cover; opacity: .73; transition: opacity 150ms ease, transform 250ms ease; }
.screenshot-strip a:hover img { opacity: 1; transform: scale(1.03); }

.manifest-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.panel { border: 1px solid var(--line); background: var(--panel); }
.manifest-copy { padding: clamp(30px, 5vw, 72px); }
.prompt-line { color: var(--phosphor); font-size: .72rem; margin: 0 0 48px; }
.manifest-copy h3 { max-width: 740px; margin: 0 0 22px; font-size: clamp(1.9rem, 3.3vw, 3.8rem); line-height: 1.03; letter-spacing: -.045em; }
.manifest-copy > p:not(.prompt-line) { max-width: 780px; color: #bba99a; }
.principles { display: grid; gap: 12px; }
.principle { padding: 28px; transition: border-color 150ms ease, transform 150ms ease; }
.principle:hover { border-color: var(--line-hot); transform: translateX(-5px); }
.principle span { color: var(--amber); font-size: .65rem; }
.principle h3 { margin: 14px 0 6px; color: var(--phosphor); font-size: 1rem; letter-spacing: .08em; }
.principle p { color: var(--muted); margin: 0; font-size: .82rem; }

.contact-section { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; background: var(--panel-2); }
.contact-panel > p:not(.section-index):not(.contact-note) { color: var(--muted); }
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin-top: 32px;
  color: var(--phosphor);
  text-decoration: none;
  border-bottom: 1px solid var(--line-hot);
  font-size: clamp(1rem, 2.3vw, 2rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.email-link:hover span { transform: translate(4px, -4px); }
.email-link span { transition: transform 150ms ease; }
.ascii-mark { color: var(--phosphor-soft); font-size: clamp(.5rem, 1.2vw, 1rem); line-height: 1.05; opacity: .6; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 80px);
  color: #806957;
  font-size: .63rem;
  letter-spacing: .08em;
}
.site-footer p { margin: 0; }
.site-footer a { justify-self: end; text-decoration: none; color: var(--phosphor-soft); }



/* Creator copy request */
.creators-section { background: #0b0704; }
.creator-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}
.creator-brief { padding: clamp(28px, 4vw, 54px); }
.creator-command {
  margin: 0 0 42px;
  color: var(--phosphor);
  font-size: .72rem;
  letter-spacing: .06em;
}
.creator-brief h3 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 3vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.creator-brief > p:not(.creator-command):not(.creator-warning) { color: #bba99a; }
.creator-checklist {
  display: grid;
  gap: 10px;
  padding: 22px 0;
  margin: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.creator-checklist li {
  position: relative;
  padding-left: 22px;
  color: var(--paper);
  font-size: .8rem;
}
.creator-checklist li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--phosphor);
}
.creator-warning {
  margin: 0;
  color: var(--amber);
  font-size: .72rem;
  letter-spacing: .04em;
}
.creator-form { padding: clamp(28px, 4vw, 54px); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form-field { display: grid; gap: 8px; }
.form-field-full { grid-column: 1 / -1; }
.form-field > span {
  color: var(--phosphor-soft);
  font-size: .66rem;
  letter-spacing: .1em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: var(--deep);
  color: var(--paper);
  font: inherit;
  font-size: .84rem;
  padding: 12px 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field select { cursor: pointer; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #6f5c4d; }
.form-hint { color: #77604f; font-size: .64rem; line-height: 1.4; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--phosphor);
  box-shadow: 0 0 0 2px rgba(255, 138, 31, .12);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 24px 0;
  color: var(--muted);
  font-size: .72rem;
  cursor: pointer;
}
.form-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--phosphor);
}
.creator-submit { font-family: var(--mono); cursor: pointer; }
.creator-submit:disabled { cursor: wait; opacity: .72; transform: none; box-shadow: none; }
.form-note { margin: 16px 0 0; color: #77604f; font-size: .65rem; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

@keyframes blink { 50% { opacity: .25; } }
@keyframes cursor { 50% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .boot-window { justify-self: start; width: 100%; transform: none; }
  .game-card { grid-template-columns: 1fr; }
  .game-visual::after { background: linear-gradient(0deg, var(--panel), transparent 38%); }
  .creator-layout { grid-template-columns: 1fr; }
  .manifest-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .site-header { min-height: 62px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line-hot);
    background: #0d0805;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 16px 22px; border-top: 1px solid var(--line); }
  .hero { min-height: calc(100svh - 62px); padding-top: 70px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 5.5rem); }
  .hero-meta { position: static; flex-wrap: wrap; margin-top: 26px; }
  .section-heading { align-items: start; flex-direction: column; }
  .game-card { min-height: 0; box-shadow: 5px 5px 0 #000; }
  .game-visual { min-height: 280px; }
  .game-data { padding: 30px 22px; }
  .game-meta-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-full { grid-column: auto; }
  .screenshot-strip, .screenshot-strip.count-6 { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; }
  .ascii-mark { display: none; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer a { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* SEO game detail page */
.game-details-link { align-self: flex-start; margin-top: 4px; }
.game-detail-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
  min-height: calc(100vh - 72px);
  padding: clamp(70px, 9vw, 132px) clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.game-detail-copy { position: relative; z-index: 2; }
.game-path { color: #77604f; font-size: .72rem; letter-spacing: .06em; }
.game-detail-hero h1 {
  margin: 18px 0 22px;
  color: var(--phosphor);
  font-size: clamp(3.3rem, 7vw, 7.7rem);
  line-height: .88;
  letter-spacing: -.075em;
}
.game-detail-lead { max-width: 710px; color: #c7b8aa; font-size: clamp(1rem, 1.45vw, 1.25rem); }
.game-detail-cover { margin: 0; border: 1px solid var(--line-hot); background: var(--panel); box-shadow: var(--shadow); }
.game-detail-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-detail-cover figcaption, .detail-gallery figcaption {
  padding: 10px 12px;
  color: var(--phosphor-soft);
  font-size: .65rem;
  letter-spacing: .08em;
  border-top: 1px solid var(--line);
}
.game-overview-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 24px; }
.game-overview-copy { padding: clamp(30px, 5vw, 72px); }
.game-overview-copy h2 { margin: 0 0 24px; font-size: clamp(2rem, 3.8vw, 4.25rem); line-height: 1; letter-spacing: -.05em; }
.game-overview-copy p:not(.prompt-line) { color: #bba99a; }
.game-overview-copy strong { color: var(--paper); }
.game-facts { padding: clamp(28px, 4vw, 52px); }
.game-facts dl { display: grid; gap: 0; margin: 0; }
.game-facts dl div { padding: 17px 0; border-bottom: 1px solid var(--line); }
.game-facts dl div:first-child { padding-top: 0; }
.game-facts dt { color: var(--phosphor-soft); font-size: .64rem; letter-spacing: .11em; }
.game-facts dd { margin: 5px 0 0; color: var(--paper); font-size: .88rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.detail-gallery figure { margin: 0; border: 1px solid var(--line); background: var(--panel); }
.detail-gallery a { display: block; overflow: hidden; }
.detail-gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .82; transition: opacity 150ms ease, transform 250ms ease; }
.detail-gallery a:hover img { opacity: 1; transform: scale(1.02); }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq-grid details { padding: 24px; }
.faq-grid summary { color: var(--phosphor); font-weight: 800; cursor: pointer; }
.faq-grid p { margin: 16px 0 0; color: #bba99a; }
.game-cta .button { margin-top: 24px; }

@media (max-width: 1000px) {
  .game-detail-hero { grid-template-columns: 1fr; min-height: auto; }
  .game-overview-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .game-detail-hero { padding-top: 70px; }
  .game-detail-hero h1 { font-size: clamp(3rem, 17vw, 5.8rem); }
  .feature-grid, .detail-gallery, .faq-grid { grid-template-columns: 1fr; }
}
