/* ==========================================================================
   GAMES VIEW V2 - Premium Design System
   ========================================================================== */

:root {
    --game-card-bg: #ffffff;
    --game-card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --game-sidebar-width: 420px;
}

[data-theme="dark"] {
    --game-card-bg: #1e293b;
    --game-card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* Grid System */
.games-v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* Premium Card Design */
.games-v2-card {
    position: relative;
    background: var(--game-card-bg);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--game-card-shadow);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.games-v2-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.2);
}

.games-v2-card-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-body);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    transition: transform 0.5s ease;
}

.games-v2-card:hover .games-v2-card-icon {
    transform: rotate(10deg);
}

.games-v2-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.games-v2-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.games-v2-card-decor {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 120px;
    opacity: 0.03;
    transition: opacity 0.5s ease;
}

.games-v2-card:hover .games-v2-card-decor {
    opacity: 0.08;
}

/* No Leaderboard Ribbon */
.gc-no-leaderboard-ribbon {
    position: absolute;
    top: 0;
    right: 24px;
    width: 36px;
    height: 52px;
    background: #ef4444;
    opacity: 0.9;
    /* Crisp red */
    color: white;
    z-index: 20;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    /* Position the icon nicely */
    font-size: 16px;
    /* Clean bookmark swallowtail */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.gc-versus-ribbon {
    position: absolute;
    top: 0;
    right: 24px;
    width: 36px;
    height: 52px;
    background: #3b82f6;
    opacity: 0.9;
    /* Crisp blue */
    color: white;
    z-index: 20;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    font-size: 16px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

/* Joker Ribbon (Right aligned) */
.gc-joker-ribbon {
    position: absolute;
    top: 0;
    right: 24px;
    width: 36px;
    height: 52px;
    background: #22c55e;
    opacity: 0.9;
    color: white;
    z-index: 20;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    font-size: 16px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
}

/* Ribbon Stacking Logic */
.gc-no-leaderboard-ribbon ~ .gc-versus-ribbon,
.gc-no-leaderboard-ribbon ~ .gc-joker-ribbon,
.gc-versus-ribbon ~ .gc-joker-ribbon {
    right: 68px; /* 24 + 36 + 8 gap */
}

/* If ALL 3 ribbons are present */
.gc-no-leaderboard-ribbon ~ .gc-versus-ribbon ~ .gc-joker-ribbon {
    right: 112px; /* 68 + 36 + 8 gap */
}

.gc-no-leaderboard-ribbon-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gc-no-leaderboard-ribbon-icon i {
    display: block;
    margin: 0;
}

.gc-no-leaderboard-ribbon .gc-no-leaderboard-ribbon-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    width: 140%;
    height: 2px;
    background-color: white;
    transform: translateY(-50%) rotate(45deg);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Sidebar Styling */
.games-v2-sidebar-card {
    background: var(--game-card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--game-card-shadow);
    overflow: hidden;
}

/* Modal Styling */
.iframe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.iframe-modal-container {
    background: transparent;
    border-radius: 32px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

[data-theme="dark"] .iframe-modal-container {
    background: transparent;
}

.iframe-modal-container.modal-type-chess {
    width: fit-content;
    height: fit-content;
    max-height: 95vh;
    background: transparent;
    overflow: visible;
    box-shadow: none;
    border: none;
}


/* Hide scrollbar for Constellations tab */
.game-center-layout.stellar-tab-active .dashboard-main {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.game-center-layout.stellar-tab-active .dashboard-main::-webkit-scrollbar {
    display: none;
}

/* --- ADMIN V2 STYLES --- */
.admin-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .admin-row {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* ========================================
   GAME CENTER ADMIN - FLAT DESIGN V3
   ======================================== */

/* --- Layout --- */
.gc-admin-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .gc-admin-layout {
        grid-template-columns: 1fr;
    }
}

.gc-admin-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Panel --- */
.gc-admin-panel {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
}

[data-theme="dark"] .gc-admin-panel {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.06);
}

.gc-admin-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-body, #f8fafc);
}

[data-theme="dark"] .gc-admin-panel-header {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(255, 255, 255, 0.06);
}

.gc-admin-panel-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gc-admin-panel-header h3 i {
    font-size: 1rem;
    color: var(--text-muted);
}

/* --- Search --- */
.gc-admin-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

[data-theme="dark"] .gc-admin-search {
    border-color: rgba(255, 255, 255, 0.06);
}

.gc-admin-search i {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.gc-admin-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--text-main);
    width: 100%;
}

.gc-admin-search input::placeholder {
    color: var(--text-muted);
}

/* --- Hub List --- */
.gc-admin-hub-list {
    max-height: 480px;
    overflow-y: auto;
}

.gc-admin-hub-group {
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

[data-theme="dark"] .gc-admin-hub-group {
    border-color: rgba(255, 255, 255, 0.06);
}

.gc-admin-hub-group:last-child {
    border-bottom: none;
}

.gc-admin-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
}

.gc-admin-hub-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
}

