.game-lobby { padding: 24px 0 100px; }
#content.game-lobby { height: auto; min-height: 100%; }
#box-content:has(.game-lobby) { scroll-padding-bottom: 90px; }
.lobby-container { min-width: 0; }
.lobby-title { font-size: 24px; margin-bottom: 20px; }
.lobby-search { display: flex; align-items: center; gap: 16px; border: 1px solid var(--bg-hover); border-radius: 8px; padding: 14px 18px; background: var(--bg-deep); }
.lobby-search > i { font-size: 24px; color: var(--accent-color); }
.lobby-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-base); font-size: 18px; }
.lobby-search input::placeholder { color: var(--subtext-color); opacity: 1; }
.lobby-search:focus-within { border-color: var(--accent-color); }
.lobby-categories { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 18px 0 24px; }
.lobby-categories::-webkit-scrollbar, .provider-list::-webkit-scrollbar { display: none; }
.lobby-categories a { flex: 1 0 80px; display: flex; align-items: center; flex-direction: column; gap: 8px; padding: 14px 4px; color: var(--subtext-color); border-bottom: 3px solid transparent; }
.lobby-categories i { color: var(--accent-color); font-size: 26px; }
.lobby-categories a.active { color: var(--text-base); border-color: var(--accent-color); }
.provider-carousel { position: relative; }
.provider-list { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.provider-tab { flex: 0 0 calc((100% - 48px) / 5); min-width: 130px; height: 74px; padding: 10px 18px; display: flex; align-items: center; justify-content: center; border: 2px solid transparent; border-radius: 10px; color: var(--text-base); background: var(--bg-elevated); cursor: pointer; font-size: 14px; }
.provider-tab.active { border-color: var(--accent-color); background: var(--bg-deep); }
.provider-tab img { width: 100%; max-width: 140px; height: 46px; object-fit: contain; }
.provider-tab span { line-height: 1.25; }
.provider-all { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.provider-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--subtext-color); color: var(--bg-deep); font-size: 16px; opacity: .9; }
.provider-arrow:disabled { visibility: hidden; }
.provider-prev { left: -6px; }
.provider-next { right: -6px; }
.lobby-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 14px; }
.lobby-heading h2 { font-size: 16px; }
.lobby-heading > span { color: var(--subtext-color); font-size: 12px; white-space: nowrap; }
.lobby-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.lobby-grid-casino { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lobby-grid .box-game { width: 100%; max-width: none; min-width: 0; padding: 0; border: 2px solid var(--accent-color); border-radius: 12px; color: var(--text-base); background: var(--bg-elevated); font-family: inherit; text-align: center; }
.lobby-grid .box-game:focus-visible, .provider-tab:focus-visible { outline: 3px solid var(--text-base); outline-offset: 3px; }
.lobby-grid .game-img { height: auto; max-height: none; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; }
.lobby-grid-casino .game-img { aspect-ratio: 4 / 3; }
.lobby-grid .game-img > img { width: 100%; height: 100%; object-fit: cover; }
.lobby-grid .game-body { flex: 1; justify-content: center; gap: 4px; padding: 10px 6px; min-height: 66px; }
.lobby-grid .game-name { max-width: 100%; width: 100%; white-space: normal; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.lobby-grid .game-provider { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-image-fallback { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--bg-deep); color: var(--subtext-color); }
.game-image-fallback[hidden], .provider-tab [hidden], .lobby-load-more[hidden] { display: none; }
.lobby-empty { grid-column: 1 / -1; padding: 40px 12px; text-align: center; color: var(--subtext-color); }
.lobby-status { min-height: 24px; text-align: center; margin-top: 16px; color: var(--subtext-color); }
#scroll-sentinel { height: 1px; }
.lobby-load-more { display: block; margin: 12px auto; padding: 10px 24px; border-radius: 8px; border: 1px solid var(--accent-color); background: var(--bg-elevated); color: var(--text-base); }
@media (max-width: 1100px) and (min-width: 769px) {
    .lobby-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lobby-grid-casino { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .game-lobby { padding-top: 16px; }
    .lobby-title { display: none; }
    .lobby-search { padding: 12px 14px; gap: 12px; }
    .lobby-search input { font-size: 16px; }
    .lobby-categories { gap: 0; margin: 12px 0 20px; }
    .lobby-categories a { flex-basis: 16.666%; font-size: 12px; padding: 12px 3px; }
    .lobby-categories i { font-size: 24px; }
    .provider-list { gap: 8px; }
    .provider-tab { flex-basis: calc((100% - 16px) / 3); min-width: 0; height: 60px; padding: 8px 10px; font-size: 11px; }
    .provider-tab img { height: 38px; }
    .provider-all { gap: 4px; }
    .lobby-heading { margin-top: 20px; }
    .lobby-heading h2 { font-size: 14px; }
    .lobby-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .lobby-grid-casino { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lobby-grid .box-game { border-radius: 9px; }
    .lobby-grid .game-body { padding: 8px 4px; min-height: 62px; }
    .lobby-grid .game-name, .lobby-grid .game-provider { font-size: 11px; }
}
