:root{--bg:#0b1020;--panel:#141b33;--line:#26305a;--accent:#a5b4fc;--accent2:#4f46e5}
.wrap{max-width:600px;margin:0 auto;padding:10px}
.players{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;margin-bottom:10px}
.pl{display:flex;align-items:center;gap:8px;background:var(--panel);border:2px solid var(--line);border-radius:14px;padding:6px 10px;min-width:0}
.pl.turn{border-color:#facc15;box-shadow:0 0 14px rgba(250,204,21,.45)}
.pl b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pl small{font-size:13px;color:var(--mute)}
#plW{flex-direction:row-reverse;text-align:right}
.st{width:26px;height:26px;border-radius:50%;flex:none;box-shadow:0 2px 4px rgba(0,0,0,.5)}
.vs{font-size:13px;color:var(--accent);font-weight:800;text-align:center;max-width:120px}
.board{width:100%;aspect-ratio:1;touch-action:manipulation;position:relative}
.board canvas{width:100%;height:100%;display:block;cursor:pointer}
.acts{display:flex;justify-content:center;gap:8px;margin-top:10px;flex-wrap:wrap}
.lvs,#colChips{justify-content:center}
.st{display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:900;font-size:18px;background:#0f172a}
.st.x{color:#ef4444}.st.x::before{content:"✕"}.st.o{color:#3b82f6}.st.o::before{content:"◯"}
.board{border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.55)}