.gc-admin-hub-title i {
    color: var(--text-muted);
    font-size: 1rem;
}

.gc-admin-hub-count {
    background: var(--bg-body, #f1f5f9);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

[data-theme="dark"] .gc-admin-hub-count {
    background: rgba(255, 255, 255, 0.08);
}

.gc-admin-hub-header>i {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- User List --- */
.gc-admin-user-list {
    background: var(--bg-body, #f8fafc);
}

[data-theme="dark"] .gc-admin-user-list {
    background: rgba(15, 23, 42, 0.2);
}

.gc-admin-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 32px;
    cursor: pointer;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

[data-theme="dark"] .gc-admin-user-item {
    border-color: rgba(255, 255, 255, 0.04);
}

.gc-admin-user-item.active {
    background: rgba(59, 130, 246, 0.08);
}

[data-theme="dark"] .gc-admin-user-item.active {
    background: rgba(59, 130, 246, 0.15);
}

/* --- User Avatar --- */
.gc-admin-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
}

[data-theme="dark"] .gc-admin-user-avatar {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.gc-admin-user-avatar.lg {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
    border-radius: 10px;
    background: #3b82f6;
    color: white;
}

/* --- User Info --- */
.gc-admin-user-info {
    flex: 1;
    min-width: 0;
}

.gc-admin-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-admin-user-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* --- Role Badge --- */
.gc-admin-role-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #64748b;
}

[data-theme="dark"] .gc-admin-role-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.gc-admin-role-badge.super_admin {
    background: #fef2f2;
    color: #dc2626;
}

.gc-admin-role-badge.sector_manager {
    background: #eff6ff;
    color: #2563eb;
}

.gc-admin-role-badge.coordinator {
    background: #f0fdf4;
    color: #16a34a;
}

[data-theme="dark"] .gc-admin-role-badge.super_admin {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

[data-theme="dark"] .gc-admin-role-badge.sector_manager {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

[data-theme="dark"] .gc-admin-role-badge.coordinator {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

/* --- Empty State --- */
.gc-admin-empty {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-muted);
}

.gc-admin-empty i {
    font-size: 2rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 8px;
}

.gc-admin-empty p {
    font-size: 0.82rem;
    margin: 0;
}

/* --- Revoke Button --- */
.gc-admin-revoke-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 6px;
    border-radius: 6px;
    opacity: 0.4;
    transition: opacity 0.15s, color 0.15s;
}

.gc-admin-revoke-btn:hover {
    opacity: 1;
    color: #dc2626;
}

/* --- Adjust Card --- */
.gc-admin-adjust-card {
    padding: 20px;
}

.gc-admin-adjust-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.gc-admin-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 6px;
}

.gc-admin-adjust-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .gc-admin-adjust-form {
        grid-template-columns: 1fr;
    }
}

.gc-admin-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* --- Input --- */
.gc-admin-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-body, #f8fafc);
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
}

[data-theme="dark"] .gc-admin-input {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
}

.gc-admin-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.gc-admin-input.sm {
    padding: 6px 8px;
    font-size: 0.8rem;
    width: 70px;
    text-align: center;
}

/* --- Submit Button --- */
.gc-admin-submit {
    width: 100%;
    margin: 0;
    border-radius: 0 0 14px 14px !important;
    padding: 12px !important;
    font-size: 0.85rem;
}

/* --- Costs List --- */
.gc-admin-costs-list {
    padding: 8px 0;
}

.gc-admin-cost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

[data-theme="dark"] .gc-admin-cost-row {
    border-color: rgba(255, 255, 255, 0.04);
}

.gc-admin-cost-row:last-child {
    border-bottom: none;
}

.gc-admin-cost-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.gc-admin-cost-info i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.gc-admin-cost-input {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gc-admin-cost-unit {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --- Date Row --- */
.gc-admin-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
}

.gc-admin-date-row .gc-admin-input {
    flex: 1;
}

/* --- History Panel --- */
.gc-admin-history-panel {
    margin-top: 1.5rem;
}

.gc-admin-history-scroll {
    overflow-x: auto;
}

/* --- Admin Tabs --- */
.gc-admin-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .gc-admin-tabs {
    border-color: rgba(255, 255, 255, 0.1);
}

.gc-admin-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}

[data-theme="dark"] .gc-admin-tab {
    color: #94a3b8;
}

.gc-admin-tab:hover {
    color: var(--text-main, #1e293b);
}

[data-theme="dark"] .gc-admin-tab:hover {
    color: #e2e8f0;
}

.gc-admin-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

[data-theme="dark"] .gc-admin-tab.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

.gc-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.gc-admin-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-body, #f8fafc);
}

[data-theme="dark"] .gc-admin-table th {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(255, 255, 255, 0.06);
}

.gc-admin-table td {
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

[data-theme="dark"] .gc-admin-table td {
    border-color: rgba(255, 255, 255, 0.04);
}

.gc-admin-table tr:last-child td {
    border-bottom: none;
}

.gc-admin-td-muted {
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
}

.gc-admin-td-bold {
    font-weight: 700;
}

/* --- Badge --- */
.gc-admin-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.gc-admin-badge.positive {
    background: #ecfdf5;
    color: #059669;
}

.gc-admin-badge.negative {
    background: #fef2f2;
    color: #dc2626;
}

[data-theme="dark"] .gc-admin-badge.positive {
    background: rgba(5, 150, 105, 0.12);
    color: #34d399;
}

[data-theme="dark"] .gc-admin-badge.negative {
    background: rgba(220, 38, 38, 0.12);
    color: #f87171;
}

/* ========================================
   LEADERBOARD V2
   ======================================== */

.lb-v2 {
    background: transparent;
    padding: 0;
}

/* --- Controls --- */
.lb-v2-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.lb-v2-games {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lb-v2-game-btn {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.lb-v2-game-btn:hover {
    background: var(--bg-card);
    color: var(--text-main);
}

.lb-v2-game-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.lb-v2-scope {
    display: flex;
    background: var(--bg-body);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.lb-v2-scope-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lb-v2-scope-btn:hover {
    color: var(--text-main);
}

.lb-v2-scope-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* --- Empty State --- */
.lb-v2-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(255, 255, 255, 0.4);
}

.lb-v2-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* --- Podium --- */
.lb-v2-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.lb-v2-podium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px 30px;
    text-align: center;
    width: 280px;
    min-height: 220px;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--game-card-shadow);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lb-v2-podium-card.gold {
    order: 2;
    transform: scale(1.15);
    border-color: rgba(234, 179, 8, 0.4);
    background: linear-gradient(to bottom, rgba(234, 179, 8, 0.15), rgba(var(--bg-rgb, 0, 0, 0), 0.1));
    z-index: 2;
    padding: 32px 20px;
}

[data-theme="dark"] .lb-v2-podium-card.gold {
    background: linear-gradient(to bottom, rgba(234, 179, 8, 0.15), rgba(0, 0, 0, 0.4));
}

.lb-v2-podium-card.silver {
    order: 1;
    border-color: rgba(148, 163, 184, 0.3);
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.1), rgba(var(--bg-rgb, 0, 0, 0), 0.05));
}

[data-theme="dark"] .lb-v2-podium-card.silver {
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.1), rgba(0, 0, 0, 0.3));
}

