.strategy-host .classic-board{width:min(100%,950px);padding:12px}.strategy-scroll{box-sizing:border-box;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;overscroll-behavior-y:auto;scrollbar-width:thin;scrollbar-color:#5272aa #182449;margin:0 auto;border-radius:7px;background:#182449}.strategy-grid{display:grid;gap:0;margin:auto;width:max-content}.strategy-host .strategy-cell{position:relative;display:block;border-radius:0;background:transparent;box-shadow:none;min-width:44px;min-height:44px;padding:0;overflow:visible}.strategy-cell .strategy-piece{display:block;width:100%;height:100%;pointer-events:none}.strategy-host .strategy-cell:disabled{opacity:1;filter:none}.strategy-cell.is-last::after{content:'';position:absolute;width:7px;height:7px;left:calc(50% - 3px);top:calc(50% - 3px);border:2px solid #ff596d;border-radius:50%;pointer-events:none}.strategy-cell.is-hint{outline:3px solid #ffcf3f;outline-offset:-3px;z-index:2}.strategy-cell.is-selected{outline:3px solid #ffcf3f;outline-offset:-3px;z-index:1}.strategy-cell.is-legal{box-shadow:inset 0 0 0 3px #28c7ee!important}.gomoku-grid{grid-template-columns:repeat(15,44px);background:#52c58d;border:8px solid #198d69}.gomoku-cell{width:44px;height:44px;background-image:linear-gradient(90deg,transparent 49%,#195b5e 49%,#195b5e 52%,transparent 52%),linear-gradient(transparent 49%,#195b5e 49%,#195b5e 52%,transparent 52%)!important}.gomoku-cell .strategy-piece{position:relative;z-index:1}.gomoku-cell.is-last::after{z-index:2}.diamond-star{position:relative;width:620px;height:704px;margin:auto;background:#20365e}.diamond-lines{position:absolute;inset:0;width:620px;height:704px;pointer-events:none}.strategy-host .diamond-hole{position:absolute;width:44px;height:44px;border:1px solid #5272aa;border-radius:50%;background:#182449;box-shadow:inset 0 2px 5px #101d38}.diamond-hole.diamond-goal-0{background:#16415c;border-color:#28c7ee}.diamond-hole.diamond-goal-1{background:#4b4326;border-color:#ffcf3f}.diamond-hole.diamond-goal-2{background:#512a48;border-color:#ff596d}.diamond-hole .strategy-piece{position:absolute;inset:0;z-index:2}.diamond-king-goal{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;color:#a8e6ff;font-size:23px;z-index:1}.shogi-grid{grid-template-columns:repeat(9,48px);background:#d99c3a;border:6px solid #ad6c25}.strategy-host .shogi-cell{width:48px;height:51px;border-right:1px solid #925522;border-bottom:1px solid #925522;background:#f7cb62;aspect-ratio:auto}.shogi-cell .strategy-piece{position:absolute;inset:0;height:100%;width:100%}.shogi-piece-name{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding-bottom:2px;color:#19284b;font-size:24px;font-weight:900;line-height:1;pointer-events:none;letter-spacing:-1px;text-shadow:0 1px #fff5d255}.shogi-piece-name.is-opponent{transform:rotate(180deg)}.shogi-piece-name.is-promoted{color:#a4243f;font-size:21px}.shogi-opponent-hand{font-size:14px;line-height:1.6;margin:4px 0 10px;color:#a8e6ff;text-align:center}.shogi-hand{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;max-width:520px;margin:10px auto 0}.strategy-host .shogi-hand-piece{min-width:54px;min-height:44px;padding:7px 10px;color:#f8fbff;border:1px solid #5272aa;border-radius:6px;background:#263f6a;font-size:16px;line-height:1.4}.shogi-hand-piece:disabled{color:#8194b3;background:#182449}.shogi-hand-piece.is-selected{outline:3px solid #ffcf3f;outline-offset:-3px}.shogi-promotion{display:flex;justify-content:center;gap:10px;padding:12px;border:2px solid #ffcf3f;border-radius:8px;background:#20365e;margin-top:10px}.strategy-host .shogi-promotion button{min-height:44px;min-width:100px}.strategy-host .classic-rules-brief{margin:3px 0 10px}.strategy-host .classic-controls{gap:6px}.strategy-host .classic-history{margin:6px 0}
@media(max-width:680px){.strategy-host .classic-board{padding:8px}.strategy-host .classic-board-title{font-size:16px;margin-bottom:5px}.strategy-host .classic-rules-brief,.shogi-opponent-hand{font-size:14px;line-height:1.5}.shogi-hand{gap:4px}.strategy-host .shogi-hand-piece{min-width:54px;padding:6px;font-size:14px}.strategy-host .classic-controls{gap:5px}.strategy-host .classic-action{font-size:14px;padding:8px 10px}}

.strategy-scroll-hint{flex-basis:100%;margin:0;font-size:14px;line-height:1.5;color:#95eaff;text-align:center}
