.catalog { --catalog-card: #202526; --catalog-edge: #373d3d; }
.catalog .section-heading { align-items: center; margin-bottom: 20px; }
.catalog .section-heading h2 { letter-spacing: -.8px; }
.catalog-toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 14px; }
.catalog-search { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 15px; min-height: 52px; border: 1px solid #414846; background: #202625; border-radius: 13px; color: #c2cac0; transition: border-color .15s, box-shadow .15s; }
.catalog-search:focus-within { border-color: var(--orange, #fa936b); box-shadow: 0 0 0 3px #fa936b14; }
.catalog-search > svg { flex: none; opacity: .8; }
.catalog-search input { width: 100%; min-width: 0; padding: 14px 0; color: #f2eee5; background: transparent; border: 0; outline: 0; border-radius: 0; font-size: 14px; -webkit-appearance: none; appearance: none; }
.catalog-search input::placeholder { color: #8d9993; }
.catalog-search input::-webkit-search-cancel-button { display: none; }
.catalog-search button { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #ffffff0b; color: #c2cac0; font-size: 23px; line-height: 1; }
.catalog-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.catalog-filters::-webkit-scrollbar { display: none; }
.catalog-filters button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 8px 14px; border: 1px solid #343d38; border-radius: 22px; color: #a5b0a7; background: transparent; font-size: 11px; white-space: nowrap; transition: background .15s, color .15s; }
.catalog-filters button[aria-pressed="true"] { background: #dce6d2; color: #29382c; border-color: #dce6d2; }
.catalog-filters button span { font-size: 16px; line-height: 10px; }
.catalog-status-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin: 0 0 14px; }
#catalog-status { color: #9ca69f; font-size: 11px; line-height: 1.6; margin: 0; }
#catalog-status.is-error { color: #ffad94; }
.catalog-status-line .text-button { padding: 2px 0; }
.catalog #games { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 20px; align-items: stretch; }
.catalog-card { position: relative; min-width: 0; background: var(--catalog-card); border: 1px solid var(--catalog-edge); border-radius: 15px; overflow: hidden; box-shadow: 0 5px 18px #0000000c; }
.catalog-cover { position: relative; aspect-ratio: 1; background: #161c1c; overflow: hidden; margin: 7px 7px 0; border-radius: 9px; }
.catalog-cover-image { display: block; position: absolute; width: 100%; height: 100%; inset: 0; object-fit: contain; background: #141818; transition: transform .25s ease; }
.catalog-cover-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #83968a; font-size: 10px; background: linear-gradient(145deg, #29372f, #1a2220); }
.catalog-cover-mark { font-size: 39px; font-weight: 400; opacity: .5; }
.catalog-favorite { position: absolute; z-index: 1; right: 8px; top: 8px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #ffffff2a; border-radius: 50%; color: #fff; background: #151d1acc; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 23px; line-height: 1; text-shadow: 0 1px 3px #0005; }
.catalog-favorite[aria-pressed="true"] { color: #ffae89; background: #2b2925e6; }
.catalog-card-detail { display: flex; flex-direction: column; padding: 14px 13px 13px; }
.catalog-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; margin: 0; color: #f0efe6; font-size: 13px; line-height: 1.45; font-weight: 600; letter-spacing: -.2px; }
.catalog-card-meta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 5px 0 12px; color: #94a39a; font-size: 9px; min-height: 14px; }
.catalog-play { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 39px; border-radius: 7px; padding: 9px 12px; color: #e6eee0; background: #35463b; border: 1px solid #536653; font-size: 11px; font-weight: 600; transition: background .15s, border-color .15s; }
.catalog-play-arrow { font-size: 16px; font-weight: 400; }
.catalog-play:disabled { opacity: .55; cursor: wait; }
.catalog-play.is-loading { color: #ffcbaf; border-color: #b88164; opacity: 1; }
.catalog-play.is-loading .catalog-play-arrow { display: inline-block; animation: catalog-spin 1s linear infinite; }
.catalog-patch { width: 100%; padding: 0 13px 12px; text-align: left; color: #91a496; background: transparent; font-size: 9px; }
.catalog-more { display: flex; justify-content: center; margin-top: 25px; }
.catalog-more button { min-width: 180px; font-size: 11px; }
.catalog-more button span { margin-left: 18px; }
.catalog-empty { grid-column: 1 / -1; min-height: 280px; padding: 40px 24px; border: 1px dashed #3c4740; border-radius: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #1c24207a; }
.catalog-empty-icon { display: inline-block; color: #9eb294; font-size: 35px; margin-bottom: 16px; }
.catalog[aria-busy="true"] .catalog-empty-icon { animation: catalog-spin 2s linear infinite; }
.catalog-empty h3 { color: #dfe6d7; font-size: 16px; margin: 0 0 9px; font-weight: 500; }
.catalog-empty p { color: #91a395; font-size: 12px; line-height: 1.7; max-width: 300px; margin: 0; }
.catalog-empty button { margin-top: 20px; font-size: 11px; }
.catalog-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.catalog button:focus-visible { outline: 2px solid var(--orange, #fa936b); outline-offset: 3px; }
@keyframes catalog-spin { to { transform: rotate(360deg); } }
@media (hover: hover) { .catalog-card:hover .catalog-cover-image { transform: scale(1.025); } .catalog-play:hover:not(:disabled) { background: #435d48; border-color: #809b73; } .catalog-favorite:hover { background: #2c3b32f5; } }
@media (min-width: 800px) { .catalog-toolbar { flex-direction: row; align-items: center; gap: 20px; } .catalog-search { max-width: 440px; } .catalog-filters { margin-left: auto; } }
@media (max-width: 500px) { .catalog #games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; } .catalog .section-heading h2 { font-size: 23px; } .catalog-cover { margin: 5px 5px 0; border-radius: 8px; } .catalog-card { border-radius: 12px; } .catalog-card-detail { padding: 11px 10px 10px; } .catalog-card h3 { font-size: 12px; min-height: 35px; } .catalog-card-meta { font-size: 8px; margin-bottom: 10px; } .catalog-favorite { width: 31px; height: 31px; right: 6px; top: 6px; font-size: 21px; } .catalog-filters { gap: 6px; } .catalog-filters button { padding: 8px 12px; font-size: 10px; } .catalog-search { min-height: 49px; padding: 0 13px; } .catalog-search input { font-size: 16px; } .catalog-play { padding: 8px 10px; min-height: 38px; } }
@media (max-width: 350px) { .catalog .section-heading h2 { font-size: 21px; } .catalog .section-heading > .text-button { font-size: 10px; } .catalog-filters button { padding: 8px 10px; } .catalog-card-detail { padding: 10px 8px 9px; } }
@media (max-width: 600px) {
  .lobby-main > .intro { min-height: 0; padding: 27px 0 26px; }
  .lobby-main > .intro h1 { font-size: 36px; line-height: 1.04; letter-spacing: -1.6px; margin-top: 14px; }
  .lobby-main > .intro .intro-copy { font-size: 12px; line-height: 1.6; margin-top: 12px; max-width: 310px; }
  .lobby-main > .intro .intro-art, .lobby-main > .intro .intro-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) { .catalog *, .catalog *::before { animation: none !important; transition: none !important; } }