.lb-v2-podium-card.bronze {
    order: 3;
    border-color: rgba(217, 119, 6, 0.3);
    background: linear-gradient(to bottom, rgba(217, 119, 6, 0.1), rgba(var(--bg-rgb, 0, 0, 0), 0.05));
}

[data-theme="dark"] .lb-v2-podium-card.bronze {
    background: linear-gradient(to bottom, rgba(217, 119, 6, 0.1), rgba(0, 0, 0, 0.3));
}

.lb-v2-podium-rank {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.1;
    position: absolute;
    top: 12px;
    right: 16px;
}

.lb-v2-podium-crown {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.2rem;
    color: #eab308;
    filter: drop-shadow(0 0 15px rgba(234, 179, 8, 0.6));
}

.lb-v2-podium-avatar {
    width: 64px;
    height: 64px;
    background: var(--bg-body);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.lb-v2-podium-avatar.gold {
    background: #eab308;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    width: 72px;
    height: 72px;
}

.lb-v2-podium-avatar.silver {
    background: #94a3b8;
    box-shadow: 0 0 15px rgba(148, 163, 184, 0.3);
}

.lb-v2-podium-avatar.bronze {
    background: #d97706;
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.3);
}

.lb-v2-podium-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 4px;
    width: 100%;
}

.lb-v2-podium-hub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: 600;
    width: 100%;
}

