/*
 * Główne style Omnistats.
 *
 * Plik jest podzielony na dwie części:
 * - publiczne ekrany przed logowaniem,
 * - prywatny shell po zalogowaniu, odtworzony na podstawie designu z raw/design.png.
 *
 * Projekt używa Symfony Asset Mapper, więc `assets/app.js` importuje ten plik
 * bez dodatkowej konfiguracji Webpacka.
 */

:root {
    color-scheme: light;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    --public-background: #f6f7f9;
    --public-surface: #ffffff;
    --public-text: #172033;
    --public-muted: #5a6578;
    --private-background: #070b12;
    --private-surface: #0e1824;
    --private-surface-strong: #121f2e;
    --private-border: rgba(128, 164, 204, 0.18);
    --private-text: #f4f7fb;
    --private-muted: #a9b5c6;
    --accent-blue: #36a3ff;
    --accent-blue-strong: #1687e8;
    --accent-green: #3ddc97;
    --accent-amber: #f2b84b;
    --accent-violet: #9b7cff;
    --danger: #d75b66;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--public-text);
    background: var(--public-background);
}

a {
    color: inherit;
}

.app-shell svg {
    display: block;
    width: 100%;
    height: 100%;
}

.app-shell svg path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

/*
 * Publiczny shell przed logowaniem.
 * Te style zostają proste, bo formularze rejestracji i logowania nie są częścią
 * ciemnego dashboardu po zalogowaniu.
 */
.app-shell-public {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 28px;
}

.app-brand {
    color: var(--public-text);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.app-nav,
.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.app-nav-link {
    color: #3b4658;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.app-panel {
    max-width: 760px;
    padding: 28px;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: var(--public-surface);
}

/*
 * Klasa dla tekstu dostępnego dla czytników ekranu, ale niewidocznego wizualnie.
 * Przydaje się, gdy projekt graficzny nie potrzebuje widocznego nagłówka, a
 * HTML nadal powinien mieć dobrą strukturę semantyczną.
 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-eyebrow {
    margin: 0 0 12px;
    color: var(--public-muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.app-title {
    margin: 0 0 16px;
    color: var(--public-text);
    font-size: 48px;
    line-height: 1;
    letter-spacing: 0;
}

.app-copy {
    max-width: 640px;
    margin: 0;
    color: #3b4658;
    font-size: 18px;
    line-height: 1.6;
}

.auth-panel {
    max-width: 560px;
}

.account-panel {
    max-width: 720px;
}

.steam-library-panel,
.steam-wishlist-panel,
.steam-game-panel,
.steam-achievement-panel {
    max-width: 1040px;
}

.auth-title {
    font-size: 42px;
}

.auth-copy {
    font-size: 16px;
}

.button-row {
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background: #2457d6;
    color: #ffffff;
}

.button-secondary {
    border-color: #c8d0df;
    background: #ffffff;
    color: var(--public-text);
}

.button-danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #ffffff;
}

.button:disabled {
    border-color: #d5dbe6;
    background: #eef1f6;
    color: #7a8495;
    cursor: not-allowed;
}

.inline-form {
    margin: 0;
}

.form-stack {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: #283449;
    font-size: 14px;
    font-weight: 800;
}

.form-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #c8d0df;
    border-radius: 8px;
    background: #ffffff;
    color: var(--public-text);
    font: inherit;
}

.form-input:focus {
    border-color: #2457d6;
    outline: 3px solid rgba(36, 87, 214, 0.18);
}

.form-hint {
    margin: 0;
    color: #69758a;
    font-size: 13px;
    line-height: 1.5;
}

.form-submit {
    width: fit-content;
}

.auth-side-link {
    margin: 18px 0 0;
    color: #3b4658;
    font-size: 15px;
}

.auth-side-link a {
    font-weight: 800;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.settings-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e5e9f0;
}

.section-title {
    margin: 0;
    color: var(--public-text);
    font-size: 22px;
    letter-spacing: 0;
}

.choice-field>div {
    display: grid;
    gap: 10px;
}

.choice-field label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #283449;
    font-weight: 700;
}

.choice-field input {
    margin: 0;
}

.danger-panel {
    border-color: #e6a1a1;
}

/*
 * Prywatny shell po zalogowaniu.
 * Układ odpowiada designowi: stały sidebar, topbar i właściwy obszar roboczy.
 */
.app-body-private {
    color-scheme: dark;
    color: var(--private-text);
    background:
        linear-gradient(180deg, rgba(9, 15, 25, 0.98), rgba(5, 9, 15, 1)),
        var(--private-background);
}

.app-shell-private {
    display: grid;
    grid-template-columns: 234px minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
}

.app-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 24px 16px;
    border-right: 1px solid var(--private-border);
    background:
        linear-gradient(180deg, rgba(12, 23, 36, 0.98), rgba(7, 15, 24, 0.98)),
        #0a121d;
}

.app-sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    color: var(--private-text);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.app-brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--accent-blue);
}

.app-sidebar-nav {
    display: grid;
    gap: 8px;
    margin-top: 36px;
}

.app-sidebar-link {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--private-muted);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.app-sidebar-link::before {
    position: absolute;
    left: -16px;
    width: 3px;
    height: 100%;
    border-radius: 0 6px 6px 0;
    background: transparent;
    content: "";
}

.app-sidebar-link:hover,
.app-sidebar-link.is-active {
    border-color: rgba(75, 161, 255, 0.18);
    background: rgba(52, 115, 190, 0.14);
    color: var(--private-text);
}

.app-sidebar-link.is-active::before {
    background: var(--accent-blue);
}

.app-sidebar-icon {
    width: 24px;
    height: 24px;
    color: currentColor;
}

.app-sidebar-icon svg path[fill="currentColor"],
.app-sidebar-icon svg circle[fill="currentColor"] {
    fill: currentColor;
    stroke: none;
}

.app-sidebar-status {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding: 18px 16px;
    border: 1px solid var(--private-border);
    border-radius: 8px;
    background: rgba(15, 28, 43, 0.88);
}

.app-sidebar-status.is-steam-level-card {
    gap: 18px;
    padding: 20px 16px 16px;
    border-color: rgba(65, 107, 145, 0.34);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(19, 37, 55, 0.94), rgba(10, 22, 35, 0.96)),
        rgba(15, 28, 43, 0.92);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-sidebar-status-mark {
    display: block;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(54, 163, 255, 0.6);
    border-radius: 50%;
    box-shadow: inset 0 0 0 6px rgba(54, 163, 255, 0.12);
}

.app-sidebar-status p,
.app-sidebar-status strong {
    margin: 0;
}

.app-sidebar-status p {
    color: var(--private-muted);
    font-size: 12px;
}

.app-sidebar-status strong {
    overflow-wrap: anywhere;
    font-size: 18px;
}

.app-sidebar-steam-level-header {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 14px;
}

.app-sidebar-steam-emblem {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #4ba7ff;
}

.app-sidebar-steam-emblem svg {
    width: 54px;
    height: 54px;
    fill: rgba(54, 163, 255, 0.2);
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.app-sidebar-steam-level-header p,
.app-sidebar-steam-xp p {
    color: #99a9ba;
    font-size: 13px;
    font-weight: 700;
}

.app-sidebar-steam-level-header strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
}

.app-sidebar-steam-xp {
    display: grid;
    gap: 9px;
    padding-top: 15px;
    border-top: 1px solid rgba(105, 141, 173, 0.16);
}

.app-sidebar-steam-xp strong {
    color: #dfe8f3;
    font-size: 15px;
}

.app-sidebar-steam-xp-track {
    display: block;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(91, 118, 145, 0.24);
}

.app-sidebar-steam-xp-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #48a9ff;
}

.app-sidebar-status a {
    color: #9fcaff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.app-sidebar-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(105, 141, 173, 0.18);
    border-radius: 8px;
    color: #dce7f4;
    background: rgba(12, 26, 40, 0.42);
}

.app-sidebar-profile-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.app-sidebar-logout {
    margin: 12px 0 0;
}

.app-sidebar-logout button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--private-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.app-sidebar-logout button:hover {
    border-color: rgba(215, 91, 102, 0.32);
    background: rgba(215, 91, 102, 0.08);
    color: #ffb7bd;
}

.app-sidebar-logout span {
    width: 20px;
    height: 20px;
}

.app-workspace {
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 80px;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(128, 164, 204, 0.08);
    background: rgba(7, 12, 20, 0.82);
    backdrop-filter: blur(18px);
}

.app-search-strip {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: min(398px, 34vw);
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--private-border);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.88);
}

.app-search-icon {
    width: 22px;
    height: 22px;
    color: #91a4ba;
}

.app-search-strip input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--private-text);
    font: inherit;
    font-size: 14px;
}

.app-search-strip input::placeholder {
    color: #7f8d9e;
}

.app-platform-filter,
.app-sync-button,
.app-notification-button,
.app-user-pill {
    min-height: 48px;
    border: 1px solid var(--private-border);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.88);
    color: var(--private-text);
    font: inherit;
    text-decoration: none;
}

.app-platform-filter {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    color: var(--private-muted);
    cursor: pointer;
}

.app-platform-filter svg {
    width: 18px;
    height: 18px;
}

.app-topbar-spacer {
    flex: 1 1 auto;
}

.app-topbar-sync-form {
    margin: 0;
}

.app-sync-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.app-sync-button>span:first-child {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.app-sync-button>span:not(:first-child) {
    width: auto;
    height: auto;
}

.app-sync-button:hover,
.app-sync-button:focus-visible {
    border-color: rgba(54, 163, 255, 0.45);
    background: rgba(54, 163, 255, 0.12);
}

.app-sync-button:disabled {
    color: #7f8d9e;
    cursor: not-allowed;
}

.app-notification-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    padding: 0;
    cursor: pointer;
}

.app-notification-button svg {
    width: 24px;
    height: 24px;
    color: var(--private-muted);
}

.app-notification-button span {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #2f7ee8;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

.app-user-pill {
    display: grid;
    grid-template-columns: 42px auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 0 14px 0 8px;
}

.app-user-pill img,
.app-user-pill>span {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.app-user-pill>span {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2f7ee8, #6f5bd8);
    color: #ffffff;
    font-weight: 900;
}

.app-user-pill strong,
.app-user-pill small {
    display: block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-pill strong {
    font-size: 14px;
}

.app-user-pill small {
    color: var(--private-muted);
    font-size: 12px;
}

.app-content {
    --app-content-inline-padding: 22px;
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: 0 var(--app-content-inline-padding) 32px;
}

/*
 * Dashboard konta.
 * Elementy są powtarzalne i oparte na komponentach Twig z templates/components/app.
 */
.dashboard-view {
    display: grid;
    gap: 12px;
    width: 100%;
    margin: 0;
}

.dashboard-view-design {
    /*
     * Dashboard zostaje w zwykłym paddingu `.app-content`.
     * Dzięki temu `/konto` ma takie same boczne odstępy głównej treści jak
     * widoki Steam, na przykład `/konto/steam/biblioteka`.
     */
    width: 100%;
    margin: 0;
}

.dashboard-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--private-border);
    border-radius: 8px;
    background: rgba(15, 28, 43, 0.72);
}

.dashboard-summary-header p,
.dashboard-summary-header h1,
.dashboard-summary-header span {
    margin: 0;
}

.dashboard-summary-header p {
    color: #c4cede;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-summary-header h1 {
    margin-top: 4px;
    color: var(--private-text);
    font-size: 26px;
    line-height: 1.12;
}

.dashboard-summary-header div>span {
    display: block;
    margin-top: 6px;
    color: var(--private-muted);
    font-size: 14px;
    line-height: 1.45;
}

.dashboard-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 196px;
    border: 1px solid var(--private-border);
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(8, 13, 21, 0.98) 0%, rgba(8, 13, 21, 0.82) 34%, rgba(8, 13, 21, 0.34) 72%),
        linear-gradient(135deg, #15253a 0%, #102536 48%, #2b2440 100%);
}

