:root{--bg: #f3f5fb;--bg-elevated: #ffffff;--text: #1f2937;--text-secondary: #6b7280;--border: #e4e8f0;--board-surface: #e8c68d;--board-line: #6b4f2a;--board-star: #5a4326;--board-shadow: rgba(91, 63, 24, .16);--header-bg: rgba(255, 255, 255, .82);--hover-bg: rgba(79, 70, 229, .07);--active-bg: rgba(79, 70, 229, .1);--active-border: rgba(79, 70, 229, .35)}:root[data-theme=dark]{--bg: #0a0f1d;--bg-elevated: #121a2b;--text: #e6ebf7;--text-secondary: #96a3bb;--border: #263249;--board-surface: #243043;--board-line: #5d6d85;--board-star: #9aa9c0;--board-shadow: rgba(0, 0, 0, .5);--header-bg: rgba(10, 15, 29, .82);--hover-bg: rgba(139, 147, 255, .08);--active-bg: rgba(139, 147, 255, .12);--active-border: rgba(139, 147, 255, .4)}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;transition:background-color .25s ease,color .25s ease}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 28px;background:var(--header-bg);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:44px;height:44px;border-radius:13px;background:linear-gradient(135deg,#6366f1,#a855f7);color:#fff;display:grid;place-items:center;font-size:22px;font-weight:700;box-shadow:0 10px 24px #6366f159;-webkit-user-select:none;user-select:none}.app-main{flex:1;width:100%;max-width:1480px;margin:0 auto;padding:22px 28px;display:grid;grid-template-columns:292px minmax(420px,1fr) 292px;gap:20px;align-items:start}.side-column{display:flex;flex-direction:column;gap:16px;min-width:0}.panel-card,.board-card{background:var(--bg-elevated)!important;border:1px solid var(--border)!important}.board-card{box-shadow:0 20px 50px var(--board-shadow)}.panel-divider{height:1px;background:var(--border);margin:2px 0}.board-wrap{width:100%;max-width:680px;margin:8px auto}.gomoku-board{width:100%;height:auto;display:block;filter:drop-shadow(0 12px 20px var(--board-shadow))}.board-surface{fill:var(--board-surface)}.board-grid-line line{stroke:var(--board-line);stroke-width:1;opacity:.72}.board-border{stroke:var(--board-line);stroke-width:1.6;opacity:.9}.board-star{fill:var(--board-star)}.player-bar{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:12px;border:1px solid transparent;transition:background .2s ease,border-color .2s ease}.player-bar.is-active{background:var(--active-bg);border-color:var(--active-border)}.stone-chip{width:20px;height:20px;border-radius:50%;flex:none;box-shadow:inset 0 -2px 4px #0000004d,0 2px 5px #00000040}.stone-black{background:radial-gradient(circle at 32% 26%,#6b7688,#0a1120 76%)}.stone-white{background:radial-gradient(circle at 32% 26%,#fff,#cbd5e1 82%)}.player-meta{flex:1;display:flex;flex-direction:column;line-height:1.35;min-width:0}.player-clock{font-variant-numeric:tabular-nums;font-size:21px;font-weight:650;letter-spacing:.03em}.player-clock.is-low,.player-clock.is-byo{color:#fb923c}.status-row{display:flex;align-items:center;justify-content:space-between;font-size:13px}.move-list{max-height:208px;overflow:auto;display:flex;flex-direction:column;gap:4px}.move-item{display:flex;align-items:center;gap:8px;padding:5px 9px;border-radius:8px;background:var(--hover-bg);font-size:12px}.move-item span:nth-child(2){flex:1;font-variant-numeric:tabular-nums}.move-dot{width:10px;height:10px;border-radius:50%;flex:none}.dot-black{background:#111827;border:1px solid #64748b}.dot-white{background:#fff;border:1px solid #94a3b8}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.room-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:26px;font-weight:500;letter-spacing:6px;text-align:center;padding:12px 0;border-radius:10px;border:1px dashed var(--border, rgba(128, 128, 128, .35));-webkit-user-select:all;user-select:all}.room-code-input input{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;letter-spacing:4px;text-align:center;text-transform:uppercase}.result-banner{margin-top:14px}.replay-layout{display:flex;gap:20px;align-items:flex-start}.replay-layout .gomoku-board{flex:0 0 58%;max-width:440px}.app-footer{text-align:center;padding:14px 20px;border-top:1px solid var(--border)}@media(max-width:1180px){.app-main{grid-template-columns:280px minmax(420px,1fr)}.side-column:last-child{grid-column:1 / -1;flex-direction:row}.side-column:last-child>*{flex:1}}@media(max-width:820px){.app-header{padding:12px 16px;flex-wrap:wrap}.app-main{grid-template-columns:1fr;padding:16px;gap:14px}.side-column:last-child{grid-column:auto;flex-direction:column}.replay-layout{flex-direction:column}.replay-layout .gomoku-board{flex:none;max-width:100%}}