.lb-v2-podium-score {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.lb-v2-podium-score small {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

/* --- List --- */
.lb-v2-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.lb-v2-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 24px;
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--game-card-shadow);
}

.lb-v2-row:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.01) translateX(5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.lb-v2-row-rank {
    width: 30px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.5;
}

.lb-v2-row-avatar {
    width: 42px;
    height: 42px;
    background: var(--bg-body);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.lb-v2-row-info {
    flex: 1;
}

.lb-v2-row-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 2px;
}

.lb-v2-row-hub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lb-v2-row-score {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem;
}

.lb-v2-row-score small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .lb-v2-podium {
        gap: 0.5rem;
    }

    .lb-v2-podium-card {
        padding: 12px 8px;
        width: 100px;
    }

    .lb-v2-podium-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .lb-v2-podium-name {
        font-size: 0.8rem;
    }

    .lb-v2-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================
   Cover Image Mode Styling
   ============================ */
.games-v2-card.has-cover {
    padding: 0;
    border: none;
    background: transparent;
    overflow: hidden;
}

.games-v2-card.has-cover .game-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.games-v2-card.has-cover:hover .game-cover-img {
    transform: scale(1.1);
}

.games-v2-card.has-cover .game-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.games-v2-card.has-cover:hover .game-cover-overlay {
    opacity: 1;
}

.games-v2-card.has-cover .play-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--primary);
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

[data-theme="neon"] .play-text {
    color: #010103 !important; /* Noir sur Jaune */
}

.games-v2-card.has-cover:hover .play-text {
    transform: translateY(0);
}

.hover-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.games-v2-card.has-cover:hover .hover-desc {
    transform: translateY(0);
    opacity: 1;
}

.games-v2-card.has-cover .gc-lock-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* --- Price Badge (Always Visible) --- */
.game-price-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.9);
    color: #fbbf24;
    /* Amber-400 */
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.game-price-badge i {
    font-size: 1rem;
}

/* Neon theme override for price badge */
[data-theme="neon"] .game-price-badge {
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid rgba(252, 238, 9, 0.7);
    color: #fcee09;
    box-shadow: 0 4px 10px rgba(252, 238, 9, 0.2), inset 0 1px 0 rgba(252, 238, 9, 0.3);
}

/* --- Buy Text (Hover) --- */
.buy-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    background: #10b981;
    /* Emerald-500 */
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

[data-theme="neon"] .buy-text {
    color: #010103 !important;
}


.games-v2-card.has-cover:hover .buy-text {
    transform: translateY(0);
}

