.casino-lobby { margin-top: 28px; min-width: 0; scroll-margin-top: 104px; }
.casino-screen-reader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.casino-toolbar { display: grid; gap: 10px; margin-bottom: 25px; }
.casino-primary-row { display: flex; align-items: flex-end; gap: 25px; min-width: 0; }
.casino-search { flex: 0 0 clamp(155px, 20vw, 273px); min-width: 0; }
.casino-search-label { display: block; margin-bottom: 7px; font-size: .92rem; font-weight: 800; }
.casino-search-field { display: flex; align-items: center; gap: 12px; min-width: 0; padding-inline: 14px; border-radius: 24px; background: #415169; color: #dce6f6; }
.casino-search-field:focus-within { outline: 2px solid #ffe346; }
.casino-search input { min-width: 0; width: 100%; height: 40px; padding: 0; border: 0; background: transparent; color: #f2f6fd; font-size: .83rem; outline: none; }
.casino-search-icon { position: relative; display: inline-block; flex: none; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; margin: 0 4px 3px 0; }
.casino-search-icon::after { content: ''; position: absolute; top: 8px; left: 8px; width: 5px; height: 1.5px; border-radius: 1px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.casino-search-toggle { display: none; }
.casino-filter-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.casino-primary-row .casino-filter-row { margin-left: auto; }
.casino-provider-row { margin-inline: auto 0; max-width: calc(100% - clamp(0px, 6vw, 86px)); }
.casino-filter-track { display: flex; gap: 8px; min-width: 0; padding: 3px; overflow-x: auto; scrollbar-width: none; }
.casino-filter-track::-webkit-scrollbar, .casino-game-row::-webkit-scrollbar { display: none; }
.casino-chip, .casino-overflow, .casino-search-toggle { min-height: 39px; padding: 0 14px; border: 1px solid transparent; border-radius: 23px; background: #425168; color: #e9eff9; font-size: .84rem; font-weight: 800; white-space: nowrap; }
.casino-chip[aria-pressed="true"] { color: #ffdf3a; border-color: #ead006; background: #3b4557; }
.casino-chip[data-casino-provider="all"][aria-pressed="true"] { color: #e9eff9; border-color: transparent; background: #425168; }
.casino-chip[aria-pressed="true"]:not([data-casino-provider="all"])::before { content: '✓'; margin-right: .45rem; font-size: 1.05em; }
.casino-chip:hover, .casino-overflow:hover, .casino-search-toggle:hover { background-color: #53657e; }
.casino-overflow { flex: none; width: 39px; padding: 0; font-size: 1.25rem; line-height: 1; }
.casino-dialog-choices { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px; }
.casino-dialog-choices .casino-chip { min-height: 40px; }
.casino-shelf { --game-gap: 11px; margin-bottom: 30px; }
.casino-shelf-header { display: flex; align-items: center; gap: 9px; min-height: 29px; margin-bottom: 8px; }
.casino-shelf-header h2, .casino-results h2 { color: #e7edf9; font-size: 1.02rem; font-weight: 800; }
.casino-view-all, .casino-arrows button { background: transparent; border: 0; color: #ffe337; }
.casino-view-all { min-height: 29px; padding: 2px 0; font-size: .88rem; font-weight: 800; }
.casino-view-all:hover { text-decoration: underline; }
.casino-arrows { display: flex; gap: 5px; margin-left: auto; }
.casino-arrows button { min-width: 32px; min-height: 32px; color: #c9d5e7; font-size: 1.35rem; line-height: 1; }
.casino-arrows button:disabled { opacity: .38; cursor: default; }
.casino-game-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 6 * var(--game-gap)) / 7.1); gap: var(--game-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-top: 5px; }
.casino-game { position: relative; min-width: 0; display: block; aspect-ratio: 1; border: 0; border-radius: 15px; padding: 0; background: #273349; color: #fff; text-align: left; scroll-snap-align: start; isolation: isolate; }
.casino-game img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.casino-game:focus-visible { outline-offset: -3px; }
.casino-game-name { position: absolute; z-index: 1; inset: auto 0 0; padding: .5rem; border-radius: 0 0 15px 15px; background: #152135ea; font-size: .75rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; opacity: 0; }
.casino-game:hover .casino-game-name, .casino-game:focus-visible .casino-game-name { opacity: 1; }
.casino-game:hover .casino-badge, .casino-game:focus-visible .casino-badge { opacity: 0; }
.casino-badge { position: absolute; top: -3px; right: 3px; z-index: 1; max-width: calc(100% - 6px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; line-height: 1.4; font-weight: 800; color: white; padding: .13rem .45rem; border-radius: 20px; background: #127295; }
.casino-badge.ranked { background: #008652; }.casino-badge.provider, .casino-badge.new { background: #b21c19; }
.casino-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 11px; margin: .8rem 0 1.3rem; }
.casino-result-status:empty { display: none; }
.casino-result-status { color: var(--muted); margin: .25rem 0; font-size: .84rem; }
.casino-more { margin: .3rem auto; display: flex; }
.casino-detail-cover { width: min(190px, 62%); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin: 1rem auto 0; }

@media (max-width: 1100px) {
  .casino-primary-row { gap: 14px; }
  .casino-game-row { grid-auto-columns: calc((100% - 4 * var(--game-gap)) / 5.1); }
  .casino-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .casino-lobby { margin: 15px -8px 0; scroll-margin-top: 4px; }
  .casino-toolbar { margin-inline: -16px; margin-bottom: 15px; gap: 0; border-bottom: 1px solid #4d5a6f; }
  .casino-primary-row { align-items: center; gap: 18px; border-block: 1px solid #4d5a6f; padding: 4px 8px; }
  .casino-provider-row { padding: 4px 8px 4px min(10.5vw, 41px); margin: 0; max-width: 100%; }
  .casino-search { display: none; }
  .casino-search-toggle { display: grid; place-items: center; flex: none; padding: 0; width: 31px; height: 31px; min-height: 31px; }
  .casino-search-toggle .casino-search-icon { width: 10px; height: 10px; margin-right: 2px; }
  .casino-search-toggle .casino-search-icon::after { top: 6px; left: 6px; width: 4px; }
  .casino-primary-row .casino-filter-row { margin-left: 0; flex: 1; }
  .casino-filter-row, .casino-filter-track { gap: 5px; }
  .casino-filter-track { padding-inline: 2px; }
  .casino-chip, .casino-overflow { min-height: 31px; padding: 0 11px; font-size: .7rem; }
  .casino-overflow { width: 31px; padding-inline: 0; font-size: 1rem; }
  .casino-primary-row:has([aria-expanded="true"]) { gap: 9px; }
  .casino-primary-row:has([aria-expanded="true"]) .casino-search { display: block; flex: 1; }
  .casino-primary-row:has([aria-expanded="true"]) .casino-filter-row { display: none; }
  .casino-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .casino-search input { height: 34px; }
  .casino-shelf { --game-gap: clamp(10px, 4.5vw, 18px); margin-bottom: 15px; }
  .casino-shelf-header { min-height: 27px; margin-bottom: 5px; }
  .casino-shelf-header h2, .casino-results h2 { font-size: .91rem; }
  .casino-view-all { font-size: .84rem; }
  .casino-arrows button { min-width: 26px; }
  .casino-game-row { grid-auto-columns: calc((100% - 2 * var(--game-gap)) / 3); }
  .casino-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .casino-badge { font-size: .62rem; }
}

@media (max-width: 350px) {
  .casino-toolbar { margin-inline: -7px; }
}
