/*
 * 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;
    /*
     * Steam Store zwraca nagłówki gier w rozdzielczości 460x215.
     * Trzymamy tę wartość w jednym miejscu, żeby wszystkie miniatury i ramki
     * mogły używać tej samej proporcji bez ryzyka przycinania obrazu.
     */
    --steam-game-header-aspect-ratio: 460 / 215;
}

* {
    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 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--public-text);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
}

/*
 * Wspólny tekst logotypu. `OMNI` jest mocniejsze wizualnie, a `STATS`
 * zostaje trochę lżejsze, więc nazwa nadal czyta się jako jedno słowo.
 */
.app-brand-text {
    display: inline-flex;
    align-items: baseline;
    color: inherit;
    font-weight: 500;
    letter-spacing: 0;
}

.app-brand-text strong {
    font-weight: 600;
}

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

.app-nav-link {
    color: #3b4658;
    font-size: 15px;
    font-weight: 600;
    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: 600;
    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: 600;
    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: 600;
}

.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: 600;
}

/*
 * Ekran logowania dopasowany do dashboardu.
 * Zostawiamy tylko markę i formularz na środku ekranu, bo na tym widoku
 * użytkownik ma wykonać jedną konkretną czynność: zalogować się.
 */
.app-body-login {
    color-scheme: dark;
    color: var(--private-text);
    min-height: 100svh;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(9, 15, 25, 0.98), rgba(5, 9, 15, 1)),
        var(--private-background);
}

.app-body-login .app-shell-public {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 420px;
    min-height: 100svh;
    margin: 0 auto;
    padding: 32px 0;
}

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

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

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

.auth-login-screen {
    display: grid;
    gap: 22px;
    width: 100%;
}

.auth-login-brand {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    gap: 12px;
    color: var(--private-text);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
}

.auth-login-brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
}

.auth-login-card {
    width: 100%;
    padding: 32px;
    border: 1px solid var(--private-border);
    border-radius: 10px;
    background: rgba(15, 28, 43, 0.88);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.auth-login-eyebrow {
    color: #9fcaff;
}

.auth-login-title,
.auth-login-copy {
    margin: 0;
}

.auth-login-title {
    color: var(--private-text);
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: 0;
}

.auth-login-copy {
    margin-top: 12px;
    color: var(--private-muted);
    font-size: 15px;
    line-height: 1.55;
}

.app-body-login .auth-login-error {
    max-width: none;
    margin: 26px 0 22px;
    padding: 14px 16px;
}

.auth-login-form {
    margin-top: 26px;
}

.app-body-login .auth-login-error+.auth-login-form {
    margin-top: 0;
}

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

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

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

.app-body-login .form-input.is-invalid {
    border-color: rgba(215, 91, 102, 0.72);
}

.app-body-login .form-input.is-invalid:focus {
    border-color: rgba(215, 91, 102, 0.82);
    outline-color: rgba(215, 91, 102, 0.18);
}

.auth-login-field-error {
    margin: 0;
    color: #ffb7bd;
    font-size: 13px;
    line-height: 1.45;
}

.auth-login-submit {
    width: 100%;
    min-height: 48px;
    border-color: rgba(54, 163, 255, 0.55);
    background: var(--accent-blue-strong);
    color: #ffffff;
}

.auth-login-side-link,
.auth-login-register-link {
    color: var(--private-muted);
    font-size: 15px;
    line-height: 1.5;
}

.auth-login-side-link {
    margin-top: 18px;
}

.auth-login-register-link {
    margin: 8px 0 0;
}

.auth-login-side-link a,
.auth-login-register-link a {
    color: #9fcaff;
    font-weight: 600;
    text-decoration: none;
}

.auth-login-side-link a:hover,
.auth-login-side-link a:focus-visible,
.auth-login-register-link a:hover,
.auth-login-register-link a:focus-visible {
    color: #ffffff;
}

.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: 600;
}

.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: 500;
    letter-spacing: 0;
    text-decoration: none;
}

.app-brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
}

/*
 * Sam znak logotypu jest plikiem PNG z przezroczystym tłem.
 * `object-fit: contain` pilnuje, żeby mieścił się w zadanym kwadracie
 * bez rozciągania i bez przycinania.
 */
.app-brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.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: 600;
    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-subnav {
    display: grid;
    gap: 4px;
    margin: -2px 0 2px 38px;
    padding-left: 10px;
    border-left: 1px solid rgba(128, 164, 204, 0.16);
}

.app-sidebar-subnav a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    color: var(--private-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.app-sidebar-subnav a:hover,
.app-sidebar-subnav a:focus-visible,
.app-sidebar-subnav a.is-active {
    background: rgba(54, 163, 255, 0.1);
    color: var(--private-text);
    outline: 0;
}

.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: 600;
}

.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: 600;
    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: 600;
    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;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--private-border);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.88);
}

.app-search-submit {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #91a4ba;
    cursor: pointer;
}

.app-search-submit:hover,
.app-search-submit:focus-visible {
    color: #d9e7f7;
    outline: 0;
}

.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 {
    position: relative;
    margin: 0;
}

.app-sync-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    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;
}

/*
 * Mały pasek pod przyciskiem HLTB pokazuje postęp globalnego skanu bez
 * zabierania miejsca w topbarze. Pełny tekst postępu trafia do etykiety
 * przycisku przez kontroler Stimulus.
 */
.app-topbar-hltb-form {
    display: inline-flex;
    align-items: center;
}

.app-hltb-progress-track {
    position: absolute;
    right: 8px;
    bottom: 5px;
    left: 8px;
    overflow: hidden;
    height: 3px;
    border-radius: 999px;
    background: rgba(128, 164, 204, 0.18);
}

.app-hltb-progress-track[hidden] {
    display: none;
}

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

.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: 600;
    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: 600;
}

.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;
    width: 100%;
    max-width: 2200px;
    min-width: 0;
    /*
     * Automatyczne marginesy centrują główną treść wtedy, gdy ekran jest
     * szerszy niż maksymalna szerokość kontenera.
     */
    margin-inline: auto;
    padding: 0 var(--app-content-inline-padding) 32px;
}

/*
 * Globalna wyszukiwarka z topbara.
 *
 * Wyniki są rozdzielone na dwie tabele, bo Profile Steam i gry mają inne dane
 * oraz inne akcje docelowe.
 */
.global-search-page {
    display: grid;
    gap: 16px;
    width: 100%;
}

.global-search-overview,
.global-search-panel,
.global-search-empty-state {
    border: 1px solid var(--private-border);
    border-radius: 8px;
    background: rgba(15, 28, 43, 0.72);
}

.global-search-overview {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
}

.global-search-overview p,
.global-search-overview h1,
.global-search-overview span,
.global-search-panel-header p,
.global-search-panel-header h2,
.global-search-panel-header span,
.global-search-empty-state h2,
.global-search-empty-state p {
    margin: 0;
}

.global-search-overview p,
.global-search-panel-header p {
    color: #74b7ff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.global-search-overview h1 {
    margin-top: 5px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.1;
}

.global-search-overview div>span {
    display: block;
    margin-top: 6px;
    color: var(--private-muted);
    font-size: 14px;
}

.global-search-count-pill,
.global-search-panel-header>span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    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: 600;
    white-space: nowrap;
}

.global-search-panel {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 14px;
}

.global-search-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 0 4px;
}

.global-search-panel-header h2 {
    margin-top: 4px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
}

.global-search-table-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(128, 164, 204, 0.14);
    border-radius: 8px;
    background: rgba(7, 16, 27, 0.24);
}

.global-search-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
}

.global-search-table th,
.global-search-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(128, 164, 204, 0.12);
    text-align: left;
    vertical-align: middle;
}

.global-search-table th {
    background: rgba(7, 16, 27, 0.46);
    color: #7f8fa3;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.global-search-table tbody tr:last-child td {
    border-bottom: 0;
}

.global-search-table td {
    color: #dbe7f4;
    font-size: 13px;
}

.global-search-table code {
    color: #b9d8ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
}

.global-search-table .steam-wishlist-review-label,
.global-search-table .steam-wishlist-review-count,
.global-search-table .steam-wishlist-review-empty {
    display: block;
}

.global-search-primary-cell {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.global-search-primary-cell strong,
.global-search-primary-cell span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-primary-cell strong {
    color: #ffffff;
    font-size: 14px;
}

.global-search-primary-cell span,
.global-search-muted {
    color: var(--private-muted);
    font-size: 12px;
}

.global-search-avatar,
.global-search-game-cover {
    width: 72px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(128, 164, 204, 0.08);
}

.global-search-cover-link,
.global-search-title-link {
    color: inherit;
    text-decoration: none;
}

.global-search-cover-link {
    display: block;
    width: 72px;
    height: 42px;
    border-radius: 8px;
}

.global-search-cover-link:hover,
.global-search-cover-link:focus-visible,
.global-search-title-link:hover,
.global-search-title-link:focus-visible {
    color: #ffffff;
}

.global-search-title-link:hover,
.global-search-title-link:focus-visible {
    text-decoration: underline;
}

.global-search-avatar {
    width: 42px;
    border-radius: 50%;
}

.global-search-avatar.is-placeholder,
.global-search-game-cover.is-placeholder {
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 600;
}

.global-search-avatar.is-placeholder {
    background: linear-gradient(135deg, #2f7ee8, #6f5bd8);
}

.global-search-game-cover.is-placeholder {
    background: linear-gradient(135deg, #132f4b, #244c43);
}

.global-search-link {
    color: #9fcaff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.global-search-link.is-regular {
    font-weight: 400;
}

.global-search-link:hover,
.global-search-link:focus-visible {
    color: #ffffff;
}

.global-search-empty-cell {
    color: var(--private-muted);
    text-align: center;
}

.global-search-empty-state {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.global-search-empty-state h2 {
    color: #ffffff;
    font-size: 22px;
}

.global-search-empty-state p {
    max-width: 680px;
    color: var(--private-muted);
    font-size: 14px;
    line-height: 1.6;
}

/*
 * 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 `/account` ma takie same boczne odstępy głównej treści jak
     * widoki Steam, na przykład `/account/steam/library`.
     */
    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: 600;
    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 {
    /*
     * `contain` pokazuje cały header Steam także wtedy, gdy baner dashboardu
     * ma inne proporcje niż źródłowy obraz 460x215.
     */
    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) right center / contain 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: 600;
    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 {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--steam-game-header-aspect-ratio);
    border-radius: 8px;
    object-fit: contain;
    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: 600;
}

.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: 600;
    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: 600;
}

.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: 600;
}

.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: 600;
    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: 600;
    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: 600;
    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;
    /*
     * Kolumny z czasem gry mają być spokojniejsze wizualnie niż nazwa gry,
     * dlatego zostają w zwykłej grubości tekstu.
     */
    font-weight: 400;
    white-space: nowrap;
}

.dashboard-recently-played-thumb {
    display: block;
    width: 92px;
    height: auto;
    aspect-ratio: var(--steam-game-header-aspect-ratio);
    border-radius: 6px;
    object-fit: contain;
    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: 400;
    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: 600;
    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: 600;
    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: 600;
}

.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: 600;
}

.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: 600;
    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: auto;
    aspect-ratio: var(--steam-game-header-aspect-ratio);
    border-radius: 6px;
    object-fit: contain;
}

.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: 600;
}

.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: 600;
}

.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: 600;
    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: 600;
}

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

/*
 * Moduł raportów Steam.
 * Nowy układ ma charakter "gaming recap": duży nagłówek, mocne metryki,
 * miniatury gier, dzienny wykres i pełne tabele danych.
 */
.steam-report-page {
    display: grid;
    gap: 18px;
    min-width: 0;
    color: var(--private-text);
    animation: steam-report-enter 240ms ease-out both;
}

.app-body-public-report {
    color-scheme: dark;
    background:
        linear-gradient(180deg, #05070d 0%, #090d15 48%, #05070d 100%),
        #05070d;
}

.app-body-public-report .app-shell-public {
    width: min(100% - 32px, 1680px);
    padding: 24px 0 44px;
}

.app-body-public-report .app-header {
    color: var(--private-text);
}

.app-body-public-report .app-brand,
.app-body-public-report .app-nav-link {
    color: var(--private-text);
}

.steam-report-header {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 34px;
    border: 1px solid rgba(128, 164, 204, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(9, 16, 28, 0.96) 0%, rgba(14, 28, 46, 0.94) 48%, rgba(31, 17, 35, 0.92) 100%),
        #07111f;
    color: var(--private-text);
    box-shadow:
        0 22px 58px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.steam-report-header::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(90deg, rgba(66, 168, 255, 0.18), transparent 30%),
        linear-gradient(135deg, transparent 0 58%, rgba(255, 199, 44, 0.16) 58% 60%, transparent 60%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 84px);
    opacity: 0.72;
}

.steam-report-header::after {
    position: absolute;
    right: 34px;
    bottom: 30px;
    width: min(42%, 520px);
    height: 118px;
    pointer-events: none;
    content: "";
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(66, 168, 255, 0.18) 0 18%, rgba(101, 217, 145, 0.22) 18% 34%, rgba(255, 199, 44, 0.2) 34% 49%, rgba(244, 114, 182, 0.18) 49% 64%, rgba(192, 132, 252, 0.2) 64% 79%, rgba(102, 217, 255, 0.18) 79% 100%),
        rgba(255, 255, 255, 0.03);
    clip-path: polygon(0 48%, 8% 36%, 16% 58%, 24% 22%, 32% 40%, 40% 18%, 48% 52%, 56% 31%, 64% 66%, 72% 24%, 80% 44%, 88% 30%, 100% 62%, 100% 100%, 0 100%);
    opacity: 0.66;
}