.buy-text:hover {
    background: #059669;
    /* Emerald-600 */
    transform: scale(1.05) !important;
}

/* --- Shake Error Animation --- */
@keyframes shake-card {

    0%,
    100% {
        transform: scale(1.02) translateX(0);
    }

    15%,
    45%,
    75% {
        transform: scale(1.02) translateX(-4px);
    }

    30%,
    60%,
    90% {
        transform: scale(1.02) translateX(4px);
    }
}

.shake-error {
    animation: shake-card 0.4s cubic-bezier(.36, .07, .19, .97) both;
    border-color: #ef4444 !important;
    /* Red-500 */
    box-shadow: 0 0 0 1px #ef4444, 0 0 20px rgba(239, 68, 68, 0.4) !important;
}

.active-game-pulse {
    border: 2px solid #3b82f6 !important;
    animation: active-game-glow 2s infinite;
    cursor: pointer;
}

@keyframes active-game-glow {
    0% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }

    100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.4);
    }
}

/* ==========================================================================
   PREMIUM ACTIVE GAME BANNER
   ========================================================================== */
.active-game-banner-premium.compact {
    min-height: auto;
    /* Much smaller */
    padding: 1.5rem 2rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.active-game-banner-premium.compact .banner-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 2;
    padding: 0;
}

.banner-info-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.active-game-banner-premium.compact .banner-title {
    font-size: 1.25rem;
    margin: 0;
}

.turn-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    width: fit-content;
}

.turn-indicator.my-turn {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
}

.active-game-banner-premium.compact .banner-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

.btn-resume-match {
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #1e293b;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-resume-match:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.btn-forfeit-match {
    padding: 0.75rem 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-forfeit-match:hover {
    background: #ef4444;
    color: #fff;
}

/* Live Games Mini Section */
.live-games-mini-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 27, 75, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    width: max-content;
    max-width: 100%;
}

[data-theme="dark"] .live-games-mini-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 27, 75, 0.9));
    border-color: rgba(255, 255, 255, 0.15);
}

.section-header-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-header-mini h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

[data-theme="dark"] .section-header-mini h2 {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;

    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.live-games-container-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.live-game-card-mini {
    position: relative;
    padding: 1rem 1.5rem;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    color: white;
}

[data-theme="dark"] .live-game-card-mini {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.live-game-card-mini:hover {
    background: rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.3);
    transform: translateY(-2px);
}

.live-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.p-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    max-width: 90px;
    word-wrap: break-word;
    text-align: center;
}

.p-name .p-first {
    font-size: 0.85rem;
}

.p-name .p-last {
    font-size: 0.70rem;
    opacity: 0.8;
}

.vs-label {
    font-size: 0.65rem;
    opacity: 0.3;
    font-style: italic;
}

.spectate-overlay {
    position: absolute;
    inset: 0;
    background: rgba(147, 51, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.live-game-card-mini:hover .spectate-overlay {
    opacity: 1;
    transform: translateY(0);
}

.active-game-banner-premium {
    position: relative;
    width: 100%;
    min-height: 200px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 27, 75, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
}

[data-theme="dark"] .active-game-banner-premium {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.3), rgba(88, 28, 135, 0.3));
    border-color: rgba(255, 255, 255, 0.05);
}

.active-game-banner-premium:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.banner-bg-overlay {
    position: absolute;
    inset: 0;
    background: url('/assets/images/gameposter/Proxchess.png') center/cover no-repeat;
    opacity: 0.3;
    filter: blur(4px);
    mix-blend-mode: overlay;
    z-index: 0;
    transition: all 0.6s ease;
}

.active-game-banner-premium:hover .banner-bg-overlay {
    opacity: 0.2;
    transform: scale(1.1);
}

.banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    padding: 32px;
    gap: 32px;
}

.banner-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 16px;
    width: fit-content;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.1);
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 24px 0;
    max-width: 500px;
}

.banner-btn-primary {
    background: white;
    color: #1e293b;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .banner-btn-primary {
    background: var(--primary);
    color: white;
}

