/* The catalogue's visual design; no styles are loaded by other game pages. */
[hidden], .hidden { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { min-width: 280px; min-height: 100vh; line-height: 1.5; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
.container { width: min(100%, 1280px); padding-inline: 24px; margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 100; padding: 12px 18px; background: #fff; color: var(--brand); border-radius: 12px; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: 10px; letter-spacing: .13em; font-weight: 700; text-transform: uppercase; }
.break-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 23px; border-bottom: 1px solid var(--border); }
.break-strip p { color: var(--muted); font-size: 11px; }
.break-strip p:first-child { display: flex; align-items: center; gap: 8px; color: #4a5541; }
.break-strip svg { width: 18px; height: 18px; }
.catalog { padding-block: 32px 42px; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.catalog-eyebrow { color: var(--muted); font-size: 9px; margin-bottom: 6px; }
.catalog-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.catalog h2 { font-size: 27px; font-weight: 900; line-height: 1.2; letter-spacing: -.045em; scroll-margin-top: 25px; }
.result-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.search { display: flex; align-items: center; gap: 9px; width: 285px; min-height: 46px; padding-inline: 14px; border: 1px solid #e0dcd4; border-radius: 100px; background: #fffdfb; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px #de293612; }
.search svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.search input { width: 100%; min-width: 0; height: 44px; outline: 0; border: 0; background: transparent; color: var(--text); font-size: 12px; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { display: none; }
.clear-search { width: 44px; height: 44px; margin-right: -13px; flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 23px; }
.clear-search:hover { background: var(--brand-soft); color: var(--brand); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 7px; padding: 9px 15px; border: 1px solid #e5e0d7; border-radius: 100px; color: #67635d; background: #fffdfb; text-decoration: none; font-size: 11px; font-weight: 600; transition: background .15s, color .15s; }
.chip:hover { color: var(--brand); background: var(--brand-soft); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-symbol { font-size: 16px; font-family: Arial, sans-serif; }
.chip .num { display: inline-grid; place-items: center; min-width: 21px; padding: 0 4px; border-radius: 100px; background: #f0ede7; color: #776f65; font-size: 9px; }
.chip.active .num { background: #ffffff26; color: #fff; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; position: relative; min-width: 0; overflow: hidden; border: 1px solid #e7e3db; border-radius: 19px; background: #fffdfb; color: var(--text); text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: #d0b8aa; box-shadow: 0 10px 24px #51412e12; }
.card-art { aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid #00000005; }
.card .lounge-art { transition: transform .25s; }
.card:hover .lounge-art { transform: scale(1.035); }
.card-body { padding: 16px 17px 15px; display: flex; flex-direction: column; flex: 1; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card .name { font-size: 16px; font-weight: 750; line-height: 1.3; letter-spacing: -.035em; overflow-wrap: anywhere; }
.card .badge { flex-shrink: 0; color: #817a70; font-size: 8px; padding: 3px 6px; background: #f4f1ec; border-radius: 5px; }
.card .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; font-size: 10px; color: var(--muted); line-height: 1.8; margin-top: 9px; }
.card .play { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; margin-top: auto; font-size: 10px; font-weight: 700; color: var(--brand); }
.card .play::after { content: '↗'; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #5b554b; background: #f4f1ec; font-size: 17px; }
.card:hover .play::after { background: var(--brand); color: #fff; }
.empty { border: 1px dashed #d8cfc2; border-radius: 20px; padding: 60px 24px; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 1100px) { .grid { gap: 17px; } .card-body { padding: 14px; } .card .name { font-size: 15px; } .card .badge { font-size: 7px; } }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 680px) { .break-strip { padding-block: 18px; } .break-strip p:last-child { display: none; } .catalog { padding-top: 26px; } .catalog-heading { align-items: flex-start; flex-direction: column; gap: 17px; } .catalog h2 { font-size: 25px; } .search { width: 100%; } .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; } .card .badge { display: none; } .card .name { font-size: 15px; } .card-body { padding: 12px; } .card .desc { font-size: 10px; min-height: 36px; margin-top: 6px; } .card .play { padding-top: 8px; } .filters { gap: 7px; } .chip { padding-inline: 13px; min-height: 42px; font-size: 10px; } .chip-symbol { display: none; } }
@media (max-width: 420px) { .container { padding-inline: 16px; } .catalog-title { gap: 8px; } .result-count { font-size: 10px; } .chip { padding-inline: 11px; } .chip .num { min-width: 17px; font-size: 8px; } }
@media (max-width: 330px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; animation: none !important; } .card:hover,.card:focus-visible,.explore:hover,.card:hover .lounge-art { transform: none; } }

/* A horizontal category bar keeps the full catalogue width available for play. */
.catalog { padding-block: 34px 48px; }
.catalog .catalog-heading { margin-bottom: 28px; align-items: center; }
.catalog .catalog-heading h2 { font-size: 32px; letter-spacing: -.05em; }
.catalog .catalog-eyebrow { letter-spacing: .14em; color: #786a58; }
.catalog .catalog-intro { margin-top: 10px; color: #756b5d; font-size: 12px; line-height: 1.7; text-wrap: pretty; }
.catalog .search { width: 316px; border-radius: 14px; min-height: 48px; background: #fffdfb; }
.category-sentinel { height: 1px; margin-top: -1px; pointer-events: none; }
.category-bar { position: sticky; top: 0; z-index: 30; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 28px; min-width: 0; min-height: 74px; margin-bottom: 22px; padding-block: 13px; border-block: 1px solid #e8e1d6; background: #faf8f5; }
.category-bar::before { content: ''; position: absolute; z-index: -1; inset: -1px -24px; background: #fffdfbf2; border-block: 1px solid #ffffffb3; box-shadow: 0 8px 26px -17px #51412e55; opacity: 0; transition: opacity .16s; pointer-events: none; }
.category-bar.is-stuck { background: transparent; border-color: transparent; }
.category-bar.is-stuck::before { opacity: 1; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .category-bar.is-stuck::before { background: #fffdfbb8; -webkit-backdrop-filter: blur(18px) saturate(145%); backdrop-filter: blur(18px) saturate(145%); }
}
.category-bar.is-stuck .chip:not(.active) { background: #fffdfb9c; border-color: #ffffffb3; box-shadow: inset 0 1px 0 #ffffff80; }
.category-bar.is-stuck .chip:not(.active):hover { background: #fffdfbde; border-color: #dfd5c6; }
.category-heading { display: flex; align-items: center; gap: 9px; flex-shrink: 0; padding-right: 25px; border-right: 1px solid #e4ddcf; }
.category-heading h2 { color: #564a3b; font-size: 13px; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; }
.category-spark { color: #b29061; font-size: 21px; }
.catalog .filters { display: flex; flex-direction: row; flex: 0 1 auto; min-width: 0; gap: 8px; margin: 0; padding: 4px; border: 0; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #d2c3b1 transparent; }
.catalog .chip { display: inline-flex; flex: 0 0 auto; justify-content: center; gap: 8px; min-height: 44px; width: auto; padding: 10px 15px; border: 1px solid #e6ded1; border-radius: 100px; background: #fffdfb; color: #726658; font-size: 12px; line-height: 1.5; }
.catalog .chip:hover { background: #f5f0e7; border-color: #d9cabb; color: #453b30; }
.catalog .chip.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 10px #de293617; }
.catalog .chip-symbol { display: grid; place-items: center; width: 18px; flex-shrink: 0; font-size: 16px; font-family: Arial, sans-serif; }
.catalog .chip .num { flex-shrink: 0; min-width: 22px; padding: 1px 4px; background: #f0ebe2; color: #7c6d5b; font-size: 9px; }
.catalog .chip.active .num { background: #ffffff28; color: #fff; }
.browse-results { min-width: 0; scroll-margin-top: calc(var(--catalog-nav-height, 74px) + 16px); }
.catalog .card, .catalog h2 { scroll-margin-top: calc(var(--catalog-nav-height, 74px) + 16px); }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 32px; margin-bottom: 16px; }
.library-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 13px; min-width: 0; }
.library-title h1 { color: #3f392f; font-size: 18px; line-height: 1.25; font-weight: 750; letter-spacing: -.035em; }
.catalog .result-count { font-size: 10px; color: #756b5d; }
.catalog .grid { --catalog-columns: 4; display: grid; grid-template-columns: repeat(var(--catalog-columns), minmax(0, 1fr)); gap: 24px 20px; }
.catalog .card { --card-shadow: #ded7c9; --card-paper: #f3f0e7; position: relative; display: flex; flex-direction: column; padding: 8px; overflow: visible; border: 1px solid #e2dbce; border-radius: 22px; background: #fffdfa; color: var(--text); box-shadow: 0 5px 0 -1px var(--card-shadow), 0 9px 16px -10px #58462d25; transition: transform .18s cubic-bezier(.2,.75,.25,1), box-shadow .18s, border-color .18s; }
.catalog .card[data-cat=Arcade] { --card-shadow: #d2ddc9; --card-paper: #f0f5e8; }
.catalog .card[data-cat=Puzzle] { --card-shadow: #ded4ea; --card-paper: #f3eef9; }
.catalog .card[data-cat=Action] { --card-shadow: #e8d3c7; --card-paper: #fbefe8; }
.catalog .card[data-cat=Classic] { --card-shadow: #d8d9d2; --card-paper: #eff0e9; }
.catalog .card:hover, .catalog .card:focus-visible { transform: translateY(-5px); border-color: #d7b7a8; box-shadow: 0 8px 0 -1px var(--card-shadow), 0 16px 25px -13px #58462d33; }
.catalog .card:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--card-shadow); }
.catalog .card-art { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border: 0; border-radius: 15px; background: var(--card-paper); }
.catalog .card-art::after { content: ''; position: absolute; width: 27px; height: 6px; right: 13px; bottom: 11px; background: radial-gradient(circle, #ffffffbd 2px, transparent 2.7px) 0 0 / 9px 6px; pointer-events: none; }
.catalog .card .lounge-art { transition: transform .28s cubic-bezier(.2,.7,.3,1); }
.catalog .card:hover .lounge-art, .catalog .card:focus-visible .lounge-art { transform: scale(1.055); }
.catalog .card .badge { position: absolute; z-index: 1; left: 11px; top: 11px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 22px); padding: 4px 8px; border: 1px solid #ffffffb3; border-radius: 100px; background: #fffffff0; color: #645d51; font-size: 8px; line-height: 1.5; font-weight: 650; letter-spacing: .01em; }
.catalog .card .badge::before { content: ''; width: 4px; height: 4px; flex-shrink: 0; background: #b2866a; border-radius: 50%; }
.catalog .card-body { display: flex; flex: 1; flex-direction: column; padding: 16px 10px 9px; }
.catalog .card .name { color: #332e27; font-size: 20px; line-height: 1.2; font-weight: 750; letter-spacing: -.045em; overflow-wrap: anywhere; }
.catalog .card .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 41px; margin: 9px 0 16px; color: #756b5d; font-size: 12px; line-height: 1.7; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 12px; border-top: 1px dashed #e8e0d3; }
.card-instant { display: inline-flex; align-items: center; gap: 5px; color: #756b5d; font-size: 10px; }
.instant-bolt { color: #b29a70; font-size: 17px; }
.catalog .card .play { display: inline-flex; align-items: center; justify-content: space-between; gap: 17px; min-width: 94px; min-height: 40px; margin: 0; padding: 8px 12px; border: 1px solid #eddad0; border-radius: 100px; background: #fff0e9; color: #ba343b; font-size: 10px; line-height: 1.5; font-weight: 750; letter-spacing: .035em; }
.catalog .card .play::after { content: '↗'; width: auto; height: auto; display: inline; color: currentColor; background: transparent; font-size: 16px; line-height: 1; border-radius: 0; }
.catalog .card:hover .play, .catalog .card:focus-visible .play { background: var(--brand); border-color: var(--brand); color: #fff; }
.catalog .card:hover .play::after { background: transparent; color: currentColor; }
.catalog .empty { padding: 60px 24px; background: #fffdfb; }
@media (min-width: 1440px) { .catalog .card-art { aspect-ratio: 16 / 9; } }
@media (max-width: 1100px) {
  .category-bar { gap: 18px; }
  .category-heading { padding-right: 17px; }
  .catalog .chip { padding-inline: 12px; }
  .catalog .grid { gap: 22px 15px; }
  .catalog .card .name { font-size: 18px; }
  .catalog .card-body { padding-inline: 7px; }
  .card-instant { display: none; }
  .catalog .card .play { width: 100%; }
}
@media (max-width: 900px) {
  .category-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0; }
  .catalog .grid { --catalog-columns: 3; }
  .catalog .card-body { padding-inline: 10px; }
  .catalog .card .name { font-size: 20px; }
  .catalog .card .play { width: auto; }
  .card-instant { display: inline-flex; }
}
@media (max-width: 700px) {
  .catalog { padding-top: 28px; }
  .catalog .catalog-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 19px; }
  .catalog .catalog-heading h2 { font-size: 28px; }
  .catalog .catalog-intro { font-size: 12px; margin-top: 8px; }
  .catalog .search { width: 100%; }
  .category-bar { min-height: 68px; padding-block: 9px; margin-bottom: 18px; }
  .catalog .grid { --catalog-columns: 2; gap: 20px 14px; }
  .library-toolbar { margin-bottom: 14px; }
  .catalog .result-count { font-size: 10px; }
  .catalog .card { padding: 6px; border-radius: 18px; }
  .catalog .card-art { aspect-ratio: 1.4; border-radius: 12px; }
  .catalog .card .badge { top: 8px; left: 8px; padding: 3px 6px; font-size: 7px; }
  .catalog .card-body { padding: 13px 6px 6px; }
  .catalog .card .name { font-size: 18px; }
  .catalog .card .desc { font-size: 11px; min-height: 38px; margin: 8px 0 12px; }
  .card-instant { display: none; }
  .card-footer { padding-top: 10px; }
  .catalog .card .play { width: 100%; min-height: 39px; padding-inline: 11px; font-size: 10px; }
}
@media (max-width: 420px) {
  .catalog .catalog-heading h2 { font-size: 26px; }
  .catalog .chip { gap: 6px; padding-inline: 11px; font-size: 10px; }
  .catalog .chip-symbol { width: 15px; }
  .catalog .card .name { font-size: 16px; }
  .catalog .card .badge { font-size: 7px; }
  .library-title { gap: 5px 10px; }
  .category-bar::before { inset-inline: -16px; }
}
@media (max-width: 330px) {
  .catalog .grid { --catalog-columns: 1; }
  .catalog .card-art { aspect-ratio: 16 / 9; }
  .catalog .card .name { font-size: 21px; }
  .catalog .card .desc { font-size: 11px; }
  .catalog .card .play { width: auto; }
  .card-instant { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog .card:hover, .catalog .card:focus-visible, .catalog .card:active, .catalog .card:hover .lounge-art, .catalog .card:focus-visible .lounge-art { transform: none; }
}
