/* A compact phone library; colors continue to come from Sponsor Studio. */
#home { padding-top: 62px; max-width: 700px; }
#home .home-card { max-width: 650px; }
#home .home-logo { width: 36px; height: 36px; margin-bottom: 5px; }
#home h1 { font-size: 1.7rem; }
#home .tagline { margin: 7px auto 17px; }
#btnResume { width: 100%; margin-bottom: 14px; }
.librarySearch { display: flex; align-items: center; width: 100%; gap: 6px; padding: 0 8px 0 14px; border-radius: 14px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.librarySearch > span { font-size: 1.3rem; color: var(--ink-dim); }
#gameSearch { width: 100%; min-width: 0; height: 48px; padding: 8px 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; outline-offset: 0; }
#gameSearch::placeholder { color: var(--ink-dim); opacity: 1; }
#gameSearchClear { width: 44px; min-width: 44px; padding: 4px; font-size: 1.25rem; }
.libraryFilters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 18px; }
.libraryFilters .btn { min-height: 44px; padding: 7px 12px; border-radius: 999px; font-size: .8rem; }
.libraryFilters [aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: transparent; font-weight: 800; }
.libraryTitle { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; margin: 16px 0 10px; }
.libraryTitle h2 { font-size: .95rem; font-weight: 750; }
.libraryTitle output { color: var(--ink-dim); font-size: .75rem; white-space: nowrap; }
#home #gameLibrary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#home #gameLibrary .gameBtn { grid-column: auto; flex-direction: column; min-height: 156px; padding: 12px 8px; gap: 6px; border-radius: 16px; text-align: center; }
#home #gameLibrary .gIcon { width: 44px; height: 44px; border-radius: 13px; padding: 4px; }
#home #gameLibrary [data-game-id="empire"] .empireIcon { width: 100%; height: 58px; padding: 0; overflow: hidden; border-radius: 10px; }
.empireIcon img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; border-radius: inherit; }
.gameName { font-size: .86rem; line-height: 1.2; }
.gameSummary { color: var(--ink-dim); font-size: .7rem; line-height: 1.35; font-weight: 400; }
.gameMeta { color: var(--ink-dim); font-size: .63rem; font-weight: 650; margin-top: auto; }
#home #gameLibrary .newGame .gIcon { background: color-mix(in srgb, var(--accent) 38%, transparent); }
.newGame .gameName::after { content: 'NEW'; display: inline-block; margin-left: 5px; font-size: .48rem; vertical-align: middle; padding: 3px 4px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); }
.recentGameList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.recentGame { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 7px 8px; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 12px; background: var(--panel); color: var(--ink); cursor: pointer; text-align: left; font: inherit; font-size: .74rem; font-weight: 650; }
.recentGame .gIcon { width: 28px; height: 28px; flex: none; }
.recentGame .gIcon svg { width: 100%; height: 100%; }
.recentGame:focus-visible { outline: 3px solid var(--hl-ring); outline-offset: 2px; }
.libraryEmpty { padding: 22px 14px; background: var(--panel); border-radius: 16px; }
.libraryEmpty p { font-size: .85rem; color: var(--ink-dim); margin-bottom: 12px; }
@media (min-width: 600px) { #home #gameLibrary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .recentGameList { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 350px) { .libraryFilters .btn { padding-inline: 9px; } #home #gameLibrary .gameBtn { padding-inline: 6px; } .gameName { font-size: .79rem; } }
