.inline-search {
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(17, 17, 27, 0.85);
    border: 1px solid #313244;
    border-radius: 14px;
    animation: inline-search-reveal 0.18s ease-out;
}

@keyframes inline-search-reveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.inline-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 8px 0 14px;
    border-radius: 10px;
    background: #1e1e2e;
    border: 1px solid #45475a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.inline-search-field:focus-within {
    border-color: #fab387;
    box-shadow: 0 0 0 3px rgba(250, 179, 135, 0.2);
}

.inline-search-field > .bi-search {
    color: #fab387;
}

.inline-search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #cdd6f4;
    background: transparent;
}

.inline-search-input::placeholder {
    color: #6c7086;
}

.inline-search-input::-webkit-search-cancel-button {
    display: none;
}

.inline-search-shortcut {
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.7rem;
    color: #a6adc8;
    background: #313244;
}

.inline-search-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a6adc8;
    background: transparent;
}

.inline-search-close:hover {
    color: #1e1e2e;
    background: #fab387;
}

.inline-search-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    font-size: 0.85rem;
    color: #a6adc8;
}

.inline-search-meta:not(:empty) {
    padding-top: 8px;
}

.inline-search-summary {
    color: #cdd6f4;
    font-weight: 600;
}

.inline-search-also {
    margin-left: 8px;
}

.inline-search-list-link {
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 600;
    color: #cdd6f4;
    background: #313244;
    text-decoration: none;
}

.inline-search-list-link:hover {
    color: #1e1e2e;
    background: #fab387;
}

@media (max-width: 767.98px) {
    .inline-search-shortcut {
        display: none;
    }
}

.page-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding: 8px;
    background: rgba(17, 17, 27, 0.85);
    border: 1px solid #313244;
    border-radius: 14px;
}

.filter-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.bulk-select {
    display: contents;
}

.filter-pill,
.bulk-select-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cdd6f4;
    background: #313244;
    transition: background 0.15s ease, color 0.15s ease;
}

.filter-pill:hover,
.filter-pill.show,
.bulk-select-toggle:hover {
    color: #fff;
    background: #45475a;
}

.filter-pill .bi,
.bulk-select-toggle .bi {
    color: #fab387;
}

.filter-pill.dropdown-toggle::after {
    margin-left: 2px;
    opacity: 0.6;
}

.filter-pill:has(.filter-active-badge:not([hidden])),
.bulk-select-toggle.active {
    color: #1e1e2e;
    background: #fab387;
}

.filter-pill:has(.filter-active-badge:not([hidden])) .bi,
.bulk-select-toggle.active .bi {
    color: #1e1e2e;
}

.filter-active-badge {
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fab387;
    background: #1e1e2e;
}

.released-count-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 6px;
    font-size: 0.85rem;
    color: #a6adc8;
    white-space: nowrap;
}

.released-count-chip strong {
    color: #cdd6f4;
    font-weight: 700;
}

.released-count-chip .bi {
    color: #fab387;
}

.page-toolbar .released-count-chip {
    order: 1;
    margin-left: auto;
}

.platform-icon {
    flex-shrink: 0;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.2em;
}

.platform-icon-glyph {
    width: auto;
    height: auto;
    font-size: 1.05em;
    line-height: 1;
}

.platform-icon-ps1 {
    color: #c9ced6;
}

.platform-icon-ps2 {
    color: #4f8cff;
}

.section-header .platform-icon-glyph {
    width: auto;
    height: auto;
    font-size: 1.3rem;
}

.empty-state .platform-icon-glyph {
    width: auto;
    height: auto;
    font-size: 2.6rem;
}

.section-header .platform-icon {
    width: 1.4rem;
    height: 1.4rem;
}

.empty-state .platform-icon {
    width: 3rem;
    height: 3rem;
}

.wishlist-scope-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wishlist-scope-switch {
    display: none;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 16px;
    text-align: center;
    color: #a6adc8;
    background: #1e1e2e;
    border: 1px dashed #45475a;
    border-radius: 16px;
}

.empty-state > .bi {
    font-size: 2.4rem;
    color: #fab387;
}

.empty-state-title {
    margin: 0;
    font-weight: 600;
    color: #cdd6f4;
}

