* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; background:#0f172a; color:#e2e8f0; min-height:100vh; }
#app { max-width:560px; margin:0 auto; padding:20px 16px 40px; }
header { text-align:center; margin-bottom:18px; }
header h1 { font-size:26px; color:#fff; letter-spacing:1px; }
header .sub { font-size:13px; color:#8fa7c4; margin-top:6px; }
.card { background:#1e293b; border-radius:14px; padding:20px 18px; border:1px solid #334155; }
label { display:block; font-size:13px; color:#94a3b8; margin-bottom:8px; }
input[type=text] { width:100%; padding:12px 14px; font-size:16px; color:#fff; background:#0f172a; border:1px solid #334155; border-radius:10px; outline:none; }
input[type=text]:focus { border-color:#3b82f6; }
.btn-row { display:flex; gap:10px; margin-top:14px; }
button { flex:1; padding:12px 10px; font-size:15px; border-radius:10px; cursor:pointer; border:1px solid #334155; background:#334155; color:#e2e8f0; }
button.primary { background:#3b82f6; border-color:#3b82f6; color:#fff; font-weight:600; }
button:hover { filter:brightness(1.12); }
.hint { font-size:12px; color:#64748b; margin-top:12px; text-align:center; }
#playersStrip { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.chip { background:#1e293b; border:1px solid #334155; border-radius:10px; padding:6px 10px; font-size:13px; display:flex; align-items:center; gap:6px; }
.chip .cnt { color:#fbbf24; font-weight:600; }
.chip.active { border-color:#fbbf24; box-shadow:0 0 0 1px #fbbf24; }
.dot { width:12px; height:12px; border-radius:50%; }
.dot.c1{background:#e11d48;} .dot.c2{background:#38bdf8;} .dot.c3{background:#a3e635;} .dot.c4{background:#fbbf24;} .dot.c5{background:#c084fc;} .dot.c6{background:#f472b6;} .dot.c7{background:#94a3b8;}
.info { text-align:center; font-size:13px; color:#8fa7c4; margin:6px 0 12px; }
#pots { display:flex; gap:10px; margin-bottom:12px; }
.pot { flex:1; background:#1e293b; border:1px solid #334155; border-radius:12px; padding:10px 8px; text-align:center; position:relative; }
.pot .potname { font-size:13px; margin-bottom:6px; font-weight:700; }
.pot.R .potname { color:#f87171; } .pot.B .potname { color:#60a5fa; } .pot.P .potname { color:#c084fc; }
.pot .sum { font-size:15px; color:#fbbf24; font-weight:700; }
.pot .full { color:#ef4444; font-size:11px; }
.potnums { display:flex; gap:4px; flex-wrap:wrap; justify-content:center; margin-top:6px; }
.smallcard { width:26px; height:34px; border-radius:5px; background:#f8fafc; color:#0f172a; font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.smallcard.R{color:#dc2626;} .smallcard.B{color:#2563eb;} .smallcard.P{color:#7c3aed;} .smallcard.K{background:#1f2937; color:#ef4444;}
.section-title { font-size:13px; color:#94a3b8; margin:12px 0 8px; }
#hand { display:flex; gap:6px; flex-wrap:wrap; min-height:56px; }
.hcard { width:42px; height:58px; border-radius:7px; background:#f8fafc; color:#0f172a; font-size:18px; font-weight:700; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.hcard.R{color:#dc2626;} .hcard.B{color:#2563eb;} .hcard.P{color:#7c3aed;} .hcard.K{background:#1f2937; color:#ef4444;}
#potPicker { background:#1e293b; border:1px solid #fbbf24; border-radius:12px; padding:12px; margin:10px 0; text-align:center; display:none; }
#potPicker .actions { justify-content:center; }
#drankRow { display:flex; gap:5px; flex-wrap:wrap; min-height:40px; }
.drankcard { width:28px; height:36px; border-radius:5px; background:#f8fafc; color:#0f172a; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.drankcard.R{color:#dc2626;} .drankcard.B{color:#2563eb;} .drankcard.P{color:#7c3aed;} .drankcard.K{background:#1f2937; color:#ef4444;}
#toast { position:fixed; left:50%; bottom:30px; transform:translateX(-50%); background:rgba(15,23,42,.92); border:1px solid #334155; color:#fff; padding:10px 18px; border-radius:10px; font-size:14px; display:none; z-index:60; }
#toast.show { display:block; }
.modal { position:fixed; inset:0; background:rgba(2,6,23,.7); display:flex; align-items:center; justify-content:center; z-index:50; }
.modal-card { background:#1e293b; border:1px solid #334155; border-radius:14px; padding:26px 24px; max-width:340px; width:90%; text-align:center; }
.modal-card h2 { color:#fff; margin-bottom:10px; }
.modal-card p { color:#94a3b8; font-size:14px; margin-bottom:8px; }
.actions { display:flex; gap:10px; margin-top:12px; }