
:root {
  color-scheme: dark;
  --bg: #160e12;
  --card: #28141c;
  --line: #4c2838;
  --text: #f8e8ee;
  --muted: #c8a8b4;
  --accent: #ff7ad1;
  --ink: #280818;
  --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; }
canvas{width:100%;height:460px;background:#12080c;border-radius:18px;border:1px solid var(--line);touch-action:manipulation;display:block;}