@media (max-width: 767.98px), (hover: none) {
    .wishlist-scope-switch {
        display: inline-flex;
        order: 1;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        gap: 2px;
        padding: 3px;
        border-radius: 10px;
        background: #11111b;
        border: 1px solid #313244;
    }

    .wishlist-scope-link {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 5px 10px;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        color: #a6adc8;
        text-decoration: none;
    }

    .wishlist-scope-link.active {
        color: #1e1e2e;
        background: #fab387;
    }
}

.page-toolbar .view-toggle {
    order: 2;
    margin-left: auto;
}

.page-toolbar:has(.released-count-chip) .view-toggle {
    margin-left: 0;
}

.page-toolbar .bulk-select-toggle {
    order: 3;
}

.view-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
    background: #11111b;
    border: 1px solid #313244;
}

.view-toggle-button {
    width: 32px;
    height: 30px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a6adc8;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.view-toggle-button:hover {
    color: #fff;
    background: #313244;
}

.view-toggle-button[aria-pressed="true"] {
    color: #1e1e2e;
    background: #fab387;
}


.filter-dropdown-menu {
    min-width: 250px;
    border-radius: 18px;
    border: 1px solid #2e2e3e;
    background: #1e1e2e;
    color: #cdd6f4;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

.filter-dropdown-menu .form-label {
    color: #a6adc8;
}

.filter-dropdown-menu .form-check-label {
    color: #cdd6f4;
    cursor: pointer;
}

.filter-dropdown-menu .form-check {
    padding-top: 4px;
    padding-bottom: 4px;
}

.filter-dropdown-menu .form-check-input {
    cursor: pointer;
}

.filter-dropdown-menu .form-check-input:checked {
    background-color: #6c63ff;
    border-color: #6c63ff;
}

.filter-dropdown-menu .form-select {
    background-color: #313244;
    border-color: #45475a;
    color: #cdd6f4;
}

.active-filter-chips {
    display: contents;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cdd6f4;
    background: #313244;
    border: 1px solid #45475a;
    transition: background 0.15s ease, color 0.15s ease;
}

.active-filter-chip:hover {
    color: #1e1e2e;
    background: #fab387;
    border-color: #fab387;
}

.filter-reset-btn {
    background: transparent;
    border: 1px solid #45475a;
    color: #a6adc8;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.filter-reset-btn:hover {
    background: #313244;
    color: #fff;
}

.game-card {
    --card-surface: #1e1e2e;
    --card-surface-raised: #313244;
    --card-border: #313244;
    --card-text: #cdd6f4;
    --card-text-muted: #a6adc8;
    --card-accent: #fab387;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    background-color: var(--card-surface);
    color: var(--card-text);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: #45475a;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.game-card:has(.dropdown-menu.show) {
    overflow: visible;
    z-index: 45;
}

.game-cover-area {
    position: relative;
    flex-shrink: 0;
}

.game-cover-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px 13px 0 0;
}

.game-cover-backdrop {
    position: absolute;
    inset: -12px;
    background-size: cover;
    background-position: center;
    filter: blur(14px) brightness(0.45);
    transform: scale(1.08);
}

.game-cover-img {
    position: relative;
    z-index: 1;
    height: 100%;
    max-height: 168px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.game-cover-empty {
    background: #313244;
    font-size: 2.5rem;
    color: #585b70;
}

.game-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 14px 14px 10px;
}

.game-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    padding-right: 34px;
    color: var(--card-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(2 * 1.3em);
    transition: color 0.25s ease;
}

.game-card:hover .card-title {
    color: var(--card-accent);
}

.game-card-meta {
    display: flex;
    gap: 6px;
    min-height: 1.2em;
    margin: 3px 0 10px;
    font-size: 0.8rem;
    color: var(--card-text-muted);
}

.game-card-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.game-card-chips .badge-platform,
.game-card-chips .badge-gold,
.game-card-chips .badge-steel {
    margin-top: 0;
    font-size: 0.7rem;
}

.game-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.3em 0.7em;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--card-surface-raised);
    overflow: hidden;
}

.game-chip.platinum-badge {
    color: #1e1e2e;
    background: linear-gradient(135deg, #f1f2f6 0%, #a4b0be 45%, #dfe4ea 55%, #ced6e0 100%);
}

.game-chip.platinum-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    transform: skewX(-20deg);
    animation: platinum-shine 2.6s ease-in-out infinite;
}

