:root { --bg:#0b1220; --card:#16233c; --line:#24344f; --text:#e8eefc; --muted:#8fa3c4; --accent:#e11d48; --gold:#f5b942; --green:#34d399; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(1200px 700px at 20% -10%, #1b2a47, var(--bg) 60%) fixed; color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.page { max-width: 1080px; margin: 0 auto; padding: 20px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)), var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 14px; color: var(--muted); letter-spacing: 2px; margin: 0 0 12px; font-weight: 700; }
.kicker { font-size: 11px; letter-spacing: .28em; color: var(--accent); font-weight: 700; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
input, textarea, select { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: #101c31; color: var(--text); font: inherit; }
textarea { min-height: 90px; resize: vertical; }
label.field { display: block; margin-bottom: 10px; }
label.field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.btn { border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; font-size: 15px; cursor: pointer;
  background: #1e2f4d; color: #fff; border: 1px solid var(--line); }
.btn.primary { background: linear-gradient(180deg, #ff5b78, var(--accent)); border: 0; }
.btn.gold { background: linear-gradient(180deg, #ffd479, #f59e0b); color: #2a1a00; border: 0; }
.btn:disabled { filter: grayscale(.6) brightness(.7); cursor: not-allowed; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #22314d; color: var(--muted); font-size: 12px; }
.badge.live { background: rgba(52,211,153,.15); color: var(--green); }
.badge.warn { background: rgba(245,185,66,.15); color: var(--gold); }
.bar-row { margin-bottom: 12px; }
.bar-head { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.bar-track { height: 26px; border-radius: 8px; background: #101c31; overflow: hidden; border: 1px solid #22314d; }
.bar-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #fb7185); transition: width .5s; }
.bar-row.win .bar-track i { background: linear-gradient(90deg, #f59e0b, var(--gold)); }
.opt-btn { display: block; width: 100%; text-align: left; padding: 16px 18px; margin-bottom: 10px; border-radius: 12px;
  border: 2px solid var(--line); background: #101c31; color: var(--text); font-size: 17px; cursor: pointer; }
.opt-btn:active { transform: scale(.99); }
.opt-btn.sel { border-color: var(--accent); background: rgba(225,29,72,.12); }
.timer { font-size: 42px; font-weight: 900; font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.hero { font-size: 54px; font-weight: 900; line-height: 1.15; }
.qr { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; }
.qr svg { display: block; width: 180px; height: 180px; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: #22314d;
  padding: 12px 20px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.mono { font-variant-numeric: tabular-nums; }