.steam-report-header>div {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.steam-report-header p,
.steam-report-share-panel p {
    margin: 0 0 6px;
    color: #9fcaff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.steam-report-header h1,
.steam-report-empty-state h2 {
    margin: 0;
    color: #ffffff;
    font-size: 56px;
    line-height: 0.96;
    letter-spacing: 0;
}

.steam-report-header span,
.steam-report-share-panel span {
    display: block;
    margin-top: 8px;
    max-width: 720px;
    color: #c3cfde;
    font-size: 16px;
    line-height: 1.6;
}

.steam-report-control-deck,
.steam-report-share-panel,
.steam-report-spotlight,
.steam-report-chart-panel,
.steam-report-table-panel,
.steam-report-empty-state {
    border: 1px solid rgba(112, 151, 190, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(12, 24, 39, 0.94), rgba(7, 16, 27, 0.96)),
        #091523;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.steam-report-control-deck {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.steam-report-period-tabs,
.steam-report-period-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.steam-report-period-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.82);
    color: #aebed0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.steam-report-period-tab:hover,
.steam-report-period-tab:focus-visible {
    border-color: rgba(66, 168, 255, 0.46);
    background: rgba(66, 168, 255, 0.13);
    color: #ffffff;
}

.steam-report-period-tab.is-active {
    border-color: rgba(66, 168, 255, 0.72);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(66, 168, 255, 0.24), rgba(101, 217, 145, 0.12)),
        rgba(66, 168, 255, 0.12);
}

.steam-report-period-nav {
    justify-content: center;
}

.steam-report-period-picker {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.steam-report-period-picker select:not(.select2-hidden-accessible) {
    width: 220px;
    min-height: 42px;
    padding: 0 42px 0 13px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    appearance: none;
    background-color: rgba(17, 30, 45, 0.92);
    background-image:
        linear-gradient(45deg, transparent 50%, #9fcaff 50%),
        linear-gradient(135deg, #9fcaff 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: 0;
}

.steam-report-period-picker select:not(.select2-hidden-accessible):focus-visible {
    border-color: rgba(66, 168, 255, 0.58);
    background-color: rgba(20, 42, 64, 0.96);
    box-shadow: 0 0 0 3px rgba(66, 168, 255, 0.16);
}

/*
 * Select2 ma własne klasy generowane przez JavaScript.
 * Zawężamy reguły do raportu Steam, żeby nie zmieniać ewentualnych innych
 * wybieraków Select2 w aplikacji.
 */
.steam-report-page .select2-container {
    width: 220px !important;
    min-width: 0;
    color: var(--private-text);
    font-size: 14px;
}

.steam-report-page .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.82);
}

.steam-report-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    min-width: 0;
    padding-left: 12px;
    padding-right: 36px;
    color: #ffffff;
    line-height: 1.2;
}

.steam-report-page .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #8fa4ba;
}

.steam-report-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    right: 10px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
}

.steam-report-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #9fcaff transparent transparent transparent;
}

.steam-report-page .select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgba(66, 168, 255, 0.56);
    background: rgba(66, 168, 255, 0.12);
}

.steam-report-period-dropdown {
    overflow: hidden;
    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-report-period-dropdown .select2-search--dropdown {
    padding: 8px;
}

.steam-report-period-dropdown .select2-search--dropdown .select2-search__field {
    min-height: 36px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.92);
    color: #ffffff;
    font: inherit;
    outline: 0;
}

.steam-report-period-dropdown .select2-results__option {
    padding: 9px 11px;
    color: #c7d5e6;
    font-size: 13px;
}

.steam-report-period-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(66, 168, 255, 0.18);
    color: #ffffff;
}

.steam-report-period-dropdown .select2-results__option--selected {
    background: rgba(101, 217, 145, 0.13);
    color: #b9f3d1;
}

.steam-report-period-button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.82);
    color: #c9d6e5;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.steam-report-period-button:hover,
.steam-report-period-button:focus-visible {
    border-color: rgba(101, 217, 145, 0.42);
    background: rgba(101, 217, 145, 0.12);
    color: #ffffff;
}

.steam-report-period-button.is-disabled {
    border-color: rgba(128, 164, 204, 0.12);
    background: rgba(17, 30, 45, 0.52);
    color: #8fa4ba;
    opacity: 0.44;
    cursor: not-allowed;
}

.steam-report-period-button.is-disabled:hover,
.steam-report-period-button.is-disabled:focus-visible {
    border-color: rgba(128, 164, 204, 0.12);
    background: rgba(17, 30, 45, 0.52);
    color: #8fa4ba;
}

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

.steam-report-stat {
    --steam-report-stat-accent: #42a8ff;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 132px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--steam-report-stat-accent) 34%, rgba(128, 164, 204, 0.16));
    border-radius: 8px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--steam-report-stat-accent) 12%, rgba(15, 28, 43, 0.94)), rgba(7, 16, 27, 0.95)),
        rgba(15, 28, 43, 0.86);
    color: var(--private-text);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 160ms ease, transform 160ms ease;
}

.steam-report-stat:hover {
    border-color: color-mix(in srgb, var(--steam-report-stat-accent) 58%, rgba(128, 164, 204, 0.16));
    transform: translateY(-2px);
}

.steam-report-stat.is-playtime {
    --steam-report-stat-accent: #42a8ff;
}

.steam-report-stat.is-played {
    --steam-report-stat-accent: #65d991;
}

.steam-report-stat.is-completed {
    --steam-report-stat-accent: #ffc72c;
}

.steam-report-stat.is-added {
    --steam-report-stat-accent: #66d9ff;
}

.steam-report-stat.is-achievements {
    --steam-report-stat-accent: #f472b6;
}

.steam-report-stat-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid color-mix(in srgb, var(--steam-report-stat-accent) 42%, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    background: color-mix(in srgb, var(--steam-report-stat-accent) 12%, rgba(255, 255, 255, 0.04));
    color: var(--steam-report-stat-accent);
}

.steam-report-stat-icon svg {
    width: 31px;
    height: 31px;
}

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

.steam-report-stat div {
    min-width: 0;
}

.steam-report-stat div span,
.steam-report-stat div strong,
.steam-report-stat div small {
    display: block;
    overflow-wrap: anywhere;
}

.steam-report-stat div span {
    color: #a8b7c8;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.steam-report-stat strong {
    margin-top: 7px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.05;
}

.steam-report-stat small {
    margin-top: 8px;
    color: #9fb1c7;
    font-size: 12px;
    line-height: 1.35;
}

.steam-report-spotlight,
.steam-report-chart-panel,
.steam-report-table-panel,
.steam-report-empty-state {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.steam-report-section-heading {
    display: grid;
    justify-items: start;
    gap: 4px;
}

.steam-report-section-heading p,
.steam-report-section-heading h2 {
    margin: 0;
}

.steam-report-section-heading p {
    color: #9fcaff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.steam-report-section-heading h2 {
    margin-top: 4px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.15;
}

.steam-report-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.steam-report-spotlight-game {
    position: relative;
    display: grid;
    min-height: 178px;
    overflow: hidden;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(8, 18, 30, 0.1), rgba(8, 18, 30, 0.92)),
        #0d1b2b;
}

.steam-report-spotlight-game {
    color: inherit;
    text-decoration: none;
}

.steam-report-spotlight-game:focus-visible,
.steam-report-game-thumb-link:focus-visible,
.steam-report-achievement-game-thumb-link:focus-visible {
    outline: 3px solid rgba(66, 168, 255, 0.38);
    outline-offset: 3px;
}

.steam-report-spotlight-game img,
.steam-report-game-placeholder {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    min-height: 178px;
}

.steam-report-spotlight-game img {
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
    transition: transform 180ms ease, filter 180ms ease;
}

.steam-report-spotlight-game:hover img {
    filter: saturate(1.18) contrast(1.04);
    transform: scale(1.025);
}

.steam-report-game-placeholder {
    display: grid;
    place-items: center;
    color: #d9e7f7;
    font-size: 48px;
    font-weight: 600;
    background:
        linear-gradient(135deg, rgba(66, 168, 255, 0.22), rgba(244, 114, 182, 0.18)),
        #101c2b;
}

.steam-report-spotlight-game div {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: end;
    gap: 5px;
    grid-area: 1 / 1;
    min-width: 0;
    padding: 14px;
    background: linear-gradient(180deg, transparent 36%, rgba(4, 8, 14, 0.92));
}

.steam-report-spotlight-game span,
.steam-report-spotlight-game strong,
.steam-report-spotlight-game small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-report-spotlight-game span {
    color: #ffc72c;
    font-size: 12px;
    font-weight: 600;
}

.steam-report-spotlight-game strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.steam-report-spotlight-game small {
    color: #c3cfde;
    font-size: 13px;
}

.steam-report-chart-scroll,
.steam-report-table-scroll {
    overflow-x: auto;
    min-width: 0;
}

.steam-report-chart-scroll {
    padding-bottom: 4px;
}

.steam-report-daily-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 44px;
    align-items: end;
    gap: 8px;
    min-width: max-content;
    height: 288px;
    padding: 18px 8px 0;
    border: 1px solid rgba(128, 164, 204, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 58px / 100% 58px,
        rgba(7, 14, 23, 0.42);
}

.steam-report-day-bar {
    display: grid;
    grid-template-rows: 38px minmax(150px, 1fr) 28px;
    align-items: end;
    justify-items: center;
    min-width: 0;
}

.steam-report-day-value {
    color: #aebed0;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}

.steam-report-day-column {
    display: block;
    width: 100%;
    max-width: 28px;
    height: var(--steam-report-bar-height);
    min-height: 0;
    border: 1px solid rgba(66, 168, 255, 0.32);
    border-radius: 8px 8px 2px 2px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 22%),
        linear-gradient(180deg, #66d9ff, #42a8ff 52%, #6d5dfc);
    box-shadow:
        0 0 16px rgba(66, 168, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform-origin: bottom;
    animation: steam-report-bar-rise 520ms cubic-bezier(0.2, 0.76, 0.24, 1) both;
}

.steam-report-day-column.is-empty {
    border-color: rgba(128, 164, 204, 0.14);
    background: rgba(128, 164, 204, 0.12);
    box-shadow: none;
}

.steam-report-day-label {
    align-self: center;
    color: #91a4ba;
    font-size: 11px;
    white-space: nowrap;
    writing-mode: vertical-rl;
}

.steam-report-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    color: #dce7f4;
}

.steam-report-achievements-table {
    min-width: 1240px;
}

.steam-report-table th,
.steam-report-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(128, 164, 204, 0.12);
    vertical-align: middle;
    text-align: left;
}

.steam-report-table th {
    color: #8fa4ba;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.steam-report-table tbody tr {
    transition: background 140ms ease;
}

.steam-report-table tbody tr:hover {
    background: rgba(66, 168, 255, 0.06);
}

.steam-report-table td {
    color: #c9d6e5;
    font-size: 14px;
    line-height: 1.45;
}

.steam-report-table td strong {
    color: #ffffff;
    font-weight: 600;
}

.steam-report-table a {
    color: inherit;
    text-decoration: none;
}

.steam-report-table a:hover,
.steam-report-table a:focus-visible {
    color: #9fcaff;
}

.steam-report-game-thumb-link,
.steam-report-achievement-game-thumb-link {
    display: inline-grid;
    color: inherit;
    text-decoration: none;
}

.steam-report-game-cell,
.steam-report-achievement-cell,
.steam-report-achievement-game {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.steam-report-game-cell img,
.steam-report-game-thumb-placeholder {
    width: 132px;
    height: auto;
    aspect-ratio: var(--steam-game-header-aspect-ratio);
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: #101c2b;
    object-fit: cover;
}

.steam-report-game-thumb-placeholder,
.steam-report-achievement-placeholder {
    display: grid;
    place-items: center;
    color: #d9e7f7;
    font-weight: 600;
}

.steam-report-game-cell div,
.steam-report-achievement-cell div,
.steam-report-achievement-game {
    min-width: 0;
}

.steam-report-game-cell strong,
.steam-report-game-cell small,
.steam-report-achievement-cell strong,
.steam-report-achievement-cell small,
.steam-report-achievement-game a,
.steam-report-achievement-game span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-report-game-cell small,
.steam-report-achievement-cell small {
    margin-top: 4px;
    color: #91a4ba;
    font-size: 12px;
}

.steam-report-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.steam-report-tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(101, 217, 145, 0.18);
    border-radius: 6px;
    background: rgba(101, 217, 145, 0.08);
    color: #b9f3d1;
    font-size: 12px;
    font-weight: 600;
}

.steam-report-tag-list span:nth-child(2n) {
    border-color: rgba(255, 199, 44, 0.2);
    background: rgba(255, 199, 44, 0.09);
    color: #ffe19a;
}

.steam-report-share-meter {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 44px;
    gap: 10px;
    align-items: center;
}

.steam-report-share-meter>span {
    display: block;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: rgba(128, 164, 204, 0.16);
}

.steam-report-share-meter>span span {
    display: block;
    width: var(--steam-report-share);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #65d991, #42a8ff);
    box-shadow: 0 0 12px rgba(101, 217, 145, 0.32);
}

.steam-report-share-meter strong {
    color: #ffffff;
    font-size: 13px;
    text-align: right;
}

.steam-report-table-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(66, 168, 255, 0.26);
    border-radius: 8px;
    background: rgba(66, 168, 255, 0.1);
    color: #d8ebff;
    font-size: 13px;
    font-weight: 600;
}

.steam-report-achievement-cell img,
.steam-report-achievement-placeholder {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: #101c2b;
    object-fit: cover;
}

.steam-report-achievement-game {
    grid-template-columns: 64px minmax(0, 1fr);
}

.steam-report-achievement-game img {
    width: 64px;
    height: auto;
    aspect-ratio: var(--steam-game-header-aspect-ratio);
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 6px;
    object-fit: cover;
}

.steam-report-achievements-frame {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.steam-report-pagination-summary,
.steam-report-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.steam-report-pagination-summary {
    padding: 10px 12px;
    border: 1px solid rgba(128, 164, 204, 0.12);
    border-radius: 8px;
    background: rgba(7, 14, 23, 0.34);
    color: #9fb1c7;
    font-size: 13px;
}

.steam-report-pagination-summary strong {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(101, 217, 145, 0.2);
    border-radius: 7px;
    background: rgba(101, 217, 145, 0.08);
    color: #ffffff;
    font-weight: 600;
}

.steam-report-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding: 20px 12px 12px;
    border: 1px solid rgba(128, 164, 204, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(17, 30, 45, 0.8), rgba(7, 14, 23, 0.58)),
        rgba(7, 14, 23, 0.36);
}

.steam-report-pagination-info {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: #c9d6e5;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.steam-report-pagination-control,
.steam-report-pagination-page {
    flex: 0 0 auto;
}

.steam-report-pagination-page {
    min-width: 38px;
}

.steam-report-pagination-page.is-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 38px;
    border-color: transparent;
    background: transparent;
    color: #8fa4ba;
    cursor: default;
}

.steam-report-empty-copy {
    margin: 0;
    padding: 18px;
    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;
}

.steam-report-share-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
}

.steam-report-share-panel strong {
    display: block;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
}

.steam-report-share-input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: rgba(7, 11, 18, 0.8);
    color: var(--private-text);
    font: inherit;
}

.steam-report-empty-state {
    justify-items: start;
}