@keyframes platinum-shine {
    0% { left: -120%; }
    45% { left: 140%; }
    100% { left: 140%; }
}

.game-chip.not-yet-played-badge {
    color: #cba6f7;
    border: 1px solid rgba(203, 166, 247, 0.5);
}

.game-card-release-date {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--card-accent);
}

.score-ring {
    position: absolute;
    right: 12px;
    bottom: -18px;
    z-index: 6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--card-surface);
    border: 3px solid currentColor;
    overflow: hidden;
}

.score-ring.score-from-api {
    border-style: dashed;
}

.score-ring-low { color: #f38ba8; }
.score-ring-mid { color: #f9e2af; }
.score-ring-high { color: #a6e3a1; }

.score-ring-perfect {
    color: #89b4fa;
    box-shadow: 0 0 14px rgba(137, 180, 250, 0.6);
}

.score-ring-perfect::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
    animation: scoreShine 1.8s ease-in-out infinite;
    pointer-events: none;
}

.release-countdown-chip {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.3em 0.75em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e1e2e;
    background: #89b4fa;
}

.release-soon-7 .release-countdown-chip { background: #f9e2af; }
.release-soon-3 .release-countdown-chip { background: var(--card-accent); }
.release-today .release-countdown-chip { background: #a6e3a1; }

.game-card.release-soon-7 { border-color: rgba(249, 226, 175, 0.55); }
.game-card.release-soon-3 { border-color: var(--card-accent); }
.game-card.release-today { border-color: #a6e3a1; }

.release-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--card-surface-raised);
    margin: -4px 0 12px;
    overflow: hidden;
}

.release-progress-bar {
    height: 100%;
    border-radius: 2px;
    background: var(--card-accent);
}

.cover-shop-links {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 6;
    display: flex;
    gap: 6px;
}

.cover-shop-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    background: rgba(17, 17, 27, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.15s ease, color 0.15s ease;
}

.cover-shop-link:hover,
.cover-shop-link:focus-visible {
    color: #1e1e2e;
    background: #fab387;
    border-color: #fab387;
}

.game-cover-area:has(.release-countdown-chip) .cover-shop-links {
    bottom: 44px;
}

.bulk-selection-active .cover-shop-links {
    visibility: hidden;
}

.drag-grip {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    align-items: center;
    justify-content: center;
    color: var(--card-text);
    background: rgba(17, 17, 27, 0.7);
}

.upcoming-sortable .drag-grip {
    display: flex;
}

.game-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--card-border);
}

.card-icon-action {
    margin: 0;
}

.card-icon-button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--card-text-muted);
    background: var(--card-surface-raised);
    transition: background 0.15s ease, color 0.15s ease;
}

.card-icon-button:hover,
.card-icon-button:focus-visible {
    color: #1e1e2e;
    background: var(--card-accent);
}

.card-icon-button.card-icon-platinum.is-active {
    color: #1e1e2e;
    background: #ced6e0;
}

.card-icon-button.card-icon-not-yet-played.is-active {
    color: #1e1e2e;
    background: #cba6f7;
}

.game-card-actions .game-card-menu {
    margin-left: auto;
}

.game-cover-area .game-card-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 7;
}

