.store-library-main {
    position: relative;
    z-index: 1;
    padding: 0 0 68px;
}

.store-library-intro {
    padding: 28px 0 12px;
}

.store-library-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(17, 22, 31, 0.98), rgba(9, 13, 20, 0.98));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.store-library-panel__copy {
    min-width: 0;
    flex: 1 1 auto;
}

.store-library-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(104, 220, 188, 0.14);
    color: #9fe9d5;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.store-library-panel__copy h1 {
    margin: 14px 0 0;
    color: #ffffff;
    font-size: clamp(1.82rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
}

.store-library-panel__copy p {
    max-width: 720px;
    margin: 14px 0 0;
    color: rgba(220, 228, 241, 0.76);
    font-size: 0.98rem;
    line-height: 1.65;
}

.store-library-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.store-library-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(232, 239, 249, 0.88);
    font-size: 0.82rem;
    font-weight: 700;
}

.store-library-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.store-library-search__field {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 400px);
    min-height: 48px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 15, 22, 0.88);
    color: rgba(218, 226, 239, 0.74);
}

.store-library-search__field input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #ffffff;
    outline: none;
    font: inherit;
}

.store-library-search__field input::placeholder {
    color: rgba(205, 214, 230, 0.48);
}

.store-library-panel__auth {
    display: grid;
    gap: 14px;
    width: min(100%, 340px);
}

.store-library-panel__auth p {
    margin: 0;
    color: rgba(220, 228, 241, 0.76);
    line-height: 1.65;
}

.store-library-section {
    padding: 10px 0 0;
}

.store-library-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.store-library-toolbar h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.4rem, 2.4vw, 1.84rem);
    font-weight: 800;
    line-height: 1.18;
}

.store-library-toolbar__result {
    color: rgba(220, 228, 241, 0.68);
    font-size: 0.9rem;
    font-weight: 700;
}

.store-library-toolbar__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.store-library-toolbar__count {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(104, 220, 188, 0.12);
    border: 1px solid rgba(104, 220, 188, 0.16);
    color: #a6eedb;
    font-size: 0.82rem;
    font-weight: 800;
}

.store-library-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 28px 22px;
}

.store-library-card {
    display: flex;
    flex-direction: column;
    flex: 0 1 340px;
    width: min(100%, 340px);
    min-width: 0;
}

.store-library-card__link {
    display: block;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

.store-library-card__poster.aaa-game-poster {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.store-library-card__badge {
    position: absolute;
    left: 10px;
    top: 10px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: rgba(73, 215, 168, 0.92);
    color: #07140f;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 1;
}

.store-library-card__version-pill {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    max-width: calc(100% - 20px);
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: rgba(7, 11, 16, 0.74);
    backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-library-card__body.aaa-game-body {
    padding-top: 12px;
}

.store-library-card__name.aaa-game-name {
    margin-bottom: 8px;
    min-height: auto;
}

.store-library-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(196, 208, 230, 0.72);
    font-size: 0.82rem;
    line-height: 1.5;
}

.store-library-card__meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.store-library-card__meta i {
    color: #9de9d4;
    flex: 0 0 auto;
}

.store-library-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.store-library-card__button {
    min-height: 42px;
    width: 100%;
    padding: 0 12px;
}

.store-library-button {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    transition:
        transform 0.16s ease,
        filter 0.16s ease,
        background 0.16s ease;
}

.store-library-button:hover,
.store-library-button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.store-library-button--primary {
    background: #ff8a3c;
    color: #1b1108;
}

.store-library-button--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.store-library-empty {
    padding: 30px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 12px;
    text-align: center;
}

.store-library-empty strong {
    color: #ffffff;
    font-size: 1.08rem;
}

.store-library-empty span {
    color: rgba(220, 228, 241, 0.72);
    line-height: 1.65;
}

.store-library-empty__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 1199.98px) {
    .store-library-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .store-library-search {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .store-library-main {
        padding-bottom: 54px;
    }

    .store-library-intro {
        padding-top: 18px;
    }

    .store-library-panel {
        padding: 20px 18px;
    }

    .store-library-search {
        width: 100%;
    }

    .store-library-search__field {
        width: 100%;
    }

    .store-library-grid {
        gap: 22px;
    }

    .store-library-card {
        flex-basis: 100%;
        width: 100%;
    }

    .store-library-card__actions {
        grid-template-columns: 1fr;
    }

    .store-library-card__poster.aaa-game-poster {
        border-radius: 6px;
    }

    .store-library-empty {
        padding: 22px 18px;
    }

    .store-library-empty__actions {
        flex-direction: column;
    }

    .store-library-button {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .store-library-summary span {
        width: 100%;
        justify-content: center;
    }

    .store-library-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .store-library-toolbar__meta {
        justify-content: flex-start;
    }

    .store-library-card__meta {
        font-size: 0.78rem;
    }
}
