:root {
  --bg: #08030a;
  --panel: rgba(18, 8, 22, 0.86);
  --panel2: rgba(38, 12, 35, 0.72);
  --text: #fff7fb;
  --muted: #caa9bf;
  --red: #ff3b4f;
  --red2: #b5122d;
  --pink: #ff4fa3;
  --purple: #8f46ff;
  --green: #31ff9c;
  --border: rgba(255, 79, 163, 0.28);
  --shadow: 0 24px 90px rgba(255, 59, 79, 0.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(255, 59, 79, 0.18), transparent 34%), radial-gradient(circle at top right, rgba(143, 70, 255, 0.2), transparent 30%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.bg-grid { position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
a { color: inherit; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(18px, 4vw, 56px); background: rgba(8,3,10,.72); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; letter-spacing: .03em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 20px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; min-height: 72vh; padding: 64px 0 36px; }
.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 800; }
h1 { font-size: clamp(42px, 8vw, 86px); line-height: .92; margin: 12px 0 22px; letter-spacing: -.06em; }
.lead { font-size: 18px; color: var(--muted); max-width: 670px; line-height: 1.65; }
.hero-actions, .controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.btn { border: 1px solid var(--border); padding: 13px 18px; border-radius: 16px; cursor: pointer; color: var(--text); background: rgba(255,255,255,.06); font-weight: 800; transition: transform .18s ease, border-color .18s ease, opacity .18s ease; }
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.4); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.primary { background: linear-gradient(135deg, var(--red), var(--pink)); box-shadow: 0 18px 42px rgba(255,59,79,.28); }
.danger { background: linear-gradient(135deg, #ff2038, #7e1024); }
.ghost { background: rgba(255,255,255,.05); }
.full { width: 100%; }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.trust-row span { border: 1px solid var(--border); background: rgba(255,255,255,.04); padding: 8px 10px; border-radius: 999px; color: var(--muted); font-size: 13px; }
.hero-card, .game-panel, .fairness, .info-grid article { border: 1px solid var(--border); background: linear-gradient(180deg, var(--panel), rgba(8,3,10,.88)); border-radius: 28px; box-shadow: var(--shadow); }
.hero-card { padding: 28px; min-height: 410px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.ticker { color: var(--muted); font-weight: 900; letter-spacing: .16em; font-size: 12px; }
.big-multiplier { font-size: clamp(72px, 9vw, 128px); font-weight: 950; letter-spacing: -.08em; color: var(--green); text-shadow: 0 0 42px rgba(49,255,156,.28); }
.chart-line { height: 120px; border-bottom: 4px solid var(--red); border-right: 4px solid var(--red); transform: skewY(-15deg); opacity: .75; border-radius: 10px; }
.game-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; padding: 26px 0; }
.game-panel { padding: 22px; }
.game-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.label { margin: 0; color: var(--muted); font-size: 13px; }
#multiplier { font-size: clamp(54px, 8vw, 92px); margin: 0; color: var(--green); }
.status-pill { padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-weight: 800; }
.flight-stage { position: relative; height: 320px; margin: 16px 0; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at bottom left, rgba(255,79,163,.18), transparent 40%), rgba(0,0,0,.23); border: 1px solid rgba(255,255,255,.08); }
#crashCanvas { width: 100%; height: 100%; display: block; }
.rocket { position: absolute; left: 30px; bottom: 30px; font-size: 42px; z-index: 2; filter: drop-shadow(0 0 20px rgba(255,79,163,.7)); transition: transform .08s linear; }
.controls label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
input { width: 130px; border: 1px solid var(--border); border-radius: 14px; padding: 13px; background: rgba(0,0,0,.25); color: var(--text); font-weight: 800; }
.message { margin-top: 16px; color: var(--muted); line-height: 1.5; }
.stats-panel h3 { margin-top: 0; }
.stat { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--muted); }
.stat b { color: var(--text); }
.small-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 36px 0; }
.info-grid article { padding: 24px; box-shadow: none; }
.info-grid p, .fairness p { color: var(--muted); line-height: 1.6; }
.fairness { padding: 28px; margin: 10px 0 50px; }
.code-box { overflow-x: auto; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 16px; background: rgba(0,0,0,.28); color: var(--green); }
.footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto 24px; display: flex; justify-content: space-between; gap: 20px; padding: 24px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a:hover { color: var(--text); }
@media (max-width: 860px) {
  .nav { display: none; }
  .hero, .game-shell, .info-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 42px; }
  .stats-panel { order: -1; }
  .footer { flex-direction: column; }
  h1 { font-size: 48px; }
}