.steam-report-empty-state h2 {
    font-size: 28px;
}

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

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

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

@keyframes steam-report-bar-rise {
    from {
        opacity: 0;
        transform: scaleY(0.18);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/*
 * 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-wishlist-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.steam-wishlist-sort-link.is-active {
    color: #2457d6;
}

.app-body-private .steam-wishlist-sort-link.is-active {
    color: #9fcaff;
}

.steam-wishlist-sort-link span {
    font-size: 12px;
}

.steam-wishlist-price,
.steam-wishlist-old-price,
.steam-wishlist-discount {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    white-space: nowrap;
}

.steam-wishlist-price {
    font-weight: 400;
}

.steam-wishlist-old-price {
    color: #69758a;
    font-size: 12px;
    text-decoration: line-through;
}

.app-body-private .steam-wishlist-old-price {
    color: var(--private-muted);
}

.steam-wishlist-discount {
    padding: 2px 6px;
    border-radius: 6px;
    color: #07240f;
    background: #65d991;
    font-size: 12px;
    font-weight: 600;
}

.steam-wishlist-price-link {
    color: #2457d6;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

.app-body-private .steam-wishlist-price-link {
    color: #9fcaff;
}

/*
 * Dedykowany grid wishlisty Steam.
 *
 * Układ jest inspirowany tabelą osiągnięć, ale ma własne klasy. Dzięki temu
 * późniejsze reguły tabeli osiągnięć nie mogą przypadkiem przestawić kolumn.
 */
.steam-wishlist-board {
    margin-top: 24px;
    overflow-x: auto;
    border: 1px solid rgba(128, 164, 204, 0.14);
    border-radius: 8px;
    background: rgba(7, 16, 27, 0.22);
}

.steam-wishlist-search,
.steam-wishlist-discount-sort {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.steam-wishlist-discount-sort {
    max-width: 680px;
}

.steam-wishlist-search label,
.steam-wishlist-discount-sort label {
    color: #9fb1c7;
    font-size: 12px;
    font-weight: 600;
}

.steam-wishlist-search-controls,
.steam-wishlist-discount-sort-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 110px;
    gap: 10px;
    align-items: stretch;
    max-width: 680px;
}

.steam-wishlist-search input,
.steam-wishlist-discount-sort select,
.steam-wishlist-discount-sort button,
.steam-wishlist-search button {
    min-height: 44px;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.82);
    color: #f4f7fb;
    font: inherit;
    font-size: 13px;
}

.steam-wishlist-search input,
.steam-wishlist-discount-sort select {
    min-width: 0;
    padding: 0 14px;
    outline: 0;
}

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

.steam-wishlist-search input:focus-visible,
.steam-wishlist-discount-sort select:focus-visible {
    border-color: rgba(54, 163, 255, 0.58);
    box-shadow: 0 0 0 3px rgba(54, 163, 255, 0.12);
}

.steam-wishlist-discount-sort select {
    cursor: pointer;
}

.steam-wishlist-discount-sort option {
    background: #111e2d;
    color: #f4f7fb;
}

.steam-wishlist-search button {
    padding: 0 14px;
    font-weight: 600;
    cursor: pointer;
}

.steam-wishlist-discount-sort button {
    padding: 0 14px;
    font-weight: 600;
    cursor: pointer;
}

.steam-wishlist-search button:hover,
.steam-wishlist-search button:focus-visible,
.steam-wishlist-discount-sort button:hover,
.steam-wishlist-discount-sort button:focus-visible {
    border-color: rgba(54, 163, 255, 0.48);
    background: rgba(54, 163, 255, 0.14);
}

.steam-wishlist-search-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 10px 0 0;
    color: #9fb1c7;
    font-size: 13px;
}

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

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

.steam-wishlist-board-scroll {
    min-width: 1500px;
}

.steam-wishlist-board-header,
.steam-wishlist-board-row {
    display: grid;
    grid-template-columns: minmax(340px, 1.2fr) minmax(135px, 0.45fr) minmax(135px, 0.45fr) minmax(140px, 0.45fr) minmax(170px, 0.55fr) minmax(170px, 0.55fr) minmax(300px, 0.9fr);
    gap: 16px;
    align-items: center;
}

.steam-wishlist-board-header {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(128, 164, 204, 0.16);
    background: rgba(7, 16, 27, 0.44);
}

.steam-wishlist-board-header>span,
.steam-wishlist-board-sort {
    color: #7f8fa3;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.steam-wishlist-board-sort {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    gap: 6px;
    text-decoration: none;
}

.steam-wishlist-board-sort:hover,
.steam-wishlist-board-sort:focus-visible {
    color: #d9e7f7;
}

.steam-wishlist-board-sort.is-active {
    color: #ffffff;
}

.steam-wishlist-board-header>span:last-child {
    /*
     * Nagłówek kolumny linków wyrównujemy tak samo jak ikony w wierszach,
     * żeby użytkownik od razu widział, że ta kolumna jest dosunięta do prawej.
     */
    justify-self: end;
}

.steam-wishlist-board-row {
    min-height: 76px;
    padding: 10px 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;
}

.steam-wishlist-board-row:hover {
    background: rgba(22, 43, 64, 0.64);
    transform: translateY(-1px);
}

.steam-wishlist-board-row:last-child {
    border-bottom: 0;
}

.steam-wishlist-board-game {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.steam-wishlist-cover-link,
.steam-wishlist-board .steam-wishlist-cover {
    display: block;
    width: 140px;
    height: auto;
    aspect-ratio: var(--steam-game-header-aspect-ratio);
}

.steam-wishlist-main {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.steam-wishlist-main h3,
.steam-wishlist-main p {
    margin: 0;
}

.steam-wishlist-main h3 a {
    overflow-wrap: anywhere;
    color: #f8fbff;
    font-size: 15px;
    line-height: 1.25;
    text-decoration: none;
}

.steam-wishlist-main h3 a:hover,
.steam-wishlist-main h3 a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.steam-wishlist-main p,
.steam-wishlist-date-cell,
.steam-wishlist-steam-price-cell,
.steam-wishlist-review-cell,
.steam-wishlist-gg-retail-cell,
.steam-wishlist-gg-keyshop-cell {
    color: #aab7c7;
    font-size: 13px;
    line-height: 1.35;
}

.steam-wishlist-date-cell,
.steam-wishlist-steam-price-cell,
.steam-wishlist-review-cell,
.steam-wishlist-gg-retail-cell,
.steam-wishlist-gg-keyshop-cell {
    font-weight: 400;
}

.steam-wishlist-date-cell,
.steam-wishlist-price {
    white-space: nowrap;
}

.steam-wishlist-review-cell {
    display: grid;
    gap: 2px;
}

.steam-wishlist-review-label {
    color: #d9e7f7;
    font-size: 13px;
    line-height: 1.25;
}

.steam-wishlist-review-count,
.steam-wishlist-review-empty {
    color: #7f8fa3;
    font-size: 11px;
    line-height: 1.25;
}

.steam-wishlist-review-label.is-review-excellent,
.steam-game-review-badge.is-review-excellent strong {
    color: #35d018;
}

.steam-wishlist-review-label.is-review-good,
.steam-game-review-badge.is-review-good strong {
    color: #bddd3a;
}

.steam-wishlist-review-label.is-review-medium,
.steam-game-review-badge.is-review-medium strong {
    color: #f5df74;
}

.steam-wishlist-review-label.is-review-warning,
.steam-game-review-badge.is-review-warning strong {
    color: #f4a23a;
}

.steam-wishlist-review-label.is-review-bad,
.steam-game-review-badge.is-review-bad strong {
    color: #ef1d1d;
}

.steam-wishlist-gg-price-cell {
    display: inline-flex;
    align-items: flex-start;
    width: fit-content;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.steam-wishlist-mobile-label {
    display: none;
    color: #7f8fa3;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.steam-wishlist-gg-price-value {
    overflow: hidden;
    color: #d9e7f7;
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.steam-wishlist-gg-price-details {
    display: grid;
    gap: 3px;
    min-width: 0;
    max-width: 100%;
}

.steam-wishlist-gg-price-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.steam-wishlist-gg-saving-percent {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 6px;
    border-radius: 6px;
    color: #07240f;
    background: #65d991;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.steam-wishlist-gg-saving-percent.is-saving-excellent {
    background: #35d018;
}

.steam-wishlist-gg-saving-percent.is-saving-good {
    background: #8bdd3f;
}

.steam-wishlist-gg-saving-percent.is-saving-medium {
    background: #f5df74;
}

.steam-wishlist-gg-saving-percent.is-saving-warning {
    background: #f4a23a;
}

.steam-wishlist-gg-saving-percent.is-saving-low {
    background: #ef5a5a;
    color: #ffffff;
}

.steam-wishlist-gg-saving-amount {
    color: #ff6b75;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.steam-wishlist-gg-price-cell:hover .steam-wishlist-gg-price-value,
.steam-wishlist-gg-price-cell:focus-visible .steam-wishlist-gg-price-value {
    color: #ffffff;
    text-decoration: underline;
}

.steam-wishlist-board-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.steam-wishlist-board-links form {
    /* Formularz POST ma wyglądać jak pozostałe małe akcje w jednym rzędzie. */
    margin: 0;
}

.steam-wishlist-board-links a,
.steam-wishlist-board-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    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: 600;
    font-family: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.steam-wishlist-board-links a:hover,
.steam-wishlist-board-links a:focus-visible,
.steam-wishlist-board-links button:hover,
.steam-wishlist-board-links button:focus-visible {
    border-color: rgba(54, 163, 255, 0.48);
    background: rgba(54, 163, 255, 0.14);
    color: #ffffff;
}

.steam-wishlist-board-links button {
    /* Przycisk uruchamia zapis gry, dlatego zachowuje natywną semantykę buttona. */
    cursor: pointer;
}

.steam-wishlist-board-icon-link {
    /*
     * Linki z faviconami mają stały rozmiar, żeby rząd ikon nie skakał
     * zależnie od długości nazwy serwisu.
     */
    width: 30px;
    padding: 0;
}

.steam-wishlist-board-icon-link img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.external-link-popover {
    position: fixed;
    z-index: 2000;
    display: grid;
    gap: 3px;
    min-width: 156px;
    max-width: min(220px, calc(100vw - 24px));
    padding: 10px 12px;
    border: 1px solid rgba(128, 164, 204, 0.26);
    border-radius: 8px;
    background: rgba(8, 17, 29, 0.96);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
    color: #f4f7fb;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px) scale(0.98);
    transition: opacity 140ms ease, transform 140ms ease;
}

.external-link-popover[hidden] {
    display: none;
}

.external-link-popover.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.external-link-popover[data-placement="bottom"] {
    transform: translateY(-4px) scale(0.98);
}

.external-link-popover[data-placement="bottom"].is-visible {
    transform: translateY(0) scale(1);
}

.external-link-popover strong {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.external-link-popover span {
    color: #9fb1c7;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
}

.external-link-popover::after {
    position: absolute;
    left: var(--external-link-popover-arrow-x, 50%);
    width: 9px;
    height: 9px;
    background: inherit;
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.external-link-popover[data-placement="top"]::after {
    bottom: -5px;
    border-right: 1px solid rgba(128, 164, 204, 0.26);
    border-bottom: 1px solid rgba(128, 164, 204, 0.26);
}

.external-link-popover[data-placement="bottom"]::after {
    top: -5px;
    border-top: 1px solid rgba(128, 164, 204, 0.26);
    border-left: 1px solid rgba(128, 164, 204, 0.26);
}

.steam-wishlist-empty {
    margin: 0;
    padding: 18px 14px;
    color: #99a9ba;
    font-size: 14px;
}

.steam-library-cover,
.steam-wishlist-cover {
    width: 140px;
    height: auto;
    aspect-ratio: var(--steam-game-header-aspect-ratio);
    border-radius: 6px;
    object-fit: contain;
    background: #e5e9f0;
}

.steam-wishlist-cover-placeholder {
    display: inline-block;
    flex: 0 0 auto;
    background:
        linear-gradient(135deg, rgba(128, 164, 204, 0.24), rgba(128, 164, 204, 0.08)),
        #152234;
}

.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: 600;
}

.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: 600;
}

.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: 600;
    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: 600;
}

.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: 600;
}

.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: 600;
    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: 600;
    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: var(--steam-game-header-aspect-ratio);
    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: 600;
    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: contain;
}

.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: 600;
}

.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-hltb,
.steam-game-news,
.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 170px 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: var(--steam-game-header-aspect-ratio);
    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: var(--steam-game-header-aspect-ratio);
}

.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: 600;
    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: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

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

.steam-game-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.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-review-badge {
    display: grid;
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 132px;
    gap: 2px;
    padding: 7px 11px;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    background: rgba(6, 14, 24, 0.38);
    text-align: right;
}

.steam-game-review-badge strong {
    color: #d9e7f7;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.steam-game-review-badge span {
    color: #7f8fa3;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.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: 600;
}

.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-gain {
    color: #7ddfa3;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.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-news-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-source-links a.steam-external-icon-link,
.steam-game-page .steam-achievement-links a.steam-external-icon-link,
.steam-achievements-page .steam-achievement-links a.steam-external-icon-link {
    /*
     * Ikonowe linki mają stały rozmiar. Dzięki temu kolumny tabeli osiągnięć
     * nie zmieniają szerokości zależnie od długości nazwy serwisu.
     */
    width: 32px;
    padding: 0;
}

.steam-external-icon-link img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.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);
}

/*
 * Kafelki czasu gry według HowLongToBeat.
 *
 * Sekcja stoi między górnym podsumowaniem/metadanymi a osiągnięciami.
 * Te czasy opisują globalną grę, więc nie mieszamy ich z prywatnym czasem gry
 * użytkownika ani z procentem zdobytych osiągnięć Steam.
 */
.steam-game-hltb-frame {
    display: block;
    min-width: 0;
}

.steam-game-hltb-frame[busy] .steam-game-hltb {
    /*
     * Turbo dodaje atrybut `busy` podczas pobierania ramki. Delikatne przygaszenie
     * mówi użytkownikowi, że ten fragment właśnie się odświeża, ale nie zmienia
     * układu strony.
     */
    opacity: 0.78;
}

