:root { font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif; color: #f4f4f7; background: #10131b; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% -10%, #282e43 0, #151923 42%, #0e1118 100%); }
button { font: inherit; }
.app { width: min(100% - 32px, 580px); margin: 0 auto; padding: 50px 0 64px; }
.intro { text-align: center; margin-bottom: 30px; }
.eyebrow { margin: 0 0 9px; color: #fa747a; font-size: 12px; letter-spacing: .23em; font-weight: 700; }
h1 { margin: 0; font-size: clamp(48px, 9vw, 72px); line-height: 1.1; font-weight: 800; letter-spacing: -.07em; }
.title-dot { color: #f16a72; }
.subtitle { color: #a8acb8; margin: 12px 0 0; font-size: 15px; }
.game-panel { background: #1c202c; border: 1px solid #34394c; box-shadow: 0 20px 60px #05070d80; border-radius: 24px; padding: 20px 22px 24px; }
.game-settings { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 14px; margin-bottom: 9px; border-bottom: 1px solid #34394c; }
.mode-options { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: #2a3040; }
.choice, .color-choice { min-height: 34px; padding: 6px 12px; border: 0; border-radius: 8px; color: #bdc3d0; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.choice.active, .color-choice.active { color: #20272a; background: #e8e9df; box-shadow: 0 2px 5px #0002; }
.color-options { display: flex; align-items: center; gap: 4px; color: #a8acb8; font-size: 12px; }
.color-choice { display: inline-flex; align-items: center; gap: 5px; padding-inline: 8px; }
.mini-stone { display: inline-block; width: 16px; height: 16px; flex: none; border-radius: 50%; }
.mini-stone.black { background: radial-gradient(circle at 32% 24%, #565b53, #252d27 70%); border: 1px solid #273028; }
.mini-stone.white { background: radial-gradient(circle at 30% 24%, #fffffd, #eeeade 75%); border: 1px solid #d4d1c5; }
.players { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.player { display: flex; align-items: center; gap: 8px; color: #9499aa; font-weight: 700; padding: 8px 6px; border-radius: 12px; white-space: nowrap; }
.player:last-child { justify-content: flex-end; }
.player.active { color: #f4f4f7; }
.player small { display: block; font-size: 10px; font-weight: 500; color: #848a9b; }
.player-stone { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.player.black .player-stone { background: radial-gradient(circle at 32% 24%, #565b53, #252d27 70%); border: 1px solid #273028; box-shadow: 0 2px 4px #25372c40; }
.player.white .player-stone { background: radial-gradient(circle at 30% 24%, #fffffd, #eeeade 75%); border: 1px solid #d4d1c5; box-shadow: 0 2px 4px #25372c40; }
.turn-mark { padding: 8px 12px; border-radius: 100px; background: #2a3143; color: #9ab1ce; font-size: 12px; font-weight: 700; white-space: nowrap; }
.turn-mark.black { color: #f3f3f2; background: #3b3f49; }
.turn-mark.white { color: #fff; background: #626875; }
.board-wrap { padding: 16px 0 4px; }
.board { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin: 0 auto; border: 1px solid #d1af7e; border-radius: 17px; background: repeating-linear-gradient(3deg, transparent 0 11px, #c59e6810 12px, transparent 13px 25px), radial-gradient(ellipse at 25% 20%, #f3dbb6c0, transparent 67%), linear-gradient(135deg, #e9cca1, #dfbd88); box-shadow: inset 0 1px 2px #ffefcf, 0 6px 12px #70471610; isolation: isolate; }
.board-lines { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.board-outline { fill: none; stroke: #ac885145; stroke-width: .8; }
.line { fill: none; stroke: #897041; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.board-intersections { fill: #8b7147; }
.point { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 18%; aspect-ratio: 1; min-width: 44px; min-height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; touch-action: manipulation; }
.point::after { content: ''; display: none; width: 72%; height: 72%; border-radius: 50%; transition: filter .15s, transform .15s; }
.point.black::after { display: block; background: radial-gradient(ellipse at 34% 24%, #596157 0%, #424a40 21%, #272f27 58%, #1d251d 91%); box-shadow: inset 0 1px 2px #9aaf8c42, inset 0 -3px 5px #0008, 0 4px 5px #3f2b1d50, 0 1px 1px #382b2360; border: 1px solid #252e24; }
.point.white::after { display: block; background: radial-gradient(ellipse at 34% 22%, #fffffb 0%, #fffdf4 27%, #eeead9 75%, #d2c8aa 100%); box-shadow: inset 0 1px 2px #ffffff, inset 0 -2px 3px #baac882d, 0 4px 5px #5b432b3d, 0 1px 1px #6a51332b; border: 1px solid #eee8d8; }
.point.movable:hover::after, .point.movable:focus-visible::after { transform: translateY(-2px); filter: brightness(1.04); }
.point.selected::before { content: ''; position: absolute; inset: 5%; border: 2px solid #476f49; border-radius: 50%; box-shadow: 0 0 0 3px #f8e5bb72; }
.point.selected::after { transform: translateY(-2px); filter: brightness(1.04); }
.point.target::after { display: block; width: 15%; height: 15%; min-width: 9px; min-height: 9px; background: #597f4b; box-shadow: 0 0 0 7px #6b8c4d20; }
.point.target:hover::after { background: #39613c; box-shadow: 0 0 0 10px #6b8c4d28; }
.point.last-move:not(.selected)::before { content: ''; position: absolute; inset: 7%; border: 1.5px solid #56774c75; border-radius: 50%; }
.point:focus-visible { outline: 3px solid #98bda2; outline-offset: -2px; }
.board.finished .point { cursor: default; }
.status { min-height: 46px; display: grid; place-items: center; margin: 10px 0 12px; color: #d6d9e2; font-size: 14px; text-align: center; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.action { border: 0; min-height: 44px; border-radius: 11px; font-weight: 700; cursor: pointer; }
.action.secondary { background: #303646; color: #e1e4ed; }
.action.primary { background: #ee6971; color: #171923; }
.action:hover:not(:disabled) { filter: brightness(1.12); }
.action:disabled { cursor: not-allowed; opacity: .42; }
.history { margin-top: 20px; padding: 18px 22px; border: 1px solid #303546; border-radius: 18px; background: #1b202bd4; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.history-heading span { color: #939bab; font-size: 12px; }
.history-empty { color: #858b9a; font-size: 12px; margin: 13px 0 0; }
.move-list { list-style: none; padding: 0; margin: 12px 0 0; max-height: 200px; overflow-y: auto; display: grid; gap: 6px; }
.move-item { padding: 9px 11px; border-radius: 8px; background: #272d3b; color: #dce0e7; font-size: 12px; }
.move-item.black { border-left: 3px solid #9baba5; }
.move-item.white { border-left: 3px solid #f3f1e5; }
.rules { margin-top: 20px; padding: 20px 24px 22px; border: 1px solid #303546; border-radius: 18px; background: #1b202bd4; }
.rules-header { display: flex; align-items: center; gap: 8px; }
.rules-icon { color: #fa858a; font-size: 21px; }
h2 { margin: 0; font-size: 17px; }
.rules ol { padding-left: 23px; margin: 14px 0 0; color: #bdc1cd; font-size: 13px; line-height: 1.95; }
.rules li { padding-left: 3px; }
.rules strong { color: #f2f3f7; }
.rule-note { margin: 12px 0 0; color: #858b9a; font-size: 12px; line-height: 1.7; }
@media (max-width: 480px) { .app { padding-top: 30px; } .game-panel { padding: 14px 12px 18px; } .board-wrap { padding-top: 12px; } .player { font-size: 13px; gap: 5px; } .player small { font-size: 9px; } .turn-mark { font-size: 11px; padding: 7px 8px; } .game-settings { justify-content: center; } .history, .rules { padding: 17px 18px; } }
