/* ==========================================================================
   GAME CENTER STYLES
   Externalized from GameCenter.js for better maintainability.
   Uses CSS tokens/variables from tokens.css for theme support.
   ========================================================================== */

/* ==========================================================================
   PUBLIC STATS PREMIUM STYLES
   (Previously injected via injectStatsStyles() in GameCenter.js)
   ========================================================================== */

.gc-stats-section .gc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.ps-data-notice {
    background: var(--primary-light);
    border: 1px solid var(--border-panel);
    color: var(--primary);
    padding: 0.75rem 1.25rem;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

/* Removed redundant theme overrides for notice */

.premium-stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.premium-stats-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-panel);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Removed hardcoded theme overrides for stats cards */

.premium-stats-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    z-index: 10;
}

/* Highlight Glow on Hover */
.premium-stats-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

[data-theme="dark"] .premium-stats-card::after {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 50%);
}

.premium-stats-card:hover::after { opacity: 1; }

/* Left Info Section */
.ps-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 30%;
    min-width: 250px;
}

.ps-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.75rem;
    color: white;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.ps-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ps-icon-wrapper i {
    position: relative;
    z-index: 2;
}

.ps-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 3;
    pointer-events: none;
}

.ps-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
}

/* Right Stats Section */
.ps-stats-grid {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.ps-stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    position: relative;
}

.ps-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ps-stat-value {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Specific Stat Colors */
.stat-playtime .ps-stat-value { color: #eab308; }
[data-theme="dark"] .stat-playtime .ps-stat-value { color: #fde047; }

.stat-score .ps-stat-value { color: #3b82f6; font-size: 1.6rem; }
[data-theme="dark"] .stat-score .ps-stat-value { color: #60a5fa; }

.stat-sessions .ps-stat-value { color: #8b5cf6; }
[data-theme="dark"] .stat-sessions .ps-stat-value { color: #a78bfa; }

/* Dividers */
.ps-divider {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, transparent, var(--border-panel), transparent);
}

/* Tab Buttons (Premium) */
.ps-tabs-container {
    display: flex;
    gap: 0.5rem;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    background: var(--bg-body-secondary);
    padding: 0.5rem;
    border-radius: 999px;
    width: fit-content;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-panel);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.ps-tab-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .ps-tab-btn { color: #94a3b8; }

.ps-tab-btn:hover { color: #0f172a; }
[data-theme="dark"] .ps-tab-btn:hover { color: white; }

.ps-tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}


/* ==========================================================================
   INLINE TEMPLATE STYLES
   (Previously in <style> block at the bottom of GameCenter.js template)
   ========================================================================== */

/* History Buttons */
.gc-history-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gc-history-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Giga History List */
.giga-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    gap: 1rem;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hi-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hi-details {
    flex: 1;
    min-width: 0;
}

.hi-title {
    font-weight: 600;
    color: #f8fafc;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hi-date {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
    text-transform: capitalize;
}

.hi-amount {
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Game Center Modal Overlay - Centered Fixed Position */
.game-center-layout .gc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

/* Game Center Modal Cards */
.game-center-layout .gc-modal-card {
    background: var(--bg-modal);
    border: 1px solid var(--border-panel);
    box-shadow: var(--shadow-xl);
    color: var(--text-main);
    border-radius: 12px;
    max-width: 100%;
}

.game-center-layout .gc-modal-header {
    border-bottom: 1px solid var(--border-panel);
    background: var(--bg-alternate);
}

.game-center-layout .gc-modal-header h3 {
    color: var(--text-main);
}

.game-center-layout .gc-modal-header button {
    color: var(--text-muted);
}

.game-center-layout .gc-modal-header button:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.game-center-layout .gc-modal-footer {
    background: var(--bg-alternate);
    border-top: 1px solid var(--border-panel);
}

/* Toggle Switch */
.gc-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.gc-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gc-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(128,128,128,0.3);
    transition: .4s;
    border-radius: 34px;
}

.gc-slider.is-active {
    background-color: #10b981;
}

.gc-slider-thumb {
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    transform: translateX(0);
}

.gc-slider-thumb.is-active {
    transform: translateX(22px);
}

/* Hide Scrollbars on Main */
.game-center-main::-webkit-scrollbar {
    display: none;
}

.game-center-main {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Layout Transitions */
.game-center-layout {
    transition: background-color 0.6s ease, color 0.6s ease;
    color: var(--text-main);
}

.game-center-main {
    padding-bottom: 4rem;
    transition: background-color 0.6s ease, color 0.6s ease;
}

.game-center-sidebar {
    transition: background-color 0.6s ease, border-color 0.6s ease, color 0.6s ease;
}

/* Library & Store Grid */
.games-v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Leaderboard Container */
.gc-leaderboard-container {
    width: 100%;
    max-width: 100% !important;
}

/* Trophy Test Modal Styles */
.trophy-test-modal {
    max-width: 500px !important;
    background: var(--bg-modal) !important;
    border: 1px solid var(--border-panel) !important;
    box-shadow: var(--shadow-xl) !important;
}

.trophy-test-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
}

.trophy-test-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    padding: 1.25rem;
    background: var(--bg-alternate);
    border: 1px solid var(--border-panel);
    border-radius: 16px;
    color: var(--text-main);
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
}

.trophy-test-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(4px);
}

.trophy-test-btn .btn-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--primary);
}

.trophy-test-btn.levelup {
    background: var(--bg-badge-warning);
    border-color: var(--warning);
}

.trophy-test-btn.levelup:hover {
    background: var(--warning);
    color: white;
}

.trophy-test-btn.levelup .btn-icon {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.trophy-test-btn .btn-info {
    display: flex;
    flex-direction: column;
}

.trophy-test-btn .btn-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.trophy-test-btn .btn-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Chess Activity Aside */
.chess-activity-aside {
    position: fixed;
    right: 24px;
    top: 100px;
    width: 260px;
    background: var(--bg-modal);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-panel);
    border-radius: 20px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
    box-shadow: var(--shadow-xl);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.chess-aside-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.03em;
    opacity: 0.9;
}

.chess-aside-header i {
    font-size: 1.2rem;
    color: #a78bfa;
}

.chess-aside-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aside-section-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aside-game-card {
    background: var(--bg-alternate);
    border: 1px solid var(--border-panel);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-main);
}

.aside-game-card:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.aside-game-card.active-card {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.06);
}

.aside-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.aside-vs-label {
    font-size: 0.6rem;
    opacity: 0.4;
    font-weight: 900;
}

.aside-player {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aside-turn {
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.5;
    font-weight: 600;
}

.aside-turn.my-turn {
    color: #22c55e;
    opacity: 1;
    font-weight: 800;
}

.aside-action {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 0;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.08);
    margin-top: 2px;
}

.aside-action.spectate {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.08);
}

