/* Football Crash — night-stadium theme. Original styles. */
:root {
  --bg: #07152e;
  --panel: #0e2342;
  --panel2: #123058;
  --line: #2b4a7d;
  --text: #eef4ff;
  --dim: #9db4d6;
  --accent: #ffd23e;
  --green: #22c55e;
  --green-dark: #15803d;
  --red: #ef4444;
  --pitch: #1f9d4d;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #123a6e 0%, var(--bg) 60%);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; gap: 10px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: 1.6px; font-size: 19px; }
.brand-icon { width: 34px; height: 34px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.pill { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.6px; }
.pill.demo { background: #b45309; color: #fff7e0; }
.pill.real { background: var(--green-dark); color: #eafff2; }
.balance-box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-size: 13px; color: var(--dim); }
.balance-box strong { color: var(--accent); font-size: 16px; margin-left: 6px; }
.ghost-btn { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; cursor: pointer; font-size: 14px; }
main { max-width: 980px; margin: 0 auto; padding: 6px 14px 34px; }
.stage-wrap {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 2px solid #3a5f96; box-shadow: 0 14px 34px rgba(0,0,0,0.5);
  background: #0a2a4a;
}
#stage { display: block; width: 100%; height: auto; }
.stage-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none; gap: 8px;
}
.phase-label { font-size: 15px; font-weight: 700; color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.8); letter-spacing: 0.4px; }
/* Scoreboard LED numerals */
.multiplier {
  font-family: "Consolas", "SF Mono", ui-monospace, monospace;
  font-size: clamp(44px, 9vw, 78px); font-weight: 800; letter-spacing: 3px;
  color: var(--accent);
  background: rgba(2, 10, 26, 0.78);
  border: 2px solid #3a5f96; border-radius: 12px;
  padding: 2px 22px 6px;
  text-shadow: 0 0 14px rgba(255, 210, 62, 0.65), 0 0 34px rgba(255, 210, 62, 0.3);
  font-variant-numeric: tabular-nums;
}
.multiplier.crashed { color: #ff6b5e; border-color: #7d2b2b; text-shadow: 0 0 14px rgba(255, 80, 60, 0.7); }
.countdown { font-size: 15px; color: #ffffff; text-shadow: 0 1px 6px rgba(0,0,0,0.8); min-height: 20px; font-weight: 700; }
.crash-banner { position: absolute; top: 12px; right: 16px; font-size: 40px; }
.hidden { display: none !important; }
.history-row { display: flex; align-items: center; gap: 10px; margin: 14px 2px 4px; color: var(--dim); font-size: 13px; font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips .chip {
  background: var(--panel2); border: 1px solid var(--line); color: var(--text);
  font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.chips .chip.win { border-color: var(--green); color: #8bf0ae; }
.chips .chip.big { border-color: var(--accent); color: var(--accent); }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
@media (max-width: 640px) { .panels { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.panel-name { font-weight: 800; letter-spacing: 0.4px; }
.panel-status { font-size: 12.5px; color: var(--dim); min-height: 16px; }
.panel-status.won { color: #8bf0ae; font-weight: 700; }
.panel-status.lost { color: #ff9d94; font-weight: 700; }
.field { display: block; font-size: 13px; color: var(--dim); margin: 9px 0; }
.field.inline { display: flex; align-items: center; gap: 8px; }
.stake-row { display: flex; gap: 6px; margin-top: 5px; }
.stake-row .step {
  width: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--text); font-size: 19px; cursor: pointer;
}
input[type="number"], input[type="text"] {
  background: #081a36; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 9px 11px; font-size: 15px; width: 100%;
}
.stake-row input { flex: 1; }
.stake-chips { margin: 7px 0 3px; }
.stake-chips button {
  background: var(--panel2); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.stake-chips button:hover { border-color: var(--accent); color: var(--accent); }
.field input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--green); }
.field .auto-value { width: 96px; }
button.action {
  width: 100%; margin-top: 11px; padding: 14px; border: none; border-radius: 12px;
  font-size: 17px; font-weight: 800; letter-spacing: 0.6px; cursor: pointer;
  background: linear-gradient(180deg, #2bd45e, var(--green-dark)); color: #ffffff;
  box-shadow: 0 5px 0 #0d5c29;
}
button.action:active { transform: translateY(2px); box-shadow: 0 3px 0 #0d5c29; }
button.action.cashout { background: linear-gradient(180deg, #ffcf4d, #d99a06); color: #3a2a00; box-shadow: 0 5px 0 #8a6100; }
button.action:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.fairness { margin-top: 16px; }
.fairness h3 { margin: 2px 0 10px; font-size: 15.5px; }
.fair-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 13px; color: var(--dim); flex-wrap: wrap; }
.fair-row code { color: var(--accent); word-break: break-all; font-size: 12px; }
.fair-row input { width: 110px; }
.small-btn {
  background: var(--panel2); color: var(--text); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 14px; cursor: pointer; font-size: 13.5px; font-weight: 600;
}
.small-btn:hover { border-color: var(--accent); }
.verify-result { font-size: 13.5px; min-height: 18px; }
