:root { --bg:#101826; --card:#1b2638; --ink:#eef2f8; --mute:#9fb0c8; --accent:#ffb703; --ok:#2ec4b6; --bad:#ef476f; --mark:#ef476f; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.4 system-ui, sans-serif; background:var(--bg); color:var(--ink); }
.notice { background:#3a2a00; color:#ffd166; font-size:13px; padding:6px 12px; text-align:center; }
main { max-width:760px; margin:0 auto; padding:12px; }
h1,h2,h3 { margin:.4em 0; }
.card { background:var(--card); border-radius:12px; padding:14px; margin:12px 0; }
.row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.spread { justify-content:space-between; }
input, select, button { font:inherit; padding:10px 12px; border-radius:8px; border:1px solid #33435e; background:#0e1522; color:var(--ink); }
button { background:var(--accent); color:#1a1200; border:0; font-weight:700; cursor:pointer; }
button.secondary { background:#2a3a55; color:var(--ink); }
button.danger { background:var(--bad); color:#fff; }
button:disabled { opacity:.5; cursor:default; }
.tabs { display:flex; gap:6px; overflow-x:auto; }
.tabs button { background:#2a3a55; color:var(--ink); }
.tabs button.on { background:var(--accent); color:#1a1200; }
.balance { font-weight:800; color:var(--accent); }
.mute { color:var(--mute); }
.err { color:var(--bad); min-height:1.2em; }
.bingo-card { display:grid; grid-template-columns:repeat(5,1fr); gap:4px; margin:8px 0; max-width:340px; }
.bingo-card .h { text-align:center; font-weight:800; color:var(--accent); }
.bingo-card .c { aspect-ratio:1; display:flex; align-items:center; justify-content:center; background:#0e1522; border-radius:8px; font-weight:700; font-size:18px; }
.bingo-card .c.m { background:var(--mark); color:#fff; }
.bingo-card .c.f { background:var(--ok); color:#06201d; font-size:12px; }
.ball { display:inline-flex; align-items:center; justify-content:center; width:84px; height:84px; border-radius:50%; background:#fff; color:#111; font-weight:900; font-size:26px; border:6px solid var(--accent); }
.drawn { display:flex; flex-wrap:wrap; gap:4px; margin-top:8px; }
.drawn > span:not(.bball) { background:#0e1522; border-radius:6px; padding:2px 6px; font-size:13px; }
table { width:100%; border-collapse:collapse; }
td, th { padding:6px 4px; text-align:left; border-bottom:1px solid #2a3a55; }
.pos { color:var(--ok); } .neg { color:var(--bad); }
.toast { position:fixed; bottom:16px; left:50%; transform:translateX(-50%); background:#fff; color:#111; padding:10px 16px; border-radius:10px; font-weight:700; }

.tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.tile { background:var(--card); color:var(--ink); border-radius:14px; padding:14px 10px; text-align:center; font-weight:700; }
.tile .ti { font-size:38px; } .small { font-size:12px; font-weight:400; }
details { margin:8px 0; } summary { cursor:pointer; color:var(--accent); }
.reels { display:flex; gap:8px; justify-content:center; margin:12px 0; }
.reel { width:90px; height:90px; display:flex; align-items:center; justify-content:center; font-size:40px; font-weight:900; background:#fff; color:#111; border-radius:12px; border:4px solid var(--accent); }
.big { font-size:22px; font-weight:800; text-align:center; min-height:1.5em; margin:8px 0; }
.wheelbox { position:relative; width:300px; height:300px; margin:12px auto; }
.wheelbox canvas { width:300px; height:300px; transition:transform 4.2s cubic-bezier(.1,.7,.1,1); }
.pointer { position:absolute; top:-10px; left:50%; transform:translateX(-50%); width:0; height:0; border-left:12px solid transparent; border-right:12px solid transparent; border-top:26px solid var(--accent); z-index:2; }
.board { display:grid; grid-template-columns:repeat(3,1fr); gap:3px; max-width:300px; margin:8px 0; }
.board button, .outside button { padding:8px 4px; font-size:14px; }
.rd { background:#c1121f !important; color:#fff !important; } .bk { background:#222 !important; color:#fff !important; } .gn { background:#2a9d8f !important; color:#fff !important; }
.outside { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; max-width:420px; margin:8px 0; }
.dice { display:flex; gap:12px; justify-content:center; margin:12px 0; }
.die { width:64px; height:64px; background:#fff; color:#111; border-radius:12px; font-size:34px; font-weight:900; display:flex; align-items:center; justify-content:center; }
.puck { display:inline-block; padding:4px 12px; border-radius:20px; font-weight:800; background:#2a3a55; } .puck.on { background:#fff; color:#111; }
.hint { background:#14304a; border-left:4px solid var(--ok); padding:8px 12px; border-radius:8px; margin:8px 0; }
.scratch-grid { display:grid; grid-template-columns:repeat(3,90px); gap:6px; justify-content:center; margin:12px 0; }
.sc { height:90px; font-size:38px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:#9aa5b1; color:#9aa5b1; cursor:pointer; user-select:none; }
.sc.open { background:#fff; color:#111; } .sc.hit { outline:4px solid var(--ok); }
.opt { display:block; width:100%; text-align:left; margin:6px 0; background:#2a3a55; color:var(--ink); }
.opt.right { background:var(--ok); color:#06201d; } .opt.wrong { background:var(--bad); color:#fff; }

/* Password show/hide eye */
.pw-wrap { position:relative; display:inline-flex; align-items:center; }
.pw-wrap input { padding-right:42px; width:100%; }
.pw-eye { position:absolute; right:4px; top:50%; transform:translateY(-50%); background:transparent; border:0; padding:4px 8px; cursor:pointer; opacity:.6; line-height:1; }
.pw-eye:hover, .pw-eye.on { opacity:1; }