.steam-game-hltb {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.steam-game-hltb-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.steam-game-hltb-heading>div:first-child {
    display: grid;
    gap: 5px;
    min-width: 0;
}

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

.steam-game-hltb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.steam-game-hltb-card {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 128px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(128, 164, 204, 0.14);
    border-radius: 8px;
    background: rgba(6, 14, 24, 0.42);
}

.steam-game-hltb-card strong {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
}

.steam-game-hltb-card span {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    color: #d9e7f7;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.steam-game-hltb-card i {
    position: absolute;
    right: -8px;
    bottom: -10px;
    width: 74px;
    height: 74px;
    color: rgba(217, 231, 247, 0.14);
}

.steam-game-hltb-card i svg {
    width: 100%;
    height: 100%;
}

.steam-game-hltb-card.is-empty strong,
.steam-game-hltb-card.is-empty span {
    color: #99a9ba;
}

.steam-game-hltb-source,
.steam-game-hltb-status,
.steam-game-hltb-empty {
    margin: 0;
    color: #aab7c7;
    font-size: 13px;
    line-height: 1.45;
}

.steam-game-hltb-status {
    color: #8fa1b5;
}

.steam-game-hltb-source a {
    color: #d9e7f7;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.steam-game-hltb-source a:hover,
.steam-game-hltb-source a:focus-visible {
    color: #9fcaff;
}

.steam-game-hero-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.steam-game-refresh-form {
    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 img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.steam-game-ai-icon-button {
    color: #9fcaff;
}

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

/*
 * Strona pośrednia importu katalogu osiągnięć z bookmarkletu.
 *
 * Użytkownik widzi ją krótko, bo Stimulus od razu wysyła formularz. Nadal
 * stylujemy panel, aby w razie błędu bookmarkletu komunikat był czytelny.
 */
.steamdb-browser-import-page {
    display: grid;
    min-height: min(520px, 70vh);
    place-items: center;
    padding: 32px 18px;
}

.steamdb-browser-import-panel {
    display: grid;
    gap: 10px;
    width: min(100%, 520px);
    padding: 24px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: rgba(15, 28, 43, 0.92);
    color: var(--private-text);
}

.steamdb-browser-import-kicker {
    margin: 0;
    color: #9fcaff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.steamdb-browser-import-panel h1 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.2;
}

.steamdb-browser-import-panel p {
    margin: 0;
    color: var(--private-muted);
    font-size: 14px;
    line-height: 1.5;
}

.steamdb-browser-import-submit {
    display: none;
}

.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;
}

/*
 * Mała nawigacja między podstronami jednej gry.
 *
 * Link wygląda jak przycisk, ale zostaje zwykłym elementem `<a>`. Dzięki temu
 * prowadzi do osobnej trasy Symfony i działa bez żadnego JavaScriptu.
 */
.steam-game-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.steam-game-section-link {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    min-width: 190px;
    padding: 0 14px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: rgba(13, 27, 43, 0.86);
    color: #aab7c7;
    cursor: pointer;
    font: inherit;
    text-align: left;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.steam-game-section-link:hover,
.steam-game-section-link:focus-visible {
    border-color: rgba(54, 163, 255, 0.42);
    background: rgba(54, 163, 255, 0.1);
    color: #ffffff;
}

.steam-game-section-link:focus-visible {
    outline: 2px solid rgba(54, 163, 255, 0.45);
    outline-offset: 2px;
}

.steam-game-section-link span {
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 600;
}

.steam-game-section-link strong {
    color: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

/*
 * Boczne drawery asystenta AI przy jednej grze Steam.
 *
 * Panel czatu i czytnik notatki są `position: fixed`, więc nie przesuwają listy
 * osiągnięć. Wspólna zmienna szerokości jest ustawiana przez osobny kontroler
 * Stimulus, ale każdy drawer przechowuje własną wartość w localStorage.
 */
[hidden] {
    display: none;
}

.steam-game-ai-panel {
    position: fixed;
    z-index: 70;
    inset: 0 0 0 auto;
    width: min(var(--resizable-drawer-width, 520px), calc(100vw - 16px));
    min-width: min(360px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    border-left: 1px solid rgba(128, 164, 204, 0.24);
    background:
        linear-gradient(180deg, rgba(11, 24, 38, 0.98), rgba(6, 14, 24, 0.99)),
        #08111d;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.42);
    color: var(--private-text);
    transform: translateX(0);
}

/*
 * Uchwyt wystaje po obu stronach krawędzi, więc łatwo go złapać bez zasłaniania
 * treści. Wąska kreska wzmacnia się dopiero podczas hoveru, fokusu lub resize'u.
 */
.resizable-drawer-handle {
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 -8px;
    width: 16px;
    cursor: ew-resize;
    touch-action: none;
}

.resizable-drawer-handle span {
    position: absolute;
    top: 50%;
    left: 7px;
    width: 2px;
    height: 56px;
    border-radius: 999px;
    background: rgba(128, 164, 204, 0.42);
    box-shadow: 0 0 0 1px rgba(6, 14, 24, 0.72);
    transform: translateY(-50%);
    transition: background 140ms ease, box-shadow 140ms ease, width 140ms ease;
}

.resizable-drawer-handle:hover span,
.resizable-drawer-handle:focus-visible span,
.resizable-drawer.is-resizing .resizable-drawer-handle span {
    width: 3px;
    background: #4ba1ff;
    box-shadow: 0 0 0 3px rgba(54, 163, 255, 0.16), 0 0 14px rgba(54, 163, 255, 0.34);
}

.resizable-drawer-handle:focus-visible {
    outline: none;
}

body.is-resizing-drawer,
body.is-resizing-drawer * {
    cursor: ew-resize !important;
    user-select: none !important;
}

.steam-game-ai-note-reader {
    position: fixed;
    z-index: 80;
    inset: 0 0 0 auto;
    width: min(var(--resizable-drawer-width, 640px), calc(100vw - 16px));
    min-width: min(360px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    border-left: 1px solid rgba(128, 164, 204, 0.28);
    background:
        linear-gradient(180deg, rgba(10, 22, 35, 0.99), rgba(5, 12, 22, 1)),
        #07101b;
    box-shadow: -28px 0 70px rgba(0, 0, 0, 0.48);
    color: var(--private-text);
}

.steam-game-ai-panel-inner {
    display: grid;
    grid-template-rows: auto auto auto minmax(180px, 1fr) auto auto;
    gap: 14px;
    height: 100%;
    min-width: 0;
    padding: 18px;
    overflow-y: auto;
}

.steam-game-ai-note-reader-inner {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    height: 100%;
    min-width: 0;
    padding: 22px;
}

.steam-game-ai-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.steam-game-ai-note-reader-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(128, 164, 204, 0.14);
}

.steam-game-ai-header h2,
.steam-game-ai-notes-section h3,
.steam-game-ai-note-reader-header h2 {
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

.steam-game-ai-header h2 {
    font-size: 22px;
}

.steam-game-ai-notes-section h3 {
    font-size: 16px;
}

.steam-game-ai-note-reader-header h2 {
    margin-top: 4px;
    font-size: 24px;
}

.steam-game-ai-note-reader-meta {
    margin: 8px 0 0;
    color: #8fa1b6;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.steam-game-ai-close {
    display: inline-grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(128, 164, 204, 0.2);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.9);
    color: #d9e7f7;
    cursor: pointer;
}

.steam-game-ai-close span {
    font-size: 24px;
    line-height: 1;
}

.steam-game-ai-status,
.steam-game-ai-empty {
    margin: 0;
    color: #aab7c7;
    font-size: 13px;
    line-height: 1.5;
}

.steam-game-ai-status {
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid rgba(128, 164, 204, 0.14);
    border-radius: 8px;
    background: rgba(6, 14, 24, 0.42);
}

.steam-game-ai-settings-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(54, 163, 255, 0.28);
    border-radius: 8px;
    background: rgba(54, 163, 255, 0.1);
    color: #d9e7f7;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.steam-game-ai-messages,
.steam-game-ai-notes {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.steam-game-ai-messages {
    min-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.steam-game-ai-message,
.steam-game-ai-note {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(128, 164, 204, 0.14);
    border-radius: 8px;
    background: rgba(13, 27, 43, 0.72);
}

.steam-game-ai-message.is-user {
    background: rgba(54, 163, 255, 0.1);
}

.steam-game-ai-message-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.steam-game-ai-message-header strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.steam-game-ai-message-header span,
.steam-game-ai-note small {
    color: #7f8fa3;
    font-size: 11px;
    font-weight: 600;
}

.steam-game-ai-message-content,
.steam-game-ai-note p {
    overflow-wrap: anywhere;
    margin: 0;
    color: #d9e7f7;
    font-size: 13px;
    line-height: 1.55;
}

.steam-game-ai-message-content {
    display: grid;
    gap: 10px;
}

.steam-game-ai-note-reader-content {
    align-content: start;
    overflow-y: auto;
    padding-right: 8px;
}

.steam-game-ai-message.is-user .steam-game-ai-message-content {
    white-space: pre-wrap;
}

.steam-game-ai-message-content p {
    margin: 0;
}

/*
 * Odpowiedzi AI przychodzą jako prosty Markdown.
 * Te reguły nadają strukturę długim planom 100%: nagłówki dzielą sekcje,
 * listy są łatwe do skanowania, a linki do źródeł są widoczne bez krzyczenia.
 */
.steam-game-ai-message.is-assistant .steam-game-ai-message-content h3,
.steam-game-ai-message.is-assistant .steam-game-ai-message-content h4,
.steam-game-ai-note-reader-content h3,
.steam-game-ai-note-reader-content h4 {
    margin: 6px 0 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.32;
}

.steam-game-ai-message.is-assistant .steam-game-ai-message-content h3:first-child,
.steam-game-ai-message.is-assistant .steam-game-ai-message-content h4:first-child,
.steam-game-ai-note-reader-content h3:first-child,
.steam-game-ai-note-reader-content h4:first-child {
    margin-top: 0;
}

.steam-game-ai-message.is-assistant .steam-game-ai-message-content ul,
.steam-game-ai-message.is-assistant .steam-game-ai-message-content ol,
.steam-game-ai-note-reader-content ul,
.steam-game-ai-note-reader-content ol {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
}

.steam-game-ai-message.is-assistant .steam-game-ai-message-content li,
.steam-game-ai-note-reader-content li {
    padding-left: 2px;
}

.steam-game-ai-message.is-assistant .steam-game-ai-message-content strong,
.steam-game-ai-note-reader-content strong {
    color: #ffffff;
    font-weight: 600;
}

.steam-game-ai-message.is-assistant .steam-game-ai-message-content em,
.steam-game-ai-note-reader-content em {
    color: #e7eef7;
    font-style: italic;
}

.steam-game-ai-message.is-assistant .steam-game-ai-message-content a,
.steam-game-ai-note-reader-content a {
    color: #9fcaff;
    font-weight: 600;
    text-decoration: none;
}

.steam-game-ai-message.is-assistant .steam-game-ai-message-content a:hover,
.steam-game-ai-message.is-assistant .steam-game-ai-message-content a:focus-visible,
.steam-game-ai-note-reader-content a:hover,
.steam-game-ai-note-reader-content a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.steam-game-ai-message.is-assistant .steam-game-ai-message-content hr,
.steam-game-ai-note-reader-content hr {
    width: 100%;
    height: 1px;
    margin: 2px 0;
    border: 0;
    background: rgba(128, 164, 204, 0.18);
}

/*
 * Nazwy osiągnięć rozpoznane w zapisanej notatce AI.
 * Przycisk zachowuje wygląd tekstu, ale delikatne podkreślenie informuje, że po
 * najechaniu lub fokusie można odczytać oficjalny opis z profilu gry.
 */
.steam-game-ai-achievement-reference {
    display: inline;
}

.steam-game-ai-achievement-trigger {
    padding: 0;
    border: 0;
    border-bottom: 1px dotted rgba(159, 202, 255, 0.72);
    background: transparent;
    color: #9fcaff;
    cursor: help;
    font: inherit;
    font-weight: 600;
    line-height: inherit;
    text-align: inherit;
}

.steam-game-ai-achievement-trigger:hover,
.steam-game-ai-achievement-trigger:focus-visible,
.steam-game-ai-achievement-reference.is-open .steam-game-ai-achievement-trigger {
    border-bottom-color: #ffffff;
    color: #ffffff;
}

.steam-game-ai-achievement-trigger:focus-visible {
    border-radius: 2px;
    outline: 2px solid rgba(54, 163, 255, 0.46);
    outline-offset: 2px;
}

.steam-game-ai-achievement-popover {
    position: fixed;
    z-index: 110;
    display: grid;
    gap: 8px;
    width: min(320px, calc(100vw - 24px));
    padding: 13px 14px;
    border: 1px solid rgba(110, 177, 255, 0.34);
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(17, 34, 52, 0.99), rgba(8, 19, 31, 0.99)),
        #0a1624;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48);
    color: #d9e7f7;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.48;
    text-align: left;
}

.steam-game-ai-achievement-popover-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.steam-game-ai-achievement-popover-description {
    color: #b9c8d8;
    font-weight: 400;
}

.steam-game-ai-achievement-hidden-description {
    display: grid;
    gap: 8px;
}

.steam-game-ai-achievement-hidden-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #9eafc1;
    font-size: 12px;
    font-weight: 600;
}

.steam-game-ai-achievement-reveal {
    display: inline-grid;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(54, 163, 255, 0.34);
    border-radius: 7px;
    background: rgba(54, 163, 255, 0.1);
    color: #9fcaff;
    cursor: pointer;
}

.steam-game-ai-achievement-reveal:hover,
.steam-game-ai-achievement-reveal:focus-visible {
    border-color: rgba(54, 163, 255, 0.62);
    background: rgba(54, 163, 255, 0.2);
    color: #ffffff;
}

.steam-game-ai-achievement-reveal:focus-visible {
    outline: 2px solid rgba(54, 163, 255, 0.42);
    outline-offset: 2px;
}

.steam-game-ai-achievement-reveal-icon {
    width: 15px;
    height: 15px;
}

/*
 * Te reguły muszą znajdować się po stylach `display` komponentu. Dzięki temu
 * atrybut `hidden`, którym steruje Stimulus, zawsze naprawdę chowa popover,
 * komunikat o spoilerze oraz odsłaniany opis.
 */
.steam-game-ai-achievement-popover[hidden],
.steam-game-ai-achievement-hidden-notice[hidden],
.steam-game-ai-achievement-popover-description[hidden],
.steam-game-ai-achievement-reveal[hidden] {
    display: none;
}

.steam-game-ai-note h3 {
    overflow-wrap: anywhere;
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
}

.steam-game-ai-form {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.steam-game-ai-form label {
    color: #9fb1c7;
    font-size: 12px;
    font-weight: 600;
}

.steam-game-ai-form textarea {
    width: 100%;
    min-height: 112px;
    resize: vertical;
    padding: 11px 12px;
    border: 1px solid rgba(128, 164, 204, 0.22);
    border-radius: 8px;
    background: rgba(6, 14, 24, 0.62);
    color: #f5f8fc;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
}

.steam-game-ai-form textarea:focus-visible {
    outline: 2px solid rgba(54, 163, 255, 0.45);
    outline-offset: 2px;
}

.steam-game-ai-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.steam-game-ai-actions button,
.steam-game-ai-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(128, 164, 204, 0.2);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.94);
    color: #d9e7f7;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.steam-game-ai-actions button:hover,
.steam-game-ai-actions button:focus-visible,
.steam-game-ai-inline-button:hover,
.steam-game-ai-inline-button:focus-visible,
.steam-game-ai-close:hover,
.steam-game-ai-close:focus-visible,
.steam-game-ai-settings-link:hover,
.steam-game-ai-settings-link:focus-visible {
    border-color: rgba(54, 163, 255, 0.48);
    background: rgba(54, 163, 255, 0.14);
    color: #ffffff;
}

.steam-game-ai-actions button:disabled,
.steam-game-ai-inline-button:disabled,
.steam-game-ai-form textarea:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.steam-game-ai-message-actions,
.steam-game-ai-note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.steam-game-ai-note-title-input,
.steam-game-ai-note-content-input {
    width: 100%;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(128, 164, 204, 0.2);
    border-radius: 8px;
    background: rgba(6, 14, 24, 0.62);
    color: #f5f8fc;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
}

.steam-game-ai-note-title-input {
    font-weight: 600;
}

.steam-game-ai-note-content-input {
    min-height: 132px;
    resize: vertical;
}

.steam-game-ai-note-title-input:focus-visible,
.steam-game-ai-note-content-input:focus-visible {
    outline: 2px solid rgba(54, 163, 255, 0.45);
    outline-offset: 2px;
}

.steam-game-ai-notes-section {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(128, 164, 204, 0.14);
}

/*
 * Nagłówek osobnej podstrony newsów.
 *
 * Używamy tego samego spokojnego stylu co na karcie gry, ale bez kopiowania
 * całego hero z obrazem. Podstrona ma szybko pokazać listę wpisów i powrót.
 */
.steam-game-news-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    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-news-page-header>div:first-child {
    display: grid;
    gap: 8px;
    min-width: min(100%, 320px);
}

.steam-game-news-page-header h1,
.steam-game-news-page-header p {
    margin: 0;
}

.steam-game-news-page-header h1 {
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.15;
}

.steam-game-news-page-header p {
    max-width: 760px;
    color: #aab7c7;
    font-size: 14px;
    line-height: 1.55;
}

/*
 * Sekcja newsów Steam na stronie gry.
 *
 * Backend zapisuje newsy globalnie dla `SteamGame`, a widok pokazuje tylko
 * metadane i krótki opis. Link prowadzi do pełnego wpisu na Steam.
 */
.steam-game-news {
    display: grid;
    gap: 0;
    overflow: hidden;
}

.steam-game-news-heading {
    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-news-heading>div:first-child {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.steam-game-news-heading span {
    flex: 0 0 auto;
    color: #9fb1c7;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
}

.steam-game-news-list {
    display: grid;
}

.steam-game-news-item {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(128, 164, 204, 0.12);
}

.steam-game-news-item:last-child {
    border-bottom: 0;
}

.steam-game-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.steam-game-news-meta span,
.steam-game-news-meta time {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(128, 164, 204, 0.14);
    border-radius: 8px;
    background: rgba(128, 164, 204, 0.07);
    color: #9fb1c7;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.steam-game-news-item h3,
.steam-game-news-item p {
    margin: 0;
}

.steam-game-news-item h3 {
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.3;
}

.steam-game-news-item h3 a {
    color: inherit;
    text-decoration: none;
}

.steam-game-news-item h3 a:hover,
.steam-game-news-item h3 a:focus-visible {
    color: #9fcaff;
    text-decoration: underline;
}

.steam-game-news-item p {
    display: -webkit-box;
    overflow: hidden;
    color: #aab7c7;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/*
 * 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: 8px;
}

.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-hidden-description-global-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    justify-self: end;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    background: rgba(128, 164, 204, 0.06);
    color: #9fb1c7;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.steam-hidden-description-global-toggle:hover,
.steam-hidden-description-global-toggle:focus-visible {
    border-color: rgba(54, 163, 255, 0.34);
    background: rgba(54, 163, 255, 0.1);
    color: #d9e7f7;
}

.steam-hidden-description-global-toggle:focus-visible {
    outline: 2px solid rgba(54, 163, 255, 0.45);
    outline-offset: 2px;
}

.steam-hidden-description-global-toggle.is-revealed {
    border-color: rgba(54, 163, 255, 0.42);
    background: rgba(54, 163, 255, 0.12);
    color: #f8fbff;
}

.steam-hidden-description-global-icon,
.steam-hidden-description-global-icon svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

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

.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: 600;
}

.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(130px, 180px) 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,
.steam-game-sort-header {
    color: #7f8fa3;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
}

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

.steam-game-achievement-group-header {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 18px;
    border-top: 1px solid rgba(128, 164, 204, 0.14);
    border-bottom: 1px solid rgba(128, 164, 204, 0.1);
    background: rgba(54, 163, 255, 0.07);
}

.steam-game-achievement-group-header span {
    overflow-wrap: anywhere;
    color: #d9e7f7;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.steam-game-achievement-group-header[hidden] {
    display: none;
}

/*
 * Sortowalne nagłówki wyglądają jak etykiety tabeli, ale są prawdziwymi
 * przyciskami. Dzięki temu użytkownik może kliknąć nagłówek myszką albo
 * aktywować go klawiaturą.
 */
.steam-game-sort-header {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
}

.steam-game-sort-header:hover,
.steam-game-sort-header:focus-visible {
    color: #d9e7f7;
}

.steam-game-sort-header:focus-visible {
    border-radius: 5px;
    outline: 2px solid rgba(54, 163, 255, 0.52);
    outline-offset: 3px;
}

.steam-game-sort-header.is-active {
    color: #ffffff;
}

.steam-game-sort-icons {
    display: grid;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.steam-game-sort-icons svg {
    grid-area: 1 / 1;
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity 120ms ease;
}

/*
 * Stimulus zapisuje kierunek w `data-sort-direction`.
 * Pokazujemy jedną ikonę naraz: neutralną, rosnącą albo malejącą.
 */
.steam-game-sort-header[data-sort-direction="none"] .is-sort-neutral,
.steam-game-sort-header[data-sort-direction="asc"] .is-sort-up,
.steam-game-sort-header[data-sort-direction="desc"] .is-sort-down {
    opacity: 1;
}

.steam-game-page .steam-game-achievement-row,
.steam-achievements-page .steam-game-achievement-row {
    display: grid;
    grid-template-columns: 64px minmax(250px, 1fr) minmax(130px, 180px) 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: 600;
}

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

.steam-game-page .steam-achievement-hidden-description {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.steam-game-page .steam-achievement-hidden-copy {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 6px;
}

.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-hidden-placeholder {
    color: #91a2b7;
}

.steam-game-page .steam-achievement-hidden-text {
    color: #d3dfec;
}

.steam-game-page .steam-achievement-hidden-toggle {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    margin-top: -1px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #7f8fa3;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
}

.steam-game-page .steam-achievement-hidden-toggle:hover,
.steam-game-page .steam-achievement-hidden-toggle:focus-visible {
    background: rgba(128, 164, 204, 0.12);
    color: #d9e7f7;
}

.steam-game-page .steam-achievement-hidden-toggle:focus-visible {
    outline: 2px solid rgba(54, 163, 255, 0.48);
    outline-offset: 2px;
}

.steam-game-page .steam-achievement-hidden-toggle.is-revealed {
    background: rgba(54, 163, 255, 0.12);
    color: #f8fbff;
}

.steam-game-page .steam-achievement-hidden-toggle svg {
    width: 15px;
    height: 15px;
}

/*
 * Tagi SteamHunters są krótką metadaną osiągnięcia. Każdy typ ma stały kolor,
 * dzięki czemu użytkownik może rozpoznać go szybciej niż po samym tekście.
 */
.steam-game-page .steam-achievement-tags-cell {
    min-width: 0;
}

.steam-game-page .steam-achievement-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.steam-game-page .steam-achievement-tag {
    display: inline-flex;
    max-width: 100%;
    padding: 3px 7px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* Missable ma najmocniejszy kontrast, bo ostrzega przed pomijalną zdobyczą. */
.steam-game-page .steam-achievement-tag.is-missable {
    border-color: rgba(251, 191, 36, 0.62);
    background: rgba(245, 158, 11, 0.18);
    color: #ffe08a;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.steam-game-page .steam-achievement-tag.is-main-storyline {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(14, 165, 233, 0.14);
    color: #8ed8ff;
}

.steam-game-page .steam-achievement-tag.is-collectible {
    border-color: rgba(168, 85, 247, 0.42);
    background: rgba(147, 51, 234, 0.15);
    color: #d8b4fe;
}

.steam-game-page .steam-achievement-tag.is-speedrun {
    border-color: rgba(132, 204, 22, 0.42);
    background: rgba(101, 163, 13, 0.15);
    color: #d9f99d;
}

/* Multiplayer używa czerwieni zgodnie z jego ostrzegawczym charakterem. */
.steam-game-page .steam-achievement-tag.is-multiplayer {
    border-color: rgba(248, 113, 113, 0.54);
    background: rgba(220, 38, 38, 0.18);
    color: #ff9a9a;
}

.steam-game-page .steam-achievement-tag.is-online {
    border-color: rgba(45, 212, 191, 0.4);
    background: rgba(13, 148, 136, 0.15);
    color: #99f6e4;
}

.steam-game-page .steam-achievement-tag.is-grind {
    border-color: rgba(249, 115, 22, 0.44);
    background: rgba(234, 88, 12, 0.15);
    color: #fdba74;
}

.steam-game-page .steam-achievement-tags-empty {
    color: #66788c;
    font-size: 13px;
}

.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-hltb-grid {
        grid-template-columns: repeat(2, minmax(0, 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-wishlist-board-scroll {
        min-width: 0;
    }

    .steam-wishlist-board-header {
        display: none;
    }

    .steam-wishlist-board-row {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 10px;
    }

    .steam-wishlist-gg-price-cell {
        width: 100%;
    }

    .steam-wishlist-mobile-label {
        display: inline-flex;
        min-width: 72px;
        margin-right: 8px;
    }

    .steam-wishlist-cover-link,
    .steam-wishlist-board .steam-wishlist-cover {
        width: 120px;
        height: 45px;
    }

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

    .steam-game-page .steam-achievement-tags-cell,
    .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-wishlist-search-controls,
    .steam-wishlist-discount-sort-controls {
        grid-template-columns: 1fr;
    }

    .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,
    .steam-game-hltb {
        padding: 12px;
    }

    .steam-game-hero-actions {
        position: static;
        justify-content: flex-end;
    }

    .steam-game-hero-heading {
        padding-right: 4px;
    }

    .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-hltb-grid {
        grid-template-columns: 1fr;
    }

    .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-hidden-description-global-toggle {
        justify-self: start;
    }

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

    .steam-game-achievement-sort,
    .steam-game-achievement-sort select,
    .steam-hidden-description-global-toggle {
        width: 100%;
    }

    .steam-game-section-nav,
    .steam-game-section-link {
        width: 100%;
    }

    .steam-game-ai-panel,
    .steam-game-ai-note-reader {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        border-left: 0;
    }

    .resizable-drawer-handle {
        display: none;
    }

    .steam-game-ai-panel-inner {
        padding: 14px;
    }

    .steam-game-ai-note-reader-inner {
        padding: 16px;
    }

    .steam-game-ai-actions {
        grid-template-columns: 1fr;
    }

    .steam-game-ai-settings-link {
        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-wishlist-board-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .steam-wishlist-board-game {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .steam-wishlist-cover-link,
    .steam-wishlist-board .steam-wishlist-cover {
        width: min(220px, 100%);
        height: auto;
        aspect-ratio: var(--steam-game-header-aspect-ratio);
    }

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

    .steam-game-page .steam-achievement-tags-cell,
    .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: 600;
}

.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;
}

.flash-warning {
    border-color: #e4c06f;
    background: #fff8df;
    color: #75530f;
}

.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;
}

.app-body-private .flash-warning {
    border-color: rgba(229, 188, 88, 0.4);
    background: rgba(229, 188, 88, 0.12);
    color: #f6d98f;
}

.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;
    }

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

    .steam-report-share-panel {
        grid-template-columns: 1fr;
        align-items: start;
    }

}

@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-subnav,
    .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-body-login .app-shell-public {
        width: min(100% - 24px, 420px);
        padding: 18px 0 32px;
    }

    .auth-login-card {
        border-radius: 8px;
        padding: 22px;
    }

    .auth-login-title {
        font-size: 30px;
    }

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

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

    .app-panel {
        padding: 22px;
    }

    .steam-wishlist-cover-link,
    .steam-wishlist-board .steam-wishlist-cover {
        width: min(220px, 100%);
        height: auto;
        aspect-ratio: var(--steam-game-header-aspect-ratio);
    }

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

    .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;
    }

    .global-search-overview,
    .global-search-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .global-search-count-pill,
    .global-search-panel-header>span {
        width: max-content;
    }

    .global-search-overview h1 {
        font-size: 24px;
    }

    .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: auto;
        aspect-ratio: var(--steam-game-header-aspect-ratio);
    }

    .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: auto;
        aspect-ratio: var(--steam-game-header-aspect-ratio);
    }

    .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: var(--steam-game-header-aspect-ratio);
    }

    .steam-wishlist-board .steam-wishlist-cover {
        width: min(220px, 100%);
        height: auto;
        aspect-ratio: var(--steam-game-header-aspect-ratio);
    }

    .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;
    }
}

/*
 * Tracker mediów: prywatna biblioteka książek, filmów i seriali.
 *
 * Style są zawężone do klas `media-*`, żeby nowy moduł nie wpływał na
 * istniejące widoki Steam. Układ jest spokojny i roboczy: nagłówek, filtry,
 * siatka pozycji oraz formularze dodawania/edycji.
 */
.media-library-page {
    display: grid;
    gap: 14px;
    min-width: 0;
    color: var(--private-text);
}

.media-library-overview,
.media-library-browser,
.media-form-panel,
.media-candidate-section,
.media-candidate-card,
.media-card {
    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.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

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

.media-library-heading p,
.media-library-heading h1,
.media-library-heading span,
.media-library-browser-header p,
.media-library-browser-header h2,
.media-form-panel h2,
.media-candidate-card h3,
.media-card h3,
.media-card p {
    margin: 0;
}

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

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

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

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

.media-library-stat {
    display: grid;
    gap: 6px;
    min-height: 86px;
    padding: 16px;
    border: 1px solid var(--private-border);
    border-radius: 8px;
    background: rgba(15, 28, 43, 0.86);
}

.media-library-stat p,
.media-library-stat strong {
    margin: 0;
}

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

.media-library-stat strong {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.media-library-browser,
.media-candidate-section {
    display: grid;
    gap: 16px;
    padding: 16px;
}

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

.media-library-browser-header h2,
.media-form-panel h2 {
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
}

.media-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: 600;
    white-space: nowrap;
}

.media-library-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.media-library-filters a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.82);
    color: var(--private-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.media-library-filters a:hover,
.media-library-filters a:focus-visible,
.media-library-filters a.is-active {
    border-color: rgba(54, 163, 255, 0.38);
    background: rgba(54, 163, 255, 0.12);
    color: var(--private-text);
    outline: 0;
}

.media-library-filter-form {
    /*
     * Status i zakres dat są filtrami roboczymi listy, więc trzymamy je w
     * zwartym formularzu zamiast tworzyć osobny duży panel.
     */
    display: grid;
    grid-template-columns: minmax(160px, 0.9fr) repeat(2, minmax(140px, 0.7fr)) auto;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    background: rgba(10, 20, 32, 0.58);
}

.media-library-filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.media-library-filter-field span {
    color: #dce7f4;
    font-size: 12px;
    font-weight: 600;
}

.media-library-filter-field select,
.media-library-filter-field input {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: rgba(7, 14, 23, 0.88);
    color: var(--private-text);
    font: inherit;
    font-size: 13px;
}

.media-library-filter-field select:focus,
.media-library-filter-field input:focus {
    border-color: var(--accent-blue);
    outline: 3px solid rgba(54, 163, 255, 0.18);
}

.media-library-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.media-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    align-items: stretch;
    gap: 16px;
}

.media-card {
    --media-type-accent: #9fcaff;
    --media-type-soft: rgba(54, 163, 255, 0.1);
    --media-type-border: rgba(159, 202, 255, 0.26);
    display: grid;
    grid-template-rows: auto 1fr;
    position: relative;
    overflow: hidden;
}

.media-card::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--media-type-accent);
}

/*
 * Każdy typ medium dostaje własny akcent.
 * Dzięki temu użytkownik widzi różnicę między książką, filmem i serialem
 * już po kolorze paska oraz etykiety, a nie dopiero po przeczytaniu tekstu.
 */
.media-card-book {
    --media-type-accent: #5eead4;
    --media-type-soft: rgba(94, 234, 212, 0.1);
    --media-type-border: rgba(94, 234, 212, 0.28);
}

.media-card-movie {
    --media-type-accent: #f2b84b;
    --media-type-soft: rgba(242, 184, 75, 0.12);
    --media-type-border: rgba(242, 184, 75, 0.3);
}

.media-card-series {
    --media-type-accent: #b8a6ff;
    --media-type-soft: rgba(184, 166, 255, 0.12);
    --media-type-border: rgba(184, 166, 255, 0.3);
}

.media-card-cover-link {
    display: block;
    background: var(--media-type-soft);
    text-decoration: none;
}

.media-card-cover,
.media-candidate-cover,
.media-edit-cover {
    aspect-ratio: 2 / 3;
    width: 100%;
    background: rgba(128, 164, 204, 0.12);
}

.media-card-cover {
    display: block;
    object-fit: cover;
}

.media-candidate-cover {
    display: block;
    height: auto;
    object-fit: contain;
}

.media-card-cover-placeholder {
    display: grid;
    place-items: center;
    color: var(--media-type-accent);
    font-size: 32px;
    font-weight: 600;
}

.media-card-body {
    /*
     * Stałe rzędy utrzymują każdą "linijkę" kafla na tym samym poziomie:
     * etykiety, tytuł, metadane oraz sezon nie przesuwają się zależnie od tego,
     * czy pozycja jest książką, filmem czy serialem.
     */
    display: grid;
    grid-template-rows: 24px 42px 40px 46px;
    align-content: start;
    gap: 10px;
    padding: 14px;
}

.media-candidate-body {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.media-card-title-row {
    display: flex;
    grid-row: 1;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.media-card-type,
.media-card-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.media-card-type {
    border: 1px solid var(--media-type-border);
    background: var(--media-type-soft);
    color: var(--media-type-accent);
}

.media-card-status {
    border: 1px solid rgba(128, 164, 204, 0.18);
    color: var(--private-muted);
}

.media-card-status.is-completed {
    border-color: rgba(61, 220, 151, 0.28);
    background: rgba(61, 220, 151, 0.1);
    color: #90f0c5;
}

.media-card-status.is-progress {
    border-color: rgba(54, 163, 255, 0.3);
    background: rgba(54, 163, 255, 0.1);
    color: #9fcaff;
}

.media-card-status.is-abandoned {
    border-color: rgba(215, 91, 102, 0.32);
    background: rgba(215, 91, 102, 0.1);
    color: #ffb7bd;
}

.media-card h3,
.media-candidate-card h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.media-card h3 {
    display: flex;
    grid-row: 2;
    min-width: 0;
    min-height: 42px;
}

.media-card h3 a {
    color: inherit;
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.media-card h3 a:hover,
.media-card h3 a:focus-visible {
    color: #9fcaff;
    outline: 0;
}

.media-card-meta,
.media-card-meta-list,
.media-candidate-body p,
.media-panel-copy {
    color: var(--private-muted);
    font-size: 13px;
    line-height: 1.45;
}

.media-card-meta-list {
    display: flex;
    flex-wrap: wrap;
    grid-row: 3;
    align-content: flex-start;
    gap: 4px 10px;
    min-height: 40px;
    overflow: hidden;
}

.media-card-season-summary {
    display: grid;
    grid-row: 4;
    align-content: flex-start;
    gap: 6px;
    min-height: 46px;
    color: var(--private-muted);
    font-size: 12px;
    font-weight: 600;
}

.media-season-progress {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(128, 164, 204, 0.16);
}

.media-season-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent-green);
}

.media-library-empty-state {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding: 18px;
    border: 1px dashed rgba(128, 164, 204, 0.24);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.54);
}

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

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

.media-library-empty-state p {
    color: var(--private-muted);
    font-size: 14px;
    line-height: 1.5;
}

.media-add-layout {
    display: grid;
    gap: 14px;
}

.media-add-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: rgba(10, 20, 32, 0.76);
}

.media-add-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--private-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.media-add-tab:hover,
.media-add-tab:focus-visible,
.media-add-tab.is-active {
    border-color: rgba(54, 163, 255, 0.38);
    background: rgba(54, 163, 255, 0.12);
    color: var(--private-text);
    outline: 0;
}

.media-add-tab-separator {
    width: 1px;
    height: 26px;
    background: rgba(128, 164, 204, 0.24);
}

.media-add-form-grid,
.media-edit-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.media-manual-panel {
    min-width: 0;
}

.media-form-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.media-form-stack {
    display: grid;
    gap: 14px;
}

.media-search-single-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.media-cover-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

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

.media-form-field[hidden] {
    display: none;
}

.media-form-field label,
.media-form-field>span,
.media-season-candidate-list legend,
.media-season-complete-form label span {
    color: #dce7f4;
    font-size: 13px;
    font-weight: 600;
}

.media-season-candidate-list label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--private-muted);
    font-size: 13px;
    font-weight: 600;
}