.banner-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.banner-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.banner-preview-card {
    width: 240px;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.active-game-banner-premium:hover .banner-preview-card {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.banner-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .banner-right {
        display: none;
    }

    .banner-title {
        font-size: 1.7rem;
    }

    .banner-content {
        padding: 24px;
    }
}

/* ========================================
   CYBERPUNK THEME (Neon) OVERRIDES
   ======================================== */
/* Neon Cards - solid yellow border with beveled corners */
[data-theme="neon"] .games-v2-card,
[data-theme="neon"] .games-v2-card.unlocked,
[data-theme="neon"] .games-v2-card.has-cover {
    background: var(--bg-card) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    overflow: hidden;
    filter: none;
}

[data-theme="neon"] .games-v2-card.locked {
    filter: grayscale(0.8);
    opacity: 0.8;
}

[data-theme="neon"] .games-v2-card.locked.affordable {
    filter: grayscale(0.2);
}

[data-theme="neon"] .games-v2-card.locked:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Pseudo-element for visible border */
[data-theme="neon"] .games-v2-card.has-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #fcee09;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    pointer-events: none;
    z-index: 3;
    transition: border-color 0.3s ease;
}

[data-theme="neon"] .games-v2-card.has-cover:hover::before {
    border-color: #00f3ff;
}

