/* PlayGen.
   Every colour here was measured off the avatar and the banner with k-means, not picked by
   eye: #BDEC30 is the phosphor the wordmark is actually drawn in. */
:root {
  --bg: #000000;
  --ink: #bdec30;
  --hot: #e0fd85;
  --mid: #8fc120;
  --dim: #3e620b;
  --ghost: #152905;
  --panel: rgba(5, 7, 4, 0.88);
  --line: rgba(189, 236, 48, 0.22);
  --text: #d8e8bd;
  --mute: #7d9159;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pixel: 'Press Start 2P', var(--mono);
  --gutter: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- the stage */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
}
.stage canvas { display: block; width: 100%; height: 100%; }

/* scanlines + vignette sit between the 3D and the HUD, never under a CSS gradient */
.crt {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.26) 2px 3px),
    radial-gradient(130% 95% at 50% 42%, rgba(0,0,0,0) 38%, rgba(0,0,0,.82) 100%);
}

main, header, footer { position: relative; z-index: 2; }

/* ---------------------------------------------------------------- top bar */

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(9px);
  position: sticky;
  top: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: .02em;
  text-shadow: 0 0 14px rgba(189, 236, 48, .5);
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .26em;
  color: var(--mute);
  text-shadow: none;
  margin-top: 4px;
}
.topbar .spacer { flex: 1; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--mute);
  text-transform: uppercase;
  white-space: nowrap;
}
.live i {
  width: 8px; height: 8px;
  background: var(--ink);
  box-shadow: 0 0 10px var(--ink);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: .25; } }

.navlinks { display: flex; gap: 8px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: rgba(189, 236, 48, .05);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.btn:hover { background: rgba(189, 236, 48, .14); border-color: var(--ink); }
.btn[disabled], .btn.off { opacity: .4; cursor: not-allowed; }
.btn.primary {
  background: var(--ink);
  color: #06120a;
  border-color: var(--ink);
  box-shadow: 0 0 22px rgba(189, 236, 48, .32);
}
.btn.primary:hover { background: var(--hot); border-color: var(--hot); }
.btn.wide { width: 100%; padding: 15px; font-size: 13px; }

/* ---------------------------------------------------------------- layout */

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 26px;
  align-items: start;
  padding: 44px 0 70px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(11px);
}
.panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.panel-head .tag {
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--mid);
  text-transform: uppercase;
}
.panel-head h2 {
  margin: 0;
  font-family: var(--pixel);
  font-size: 15px;
  color: var(--hot);
  line-height: 1.5;
}
.panel-head .right { margin-left: auto; font-size: 10px; letter-spacing: .2em; color: var(--mute); }
.panel-body { padding: 18px; }

/* ---------------------------------------------------------------- hero */

.stamp {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  background: rgba(189, 236, 48, .08);
}
h1.hero {
  font-family: var(--pixel);
  font-size: clamp(26px, 5.4vw, 52px);
  line-height: 1.32;
  margin: 20px 0 16px;
  color: #eaffd0;
  text-shadow: 0 0 26px rgba(189, 236, 48, .4);
}
h1.hero em { font-style: normal; color: var(--ink); }
.lede { max-width: 48ch; color: var(--text); font-size: 15px; }

.cards { display: grid; gap: 10px; margin-top: 26px; }
.card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 4, .84);
  backdrop-filter: blur(7px);
}
.card .ico {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 11px;
  background: rgba(189, 236, 48, .06);
  text-shadow: 0 0 12px rgba(189, 236, 48, .6);
}
.card b { display: block; color: var(--hot); font-size: 14px; font-weight: 600; }
.card span { font-size: 13px; color: var(--mute); }

/* ---------------------------------------------------------------- steps (the form) */

.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: 0; }
.step .n {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--dim);
}
.step.on { background: linear-gradient(90deg, rgba(189,236,48,.10), transparent 72%); }
.step.on .n { color: var(--ink); text-shadow: 0 0 12px var(--ink); }
.step.done .n::after { content: ' OK'; font-size: 9px; color: var(--ink); }
.step b { display: block; color: var(--hot); font-size: 14px; }
.step span { font-size: 12.5px; color: var(--mute); }
.step.locked { opacity: .45; }

input[type=text], input[type=url] {
  width: 100%;
  padding: 11px 12px;
  background: #050703;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}
input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px rgba(189,236,48,.3); }

/* ---------------------------------------------------------------- tables / lists */

.lb { width: 100%; border-collapse: collapse; font-size: 13px; }
.lb th {
  text-align: left;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.lb td { padding: 9px 0; border-bottom: 1px solid rgba(189,236,48,.08); }
.lb td:last-child, .lb th:last-child { text-align: right; color: var(--ink); }
.lb .rank { width: 30px; color: var(--dim); font-family: var(--pixel); font-size: 10px; }
.lb img { width: 22px; height: 22px; border-radius: 50%; vertical-align: -6px; margin-right: 8px; }

.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 1px; background: var(--line); }
.stat > div { background: #04060300; padding: 14px; background-color: rgba(4,6,3,.86); }
.stat .k { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.stat .v { font-family: var(--pixel); font-size: 16px; color: var(--ink); margin-top: 8px; }

/* a value that is not known yet is a dash, never a "coming soon" banner */
.nil { color: var(--dim); }

/* ---------------------------------------------------------------- meters */

.meter { height: 8px; background: #0a0f05; border: 1px solid var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); box-shadow: 0 0 12px var(--ink); }
.meter.hot i { background: #ff8a3d; box-shadow: 0 0 12px #ff8a3d; }

/* ---------------------------------------------------------------- docs */

.doc h2 {
  font-family: var(--pixel);
  font-size: 15px;
  color: var(--hot);
  margin: 42px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.doc h3 { color: var(--ink); font-size: 14px; margin: 24px 0 8px; letter-spacing: .04em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 14px 0; }
.doc th { text-align: left; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); font-weight: 400; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.doc td { padding: 7px 10px 7px 0; border-bottom: 1px solid rgba(189,236,48,.08); }
.doc td:first-child { color: var(--hot); }
.doc p { max-width: 74ch; }
.toc { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 8px; }
.toc a {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mid); text-decoration: none;
  border: 1px solid var(--line); padding: 6px 9px;
}
.toc a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------------------------------------------------------------- misc */

.note { font-size: 12px; color: var(--mute); }
.err { color: #ff9a6a; font-size: 12.5px; }
.ok { color: var(--ink); font-size: 12.5px; }
a { color: var(--ink); }
footer {
  border-top: 1px solid var(--line);
  padding: 22px var(--gutter) 40px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  background: rgba(0,0,0,.72);
}

/* ---------------------------------------------------------------- phone */

@media (max-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr); padding: 26px 0 50px; }
  .topbar { flex-wrap: wrap; gap: 10px; }
  .topbar .live { order: 3; width: 100%; }
  .navlinks { width: 100%; }
  .navlinks .btn { flex: 1; padding: 10px 8px; font-size: 10px; letter-spacing: .1em; }
  h1.hero { font-size: clamp(20px, 7vw, 30px); line-height: 1.4; }
  .step { grid-template-columns: 30px 1fr; }
  .step > :last-child { grid-column: 1 / -1; }
}

/* the film: nothing but the stage */
body.cine .topbar, body.cine main, body.cine footer, body.cine .crt { display: none !important; }
body.cine { overflow: hidden; }