.game-cover-area .game-card-menu > .card-icon-button {
    color: #fff;
    background: rgba(17, 17, 27, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.game-card .dropdown-menu {
    background-color: #11111b;
    border: 1px solid var(--card-border);
    color: white;
}

.game-card .dropdown-menu .dropdown-item {
    color: white;
}

.game-card .dropdown-menu .dropdown-item:hover,
.game-card .dropdown-menu .dropdown-item:focus {
    color: white;
    background-color: rgba(214, 114, 15, 0.92);
}

.upcoming-sortable .game-item {
    cursor: grab;
}

.upcoming-sortable .game-item:active,
.upcoming-sortable .sortable-chosen {
    cursor: grabbing;
}

.upcoming-sortable .sortable-ghost {
    opacity: 0.35;
}

.upcoming-sortable .sortable-drag .game-card {
    box-shadow: 0 12px 36px rgba(108, 99, 255, 0.55);
    transform: translateY(-4px);
}

.bulk-selection-active .game-item {
    position: relative;
    cursor: pointer;
}

.bulk-selection-active .game-card {
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.bulk-selection-active .game-item:hover .game-card {
    opacity: 0.85;
}

.bulk-selection-active .game-card-actions,
.bulk-selection-active .game-card-menu,
.bulk-selection-active .drag-grip {
    visibility: hidden;
}

.bulk-selection-active .bulk-selected .game-card {
    animation: none;
    opacity: 1;
    border-color: #fab387;
    box-shadow: 0 0 0 3px rgba(250, 179, 135, 0.35), 0 12px 28px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.bulk-selection-active .game-item::after {
    content: '';
    position: absolute;
    top: 10px;
    left: calc(var(--bs-gutter-x, 1.5rem) * 0.5 + 10px);
    z-index: 20;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(205, 214, 244, 0.7);
    background: rgba(17, 17, 27, 0.7);
    pointer-events: none;
}

.bulk-selection-active .bulk-selected::after {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e1e2e;
    border-color: #fab387;
    background: #fab387;
}

.game-item.is-removing {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bulk-action-bar {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 2rem);
    padding: 10px;
    background: rgba(17, 17, 27, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #313244;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    animation: bulk-bar-reveal 0.2s ease-out;
}

.bulk-action-bar[hidden] {
    display: none;
}

@keyframes bulk-bar-reveal {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.bulk-action-bar.is-busy {
    cursor: progress;
}

.bulk-action-header,
.bulk-action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bulk-action-buttons {
    flex-wrap: wrap;
}

.bulk-count {
    margin-right: auto;
    padding: 0 6px;
    font-size: 0.9rem;
    color: #a6adc8;
    white-space: nowrap;
}

.bulk-count strong {
    display: inline-block;
    min-width: 26px;
    padding: 1px 8px;
    border-radius: 999px;
    text-align: center;
    color: #1e1e2e;
    background: #fab387;
}

.bulk-bar-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    color: #cdd6f4;
    background: #313244;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.bulk-bar-button[hidden] {
    display: none;
}

.bulk-action-eligible {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    line-height: 1.5;
    text-align: center;
    color: #1e1e2e;
    background: #fab387;
}

.bulk-bar-button .bi {
    color: #fab387;
}

.bulk-bar-button:hover:not(:disabled),
.bulk-bar-button:focus-visible {
    color: #1e1e2e;
    background: #fab387;
}

.bulk-bar-button:hover:not(:disabled) .bi,
.bulk-bar-button:focus-visible .bi,
.bulk-select-all.is-active .bi {
    color: #1e1e2e;
}

.bulk-bar-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bulk-select-all.is-active {
    color: #1e1e2e;
    background: #fab387;
}

.bulk-cancel {
    width: 36px;
    padding: 0;
    justify-content: center;
}

.bulk-cancel .bi {
    color: #a6adc8;
}

.bulk-action-danger .bi {
    color: #f38ba8;
}

.bulk-action-danger:hover:not(:disabled),
.bulk-action-danger:focus-visible {
    color: #fff;
    background: #e64553;
}

.bulk-action-danger:hover:not(:disabled) .bi,
.bulk-action-danger:focus-visible .bi {
    color: #fff;
}

.bulk-action-feedback:empty {
    display: block;
    height: 0;
    padding: 0;
    margin-top: -8px;
}

.bulk-selection-active .game-item:focus-visible {
    outline: none;
}

.bulk-selection-active .game-item:focus-visible .game-card {
    opacity: 1;
    outline: 2px solid #fab387;
    outline-offset: 3px;
}

.bulk-action-feedback {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #f9e2af;
    background: rgba(249, 226, 175, 0.1);
}

.bulk-action-feedback.is-error {
    color: #f38ba8;
    background: rgba(243, 139, 168, 0.12);
}

@media (max-width: 767.98px) {
    .bulk-action-bar {
        width: calc(100% - 1.5rem);
    }

    .bulk-action-buttons {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .bulk-action-btn {
        flex: 1;
        justify-content: center;
        padding: 0;
    }

    .bulk-action-btn span:not(.bulk-action-eligible),
    .bulk-select-all span {
        display: none;
    }

    .bulk-select-all {
        width: 36px;
        padding: 0;
        justify-content: center;
    }
}

.game-card.is-steelbook {
    --steel-frame: linear-gradient(135deg, #f4f7fa 0%, #8c96a1 22%, #e3e8ed 40%, #59616b 58%, #c9d0d7 76%, #7a838d 100%);
    isolation: isolate;
}

.game-card.is-steelbook:not(.is-expensive, .release-soon-3, .release-soon-7, .release-today) {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--card-surface), var(--card-surface)) padding-box,
        var(--steel-frame) border-box;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 18px rgba(201, 208, 215, 0.12);
}

.game-card.is-steelbook:not(.is-expensive, .release-soon-3, .release-soon-7, .release-today):hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 26px rgba(201, 208, 215, 0.25);
}

.game-card.is-steelbook .game-card-body {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
        linear-gradient(160deg, #343a42 0%, #1f2329 45%, #2c3138 70%, #1b1e23 100%);
}

.game-card.is-steelbook .card-title {
    color: transparent;
    background: linear-gradient(180deg, #ffffff 0%, #c9d0d7 45%, #8c96a1 55%, #e3e8ed 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.game-card.is-steelbook:hover .card-title {
    color: transparent;
}

.game-card.is-steelbook .game-card-meta {
    color: #b5bdc6;
}

.game-card.is-steelbook .game-card-actions {
    border-top-color: rgba(201, 208, 215, 0.25);
}

.game-card.is-steelbook::after {
    content: '';
    position: absolute;
    inset: -40% -60%;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 52%, transparent 58%);
    transform: translateX(-60%);
    will-change: transform;
    animation: steelbook-sheen 7s ease-in-out infinite;
}

.game-card.is-steelbook:has(.dropdown-menu.show)::after {
    display: none;
}

.game-card.is-steelbook:hover::after {
    animation: steelbook-sheen-hover 1.1s ease-out;
}

@keyframes steelbook-sheen {
    0%, 70% { transform: translateX(-60%); }
    100% { transform: translateX(60%); }
}

@keyframes steelbook-sheen-hover {
    from { transform: translateX(-60%); }
    to { transform: translateX(60%); }
}

.bulk-selection-active .bulk-selected .game-card.is-steelbook {
    border: 2px solid #fab387;
    background: var(--card-surface);
    box-shadow: 0 0 0 3px rgba(250, 179, 135, 0.35), 0 12px 28px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce) {
    .game-card.is-steelbook::after,
    .game-card.is-steelbook:hover::after {
        animation: none;
        opacity: 0;
    }
}

@media (forced-colors: active) {
    .game-card.is-steelbook .card-title {
        color: CanvasText;
        background: none;
    }
}

.shrink-wrap {
    display: none;
}

.game-card.is-sealed .shrink-wrap {
    --glare-x: 28%;
    --glare-y: 18%;
    --glare-strength: 0.32;
    position: absolute;
    inset: 0;
    z-index: 9;
    display: block;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255, 255, 255, var(--glare-strength)), transparent 38%),
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.24), transparent 18%),
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.14), transparent 14%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.18), transparent 20%),
        linear-gradient(115deg, transparent 16%, rgba(255, 255, 255, 0.16) 27%, rgba(255, 255, 255, 0.04) 33%, transparent 37%, transparent 58%, rgba(255, 255, 255, 0.12) 69%, transparent 78%),
        repeating-linear-gradient(72deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 9px),
        repeating-linear-gradient(-18deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 13px),
        linear-gradient(rgba(205, 225, 255, 0.07), rgba(205, 225, 255, 0.07));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.42),
        inset 0 0 0 3px rgba(255, 255, 255, 0.06),
        inset 0 0 26px rgba(255, 255, 255, 0.12);
    transition: --glare-strength 0.3s ease;
}

