
:root {
  color-scheme: dark;
  --bg: #10141c;
  --card: #1a2230;
  --line: #2c3c58;
  --text: #e7eef8;
  --muted: #9aabc4;
  --accent: #7eb6ff;
  --ink: #101820;
  --alert: #ff5a3c;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: "Segoe UI", Roboto, sans-serif; }
body { max-width: 480px; margin: 0 auto; padding: 12px 14px calc(18px + env(safe-area-inset-bottom)); }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
h1 { margin: 0; font-size: 1.5rem; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.coins { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
button, .apk { min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 750; font-size: 1rem; width: 100%; }
button.primary, .apk { background: var(--accent); color: var(--ink); border-color: var(--accent); }
button:disabled { opacity: 0.4; }
a.apk { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 8px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.banner { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--accent); border-radius: 14px; padding: 10px; margin: 12px 0; }
.banner p { margin: 0; flex: 1; font-size: 0.92rem; }
.banner button { width: auto; min-height: 40px; padding: 0 12px; }
.hidden { display: none !important; }
#msg { min-height: 2.6em; font-weight: 700; line-height: 1.3; }
.fine { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
footer { margin-top: 16px; }
.die{font-size:3.2rem;font-weight:800;text-align:center;letter-spacing:0.04em;margin:6px 0;} .track{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0 12px;} .cell{width:26px;height:26px;border-radius:7px;background:#182030;position:relative;} .cell.goal{outline:1px dashed var(--accent);} .cell.you::after,.cell.cpu::after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;top:8px;} .cell.you::after{background:var(--accent);left:3px;} .cell.cpu::after{background:#ffb020;right:3px;} .cell.fence{background:#ff5a3c;}