.aside-solo-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aside-solo-level {
    font-weight: 800;
    font-size: 0.8rem;
}

.aside-solo-date {
    font-size: 0.65rem;
    opacity: 0.4;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake-error {
    animation: shake 0.4s ease-in-out 0s 2;
    border-color: rgba(239, 68, 68, 0.5) !important;
}

.season-podium-overlay {
    z-index: 1000000;
}

/* ==========================================================================
   THEME BOUTIQUE REDESIGN (Window Previews)
   ========================================================================== */

.theme-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border-panel);
    border-radius: 20px;
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    cursor: pointer;
}

.theme-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.theme-card-v2.active {
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
}

/* Window Mockup */
.theme-mockup {
    width: 100%;
    aspect-ratio: 1.6;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-panel);
    display: flex;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: var(--bg-main);
}

.mock-sidebar {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 6px;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.mock-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-header {
    height: 10px;
    width: 100%;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.mock-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0.5;
}

.mock-line {
    height: 3px;
    border-radius: 2px;
    width: 100%;
    opacity: 0.6;
}

.mock-line.short { width: 35%; }
.mock-line.med { width: 60%; }

/* Active Checkmark Box */
.theme-active-check {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
    z-index: 10;
    border: 2px solid var(--bg-card);
}

/* Color Palettes Overrides */
/* LIGHT */
.theme-card-v2[data-theme-id="light"] .theme-mockup { background: #f8fafc; }
.theme-card-v2[data-theme-id="light"] .mock-sidebar { background: #f1f5f9; border-color: #e2e8f0; }
.theme-card-v2[data-theme-id="light"] .mock-dot { background: #cbd5e1; }
.theme-card-v2[data-theme-id="light"] .mock-line { background: #cbd5e1; }
.theme-card-v2[data-theme-id="light"] .mock-accent { background: #3b82f6; opacity: 0.8; }
.theme-card-v2[data-theme-id="light"] .mock-accent.secondary { opacity: 0.4; }

/* DARK */
.theme-card-v2[data-theme-id="dark"] .theme-mockup { background: #0f172a; border-color: #1e293b; }
.theme-card-v2[data-theme-id="dark"] .mock-sidebar { background: #1e293b; border-color: #334155; }
.theme-card-v2[data-theme-id="dark"] .mock-dot { background: #475569; }
.theme-card-v2[data-theme-id="dark"] .mock-line { background: #334155; }
.theme-card-v2[data-theme-id="dark"] .mock-accent { background: #6366f1; opacity: 0.8; }
.theme-card-v2[data-theme-id="dark"] .mock-accent.secondary { opacity: 0.4; }

/* NEON */
.theme-card-v2[data-theme-id="neon"] .theme-mockup { background: #050510; border-color: #1a1a2e; }
.theme-card-v2[data-theme-id="neon"] .mock-sidebar { background: #0a0a1a; border-color: #1a1a2e; }
.theme-card-v2[data-theme-id="neon"] .mock-dot.primary { background: #bd00ff; box-shadow: 0 0 5px #bd00ff; opacity: 1; }
.theme-card-v2[data-theme-id="neon"] .mock-dot.secondary { background: #00ff9f; box-shadow: 0 0 5px #00ff9f; opacity: 1; }
.theme-card-v2[data-theme-id="neon"] .mock-line { background: #1a1a2e; }
.theme-card-v2[data-theme-id="neon"] .mock-accent.primary { background: #bd00ff; opacity: 0.9; box-shadow: 0 0 10px rgba(189, 0, 255, 0.3); }
.theme-card-v2[data-theme-id="neon"] .mock-accent.secondary { background: #00ff9f; opacity: 0.7; box-shadow: 0 0 10px rgba(0, 255, 159, 0.2); }

/* SAKURA */
.theme-card-v2[data-theme-id="sakura"] .theme-mockup { background: #fff5f9; border-color: #fbcfe8; }
.theme-card-v2[data-theme-id="sakura"] .mock-sidebar { background: #fdf2f8; border-color: #fce7f3; }
.theme-card-v2[data-theme-id="sakura"] .mock-dot { background: #fbcfe8; }
.theme-card-v2[data-theme-id="sakura"] .mock-line { background: #fce7f3; }
.theme-card-v2[data-theme-id="sakura"] .mock-accent.primary { background: #e91e8c; opacity: 0.9; }
.theme-card-v2[data-theme-id="sakura"] .mock-accent.secondary { background: #e91e8c; opacity: 0.4; }

.theme-card-v2[data-theme-id="forest"] .theme-mockup { background: #faf8f4; border-color: #e5e0d6; }
.theme-card-v2[data-theme-id="forest"] .mock-sidebar { background: #eeece6; border-color: #dedad2; }
.theme-card-v2[data-theme-id="forest"] .mock-dot.primary { background: #74c69d; }
.theme-card-v2[data-theme-id="forest"] .mock-dot.secondary { background: #c9a84c; }
.theme-card-v2[data-theme-id="forest"] .mock-line { background: #dedad2; }
.theme-card-v2[data-theme-id="forest"] .mock-accent.primary { background: #74c69d; opacity: 0.9; }
.theme-card-v2[data-theme-id="forest"] .mock-accent.secondary { background: #c9a84c; opacity: 0.7; }

/* Theme Label Footer */
.theme-card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
}

.theme-card-footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.theme-card-footer-info i {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.theme-card-footer-info h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Actions in Card */
.theme-card-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.btn-theme-action {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
}

.btn-theme-action.secondary {
    background: var(--bg-alternate);
    color: var(--text-main);
    border-color: var(--border-panel);
}

.btn-theme-action.primary {
    background: #3b82f6;
    color: white;
}

.btn-theme-action.buy {
    background: #fbbf24;
    color: #78350f;
}

.btn-theme-action:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}


/* ── Theme Settings Modal rows & toggles ── */
.ts-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    gap: 1rem;
    user-select: none;
    transition: background 0.15s;
}
.ts-setting-row:last-child { border-bottom: none; }
.ts-setting-row:hover { background: var(--bg-input); margin: 0 -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; border-radius: 8px; }

.ts-setting-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.ts-setting-info > i { font-size: 1.3rem; flex-shrink: 0; }

.ts-setting-label { font-weight: 600; font-size: 0.9rem; color: var(--text-main); }
.ts-setting-desc  { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.ts-toggle {
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    border-radius: 99px;
    background: var(--border-color, #e2e8f0);
    position: relative;
    transition: background 0.25s;
}
.ts-toggle.active { background: #22c55e; }
.ts-toggle-handle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.ts-toggle.active .ts-toggle-handle { transform: translateX(20px); }

[data-theme="dark"] .ts-toggle { background: #334155; }
[data-theme="dark"] .ts-toggle.active { background: #16a34a; }

/* NEON: Cyberpunk headings for all Game Center sections */
[data-theme="neon"] .gc-section .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: 2.5rem;
    text-shadow: 2px 2px 0 #00f3ff, -2px -2px 0 #bc00ff;
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════
   PROMOTIONS — Storefront Rendering
   ═══════════════════════════════════════════════════ */

/* ── Promo Ribbon (top-left corner of game/avatar cards) ── */
.gc-promo-ribbon {
    position: absolute;
    top: 12px;
    left: -6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    z-index: 20;
    font-weight: 900;
    font-size: 0.75rem;
    padding: 4px 12px 4px 10px;
    border-radius: 0 8px 8px 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    letter-spacing: -0.02em;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 3px;
}

.gc-promo-ribbon::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    border-width: 6px 0 0 6px;
    border-style: solid;
    border-color: #991b1b transparent transparent transparent;
}

.gc-promo-ribbon i {
    font-size: 0.7rem;
}

/* Promo Intensity Extensions */
.gc-promo-ribbon.intensity-low {
    opacity: 0.85;
}

.gc-promo-ribbon.intensity-medium {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.gc-promo-ribbon.intensity-high {
    background: linear-gradient(135deg, #ef4444, #f43f5e, #ef4444);
    background-size: 200% auto;
    animation: gcRibbonGlow 3s infinite linear, gcRibbonPulse 2s infinite ease-in-out;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
    z-index: 12;
}

@keyframes gcRibbonGlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes gcRibbonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

[data-theme="neon"] .gc-promo-ribbon.intensity-high {
    background: linear-gradient(135deg, #ff0066, #ff00ff, #ff0066);
    background-size: 200% auto;
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.8);
}

/* ── Strikethrough Price ── */
.gc-price-original {
    text-decoration: line-through;
    color: #64748b; /* Slate 500 */
    font-weight: 600;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-right: 0.35rem;
}

.gc-price-promo {
    color: #ef4444;
    font-weight: 900;
    font-size: 0.95rem;
}

/* ── Promo Event Banner (top of store section) ── */
.gc-promo-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: promoBannerPulse 3s ease-in-out infinite;
}

.gc-promo-banner-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gc-promo-banner-icon {
    font-size: 1.5rem;
    color: #f59e0b;
}

.gc-promo-banner-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-main);
}

.gc-promo-banner-discount {
    font-weight: 900;
    color: #ef4444;
    font-size: 1.1rem;
}

.gc-promo-banner-timer {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

@keyframes promoBannerPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
    50% { box-shadow: 0 0 20px 0 rgba(245, 158, 11, 0.08); }
}

/* ── Avatar Card Promo Badge ── */
.gc-avatar-promo-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-weight: 900;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 8px;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

/* ── Theme Card Promo Badge ── */
.gc-theme-promo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-weight: 900;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 10px;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Neon theme overrides for promo ribbon */
[data-theme="neon"] .gc-promo-ribbon,
[data-theme="neon"] .gc-avatar-promo-badge,
[data-theme="neon"] .gc-theme-promo-badge {
    background: linear-gradient(135deg, #ff0066, #ff3399);
    box-shadow: 0 0 12px rgba(255, 0, 102, 0.5);
}

[data-theme="neon"] .gc-promo-banner {
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.1), rgba(189, 0, 255, 0.1));
    border-color: rgba(255, 0, 102, 0.3);
}