.game-card.is-sealed .shrink-wrap::before {
    content: '';
    position: absolute;
    inset: 5px 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0 2px, transparent 2px 5px) top / 100% 3px no-repeat,
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0 2px, transparent 2px 5px) bottom / 100% 3px no-repeat;
    opacity: 0.75;
}

.game-card.is-sealed .shrink-wrap::after {
    content: '';
    position: absolute;
    inset: -30% -70%;
    background: linear-gradient(105deg, transparent 41%, rgba(255, 255, 255, 0.32) 47%, rgba(190, 220, 255, 0.24) 50%, rgba(255, 220, 248, 0.16) 53%, transparent 59%);
    transform: translateX(-55%);
    will-change: transform;
    animation: shrink-wrap-sheen 6s ease-in-out infinite;
}

.game-card.is-sealed:has(.dropdown-menu.show) .shrink-wrap {
    display: none;
}

@media (forced-colors: active) {
    .game-card.is-sealed .shrink-wrap {
        display: none;
    }
}

.game-card.is-sealed:hover .shrink-wrap {
    --glare-strength: 0.55;
}

@property --glare-strength {
    syntax: '<number>';
    inherits: true;
    initial-value: 0.32;
}

@keyframes shrink-wrap-sheen {
    0%, 65% { transform: translateX(-55%); }
    100% { transform: translateX(55%); }
}

