
:root {
  color-scheme: dark;
  --bg: #0e1418;
  --card: #152028;
  --line: #24404c;
  --text: #e5f4f8;
  --muted: #96b4c0;
  --accent: #5cdbff;
  --ink: #082028;
  --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; }
.next{margin:8px 0;color:var(--muted);} .swatch{display:inline-block;width:22px;height:22px;border-radius:50%;vertical-align:middle;margin-left:8px;} .grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;background:#071016;padding:8px;border-radius:16px;border:1px solid var(--line);} .cell{aspect-ratio:1;border-radius:8px;background:#122028;} .k1{background:#3ec6ff;} .k2{background:#ff5d8f;} .k3{background:#ffd15c;} .k4{background:#7dffa8;}
