.player-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; }
.player-tools button, .player-tools > a { border: 1px solid #454064; border-radius: 8px; background: #201c38; color: #eeeafc; min-height: 40px; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.player-tools button:hover, .player-tools > a:hover { background: #31294d; color: #fff; }
.player-tools button[aria-pressed="true"] { background: #403269; border-color: #bca6ff; }
.player-tools button:focus-visible, .player-tools > a:focus-visible { outline: 2px solid #cab8ff; outline-offset: 3px; }
.player-library-note { font-size: 13px; color: #c8c1d9; margin-bottom: 10px; }
.player-tools .player-library-note { flex-basis: 100%; margin: 0; }
.player-load-status { padding: 8px 12px; font-size: 13px; line-height: 1.4; color: #e4dcfa; background: #242035; border-radius: 6px; }
.player-load-status[hidden], [data-saved-games-section][hidden] { display: none; }
.mobile-fs-topbar .player-load-status { flex: 1; margin-right: 8px; font-size: 12px; }
#similar-games { scroll-margin-top: 80px; }
.home-discovery-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; }
.home-discovery-links a, .saved-games-toggle { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 12px; border: 1px solid #454064; border-radius: 8px; color: #eeeafc; background: #201c38; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; }
.home-discovery-links a:hover, .saved-games-toggle:hover { color: #fff; background: #31294d; text-decoration: none; }
.home-discovery-links [data-reopen-game] { min-width: 0; max-width: min(100%, 360px); }
.home-discovery-links [data-reopen-game] > span { display: block; }
.home-discovery-links .home-reopen-link { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 24px; }
.home-discovery-links [hidden], .saved-games-toggle[hidden] { display: none; }
.saved-games-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 22px; margin-bottom: 10px; }
.saved-games-heading .section-header { margin: 0; }
.saved-games-toggle { cursor: pointer; }
#home-saved-games { scroll-margin-top: 80px; }
[data-saved-games] .saved-game-remove { position: absolute; top: 6px; right: 6px; z-index: 12; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid #aaa0c0; border-radius: 50%; background: #181426; color: #fff; font: 24px/1 sans-serif; cursor: pointer; }
[data-saved-games] .saved-game-remove:hover { background: #403269; }
.home-discovery-links a:focus-visible, .saved-games-toggle:focus-visible, [data-saved-games] .saved-game-remove:focus-visible { outline: 3px solid #cab8ff; outline-offset: 2px; }
@media (max-width: 768px) {
    /* Native lazy loading keeps this hidden iframe dormant until JS removes its source. */
    #desktopGameContainer { display: none; }
    #mobileGameOverlay { display: flex; }
    .player-tools button, .player-tools > a { flex: 1 1 auto; text-align: center; }
    [data-saved-games] .saved-game-remove { width: 44px; height: 44px; }
    .home-discovery-links a, .saved-games-toggle { min-height: 44px; }
}
