/* Compact catalog. Scoped to the platform lobby, never to a mounted game. */
.lobby-view { max-width: 980px; margin: auto; padding: 28px 32px 20px; }
.lobby-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.lobby-heading h1 { font-size: 28px; letter-spacing: -.8px; margin: 0; line-height: 1.4; }
.lobby-heading h1 > span { color: #7b9c62; }
.lobby-heading .intro { font-size: 12px; margin: 4px 0 0; max-width: none; color: #79867e; }
.lobby-heading .host-tag { font-size: 10px; padding: 5px 10px; margin: 0; background: #e5edda; color: #5c7b43; border-radius: 30px; white-space: nowrap; }
.game-search-box { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 13px; background: #fff; border: 1px solid #e0e6dd; border-radius: 13px; }
.game-search-box:focus-within { border-color: #7e9e69; box-shadow: 0 0 0 3px #92b77a16; }
.game-search-box > svg { width: 18px; height: 18px; stroke: #7e9080; stroke-width: 1.7; fill: none; flex-shrink: 0; }
.game-search-box input { width: 100%; min-width: 0; margin: 0; padding: 11px 0; border: 0; box-shadow: none; outline: none; background: none; border-radius: 0; font-size: 13px; color: var(--ink); }
.game-search-box input::placeholder { color: #96a096; }
.game-search-box input::-webkit-search-cancel-button { display: none; }
.game-search-box > button { border: 0; background: #f1f4ed; color: #6f826f; border-radius: 50%; flex-shrink: 0; width: 30px; height: 30px; padding: 0; font-size: 20px; }
.search-hint { font-size: 10px; color: #9aa48f; white-space: nowrap; }
.catalog-tabs { display: flex; gap: 22px; border-bottom: 1px solid #e1e7db; margin-top: 12px; }
.catalog-tabs > button { position: relative; border: 0; color: #899286; background: transparent; padding: 10px 2px 12px; min-height: 44px; font-size: 14px; }
.catalog-tabs > button.active { color: var(--ink); font-weight: 700; }
.catalog-tabs > button.active::after { content: ''; position: absolute; bottom: -1px; height: 3px; border-radius: 3px; left: 2px; right: 2px; background: #355d42; }
#catalog-total { display: inline-block; font: 10px/17px 'Segoe UI',sans-serif; min-width: 17px; border-radius: 5px; padding: 0 3px; margin-left: 3px; background: #e5edda; color: #58744a; vertical-align: middle; }
.catalog-caption { display: flex; justify-content: space-between; gap: 8px; padding: 12px 1px 9px; font-size: 10px; color: #7b887b; }
#catalog-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.game-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.game-card { min-width: 0; text-align: left; color: var(--ink); transition: border-color .15s, transform .15s; }
.game-catalog .game-card { display: flex; align-items: center; gap: 12px; padding: 13px; min-height: 98px; border-radius: 15px; background: #ffffffc9; border: 1px solid #e0e7db; box-shadow: 0 2px 2px #294d2310; overflow: hidden; }
.game-catalog .game-card:not(:disabled):hover { transform: translateY(-1px); border-color: #9cb488; background: #fff; }
.game-catalog .game-card:disabled { opacity: .65; }
.game-thumbnail { position: relative; display: grid; place-items: center; height: 62px; width: 62px; border-radius: 16px; flex-shrink: 0; overflow: hidden; box-shadow: inset 0 0 0 1px #00000004; }
.game-thumbnail::after { content: ''; position: absolute; width: 80px; height: 80px; border-radius: 50%; border: 1px solid currentColor; opacity: .08; right: -45px; top: -38px; }
.game-thumbnail > svg { width: 47px; height: 47px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.game-thumbnail > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tone-apricot { background: #f5e4d6; color: #b46e47; }
.tone-blue { background: #e2eaf1; color: #5e7d96; }
.tone-sage { background: #e5edd7; color: #628549; }
.tone-lavender { background: #eae6ef; color: #8b759b; }
.tone-night { background: #2b374d; color: #f3d89b; }
.game-catalog .game-card-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0; gap: 3px; min-width: 0; flex: 1; }
.game-card-title { font-size: 15px; font-weight: 700; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.game-card-description { font-size: 11px; line-height: 1.5; color: #7b887c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.game-card-meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; font-size: 10px; line-height: 1.5; color: #7b8876; }
.game-category { color: #6a805d; background: #f0f3e9; border-radius: 4px; padding: 1px 5px; }
.game-players { white-space: nowrap; }
.game-play-count { color: #9b7847; font-variant-numeric: tabular-nums; }
.game-launch { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid #dde6d5; border-radius: 50%; background: #f4f7ee; color: #476743; font-size: 12px; }
.game-unavailable { flex: 0 0 48px; font-size: 10px; color: #8b9385; text-align: center; }
.game-rank { width: 20px; flex-shrink: 0; color: #8c998b; font: italic 500 16px Georgia,serif; text-align: center; }
.game-rank.leading { color: #b78842; }
.catalog-empty { text-align: center; padding: 36px 18px; border: 1px dashed #dce4d4; border-radius: 15px; background: #fafbf7; }
.catalog-empty > span { display: block; font-size: 32px; color: #afc095; margin-bottom: 10px; }
.catalog-empty strong { font-size: 15px; }.catalog-empty p { font-size: 12px; color: #7e8a7b; }
.catalog-empty .button { font-size: 12px; margin-top: 8px; }
.lobby-note { display: block; text-align: center; font-size: 10px; letter-spacing: 2px; margin: 18px 0 0; color: #9ba68f; }
#catalog-status:empty { display: none; }
@media(max-width:600px) {
  .lobby-view { padding: 18px 16px 18px; }
  .lobby-heading { margin-bottom: 14px; }
  .lobby-heading h1 { font-size: 24px; }
  .lobby-heading .intro { font-size: 11px; margin: 3px 0 0; }
  .lobby-heading .host-tag { font-size: 9px; padding: 4px 8px; }
  .search-hint { display: none; }
  .game-catalog { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .game-catalog .game-card { padding: 10px 12px; min-height: 88px; gap: 11px; border-radius: 14px; }
  .game-thumbnail { width: 56px; height: 56px; border-radius: 14px; }
  .game-thumbnail > svg { width: 43px; height: 43px; }
  .catalog-tabs { margin-top: 6px; gap: 26px; }
  .catalog-caption { padding-top: 10px; }
}
@media(max-width:350px) {
  .lobby-view { padding-inline: 12px; }
  .lobby-heading h1 { font-size: 22px; }
  .lobby-heading .host-tag { font-size: 8px; padding-inline: 6px; }
  .game-catalog .game-card { padding-inline: 9px; gap: 8px; }
  .game-thumbnail { width: 48px; height: 52px; }
  .game-card-title { font-size: 14px; }.game-launch { width: 30px; height: 30px; }
  .game-card-meta { gap: 4px; font-size: 9px; }.game-rank { width: 15px; }
}
