/* shogi (P0313) - board kit shared by the B90 chess-family pages */
.bk-tool .controls label { font-weight: bold; margin-right: 4px; }
.bk-board { max-width: 480px; border: 4px solid #24334B; border-radius: 8px; line-height: 0; overflow: hidden; user-select: none; }
.bk-board:after { content: ""; display: table; clear: both; }
.bk-sq { float: left; height: 0; margin: 0; border: 0; padding: 0; position: relative; box-sizing: border-box; font: inherit; cursor: pointer; background: transparent; }
.bk-c8 .bk-sq { width: 12.5%; padding-bottom: 12.5%; }
.bk-c9 .bk-sq { width: 11.111%; padding-bottom: 11.111%; }
.bk-sq:focus { outline: 3px solid #8A5A1F; outline-offset: -3px; z-index: 2; }
.bk-sq > span { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; line-height: 1; z-index: 1; }
.bk-lt { background: #E5E0D5; } .bk-dk { background: #8C9A6F; }
.bk-sel { box-shadow: inset 0 0 0 4px #8A5A1F; }
.bk-last { background-image: linear-gradient(rgba(195,139,74,.35), rgba(195,139,74,.35)); }
.bk-check { box-shadow: inset 0 0 0 4px #A3271F; }
.bk-to:after { content: ""; position: absolute; left: 38%; top: 38%; width: 24%; height: 24%; border-radius: 50%; background: rgba(36,51,75,.55); z-index: 2; }
.bk-hit:after { content: ""; position: absolute; left: 4%; top: 4%; width: 92%; height: 92%; box-sizing: border-box; border-radius: 50%; border: 4px solid rgba(36,51,75,.6); z-index: 2; }
.bk-pc { font-size: 2.5em; font-family: 'Segoe UI Symbol', 'DejaVu Sans', 'Noto Sans Symbols2', sans-serif; }
.bk-w { color: #FFFFFF; text-shadow: -1px -1px 0 #24334B, 1px -1px 0 #24334B, -1px 1px 0 #24334B, 1px 1px 0 #24334B, 0 0 2px #24334B; }
.bk-b { color: #1A2333; }
.bk-actions { min-height: 10px; }
.bk-actions .bk-btn, .bk-hand .bk-btn { min-height: 44px; padding: 0 14px; border: 2px solid #24334B; border-radius: 10px; background: #24334B; color: #FFFFFF; font: inherit; font-weight: bold; cursor: pointer; margin: 0 6px 6px 0; }
.bk-ghost { background: #FFFFFF !important; color: #24334B !important; }
.bk-cap { font-weight: bold; margin: 10px 0 2px; }
.bk-moves { font-variant-numeric: tabular-nums; color: #4A5568; word-spacing: 2px; }
.bk-fenrow button { min-height: 44px; padding: 0 14px; border: 2px solid #24334B; border-radius: 10px; background: #FFFFFF; color: #24334B; font: inherit; font-weight: bold; cursor: pointer; }
.bk-fenrow input { width: 100%; max-width: 480px; min-height: 44px; padding: 0 8px; border: 2px solid #8C96A6; border-radius: 10px; font: inherit; font-size: .9em; box-sizing: border-box; margin: 4px 0; }
/* xiangqi: points where lines cross */
.bk-pt { background: #F2E3C6; }
.bk-pt:before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #5C4630; }
.bk-pt { background-image: linear-gradient(#5C4630, #5C4630); background-size: 2px 100%; background-position: center; background-repeat: no-repeat; }
.bk-pt.bk-el:before { left: 50%; } .bk-pt.bk-er:before { right: 50%; }
.bk-pt.bk-et { background-size: 2px 50%; background-position: center bottom; } .bk-pt.bk-eb { background-size: 2px 50%; background-position: center top; }
.bk-pt.bk-rv1 { background-size: 2px 50%; background-position: center top; } .bk-pt.bk-rv2 { background-size: 2px 50%; background-position: center bottom; }
.bk-pt.bk-palace { background-color: #E8D2A6; }
.bk-pt.bk-sel { box-shadow: inset 0 0 0 4px #8A5A1F; }
.bk-disc { box-sizing: border-box; left: 8% !important; top: 8% !important; width: 84% !important; height: 84% !important; border-radius: 50%; background: #FBF1E4; border: 3px solid; font-size: 1.5em; font-weight: bold; }
.bk-xr { color: #A3271F; border-color: #A3271F; } .bk-xb { color: #1A2333; border-color: #1A2333; }
/* shogi */
.bk-sh { background: #EBCB8B; border-right: 1px solid #7A5C2E; border-bottom: 1px solid #7A5C2E; }
.bk-koma { font-size: 1.55em; font-weight: bold; color: #1A2333; }
.bk-koma.bk-up { transform: rotate(180deg); }
.bk-koma.bk-prom { color: #A3271F; }
.bk-hand { min-height: 46px; margin: 6px 0; }
.bk-handpc { display: inline-block; padding: 4px 10px; margin: 0 6px 6px 0; border: 2px solid #8C96A6; border-radius: 10px; font-weight: bold; }
@media (max-width: 480px) {
  .bk-pc { font-size: 1.9em; }
  .bk-disc { font-size: 1.1em; border-width: 2px; }
  .bk-koma { font-size: 1.2em; }
}