.media-form-field input,
.media-form-field select,
.media-form-field textarea,
.media-season-complete-form input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: rgba(7, 14, 23, 0.88);
    color: var(--private-text);
    font: inherit;
    font-size: 14px;
}

.media-form-field input[type="file"] {
    padding: 10px 12px;
}

.media-form-field input:focus,
.media-form-field select:focus,
.media-season-complete-form input:focus {
    border-color: var(--accent-blue);
    outline: 3px solid rgba(54, 163, 255, 0.18);
}

.media-form-field .form-error-message,
.media-form-field .invalid-feedback,
.media-form-field ul {
    margin: 0;
    padding: 0;
    color: #ffb7bd;
    font-size: 13px;
    list-style: none;
}

.media-form-field .form-help {
    color: var(--private-muted);
    font-size: 12px;
}

/*
 * Projektowy datepicker dla trackera mediów.
 * Flatpickr trzyma techniczną wartość `Y-m-d` w oryginalnym inpucie, a
 * użytkownik widzi ostylowane pole i popup dopasowany do ciemnego dashboardu.
 */
.media-date-picker-field {
    position: relative;
}

.media-date-picker-input-shell {
    position: relative;
    display: block;
    min-width: 0;
}

.media-date-picker-input-shell input[data-controller="media-date-picker"],
.media-date-picker-field .media-date-picker-control {
    padding-right: 38px;
    cursor: text;
}

