/* renegadecop.com: the game's own UI palette (godot/ui/UiStyle.cs) and mono font, night first. */
@font-face { font-family: JBM; src: url(/fonts/jbmono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: JBM; src: url(/fonts/jbmono-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Dela; src: url(/fonts/dela-gothic-one.woff2) format('woff2'); font-display: swap; }
:root {
  --ink: #06070e; --ink-2: #0f1119; --ink-3: #171a24; --line: #ffffff17;
  --amber: #ffb029; --amber-dim: #9e6e1f; --teal: #2ee6d6; --teal-dim: #1a6b66; --magenta: #ff459e;
  --grey: #8594a0; --osd: #e0ffeb; --fg: #e7ecef;
  --w: 1120px;
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--fg); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 JBM, ui-monospace, Menlo, Consolas, monospace; background: var(--ink); overflow-x: hidden; }
a { color: var(--teal); }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: Dela, JBM, sans-serif; font-weight: 400; letter-spacing: .02em; line-height: 1.15; }
h2 { color: var(--amber); font-size: clamp(24px, 4vw, 36px); margin: 0 0 24px; }
h2::before { content: "▍"; color: var(--magenta); margin-right: .2em; }
h3 { color: var(--osd); font-size: 20px; margin: 0 0 8px; }
.small { font-size: 13px; color: var(--grey); }

.top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
body:not(.home) .top { position: static; border-bottom: 1px solid var(--line); }
.brand { font-family: Dela, JBM, sans-serif; color: var(--magenta); text-decoration: none; font-size: 18px; letter-spacing: .06em;
  text-shadow: 0 0 12px #ff459e88; }
.brand span { font-family: system-ui, sans-serif; font-size: 12px; color: var(--grey); margin-left: 10px; letter-spacing: 0; text-shadow: none; }
nav { display: flex; gap: 18px; font-size: 14px; }
nav a { color: var(--osd); text-decoration: none; }
nav a:hover { color: var(--amber); }

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .veil { position: absolute; inset: 0; background:
  linear-gradient(90deg, #06070ecc 0%, #06070e88 40%, #06070e00 70%),
  linear-gradient(180deg, #06070eaa 0%, #06070e00 25%, #06070e00 45%, #06070ee6 80%, var(--ink) 100%),
  repeating-linear-gradient(0deg, #0000 0 2px, #00000022 2px 3px); pointer-events: none; }
.hero-in { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 48px; width: 100%; }
.chip { display: inline-block; font-size: 12px; letter-spacing: .15em; color: var(--osd); border: 1px solid #e0ffeb55; padding: 2px 10px;
  margin: 0 0 18px; background: #06070e88; }
.chip::first-letter { color: #ff3b3b; }
.hero h1 { margin: 0; }
.logo { width: min(820px, 100%); filter: drop-shadow(0 0 18px #ff459e66); }
.ja { font-family: system-ui, 'Noto Sans JP', sans-serif; color: var(--teal); letter-spacing: .4em; margin: 8px 0 0; font-size: 15px; }
.tag { font-size: clamp(20px, 3vw, 28px); color: var(--amber); margin: 18px 0 6px; text-shadow: 0 0 14px #ffb02955; }
.blurb { max-width: 640px; color: var(--osd); margin: 0 0 22px; }
.plat { font-size: 13px; color: var(--grey); letter-spacing: .08em; margin-top: 14px; }
.pause { position: absolute; z-index: 3; right: 16px; bottom: 16px; background: #06070ecc; color: var(--osd); border: 1px solid var(--line);
  font: 12px JBM, monospace; padding: 6px 10px; cursor: pointer; }

.signup { max-width: 560px; }
.signup label { display: block; font-size: 14px; color: var(--osd); margin-bottom: 8px; }
.signup .row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type=email] { flex: 1 1 240px; min-width: 0; font: 16px JBM, monospace; padding: 12px 14px; background: #06070ecc;
  color: var(--fg); border: 1px solid var(--teal-dim); border-radius: 0; }
.signup input[type=email]:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 2px #2ee6d633; }
.signup button, .btn, .gate button { font: 700 16px JBM, monospace; padding: 12px 22px; background: var(--magenta); color: var(--ink);
  border: 0; cursor: pointer; text-decoration: none; display: inline-block; box-shadow: 0 0 22px #ff459e55; min-height: 44px; }
.signup button:hover, .btn:hover, .gate button:hover { background: var(--amber); color: var(--ink); box-shadow: 0 0 22px #ffb02955; }
.signup button[disabled] { opacity: .6; cursor: wait; }
.signup .msg { min-height: 1.4em; margin: 8px 0 0; color: var(--teal); font-size: 14px; }
.signup .msg.err { color: var(--magenta); }
.signup .small { margin: 2px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

section.wrap { padding-top: 72px; padding-bottom: 8px; }
.feat { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; margin-bottom: 40px; }
.feat:nth-child(odd of .feat) .ph { order: 2; }
.feat .ph img { border: 1px solid var(--line); }
.feat p { color: #c9d3d8; margin: 0; }
.story p { max-width: 760px; color: #c9d3d8; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.gallery a:hover img { border-color: var(--teal); }
.gate { border: 1px solid #ff459e55; background: var(--ink-2); padding: 20px; max-width: 760px; }
.gate p { margin-top: 0; }
.after { border: 1px solid var(--line); padding: 20px; max-width: 760px; }
.end { padding-bottom: 72px !important; }

.page { padding-top: 32px; padding-bottom: 64px; }
.page h1 { color: var(--magenta); font-size: clamp(28px, 5vw, 44px); }
.page h2 { margin-top: 40px; }
.facts { border-collapse: collapse; width: 100%; max-width: 640px; }
.facts th, .facts td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--grey); font-weight: 400; width: 40%; }
.credits li { margin-bottom: 8px; color: #c9d3d8; overflow-wrap: anywhere; }
.page ol li { margin-bottom: 10px; }
code { color: var(--amber); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--grey); }

@media (max-width: 800px) {
  .feat { grid-template-columns: 1fr; gap: 12px; }
  .feat:nth-child(odd of .feat) .ph { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-in { padding-top: 96px; }
}
@media (prefers-reduced-motion: reduce) { .hero video { display: none; } .pause { display: none; } }
