/* Board / card lobby — dark navy (match homepage + slot) */
.board-lobby-kz {
    --board-accent: transparent;
    --board-accent-visible: #4da3e0;
    --board-accent-soft: #1a2540;
    --board-bg: #080d1a;
    --board-surface: #161f33;
    --board-text: #e8f1ff;
    --board-muted: #8fa0b8;
    background: var(--board-bg);
    min-height: calc(100vh - 112px);
}

.board-lobby-kz .lobby-top-cats {
    background: transparent;
}

.board-lobby-kz__body {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 180px);
    background: #0b142b;
}

/* Sidebar */
.board-sidebar {
    flex: 0 0 92px;
    width: 92px;
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
}

.board-sidebar__search {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #4da3e0;
    cursor: pointer;
}

.board-sidebar__search i {
    font-size: 18px;
}

.board-sidebar__search-input {
    display: none;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.board-sidebar__search-input.open {
    display: block;
}

.board-sidebar__search-input input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(77, 163, 224, 0.35);
    border-radius: 8px;
    font-size: 11px;
    outline: none;
    background: #101c3d;
    color: #e8f1ff;
}

.board-sidebar__list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0 14px;
    list-style: none;
    margin: 0;
}

.board-sidebar__list::-webkit-scrollbar {
    width: 0;
}

.board-provider {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 8px 4px;
    margin: 2px 2px;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    background: transparent;
    color: #4da3e0;
}

.board-provider__logo {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    object-fit: contain;
    object-position: center center;
    border-radius: 10px;
    background: transparent;
    padding: 0;
    display: block;
    border: none;
    box-shadow: none;
    image-rendering: -webkit-optimize-contrast;
}

.board-provider__logo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #4da3e0;
    background: #1a2540;
}

.board-provider__name {
    display: none !important;
}

.board-provider.active {
    background: transparent;
    color: #4da3e0;
    box-shadow: none;
}

.board-provider.active::after {
    display: none;
}

.board-provider.active .board-provider__logo {
    border: none;
    box-shadow: 0 4px 12px rgba(77, 163, 224, 0.25);
    transform: translateY(-1px) scale(1.04);
    background: transparent;
}

.board-provider--disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* Main */
.board-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.board-main__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    box-sizing: border-box;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
}

.board-tabs {
    display: flex;
    gap: 20px;
    align-items: center;
}

.board-tab {
    position: relative;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--board-muted);
    cursor: pointer;
    letter-spacing: 0.2px;
}

.board-tab.active {
    color: var(--board-accent-visible);
}

.board-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 2px;
    background: var(--board-accent-visible);
    border-radius: 2px;
}

.board-tools {
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--board-muted);
}

.board-tools__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--board-muted);
}

.board-tools__btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.board-tools__btn i {
    font-size: 16px;
}

/* Grid — no per-tile boxes */
.board-grid-wrap {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 8px 88px;
    box-sizing: border-box;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
    width: 100%;
    box-sizing: border-box;
}

.board-game {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: transparent;
}

.board-game__thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    flex-shrink: 0;
}

.board-game__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.board-game__name {
    flex: 1;
    min-height: 30px;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--board-text);
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    padding: 0 2px;
}

.board-grid-loading,
.board-grid-empty,
.board-grid-maintenance {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    color: var(--board-muted);
    font-size: 13px;
    line-height: 1.5;
}

.board-grid-loading i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--board-accent-visible);
}

.board-grid-maintenance {
    color: #8fa0b8;
}