.dashboard-hero.has-game-image {
    background:
        linear-gradient(90deg, rgba(8, 17, 29, 0.96) 0%, rgba(8, 17, 29, 0.84) 40%, rgba(8, 17, 29, 0.62) 100%),
        linear-gradient(180deg, rgba(8, 17, 29, 0.1), rgba(8, 17, 29, 0.52)),
        var(--dashboard-hero-image) center center / cover no-repeat,
        #08111d;
}

.dashboard-hero.has-game-image::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(8, 17, 29, 0.82) 0%,
            rgba(8, 17, 29, 0.74) 36%,
            rgba(8, 17, 29, 0.42) 68%,
            rgba(8, 17, 29, 0.16) 100%),
        linear-gradient(180deg, rgba(8, 17, 29, 0.08), rgba(8, 17, 29, 0.34));
    content: "";
    pointer-events: none;
}

.dashboard-hero.has-game-image::after {
    content: none;
}

.dashboard-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
    width: min(520px, 100%);
    padding: 32px 38px;
}

.dashboard-hero-content p,
.dashboard-hero-content h1,
.dashboard-hero-content span {
    margin: 0;
}

.dashboard-hero-content p {
    color: #9fcaff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-hero-content h1 {
    color: var(--private-text);
    font-size: 36px;
    line-height: 1.08;
    letter-spacing: 0;
}

.dashboard-hero-content span {
    color: var(--private-muted);
    font-size: 15px;
    line-height: 1.55;
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-stat {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 100px;
    padding: 16px;
    border: 1px solid var(--private-border);
    border-radius: 8px;
    background: rgba(15, 28, 43, 0.86);
}

.dashboard-stat-icon {
    position: relative;
    display: block;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(54, 163, 255, 0.2);
    border-radius: 8px;
    color: #38a8ff;
    background:
        radial-gradient(circle at 50% 45%, rgba(54, 163, 255, 0.18), rgba(54, 163, 255, 0.04) 42%, transparent 68%),
        linear-gradient(145deg, rgba(17, 35, 53, 0.98), rgba(9, 22, 35, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 18px rgba(54, 163, 255, 0.08),
        0 12px 24px rgba(0, 0, 0, 0.22);
}

.dashboard-stat-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 31px;
    height: 31px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 6px rgba(54, 163, 255, 0.62));
}

.dashboard-stat-icon svg path {
    stroke-width: 2.05;
}

.dashboard-stat p,
.dashboard-stat strong,
.dashboard-stat span {
    display: block;
    margin: 0;
    overflow-wrap: anywhere;
}

.dashboard-stat p {
    color: var(--private-muted);
    font-size: 13px;
}

.dashboard-stat strong {
    margin-top: 4px;
    color: var(--private-text);
    font-size: 24px;
    line-height: 1.1;
}

.dashboard-stat strong .dashboard-game-name-link {
    color: inherit;
}

.dashboard-stat span {
    margin-top: 6px;
    color: #8d9daf;
    font-size: 12px;
    line-height: 1.35;
}

/*
 * Nowy układ dashboardu:
 * - pierwszy rząd pokazuje dwie mapy aktywności po połowie szerokości,
 * - środkowy rząd pokazuje ostatnio graną grę obok ostatnich osiągnięć,
 * - krótkie ostatnio grane gry są pod głównym panelem gry.
 */
.dashboard-activity-grid-pair,
.dashboard-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.dashboard-focus-main,
.dashboard-focus-side {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

/*
 * W układzie 50/50 roczna mapa aktywności ma mniej miejsca niż wcześniej.
 * Zmniejszamy więc kafelki tylko w tym rzędzie, żeby użytkownik widział większy
 * fragment roku bez poziomego przewijania.
 */
.dashboard-activity-grid-pair .dashboard-activity-panel {
    --activity-cell-size: 8px;
    --activity-cell-gap: 2px;
    --activity-weekday-label-width: 32px;
}

/*
 * Na szerokich monitorach dwa panele aktywności mają dużo więcej miejsca.
 * Stopniowo powiększamy wtedy kafelki, żeby mapa nie wyglądała jak mały pasek
 * przyklejony do lewej strony panelu.
 */
@media (min-width: 1750px) {
    .dashboard-activity-grid-pair .dashboard-activity-panel {
        --activity-cell-size: 10px;
        --activity-cell-gap: 3px;
    }
}

@media (min-width: 2000px) {
    .dashboard-activity-grid-pair .dashboard-activity-panel {
        --activity-cell-size: 12px;
        --activity-cell-gap: 3px;
    }
}

@media (min-width: 2300px) {
    .dashboard-activity-grid-pair .dashboard-activity-panel {
        --activity-cell-size: 14px;
        --activity-cell-gap: 4px;
    }
}

.dashboard-game-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.78fr) minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--private-border);
    border-radius: 8px;
    background: rgba(15, 28, 43, 0.88);
}

.dashboard-game-cover {
    width: 100%;
    min-height: 142px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(128, 164, 204, 0.1);
}

.dashboard-game-cover-empty {
    background:
        linear-gradient(90deg, rgba(8, 13, 21, 0.92), rgba(8, 13, 21, 0.22)),
        linear-gradient(135deg, rgba(54, 163, 255, 0.2), rgba(155, 124, 255, 0.22));
}

.dashboard-game-media {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.dashboard-game-cover-link,
.dashboard-game-image-link,
.dashboard-game-name-link {
    color: inherit;
    text-decoration: none;
}

.dashboard-game-cover-link,
.dashboard-game-image-link {
    display: block;
    width: fit-content;
}

.dashboard-game-cover-link {
    width: 100%;
}

.dashboard-game-name-link:hover,
.dashboard-game-name-link:focus-visible {
    color: #9fcaff;
}

.dashboard-game-cover-link:focus-visible,
.dashboard-game-image-link:focus-visible,
.dashboard-game-name-link:focus-visible {
    outline: 2px solid rgba(84, 168, 255, 0.85);
    outline-offset: 3px;
    border-radius: 7px;
}

.dashboard-game-summary {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.dashboard-game-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-game-title-row>div {
    min-width: 0;
}

.dashboard-game-eyebrow,
.dashboard-game-title-row h2,
.dashboard-game-empty-copy {
    margin: 0;
}

.dashboard-game-eyebrow {
    color: var(--private-muted);
    font-size: 13px;
    font-weight: 800;
}

.dashboard-game-title-row h2 {
    color: var(--private-text);
    font-size: 22px;
    line-height: 1.15;
}

.dashboard-game-title-row h2 .dashboard-game-name-link {
    display: inline;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    font-size: inherit;
    line-height: inherit;
}

.dashboard-game-title-row>a {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--private-border);
    border-radius: 50%;
    color: #b8c7d9;
    font-size: 20px;
    text-decoration: none;
}

.dashboard-game-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dashboard-game-tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 7px;
    background: rgba(61, 220, 151, 0.14);
    color: #75e4aa;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.dashboard-game-tag-row span:nth-child(3n + 2) {
    background: rgba(80, 156, 255, 0.14);
    color: #9fcaff;
}

.dashboard-game-tag-row span:nth-child(3n + 3) {
    background: rgba(171, 132, 255, 0.14);
    color: #c6b2ff;
}

.dashboard-game-tag-row .is-muted {
    background: rgba(128, 164, 204, 0.1);
    color: var(--private-muted);
}

/*
 * Szczegóły ostatnio granej gry są jedną definicją `<dl>`.
 * Lewa kolumna to nazwa pola, prawa kolumna to gotowa wartość przygotowana w DTO.
 */
.dashboard-game-detail-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.dashboard-game-detail-list div {
    display: grid;
    grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
    gap: 12px;
}

.dashboard-game-detail-list dt,
.dashboard-game-detail-list dd {
    margin: 0;
    font-size: 13px;
}

.dashboard-game-detail-list dt {
    color: var(--private-muted);
    font-weight: 800;
}

.dashboard-game-detail-list dd {
    overflow-wrap: anywhere;
    color: var(--private-text);
}

.dashboard-game-library-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 900;
}

.dashboard-game-library-status::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(128, 164, 204, 0.62);
    content: "";
}

.dashboard-game-library-status.is-positive {
    color: #75e4aa;
}

.dashboard-game-library-status.is-positive::before {
    background: #3ddc97;
    box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.1);
}

.dashboard-game-library-status.is-muted {
    color: var(--private-muted);
}

