:root {
    --gb-page-bg: #0f1419;
    --gb-surface: #1a2332;
    --gb-nav-bg: #121820;
    --gb-border: rgba(255, 255, 255, 0.08);
    --gb-text: #e7ecf3;
    --gb-text-muted: #9aa8b8;
    --gb-accent: #6c8cff;
    --gb-accent-hover: #5a7af0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--gb-page-bg);
    color: var(--gb-text);
}

a, .btn-link {
    color: var(--gb-accent);
}

.btn-primary {
    color: #fff;
    background-color: var(--gb-accent);
    border-color: var(--gb-accent-hover);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--gb-accent-hover);
    border-color: var(--gb-accent-hover);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--gb-text);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.text-muted {
    color: var(--gb-text-muted) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gb-text);
}

/* ---- Global dark theme ---- */
.form-control,
.form-select {
    background-color: var(--gb-page-bg);
    border-color: var(--gb-border);
    color: var(--gb-text);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--gb-page-bg);
    border-color: rgba(108, 140, 255, 0.45);
    color: var(--gb-text);
}

.form-control::placeholder {
    color: var(--gb-text-muted);
}

.form-control:disabled,
.form-select:disabled {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--gb-text-muted);
}

.form-check-input {
    background-color: var(--gb-page-bg);
    border-color: var(--gb-border);
}

.form-check-input:checked {
    background-color: var(--gb-accent);
    border-color: var(--gb-accent);
}

.form-text {
    color: var(--gb-text-muted);
}

.form-label {
    color: var(--gb-text-muted);
}

.form-floating > .form-control,
.form-floating > .form-select {
    background-color: var(--gb-page-bg);
    border-color: var(--gb-border);
    color: var(--gb-text);
}

.form-floating > label {
    color: var(--gb-text-muted);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--gb-text-muted);
}

.card {
    background: var(--gb-surface);
    border-color: var(--gb-border);
    color: var(--gb-text);
}

.card-header,
.card-footer {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--gb-border);
    color: var(--gb-text);
}

.table {
    --bs-table-color: var(--gb-text);
    --bs-table-border-color: var(--gb-border);
}

.table-secondary {
    --bs-table-bg: rgba(255, 255, 255, 0.04);
    --bs-table-color: var(--gb-text-muted);
}

.btn-outline-primary {
    border-color: rgba(108, 140, 255, 0.55);
    color: #b8c9ff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(108, 140, 255, 0.18);
    border-color: var(--gb-accent);
    color: #fff;
}

.btn-outline-secondary {
    border-color: var(--gb-border);
    color: var(--gb-text-muted);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--gb-text);
}

.btn-success {
    background-color: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
}

.btn-success:hover,
.btn-success:focus {
    background-color: rgba(52, 211, 153, 0.3);
    border-color: rgba(52, 211, 153, 0.5);
    color: #a7f3d0;
}

.btn-danger {
    background-color: rgba(248, 113, 113, 0.18);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: rgba(248, 113, 113, 0.28);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.alert-success {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.25);
    color: #86efac;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fcd34d;
}

.alert-danger {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.25);
    color: #fca5a5;
}

.alert-info {
    background: rgba(108, 140, 255, 0.12);
    border-color: rgba(108, 140, 255, 0.25);
    color: #b8c9ff;
}

.alert .alert-link {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.alert-success .alert-link {
    color: #a7f3d0;
}

.alert-info .alert-link {
    color: #d4dcff;
}

.alert-warning .alert-link {
    color: #fde68a;
}

hr {
    border-color: var(--gb-border);
    opacity: 1;
}

.text-danger {
    color: #fca5a5 !important;
}

.validation-summary-errors ul {
    margin-bottom: 0;
}

.app-panel,
.auth-card {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.app-panel-danger {
    border-color: rgba(248, 113, 113, 0.35);
}

.auth-page {
    max-width: 32rem;
    margin: 0 auto;
}

.auth-page-wide {
    max-width: 56rem;
}

.auth-signin-card {
    padding: 2rem 2rem 1.75rem;
    max-width: 28rem;
    margin: 0 auto;
}

.auth-signin-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-signin-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gb-accent);
    margin-bottom: 0.75rem;
}

