﻿@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap");

:root {
  --bg: #0b0d12;
  --panel: #151922;
  --panel2: #1c2130;
  --line: #2a3142;
  --pump: #54f28a;
  --orange: #ff8a1f;
  --gold: #ffd23f;
  --red: #ff3b3b;
  --blue: #2c6bff;
  --text: #eef1f7;
  --muted: #8a93a8;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
a { color: var(--pump); }
.bangers { font-family: Bangers, Impact, sans-serif; letter-spacing: 1.5px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--line); background: #0e1118cc;
  position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 10;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 26px; text-decoration: none; color: var(--text); }
.ball {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6 0 12%, #ffb238 13% 60%, #e56b00 100%);
  display: grid; place-items: center; color: #c21b1b; font-size: 12px; box-shadow: 0 0 14px #ff9c2a88;
}
.pill {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; display: inline-flex; gap: 8px; align-items: center;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pump); box-shadow: 0 0 8px var(--pump); }

.btn {
  font-family: Bangers, Impact, sans-serif; letter-spacing: 1.5px; font-size: 22px;
  border: 3px solid #000; border-radius: 12px; padding: 10px 26px; cursor: pointer;
  background: linear-gradient(#ffd23f, #ff8a1f); color: #1a0d00; box-shadow: 4px 4px 0 #000;
  transition: transform .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.btn.green { background: linear-gradient(#8dffb4, #2fd46c); }
.btn.ghost { background: var(--panel2); color: var(--text); border-color: var(--line); box-shadow: none; font-size: 18px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.hero {
  position: relative; overflow: hidden; padding: 56px 0 40px; text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, #ff8a1f44, transparent 60%),
    repeating-conic-gradient(from 0deg at 50% 110%, #ffffff06 0 6deg, transparent 6deg 12deg);
}
.hero h1 {
  font-family: Bangers, Impact, sans-serif; font-size: clamp(48px, 10vw, 110px); margin: 0; line-height: .95;
  color: var(--gold); -webkit-text-stroke: 3px #000; text-shadow: 6px 6px 0 #c2410c, 0 0 40px #ff8a1f66;
}
.hero p { color: var(--muted); max-width: 620px; margin: 14px auto 26px; font-size: 17px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 26px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.card .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.card .big { font-family: Bangers, Impact, sans-serif; font-size: 38px; color: var(--pump); letter-spacing: 1px; }
.ca { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; cursor: pointer; }

.progress { height: 18px; background: var(--panel2); border: 2px solid #000; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--pump), var(--gold)); transition: width .8s; }

.saga { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 20px 0 60px; }
.chapter {
  background: var(--panel); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; position: relative;
}
.chapter canvas { width: 100%; display: block; aspect-ratio: 16/9; background: #111; }
.chapter .body { padding: 14px; }
.chapter h3 { margin: 0 0 4px; font-family: Bangers, Impact, sans-serif; font-size: 30px; letter-spacing: 1px; }
.chapter .goal { color: var(--pump); font-weight: 800; }
.chapter .forms { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); }
.chapter.locked canvas { filter: grayscale(1) brightness(.35); }
.chapter.locked::after {
  content: "🔒 LOCKED"; position: absolute; top: 12px; right: 12px; font-family: Bangers, sans-serif;
  background: #000c; padding: 4px 10px; border-radius: 8px; letter-spacing: 1px;
}
.chapter.current { border-color: var(--gold); box-shadow: 0 0 0 2px #000, 0 0 30px #ffd23f55; }
.chapter.current::after {
  content: "⚡ NOW FIGHTING"; position: absolute; top: 12px; right: 12px; font-family: Bangers, sans-serif;
  background: var(--gold); color: #000; padding: 4px 10px; border-radius: 8px; letter-spacing: 1px;
}
footer { color: var(--muted); text-align: center; padding: 30px; font-size: 13px; border-top: 1px solid var(--line); }

input, textarea {
  width: 100%; background: var(--panel2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font: inherit;
}
@media (max-width: 600px) {
  .topbar { padding: 10px 16px; }
  .logo { font-size: 20px; }
  .hide-sm { display: none; }
}

/* ================= PIXEL THEME =================
   Press Start 2P for titles/labels/buttons, VT323 for body text.
   Square corners, hard 4px drop shadows, no smoothing, stepped bars. */
*, *::before, *::after { border-radius: 0 !important; -webkit-font-smoothing: none; font-smooth: never; }
html, body, input, textarea, button, select { font-family: "VT323", monospace; }
body { font-size: 20px; line-height: 1.15; }
.bangers, .btn, .big, h1, h2, h3, .logo, .pill, .label, .card .label, .opp .nm, .opp .st, .hero h1 {
  font-family: "Press Start 2P", monospace !important; letter-spacing: 0 !important; -webkit-text-stroke: 0 !important; text-shadow: 3px 3px 0 #000;
}
.logo { font-size: 13px !important; gap: 12px; }
.ball { width: 20px; height: 20px; border: 3px solid #000; background: #ff9c2a; box-shadow: none; font-size: 10px; color: #c21b1b; }
.pill { font-size: 10px !important; padding: 8px 10px; border: 3px solid #000 !important; background: var(--panel2); box-shadow: 3px 3px 0 #000; text-shadow: none; }
.dot { width: 8px; height: 8px; }
.btn { font-size: 12px !important; padding: 12px 16px; border: 3px solid #000 !important; box-shadow: 4px 4px 0 #000; text-shadow: none; line-height: 1.4; }
.btn.ghost { font-size: 10px !important; }
.card, .opp, .ticker, input, textarea, #game {
  border: 3px solid #000 !important; box-shadow: 4px 4px 0 #000;
}
.card .label, .label { font-size: 8px !important; line-height: 1.7; color: var(--muted); text-shadow: none; }
.card .big { font-size: 22px !important; line-height: 1.4; }
.side h2, h2 { font-size: 16px !important; line-height: 1.5; }
.opp { box-shadow: 4px 4px 0 #000; }
.opp .nm { font-size: 11px !important; line-height: 1.5 !important; }
.opp .st { font-size: 8px !important; line-height: 1.8 !important; text-shadow: none; }
.opp .sub { font-size: 17px !important; line-height: 1.05; }
.opp.now { box-shadow: 4px 4px 0 #000, 0 0 0 3px var(--gold) inset !important; }
.opp.next { box-shadow: 4px 4px 0 #000, 0 0 0 3px var(--pump) inset !important; }
.ticker { font-size: 20px !important; line-height: 1.05; }
.progress { height: 12px !important; border: 3px solid #000 !important; background: #111; }
.progress > i { background: repeating-linear-gradient(90deg, var(--pump) 0 6px, #2fd46c 6px 9px) !important; transition: width .3s steps(6); }
.caBox { font-size: 9px !important; }
input, textarea { font-size: 22px; background: #0f1219; }
pre { font-family: "VT323", monospace; font-size: 18px; }
footer, .muted { font-size: 18px; }
::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-track { background: #111; } ::-webkit-scrollbar-thumb { background: #3a4152; border: 3px solid #111; }