/* The compact game directory is scoped to homepages; games and policies retain their layouts. */
.home-catalog {
  --page: #1c1d1f;
  --surface: #25282c;
  --ink: #f0f1f3;
  --muted: #afb5bd;
  --line: #3a3e44;
  --accent: #9ec8ec;
  padding: 0;
  background: var(--page);
  color: var(--ink);
}
.home-catalog .site-shell { display: flex; flex-direction: column; min-height: 100svh; max-width: none; border: 0; border-radius: 0; box-shadow: none; overflow: clip; }
.home-catalog .container { width: min(1200px, calc(100% - 48px)); }
.home-catalog .site-header { background: #25282c; border-color: #363a40; }
.home-catalog .header-row { min-height: 72px; }
.home-catalog .brand { gap: 10px; font-size: 23px; letter-spacing: -.6px; }
.home-catalog .brand-mark { width: 32px; height: 32px; }
.home-catalog .header-actions { gap: 24px; }
.home-catalog .main-nav { gap: 28px; color: var(--accent); font-size: 15px; }
.home-catalog .main-nav a:hover { color: #d2e8fb; }
.home-catalog .language-picker summary { border-color: #454b53; border-radius: 5px; color: #d3d7dd; }
.home-catalog .language-picker[open] summary { border-color: var(--accent); }
.home-catalog .language-chevron { color: var(--accent); }
.home-catalog .language-options { border-color: #454b53; border-radius: 6px; background: #25282c; }
.home-catalog .language-options a { color: #e1e4e9; }
.home-catalog .language-options a:hover, .home-catalog .language-options a[aria-current] { background: #343c46; color: #c1e0fa; }
.home-catalog .language-picker summary:focus-visible, .home-catalog .language-options a:focus-visible { outline-color: var(--accent); }
.home-catalog .catalog-main { padding-block: 36px 48px; }
.home-catalog .catalog-heading { gap: 12px; margin-bottom: 20px; }
.home-catalog .catalog-heading h1 { margin: 0; font-size: 25px; line-height: 1.4; font-weight: 700; letter-spacing: normal; }
.home-catalog .total-count { min-width: auto; height: auto; padding: 0; border-radius: 0; background: transparent; color: #929aa5; font-size: 15px; font-weight: 500; }
.home-catalog .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-catalog .product-card:focus-within { border-color: var(--accent); }
.home-catalog .product-art { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); background: #202327; }
.home-catalog .cover-image { object-fit: cover; }
.home-catalog .product-art .art-label { left: auto; right: auto; inset-block-start: 10px; inset-inline-start: 10px; padding: 4px 6px; border-radius: 4px; background: #1c1d1fe8; color: #e7e9ed; font-size: 9px; }
.home-catalog .product-description { color: #bbc1c9; }
.home-catalog .site-footer { margin-top: auto; background: #1c1d1f; }
.home-catalog .site-footer .container { border-top: 1px solid #363a40; }
.home-catalog .footer-row { padding-block: 22px; gap: 16px; }
.home-catalog .footer-note strong { color: #c4c9d0; font-size: 12px; font-weight: 500; }
.home-catalog .footer-note > span, .home-catalog .footer-row nav { color: #a4adb9; font-size: 12px; }
.home-catalog .footer-row nav { gap: 4px 24px; }
@media (max-width: 1099px) {
  .home-catalog .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 760px) {
  .home-catalog .portal-header .header-row { min-height: 64px; }
  .home-catalog .portal-header .brand { font-size: 20px; }
  .home-catalog .header-actions { gap: 8px; }
  .home-catalog .portal-header .main-nav { top: 63px; gap: 24px; border-color: #454b53; background: #25282c; }
  .home-catalog .nav-toggle { border-radius: 5px; }
  .home-catalog .catalog-main { padding-block: 28px 36px; }
  .home-catalog .catalog-heading h1 { font-size: 23px; }
  .home-catalog .footer-row { display: flex; flex-wrap: wrap; }
  .home-catalog .footer-row nav { margin-top: 0; }
  .home-catalog .footer-row .footer-email { flex-basis: auto; }
}
@media (max-width: 599px) {
  .home-catalog .container { width: calc(100% - 40px); }
  .home-catalog .product-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 389px) {
  .home-catalog .container { width: calc(100% - 32px); }
  .home-catalog .portal-header .brand { font-size: 19px; }
}

.home-catalog .studio-intro { max-width: 75ch; margin: -7px 0 24px; color: #b7c0cb; font-size: 14px; line-height: 1.8; }
.home-catalog .product-grid[data-count="1"] { grid-template-columns: minmax(0,1fr); max-width: 880px; margin-inline: auto; }
@media (min-width: 1100px) {
  .home-catalog .product-grid[data-count="3"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 760px) {
  .home-catalog .product-grid[data-count="1"] .product-link { display: grid; grid-template-columns: 1.1fr 1fr; }
  .home-catalog .product-grid[data-count="1"] .product-art { height: 100%; aspect-ratio: auto; }
  .home-catalog .product-grid[data-count="1"] .cover-image { object-fit: cover; }
}

/* Home and browser catalog begin with playable games, without the oversized intro. */
.home-catalog .compact-catalog{padding-block:20px 40px}
.home-catalog .compact-catalog .discovery-links{margin:0 0 14px;font-size:12px}
@media(max-width:760px){.home-catalog .compact-catalog{padding-block:14px 30px}.home-catalog .compact-catalog .discovery-links{margin-bottom:12px}}

/* Discovery stays compact: a curated start page and an anchor-based full directory. */
.home-catalog .browse-links{display:flex;flex-wrap:wrap;align-items:center;gap:4px 22px;margin:0 0 10px;font-size:12px;line-height:1.5}.home-catalog .browse-links a{display:inline-flex;align-items:center;gap:6px;min-height:32px;color:#c3e0f8;text-underline-offset:4px}.home-catalog .browse-links .browse-all{font-weight:650}.home-catalog .browse-links a:hover{text-decoration:underline}.home-catalog .browse-links+.discovery-links{margin-top:-6px}.home-catalog .catalog-groups{width:100%;min-width:0}.home-catalog .catalog-group{scroll-margin-top:18px;margin:0 0 28px}.home-catalog .catalog-group>h2{margin:0 0 12px;color:#d7dce3;font-size:16px;line-height:1.45;font-weight:650}.home-catalog .catalog-group:last-child{margin-bottom:0}
@media(max-width:760px){.home-catalog .browse-links{gap:2px 16px;margin-bottom:8px;font-size:11px}.home-catalog .browse-links a{min-height:34px}.home-catalog .catalog-group>h2{font-size:15px;margin-bottom:10px}.home-catalog .catalog-group{margin-bottom:22px}}
/* A single native game uses the full category row beside the standings. */
.home-catalog .catalog-with-ranks .product-grid[data-count="1"]{grid-template-columns:minmax(0,1fr);max-width:none;margin-inline:0}
.home-catalog [data-catalog-filter-nav]{gap:4px 18px;margin-bottom:18px}
.home-catalog [data-catalog-filter-nav] a{padding:5px 2px;border-bottom:2px solid transparent;text-decoration:none;white-space:nowrap}
.home-catalog [data-catalog-filter-nav] a[aria-current="true"]{color:var(--ink);font-weight:700;border-bottom-color:#d4ed8b}
.home-catalog [data-catalog-filter-nav] a:hover{color:var(--ink);border-bottom-color:#809366}
.home-page [data-catalog-filter-nav] a[data-catalog-filter="featured"]{
  min-height:44px;
  padding-inline:12px;
  border:1px solid #d4ed8b;
  border-radius:6px;
  background:#d4ed8b;
  color:#202811;
  font-weight:750;
}
.home-page [data-catalog-filter-nav] a[data-catalog-filter="featured"]:hover{background:#e5f6b1;color:#202811}
.home-page [data-catalog-filter-nav] a[data-catalog-filter="featured"][aria-current="true"]{
  background:#e5f6b1;
  color:#202811;
  box-shadow:inset 0 -3px #75903f;
}
.home-page [data-catalog-filter-nav] a[data-catalog-filter="featured"]:focus-visible{
  outline:2px solid #202811;
  outline-offset:-5px;
}
.home-catalog .catalog-group[hidden]{display:none!important}

/* Progressive loading retains the full crawlable catalogue without JavaScript. */
.home-catalog .product-card[hidden],.home-catalog .catalog-group[hidden],.catalog-pagination[hidden]{display:none!important}
.catalog-pagination{text-align:center;padding:18px 0 8px;color:#b7bec4;font-size:13px}
.catalog-pagination p{margin:0 0 10px}.catalog-pagination button{min-height:44px;padding:10px 24px;border:1px solid #65754d;border-radius:6px;background:#2e3928;color:#e2f0c5;font:inherit;cursor:pointer}
.catalog-pagination button:focus-visible{outline:2px solid #d4ed8b;outline-offset:3px}
.catalog-pagination [data-catalog-sentinel]{display:block;height:1px}

/* Ongoing additions stay visible beside browsing, with no fixed cadence claim. */
.home-catalog .catalog-browse-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 24px;margin-block-end:18px}
.home-catalog .catalog-browse-row .browse-links{margin:0}
.home-catalog .catalog-update-note{display:flex;align-items:baseline;gap:8px;max-width:100%;margin:0;color:#becbb3;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.home-catalog .catalog-update-note::before{content:"";width:6px;height:6px;flex:0 0 6px;align-self:center;border-radius:50%;background:#d4ed8b}
@media(max-width:1000px){.home-catalog .catalog-browse-row{align-items:flex-start;flex-direction:column;gap:4px;margin-block-end:14px}.home-catalog .catalog-update-note{font-size:11px}}

/* Game popularity precedes filtering; player standings remain a separate sidebar. */
.home-catalog .popular-games{margin:0 0 22px;min-width:0}
.home-catalog .popular-heading{display:flex;align-items:baseline;gap:12px;margin:0 0 2px}
.home-catalog .popular-heading h2{margin:0;color:#f0f2ed;font-size:18px;font-weight:700;line-height:1.5}
.home-catalog .popular-heading>span{color:#b9c4ad;font-size:11px;white-space:nowrap}
.home-catalog .popular-basis{margin:0 0 10px;color:#aeb7b0;font-size:11px;line-height:1.5}
.home-catalog .popular-carousel{position:relative;padding-inline:38px}
.home-catalog .popular-list{--popular-gap:16px;display:flex;gap:var(--popular-gap);margin:0;padding:2px 0 8px;list-style:none;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}
.home-catalog .popular-list::-webkit-scrollbar{display:none}
.home-catalog .popular-list:focus{outline:none}
.home-catalog .popular-arrow{position:absolute;inset-block-start:calc((100% - 30px)/2);display:grid;place-items:center;width:34px;height:40px;padding:0;border:1px solid #bdc7b859;background:#252c24;color:#d9efaf;border-radius:8px;cursor:pointer}
.home-catalog .popular-arrow:hover{background:#344130;border-color:#d9efaf}
.home-catalog .popular-arrow:focus-visible{outline:2px solid #d4ed8b;outline-offset:2px}
.home-catalog .popular-arrow-previous{inset-inline-start:0}
.home-catalog .popular-arrow-next{inset-inline-end:0}
.home-catalog .popular-arrow-previous svg,[dir=rtl] .home-catalog .popular-arrow-next svg{transform:scaleX(-1)}
[dir=rtl] .home-catalog .popular-arrow-previous svg{transform:none}
.home-catalog [data-popular-pending] :is(.popular-carousel,.popular-empty){visibility:hidden;animation:popular-fallback 1s step-end both}
@keyframes popular-fallback{to{visibility:visible}}
.home-catalog .popular-game{flex:0 0 calc((100% - 4 * var(--popular-gap))/5);min-width:0;margin:0;padding:0;scroll-snap-align:start}
.home-catalog .popular-game>a{display:block;color:#e9ede5;text-decoration:none;border-radius:6px;outline-offset:4px}
.home-catalog .popular-art{display:block;position:relative;overflow:hidden;border-radius:5px;background:#2b302a;aspect-ratio:16/8}
.home-catalog .popular-art img{display:block;width:100%;height:100%;object-fit:cover;transition:filter 150ms ease}
.home-catalog .popular-position{position:absolute;inset-block-start:5px;inset-inline-start:5px;display:grid;place-items:center;min-width:24px;height:26px;padding-inline:5px;border-radius:3px;background:#d4ed8b;color:#202c16;font:750 17px/1 system-ui,sans-serif}
.home-catalog .popular-name{display:block;margin-block-start:6px;overflow:hidden;color:inherit;font-size:13px;font-weight:650;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.home-catalog .popular-updated{margin:3px 0 0;color:#b2bcb0;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.home-catalog .popular-updated time{white-space:nowrap}
.home-catalog .popular-game>a:hover .popular-art img{filter:brightness(1.12)}
.home-catalog .popular-game>a:focus-visible{outline:2px solid #d4ed8b}
.home-catalog .popular-empty{margin:0;padding:10px 0;color:#b9c3b3;font-size:12px;line-height:1.6}
.home-catalog .popular-arrow[hidden],.home-catalog .popular-list[hidden],.home-catalog .popular-empty[hidden]{display:none!important}
.home-catalog .product-updated{display:flex;flex-wrap:wrap;gap:0 5px;margin:6px 0 0;color:#abb7a5;font-size:11px;line-height:1.6}
.home-catalog .product-updated time{white-space:nowrap}
@media(max-width:900px){
 .home-catalog .popular-carousel{padding-inline:36px}
 .home-catalog .popular-list{--popular-gap:12px;scroll-snap-type:x proximity}
 .home-catalog .popular-game{flex:0 0 148px;scroll-snap-align:start}
 .home-catalog .popular-games{margin-block-end:15px}
 .home-catalog .popular-art{aspect-ratio:16/8}
 .home-catalog .popular-heading h2{font-size:16px}
 .home-catalog .popular-name{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.home-catalog .popular-art img{transition:none}.home-catalog .popular-list{scroll-behavior:auto}}
.home-catalog .popular-name{white-space:nowrap;text-overflow:ellipsis}
.home-catalog .popular-updated{display:flex;flex-wrap:wrap;gap:0 4px;margin:2px 0 0;color:#aeb9a4;font-size:10px;line-height:1.6}
.home-catalog .popular-updated time{white-space:nowrap}
.home-catalog .popular-game>a:hover .popular-art img,.home-catalog .popular-game>a:focus-visible .popular-art img{filter:brightness(1.1)}

.home-catalog .catalog-group-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:0 0 10px}
.home-catalog .catalog-group-heading h2{margin:0;color:#d7dce3;font-size:16px;line-height:1.45;font-weight:650}
.catalog-group-open{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:5px 12px;border:1px solid #526476;border-radius:6px;background:#29333d;color:#c3e0f8;font-size:13px;line-height:1.4;text-decoration:none}
.catalog-group-open:hover{border-color:#83a9cd;background:#35434f}
.catalog-group-open:focus-visible{outline:2px solid #d4ed8b;outline-offset:2px}
[data-catalog-filter-root]:not([data-catalog-filter="all"]) .catalog-group-open{display:none}

/* Native page links and category previews are available before JavaScript runs. */
[data-catalog-filter-root][data-catalog-filter="latest"]:not([data-catalog-expanded]) .catalog-group-open{display:inline-flex}
.category-preview{display:none;margin:0;padding:0;list-style:none}
[data-catalog-filter-root]:not([data-catalog-filter="featured"]) #category-featured:not(:target){display:none}
[data-catalog-filter="latest"]:not([data-catalog-expanded]) .category-preview,
#category-featured .category-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
[data-catalog-filter="latest"] [data-catalog-members]>.product-grid,
[data-catalog-filter-root]:has([data-latest-page]:target) [data-catalog-members]{display:none}
.category-preview a{display:grid;gap:4px;color:var(--ink);font-size:14px;font-weight:650;line-height:1.4;text-decoration:none;overflow-wrap:anywhere}
.category-preview a:hover > bdi{text-decoration:underline}
.category-preview a:focus-visible{outline:2px solid #d4ed8b;outline-offset:3px;border-radius:5px}
.category-preview-art{display:block;overflow:hidden;aspect-ratio:2/1;margin-bottom:2px;border-radius:6px;background:var(--surface)}
.category-preview-art :is(picture,img){display:block;width:100%;height:100%;object-fit:cover}
.category-preview-date{color:#b2bcb0;font-size:11px;font-weight:400}
.category-preview .game-card-metrics { font-size: 12px; }
@media(max-width:599px){
  [data-catalog-filter="latest"]:not([data-catalog-expanded]) .category-preview,
  #category-featured .category-preview{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
}
[data-latest-page]:not(:first-child):not(:target),
[data-latest-pages]:has(>:target)>:first-child:not(:target),
[data-latest-page]:first-child:not(:target) [data-preview-overflow],
[data-latest-page]:not(:target) .latest-page-links{display:none}
.latest-page-links{display:flex;gap:8px;justify-content:center;margin-block:16px}
.latest-page-links a{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #526476;border-radius:6px;color:#c3e0f8}
.latest-page-links a[aria-current="page"]{border-color:#d4ed8b;color:#d4ed8b}

@media (min-width: 1440px) {
  .home-catalog:has([data-catalog-filter-root]) .container {
    width: min(1440px, calc(100% - 64px));
  }

  [data-catalog-filter-root] .catalog-with-ranks .product-grid:not([data-count="1"]),
  [data-catalog-filter="latest"]:not([data-catalog-expanded]) .category-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Each preview ends after two rows. Expanded lists keep all twelve cards per page. */
  [data-catalog-filter="latest"]:not([data-catalog-expanded]) .category-preview > :nth-child(9),
  [data-catalog-filter="latest"]:not([data-catalog-expanded]) #category-latest > .product-grid > :nth-child(9),
  [data-catalog-filter="all"] [data-catalog-members] > .product-grid > :nth-child(9),
  [data-latest-page]:first-child:not(:target) > .product-grid > :nth-child(9) {
    display: none;
  }
}

@media (max-width: 760px) {
  .home-page .container { width: calc(100% - 28px); }
  .home-page .portal-header .header-row { min-height: 56px; gap: 6px; }
  .home-page .portal-header .brand { gap: 7px; font-size: 19px; }
  .home-page .brand-mark { width: 28px; height: 28px; }
  .home-page .header-actions { gap: 5px; }
  .home-page .header-actions .history-button { width: 44px; min-height: 44px; padding: 0; }
  .home-page .header-actions .history-button span { display: none; }
  .home-page .language-picker summary { gap: 5px; padding-inline: 7px; white-space: nowrap; }
  .home-page .portal-header .main-nav { inset-block-start: 100%; }
  .home-page .compact-catalog { padding-block-start: 10px; }

  .home-page .popular-games { position: relative; margin-block-end: 7px; }
  .home-page .popular-heading { gap: 8px; padding-inline-end: 94px; }
  .home-page .popular-basis { min-height: 18px; margin-block-end: 4px; padding-inline-end: 94px; }
  .home-page .popular-carousel { position: static; padding-inline: 0; }
  .home-page .popular-list { --popular-gap: 10px; padding-block-end: 2px; }
  .home-page .popular-game { flex-basis: calc(50% - 16px); }
  .home-page .popular-game>a:focus-visible { outline-offset: -2px; }
  .home-page .popular-art { border-radius: 7px; }
  .home-page .popular-position { min-width: 22px; height: 23px; font-size: 14px; }
  .home-page .popular-name { margin-block-start: 4px; font-size: 13px; }
  .home-page .popular-arrow { inset-block-start: 0; width: 44px; height: 44px; border-color: #454b43; }
  .home-page .popular-arrow-previous { inset-inline-start: auto; inset-inline-end: 49px; }

  .home-page .catalog-browse-row { display: block; margin-block-end: 8px; }
  .home-page [data-catalog-filter-nav] {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding: 0 2px 2px;
  }
  .home-page [data-catalog-filter-nav]::-webkit-scrollbar { display: none; }
  .home-page [data-catalog-filter-nav] a { flex: none; min-height: 44px; padding: 5px 7px; font-size: 13px; }
  .home-page [data-catalog-filter-nav] a:focus-visible { outline-offset: -2px; }
  .home-page [data-catalog-filter-nav] a:hover { text-decoration: none; }
  .home-page [data-catalog-filter-nav] a[aria-current="true"] { border-block-end-color: #d4ed8b; }
  .home-page .catalog-update-note { margin-block-start: 5px; }

  .home-page .catalog-with-ranks { gap: 8px; }
  .home-page .global-board .board-header { position: relative; padding: 0; }
  .home-page .global-board:not([data-expanded]) .board-header { border-bottom: 0; }
  .home-page .global-board .board-heading { min-height: 44px; padding: 6px 12px; padding-inline-end: 42px; }
  .home-page .global-board .board-heading h2 { font-size: 14px; letter-spacing: 0; }
  .home-page .global-board .board-heading svg { width: 19px; height: 19px; }
  .home-page .global-board .board-toggle {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding-inline: 14px;
    border: 0;
    background: transparent;
    color: var(--board-accent);
    font-size: 0;
    transform: none;
  }
  .home-page .board-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
  }
  .home-page .global-board[data-expanded] .board-toggle::after { transform: translateY(2px) rotate(225deg); }
  .home-page .global-board .board-toggle:focus-visible { outline-offset: -3px; }

  .home-page .catalog-group-heading { flex-wrap: nowrap; margin-block-end: 2px; }
  .home-page .catalog-group-heading h2 { min-width: 0; font-size: 17px; overflow-wrap: anywhere; }
  .home-page .catalog-group-open { flex: none; max-width: 62%; padding-inline: 6px; border-color: transparent; background: transparent; }
  .home-page .catalog-group-open:hover { border-color: #526476; }
  .home-page .catalog-with-ranks .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-page .product-art { aspect-ratio: 2 / 1; }
  .home-page .catalog-with-ranks .product-copy { padding: 9px; }
  .home-page .catalog-with-ranks .product-title { font-size: 14px; line-height: 1.4; }
  .home-page .product-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .home-page .product-updated { margin-block-start: 3px; line-height: 1.45; }
  .home-page .product-description { margin-block: 5px 8px; font-size: 12px; line-height: 1.45; }
  .home-page .product-meta { gap: 5px; }
  .home-page .game-card-metrics { gap: 4px 8px; font-size: 12px; }
  .home-page .game-card-metric svg { width: 14px; height: 14px; }
}