.auth-signin-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--gb-text);
}

.auth-signin-lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gb-text-muted);
}

.auth-signin-form .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gb-text-muted);
    margin-bottom: 0.35rem;
}

.auth-signin-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.auth-signin-submit {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-signin-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1.25rem;
    color: var(--gb-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-signin-divider::before,
.auth-signin-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gb-border);
}

.auth-external-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.auth-external-btn {
    width: 100%;
    font-weight: 600;
}

.auth-signin-footer {
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gb-border);
    text-align: center;
    font-size: 0.925rem;
    color: var(--gb-text-muted);
}

.auth-signin-footer a {
    font-weight: 600;
    text-decoration: none;
}

.auth-signin-secondary-link {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.85rem;
}

.auth-inline-link {
    color: var(--gb-accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-inline-link:hover {
    color: var(--gb-text);
    text-decoration: underline;
}

@media (min-width: 576px) {
    .auth-signin-card {
        padding: 2.25rem 2.5rem 2rem;
    }
}

/* ---- Toasts ---- */
.gb-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: min(24rem, calc(100vw - 2rem));
    pointer-events: none;
}

.gb-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gb-border);
    background: var(--gb-surface);
    color: var(--gb-text);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    animation: gb-toast-in 0.2s ease-out;
}

.gb-toast-success { border-color: rgba(52, 211, 153, 0.35); }
.gb-toast-info { border-color: rgba(108, 140, 255, 0.35); }
.gb-toast-warning { border-color: rgba(251, 191, 36, 0.35); }
.gb-toast-error { border-color: rgba(248, 113, 113, 0.35); }

.gb-toast-text {
    flex: 1;
    font-size: 0.925rem;
    line-height: 1.4;
}

