#gomoku-app { max-width: 1210px; margin: 28px auto 56px; padding: 0 20px; color: #e9f2ee; font-family: Arial, "Microsoft YaHei", sans-serif; }
#gomoku-app * { box-sizing: border-box; }
.gomoku-intro { max-width: 880px; margin-bottom: 25px; }
.gomoku-eyebrow { margin: 0 0 7px; color: #8bd4af; font-size: 12px; font-weight: bold; letter-spacing: .16em; }
.gomoku-intro h1 { margin: 0 0 10px; color: #f7f3dd; font-size: clamp(28px, 4vw, 40px); }
.gomoku-intro p { line-height: 1.65; margin: 8px 0; }
.gomoku-truth { border-left: 3px solid #e7bd6b; background: #192723; padding: 10px 14px; font-size: 14px; }
.gomoku-layout { display: grid; grid-template-columns: minmax(440px, 680px) minmax(290px, 1fr); gap: 20px; align-items: start; }
.gomoku-board-card, .gomoku-card { background: #14231f; border: 1px solid #335246; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.gomoku-board-card { padding: 16px; }
.gomoku-board-head { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: bold; }
.gomoku-board-head span:last-child { color: #edce91; }
.gomoku-board-scroll { width: 100%; overflow-x: auto; }
.gomoku-board-frame { display: grid; grid-template-columns: 23px minmax(420px, 1fr); grid-template-rows: 22px auto; align-items: stretch; }
.gomoku-axis-top, .gomoku-axis-left { display: grid; color: #d7d5bd; font-size: 11px; text-align: center; }
.gomoku-axis-top { grid-template-columns: repeat(15, 1fr); padding: 0 13px; }
.gomoku-axis-left { grid-template-rows: repeat(15, 1fr); padding: 13px 0; }
.gomoku-axis-top span, .gomoku-axis-left span { display: flex; align-items: center; justify-content: center; }
.gomoku-board { display: grid; grid-template-columns: repeat(15, 1fr); width: 100%; aspect-ratio: 1; border: 2px solid #a37a42; background: #d5ab70; padding: 13px; box-shadow: inset 0 0 22px rgba(83,48,16,.25); }
.gomoku-cell { position: relative; min-width: 0; padding: 0; border: 0; border-radius: 0; background: linear-gradient(to right, transparent calc(50% - .5px), #8d653c calc(50% - .5px), #8d653c calc(50% + .5px), transparent calc(50% + .5px)), linear-gradient(to bottom, transparent calc(50% - .5px), #8d653c calc(50% - .5px), #8d653c calc(50% + .5px), transparent calc(50% + .5px)); cursor: crosshair; }
.gomoku-cell:disabled { cursor: default; opacity: 1; }
.gomoku-cell:not(:disabled):hover { background-color: rgba(255,255,255,.38); }
.gomoku-cell::after { content: ""; position: absolute; z-index: 1; width: 76%; height: 76%; left: 12%; top: 12%; border-radius: 50%; pointer-events: none; }
.gomoku-cell.black::after { background: radial-gradient(circle at 35% 30%, #575e5b, #131a17 68%); box-shadow: 1px 2px 3px #644720; }
.gomoku-cell.white::after { background: radial-gradient(circle at 35% 30%, #fff, #e2e0d5 72%); box-shadow: 1px 2px 3px #644720; }
.gomoku-cell.last::before { content: ""; position: absolute; z-index: 2; left: 43%; top: 43%; width: 14%; height: 14%; border-radius: 50%; background: #efad4d; pointer-events: none; }
.gomoku-cell.suggested { outline: 3px solid #169b60; outline-offset: -3px; }
.gomoku-cell:focus-visible { outline: 3px solid #1478a2; outline-offset: -3px; z-index: 3; }
.gomoku-status { margin: 12px 2px 0; font-weight: bold; color: #f2d494; }
.gomoku-panel { display: grid; gap: 15px; }
.gomoku-card { padding: 18px; }
.gomoku-card h2 { margin: 0 0 12px; color: #f7f3dd; font-size: 18px; }
.gomoku-card p { line-height: 1.6; }
.gomoku-muted { color: #b6c8c0; font-size: 13px; }
.gomoku-field { display: grid; gap: 6px; }
.gomoku-field label { font-weight: bold; }
#gomoku-app select, #gomoku-app button:not(.gomoku-cell) { min-height: 38px; border-radius: 7px; font: inherit; }
#gomoku-app select { width: 100%; padding: 6px 9px; background: #213b32; color: #f4f9f5; border: 1px solid #507363; }
.gomoku-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#gomoku-app button:not(.gomoku-cell) { padding: 7px 11px; color: #e8f7ee; background: #285442; border: 1px solid #4f8568; cursor: pointer; }
#gomoku-app button:not(.gomoku-cell):hover { background: #346c52; }
#gomoku-app button:not(.gomoku-cell):disabled { opacity: .48; cursor: default; }
#gomoku-app button.gomoku-primary { background: #bd8542; border-color: #edc27c; color: #181b17; font-weight: bold; }
#gomoku-app button.gomoku-primary:hover { background: #d39a50; }
.gomoku-proof-result { margin-top: 12px; padding: 12px; border-radius: 7px; background: #23342c; line-height: 1.6; }
.gomoku-proof-result.proven { border: 1px solid #59bb7e; color: #c9f4d5; }
.gomoku-proof-result.unknown { border: 1px solid #b78e59; color: #f1deb7; }
.gomoku-history { max-height: 125px; overflow: auto; overflow-wrap: anywhere; color: #d9e3da; }
.gomoku-source { margin-top: 20px; color: #bacbc2; font-size: 13px; line-height: 1.6; }
@media (max-width: 900px) { .gomoku-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { #gomoku-app { padding: 0 12px; margin-top: 18px; } .gomoku-board-card { padding: 10px; } .gomoku-board-frame { grid-template-columns: 20px minmax(390px, 1fr); } .gomoku-board { padding: 10px; } .gomoku-axis-top { padding: 0 10px; } .gomoku-axis-left { padding: 10px 0; } }
