/* Gomoku AI — 深色科技感界面 */
:root { --bg:#0f1420; --panel:#1a2233; --panel2:#222c42; --text:#e8ecf4; --muted:#9aa8c0; --accent:#6ea8ff; --accent2:#ffd166; --danger:#ff5a5a; --ok:#3ddc84; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
header { padding: 18px 24px 12px; border-bottom:1px solid #2a3550; }
header h1 { margin:0; font-size:26px; letter-spacing:.5px; }
header p { margin:6px 0 0; color:var(--muted); font-size:14px; }
main { display:flex; gap:18px; padding:18px 24px; align-items:flex-start; flex-wrap:wrap; }
.board-wrap { flex: 0 1 680px; background: var(--panel); border-radius:14px; padding:16px; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
#boardCanvas { width:100%; height:auto; aspect-ratio:1/1; border-radius:10px; cursor:pointer; display:block; }
.board-note { color:var(--muted); font-size:12px; margin-top:8px; }
.side { flex: 1 1 340px; display:flex; flex-direction:column; gap:14px; min-width:300px; }
.panel { background:var(--panel); border-radius:14px; padding:14px 16px; }
.panel h2 { margin:0 0 10px; font-size:16px; }
.panel h3 { margin:12px 0 6px; font-size:14px; color:var(--accent2); }
label { display:block; font-size:13px; margin:8px 0 4px; color:var(--muted); }
select, input[type="number"], input[type="text"] { width:100%; padding:8px 10px; border-radius:8px; border:1px solid #33405e; background:#0f1626; color:var(--text); font-size:14px; }
.check { display:flex; align-items:center; gap:8px; margin:6px 0; font-size:13px; color:var(--text); }
.check input { width:auto; }
button { padding:9px 14px; border:0; border-radius:9px; background:var(--accent); color:#fff; font-weight:600; cursor:pointer; font-size:14px; }
button:hover { filter:brightness(1.1); }
button.secondary { background:#33405e; }
button.danger { background:var(--danger); }
.btn-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.status { font-size:14px; line-height:1.6; }
.status b { color:var(--accent2); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size:12.5px; white-space:pre-wrap; word-break:break-word; background:#0f1626; border-radius:8px; padding:10px; max-height:280px; overflow:auto; }
#historyList { list-style:none; margin:0; padding:0; max-height:220px; overflow:auto; font-size:13px; line-height:1.8; }
#historyList li { border-bottom:1px solid #2a3550; padding:0 4px; }
footer { padding: 0 24px 24px; }
footer .panel { margin-top:14px; }
.msg { color:var(--accent2); min-height:20px; font-size:13px; }
@media (max-width: 900px) { main { flex-direction:column; } .board-wrap { flex-basis:auto; width:100%; } }