.dashboard-game-achievement-progress {
    display: grid;
    grid-template-columns: auto minmax(90px, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.dashboard-game-achievement-progress>span:first-child {
    white-space: nowrap;
}

.dashboard-game-achievement-progress strong {
    color: #c4cede;
    font-size: 12px;
    line-height: 1;
}

.dashboard-game-achievement-progress-track {
    overflow: hidden;
    height: 6px;
    border-radius: 999px;
    background: rgba(128, 164, 204, 0.18);
}

.dashboard-game-achievement-progress-track span {
    display: block;
    width: var(--achievement-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3ddc97, #54a8ff);
}

.dashboard-game-empty-copy {
    color: var(--private-muted);
    font-size: 14px;
    line-height: 1.6;
}

.dashboard-game-achievements {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid rgba(128, 164, 204, 0.14);
}

.dashboard-game-achievements-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.dashboard-game-achievements-header h3 {
    margin: 0;
    color: var(--private-text);
    font-size: 16px;
    text-transform: uppercase;
}

.dashboard-game-achievements-header a {
    color: #9fcaff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-recent-achievement-list {
    display: grid;
    gap: 0;
}

.dashboard-recent-achievement-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 56px;
    padding: 8px 0;
    border-top: 1px solid rgba(128, 164, 204, 0.12);
}

.dashboard-recent-achievement-row:first-child {
    border-top: 0;
}

.dashboard-recent-achievement-row img,
.dashboard-recent-achievement-row>span {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(54, 163, 255, 0.28), rgba(155, 124, 255, 0.22));
}

.dashboard-recent-achievement-row strong,
.dashboard-recent-achievement-row p {
    margin: 0;
}

.dashboard-recent-achievement-row strong {
    display: block;
    overflow: hidden;
    color: var(--private-text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-recent-achievement-row p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--private-muted);
    font-size: 12px;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.dashboard-recent-achievement-row time {
    color: #9fcaff;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

/*
 * Tabela ostatnich osiągnięć na dashboardzie.
 * Ma więcej kolumn niż zwykła lista, dlatego dostaje własny poziomy scroll
 * wewnątrz panelu. Dzięki temu sidebar nie rozpycha całej strony.
 */
.dashboard-recent-achievement-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-recent-achievement-table {
    width: 100%;
    min-width: 660px;
    border-collapse: collapse;
}

.dashboard-recent-achievement-table th,
.dashboard-recent-achievement-table td {
    padding: 10px 12px;
    border-top: 1px solid rgba(128, 164, 204, 0.12);
    text-align: left;
    vertical-align: middle;
}

.dashboard-recent-achievement-table th {
    color: #c4cede;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-recent-achievement-table tbody tr:first-child td {
    border-top-color: rgba(128, 164, 204, 0.22);
}

.dashboard-recent-achievement-table td {
    color: var(--private-text);
    font-size: 12px;
}

.dashboard-recent-achievement-table td:nth-child(3),
.dashboard-recent-achievement-table td:nth-child(4) {
    color: #9fcaff;
    white-space: nowrap;
}

/*
 * Tabela osiągnięć ostatnio granej gry używa tego samego stylu co
 * "Najnowsze odblokowania", ale ma o jedną kolumnę mniej.
 */
.dashboard-game-achievement-table {
    min-width: 540px;
}

.dashboard-game-achievement-table td:nth-child(2),
.dashboard-game-achievement-table td:nth-child(3) {
    color: #9fcaff;
    white-space: nowrap;
}

.dashboard-recent-achievement-name {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.dashboard-recent-achievement-name img,
.dashboard-recent-achievement-name>span {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(54, 163, 255, 0.28), rgba(155, 124, 255, 0.22));
}

.dashboard-recent-achievement-name strong,
.dashboard-recent-achievement-name p {
    margin: 0;
}

.dashboard-recent-achievement-name strong {
    display: block;
    overflow: hidden;
    color: var(--private-text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-recent-achievement-name p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--private-muted);
    font-size: 11px;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.dashboard-activity-panel {
    min-height: 216px;
    --activity-cell-size: 12px;
    --activity-cell-gap: 4px;
    --activity-weekday-label-width: 38px;
}

.dashboard-activity-panel .dashboard-panel-heading {
    margin-bottom: 10px;
}

.dashboard-activity-calendar {
    overflow-x: auto;
    padding-bottom: 4px;
}

.dashboard-activity-months {
    display: grid;
    grid-template-columns: var(--activity-weekday-label-width) repeat(var(--activity-week-count), var(--activity-cell-size));
    gap: var(--activity-cell-gap);
    width: max-content;
    margin-bottom: 6px;
    color: var(--private-muted);
    font-size: 12px;
}

.dashboard-activity-month-spacer {
    grid-column: 1;
}

.dashboard-activity-month-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.dashboard-activity-grid {
    display: grid;
    grid-template-columns: var(--activity-weekday-label-width) repeat(var(--activity-week-count), var(--activity-cell-size));
    gap: var(--activity-cell-gap);
    align-items: center;
    width: max-content;
}

.dashboard-activity-weekday {
    color: var(--private-muted);
    font-size: 12px;
}

.dashboard-activity-cell,
.dashboard-activity-legend i {
    display: block;
    width: var(--activity-cell-size);
    height: var(--activity-cell-size);
    border-radius: 3px;
    background: rgba(55, 80, 111, 0.42);
}

.dashboard-activity-cell.is-outside-range {
    opacity: 0.25;
}

.activity-level-0 {
    background: rgba(55, 80, 111, 0.42);
}

.activity-level-1 {
    background: rgba(54, 163, 255, 0.32);
}

.activity-level-2 {
    background: rgba(54, 163, 255, 0.5);
}

.activity-level-3 {
    background: rgba(54, 163, 255, 0.72);
}

.activity-level-4 {
    background: rgba(61, 220, 151, 0.88);
}

.dashboard-activity-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--private-muted);
    font-size: 12px;
}

.dashboard-activity-legend i {
    width: 12px;
    height: 12px;
}

/*
 * Elementy legendy są znacznikami `<i>`, więc reguła `.dashboard-activity-legend i`
 * ma większą szczegółowość niż sama klasa `.activity-level-*`. Powtarzamy tutaj
 * kolory z kratki aktywności, żeby legenda faktycznie pokazywała pełną skalę.
 */
.dashboard-activity-legend .activity-level-0 {
    background: rgba(55, 80, 111, 0.42);
}

.dashboard-activity-legend .activity-level-1 {
    background: rgba(54, 163, 255, 0.32);
}

.dashboard-activity-legend .activity-level-2 {
    background: rgba(54, 163, 255, 0.5);
}

.dashboard-activity-legend .activity-level-3 {
    background: rgba(54, 163, 255, 0.72);
}

.dashboard-activity-legend .activity-level-4 {
    background: rgba(61, 220, 151, 0.88);
}

.dashboard-recent-achievements-panel {
    min-height: 230px;
}

.dashboard-recently-played-panel {
    min-height: auto;
}

.dashboard-recently-played-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-recently-played-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.dashboard-recently-played-table th,
.dashboard-recently-played-table td {
    padding: 9px 10px;
    border-top: 1px solid rgba(128, 164, 204, 0.12);
    text-align: left;
    vertical-align: middle;
}

.dashboard-recently-played-table th {
    color: #c4cede;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-recently-played-table tbody tr:first-child td {
    border-top-color: rgba(128, 164, 204, 0.22);
}

.dashboard-recently-played-table td {
    color: var(--private-text);
    font-size: 12px;
}

.dashboard-recently-played-table td:nth-child(3),
.dashboard-recently-played-table td:nth-child(4),
.dashboard-recently-played-table td:nth-child(5) {
    color: #d6e8ff;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-recently-played-thumb {
    display: block;
    width: 92px;
    height: 43px;
    border-radius: 6px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(54, 163, 255, 0.28), rgba(155, 124, 255, 0.22));
}

.dashboard-recently-played-table strong {
    display: block;
    overflow: hidden;
    color: var(--private-text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-recently-played-table a {
    color: #9fcaff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-recently-played-table .dashboard-game-name-link,
.dashboard-recent-achievement-table .dashboard-game-name-link,
.dashboard-change-row .dashboard-game-name-link {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.dashboard-empty-list {
    display: grid;
    place-items: center;
    min-height: 92px;
    border: 1px dashed rgba(128, 164, 204, 0.2);
    border-radius: 8px;
    background: rgba(7, 14, 23, 0.32);
}

.dashboard-empty-list-horizontal {
    min-height: 98px;
}

.dashboard-empty-list p {
    max-width: 360px;
    margin: 0;
    color: var(--private-muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.dashboard-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--private-border);
    border-radius: 8px;
    background: rgba(15, 28, 43, 0.86);
}

.dashboard-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-panel-heading p,
.dashboard-panel-heading h2 {
    margin: 0;
}

.dashboard-panel-heading p {
    color: #c4cede;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-panel-heading h2 {
    margin-top: 5px;
    color: var(--private-text);
    font-size: 22px;
    line-height: 1.2;
}

.dashboard-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(128, 164, 204, 0.2);
    border-radius: 999px;
    background: rgba(128, 164, 204, 0.08);
    color: var(--private-muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-status-pill.is-success {
    border-color: rgba(61, 220, 151, 0.32);
    background: rgba(61, 220, 151, 0.1);
    color: #90f0c5;
}

.dashboard-status-pill.is-warning {
    border-color: rgba(242, 184, 75, 0.34);
    background: rgba(242, 184, 75, 0.1);
    color: #ffd98b;
}

.dashboard-profile-main {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.dashboard-profile-main img,
.dashboard-profile-main>span {
    width: 86px;
    height: 86px;
    border-radius: 8px;
    object-fit: cover;
}

.dashboard-profile-main>span {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2f7ee8, #6f5bd8);
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
}

.dashboard-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.dashboard-detail-list div {
    display: grid;
    grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(128, 164, 204, 0.12);
}

.dashboard-detail-list div:first-child {
    border-top: 0;
    padding-top: 0;
}

.dashboard-detail-list dt {
    color: var(--private-muted);
    font-size: 13px;
    font-weight: 800;
}

.dashboard-detail-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--private-text);
    font-size: 14px;
}

.dashboard-detail-list a {
    color: #9fcaff;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-panel-copy {
    margin: 0;
    color: var(--private-muted);
    font-size: 14px;
    line-height: 1.6;
}

.dashboard-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.dashboard-change-list {
    display: grid;
    gap: 0;
}

.dashboard-change-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(128, 164, 204, 0.12);
}

.dashboard-change-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.dashboard-change-row img,
.dashboard-change-row .dashboard-game-image-link>span {
    width: 88px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
}

.dashboard-change-row .dashboard-game-image-link>span {
    display: block;
    background: linear-gradient(135deg, rgba(54, 163, 255, 0.28), rgba(155, 124, 255, 0.22));
}

.dashboard-change-row strong,
.dashboard-change-row p {
    margin: 0;
}

.dashboard-change-row strong {
    display: block;
    overflow: hidden;
    color: var(--private-text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-change-row p,
.dashboard-change-row time {
    color: var(--private-muted);
    font-size: 12px;
}

.dashboard-change-row time {
    text-align: right;
    white-space: nowrap;
}

/*
 * Prywatne warianty istniejących klas.
 * Dzięki nim stare widoki biblioteki, wishlisty, gry i ustawień pasują do nowego shell'a.
 */
.app-body-private .app-panel {
    max-width: none;
    border-color: var(--private-border);
    background: rgba(15, 28, 43, 0.86);
    color: var(--private-text);
}

.app-body-private .app-eyebrow {
    color: #9fcaff;
}

.app-body-private .app-title,
.app-body-private .section-title {
    color: var(--private-text);
}

.app-body-private .app-copy,
.app-body-private .auth-side-link,
.app-body-private .form-hint {
    color: var(--private-muted);
}

.app-body-private .button-primary {
    border-color: rgba(54, 163, 255, 0.55);
    background: var(--accent-blue-strong);
    color: #ffffff;
}

.app-body-private .button-secondary {
    border-color: var(--private-border);
    background: rgba(17, 30, 45, 0.9);
    color: var(--private-text);
}

.app-body-private .button-danger {
    border-color: rgba(215, 91, 102, 0.66);
    background: rgba(215, 91, 102, 0.18);
    color: #ffb7bd;
}

.app-body-private .button:disabled {
    border-color: rgba(128, 164, 204, 0.16);
    background: rgba(128, 164, 204, 0.08);
    color: #7f8d9e;
}

.app-body-private .form-field label,
.app-body-private .choice-field label {
    color: var(--private-text);
}

.app-body-private .form-input {
    border-color: var(--private-border);
    background: rgba(7, 14, 23, 0.9);
    color: var(--private-text);
}

.app-body-private .form-input:focus {
    border-color: var(--accent-blue);
    outline: 3px solid rgba(54, 163, 255, 0.18);
}

.app-body-private .settings-section {
    border-top-color: rgba(128, 164, 204, 0.14);
}

.account-details {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
}

.account-details div {
    display: grid;
    grid-template-columns: minmax(140px, 180px) 1fr;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #e5e9f0;
}

.account-details dt {
    color: #69758a;
    font-weight: 800;
}

.account-details dd {
    margin: 0;
    color: var(--public-text);
}

.app-body-private .account-details div {
    border-top-color: rgba(128, 164, 204, 0.14);
}

.app-body-private .account-details dt {
    color: var(--private-muted);
}

.app-body-private .account-details dd {
    color: var(--private-text);
}

.steam-status {
    display: inline-flex;
    width: fit-content;
    margin: 18px 0 12px;
    padding: 8px 10px;
    border: 1px solid #c8d0df;
    border-radius: 8px;
    background: #f7f9fc;
    color: #3b4658;
    font-size: 14px;
    font-weight: 800;
}

.steam-status-active {
    border-color: #89c49a;
    background: #effaf2;
    color: #17612c;
}

.steam-status-paused {
    border-color: #e1c16e;
    background: #fff9e8;
    color: #785b10;
}

.app-body-private .steam-status {
    border-color: var(--private-border);
    background: rgba(128, 164, 204, 0.08);
    color: var(--private-muted);
}

.app-body-private .steam-status-active {
    border-color: rgba(61, 220, 151, 0.32);
    background: rgba(61, 220, 151, 0.1);
    color: #90f0c5;
}

.app-body-private .steam-status-paused {
    border-color: rgba(242, 184, 75, 0.34);
    background: rgba(242, 184, 75, 0.1);
    color: #ffd98b;
}

.steam-details {
    margin-top: 18px;
}

/*
 * Status synchronizacji. Klasy są używane także przez kontroler Stimulus,
 * dlatego zostają nazwane tak samo jak przed zmianą designu.
 */
.sync-progress-panel {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 0;
    border-top: 1px solid rgba(128, 164, 204, 0.14);
}

.sync-progress-panel[hidden],
.sync-status-list[hidden] {
    display: none;
}

.sync-progress-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.sync-progress-header strong {
    color: var(--private-text);
    font-size: 15px;
}

.sync-progress-header span {
    color: var(--private-muted);
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

.sync-progress-track {
    overflow: hidden;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(128, 164, 204, 0.16);
}

.sync-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    transition: width 220ms ease;
}

.sync-status-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.sync-status-row {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid rgba(128, 164, 204, 0.14);
}

.sync-status-row strong {
    color: var(--private-text);
    font-size: 15px;
}

.sync-status-row span {
    color: #9fcaff;
    font-size: 14px;
    font-weight: 800;
}

.sync-status-row p {
    margin: 0;
    color: var(--private-muted);
    font-size: 14px;
    line-height: 1.5;
}

/*
 * Listy Steam używane poza dashboardem.
 * Układ zostaje tabelaryczny, bo te strony służą do skanowania wielu rekordów.
 */
.steam-library-summary,
.steam-wishlist-summary,
.steam-achievement-summary,
.steam-game-summary {
    margin-top: 24px;
}

.steam-library-list,
.steam-wishlist-list,
.steam-achievement-list,
.steam-game-achievement-list,
.steam-game-daily-list {
    display: grid;
    gap: 0;
    margin-top: 24px;
    border-top: 1px solid #e5e9f0;
}

.app-body-private .steam-library-list,
.app-body-private .steam-wishlist-list,
.app-body-private .steam-achievement-list,
.app-body-private .steam-game-achievement-list,
.app-body-private .steam-game-daily-list {
    border-top-color: rgba(128, 164, 204, 0.14);
}

.steam-library-row,
.steam-wishlist-row {
    display: grid;
    grid-template-columns: 140px minmax(180px, 1fr) minmax(220px, 280px) minmax(150px, auto);
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e5e9f0;
}

.app-body-private .steam-library-row,
.app-body-private .steam-wishlist-row,
.app-body-private .steam-achievement-row,
.app-body-private .steam-game-achievement-row,
.app-body-private .steam-game-daily-row {
    border-bottom-color: rgba(128, 164, 204, 0.14);
}

.steam-library-cover,
.steam-wishlist-cover {
    width: 140px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    background: #e5e9f0;
}

.steam-library-game,
.steam-wishlist-game,
.steam-achievement-main {
    min-width: 0;
}

.steam-library-game h2,
.steam-wishlist-game h2,
.steam-achievement-main h2,
.steam-achievement-main h3 {
    overflow-wrap: anywhere;
    margin: 0 0 6px;
    color: var(--public-text);
    font-size: 16px;
    line-height: 1.3;
}

.app-body-private .steam-library-game h2,
.app-body-private .steam-wishlist-game h2,
.app-body-private .steam-achievement-main h2,
.app-body-private .steam-achievement-main h3 {
    color: var(--private-text);
}

.steam-library-game p,
.steam-wishlist-game p,
.steam-achievement-main p {
    margin: 0;
    color: #69758a;
    font-size: 14px;
    line-height: 1.5;
}

.app-body-private .steam-library-game p,
.app-body-private .steam-wishlist-game p,
.app-body-private .steam-achievement-main p {
    color: var(--private-muted);
}

.steam-library-metrics,
.steam-wishlist-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.steam-achievement-metrics {
    display: grid;
    gap: 10px;
    margin: 0;
}

.steam-library-metrics div,
.steam-wishlist-metrics div,
.steam-achievement-metrics div {
    display: grid;
    gap: 4px;
}

.steam-library-metrics dt,
.steam-wishlist-metrics dt,
.steam-achievement-metrics dt {
    color: #69758a;
    font-size: 12px;
    font-weight: 800;
}

.app-body-private .steam-library-metrics dt,
.app-body-private .steam-wishlist-metrics dt,
.app-body-private .steam-achievement-metrics dt {
    color: var(--private-muted);
}

.steam-library-metrics dd,
.steam-wishlist-metrics dd,
.steam-achievement-metrics dd {
    margin: 0;
    color: var(--public-text);
    font-size: 14px;
    font-weight: 800;
}

.app-body-private .steam-library-metrics dd,
.app-body-private .steam-wishlist-metrics dd,
.app-body-private .steam-achievement-metrics dd {
    color: var(--private-text);
}

/*
 * Kolory rzadkości osiągnięć Steam.
 *
 * Klasa trafia tylko na tekst z procentem odblokowania. Dzięki temu nie
 * przebarwiamy całych wierszy, dat ani linków, a użytkownik nadal szybko widzi,
 * które osiągnięcia są częste, a które bardzo rzadkie.
 */
.steam-achievement-rarity-value {
    color: var(--steam-achievement-rarity-color, var(--private-muted, #94a3b8));
    white-space: nowrap;
}

.steam-achievement-rarity-value.is-rarity-common {
    --steam-achievement-rarity-color: #f4f7fb;
}

.steam-achievement-rarity-value.is-rarity-uncommon {
    --steam-achievement-rarity-color: #65d991;
}

.steam-achievement-rarity-value.is-rarity-rare {
    --steam-achievement-rarity-color: #66d9ff;
}

.steam-achievement-rarity-value.is-rarity-epic {
    --steam-achievement-rarity-color: #c084fc;
}

.steam-achievement-rarity-value.is-rarity-legendary {
    --steam-achievement-rarity-color: #fb923c;
}

.steam-achievement-rarity-value.is-rarity-unknown {
    --steam-achievement-rarity-color: var(--private-muted, #94a3b8);
}

.steam-library-links,
.steam-wishlist-links,
.steam-achievement-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.steam-library-links a,
.steam-wishlist-links a,
.steam-achievement-links a {
    color: #2457d6;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.app-body-private .steam-library-links a,
.app-body-private .steam-wishlist-links a,
.app-body-private .steam-achievement-links a {
    color: #9fcaff;
}

.steam-game-hero-image {
    width: min(460px, 100%);
    margin-top: 8px;
    border-radius: 8px;
    background: #e5e9f0;
}

.steam-game-daily-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e9f0;
}

.steam-game-daily-row strong {
    color: var(--public-text);
    font-size: 14px;
}

.steam-game-daily-row span {
    color: #3b4658;
    font-size: 14px;
    font-weight: 800;
}

.app-body-private .steam-game-daily-row strong,
.app-body-private .steam-game-daily-row span {
    color: var(--private-text);
}

.steam-game-achievement-row,
.steam-achievement-row {
    display: grid;
    grid-template-columns: 72px minmax(220px, 1fr) minmax(240px, 300px) minmax(130px, auto);
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e5e9f0;
}

.steam-achievement-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: #e5e9f0;
}

.steam-achievement-main .steam-achievement-game {
    margin-bottom: 4px;
    color: #3b4658;
    font-weight: 800;
}

.app-body-private .steam-achievement-main .steam-achievement-game {
    color: #c4cede;
}

/*
 * Strona szczegółów jednej gry.
 *
 * Ten blok jest mocno zawężony do `.steam-game-page`, żeby redesign karty gry
 * nie zmieniał wyglądu biblioteki Steam ani wishlisty.
 */
.steam-game-page {
    display: grid;
    gap: 14px;
    min-width: 0;
    color: var(--private-text);
    animation: steam-game-enter 220ms ease-out both;
}

/*
 * Strona globalnych osiągnięć używa tej samej tablicy co karta jednej gry.
 * Osobna klasa pozwala dopisać drobne różnice, np. większą szerokość panelu
 * i podsumowanie w pasku tabeli, bez zmieniania logiki widoku gry.
 */
.steam-achievements-page {
    display: grid;
    gap: 14px;
    max-width: 1180px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.app-body-private .steam-achievements-page {
    border: 0;
    background: transparent;
}

.steam-achievements-overview {
    display: grid;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(112, 151, 190, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(14, 29, 46, 0.94), rgba(8, 18, 30, 0.96)),
        rgba(11, 22, 35, 0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.steam-achievements-overview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.steam-achievements-overview-heading>div:first-child {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.steam-achievements-overview h1,
.steam-achievements-overview p {
    margin: 0;
}

.steam-achievements-overview h1 {
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.1;
}

.steam-achievements-overview p:not(.steam-game-kicker) {
    max-width: 720px;
    color: #aab7c7;
    font-size: 14px;
    line-height: 1.55;
}

.steam-achievements-overview-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.steam-achievements-overview-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.9);
    color: #d9e7f7;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.steam-achievements-overview-actions a:hover,
.steam-achievements-overview-actions a:focus-visible {
    border-color: rgba(54, 163, 255, 0.48);
    background: rgba(54, 163, 255, 0.14);
    color: #ffffff;
}

.steam-achievements-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.steam-achievements-stat-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 5px 14px;
    align-items: center;
    min-height: 96px;
    padding: 16px;
    border: 1px solid rgba(128, 164, 204, 0.14);
    border-radius: 8px;
    background: rgba(17, 31, 46, 0.78);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.steam-achievements-stat-card:hover {
    border-color: rgba(54, 163, 255, 0.28);
    background: rgba(24, 43, 63, 0.82);
    transform: translateY(-1px);
}

.steam-achievements-stat-icon {
    /*
     * Ikony w górnych boksach celowo powtarzają styl z biblioteki Steam.
     * Dzięki temu oba widoki wyglądają jak części tego samego modułu.
     */
    position: relative;
    display: block;
    grid-row: 1 / 4;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(75, 142, 186, 0.34);
    border-radius: 8px;
    color: #7fb3d9;
    background:
        linear-gradient(145deg, rgba(15, 33, 51, 0.98), rgba(9, 21, 34, 0.98)),
        #0d1d2f;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(9, 18, 30, 0.34),
        0 8px 16px rgba(0, 0, 0, 0.16);
}

.steam-achievements-stat-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    filter: none;
    opacity: 0.92;
}

.steam-achievements-stat-icon svg path[fill="currentColor"],
.steam-achievements-stat-icon svg circle[fill="currentColor"] {
    fill: currentColor;
    stroke: none;
}

.steam-achievements-stat-label {
    color: #9fb1c7;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.steam-achievements-stat-card strong {
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
}

.steam-achievements-stat-card small {
    color: #aab7c7;
    font-size: 12px;
    line-height: 1.35;
}

.steam-achievements-page .steam-game-achievements {
    margin-top: 0;
}

.steam-achievement-table-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.steam-achievement-table-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(75, 161, 255, 0.2);
    border-radius: 8px;
    background: rgba(128, 164, 204, 0.08);
    color: #9fb1c7;
    font-size: 13px;
    font-weight: 600;
}

.steam-achievements-page .steam-achievement-game-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.steam-achievements-page .steam-achievement-game-cell a {
    display: grid;
    width: 104px;
    aspect-ratio: 460 / 215;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: rgba(128, 164, 204, 0.1);
    color: #d9e7f7;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.steam-achievements-page .steam-achievement-game-cell a:hover,
.steam-achievements-page .steam-achievement-game-cell a:focus-visible {
    border-color: rgba(54, 163, 255, 0.42);
    background: rgba(54, 163, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.steam-achievements-page .steam-achievement-game-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.steam-achievements-page .steam-achievement-game-cell span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(45, 119, 188, 0.34), rgba(32, 55, 86, 0.92)),
        #101c2b;
}

/*
 * Prosty breadcrumb zastępuje duże przyciski powrotu z poprzedniej wersji.
 * Dzięki temu pierwszy ekran zostaje podobny do referencji: więcej miejsca ma
 * sama gra, a nawigacja jest tylko krótką ścieżką.
 */
.steam-game-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    color: #7f8fa3;
    font-size: 14px;
    font-weight: 700;
}

.steam-game-breadcrumb a {
    color: #9fb1c7;
    text-decoration: none;
}

.steam-game-breadcrumb a:hover,
.steam-game-breadcrumb a:focus-visible {
    color: #d9e7f7;
}

/*
 * Górna część strony ma dwa główne obszary:
 * - hero z grafiką i postępem,
 * - panel metadanych z linkami do zewnętrznych serwisów.
 */
.steam-game-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
    gap: 18px;
    align-items: stretch;
}

.steam-game-hero,
.steam-game-metadata,
.steam-game-achievements,
.steam-game-empty-state {
    border: 1px solid rgba(112, 151, 190, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(14, 29, 46, 0.94), rgba(8, 18, 30, 0.96)),
        rgba(11, 22, 35, 0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.steam-game-hero {
    position: relative;
    display: grid;
    gap: 12px;
    /*
     * Panel hero jest rozciągany do wysokości panelu metadanych po prawej.
     * Bez `align-content: start` CSS Grid rozciągał wiersz nagłówka i tworzył
     * dużą pustą przerwę między tytułem gry a obrazem.
     */
    align-content: start;
    align-items: stretch;
    padding: 14px;
    overflow: hidden;
}

.steam-game-hero-heading {
    display: grid;
    min-width: 0;
    padding: 4px 56px 0 4px;
}

.steam-game-hero-heading h1 {
    overflow-wrap: anywhere;
    margin: 0;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.08;
}

/*
 * Po nagłówku pełnej szerokości wracamy do dwukolumnowego układu:
 * grafika Steam po lewej, dane i przyciski źródłowe po prawej.
 */
.steam-game-hero-main {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: center;
}

.steam-game-cover-frame {
    display: grid;
    /*
     * Steam zwraca nagłówki gier w proporcji 460x215.
     * Ramka używa tej samej proporcji, żeby obraz nie był przycinany.
     */
    aspect-ratio: 460 / 215;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(128, 164, 204, 0.22);
    border-radius: 8px;
    background: #101c2b;
}

.steam-game-cover-image,
.steam-game-cover-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 460 / 215;
}

.steam-game-cover-image {
    display: block;
    object-fit: contain;
    transition: transform 220ms ease, filter 220ms ease;
}

.steam-game-cover-frame:hover .steam-game-cover-image {
    filter: saturate(1.08);
    transform: none;
}

.steam-game-cover-placeholder {
    display: grid;
    place-items: center;
    color: #d9e7f7;
    font-size: 52px;
    font-weight: 900;
    background:
        linear-gradient(135deg, rgba(45, 119, 188, 0.34), rgba(32, 55, 86, 0.92)),
        #101c2b;
}

.steam-game-intro {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 4px 4px 4px 0;
}

.steam-game-kicker {
    margin: 0;
    color: #9fb1c7;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
}

.steam-game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.steam-game-tags span,
.steam-game-achievement-filters button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(75, 161, 255, 0.2);
    border-radius: 8px;
    background: rgba(54, 163, 255, 0.08);
    color: #99c9ff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.steam-game-intro-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.steam-game-intro-stats div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(128, 164, 204, 0.14);
    border-radius: 8px;
    background: rgba(6, 14, 24, 0.38);
}

.steam-game-intro-stats dt,
.steam-game-progress-header span,
.steam-game-page .steam-achievement-metrics dt {
    color: #99a9ba;
    font-size: 12px;
    font-weight: 600;
}

.steam-game-metadata-list dt {
    color: #99a9ba;
    font-size: 12px;
    font-weight: 600;
}

.steam-game-intro-stats dd {
    margin: 0;
    color: #f5f8fc;
    font-size: 15px;
    font-weight: 900;
}

.steam-game-progress {
    display: grid;
    gap: 10px;
}

.steam-game-progress-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.steam-game-progress-header div {
    display: grid;
    gap: 5px;
}

.steam-game-progress-header strong,
.steam-game-progress-header b {
    color: #ffffff;
    font-size: 16px;
}

.steam-game-progress-track {
    display: block;
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(128, 164, 204, 0.16);
}

.steam-game-progress-track span {
    display: block;
    width: var(--steam-game-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #42a8ff, #2f7ee8);
}

.steam-game-metadata {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 18px;
}

.steam-game-metadata-heading {
    display: grid;
    gap: 12px;
}

.steam-game-metadata-heading h2,
.steam-game-achievement-toolbar h2 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
}

.steam-game-source-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}

.steam-game-source-links a,
.steam-game-refresh-button,
.steam-game-empty-state a,
.steam-game-page .steam-achievement-links a,
.steam-achievements-page .steam-achievement-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.9);
    color: #d9e7f7;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.steam-game-source-links a:hover,
.steam-game-source-links a:focus-visible,
.steam-game-refresh-button:hover,
.steam-game-refresh-button:focus-visible,
.steam-game-empty-state a:hover,
.steam-game-empty-state a:focus-visible,
.steam-game-page .steam-achievement-links a:hover,
.steam-game-page .steam-achievement-links a:focus-visible,
.steam-achievements-page .steam-achievement-links a:hover,
.steam-achievements-page .steam-achievement-links a:focus-visible {
    border-color: rgba(54, 163, 255, 0.48);
    background: rgba(54, 163, 255, 0.14);
    color: #ffffff;
}

.steam-game-metadata-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.steam-game-metadata-list div {
    display: grid;
    grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 36px;
    padding: 8px 0;
    border-top: 1px solid rgba(128, 164, 204, 0.12);
}

.steam-game-metadata-list div:first-child {
    border-top: 0;
}

.steam-game-metadata-list dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: #f5f8fc;
    font-size: 13px;
    font-weight: 400;
}

.steam-game-metadata-list dd.is-positive {
    color: #74e5ad;
}

.steam-game-metadata-list dd.is-muted {
    color: #99a9ba;
}

.steam-game-metadata-list .is-split {
    margin-top: 4px;
    padding-top: 13px;
    border-top-color: rgba(128, 164, 204, 0.22);
}

.steam-game-refresh-form {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
}

.steam-game-refresh-button {
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 50%;
    background: rgba(54, 163, 255, 0.12);
}

.steam-game-refresh-button svg {
    width: 22px;
    height: 22px;
}

.steam-game-refresh-button svg path {
    stroke-width: 2.3;
}

.steam-game-empty-state {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.steam-game-empty-state h2,
.steam-game-empty-state h3,
.steam-game-empty-state p {
    margin: 0;
}

.steam-game-empty-state h2,
.steam-game-empty-state h3 {
    color: #ffffff;
}

.steam-game-empty-state p {
    max-width: 720px;
    color: #99a9ba;
    font-size: 14px;
    line-height: 1.6;
}

.steam-game-empty-state a {
    width: fit-content;
}

.steam-game-empty-state.is-compact {
    margin-top: 16px;
}

/*
 * Lista osiągnięć jest budowana jak tabela z referencji, ale każdy wiersz
 * pozostaje osobnym artykułem. To ułatwia czytanie kodu Twig i responsywność.
 */
.steam-game-achievements {
    display: grid;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.steam-game-achievement-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(128, 164, 204, 0.14);
}

.steam-game-achievement-toolbar>div:first-child {
    display: grid;
    gap: 5px;
}

.steam-game-achievement-controls {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.steam-game-achievement-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.steam-game-achievement-filters button {
    color: #9fb1c7;
    background: rgba(128, 164, 204, 0.08);
}

.steam-game-achievement-filters button:hover,
.steam-game-achievement-filters button:focus-visible {
    border-color: rgba(54, 163, 255, 0.42);
    background: rgba(54, 163, 255, 0.14);
    color: #ffffff;
}

.steam-game-achievement-filters .is-active {
    border-color: rgba(219, 228, 255, 0.48);
    background: #dfe7ff;
    color: #1d2740;
}

.steam-game-achievement-filters .is-active:hover,
.steam-game-achievement-filters .is-active:focus-visible {
    border-color: rgba(219, 228, 255, 0.68);
    background: #c9d8ff;
    color: #14203a;
}

.steam-game-achievement-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7f8fa3;
    font-size: 12px;
    font-weight: 900;
}

.steam-game-achievement-sort select {
    min-height: 34px;
    padding: 0 34px 0 12px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.9);
    color: #d9e7f7;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.steam-game-achievement-list {
    display: grid;
    gap: 0;
}

.steam-game-filter-empty {
    margin: 0;
    padding: 18px 14px;
    border-top: 1px solid rgba(128, 164, 204, 0.12);
    color: #99a9ba;
    font-size: 14px;
}

.steam-game-achievement-table-header {
    display: grid;
    grid-template-columns: 64px minmax(250px, 1fr) minmax(96px, 130px) minmax(130px, 160px) minmax(120px, 160px) 38px;
    gap: 14px;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(128, 164, 204, 0.16);
    background: rgba(7, 16, 27, 0.44);
}

.steam-game-achievement-table-header span {
    color: #7f8fa3;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.steam-game-achievement-table-header .is-name {
    grid-column: 1 / 3;
}

.steam-game-page .steam-game-achievement-row,
.steam-achievements-page .steam-game-achievement-row {
    display: grid;
    grid-template-columns: 64px minmax(250px, 1fr) minmax(96px, 130px) minmax(130px, 160px) minmax(120px, 160px) 38px;
    gap: 14px;
    align-items: center;
    min-height: 78px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(128, 164, 204, 0.12);
    background: rgba(10, 23, 36, 0.42);
    transition: background 160ms ease, transform 160ms ease;
}

/*
 * Globalna tablica ma dodatkową kolumnę z nazwą gry.
 * Na stronie jednej gry ta kolumna nie jest potrzebna, bo cała tabela dotyczy
 * już jednego tytułu.
 */
.steam-achievements-page .steam-game-achievement-table-header,
.steam-achievements-page .steam-game-achievement-row {
    grid-template-columns: 64px minmax(250px, 1fr) minmax(112px, 130px) minmax(92px, 120px) minmax(130px, 160px) minmax(130px, 150px) 38px;
}

.steam-game-page .steam-game-achievement-row:hover,
.steam-achievements-page .steam-game-achievement-row:hover {
    background: rgba(22, 43, 64, 0.64);
    transform: translateY(-1px);
}

.steam-game-page .steam-game-achievement-row:last-child,
.steam-achievements-page .steam-game-achievement-row:last-child {
    border-bottom: 0;
}

/*
 * Stimulus ukrywa wiersze przez atrybut `hidden`.
 * Ten widok nadaje wierszom `display: grid`, więc dopisujemy mocniejszą regułę,
 * aby przeglądarka faktycznie schowała rekordy niepasujące do filtra.
 */
.steam-game-page .steam-game-achievement-row[hidden],
.steam-achievements-page .steam-game-achievement-row[hidden] {
    display: none;
}

.steam-game-page .steam-game-achievement-row.is-locked .steam-achievement-icon,
.steam-achievements-page .steam-game-achievement-row.is-locked .steam-achievement-icon {
    filter: grayscale(0.92);
    opacity: 0.58;
}

.steam-game-page .steam-achievement-icon,
.steam-achievements-page .steam-achievement-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    object-fit: cover;
    background: rgba(128, 164, 204, 0.12);
    color: #d9e7f7;
    font-weight: 900;
}

.steam-game-page .steam-achievement-main,
.steam-achievements-page .steam-achievement-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.steam-game-page .steam-achievement-main h3,
.steam-game-page .steam-achievement-main p,
.steam-achievements-page .steam-achievement-main h3,
.steam-achievements-page .steam-achievement-main p {
    margin: 0;
}

.steam-game-page .steam-achievement-main h3,
.steam-achievements-page .steam-achievement-main h3 {
    overflow-wrap: anywhere;
    color: #f8fbff;
    font-size: 16px;
    line-height: 1.25;
}

.steam-game-page .steam-achievement-main p,
.steam-achievements-page .steam-achievement-main p {
    color: #aab7c7;
    font-size: 13px;
    line-height: 1.35;
}

.steam-game-page .steam-achievement-rarity-cell,
.steam-game-page .steam-achievement-status-value,
.steam-achievements-page .steam-achievement-rarity-cell,
.steam-achievements-page .steam-achievement-status-value {
    color: #aab7c7;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}

.steam-game-page .steam-achievement-status-cell,
.steam-achievements-page .steam-achievement-status-cell {
    display: grid;
    gap: 4px;
}

.steam-game-page .steam-achievement-status-label,
.steam-achievements-page .steam-achievement-status-label {
    color: #339bff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.steam-game-page .steam-achievement-links,
.steam-achievements-page .steam-achievement-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.steam-achievement-state {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(75, 161, 255, 0.18);
    border-radius: 50%;
    background: rgba(18, 33, 51, 0.92);
    color: #aab7c7;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.steam-game-achievement-row.is-unlocked .steam-achievement-state {
    border-color: rgba(75, 161, 255, 0.24);
    background: #10243a;
    color: #3aa6ff;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(20, 55, 86, 0.64);
}

.steam-achievement-state svg {
    width: 20px;
    height: 20px;
}

.steam-achievement-state svg path {
    stroke-width: 3;
}

@keyframes steam-game-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .steam-game-page,
    .steam-game-cover-image,
    .steam-achievements-stat-card,
    .steam-game-page .steam-game-achievement-row,
    .steam-achievements-page .steam-game-achievement-row {
        animation: none;
        transition: none;
    }
}

@media (max-width: 1280px) {
    .steam-game-shell {
        grid-template-columns: 1fr;
    }

    .steam-achievements-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .steam-game-hero-main {
        grid-template-columns: 1fr;
    }

    .steam-game-intro {
        padding: 0;
    }

    .steam-achievements-overview-heading {
        flex-direction: column;
    }

    .steam-achievements-overview-actions {
        justify-content: flex-start;
    }

    .steam-game-page .steam-game-achievement-row,
    .steam-achievements-page .steam-game-achievement-row {
        grid-template-columns: 56px minmax(0, 1fr) 38px;
        align-items: start;
    }

    .steam-game-achievement-table-header {
        display: none;
    }

    .steam-game-page .steam-achievement-rarity-cell,
    .steam-game-page .steam-achievement-status-cell,
    .steam-game-page .steam-achievement-links,
    .steam-achievements-page .steam-achievement-game-cell,
    .steam-achievements-page .steam-achievement-rarity-cell,
    .steam-achievements-page .steam-achievement-status-cell,
    .steam-achievements-page .steam-achievement-links {
        grid-column: 2 / -1;
    }

    .steam-achievement-state {
        grid-column: 3;
        grid-row: 1;
    }
}

@media (max-width: 640px) {

    .steam-game-shell,
    .steam-game-page {
        gap: 12px;
    }

    .steam-achievements-overview {
        padding: 16px;
    }

    .steam-achievements-overview h1 {
        font-size: 28px;
    }

    .steam-achievements-stat-grid {
        grid-template-columns: 1fr;
    }

    .steam-game-hero,
    .steam-game-metadata {
        padding: 12px;
    }

    .steam-game-hero-heading h1 {
        font-size: 30px;
    }

    .steam-game-intro-stats,
    .steam-game-page .steam-achievement-status-cell,
    .steam-achievements-page .steam-achievement-status-cell {
        grid-template-columns: 1fr;
    }

    .steam-game-metadata-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .steam-game-achievement-toolbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px;
    }

    .steam-game-achievement-controls {
        justify-items: start;
    }

    .steam-game-achievement-filters {
        justify-content: flex-start;
    }

    .steam-achievement-table-summary {
        justify-content: flex-start;
    }

    .steam-game-achievement-sort,
    .steam-game-achievement-sort select {
        width: 100%;
    }

    .steam-game-page .steam-game-achievement-row,
    .steam-achievements-page .steam-game-achievement-row {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .steam-game-page .steam-achievement-icon,
    .steam-achievements-page .steam-achievement-icon {
        width: 48px;
        height: 48px;
    }

    .steam-game-page .steam-achievement-rarity-cell,
    .steam-game-page .steam-achievement-status-cell,
    .steam-game-page .steam-achievement-links,
    .steam-achievements-page .steam-achievement-game-cell,
    .steam-achievements-page .steam-achievement-rarity-cell,
    .steam-achievements-page .steam-achievement-status-cell,
    .steam-achievements-page .steam-achievement-links,
    .steam-achievement-state {
        grid-column: 1 / -1;
    }

    .steam-achievement-state {
        grid-row: auto;
        justify-self: start;
    }

    .steam-game-page .steam-achievement-links,
    .steam-achievements-page .steam-achievement-links {
        justify-content: flex-start;
    }
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.pagination span {
    color: #3b4658;
    font-size: 14px;
    font-weight: 800;
}

.app-body-private .pagination span {
    color: var(--private-muted);
}

/*
 * Komunikaty i toasty.
 */
.toast-stack {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 20;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 40px));
}

.app-body-private .toast-stack {
    top: 92px;
}

.toast {
    padding: 14px 16px;
    border: 1px solid #c8d0df;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.16);
}

.app-body-private .toast {
    border-color: var(--private-border);
    background: rgba(15, 28, 43, 0.98);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
}

.toast strong {
    display: block;
    margin-bottom: 6px;
    color: var(--public-text);
    font-size: 15px;
}

.toast p {
    margin: 0;
    color: #3b4658;
    font-size: 14px;
    line-height: 1.5;
}

.app-body-private .toast strong {
    color: var(--private-text);
}

.app-body-private .toast p {
    color: var(--private-muted);
}

.toast-success {
    border-color: #89c49a;
}

.toast-warning {
    border-color: #e2bc68;
}

.toast-error {
    border-color: #e6a1a1;
}

.flash {
    max-width: 760px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #c8d0df;
    border-radius: 8px;
    background: #ffffff;
    color: var(--public-text);
    font-size: 15px;
    line-height: 1.5;
}

.app-body-private .flash {
    max-width: none;
    border-color: var(--private-border);
    background: rgba(15, 28, 43, 0.92);
    color: var(--private-text);
}

.flash-success {
    border-color: #89c49a;
    background: #effaf2;
    color: #17612c;
}

.flash-error {
    border-color: #e6a1a1;
    background: #fff1f1;
    color: #8b1d1d;
}

.app-body-private .flash-success {
    border-color: rgba(61, 220, 151, 0.32);
    background: rgba(61, 220, 151, 0.1);
    color: #90f0c5;
}

.app-body-private .flash-error {
    border-color: rgba(215, 91, 102, 0.42);
    background: rgba(215, 91, 102, 0.12);
    color: #ffb7bd;
}

.form-error,
.form-field ul {
    margin: 0;
    padding-left: 18px;
    color: #8b1d1d;
    font-size: 14px;
}

.app-body-private .form-error,
.app-body-private .form-field ul {
    color: #ffb7bd;
}

/*
 * Responsywność.
 * Na mniejszych ekranach sidebar przechodzi nad treść, a kafelki układają się
 * w mniejszą liczbę kolumn bez poziomego scrolla.
 */
@media (max-width: 1180px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-activity-grid-pair,
    .dashboard-focus-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-activity-grid-pair .dashboard-activity-panel {
        --activity-cell-size: 12px;
        --activity-cell-gap: 4px;
        --activity-weekday-label-width: 38px;
    }

}

@media (max-width: 900px) {
    .app-shell-private {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: relative;
        height: auto;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--private-border);
    }

    .app-sidebar-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        margin-top: 18px;
    }

    .app-sidebar-link {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 64px;
        padding: 8px;
        text-align: center;
    }

    .app-sidebar-link::before,
    .app-sidebar-status,
    .app-sidebar-logout {
        display: none;
    }

    .app-topbar {
        position: relative;
        flex-wrap: wrap;
        min-height: auto;
    }

    .app-search-strip {
        width: 100%;
    }

    .app-topbar-spacer {
        display: none;
    }
}

@media (max-width: 640px) {
    .app-shell-public {
        width: min(100% - 24px, 1120px);
        padding: 18px 0;
    }

    .app-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-panel {
        padding: 22px;
    }

    .app-title {
        font-size: 38px;
    }

    .auth-title {
        font-size: 34px;
    }

    .app-content {
        --app-content-inline-padding: 14px;
        padding: 0 var(--app-content-inline-padding) 24px;
    }

    .app-sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-topbar {
        padding: 14px;
    }

    .app-platform-filter,
    .app-sync-button,
    .app-user-pill {
        flex: 1 1 100%;
        width: 100%;
    }

    .app-notification-button {
        width: 48px;
    }

    .dashboard-hero-content {
        padding: 26px 22px;
    }

    .dashboard-hero-content h1 {
        font-size: 30px;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-game-card {
        grid-template-columns: 1fr;
    }

    .dashboard-game-cover {
        min-height: 150px;
    }

    .dashboard-game-detail-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .dashboard-game-achievement-progress {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .dashboard-game-achievement-progress-track {
        grid-column: 1 / -1;
    }

    .dashboard-summary-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-recent-achievement-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .dashboard-recent-achievement-row time {
        grid-column: 2;
        text-align: left;
    }

    .dashboard-activity-panel {
        overflow-x: auto;
    }

    .dashboard-recently-played-thumb {
        width: 76px;
        height: 36px;
    }

    .dashboard-profile-main,
    .dashboard-detail-list div,
    .account-details div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .dashboard-change-row {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .dashboard-change-row img,
    .dashboard-change-row .dashboard-game-image-link>span {
        width: 76px;
        height: 38px;
    }

    .dashboard-change-row time {
        grid-column: 2;
        text-align: left;
    }

    .sync-progress-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .sync-progress-header span {
        text-align: left;
    }

    .steam-library-row,
    .steam-wishlist-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .steam-library-cover,
    .steam-wishlist-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 460 / 215;
    }

    .steam-library-metrics,
    .steam-wishlist-metrics {
        grid-template-columns: 1fr;
    }

    .steam-library-links,
    .steam-wishlist-links,
    .steam-achievement-links {
        justify-content: flex-start;
    }

    .steam-game-daily-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .steam-achievement-row,
    .steam-game-achievement-row {
        grid-template-columns: 64px 1fr;
        align-items: flex-start;
    }

    .steam-achievement-metrics,
    .steam-achievement-links {
        grid-column: 1 / -1;
    }
}

/*
 * Strona `/konto/steam/biblioteka`.
 *
 * Ten blok odtwarza układ z `raw/game-list-design.png`: panel podsumowania,
 * pasek filtrów oraz siatkę kart gier. Klasy są celowo zawężone do
 * `.steam-library-page`, żeby nie zmieniać starszych list Steam używanych na
 * innych ekranach.
 */
.steam-library-page {
    display: grid;
    gap: 10px;
    min-width: 0;
    color: var(--private-text);
    animation: steam-library-enter 220ms ease-out both;
}

.steam-library-overview,
.steam-library-browser,
.steam-library-empty-state {
    border: 1px solid rgba(112, 151, 190, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(14, 29, 46, 0.94), rgba(8, 18, 30, 0.96)),
        rgba(11, 22, 35, 0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.steam-library-overview {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.steam-library-heading {
    display: grid;
    gap: 6px;
}

.steam-library-heading p,
.steam-library-heading h1,
.steam-library-heading span,
.steam-library-browser-header p,
.steam-library-browser-header h2 {
    margin: 0;
}

.steam-library-heading p,
.steam-library-browser-header p {
    color: #9fcaff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.steam-library-heading h1 {
    color: #ffffff;
    font-size: 30px;
    line-height: 1.1;
}

.steam-library-heading span {
    max-width: 720px;
    color: var(--private-muted);
    font-size: 15px;
    line-height: 1.55;
}

.steam-library-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.steam-library-stat {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 100px;
    padding: 16px;
    border: 1px solid var(--private-border);
    border-radius: 8px;
    background: rgba(15, 28, 43, 0.86);
}

.steam-library-stat-icon {
    position: relative;
    display: block;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(75, 142, 186, 0.34);
    border-radius: 8px;
    color: #7fb3d9;
    background:
        linear-gradient(145deg, rgba(15, 33, 51, 0.98), rgba(9, 21, 34, 0.98)),
        #0d1d2f;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(9, 18, 30, 0.34),
        0 8px 16px rgba(0, 0, 0, 0.16);
}

.steam-library-stat-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    filter: none;
    opacity: 0.92;
}

.steam-library-stat-icon svg path[fill="currentColor"],
.steam-library-stat-icon svg circle[fill="currentColor"] {
    fill: currentColor;
    stroke: none;
}

.steam-library-stat div p,
.steam-library-stat div strong,
.steam-library-stat div span {
    display: block;
    margin: 0;
    overflow-wrap: anywhere;
}

.steam-library-stat p {
    color: #99a9ba;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.steam-library-stat strong {
    margin-top: 5px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.05;
}

.steam-library-stat div span {
    margin-top: 7px;
    color: #94a4b6;
    font-size: 12px;
    line-height: 1.35;
}

.steam-library-empty-state {
    display: grid;
    justify-items: start;
    gap: 14px;
    padding: 28px;
}

.steam-library-empty-state h2,
.steam-library-empty-state p {
    margin: 0;
}

.steam-library-empty-state h2 {
    color: #ffffff;
    font-size: 24px;
}

.steam-library-empty-state p {
    max-width: 620px;
    color: var(--private-muted);
    font-size: 15px;
    line-height: 1.6;
}

.steam-library-browser {
    display: grid;
    gap: 16px;
    padding: 14px;
}

.steam-library-browser-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 0 4px;
}

.steam-library-browser-header h2 {
    margin-top: 4px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
}

.steam-library-browser-header>span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 999px;
    background: rgba(128, 164, 204, 0.08);
    color: var(--private-muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.steam-library-toolbar {
    display: grid;
    grid-template-columns: minmax(250px, 1.05fr) 92px minmax(250px, 0.9fr) minmax(210px, 0.72fr) minmax(310px, 1fr) 94px;
    gap: 10px;
    align-items: stretch;
}

.steam-library-search,
.steam-library-search-submit,
.steam-library-select,
.steam-library-view-switcher {
    min-height: 46px;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.82);
}

.steam-library-search {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.steam-library-toolbar-icon {
    width: 22px;
    height: 22px;
    color: #91a4ba;
}

.steam-library-search input,
.steam-library-select select {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--private-text);
    font: inherit;
    font-size: 13px;
}

.steam-library-search input::placeholder {
    color: #7f8d9e;
}

.steam-library-search-submit {
    min-width: 0;
    padding: 0 10px;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.steam-library-search-submit:hover,
.steam-library-search-submit:focus-visible {
    border-color: rgba(54, 163, 255, 0.48);
    background: rgba(54, 163, 255, 0.14);
}

.steam-library-select {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 10px;
}

.steam-library-select>span {
    color: var(--private-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.steam-library-select select {
    cursor: pointer;
}

/*
 * TomSelect w pasku filtrów.
 *
 * Domyślne style biblioteki są jasne i neutralne. Tutaj nadpisujemy je tylko w
 * obrębie biblioteki Steam, żeby multiwybór gatunków wyglądał jak część ciemnego
 * panelu Omnistats.
 */
.steam-library-page .steam-library-select .ts-wrapper {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    color: var(--private-text) !important;
    font-size: 13px !important;
}

.steam-library-page .steam-library-select .ts-control,
.steam-library-page .steam-library-select .ts-wrapper.single .ts-control,
.steam-library-page .steam-library-select .ts-wrapper.single.input-active .ts-control {
    min-height: 30px !important;
    padding: 0 24px 0 0 !important;
    align-items: center !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--private-text) !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

.steam-library-page .steam-library-select .ts-wrapper.focus .ts-control,
.steam-library-page .steam-library-select .ts-wrapper.dropdown-active .ts-control {
    box-shadow: none !important;
}

.steam-library-page .steam-library-select .ts-control input {
    min-width: 2rem !important;
    color: var(--private-text) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.steam-library-page .steam-library-select .ts-control input::placeholder {
    color: #7f8d9e !important;
}

.steam-library-page .steam-library-select .ts-wrapper.single .ts-control .item {
    overflow: hidden;
    color: #dce7f4 !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-library-page .steam-library-select .ts-wrapper.single .ts-control::after {
    right: 4px !important;
    border-color: #8fa4ba transparent transparent !important;
}

.steam-library-page .steam-library-select .ts-wrapper.single.dropdown-active .ts-control::after {
    border-color: transparent transparent #8fa4ba !important;
}

.steam-library-page .steam-library-select .ts-wrapper.multi .ts-control {
    gap: 4px;
    padding-right: 0 !important;
}

.steam-library-page .steam-library-select .ts-wrapper.multi .ts-control .item {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    margin: 1px 3px 1px 0;
    padding: 0 7px;
    border: 1px solid rgba(54, 163, 255, 0.24);
    border-radius: 6px;
    background: rgba(54, 163, 255, 0.12);
    color: #b9d8ff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

.steam-library-page .steam-library-select .ts-wrapper.plugin-remove_button .item .remove {
    margin-left: 6px;
    border-left: 1px solid rgba(185, 216, 255, 0.22);
    color: #d8e8ff;
    opacity: 0.78;
}

.steam-library-page .steam-library-select .ts-dropdown {
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid rgba(82, 126, 169, 0.34);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(13, 27, 43, 0.98), rgba(7, 17, 29, 0.99)),
        #091523;
    color: #dce7f4;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.steam-library-page .steam-library-select .ts-dropdown .option {
    padding: 9px 11px;
    color: #c7d5e6;
    font-size: 13px;
}

.steam-library-page .steam-library-select .ts-dropdown .active {
    background: rgba(54, 163, 255, 0.16);
    color: #ffffff;
}

.steam-library-page .steam-library-select .ts-dropdown .selected {
    color: #9fcaff;
}

.steam-library-view-switcher {
    display: inline-grid;
    grid-template-columns: repeat(2, 46px);
    gap: 0;
    overflow: hidden;
}

.steam-library-view-button {
    display: grid;
    place-items: center;
    border: 0;
    border-left: 1px solid rgba(128, 164, 204, 0.12);
    background: transparent;
    color: #90a2b7;
    cursor: pointer;
}

.steam-library-view-button:first-child {
    border-left: 0;
}

.steam-library-view-button svg {
    width: 22px;
    height: 22px;
}

.steam-library-view-button:hover,
.steam-library-view-button:focus-visible,
.steam-library-view-button.is-active {
    background: rgba(54, 163, 255, 0.14);
    color: #42a8ff;
}

.steam-library-search-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: -4px 4px 0;
    color: var(--private-muted);
    font-size: 13px;
}

.steam-library-search-summary strong {
    color: #ffffff;
}

.steam-library-search-summary a {
    color: #9fcaff;
    font-weight: 900;
    text-decoration: none;
}

.steam-library-card-grid {
    display: grid;
    /*
     * Duży ekran ma maksymalnie 6 gier w rzędzie.
     * Kafelki nadal są elastyczne, bo każda kolumna dostaje `1fr` i rozszerza
     * się lub zwęża razem z dostępną szerokością obszaru roboczego.
     */
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
}

.steam-library-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(90, 125, 160, 0.26);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(13, 26, 40, 0.98), rgba(7, 17, 29, 1)),
        #091523;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.steam-library-card[hidden] {
    display: none;
}

.steam-library-card:hover,
.steam-library-card:focus-within {
    border-color: rgba(54, 163, 255, 0.42);
    background:
        linear-gradient(180deg, rgba(16, 32, 49, 0.98), rgba(8, 19, 32, 0.98)),
        #0d1b2b;
    transform: translateY(-2px);
}

/*
 * Gra ukończona w 100% dostaje kolor pucharka.
 * Poświata jest zrobiona przez kilka miękkich cieni, żeby border wyglądał jak
 * lekko rozmyte światło, ale nie przykrywał grafiki i tekstu na karcie.
 */
.steam-library-card.is-completed {
    border-color: rgba(255, 199, 44, 0.72);
    box-shadow:
        0 0 0 1px rgba(255, 199, 44, 0.16),
        0 0 14px rgba(255, 199, 44, 0.18),
        0 0 28px rgba(255, 199, 44, 0.1);
}

.steam-library-card.is-completed:hover,
.steam-library-card.is-completed:focus-within {
    border-color: rgba(255, 199, 44, 0.92);
    box-shadow:
        0 0 0 1px rgba(255, 199, 44, 0.24),
        0 0 18px rgba(255, 199, 44, 0.26),
        0 0 34px rgba(255, 199, 44, 0.14);
}

.steam-library-card-media {
    position: relative;
    min-width: 0;
    aspect-ratio: 460 / 215;
    overflow: hidden;
    background:
        linear-gradient(180deg, transparent 58%, rgba(7, 16, 27, 0.34)),
        linear-gradient(135deg, rgba(54, 163, 255, 0.2), rgba(155, 124, 255, 0.16)),
        #101c2b;
}

.steam-library-card-cover-link,
.steam-library-card-cover,
.steam-library-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.steam-library-card-cover {
    object-fit: cover;
    transition: filter 180ms ease, transform 180ms ease;
}

.steam-library-card:hover .steam-library-card-cover {
    filter: saturate(1.08);
    transform: scale(1.025);
}

.steam-library-card-placeholder {
    display: grid;
    place-items: center;
    color: #d9e7f7;
    font-size: 44px;
    font-weight: 900;
}

/*
 * Ikona korony zastępuje dawną gwiazdkę w rogu karty.
 * Pokazujemy ją tylko przy grach ukończonych w 100%, więc użytkownik
 * od razu widzi, że żółty akcent oznacza pełne przejście osiągnięć.
 */
.steam-library-card-complete-icon {
    position: absolute;
    top: 8px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    color: #ffc72c;
    filter:
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 8px rgba(255, 199, 44, 0.48));
}

.steam-library-card-complete-icon svg {
    width: 42px;
    height: 42px;
}

.steam-library-card-complete-icon svg path {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
}

.steam-library-card-body {
    display: grid;
    align-content: start;
    gap: 9px;
    min-width: 0;
    padding: 11px 12px 13px;
}

.steam-library-card-title-row {
    display: grid;
    min-width: 0;
}

.steam-library-card-title-row h3 {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.22;
}

.steam-library-card-title-row h3 a {
    color: inherit;
    text-decoration: none;
}

.steam-library-card-title-row h3 a:hover,
.steam-library-card-title-row h3 a:focus-visible {
    color: #9fcaff;
}

.steam-library-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
}

.steam-library-card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border: 1px solid rgba(75, 161, 255, 0.18);
    border-radius: 6px;
    background: rgba(54, 163, 255, 0.08);
    color: #99c9ff;
    font-size: 11px;
    font-weight: 700;
}

.steam-library-card-tags span:nth-child(2n) {
    border-color: rgba(155, 124, 255, 0.2);
    background: rgba(155, 124, 255, 0.1);
    color: #c6b2ff;
}

.steam-library-card-time {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    color: #dbe8f6;
}

.steam-library-card-time span {
    width: 18px;
    height: 18px;
    color: #9fb1c7;
}

.steam-library-card-time strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-library-card-progress {
    display: grid;
    grid-template-columns: minmax(70px, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.steam-library-card-progress>span {
    display: block;
    overflow: hidden;
    height: 6px;
    border-radius: 999px;
    background: rgba(128, 164, 204, 0.18);
}

.steam-library-card-progress>span span {
    display: block;
    width: var(--steam-library-achievement-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #42a8ff, #2f7ee8);
}

.steam-library-card-progress strong {
    overflow: hidden;
    color: #dce7f4;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
 * Przy grach ukończonych w 100% pasek i procenty dostają ten sam kolor,
 * co puchar/korona. Dzięki temu cały stan "ukończone" jest spójny wizualnie.
 */
.steam-library-card.is-completed .steam-library-card-progress>span span {
    background: linear-gradient(90deg, #ffc72c, #ffe17a);
    box-shadow: 0 0 8px rgba(255, 199, 44, 0.42);
}

.steam-library-card.is-completed .steam-library-card-progress strong {
    color: #ffc72c;
    text-shadow: 0 0 8px rgba(255, 199, 44, 0.32);
}

.steam-library-card-achievements,
.steam-library-card-last-played {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
}

.steam-library-card-achievements span {
    width: 18px;
    height: 18px;
    color: #ffc72c;
    filter: drop-shadow(0 0 4px rgba(255, 199, 44, 0.32));
}

.steam-library-card-achievements svg {
    width: 18px;
    height: 18px;
}

.steam-library-card-achievements svg path {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
}

.steam-library-card-achievements strong {
    color: #dce7f4;
    font-size: 12px;
    font-weight: 900;
}

.steam-library-card-last-played {
    grid-template-columns: auto minmax(0, 1fr);
}

.steam-library-card-last-played-label,
.steam-library-card-last-played-value {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-library-card-last-played-label {
    color: #9fb1c7;
}

.steam-library-card-last-played-value {
    color: #67d98d;
    font-weight: 900;
}

.steam-library-card-last-played-value.is-empty {
    color: #9fb1c7;
    font-weight: 400;
}

.steam-library-filter-empty {
    margin: 0;
    padding: 22px;
    border: 1px dashed rgba(128, 164, 204, 0.22);
    border-radius: 8px;
    background: rgba(7, 14, 23, 0.36);
    color: var(--private-muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.steam-library-pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    padding: 6px 4px 0;
}

.steam-library-pagination p {
    margin: 0;
    color: var(--private-muted);
    font-size: 14px;
}

.steam-library-page-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.steam-library-page-links a,
.steam-library-page-links span {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.72);
    color: #c9d6e5;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.steam-library-page-links a svg {
    width: 18px;
    height: 18px;
}

.steam-library-page-links a:hover,
.steam-library-page-links a:focus-visible,
.steam-library-page-links .is-current {
    border-color: rgba(54, 163, 255, 0.58);
    background: rgba(54, 163, 255, 0.18);
    color: #ffffff;
}

.steam-library-page-size {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.72);
    color: var(--private-muted);
    font-size: 13px;
}

.steam-library-page-size strong {
    color: #ffffff;
}

/*
 * Widok listy korzysta z tych samych kart. Zmieniamy tylko geometrię, żeby
 * użytkownik mógł skanować tytuły w jednym pionowym ciągu.
 */
.steam-library-page.is-list-view .steam-library-card-grid {
    grid-template-columns: 1fr;
}

.steam-library-page.is-list-view .steam-library-card {
    grid-template-columns: 230px minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: 128px;
}

.steam-library-page.is-list-view .steam-library-card-media {
    height: 100%;
    min-height: 128px;
    aspect-ratio: auto;
    border-right: 1px solid rgba(90, 125, 160, 0.18);
}

.steam-library-page.is-list-view .steam-library-card-body {
    display: grid;
    grid-template-areas:
        "title time progress achievements"
        "tags last progress achievements";
    grid-template-columns: minmax(180px, 1.15fr) minmax(128px, 0.48fr) minmax(210px, 0.95fr) minmax(130px, 0.45fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    gap: 10px 18px;
    padding: 16px 18px;
}

.steam-library-page.is-list-view .steam-library-card-title-row {
    grid-area: title;
}

.steam-library-page.is-list-view .steam-library-card-title-row h3 {
    font-size: 15px;
}

.steam-library-page.is-list-view .steam-library-card-tags {
    grid-area: tags;
    min-height: 22px;
}

.steam-library-page.is-list-view .steam-library-card-time {
    grid-area: time;
}

.steam-library-page.is-list-view .steam-library-card-progress {
    grid-area: progress;
}

.steam-library-page.is-list-view .steam-library-card-achievements {
    grid-area: achievements;
}

.steam-library-page.is-list-view .steam-library-card-last-played {
    grid-area: last;
    grid-template-columns: 1fr;
    gap: 2px;
}

.steam-library-page.is-list-view .steam-library-card-last-played-value:not(.is-empty) {
    color: #67d98d;
}

.steam-library-page.is-list-view .steam-library-card:hover .steam-library-card-cover {
    transform: none;
}

@keyframes steam-library-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1680px) {
    .steam-library-card-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1420px) {
    .steam-library-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1280px) {
    .steam-library-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steam-library-toolbar {
        grid-template-columns: minmax(260px, 1fr) minmax(160px, 0.46fr) minmax(220px, 0.8fr);
    }
}

@media (max-width: 1180px) {
    .steam-library-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .steam-library-page.is-list-view .steam-library-card {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .steam-library-page.is-list-view .steam-library-card-body {
        grid-template-areas:
            "title progress"
            "tags progress"
            "time achievements"
            "last last";
        grid-template-columns: minmax(0, 1fr) minmax(180px, 0.8fr);
        gap: 8px 14px;
    }

    .steam-library-page.is-list-view .steam-library-card-last-played {
        grid-template-columns: auto minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .steam-library-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steam-library-overview,
    .steam-library-empty-state {
        padding: 18px;
    }

    .steam-library-toolbar {
        grid-template-columns: 1fr;
    }

    .steam-library-view-switcher {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steam-library-view-button {
        min-height: 44px;
    }

    .steam-library-pagination {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .steam-library-heading h1 {
        font-size: 26px;
    }

    .steam-library-stat-grid {
        grid-template-columns: 1fr;
    }

    .steam-library-stat {
        grid-template-columns: 48px minmax(0, 1fr);
        min-height: 88px;
        padding: 14px;
    }

    .steam-library-stat-icon {
        width: 48px;
        height: 48px;
    }

    .steam-library-stat dd {
        font-size: 23px;
    }

    .steam-library-browser-header {
        flex-direction: column;
        gap: 10px;
    }

    .steam-library-card-grid {
        grid-template-columns: 1fr;
    }

    .steam-library-page.is-list-view .steam-library-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .steam-library-page.is-list-view .steam-library-card-media {
        min-height: 0;
        aspect-ratio: 460 / 215;
        border-right: 0;
    }

    .steam-library-page.is-list-view .steam-library-card-body {
        grid-template-areas:
            "title"
            "tags"
            "time"
            "progress"
            "achievements"
            "last";
        grid-template-columns: 1fr;
        padding: 11px 12px 13px;
    }

    .steam-library-card-progress {
        grid-template-columns: 1fr;
    }

    .steam-library-card-progress strong {
        max-width: none;
        text-align: left;
    }

    .steam-library-page-links {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}