/* Corner border lines for beveled corners */
[data-theme="neon"] .games-v2-card.has-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background:
        linear-gradient(135deg, transparent calc(50% - 1px), #fcee09 calc(50% - 1px), #fcee09 calc(50% + 1px), transparent calc(50% + 1px)) top left / 20px 20px no-repeat,
        linear-gradient(-45deg, transparent calc(50% - 1px), #fcee09 calc(50% - 1px), #fcee09 calc(50% + 1px), transparent calc(50% + 1px)) bottom right / 20px 20px no-repeat;
    transition: background-color 0.3s ease;
}

[data-theme="neon"] .games-v2-card.has-cover:hover::after {
    background:
        linear-gradient(135deg, transparent calc(50% - 1px), #00f3ff calc(50% - 1px), #00f3ff calc(50% + 1px), transparent calc(50% + 1px)) top left / 20px 20px no-repeat,
        linear-gradient(-45deg, transparent calc(50% - 1px), #00f3ff calc(50% - 1px), #00f3ff calc(50% + 1px), transparent calc(50% + 1px)) bottom right / 20px 20px no-repeat;
}

/* Ensure ALL internal images follow the same clip-path and fill the card exactly */
[data-theme="neon"] .game-cover-img,
[data-theme="neon"] .game-cover-overlay {
    position: absolute !important;
    inset: 0 !important; /* Fill parent exactly (border is on parent) */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    clip-path: none !important;
    mask-image: none !important;
}

/* Force consistency on hover */
[data-theme="neon"] .games-v2-card:hover .game-cover-img,
[data-theme="neon"] .games-v2-card:hover .game-cover-overlay {
    inset: 0 !important;
}

/* Ensure the overlay is always on top of the image */
[data-theme="neon"] .game-cover-overlay {
    z-index: 2 !important;
}

/* Fix for ribbons positioning (Avoid bevel and vertical stacking) */
[data-theme="neon"] .gc-no-leaderboard-ribbon,
[data-theme="neon"] .gc-versus-ribbon,
[data-theme="neon"] .gc-joker-ribbon {
    position: absolute !important;
    top: 0 !important;
    z-index: 20 !important;
    height: 48px !important;
}

/* Vertical Stacking for Neon Ribbons */
/* No-Leaderboard: cote droit */
[data-theme="neon"] .gc-no-leaderboard-ribbon {
    right: 24px !important;
    left: auto !important;
}
/* Versus: cote droit */
[data-theme="neon"] .gc-versus-ribbon {
    right: 24px !important;
    left: auto !important;
}
/* Joker: cote droit */
[data-theme="neon"] .gc-joker-ribbon {
    right: 24px !important;
    left: auto !important;
}
/* Stacking rules for Neon */
[data-theme="neon"] .gc-no-leaderboard-ribbon ~ .gc-versus-ribbon,
[data-theme="neon"] .gc-no-leaderboard-ribbon ~ .gc-joker-ribbon,
[data-theme="neon"] .gc-versus-ribbon ~ .gc-joker-ribbon {
    right: 68px !important;
}

/* Si les 3 banderoles sont presentes */
[data-theme="neon"] .gc-no-leaderboard-ribbon ~ .gc-versus-ribbon ~ .gc-joker-ribbon {
    right: 112px !important;
}

[data-theme="neon"] .games-v2-card:hover,
[data-theme="neon"] .games-v2-card.unlocked:hover,
[data-theme="neon"] .games-v2-card.has-cover:hover {
    transform: translateY(-5px);
}

/* Border styles are now handled by box-shadow on card itself */

/* Ensure content stays above the ::before background */
[data-theme="neon"] .games-v2-card > :not(.gc-no-leaderboard-ribbon):not(.gc-versus-ribbon):not(.gc-joker-ribbon):not(.game-price-badge) {
    position: relative;
    z-index: 2;
}

[data-theme="neon"] .games-v2-card-title {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.3rem;
    padding: 0 24px; /* Padding only for text */
}

[data-theme="neon"] .games-v2-card-desc {
    padding: 0 24px 24px 24px; /* Padding for text description */
}

[data-theme="neon"] .games-v2-card-icon {
    margin-bottom: 1rem;
    padding: 24px 24px 0 24px;
}

[data-theme="neon"] .games-v2-card-icon {
    background: linear-gradient(rgba(252, 238, 9, 0.1), rgba(252, 238, 9, 0.1)) padding-box,
                linear-gradient(rgba(252, 238, 9, 0.3), rgba(252, 238, 9, 0.3)) border-box;
    border: 1px solid transparent;
    color: var(--primary) !important;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    border-radius: 0;
}

[data-theme="neon"] .gc-play-btn {
    background: var(--primary);
    color: #000000 !important;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 2px;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    border: 1px solid transparent;
}

/* Force children color if any */
[data-theme="neon"] .gc-play-btn span, 
[data-theme="neon"] .gc-play-btn i {
    color: #000000 !important;
}

[data-theme="neon"] .games-v2-card-decor i {
    color: var(--primary);
    opacity: 0.1;
}

/* Custom Giga Balance for Neon */
[data-theme="neon"] .gc-balance {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(252, 238, 9, 0.5);
}

/* Cyberpunk Library Title Styling */
[data-theme="neon"] .gc-header h1 {
    font-family: 'Cyberpunk', sans-serif !important;
    color: #fcee09 !important;
    -webkit-text-fill-color: #fcee09 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 3rem;
    text-shadow: 3px 3px 0 #00f3ff, -3px -3px 0 #ff00ff;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

[data-theme="neon"] .gc-header p {
    color: var(--primary);
    opacity: 0.8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="neon"] .gc-nav-item.active {
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.1) 0%, transparent 100%);
    color: var(--info);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

[data-theme="neon"] .gc-user-card {
    background: var(--bg-body-secondary);
    border: 1px solid rgba(252, 238, 9, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

[data-theme="neon"] .gc-avatar {
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(252, 238, 9, 0.3);
}

[data-theme="neon"] .gc-info-box {
    background: rgba(0, 243, 255, 0.03);
    border-left: 3px solid var(--info);
    color: var(--text-main);
}

[data-theme="neon"] .gc-info-box strong {
    color: var(--primary);
}

[data-theme="neon"] .btn-primary {
    background: var(--primary);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(252, 238, 9, 0.3);
}

[data-theme="neon"] .btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(252, 238, 9, 0.5);
}

[data-theme="neon"] .gc-header h1,
[data-theme="neon"] .cyberpunk-title {
    font-family: 'Cyberpunk', sans-serif !important;
    color: #fcee09 !important;
    -webkit-text-fill-color: #fcee09 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important; /* Jaune Cyberpunk pur */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 
        3px 3px 0 var(--info),
        -3px -3px 0 var(--secondary);
    animation: none !important;
    position: relative;
    display: inline-block;
}