.media-date-picker-field .flatpickr-input[readonly] {
    cursor: pointer;
}

.media-date-picker-input-shell > svg.media-date-picker-icon {
    /*
     * Globalny shell aplikacji ustawia `width: 100%` dla każdego SVG w środku.
     * Ikona kalendarza jest jednak małym elementem pola formularza, więc tutaj
     * używamy bardziej precyzyjnego selektora i blokujemy jej rozmiar lokalnie.
     */
    position: absolute;
    right: 10px;
    top: 50%;
    width: 14px;
    min-width: 14px;
    max-width: 14px;
    height: 14px;
    min-height: 14px;
    max-height: 14px;
    color: rgba(159, 202, 255, 0.86);
    pointer-events: none;
    transform: translateY(-50%);
}

.media-date-picker-field:focus-within .media-date-picker-icon {
    color: #ffffff;
}

input[data-controller="media-date-picker"]::-webkit-calendar-picker-indicator {
    opacity: 0;
}

.media-date-picker-calendar.flatpickr-calendar {
    /*
     * Te zmienne trzymają geometrię nagłówka kalendarza w jednym miejscu.
     * Jeśli zmienimy boczny margines strzałek, środek z miesiącem i rokiem
     * przeliczy się z tej samej wartości i układ zostanie symetryczny.
     */
    --media-date-picker-side-gutter: 18px;
    --media-date-picker-arrow-size: 34px;
    --media-date-picker-header-gap: 8px;
    --media-date-picker-header-height: 46px;
    --media-date-picker-control-top-offset: 4px;
    --media-date-picker-header-offset: calc(
        var(--media-date-picker-side-gutter) + var(--media-date-picker-arrow-size) + var(--media-date-picker-header-gap)
    );
    width: 328px;
    padding: 12px;
    border: 1px solid rgba(128, 164, 204, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(17, 31, 46, 0.96), rgba(8, 16, 27, 0.98)),
        rgba(8, 16, 27, 0.98);
    color: var(--private-text);
    font-family: inherit;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(18px);
}

.media-date-picker-calendar.flatpickr-calendar::before,
.media-date-picker-calendar.flatpickr-calendar::after {
    display: none;
}

.media-date-picker-calendar.flatpickr-calendar.open {
    animation: media-date-picker-enter 150ms ease-out;
}

.media-date-picker-calendar .flatpickr-months {
    display: grid;
    grid-template-columns: var(--media-date-picker-arrow-size) minmax(0, 1fr) var(--media-date-picker-arrow-size);
    align-items: start;
    min-height: var(--media-date-picker-header-height);
}

.media-date-picker-calendar .flatpickr-month {
    grid-column: 1 / -1;
    height: var(--media-date-picker-header-height);
    color: var(--private-text);
}

.media-date-picker-calendar .flatpickr-prev-month,
.media-date-picker-calendar .flatpickr-next-month {
    top: 12px;
    display: grid;
    place-items: center;
    width: var(--media-date-picker-arrow-size);
    height: var(--media-date-picker-arrow-size);
    padding: 0;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    color: #dce7f4;
    fill: currentColor;
}

.media-date-picker-calendar .flatpickr-months .flatpickr-prev-month.flatpickr-prev-month {
    /*
     * Flatpickr ustawia `left: 0` bardzo specyficznym selektorem.
     * Powtarzamy klasę tak samo świadomie, żeby nasz projektowy margines
     * rzeczywiście wygrał w przeglądarce.
     */
    left: var(--media-date-picker-side-gutter);
}

.media-date-picker-calendar .flatpickr-months .flatpickr-next-month.flatpickr-next-month {
    /*
     * Prawa strzałka ma ten sam problem co lewa: domyślny CSS biblioteki
     * przykleja ją do brzegu, więc tutaj nadpisujemy dokładnie tę regułę.
     */
    right: var(--media-date-picker-side-gutter);
}

.media-date-picker-calendar .flatpickr-prev-month:hover,
.media-date-picker-calendar .flatpickr-next-month:hover {
    border-color: rgba(54, 163, 255, 0.34);
    background: rgba(54, 163, 255, 0.12);
    color: #ffffff;
}

.media-date-picker-calendar .flatpickr-prev-month span,
.media-date-picker-calendar .flatpickr-next-month span {
    font-size: 24px;
    line-height: 1;
}

.media-date-picker-calendar .flatpickr-current-month {
    left: var(--media-date-picker-header-offset);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
    width: calc(100% - (var(--media-date-picker-header-offset) * 2));
    height: var(--media-date-picker-header-height);
    padding: 0;
    color: var(--private-text);
    font-size: 15px;
}

.media-date-picker-calendar .flatpickr-monthDropdown-months,
.media-date-picker-calendar .numInputWrapper {
    height: 34px;
    margin: var(--media-date-picker-control-top-offset) 0 0;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    background: rgba(7, 14, 23, 0.72);
}

