.home-browser {
  --home-ink: #ecf3f9;
  --home-label: #a1bfd6;
  --home-track: #0f212c;
  --home-active: #3e586c;
  container: homeBrowser / inline-size;
  align-self: center;
  position: relative;
  left: var(--home-scroll-offset, 0px);
  width: min(1200px, calc(94vw - var(--side-w, 0px)));
  flex: none;
}
.home-browser, .home-feed { display: flex; flex-direction: column; gap: 24px; }
.home-browser .home-search {
  display: flex; align-items: center; width: 100%; height: 52px; min-height: 52px;
  padding: 0 12px; margin: 0; gap: 0;
  background: var(--home-track); border: 2px solid var(--home-active); border-radius: 8px;
  color: #a1bfd6; cursor: text; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.home-browser .home-search:focus-within { border-color: #7896ae; }
.home-browser .home-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.home-browser .home-search input {
  flex: 1; min-width: 0; height: 48px; padding: 12px;
  border: 0; box-shadow: none; outline: none; background: transparent;
  color: var(--home-ink); font: 400 16px/24px var(--font);
}
.home-search input::placeholder { color: #a1bfd6; opacity: 1; }
.home-search kbd {
  padding: 0 4px; border-radius: 4px; background: var(--home-active); color: white;
  font: 600 16px/24px var(--font); white-space: nowrap; pointer-events: none;
}
.home-categories {
  display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0;
  background: var(--home-track); border-radius: 999px;
}
.home-categories::-webkit-scrollbar { display: none; }
.home-categories a {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  color: var(--home-ink); text-decoration: none; white-space: nowrap; font: 600 16px/24px var(--font);
}
.home-categories [data-category="home"] { min-width: 165px; }
.home-categories [data-category="account"] { min-width: 144px; }
.home-categories [data-category="originals"] { min-width: 178px; padding-inline: 16px; }
.home-categories [data-category="slots"] { min-width: 151px; }
@container homeBrowser (max-width: 350px) {
  .home-categories :is([data-category="originals"], [data-category="slots"]) {
    min-width: 0;
    padding-inline: 7px;
  }
}
.home-shelf h2 .home-icon:first-child, .home-categories a:not([aria-current="page"]) .home-icon { color: #a1bfd6; }
.home-categories a[aria-current="page"], .home-categories a:hover { background: var(--home-active); color: white; }
.home-browser .home-icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.home-browser :is(a, button):focus-visible { outline: 2px solid #84c4ff; outline-offset: 2px; }
.home-categories a:focus-visible { outline-offset: -2px; }
.home-feed { --home-columns: 3; --home-column-gap: 10px; min-width: 0; }
@container homeBrowser (width > 500px) { .home-feed { --home-columns: 4; --home-column-gap: 15px; } }
@container homeBrowser (width > 600px) { .home-feed { --home-columns: 5; } }
@container homeBrowser (width > 750px) { .home-feed { --home-columns: 6; } }
@container homeBrowser (width > 900px) { .home-feed { --home-columns: 7; } }
@container homeBrowser (width > 1050px) { .home-feed { --home-columns: 8; } }
.home-shelf h2 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  color: var(--home-ink); font: 700 20px/28px var(--font);
}
.home-shelf h2 a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.home-shelf h2 a:hover { color: white; }
.home-shelf h2 .home-chevron { margin-left: -6px; }
.home-grid {
  display: grid; grid-template-columns: repeat(var(--home-columns), minmax(0, 1fr));
  gap: 24px var(--home-column-gap); list-style: none; margin: 0; padding: 0;
}
.home-grid > li { min-width: 0; }
.home-card { display: block; min-width: 0; color: inherit; text-decoration: none; }
.home-cover {
  display: grid; place-items: center; overflow: hidden; width: 100%; aspect-ratio: 41 / 55;
  background: #213545; color: #fff; border-radius: 8px;
}
.home-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-cover:has(> .slot-cover-brand) { position: relative; }
/* Extend the clean bottom edge of the catalog art over its studio credit. */
.slot-cover-brand {
  position: absolute; inset: 85% 0 0; pointer-events: none;
  background-position: center bottom; background-size: 103% 1800%; background-repeat: no-repeat;
  mask-image: linear-gradient(to bottom, transparent, #000 16%);
}
.slot-cover-brand::after {
  content: ''; position: absolute; top: 37%; left: 32%; width: 36%; aspect-ratio: 147 / 32;
  transform: translateY(-50%); background: url('/img/brand/slot-wordmark.svg') center / contain no-repeat;
}
.home-cover:has(> img:is([src="/img/home/paperclip-minedrop.webp"], [src="/img/home/paperclip-minedrop-2.webp"])) {
  overflow: clip;
  & > img { transform: scale(1.16); transform-origin: center top; }
}
.home-card.is-publisher .home-cover { aspect-ratio: 5 / 2; border-radius: 4px; }
.home-card.is-publisher .home-cover img { object-fit: contain; }
.home-cover.is-slot { background: #1d5490; color: white; font: 700 clamp(13px, 1.55vw, 18px)/1.25 var(--font); text-align: center; }
.home-status {
  display: flex; align-items: center; gap: 5px; height: 20px; padding-top: 4px;
  font: 400 12px/16px var(--font); color: var(--home-label);
}
.home-status i { width: 6px; height: 6px; border-radius: 50%; background: #2de01c; }
.home-status:has(.home-rules-link) { flex-wrap: wrap; height: auto; }
.home-rules-link { color: var(--text); text-underline-offset: 2px; }
.home-view-all .home-cover { display: flex; align-items: center; justify-content: center; gap: 4px; font: 600 16px/24px var(--font); }
.home-view-all .home-icon { width: 20px; color: var(--home-label); }
.home-view-all.is-publisher .home-cover { border-radius: 8px; }
@media (hover:hover) { a.home-card:hover .home-cover { transform: translateY(-3px); } }
@media (prefers-reduced-motion: no-preference) { a.home-card .home-cover { transition: transform .15s ease; } }
.home-more {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 8px 0 0; padding: 0;
  background: none; color: var(--home-label); border: 0; font: 600 16px/24px var(--font); cursor: pointer;
}
.home-more::before, .home-more::after { content: ''; flex: 1; height: 1px; background: #3e586c; }
.home-more:hover { color: white; }
.home-empty { color: var(--home-label); margin: 0; }

@media (max-width: 600px) { .home-search kbd { visibility: hidden; } }
@media (max-width: 350px) {
  .top .top-in .guest-actions { gap: 4px; }
  .top .guest-actions > .btn { padding-inline: 7px; }
}

/* Match the legacy 24px gap between the final personal row and the bets tabs. */
.home > #home-library + .section { margin-top: 8px; }
@media (max-width: 760px) { .home > #home-library + .section { margin-top: 12px; } }
