/* ludo (P0314) - dice-race kit shared by the B90 race games */
.rk-tool .controls label, .rk-row label { font-weight: bold; margin-right: 4px; }
.rk-row input { min-height: 44px; width: 7em; padding: 0 8px; border: 2px solid #8C96A6; border-radius: 10px; font: inherit; }
.rk-row 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; margin: 0 6px 6px 0; }
.rk-row button.rk-roll { background: #24334B; color: #FFFFFF; font-size: 1.1em; min-width: 10em; }
.rk-row button:disabled { opacity: .45; cursor: default; }
.rk-table { border-collapse: collapse; margin: 6px 0; }
.rk-table th, .rk-table td { padding: 4px 10px; border-bottom: 1px solid #E5E0D5; text-align: left; }
.rk-table tr.rk-turn th, .rk-table tr.rk-turn td { background: #FBF1E4; font-weight: bold; }
.rk-table tr.rk-turn th:before { content: "\25B6  "; color: #8A5A1F; }
.rk-actions .rk-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; }
.rk-cap { font-weight: bold; margin: 10px 0 2px; }
.rk-log { max-height: 12em; overflow-y: auto; padding-left: 1.6em; color: #4A5568; }
.rk-board { max-width: 520px; display: grid; border: 3px solid #24334B; border-radius: 8px; overflow: hidden; }
.rk-snakes-and-ladders { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.rk-cell { position: relative; aspect-ratio: 1 / 1; background: #F7F5F0; border: 1px solid #E5E0D5; font-size: .8em; overflow: hidden; }
.rk-alt { background: #EEF4F3; }
.rk-num { position: absolute; left: 3px; top: 2px; color: #4A5568; font-size: .85em; }
.rk-ladder { background: #DDEBD9; } .rk-snake { background: #F6E2D2; }
.rk-mark { position: absolute; left: 3px; bottom: 2px; font-weight: bold; font-size: .85em; color: #24334B; }
.rk-toks { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); text-align: right; line-height: 1; }
.rk-tok { display: inline-block; min-width: 1.4em; height: 1.4em; line-height: 1.4em; border-radius: 50%; color: #FFFFFF; font-weight: bold; margin: 0 1px; text-align: center; border: 2px solid #FFFFFF; }
.rk-t0 { background: #A3271F; } .rk-t1 { background: #3B6970; } .rk-t2 { background: #8A5A1F; } .rk-t3 { background: #24334B; }
/* ludo */
.rk-ludo { grid-template-columns: repeat(15, minmax(0, 1fr)); background: #FFFFFF; }
.lu-cell { position: relative; aspect-ratio: 1 / 1; min-width: 0; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; }
.lu-track { border: 1px solid #C9D1DB; background: #FFFFFF; }
.lu-base.lu-c0, .lu-home.lu-c0, .lu-track.lu-c0 { background: #F3D5D2; } .lu-base.lu-c1, .lu-home.lu-c1, .lu-track.lu-c1 { background: #D3E7D3; }
.lu-base.lu-c2, .lu-home.lu-c2, .lu-track.lu-c2 { background: #F7EDC4; } .lu-base.lu-c3, .lu-home.lu-c3, .lu-track.lu-c3 { background: #D4E0F0; }
.lu-centre { background: #E5E0D5; }
.lu-star { position: absolute; color: #8A5A1F; font-size: .8em; opacity: .7; }
.lu-tok { position: relative; z-index: 1; display: inline-block; min-width: 1.7em; height: 1.7em; line-height: 1.7em; border-radius: 50%; color: #FFFFFF; font-weight: bold; font-size: .62em; text-align: center; border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px #24334B; }
.lu-t0 { background: #A3271F; } .lu-t1 { background: #2E6B34; } .lu-t2 { background: #8A5A1F; } .lu-t3 { background: #24334B; }
@media (max-width: 480px) { .lu-tok { font-size: .5em; min-width: 1.5em; height: 1.5em; line-height: 1.5em; border-width: 1px; } .rk-cell { font-size: .7em; } }