.media-date-picker-calendar .flatpickr-monthDropdown-months {
    padding: 0 28px 0 10px;
    color: var(--private-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}

.media-date-picker-calendar .flatpickr-monthDropdown-months:hover,
.media-date-picker-calendar .flatpickr-monthDropdown-months:focus,
.media-date-picker-calendar .numInputWrapper:hover {
    border-color: rgba(54, 163, 255, 0.42);
    background: rgba(13, 30, 47, 0.92);
}

.media-date-picker-calendar .numInputWrapper input.cur-year {
    height: 32px;
    padding: 0 8px;
    color: var(--private-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}

.media-date-picker-calendar .numInputWrapper span {
    display: none;
}

.media-date-picker-calendar .flatpickr-weekdays {
    height: 34px;
    margin-top: 8px;
    border-top: 1px solid rgba(128, 164, 204, 0.12);
}

.media-date-picker-calendar span.flatpickr-weekday {
    color: #9fcaff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.media-date-picker-calendar .flatpickr-days {
    width: 304px;
}

.media-date-picker-calendar .dayContainer {
    width: 304px;
    min-width: 304px;
    max-width: 304px;
}

.media-date-picker-calendar .flatpickr-day {
    width: 39px;
    max-width: 39px;
    height: 36px;
    margin: 2px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #dce7f4;
    font-size: 13px;
    font-weight: 600;
    line-height: 34px;
}

.media-date-picker-calendar .flatpickr-day:hover,
.media-date-picker-calendar .flatpickr-day:focus {
    border-color: rgba(54, 163, 255, 0.24);
    background: rgba(54, 163, 255, 0.14);
    color: #ffffff;
}

.media-date-picker-calendar .flatpickr-day.today {
    border-color: rgba(242, 184, 75, 0.7);
    color: #ffd88a;
}

.media-date-picker-calendar .flatpickr-day.selected,
.media-date-picker-calendar .flatpickr-day.startRange,
.media-date-picker-calendar .flatpickr-day.endRange {
    border-color: rgba(54, 163, 255, 0.95);
    background: #1687e8;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(22, 135, 232, 0.34);
}

.media-date-picker-calendar .flatpickr-day.prevMonthDay,
.media-date-picker-calendar .flatpickr-day.nextMonthDay {
    color: rgba(169, 181, 198, 0.42);
}

.media-date-picker-calendar .flatpickr-day.flatpickr-disabled,
.media-date-picker-calendar .flatpickr-day.flatpickr-disabled:hover {
    border-color: transparent;
    background: transparent;
    color: rgba(169, 181, 198, 0.24);
    cursor: not-allowed;
}

@keyframes media-date-picker-enter {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.985);
    }

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

.media-date-grid,
.media-form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.media-candidate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.media-candidate-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-self: start;
    overflow: hidden;
}

.media-candidate-form {
    display: grid;
    gap: 12px;
}

.media-candidate-card .media-date-grid {
    grid-template-columns: 1fr;
}

.media-season-candidate-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
}

.media-season-candidate-list p {
    margin: 0;
}

.media-edit-overview {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
}

.media-edit-cover {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--private-border);
    border-radius: 8px;
    color: #9fcaff;
    font-size: 34px;
    font-weight: 600;
}

.media-edit-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-delete-panel {
    border-color: rgba(215, 91, 102, 0.3);
    background: rgba(83, 20, 28, 0.16);
}

.media-delete-form {
    display: flex;
    align-items: center;
}

.media-season-panel-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.media-season-panel-header h2,
.media-season-panel-header p {
    margin: 0;
}

.media-season-manual-form {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(160px, 1fr) auto;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.44);
}

.media-season-list {
    display: grid;
    gap: 8px;
}

.media-season-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.62);
}

.media-season-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.media-season-main strong,
.media-season-main span,
.media-season-main p {
    margin: 0;
}

.media-season-main strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.media-season-main span,
.media-season-main p {
    color: var(--private-muted);
    font-size: 13px;
    line-height: 1.4;
}

.media-season-complete-form {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto;
    align-items: end;
    gap: 8px;
}