.game-chip.sealed-badge {
    color: #1e1e2e;
    background: linear-gradient(135deg, #e0f2ff 0%, #b4d4f5 50%, #f5e0f7 100%);
}

.card-icon-button.card-icon-sealed.is-active {
    color: #1e1e2e;
    background: linear-gradient(135deg, #e0f2ff, #b4d4f5);
}

@media (prefers-reduced-motion: reduce) {
    .game-card.is-sealed .shrink-wrap::after {
        animation: none;
        opacity: 0;
    }
}

.game-card.is-expensive {
    border: 2px solid #d4af37;
    animation: expensive-glow 2.4s ease-in-out infinite;
}

@keyframes expensive-glow {
    0%, 100% {
        box-shadow: 0 0 6px 0 rgba(212, 175, 55, 0.35), 0 4px 12px rgba(0, 0, 0, 0.12);
    }
    50% {
        box-shadow: 0 0 22px 3px rgba(212, 175, 55, 0.7), 0 4px 12px rgba(0, 0, 0, 0.18);
    }
}

.game-card.is-expensive:hover {
    animation: none;
    box-shadow: 0 0 26px 4px rgba(212, 175, 55, 0.85), 0 10px 30px rgba(0, 0, 0, 0.25);
}

.money-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 4;
}

.money-bill {
    position: absolute;
    bottom: -12%;
    color: #e6c34a;
    opacity: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    animation-name: money-float;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes money-float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    12% { opacity: 0.95; }
    88% { opacity: 0.95; }
    100% { transform: translateY(-230px) rotate(340deg); opacity: 0; }
}

.money-bill-1 { left: 8%;  font-size: 1rem;    animation-duration: 3.4s; animation-delay: 0s; }
.money-bill-2 { left: 22%; font-size: 1.5rem;  animation-duration: 2.8s; animation-delay: 0.6s; }
.money-bill-3 { left: 37%; font-size: 1.1rem;  animation-duration: 3.8s; animation-delay: 1.2s; }
.money-bill-4 { left: 50%; font-size: 1.7rem;  animation-duration: 3.1s; animation-delay: 0.3s; }
.money-bill-5 { left: 64%; font-size: 1.05rem; animation-duration: 3.6s; animation-delay: 1.6s; }
.money-bill-6 { left: 78%; font-size: 1.4rem;  animation-duration: 2.9s; animation-delay: 0.9s; }
.money-bill-7 { left: 90%; font-size: 1.15rem; animation-duration: 3.9s; animation-delay: 2s; }

:root {
    --sticky-offset: 0px;
}

body:has(.alphabet-nav) {
    --sticky-offset: 54px;
}

.alphabet-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    gap: 4px;
    height: 46px;
    align-items: center;
    margin: 0 0 1.5rem;
    padding: 0 8px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(17, 17, 27, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #313244;
    border-radius: 12px;
}

.alphabet-nav::-webkit-scrollbar {
    display: none;
}

.alphabet-nav-letter {
    flex: 0 0 auto;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #cdd6f4;
    background: #313244;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.alphabet-nav-letter:hover {
    color: #fff;
    background: #45475a;
}

.alphabet-nav-letter.is-active {
    color: #1e1e2e;
    background: #fab387;
}

.alphabet-nav-letter.is-empty {
    color: #585b70;
    background: transparent;
    pointer-events: none;
}

.letter-group,
.game-section {
    scroll-margin-top: calc(var(--sticky-offset) + 8px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2.5rem 0 1rem;
    padding: 10px 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #cdd6f4;
    background: rgba(17, 17, 27, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #313244;
    border-radius: 12px;
}

.letter-group > .section-header,
.game-section > .section-header {
    position: sticky;
    top: var(--sticky-offset);
    z-index: 35;
}

.section-header-icon {
    color: #fab387;
    font-size: 1.2rem;
}

.section-header-letter .section-header-title {
    color: #fab387;
    font-size: 1.3rem;
}

.section-header-count {
    margin-left: auto;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #cdd6f4;
    background: #313244;
}

.view-shelf .row.g-4 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

.view-shelf .row > .game-item {
    flex: 0 0 auto;
    width: 33.3333%;
}

@media (min-width: 576px) {
    .view-shelf .row > .game-item { width: 20%; }
}

@media (min-width: 768px) {
    .view-shelf .row > .game-item { width: 16.6666%; }
}

@media (min-width: 992px) {
    .view-shelf .row > .game-item { width: 12.5%; }
}

.view-shelf .game-card {
    border-radius: 10px;
}

.view-shelf .game-cover-wrap {
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 9px;
}

.view-shelf .game-cover-backdrop {
    display: none;
}

.view-shelf .game-cover-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.view-shelf .game-cover-empty {
    font-size: 1.6rem;
}

.view-shelf .score-ring,
.view-shelf .release-countdown-chip,
.view-shelf .drag-grip,
.view-shelf .cover-shop-links,
.view-shelf .game-card-menu,
.view-shelf .money-rain {
    display: none;
}

.view-shelf .game-card-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 7;
    padding: 24px 8px 8px;
    background: linear-gradient(180deg, transparent, rgba(17, 17, 27, 0.95) 45%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.view-shelf .game-card:hover .game-card-body,
.view-shelf .game-item:focus-visible .game-card-body {
    opacity: 1;
}

.view-shelf .game-card-body > :not(.card-title) {
    display: none;
}

.view-shelf .game-card .card-title {
    min-height: 0;
    padding-right: 0;
    font-size: 0.75rem;
    -webkit-line-clamp: 3;
}

.view-shelf .game-item[data-platinum="1"] .game-cover-area::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 6;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f2f6, #a4b0be 50%, #dfe4ea);
    box-shadow: 0 0 6px rgba(180, 210, 255, 0.8);
}

@media (hover: none) {
    .view-shelf .game-card-body {
        opacity: 1;
    }
}

.game-case {
    display: contents;
}

.collection-stats {
    margin: 0 0 1.5rem;
    padding: 14px;
    border-radius: 16px;
    background: #1e1e2e;
    border: 1px solid #313244;
}

.collection-stats-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.collection-stats-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-radius: 12px;
    background: #11111b;
    border: 1px solid #313244;
}

.collection-stats-tile dt {
    order: 2;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a6adc8;
}

.collection-stats-tile dd {
    order: 1;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.collection-stats-value-games { color: #fab387; }
.collection-stats-value-platinum { color: #e3e8ed; }
.collection-stats-value-sealed { color: #b4d4f5; }
.collection-stats-value-steelbooks { color: #c9d0d7; }

.collection-stats-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.collection-stats-platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    border: 1px solid #313244;
    border-radius: 999px;
    background: #11111b;
    color: #cdd6f4;
    font-size: 0.8rem;
    font-weight: 700;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.collection-stats-platform .badge-platform {
    margin: 0;
    font-size: 0.65rem;
}

.collection-stats-platform:focus-visible {
    outline: 2px solid #fab387;
    outline-offset: 2px;
}

.collection-stats-platform:hover,
.collection-stats-platform.is-active {
    border-color: #fab387;
    background: rgba(250, 179, 135, 0.1);
}

@media (max-width: 575.98px) {
    .collection-stats-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

html:not(.view-shelf) .archive-cases .game-case {
    position: relative;
    z-index: 1;
    display: block;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55);
}

html:not(.view-shelf) .archive-cases .game-case .game-cover-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

html:not(.view-shelf) .archive-cases .game-case::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.18) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.08) 100%);
}

html:not(.view-shelf) .archive-cases .game-case-jewel-case {
    width: 150px;
    height: 132px;
    padding: 2px 2px 2px 14px;
    border-radius: 3px;
    background:
        repeating-linear-gradient(90deg, rgba(220, 225, 235, 0.95) 0 2px, rgba(140, 146, 160, 0.95) 2px 4px) left / 14px 100% no-repeat,
        rgba(220, 225, 235, 0.4);
}

html:not(.view-shelf) .archive-cases .game-case-dvd-case,
html:not(.view-shelf) .archive-cases .game-case-ps3-case,
html:not(.view-shelf) .archive-cases .game-case-ps4-case,
html:not(.view-shelf) .archive-cases .game-case-ps5-case,
html:not(.view-shelf) .archive-cases .game-case-gamecube-case,
html:not(.view-shelf) .archive-cases .game-case-wii-case {
    width: 116px;
    height: 160px;
    padding: 18px 4px 4px;
    border-radius: 4px;
}

html:not(.view-shelf) .archive-cases .game-case-dvd-case::before,
html:not(.view-shelf) .archive-cases .game-case-ps3-case::before,
html:not(.view-shelf) .archive-cases .game-case-ps4-case::before,
html:not(.view-shelf) .archive-cases .game-case-ps5-case::before,
html:not(.view-shelf) .archive-cases .game-case-gamecube-case::before,
html:not(.view-shelf) .archive-cases .game-case-wii-case::before {
    content: attr(data-case-label);
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 12px;
    text-align: center;
    color: #ffffff;
}

html:not(.view-shelf) .archive-cases .game-case-dvd-case {
    background: #0b0b0d;
}

html:not(.view-shelf) .archive-cases .game-case-ps3-case {
    background: linear-gradient(#000000 0 18px, #1c1c20 18px);
}

html:not(.view-shelf) .archive-cases .game-case-ps4-case {
    background: linear-gradient(#0a3f9c 0 18px, #1d56c4 18px);
}

html:not(.view-shelf) .archive-cases .game-case-ps5-case {
    background: linear-gradient(#f4f4f6 0 18px, #0e1f4d 18px);
}

html:not(.view-shelf) .archive-cases .game-case-ps5-case::before {
    color: #0e1f4d;
}

html:not(.view-shelf) .archive-cases .game-case-gamecube-case {
    width: 104px;
    height: 144px;
    background: #232327;
}

html:not(.view-shelf) .archive-cases .game-case-gamecube-case::before {
    color: #b7a8ff;
}

html:not(.view-shelf) .archive-cases .game-case-wii-case {
    background: linear-gradient(#e4e7ec 0 18px, #fbfbfc 18px);
}

html:not(.view-shelf) .archive-cases .game-case-wii-case::before {
    color: #0097cf;
}

html:not(.view-shelf) .archive-cases .game-case-n64-cartridge {
    width: 150px;
    height: 112px;
    padding: 20px 14px 12px;
    border-radius: 8px 8px 18px 18px;
    background:
        repeating-linear-gradient(90deg, #55555d 0 3px, #6f6f78 3px 6px) top / 100% 14px no-repeat,
        #696972;
}

html:not(.view-shelf) .archive-cases .game-case-gameboy-cartridge {
    width: 96px;
    height: 108px;
    padding: 8px 8px 34px;
    border-radius: 4px 4px 18px 4px;
    background:
        repeating-linear-gradient(90deg, #7f7f89 0 3px, #9a9aa4 3px 6px) bottom / 100% 16px no-repeat,
        #8f8f99;
}

html:not(.view-shelf) .archive-cases .game-case-gba-cartridge {
    width: 116px;
    height: 80px;
    padding: 8px 10px 18px;
    border-radius: 8px 8px 4px 4px;
    background: #3e3e47;
}

html:not(.view-shelf) .archive-cases .game-case-ds-card {
    width: 88px;
    height: 98px;
    padding: 8px 8px 24px;
    border-radius: 4px 4px 12px 4px;
    background: #2c2c33;
}

html:not(.view-shelf) .archive-cases .game-case-n64-cartridge .game-cover-img,
html:not(.view-shelf) .archive-cases .game-case-gameboy-cartridge .game-cover-img,
html:not(.view-shelf) .archive-cases .game-case-gba-cartridge .game-cover-img,
html:not(.view-shelf) .archive-cases .game-case-ds-card .game-cover-img {
    border-radius: 3px;
}