.gb-toast-dismiss {
    border: 0;
    background: transparent;
    color: var(--gb-text-muted);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.gb-toast-dismiss:hover {
    color: var(--gb-text);
}

@keyframes gb-toast-in {
    from { opacity: 0; transform: translateY(-0.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Confirm dialog ---- */
.gb-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gb-confirm-dialog {
    width: 100%;
    max-width: 28rem;
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.45);
}

.gb-confirm-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.gb-confirm-message {
    margin-bottom: 1.25rem;
}

.gb-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ---- Profile skeleton ---- */
.profile-skeleton-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.profile-skeleton-body {
    flex: 1;
    padding-top: 0.5rem;
}

.profile-skeleton-stat {
    min-height: 4.5rem;
}

.profile-skeleton-stat-label {
    width: 60%;
    height: 10px;
}

.profile-skeleton-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-skeleton-tab {
    width: 5.5rem;
    height: 2.25rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1100;
    padding: 0.75rem 1rem;
    background: var(--gb-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
    left: 0;
}

.list-detail-header {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    border-radius: 0.75rem;
}

.list-create-form {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    border-radius: 0.75rem;
    padding: 1rem;
}

.discover-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.discover-nav-link {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--gb-border);
    color: var(--gb-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.discover-nav-link:hover {
    border-color: rgba(108, 140, 255, 0.45);
    color: var(--gb-text);
    background: rgba(108, 140, 255, 0.08);
}

.game-detail-skeleton {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
}

.game-detail-skeleton-cover {
    width: 220px;
    height: 310px;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.game-detail-skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

@media (max-width: 768px) {
    .game-detail-skeleton {
        grid-template-columns: 1fr;
    }

    .game-detail-skeleton-cover {
        width: 100%;
        max-width: 220px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--gb-page-bg), 0 0 0 0.25rem var(--gb-accent);
}

/* Dark-themed form controls in toolbars */
.catalogue-toolbar-control,
.catalogue-toolbar .form-control.catalogue-toolbar-control,
.catalogue-toolbar .form-select.catalogue-toolbar-control,
.catalogue-toolbar .btn.catalogue-toolbar-clear,
.collection-edit-form .form-control,
.collection-edit-form .form-select {
    background: var(--gb-page-bg);
    border: 1px solid var(--gb-border);
    color: var(--gb-text);
    border-radius: 999px;
    height: 3rem;
    min-height: 3rem;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
}

.catalogue-toolbar .form-select.catalogue-toolbar-control {
    padding-right: 2.5rem;
}

.catalogue-toolbar .btn.catalogue-toolbar-clear {
    color: var(--gb-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.catalogue-toolbar .btn.catalogue-toolbar-clear:hover,
.catalogue-toolbar .btn.catalogue-toolbar-clear:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--gb-text);
}

.catalogue-toolbar .btn-primary.catalogue-toolbar-control {
    background-color: var(--gb-accent);
    border-color: var(--gb-accent-hover);
    color: #fff;
}

.catalogue-toolbar .btn-primary.catalogue-toolbar-control:hover,
.catalogue-toolbar .btn-primary.catalogue-toolbar-control:focus {
    background-color: var(--gb-accent-hover);
    border-color: var(--gb-accent-hover);
    color: #fff;
}

.catalogue-toolbar .form-control.catalogue-toolbar-control::placeholder {
    color: var(--gb-text-muted);
}

.catalogue-toolbar .form-label,
.collection-edit-form .form-label {
    color: var(--gb-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.catalogue-toolbar-action-label {
    visibility: hidden;
    user-select: none;
}

.catalogue-toolbar-hint {
    margin-top: 0.75rem;
    margin-bottom: 0;
    color: var(--gb-text-muted);
}

/* Themed cards */
.game-card,
.collection-card {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border) !important;
    color: var(--gb-text);
}

.game-card .card-title,
.collection-card h5 {
    color: var(--gb-text);
}

.game-card:hover,
.collection-card:hover {
    border-color: rgba(108, 140, 255, 0.35) !important;
}

.platform-badge {
    background: rgba(108, 140, 255, 0.15) !important;
    color: #b8c9ff !important;
    border: 1px solid rgba(108, 140, 255, 0.25);
    font-weight: 500;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.status-want {
    background: rgba(154, 168, 184, 0.2);
    color: #c5d0dc;
}

.status-playing {
    background: rgba(108, 140, 255, 0.22);
    color: #b8c9ff;
}

.status-completed {
    background: rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
}

.status-dropped {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}

.status-backlog {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

.metacritic-badge {
    background: rgba(74, 222, 128, 0.2);
    color: #86efac;
    font-weight: 600;
}

.genre-badge {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.search-loading {
    display: flex;
    align-items: center;
}

.catalogue-section {
    scroll-margin-top: 1rem;
}

.catalogue-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.game-card-skeleton {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--surface-elevated, rgba(255, 255, 255, 0.03));
}

.game-card-skeleton-cover {
    height: 220px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.game-card-skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.game-card-skeleton-line-title { width: 80%; height: 16px; }
.game-card-skeleton-line-short { width: 45%; }
.game-card-skeleton-line-btn { width: 60%; height: 32px; margin-top: 0.5rem; }

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Favourite toggle */
.favourite-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--gb-border);
    background: transparent;
    color: var(--gb-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.favourite-btn:hover:not(:disabled) {
    border-color: rgba(251, 191, 36, 0.5);
    color: #fcd34d;
}

.favourite-btn.is-favourite {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fbbf24;
}

.favourite-btn .favourite-icon {
    font-size: 1rem;
    line-height: 1;
}

.favourite-label {
    display: none;
}

@media (min-width: 576px) {
    .favourite-label {
        display: inline;
    }
}

/* Pagination */
.pagination .page-link {
    background: var(--gb-surface);
    border-color: var(--gb-border);
    color: var(--gb-text);
}

.pagination .page-link:hover {
    background: rgba(108, 140, 255, 0.12);
    border-color: rgba(108, 140, 255, 0.35);
    color: var(--gb-text);
}

.pagination .page-item.active .page-link {
    background: var(--gb-accent);
    border-color: var(--gb-accent);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    background: var(--gb-page-bg);
    border-color: var(--gb-border);
    color: var(--gb-text-muted);
}

.page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gb-text-muted);
    text-decoration: none;
    font-size: 0.925rem;
    margin-bottom: 1rem;
    transition: color 0.15s;
}

.page-header-back {
    display: block;
    margin-bottom: 0.75rem;
}

.page-back-link:hover {
    color: var(--gb-accent);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ---- Home page (Phase 5) ---- */

.hero-section {
    background: linear-gradient(135deg, #1a2332 0%, #121820 50%, #0f1419 100%);
    border: 1px solid var(--gb-border);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 50%;
    height: 140%;
    background: radial-gradient(circle, rgba(108, 140, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 640px;
}

.hero-eyebrow {
    color: var(--gb-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-lead {
    color: var(--gb-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.feature-card {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
    border-color: rgba(108, 140, 255, 0.35);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gb-text-muted);
    font-size: 0.925rem;
    margin-bottom: 0;
}

.cta-section {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
}

/* ---- Game catalogue (Phase 3) ---- */

.catalogue-header {
    margin-bottom: 1.5rem;
}

.catalogue-header h1 {
    margin-bottom: 0.25rem;
}

.collection-toast {
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.catalogue-toolbar {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.game-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.35) !important;
}

.game-card-cover-link {
    display: block;
    text-decoration: none;
}

.game-card-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.game-card-placeholder {
    background: linear-gradient(135deg, var(--gb-accent) 0%, #4a5fc9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.game-card-title-link {
    color: inherit;
    text-decoration: none;
}

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

.game-card-platforms {
    min-height: 1.5rem;
}

.catalogue-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--gb-surface);
    border: 2px dashed var(--gb-border);
    border-radius: 0.75rem;
}

.catalogue-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

/* Game details page */

.game-detail-hero {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.game-detail-cover {
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.game-detail-cover-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--gb-accent) 0%, #4a5fc9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
}

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

    .game-detail-cover,
    .game-detail-cover-placeholder {
        max-width: 220px;
        margin: 0 auto;
    }
}

/* Public average rating */

.game-average-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.game-average-rating-compact {
    margin-bottom: 0.35rem;
}

.game-average-rating-value {
    font-weight: 600;
    color: var(--gb-text);
}

.game-average-rating-count {
    font-size: 0.85rem;
}

.game-average-rating-hero {
    flex-shrink: 0;
}

.game-detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.25rem;
    margin-bottom: 0.75rem;
}

.game-detail-title {
    margin-bottom: 0;
}

.game-detail-no-rating {
    font-size: 0.9rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--gb-border);
    background: rgba(255, 255, 255, 0.03);
}

/* Game reviews */

.game-reviews-section {
    border-top: 1px solid var(--gb-border);
    padding-top: 2rem;
}

.game-reviews-title {
    margin-bottom: 0.25rem;
}

.game-review-compose,
.game-review-card {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
}

.game-review-body {
    white-space: pre-wrap;
    line-height: 1.6;
}

.review-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
}

.review-comment-item {
    padding: 0.75rem 0;
    border-top: 1px solid var(--gb-border);
}

.review-comment-item:first-child {
    border-top: none;
    padding-top: 0;
}

.review-comment-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.review-comment-author {
    font-weight: 600;
    color: var(--gb-text);
    text-decoration: none;
}

.review-comment-author:hover {
    color: var(--gb-accent);
}

.review-comment-body {
    white-space: pre-wrap;
    margin-bottom: 0.5rem;
}

.review-upvote-btn {
    border: 1px solid var(--gb-border);
    background: transparent;
    color: var(--gb-text-muted);
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.review-upvote-btn:hover:not(:disabled) {
    border-color: var(--gb-accent);
    color: var(--gb-accent);
}

.review-upvote-btn.is-upvoted {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--gb-accent);
    color: var(--gb-accent);
}

.review-upvote-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---- My Collection (Phase 4) ---- */

.collection-stats .collection-stat-card {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.collection-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gb-accent);
    line-height: 1.2;
}

.collection-stat-label {
    font-size: 0.85rem;
    color: var(--gb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.collection-card {
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.collection-card-layout {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    padding: 1rem;
}

.collection-card-cover img,
.collection-card-cover-placeholder {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}

.collection-card-cover-placeholder {
    background: linear-gradient(135deg, var(--gb-accent) 0%, #4a5fc9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
}

/* 5-star rating (SVG with half-star support) */
.star-rating-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.star-rating-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gb-text-muted);
}

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.star-rating-interactive .star-unit:hover .star-bg {
    fill: #64748b;
}

.star-rating-interactive .star-unit:hover .star-fg {
    fill: #fde68a;
}

.star-unit {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.star-unit-sm { width: 1.25rem; height: 1.25rem; }
.star-unit-md { width: 1.65rem; height: 1.65rem; }
.star-unit-lg { width: 2rem; height: 2rem; }

.star-svg {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.star-bg {
    fill: #334155;
}

.star-fg {
    fill: #fbbf24;
}

.star-fg-full {
    filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.45));
}

.star-fg-half {
    filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.45));
}

.star-half-divider {
    stroke: rgba(15, 20, 25, 0.55);
    stroke-width: 0.6;
    pointer-events: none;
}

.star-hit {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.star-hit-left { left: 0; }
.star-hit-right { right: 0; }

.star-hit:disabled {
    cursor: not-allowed;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fcd34d;
    font-size: 0.85rem;
    font-weight: 600;
}

.rating-badge-half {
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.15);
}

.rating-badge-star {
    color: #fbbf24;
    font-size: 0.95rem;
    line-height: 1;
}

.rating-badge-half-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.25);
    border-radius: 3px;
    padding: 0 0.2rem;
    line-height: 1.2;
}

.star-rating-hint {
    font-size: 0.8rem;
    color: var(--gb-text-muted);
}

.star-clear-btn {
    font-size: 0.8rem;
    padding: 0;
    text-decoration: none;
}

.star-clear-btn:hover {
    text-decoration: underline;
}

.collection-rating-picker {
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--gb-border);
    border-radius: 0.5rem;
}

.collection-notes-preview {
    font-style: italic;
    border-left: 3px solid rgba(108, 140, 255, 0.45);
    padding-left: 0.75rem;
    color: var(--gb-text-muted);
}

@media (max-width: 576px) {
    .collection-card-layout {
        grid-template-columns: 1fr;
    }

    .collection-card-cover {
        max-width: 110px;
    }
}

/* ---- User profiles ---- */

.profile-hero,
.profile-edit-card {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border) !important;
    color: var(--gb-text);
}

.profile-hero-layout {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(108, 140, 255, 0.35);
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gb-accent) 0%, #4a5fc9 100%);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.profile-bio {
    color: var(--gb-text-muted);
    margin-top: 1rem;
}

.profile-edit-card .form-control,
.profile-edit-card .form-select {
    background: var(--gb-page-bg);
    border-color: var(--gb-border);
    color: var(--gb-text);
}

@media (max-width: 576px) {
    .profile-hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-avatar-wrap {
        display: flex;
        justify-content: center;
    }
}

/* ---- Admin area ---- */

.admin-stat-card {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    height: 100%;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gb-accent);
    line-height: 1.1;
}

.admin-stat-label {
    color: var(--gb-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.35rem;
}

.admin-quick-link {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border) !important;
    color: var(--gb-text);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.admin-quick-link:hover {
    border-color: rgba(108, 140, 255, 0.4) !important;
    transform: translateY(-2px);
    color: var(--gb-text);
}

.admin-quick-link h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.admin-table-wrap {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.admin-table-wrap .table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-color: var(--gb-text);
    --bs-table-hover-color: var(--gb-text);
    --bs-table-hover-bg: rgba(108, 140, 255, 0.08);
}

/* ---- Profile tabs, collection & diary ---- */

.profile-tabs {
    border-bottom-color: var(--gb-border);
    gap: 0.25rem;
}

.profile-tabs .nav-link {
    color: var(--gb-text-muted);
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    background: transparent;
}

.profile-tabs .nav-link:hover {
    color: var(--gb-text);
    border-color: var(--gb-border);
    background: rgba(255, 255, 255, 0.03);
}

.profile-tabs .nav-link.active {
    color: var(--gb-text);
    background: var(--gb-surface);
    border-color: var(--gb-border);
}

.profile-collection-mini {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border) !important;
    overflow: hidden;
}

.profile-collection-mini-cover {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.profile-collection-mini-placeholder {
    background: linear-gradient(135deg, var(--gb-accent) 0%, #4a5fc9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.diary-timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--gb-border);
}

.diary-month-block {
    margin-bottom: 2rem;
}

.diary-month-block:last-child {
    margin-bottom: 0;
}

.diary-month-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.diary-month-dot {
    position: absolute;
    left: -1.85rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--gb-accent);
    box-shadow: 0 0 0 4px var(--gb-page-bg);
}

.diary-month-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.diary-month-count {
    font-size: 0.85rem;
    color: var(--gb-text-muted);
}

.diary-entries {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.diary-entry {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border) !important;
}

.diary-entry-layout {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1rem;
    padding: 0.85rem;
}

.diary-entry-cover img,
.diary-entry-cover-placeholder {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 0.4rem;
    display: block;
}

.diary-entry-cover-placeholder {
    background: linear-gradient(135deg, var(--gb-accent) 0%, #4a5fc9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.diary-entry-title {
    font-size: 1rem;
}

.diary-entry-notes {
    font-size: 0.9rem;
    color: var(--gb-text-muted);
    font-style: italic;
    border-left: 3px solid rgba(108, 140, 255, 0.35);
    padding-left: 0.65rem;
    margin-top: 0.35rem;
}

@media (max-width: 576px) {
    .diary-entry-layout {
        grid-template-columns: 1fr;
    }

    .diary-entry-cover {
        max-width: 72px;
    }
}

/* ---- Social feed & logging ---- */

.home-panel,
.log-game-panel,
.log-game-cta {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border) !important;
    color: var(--gb-text);
}

.game-detail-summary {
    color: var(--gb-text-muted);
    line-height: 1.6;
    max-width: 52rem;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border) !important;
}

.activity-item-layout {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    padding: 0.85rem 1rem;
}

.activity-cover,
.activity-cover-placeholder {
    width: 56px;
    height: 76px;
    object-fit: cover;
    border-radius: 0.35rem;
    display: block;
}

.activity-cover-placeholder {
    background: linear-gradient(135deg, var(--gb-accent) 0%, #4a5fc9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.activity-meta {
    font-size: 0.95rem;
    margin: 0;
}

.activity-user,
.activity-game {
    color: var(--gb-accent);
    text-decoration: none;
    font-weight: 600;
}

.activity-user:hover,
.activity-game:hover {
    text-decoration: underline;
}

.activity-excerpt {
    font-size: 0.9rem;
    color: var(--gb-text-muted);
    font-style: italic;
}

.popular-games-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.popular-game-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gb-text);
    padding: 0.35rem 0;
}

.popular-game-row:hover .popular-game-title {
    color: var(--gb-accent);
}

.popular-game-thumb,
.popular-game-thumb-placeholder {
    width: 36px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.popular-game-thumb-placeholder {
    background: var(--gb-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.popular-game-title {
    font-size: 0.9rem;
}

.member-card,
.search-result-card,
.game-list-card {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border) !important;
    color: var(--gb-text);
}

.member-avatar,
.member-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.member-avatar-placeholder {
    background: var(--gb-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.search-result-cover,
.search-result-cover-placeholder {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.search-result-cover-placeholder {
    background: linear-gradient(135deg, var(--gb-accent) 0%, #4a5fc9 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.game-list-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

.game-list-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    height: 80px;
    overflow: hidden;
    border-radius: 0.35rem 0.35rem 0 0;
}

.game-list-cover-tile {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-list-cover-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: var(--gb-text-muted);
    font-size: 0.85rem;
}

.profile-review-layout,
.list-game-layout {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1rem;
    padding: 1rem;
}

.profile-review-cover-link img,
.profile-review-cover-placeholder,
.list-game-cover-link img,
.list-game-cover-placeholder {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 0.35rem;
    display: block;
}

.profile-review-cover-placeholder,
.list-game-cover-placeholder {
    background: var(--gb-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-review-text {
    color: var(--gb-text-muted);
    line-height: 1.55;
}

.list-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.list-game-item {
    background: var(--gb-surface);
    border: 1px solid var(--gb-border) !important;
}

.list-game-layout {
    position: relative;
    align-items: center;
}

.list-game-rank {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    z-index: 1;
}