@media (max-width: 1240px) {
    .media-candidate-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .media-library-stat-grid,
    .media-library-filter-form,
    .media-add-form-grid,
    .media-edit-layout,
    .media-date-grid,
    .media-form-actions,
    .media-cover-choice-grid {
        grid-template-columns: 1fr;
    }

    .media-edit-overview {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .media-candidate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .media-season-row,
    .media-season-complete-form,
    .media-search-single-form {
        grid-template-columns: 1fr;
    }

    .media-season-row {
        display: grid;
    }

    .media-candidate-grid {
        grid-template-columns: 1fr;
    }
}

/*
 * Publiczny raport mediów.
 *
 * Ten widok działa bez logowania i pokazuje tylko ukończone tytuły z okładkami.
 * Układ jest prosty: nagłówek zakresu, pusty stan albo siatka okładek.
 */
.media-public-report {
    display: grid;
    gap: 24px;
    color: var(--public-text);
}

.media-public-header,
.media-public-empty-state {
    padding: 28px;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: var(--public-surface);
}

.media-public-header p,
.media-public-header h1,
.media-public-header span,
.media-public-empty-state h2,
.media-public-empty-state p,
.media-public-card h2,
.media-public-card p {
    margin: 0;
}

.media-public-header p {
    color: var(--public-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.media-public-header h1 {
    margin-top: 8px;
    color: var(--public-text);
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: 0;
}

.media-public-header span,
.media-public-empty-state p {
    display: block;
    margin-top: 10px;
    color: var(--public-muted);
    font-size: 15px;
    line-height: 1.5;
}

.media-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.media-public-card {
    overflow: hidden;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: var(--public-surface);
}

.media-public-card img,
.media-public-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #eef2f7;
    color: #64748b;
    font-size: 42px;
    font-weight: 600;
}

.media-public-card div {
    display: grid;
    gap: 6px;
    padding: 12px;
}

.media-public-card p {
    color: var(--public-muted);
    font-size: 12px;
    font-weight: 600;
}

.media-public-card h2 {
    color: var(--public-text);
    font-size: 16px;
    line-height: 1.3;
}

/*
 * Strona `/account/steam/library`.
 *
 * 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: 600;
    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: 600;
    text-transform: uppercase;
}

.steam-library-stat strong {
    margin-top: 5px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 600;
    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: 600;
    white-space: nowrap;
}

.steam-library-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(190px, 0.52fr) minmax(340px, 0.88fr) minmax(190px, 0.46fr) 140px;
    gap: 10px;
    align-items: stretch;
}

/*
 * Podmoduł 100% używa innego zestawu filtrów niż główna biblioteka:
 * zamiast statusu i checkboxa ma wybór roku oraz miesiąca ukończenia.
 * Osobna siatka trzyma pola w czytelnych szerokościach.
 */
.steam-library-toolbar.is-completed-mode {
    grid-template-columns: minmax(260px, 1fr) minmax(130px, 0.3fr) minmax(160px, 0.36fr) minmax(280px, 0.74fr) 140px;
}

.steam-library-search,
.steam-library-select,
.steam-library-checkbox,
.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-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;
}

/*
 * Checkbox jest filtrem backendowym, tak samo jak status i sortowanie.
 * Układ przypomina przełącznik, ale zostawiamy prawdziwy input checkbox,
 * żeby formularz GET działał bez dodatkowego JavaScriptu.
 */
.steam-library-checkbox {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 12px;
    color: var(--private-text);
    cursor: pointer;
}

.steam-library-checkbox input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.steam-library-checkbox>span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(128, 164, 204, 0.36);
    border-radius: 5px;
    background: rgba(7, 17, 29, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.steam-library-checkbox>span::after {
    width: 9px;
    height: 5px;
    border-bottom: 2px solid #06111d;
    border-left: 2px solid #06111d;
    content: "";
    opacity: 0;
    transform: rotate(-45deg) translate(1px, -1px);
}

.steam-library-checkbox strong {
    overflow: hidden;
    color: #dce7f4;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-library-checkbox:hover,
.steam-library-checkbox:focus-within {
    border-color: rgba(66, 168, 255, 0.34);
    background: rgba(22, 41, 61, 0.92);
}

.steam-library-checkbox input:checked+span {
    border-color: rgba(94, 201, 255, 0.78);
    background: #5ec9ff;
}

.steam-library-checkbox input:checked+span::after {
    opacity: 1;
}

.steam-library-checkbox input:focus-visible+span {
    outline: 2px solid rgba(159, 202, 255, 0.74);
    outline-offset: 2px;
}

/*
 * 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(3, 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: 600;
    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: var(--steam-game-header-aspect-ratio);
    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: contain;
    transition: filter 180ms ease, transform 180ms ease;
}

.steam-library-card:hover .steam-library-card-cover {
    filter: saturate(1.08);
    /*
     * Nie powiększamy headera na hoverze, bo skalowanie wewnątrz ramki
     * obcinałoby krawędzie obrazu mimo prawidłowej proporcji kontenera.
     */
    transform: none;
}

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

/*
 * 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-taxonomy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.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: 600;
}

.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-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.steam-library-card-source-links a.steam-external-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-height: 30px;
    padding: 0;
    border: 1px solid rgba(128, 164, 204, 0.18);
    border-radius: 8px;
    background: rgba(17, 30, 45, 0.9);
    color: #d9e7f7;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.steam-library-card-source-links a.steam-external-icon-link:hover,
.steam-library-card-source-links a.steam-external-icon-link:focus-visible {
    border-color: rgba(54, 163, 255, 0.48);
    background: rgba(54, 163, 255, 0.14);
    color: #ffffff;
}

.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-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.steam-library-card-time-label {
    overflow: hidden;
    color: #9fb1c7;
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.steam-library-card-review>span {
    width: 18px;
    height: 18px;
    color: #9fcaff;
}

.steam-library-card-review-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.steam-library-card-review-label {
    overflow: hidden;
    color: #9fb1c7;
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-library-card-review strong {
    overflow: hidden;
    color: #eef6ff;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-library-card-review-count {
    overflow: hidden;
    color: #8da0b8;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-library-card-review strong.is-review-excellent {
    color: #35d018;
}

.steam-library-card-review strong.is-review-good {
    color: #bddd3a;
}

.steam-library-card-review strong.is-review-medium {
    color: #f5df74;
}

.steam-library-card-review strong.is-review-warning {
    color: #f4a23a;
}

.steam-library-card-review strong.is-review-bad {
    color: #ef1d1d;
}

/*
 * Komórki HLTB są renderowane w Turbo Frame, dlatego ramka sama musi być
 * elementem siatki. W widoku tabelarycznym pokazujemy trzy osobne wartości:
 * główną linię, główną linię z zadaniami oraz przejście kolekcjonerskie.
 */
.steam-library-hltb-frame {
    display: block;
    min-width: 0;
}

.steam-library-card-hltb {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    min-width: 0;
    color: #dbe8f6;
}

.steam-library-card-hltb-cell {
    display: grid;
    gap: 2px;
    align-content: center;
    min-width: 0;
}

.steam-library-card-hltb-label,
.steam-library-card-hltb-cell strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-library-card-hltb-label {
    color: #9fb1c7;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.15;
}

.steam-library-card-hltb-label a {
    color: #9fcaff;
    font-weight: 600;
    text-decoration: none;
}

.steam-library-card-hltb-label a:hover,
.steam-library-card-hltb-label a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.steam-library-card-hltb-cell strong {
    color: #eef6ff;
    font-size: 12px;
    font-weight: 600;
}

.steam-library-card-hltb.is-loading .steam-library-card-hltb-cell strong {
    color: #b9cce2;
}

.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: 600;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-library-card-progress strong small {
    display: block;
    margin-top: 2px;
    color: #9fb1c7;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: none;
}

/*
 * 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.is-completed .steam-library-card-progress strong small {
    color: #e8d184;
}

/*
 * Data ukończenia jest widoczna tylko w podmodule 100%.
 * Wartość pochodzi z ostatniego znanego odblokowania osiągnięcia w danej grze.
 */
.steam-library-card-completion-date {
    display: grid;
    gap: 2px;
    align-content: center;
    min-width: 0;
    color: #dbe8f6;
}

.steam-library-card-completion-date-label {
    overflow: hidden;
    color: #9fb1c7;
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-library-card-completion-date strong {
    overflow: hidden;
    color: #eef6ff;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.steam-library-card-achievements-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.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 {
    overflow: hidden;
    color: #dce7f4;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.steam-library-card-achievements small {
    overflow: hidden;
    color: #9fb1c7;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.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: 600;
    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 {
    align-self: start;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--steam-game-header-aspect-ratio);
    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 review hltb progress achievements"
        "tags time review hltb progress achievements";
    grid-template-columns: minmax(170px, 1fr) minmax(104px, 0.34fr) minmax(116px, 0.38fr) minmax(280px, 0.9fr) minmax(150px, 0.54fr) minmax(116px, 0.34fr);
    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-taxonomy {
    grid-area: tags;
}

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

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

.steam-library-page.is-list-view .steam-library-hltb-frame {
    grid-area: hltb;
}

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

.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:hover .steam-library-card-cover {
    transform: none;
}

/*
 * Podmoduł gier 100% ma węższy zestaw kolumn niż główna biblioteka.
 * Nie pokazujemy tu HLTB ani dodatkowej komórki osiągnięć, bo wskaźnik
 * osiągnięć jest już zawarty w pasku postępu.
 */
.steam-library-page.is-completed-library.is-list-view .steam-library-card-body {
    grid-template-areas:
        "title time review progress completion"
        "tags time review progress completion";
    grid-template-columns: minmax(210px, 1fr) minmax(110px, 0.3fr) minmax(140px, 0.36fr) minmax(150px, 0.36fr) minmax(150px, 0.36fr);
}

.steam-library-page.is-completed-library.is-list-view .steam-library-card-completion-date {
    grid-area: completion;
}

/*
 * Widok kompaktowy jest najgęstszą wersją listy. Nie pokazuje obrazka ani tagów,
 * tylko szybki wiersz do skanowania: nazwa, czasy gry, stan osiągnięć i linki.
 */
.steam-library-page.is-compact-view .steam-library-card-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

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

.steam-library-page.is-compact-view .steam-library-card:hover,
.steam-library-page.is-compact-view .steam-library-card:focus-within {
    transform: none;
}

.steam-library-page.is-compact-view .steam-library-card-media,
.steam-library-page.is-compact-view .steam-library-card-tags {
    display: none;
}

.steam-library-page.is-compact-view .steam-library-card-body {
    display: grid;
    grid-template-areas: "title time review hltb progress achievements links";
    grid-template-columns: minmax(190px, 1.2fr) minmax(100px, 0.45fr) minmax(116px, 0.46fr) minmax(280px, 0.98fr) minmax(128px, 0.5fr) minmax(110px, 0.4fr) minmax(142px, 0.46fr);
    align-items: center;
    gap: 10px 14px;
    min-height: 54px;
    padding: 10px 14px;
}

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

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

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

.steam-library-page.is-compact-view .steam-library-card-review {
    grid-area: review;
}

.steam-library-page.is-compact-view .steam-library-hltb-frame {
    grid-area: hltb;
}

.steam-library-page.is-compact-view .steam-library-card-hltb {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

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

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

.steam-library-page.is-compact-view .steam-library-card-taxonomy {
    grid-area: links;
    justify-self: end;
}

.steam-library-page.is-compact-view .steam-library-card-source-links {
    justify-content: flex-end;
}

.steam-library-page.is-completed-library.is-compact-view .steam-library-card-body {
    grid-template-areas: "title time review progress completion";
    grid-template-columns: minmax(190px, 1.2fr) minmax(100px, 0.45fr) minmax(116px, 0.46fr) minmax(128px, 0.5fr) minmax(150px, 0.5fr);
}

.steam-library-page.is-completed-library.is-compact-view .steam-library-card-completion-date {
    grid-area: completion;
}

.steam-library-page.is-completed-library.is-compact-view .steam-library-card-taxonomy {
    display: 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(240px, 1fr) minmax(160px, 0.42fr) minmax(260px, 0.74fr) minmax(180px, 0.44fr) 140px;
    }
}

@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"
            "review review"
            "hltb hltb"
            "time achievements";
        grid-template-columns: minmax(0, 1fr) minmax(180px, 0.8fr);
        gap: 8px 14px;
    }

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

    .steam-library-page.is-compact-view .steam-library-card-body {
        grid-template-areas:
            "title title"
            "time achievements"
            "review review"
            "hltb hltb"
            "progress links";
        grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
        gap: 8px 14px;
    }

    .steam-library-page.is-completed-library.is-compact-view .steam-library-card-body {
        grid-template-areas:
            "title title"
            "time completion"
            "review completion"
            "progress progress";
        grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
    }

    .steam-library-page.is-compact-view .steam-library-card-taxonomy {
        justify-self: start;
    }

    .steam-library-page.is-compact-view .steam-library-card-source-links {
        justify-content: flex-start;
    }
}

@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-toolbar.is-completed-mode {
        grid-template-columns: 1fr;
    }

    .steam-library-view-switcher {
        width: 100%;
        grid-template-columns: repeat(3, 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: var(--steam-game-header-aspect-ratio);
        border-right: 0;
    }

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

    .steam-library-page.is-completed-library.is-list-view .steam-library-card-body {
        grid-template-areas:
            "title"
            "tags"
            "time"
            "review"
            "progress"
            "completion";
    }

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

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

    .steam-library-page.is-completed-library.is-compact-view .steam-library-card-body {
        grid-template-areas:
            "title"
            "time"
            "review"
            "progress"
            "completion";
        grid-template-columns: 1fr;
    }

    .steam-library-page.is-compact-view .steam-library-card-hltb {
        grid-template-columns: 1fr;
    }

    .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;
    }
}

/*
 * Responsywność nowego raportu Steam.
 * Ten blok jest na końcu pliku, żeby świadomie nadpisać starsze reguły raportu
 * z ogólnej sekcji responsywnej.
 */
@media (max-width: 1180px) {
    .steam-report-control-deck {
        grid-template-columns: 1fr;
    }

    .steam-report-period-nav {
        justify-content: flex-start;
    }

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

@media (max-width: 760px) {
    .steam-report-header {
        min-height: 0;
        padding: 26px 22px;
    }

    .steam-report-header::after {
        display: none;
    }

    .steam-report-header h1 {
        font-size: 38px;
        line-height: 1.02;
    }

    .steam-report-header span {
        font-size: 15px;
    }

    .steam-report-stat-grid,
    .steam-report-spotlight-grid {
        grid-template-columns: 1fr;
    }

    .steam-report-stat {
        min-height: 104px;
    }

    .steam-report-daily-chart {
        grid-auto-columns: 38px;
        height: 242px;
    }

    .steam-report-day-bar {
        grid-template-rows: 34px minmax(120px, 1fr) 28px;
    }

    .steam-report-game-cell img,
    .steam-report-game-thumb-placeholder {
        width: 96px;
    }

    .steam-report-share-panel {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .steam-report-pagination {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .app-body-public-report .app-shell-public {
        width: min(100% - 24px, 1680px);
    }

    .steam-report-period-tabs,
    .steam-report-period-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .steam-report-period-tab,
    .steam-report-period-button {
        justify-content: center;
        width: 100%;
    }

    .steam-report-period-picker {
        display: block;
        width: 100%;
    }

    .steam-report-period-picker select:not(.select2-hidden-accessible),
    .steam-report-page .select2-container {
        width: 100% !important;
    }

    .steam-report-stat {
        grid-template-columns: 50px minmax(0, 1fr);
        padding: 14px;
    }

    .steam-report-stat-icon {
        width: 50px;
        height: 50px;
    }

    .steam-report-stat strong {
        font-size: 25px;
    }

    .steam-report-spotlight,
    .steam-report-chart-panel,
    .steam-report-table-panel,
    .steam-report-share-panel {
        padding: 14px;
    }
}

/*
 * Symulator completion rate Steam.
 *
 * Ten moduł korzysta z podobnej struktury jak biblioteka Steam: nagłówek z
 * formularzem, krótkie metryki i lista rekomendacji. Klasy są osobne, żeby
 * później można było rozbudować symulacje bez mieszania stylów z listą gier.
 */
.steam-completion-simulator-page {
    color: var(--private-text);
    display: grid;
    gap: 22px;
}

.steam-completion-simulator-hero {
    align-items: end;
    background:
        linear-gradient(145deg, rgba(14, 29, 46, 0.94), rgba(8, 18, 30, 0.96)),
        rgba(11, 22, 35, 0.94);
    border: 1px solid rgba(112, 151, 190, 0.2);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: var(--private-text);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    padding: 24px;
}

.steam-completion-simulator-heading {
    display: grid;
    gap: 8px;
}

.steam-completion-simulator-heading h1 {
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
}

.steam-completion-simulator-heading span {
    color: var(--private-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 760px;
}

.steam-completion-target-form {
    background: rgba(17, 30, 45, 0.82);
    border: 1px solid rgba(128, 164, 204, 0.16);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 16px;
}

.steam-completion-target-form label {
    color: #9fcaff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.steam-completion-target-control {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.steam-completion-target-control input {
    background: rgba(7, 17, 29, 0.78);
    border: 1px solid rgba(128, 164, 204, 0.28);
    border-radius: 6px;
    color: var(--private-text);
    font: inherit;
    min-width: 0;
    outline: 0;
    padding: 11px 12px;
}

.steam-completion-target-control input:focus-visible {
    border-color: rgba(94, 201, 255, 0.78);
    box-shadow: 0 0 0 3px rgba(54, 163, 255, 0.16);
}

.steam-completion-target-control>span {
    color: #dce7f4;
    font-weight: 600;
}

.steam-completion-target-control .button {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    white-space: nowrap;
}

.steam-completion-target-control .button svg {
    width: 18px;
    height: 18px;
}

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

.steam-completion-stat {
    align-items: center;
    background: rgba(15, 28, 43, 0.86);
    border: 1px solid var(--private-border);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: grid;
    gap: 14px;
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 116px;
    padding: 16px;
}

.steam-completion-stat-icon {
    background:
        linear-gradient(145deg, rgba(15, 33, 51, 0.98), rgba(9, 21, 34, 0.98)),
        #0d1d2f;
    border: 1px solid rgba(75, 142, 186, 0.34);
    border-radius: 8px;
    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);
    color: #7fb3d9;
    display: block;
    height: 54px;
    padding: 0;
    position: relative;
    width: 54px;
}

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

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

.steam-completion-stat p,
.steam-completion-stat strong,
.steam-completion-stat span {
    display: block;
    margin: 0;
}

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

.steam-completion-stat strong {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    margin-top: 4px;
}

.steam-completion-stat span {
    color: #94a4b6;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 4px;
}

.steam-completion-explainer,
.steam-completion-warning {
    border-radius: 8px;
    line-height: 1.55;
    padding: 16px 18px;
}

.steam-completion-explainer {
    background: rgba(17, 30, 45, 0.62);
    border: 1px solid rgba(128, 164, 204, 0.16);
    color: var(--private-muted);
}

.steam-completion-explainer p {
    margin: 0;
}

.steam-completion-warning {
    background: rgba(242, 184, 75, 0.1);
    border: 1px solid rgba(242, 184, 75, 0.34);
    color: #ffd98b;
    display: grid;
    gap: 4px;
}

.steam-completion-warning strong {
    color: #ffe19a;
    font-weight: 600;
}

.steam-completion-plan {
    display: grid;
    gap: 14px;
}

.steam-completion-plan-header {
    align-items: end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.steam-completion-plan-header h2,
.steam-completion-plan-header p {
    margin: 0;
}

.steam-completion-plan-header h2 {
    color: #ffffff;
    font-size: 24px;
    letter-spacing: 0;
}

.steam-completion-plan-header>span {
    color: var(--private-muted);
    font-size: 14px;
    font-weight: 600;
}

.steam-completion-table {
    background:
        linear-gradient(180deg, rgba(13, 26, 40, 0.98), rgba(7, 17, 29, 1)),
        #091523;
    border: 1px solid rgba(90, 125, 160, 0.26);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    /* Dodatkowa kolumna akcji może wymagać przewinięcia w węższym obszarze roboczym. */
    overflow-x: auto;
    overflow-y: hidden;
}

.steam-completion-table-header,
.steam-completion-row {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(380px, 2fr) minmax(90px, .7fr) minmax(86px, .55fr) minmax(116px, .8fr) minmax(88px, .6fr) minmax(98px, .65fr) minmax(112px, .75fr) minmax(90px, .65fr);
}

.steam-completion-table-header {
    background: rgba(17, 30, 45, 0.9);
    border-bottom: 1px solid rgba(128, 164, 204, 0.16);
    color: #99a9ba;
    font-size: 12px;
    font-weight: 600;
    padding: 12px 16px;
    text-transform: uppercase;
}

.steam-completion-row {
    align-items: center;
    border-bottom: 1px solid rgba(128, 164, 204, 0.14);
    padding: 14px 16px;
    transition: background 160ms ease;
}

.steam-completion-row:hover {
    background: rgba(54, 163, 255, 0.08);
}

.steam-completion-row:last-child {
    border-bottom: 0;
}

.steam-completion-row>div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.steam-completion-row strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.steam-completion-row span,
.steam-completion-row small {
    color: var(--private-muted);
    font-size: 12px;
    line-height: 1.35;
}

.steam-completion-game-cell {
    align-items: center;
    /*
     * Numer kroku ma stać pośrodku przestrzeni przed miniaturą:
     * lewy odstęp, numer i odstęp do obrazka są opisane osobnymi kolumnami,
     * żeby późniejsza zmiana miniatury nie przesuwała samej numeracji.
     */
    display: grid;
    grid-template-columns: 8px 28px 8px 134px minmax(0, 1fr);
    row-gap: 0;
}

.steam-completion-rank {
    color: #9fcaff;
    font-size: 16px;
    font-weight: 600;
    grid-column: 2;
    justify-self: center;
    line-height: 1;
    width: 28px;
}

.steam-completion-game-cell img,
.steam-completion-game-placeholder {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    grid-column: 4;
    object-fit: cover;
    width: 134px;
}

.steam-completion-game-copy {
    display: grid;
    gap: 5px;
    grid-column: 5;
    margin-left: 12px;
    min-width: 0;
}

.steam-completion-game-placeholder {
    align-items: center;
    background: rgba(128, 164, 204, 0.12);
    border: 1px solid rgba(128, 164, 204, 0.16);
    color: #9fcaff;
    display: inline-flex;
    font-weight: 600;
    justify-content: center;
}

.steam-completion-game-cell a {
    color: #dce7f4;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.steam-completion-game-cell a:hover,
.steam-completion-game-cell a:focus-visible {
    color: #9fcaff;
}

/*
 * Formularze listy ignorowanych są zwykłymi akcjami POST. Trzymamy je zwarte,
 * żeby dodatkowa kolumna nie odciągała uwagi od danych rekomendacji.
 */
.steam-completion-ignore-form {
    margin: 0;
}

.steam-completion-ignore-form .button {
    font-size: 13px;
    min-height: 36px;
    padding: 0 12px;
    white-space: nowrap;
}

.steam-completion-ignore-button {
    width: 100%;
}

/*
 * Trwała lista ignorowanych gier.
 *
 * Sekcja celowo przypomina tabelę rekomendacji, ale ma tylko nazwę gry i akcję
 * przywrócenia. Użytkownik od razu widzi, że to ustawienia symulatora, a nie
 * kolejna część planu do wykonania.
 */
.steam-completion-ignored {
    display: grid;
    gap: 14px;
}

.steam-completion-ignored-description {
    color: var(--private-muted);
    line-height: 1.55;
    margin: 0;
}

.steam-completion-ignored-list {
    background:
        linear-gradient(180deg, rgba(13, 26, 40, 0.98), rgba(7, 17, 29, 1)),
        #091523;
    border: 1px solid rgba(90, 125, 160, 0.26);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.steam-completion-ignored-row {
    align-items: center;
    border-bottom: 1px solid rgba(128, 164, 204, 0.14);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 16px;
}

.steam-completion-ignored-row:last-child {
    border-bottom: 0;
}

.steam-completion-ignored-game {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 134px minmax(0, 1fr);
    min-width: 0;
}

.steam-completion-ignored-game img,
.steam-completion-ignored-game .steam-completion-game-placeholder {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    grid-column: auto;
    object-fit: cover;
    width: 134px;
}

.steam-completion-ignored-game>div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.steam-completion-ignored-game a {
    color: #dce7f4;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.steam-completion-ignored-game a:hover,
.steam-completion-ignored-game a:focus-visible {
    color: #9fcaff;
}

.steam-completion-ignored-game small {
    color: var(--private-muted);
    font-size: 12px;
    line-height: 1.35;
}

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

    .steam-completion-table-header,
    .steam-completion-row {
        min-width: 1270px;
    }
}

@media (max-width: 780px) {
    .steam-completion-simulator-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .steam-completion-target-control {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .steam-completion-target-control .button {
        grid-column: 1 / -1;
        width: 100%;
    }

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

    .steam-completion-plan-header {
        align-items: start;
        flex-direction: column;
    }

    .steam-completion-ignored-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .steam-completion-ignored-row .steam-completion-ignore-form .button {
        width: 100%;
    }

    .steam-completion-ignored-game {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .steam-completion-ignored-game img,
    .steam-completion-ignored-game .steam-completion-game-placeholder {
        width: 104px;
    }
}
