/* The lobby puts game discovery first and keeps account rewards in one place. */
:root body[data-lobby-layout="reference"] #games-hub[data-game-view="catalog"] .game-panels > #game-catalog {
  gap:clamp(24px,3.2vw,44px);
}
:root body[data-lobby-layout="reference"] #games-hub .lobby-rewards {
  --reward-gold:#e6c68d;
  display:grid;
  grid-template-columns:minmax(0, 2fr) minmax(0, 3fr);
  align-items:stretch;
  gap:14px;
  min-width:0;
}
:root[data-theme="light"] body[data-lobby-layout="reference"] #games-hub .lobby-rewards {
  --reward-gold:#795017;
}
:root body[data-lobby-layout="reference"] #games-hub .lobby-rewards:not(:has(#lobby-vip:not([hidden]))) {
  grid-template-columns:minmax(0,1fr);
}
:root body[data-lobby-layout="reference"] #games-hub .lobby-rewards:not(:has(#lobby-vip:not([hidden]))) .lobby-perk-vip {
  display:none;
}
:root body[data-lobby-layout="reference"] #games-hub .lobby-perk-vip {
  display:grid;
  gap:10px;
  align-content:start;
  min-width:0;
  padding:14px 18px 17px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
}
.lobby-perk-head {
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.lobby-perk-head h2 {
  flex:1;
  margin:0;
  color:var(--ink);
  font-size:16px;
  line-height:1.25;
  font-weight:700;
}
.lobby-perk-icon {
  display:grid;
  place-items:center;
  color:var(--reward-gold);
}
.lobby-perk-icon svg { width:19px; height:19px; }
.lobby-perk-link {
  display:grid;
  place-items:center;
  flex:none;
  width:44px;
  min-height:44px;
  margin:-6px -6px -6px 0;
  border-radius:7px;
  color:var(--muted);
  font-size:24px;
  line-height:1;
  text-decoration:none;
}
.lobby-perk-link:hover { background:var(--raised); color:var(--ink); }
.lobby-perk-vip .lobby-vip {
  --vip-progress:var(--reward-gold);
  display:grid;
  gap:8px;
}
.lobby-perk-vip :is(.lobby-vip[hidden],#lobby-vip-progress[hidden],#lobby-vip-next:empty) { display:none; }
.lobby-perk-vip .lobby-vip-topline { min-width:0; gap:9px; }
.lobby-perk-vip .lobby-vip-rank { display:grid; gap:2px; min-width:0; }
.lobby-perk-vip #lobby-vip-level { font-size:14px; font-weight:700; overflow-wrap:anywhere; }
.lobby-perk-vip :is(#lobby-vip-name,#lobby-vip-next) { color:var(--muted); font-size:12px; font-weight:500; }
body[data-lobby-layout="reference"] .lobby-perk-vip #lobby-vip-progress {
  height:5px;
  appearance:none;
  accent-color:var(--vip-progress);
}
body[data-lobby-layout="reference"] .lobby-perk-vip #lobby-vip-progress::-webkit-progress-value { background:var(--vip-progress); }
body[data-lobby-layout="reference"] .lobby-perk-vip #lobby-vip-progress::-moz-progress-bar { background:var(--vip-progress); }

:root body[data-lobby-layout="reference"] #games-hub .lobby-rewards[hidden] { display:none; }
:root body[data-lobby-layout="reference"] #games-hub {
  --lobby-row-n:10;
  --lobby-row-gap:14px;
  --lobby-tile-width:calc((100% - (var(--lobby-row-n) - 1) * var(--lobby-row-gap)) / var(--lobby-row-n));
}
:root body[data-lobby-layout="reference"] #games-hub[data-lobby-section="home"] #game-catalog :is(.catalog-grid.game-tabs:not(.slots-catalog),.catalog-grid.cases-catalog,#lobby-slots .tts-demo-games-list) {
  display:grid;
  grid-auto-flow:column;
  grid-template-columns:none;
  grid-template-rows:auto;
  grid-auto-columns:var(--lobby-tile-width);
  gap:var(--lobby-row-gap);
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  /* Leave a gutter for the keyboard focus ring inside the scrollport. */
  padding-block:4px;
  margin-block:-4px;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
:root body[data-lobby-layout="reference"] #games-hub[data-lobby-section="home"] #game-catalog :is(.catalog-grid.game-tabs:not(.slots-catalog),.catalog-grid.cases-catalog,#lobby-slots .tts-demo-games-list)::-webkit-scrollbar { display:none; }
:root body[data-lobby-layout="reference"] #games-hub[data-lobby-section="home"] #game-catalog :is(.catalog-grid.game-tabs:not(.slots-catalog),.catalog-grid.cases-catalog,#lobby-slots .tts-demo-games-list) > * {
  min-width:0;
  scroll-snap-align:start;
}
:root body[data-lobby-layout="reference"] #games-hub[data-lobby-section="home"] #game-catalog :is(.catalog-grid.game-tabs:not(.slots-catalog),.catalog-grid.cases-catalog,#lobby-slots .tts-demo-games-list) > :nth-child(n+11 of :not([hidden])) { display:none; }
:root body[data-lobby-layout="reference"] #games-hub:not([data-lobby-section="home"]) #game-catalog :is(#lobby-games .catalog-grid,#lobby-cases .catalog-grid) {
  grid-template-columns:repeat(auto-fill,var(--lobby-tile-width));
  gap:var(--lobby-row-gap);
}
:root body[data-lobby-layout="reference"] #games-hub[data-lobby-section="home"] #lobby-slots :is(.slots-catalog,.moon-warren-catalog-feedback,#tts-library-filters,.tts-library-feedback,.tts-slot-controls,.tts-slot-more) { display:none; }
:root body[data-lobby-layout="reference"] #games-hub[data-lobby-section="home"] #lobby-slots #tts-slots-controls { display:block; }
:root body[data-lobby-layout="reference"] #games-hub #game-catalog .lobby-section-heading {
  position:relative;
  justify-content:space-between;
  min-height:44px;
  margin:0 0 10px;
}
:root body[data-lobby-layout="reference"] #games-hub #game-catalog .lobby-section-heading h2 {
  font-size:clamp(20px,2.1vw,27px);
  line-height:1.18;
  font-weight:700;
  letter-spacing:-.035em;
}
.lobby-section-heading h2:focus:not(:focus-visible) { outline:none; }
.lobby-section-link {
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-height:44px;
  max-width:45%;
  padding:4px 0 4px 8px;
  color:var(--muted);
  font-size:13px;
  font-weight:650;
  line-height:1.25;
  text-decoration:none;
  text-align:end;
}
.lobby-section-link[hidden] { display:none; }
.lobby-section-link::after { content:""; position:absolute; inset:0; }
.lobby-section-link:hover { color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.lobby-section-link:focus-visible { outline:none; }
.lobby-section-link:focus-visible::after { outline:2px solid var(--accent); outline-offset:2px; border-radius:6px; }
.lobby-section-link svg {
  flex:none;
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.lobby-section-link:dir(rtl) svg { transform:scaleX(-1); }

@media(max-width:1600px) {
  :root body[data-lobby-layout="reference"] #games-hub { --lobby-row-n:8; }
}
@media(max-width:1280px) {
  :root body[data-lobby-layout="reference"] #games-hub { --lobby-row-n:7; --lobby-row-gap:12px; }
}
@media(max-width:900px) {
  :root body[data-lobby-layout="reference"] #games-hub { --lobby-row-n:5.4; --lobby-row-gap:12px; }
  :root body[data-lobby-layout="reference"] #games-hub:not([data-lobby-section="home"]) #game-catalog :is(#lobby-games .catalog-grid,#lobby-cases .catalog-grid,#lobby-slots .tts-demo-games-list) {
    justify-content:center;
  }
}
@media(max-width:600px) {
  :root body[data-lobby-layout="reference"] #games-hub { --lobby-row-n:3.35; --lobby-row-gap:8px; }
  :root body[data-lobby-layout="reference"] #games-hub .lobby-rewards { grid-template-columns:minmax(0,1fr); gap:10px; }
  :root body[data-lobby-layout="reference"] #games-hub .lobby-perk-vip { padding:12px 14px 15px; }
  .lobby-section-link { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) {
  :root body[data-lobby-layout="reference"] #games-hub[data-lobby-section="home"] #game-catalog :is(.catalog-grid.game-tabs:not(.slots-catalog),.catalog-grid.cases-catalog,#lobby-slots .tts-demo-games-list) { scroll-behavior:auto; }
}
