/* tic-tac-toe (P0316) - 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; }
.bk-ttt { background: #FFFFFF; border-right: 2px solid #24334B; border-bottom: 2px solid #24334B; }
.bk-c3 .bk-sq { width: 33.333%; padding-bottom: 33.333%; } .bk-c4 .bk-sq { width: 25%; padding-bottom: 25%; } .bk-c5 .bk-sq { width: 20%; padding-bottom: 20%; }
.bk-tic-tac-toe { max-width: 360px; }
.bk-x, .bk-o { font-weight: bold; font-size: 2.6em; font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; }
.bk-c4 .bk-x, .bk-c4 .bk-o { font-size: 2em; } .bk-c5 .bk-x, .bk-c5 .bk-o, .bk-ult .bk-x, .bk-ult .bk-o { font-size: 1.5em; }
.bk-x { color: #24334B; } .bk-o { color: #8A5A1F; }
.bk-win { background: #FBF1E4; box-shadow: inset 0 0 0 4px #8A5A1F; }
.bk-ult { background: #FFFFFF; border-right: 1px solid #C9D1DB; border-bottom: 1px solid #C9D1DB; }
.bk-ult.bk-gr { border-right: 4px solid #24334B; } .bk-ult.bk-gb { border-bottom: 4px solid #24334B; }
.bk-ult.bk-open { background: #EEF4F3; }
.bk-ult.bk-wonx { background: #DCE3EE; } .bk-ult.bk-wono { background: #F6E2D2; } .bk-ult.bk-full { background: #EFEBE3; }
.bk-ult.bk-last { box-shadow: inset 0 0 0 3px #8A5A1F; }
.bk-moves { font-weight: bold; }
@media (max-width: 480px) { .bk-x, .bk-o { font-size: 2em; } .bk-ult .bk-x, .bk-ult .bk-o { font-size: 1.1em; } }
