        body {
            font-family: 'Inter', sans-serif;
        }        
        .loader {
            border-top-color: #3498db;
            -webkit-animation: spin 1.5s linear infinite;            
            animation: spin 1.5s linear infinite;
        }
        @-webkit-keyframes spin {
            0% {
                -webkit-transform: rotate(0deg);
            }
            100% {
                -webkit-transform: rotate(360deg);
            }
        }
        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }        
        .game-title-multiline {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }        
        .games-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 0.5rem !important;
            padding: 0 4px !important;
            justify-content: stretch !important;
        }        
        @media (min-width: 640px) {
            .games-grid {                
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
                gap: 1.5rem !important; 
                padding: 0 !important;
            }
        }
        @media (max-width: 640px) {
            .game-card-modern {
                width: 100% !important;
                height: auto !important;                
                aspect-ratio: 287 / 320; 
                border-radius: 0.75rem !important; 
            }            
            .game-card-modern .card-title {
                font-size: 0.75rem !important; 
                line-height: 1.1 !important;
                -webkit-line-clamp: 2; 
            }            
            .game-card-modern .card-content {
                padding: 0.5rem !important;
            }            
            .game-card-modern .card-badge {
                padding: 2px 4px !important;
                font-size: 0.55rem !important;
            }            
            .game-card-modern .card-actions {
                top: 35px !important;
                left: 4px !important;
                gap: 4px !important;
            }            
            .edit-btn-card, .delete-btn-card {
                padding: 4px !important;
                width: 24px !important;
                height: 24px !important;
                min-height: 0 !important;
            }
            .edit-btn-card svg, .delete-btn-card svg {
                width: 14px !important;
                height: 14px !important;
            }
        }        
        /* @media (min-width: 1024px) {
            .games-grid {
                grid-template-columns: repeat(7, 1fr); 
            }
        }
        */        
        .game-card-date-wrapper {
            --card-r: 1.5rem;
            display: flex;
            flex-direction: column;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        @media (max-width: 640px) {
            .game-card-date-wrapper {
                --card-r: 0.75rem;
            }
        }
        .game-card-date-wrapper:hover {
            transform: translateY(-6px) scale(1.02);
        }
        .game-card-date-wrapper .game-card-modern:hover {
            transform: none;
        }
        .card-date-footer {
            padding: 5px 0;
            text-align: center;
            font-size: 0.8rem;
            font-weight: 700;
            color: white;
            letter-spacing: 0.02em;
            flex-shrink: 0;
            background-color: #334155;
            border-radius: 0 0 var(--card-r) var(--card-r);
            position: relative;
            margin-top: -1px;
        }
        @media (max-width: 640px) {
            .card-date-footer {
                font-size: 0.7rem;
                padding: 4px 0;
            }
        }
        .card-date-footer::before,
        .card-date-footer::after {
            content: '';
            position: absolute;
            bottom: calc(100% - 1px);
            width: var(--card-r);
            height: var(--card-r);
            background-color: #334155;
        }
        .card-date-footer::before {
            left: 0;
            -webkit-mask: radial-gradient(circle at 100% 0, transparent calc(var(--card-r) - 0.5px), #000 calc(var(--card-r) + 0.5px));
            mask: radial-gradient(circle at 100% 0, transparent calc(var(--card-r) - 0.5px), #000 calc(var(--card-r) + 0.5px));
        }
        .card-date-footer::after {
            right: 0;
            -webkit-mask: radial-gradient(circle at 0 0, transparent calc(var(--card-r) - 0.5px), #000 calc(var(--card-r) + 0.5px));
            mask: radial-gradient(circle at 0 0, transparent calc(var(--card-r) - 0.5px), #000 calc(var(--card-r) + 0.5px));
        }
        .game-card-shell {
            --card-r: 1.5rem;
            display: flex;
            flex-direction: column;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        @media (max-width: 640px) {
            .game-card-shell {
                --card-r: 0.75rem;
            }
        }
        .game-card-shell:hover {
            transform: translateY(-6px) scale(1.02);
        }
        .game-card-shell .game-card-modern:hover {
            transform: none;
        }
        .game-card-date-wrapper .game-card-shell:hover {
            transform: none;
        }
        @media (max-width: 640px) {
            .game-card-shell:hover,
            .game-card-date-wrapper:hover {
                transform: none;
            }
        }
        .card-top-band {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 6px;
            padding: 5px var(--card-r);
            background-color: #334155;
            color: white;
            border-radius: var(--card-r) var(--card-r) 0 0;
            position: relative;
            margin-bottom: -1px;
            flex-shrink: 0;
            min-height: 24px;
            z-index: 1;
        }
        .card-top-band .ctb-left,
        .card-top-band .ctb-center,
        .card-top-band .ctb-right {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }
        .card-top-band .ctb-center { justify-self: center; }
        .card-top-band .ctb-right { justify-self: end; }
        .card-top-band .ctb-platform,
        .card-top-band .ctb-dlc {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            color: #e2e8f0;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            line-height: 1;
            white-space: nowrap;
        }
        .card-top-band .ctb-platform,
        .card-top-band .ctb-dlc {
            text-transform: uppercase;
        }
        .card-top-band::before,
        .card-top-band::after {
            content: '';
            position: absolute;
            top: calc(100% - 1px);
            width: var(--card-r);
            height: var(--card-r);
            background-color: #334155;
        }
        .card-top-band::before {
            left: 0;
            -webkit-mask: radial-gradient(circle at 100% 100%, transparent calc(var(--card-r) - 0.5px), #000 calc(var(--card-r) + 0.5px));
            mask: radial-gradient(circle at 100% 100%, transparent calc(var(--card-r) - 0.5px), #000 calc(var(--card-r) + 0.5px));
        }
        .card-top-band::after {
            right: 0;
            -webkit-mask: radial-gradient(circle at 0 100%, transparent calc(var(--card-r) - 0.5px), #000 calc(var(--card-r) + 0.5px));
            mask: radial-gradient(circle at 0 100%, transparent calc(var(--card-r) - 0.5px), #000 calc(var(--card-r) + 0.5px));
        }
        @media (max-width: 640px) {
            .card-top-band {
                padding: 4px 6px;
                min-height: 20px;
            }
            .card-top-band .ctb-platform,
            .card-top-band .ctb-dlc {
                font-size: 0.6rem;
            }
        }
        .list-card-date-wrapper {
            --list-r: 10px;
            display: flex;
            flex-direction: column;
            transition: all 0.2s ease;
        }
        .list-card-date-wrapper:hover {
            transform: translateY(-2px);
        }
        .list-card-date-wrapper:hover .game-card-list {
            transform: none;
            border-color: #3b82f6;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        .list-card-date-wrapper .game-card-list {
            border-radius: var(--list-r) var(--list-r) 0 0;
            border-bottom: none;
        }
        .list-date-footer {
            padding: 3px 0;
            text-align: center;
            font-size: 0.65rem;
            font-weight: 700;
            color: white;
            letter-spacing: 0.03em;
            flex-shrink: 0;
            background-color: #64748b;
            border-radius: 0 0 var(--list-r) var(--list-r);
            position: relative;
            margin-top: -1px;
        }
        .list-date-footer::before,
        .list-date-footer::after {
            content: '';
            position: absolute;
            bottom: calc(100% - 1px);
            width: var(--list-r);
            height: var(--list-r);
            background-color: #64748b;
        }
        .list-date-footer::before {
            left: 0;
            -webkit-mask: radial-gradient(circle at 100% 0, transparent calc(var(--list-r) - 0.5px), #000 calc(var(--list-r) + 0.5px));
            mask: radial-gradient(circle at 100% 0, transparent calc(var(--list-r) - 0.5px), #000 calc(var(--list-r) + 0.5px));
        }
        .list-date-footer::after {
            right: 0;
            -webkit-mask: radial-gradient(circle at 0 0, transparent calc(var(--list-r) - 0.5px), #000 calc(var(--list-r) + 0.5px));
            mask: radial-gradient(circle at 0 0, transparent calc(var(--list-r) - 0.5px), #000 calc(var(--list-r) + 0.5px));
        }
        .st-platinum-main {
            fill: #F3F4F6;
        }        
        .st-platinum-base1 {
            fill: #000000;
        }
        .st-platinum-base2 {
            fill: #000000;
        }
        .st-platinum-glow {
            fill: #FBBF24;
        }        
        .st0_gs {
            fill: #FFFFFF;
        }        
        .st1_gs {
            fill: #FFFFFF;
        }        
        .st2_gs {
            fill: #000000;
        }        
        .st3_gs {
            fill: #000000;
        }        
        .stat-card {
            background-color: white;
            border-radius: 1.5rem;
            /* rounded-3xl */
            padding: 1.5rem;
            /* p-6 */
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            border: 1px solid #e5e7eb;
            /* border border-gray-200 */
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        .stat-card-title {
            font-size: 0.875rem;
            /* text-sm */
            font-weight: 600;
            /* font-semibold */
            color: #6b7280;
            /* text-gray-500 */
            text-transform: uppercase;
            /* uppercase */
            letter-spacing: 0.05em;
            /* tracking-wider */
            margin-bottom: 0.5rem;
            /* mb-2 */
        }
        .stat-card-value-large {
            font-size: 3.75rem;
            /* text-6xl */
            font-weight: 800;
            /* font-extrabold */
            line-height: 1;
        }        
        /* .stat-card-blue-5 { ... } */        
        .stat-card-blue-4 {
            background-color: #bfdbfe;
            /* bg-blue-200 */
            border-color: #93c5fd;
            /* border-blue-300 */
        }
        .stat-card-blue-4 .stat-card-title {
            color: #1d4ed8;
            /* text-blue-800 */
        }        
        .stat-card-blue-3 {
            background-color: #dbeafe;
            /* bg-blue-100 */
            border-color: #bfdbfe;
            /* border-blue-200 */
        }
        .stat-card-blue-3 .stat-card-title {
            color: #2563eb;
            /* text-blue-700 */
        }        
        .stat-card-blue-2 {
            background-color: #eff6ff;
            /* bg-blue-50 */
            border-color: #dbeafe;
            /* border-blue-100 */
        }
        .stat-card-blue-2 .stat-card-title {
            color: #3b82f6;
            /* text-blue-600 */
        }
        .stat-card-blue-2 .stat-card-value-large {
            color: #1d4ed8;
            /* text-blue-800 */
        }        
        .stat-card-blue-1 {
            background-color: #eff6ff;
            /* bg-blue-50 */
            border-color: #dbeafe;
            /* border-blue-100 */
        }
        .stat-card-blue-1 .stat-card-title {
            color: #3b82f6;
            /* text-blue-600 */
        }
        .stat-card-subtitle {
            font-size: 0.875rem;
            /* text-sm */
            font-weight: 500;
            /* font-medium */
            color: #6b7280;
            /* text-gray-500 */
            margin-top: 0.25rem;
            /* mt-1 */
        }        
        .stat-list {
            list-style-type: none;
            padding-left: 0;
            margin-top: 1rem;
            /* mt-4 */
            space-y: 0.75rem;            
            overflow-y: auto;
            max-height: 175px;            
        }
        .stat-list-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9375rem;
            /* text-[15px] */
            font-weight: 500;
            /* font-medium */
            color: #374151;
            /* text-gray-700 */
        }
        .stat-list-item-badge {
            font-size: 0.8125rem;
            /* text-[13px] */
            font-weight: 700;
            /* font-bold */
            color: #4b5563;
            /* text-gray-600 */
            background-color: #f3f4f6;
            /* bg-gray-100 */
            border-radius: 9999px;
            /* rounded-full */
            padding: 0.125rem 0.625rem;
            /* px-2.5 py-0.5 */
        }        
        .fade-line-divider {
            height: 1px;
            width: 100%;            
            background: linear-gradient(to right,
                    transparent 0%,
                    rgba(0, 0, 0, 0.3) 50%,
                    transparent 100%);            
            margin-top: 0.5rem;
            margin-bottom: 0.5rem;
        }        
        .help-tab-btn {
            display: flex;
            align-items: center;            
            width: auto;            
            padding: 0.75rem;
            /* py-3 px-3 */
            font-size: 0.875rem;
            /* text-sm */
            font-weight: 600;
            /* font-semibold */
            border-radius: 0.75rem;
            /* rounded-xl */
            transition: all 0.2s ease-in-out;
            border: 2px solid transparent;            
            flex-shrink: 0;
            justify-content: center;
        }        
        .help-tab-btn {
            color: #4b5563;
            /* text-gray-600 */
        }
        .help-tab-btn:hover {
            background-color: #f3f4f6;
            /* hover:bg-gray-100 */
            color: #1f2937;
            /* hover:text-gray-800 */
        }        
        .help-tab-btn.active {
            background-color: white;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            /* shadow-lg */
        }        
        .help-tab-btn.active[data-color-class="gray"] {
            color: #3b82f6;
            border-color: #e5e7eb;
        }        
        .help-tab-btn.active[data-color-class="blue"] {
            color: #2563eb;
            border-color: #dbeafe;
        }
        .help-tab-btn.active[data-color-class="purple"] {
            color: #7c3aed;
            border-color: #e9d5ff;
        }
        .help-tab-btn.active[data-color-class="amber"] {
            color: #d97706;
            border-color: #fde68a;
        }
        .help-tab-btn.active[data-color-class="green"] {
            color: #15803d;
            border-color: #dcfce7;
        }        
        .help-tab-content.active {
            display: block;            
            animation: fadeIn 0.3s ease-in-out;
        }
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }        
        @media (max-width: 767px) {
            .help-tab-btn {                
                justify-content: center;
            }            
        }        
        @media (min-width: 768px) {
            .help-tab-btn {                
                width: 100%;                
                padding: 0.5rem 1.5rem;
                /* py-3 px-4 */
                justify-content: flex-start;
            }
        }        
        .image-preview-box {
            width: 287px;
            cursor: crosshair;
            height: 320px;            
            border: 2px dashed #cbd5e1;
            /* border-gray-300 */
            border-radius: 0.75rem;
            /* rounded-xl */
            background-color: #f8fafc;
            /* bg-slate-50 */
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            overflow: hidden;            
            position: relative;
            transition: all 0.2s ease-in-out;
        }
        .image-preview-box:hover {
            border-color: #3b82f6;
            /* hover:border-blue-500 */
            background-color: #f1f5f9;
            /* hover:bg-slate-100 */
        }        
        .image-preview-box .text-container {
            text-align: center;
            color: #64748b;
            /* text-slate-500 */
            transition: opacity 0.2s ease-in-out;
        }        
        .image-preview-box .preview-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;            
            opacity: 0;
            transition: opacity 0.2s ease-in-out;
        }        
        .image-preview-box.has-image .text-container {
            opacity: 0;
            pointer-events: none;            
        }
        .image-preview-box.has-image .preview-img {
            opacity: 1;
        }        
        .level-banner-container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 0 1rem 0;
            margin-top: -10px;
            position: relative;
            z-index: 5;
        }
        .level-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            padding: 1rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            position: relative;
        }        
        .level-title-row {
            width: 100%;
            text-align: center;
            border-bottom: 1px solid #f1f5f9;
            padding-bottom: 0.5rem;
            margin-bottom: 0.5rem;
            position: relative;
        }
        .rank-title {
            font-size: 0.7rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #94a3b8;
        }
        .level-header {
            display: flex;
            justify-content: space-between;
            align-items: center; 
        }
        .rank-name-large {
            font-size: 1.25rem;
            font-weight: 900;
            color: #1e293b;
            line-height: 1.1;
            background: -webkit-linear-gradient(0deg, #1e293b, #475569);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }        
        @media (min-width: 640px) {
            .rank-name-large { font-size: 1.5rem; gap: 0.75rem; }
            .level-card { padding: 1.25rem; }
        }
        .emoji-fix {
            -webkit-text-fill-color: initial !important;
            background: none !important;
            font-style: normal;
        }
        .xp-text {
            font-family: 'Inter', monospace;
            font-size: 0.7rem;
            font-weight: 700;
            color: #94a3b8;
        }
        .xp-bar-track {
            width: 100%;
            height: 10px;
            background-color: #f1f5f9;
            border-radius: 99px;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
        }
        .xp-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #FFA500, #FF8C00);
            border-radius: 99px;
            transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }
        .xp-bar-fill::after {
            content: '';
            position: absolute;
            top: 0; left: 0; bottom: 0; right: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transform: translateX(-100%);
            animation: shimmer 2.5s infinite;
        }
        .xp-bar-labels {
            position: absolute;
            inset: 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 12px;
            z-index: 5;
            pointer-events: none;
            white-space: nowrap;
            font-size: 9px;
            font-weight: 700;
            color: #475569;
            letter-spacing: 0.04em;
        }
        .xp-bar-labels-fill {
            z-index: 6;
        }
        .xp-bar-labels-fill,
        .xp-bar-labels-fill span {
            color: #ffffff !important;
        }
        .xp-help-btn {
            position: absolute;
            left: 0;
            top: calc(50% - 0.25rem);
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            background-color: #C0C0C0;
            color: #000000;
            border: 1px solid #e2e8f0;
            border-radius: 50%;
            font-size: 11px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        .xp-help-btn:hover { background-color: #3b82f6; color: white; border-color: #3b82f6; }
        .year-compare-btn {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 10px 4px 8px;
            background-color: #eff6ff;
            color: #2563eb;
            border: 1.5px solid #bfdbfe;
            border-radius: 99px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.02em;
            cursor: pointer;
            transition: all 0.18s;
            white-space: nowrap;
        }
        .year-compare-btn:hover { background-color: #2563eb; color: white; border-color: #2563eb; }        
        #xp-details-modal { z-index: 100; }
        .xp-table-row {
            display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #e2e8f0; font-size: 0.85rem;
        }
        .xp-table-row:last-child { border-bottom: none; }
        .xp-rank-item {
            display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; color: #475569;
        }
        .xp-rank-item.current { background-color: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
        @keyframes shimmer { 100% { transform: translateX(100%); } }        
        .goty-icon {
            height: 1.5em;            
            width: auto;
            fill: currentColor;            
            display: inline-block;
            vertical-align: middle;
        }    
    .draggable-preview-container {
        cursor: grab;
        position: relative;
        overflow: hidden;
    }
    .draggable-preview-container:active {
        cursor: grabbing;
    }    
    .drag-hint {
            white-space: nowrap;
            width: max-content;
            max-width: 90%;
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);            
            background-color: rgba(15, 23, 42, 0.9); 
            color: #ffffff;
            padding: 6px 14px;
            border-radius: 99px;
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            pointer-events: none;
            opacity: 1;            
            border: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow: 0 4px 10px rgba(0,0,0,0.5); 
            transition: opacity 0.3s;
            z-index: 50;
            text-shadow: 0 1px 2px rgba(0,0,0,0.8);
        }
    .draggable-preview-container:hover .drag-hint {
            white-space: nowrap;
            width: max-content;
            max-width: 90%;
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);            
            background-color: rgba(15, 23, 42, 0.9); 
            color: #ffffff;
            padding: 6px 14px;
            border-radius: 99px; 
            font-size: 0.75rem;
            font-weight: 800; 
            text-transform: uppercase;
            letter-spacing: 0.05em;
            pointer-events: none;
            opacity: 1;
            border: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow: 0 4px 10px rgba(0,0,0,0.5); 
            transition: opacity 0.3s;
            z-index: 50;
            text-shadow: 0 1px 2px rgba(0,0,0,0.8);
        }
    .draggable-preview-container.has-image .preview-img {        
        object-position: 50% 50%; 
    }        
        @media (min-width: 640px) {            
        }        
        @media (min-width: 640px) {            
        }
        .year-tab-btn:hover {
            background-color: #f3f4f6; 
            border-color: #d1d5db;
            color: #111827;
        }        
        .animate-fade-in {
            animation: fadeInTab 0.3s ease-in-out;
        }
        @keyframes fadeInTab {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes bellPulse {
            0%, 100% { color: #475569; }
            50% { color: #3b82f6; }
        }
        @keyframes dotPulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.5); opacity: 0.6; }
        }
        #notif-bell-btn.has-notifs { animation: bellPulse 2s ease-in-out infinite; }
        #notif-bell-dot { animation: dotPulse 1.5s ease-in-out infinite; }
        .notif-item {
            display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px;
            border-bottom: 1px solid #f1f5f9; transition: background-color 0.15s;
        }
        .notif-item:last-child { border-bottom: none; }
        .notif-item:hover { background-color: #f8fafc; }
        .notif-item--unseen { background-color: #eff6ff; }
        .notif-item--unseen:hover { background-color: #dbeafe; }
        .notif-item-text { flex: 1; font-size: 12px; color: #334155; line-height: 1.4; }
        .notif-item-date { font-size: 9px; color: #94a3b8; font-weight: 600; white-space: nowrap; margin-top: 2px; }
        .notif-item-dismiss { flex-shrink: 0; padding: 5px; color: #94a3b8; cursor: pointer; border: none; background: #f1f5f9; border-radius: 8px; transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
        .notif-item-dismiss:hover { color: #ef4444; background: #fef2f2; }
        .announce-history-item {
            display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px;
            background: #f8fafc; border-radius: 10px; border: 1px solid #e2e8f0;
        }
        .announce-history-item .ah-text { flex: 1; font-size: 11px; color: #475569; line-height: 1.4; }
        .announce-history-item .ah-date { font-size: 9px; color: #94a3b8; font-weight: 600; }
        .announce-history-item .ah-delete { flex-shrink: 0; padding: 4px; color: #cbd5e1; cursor: pointer; border: none; background: none; border-radius: 6px; transition: all 0.15s; }
        .announce-history-item .ah-delete:hover { color: #ef4444; background: #fef2f2; }
        .announce-history-item .ah-edit { flex-shrink: 0; padding: 4px; color: #cbd5e1; cursor: pointer; border: none; background: none; border-radius: 6px; transition: all 0.15s; }
        .announce-history-item .ah-edit:hover { color: #3b82f6; background: #eff6ff; }
        .announce-history-item .ah-force-delete { flex-shrink: 0; padding: 4px; color: #cbd5e1; cursor: pointer; border: none; background: none; border-radius: 6px; transition: all 0.15s; }
        .announce-history-item .ah-force-delete:hover { color: #f97316; background: #fff7ed; }        
        @media (min-width: 640px) {            
        }        
        .year-tabs-container {
            display: flex !important;
            width: 100% !important;
            max-width: 1700px !important;
            margin-left: auto !important;
            margin-right: auto !important;
            justify-content: center !important;
            align-items: flex-end !important;
            flex-wrap: nowrap !important;
            padding: 0 10px !important;
            gap: 6px !important;
            margin-bottom: 0 !important;
            overflow: visible !important;
        }        
        .year-tab-btn {
            flex: 1 1 0px !important;
            min-width: 0 !important;            
            border-radius: 10px !important; 
            margin-bottom: 6px !important;
            border: 1px solid #e5e7eb !important;
            background-color: white !important;
            color: #6b7280 !important;            
            padding: 8px 2px !important;
            text-align: center !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            position: relative !important;
            transition: none !important;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
        }        
        .year-tab-btn.active {
            background-color: #1e293b !important; /* Slate-900 */
            color: white !important;
            border: 1px solid #1e293b !important;
            z-index: 20 !important;            
            transform: none !important; 
        }       
        .t-year { font-size: 14px; font-weight: 900; line-height: 1; }
        .t-label { display: none; }
        .active .t-label { display: block; }
        .t-count { font-size: 9px; font-weight: 700; text-transform: uppercase; margin-top: 2px; white-space: nowrap; overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
        .t-bar   { width: 20px; height: 2px; border-radius: 99px; margin: 3px 0; }        
        .active .t-year { color: white !important; }
        .active .t-bar { background-color: #3b82f6 !important; }
        .active .t-count { color: #94a3b8 !important; }
        .year-tab-btn.fav-year:not(.active) { background-color: #fdf3d8 !important; border-color: #E0A92E !important; color: #9a6a00 !important; }
        .year-tab-btn.fav-year:not(.active) .t-year { color: #9a6a00 !important; }
        .year-tab-btn.fav-year.active { box-shadow: 0 0 0 2px #E0A92E !important; }
        .year-tab-btn.fav-year.active .t-bar { background-color: #E0A92E !important; }
        .user-alias-perfil { display: none; }
        @media (max-width: 767px) {
            #user-display-container:not(.uv-visitor) .user-alias-name { display: none !important; }
            #user-display-container:not(.uv-visitor) .user-alias-perfil { display: inline !important; }
        }
        .fav-year-pub { background-color: rgba(224,169,46,0.15); border: 1px solid rgba(224,169,46,0.5); gap: 6px; padding: 6px 12px; }
        .fav-year-pub-icon { width: 13px; height: 13px; flex-shrink: 0; }
        .fav-year-pub-text { font-size: 11px; font-weight: 700; color: #E0A92E; white-space: nowrap; }
        .follow-add-input { flex: 999 1 140px; min-width: 140px; }
        .follow-add-btn { flex: 1 0 auto; }
        @media (min-width: 640px) {
            .year-tabs-container.has-year-carousel { overflow: visible !important; flex-wrap: nowrap !important; align-items: flex-end !important; gap: 4px !important; }
            .has-year-carousel .year-carousel-wrapper { display: flex; align-items: flex-end; flex: 0 1 auto; min-width: 0; gap: 4px; }
            .has-year-carousel .year-carousel-track { display: flex; align-items: flex-end; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; gap: 4px; scroll-behavior: smooth; }
            .has-year-carousel .year-carousel-track::-webkit-scrollbar { display: none; }
            .has-year-carousel .year-carousel-track .year-tab-btn { flex: 0 0 calc((100% - 48px) / 13) !important; min-width: 0 !important; }
            .has-year-carousel .year-carousel-arrow { flex: 0 0 auto; align-self: flex-end; width: 30px; height: 44px; border: 1px solid #cbd5e1; background: #ffffff; color: #334155; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: opacity 0.2s, background-color 0.15s, border-color 0.15s, color 0.15s; }
            .has-year-carousel .year-carousel-arrow:hover { background: #e2e8f0; border-color: #94a3b8; color: #1e293b; }
            .has-year-carousel > .todos-year-tab { flex: 0 0 auto !important; }
        }
        @media (max-width: 639px) {
            .following-sort-pill { flex: 1 1 0%; }
        }
        @media (max-width: 639px) {
            .year-tabs-container.has-todos-top { flex-wrap: wrap !important; }
            .year-tabs-container.has-todos-top .todos-year-tab {
                flex: 0 0 100% !important;
                order: -1 !important;
                border-radius: 10px !important;
                min-height: 36px !important;
                padding: 6px 2px !important;
                margin-bottom: 0 !important;
            }
            .year-tabs-container.has-todos-top .todos-year-tab .t-bar { display: none !important; }
            .year-tabs-container.has-todos-top .todos-year-tab .t-count { display: none !important; }
            .year-carousel-wrapper {
                display: flex;
                align-items: center;
                width: 100%;
                gap: 0;
                order: 1;
            }
            .year-carousel-track {
                display: flex;
                flex: 1;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                gap: 6px;
                scrollbar-width: none;
                padding: 0 2px;
            }
            .year-carousel-track::-webkit-scrollbar { display: none; }
            .year-carousel-track .year-tab-btn {
                flex: 0 0 calc((100% - 18px) / 4) !important;
                scroll-snap-align: start;
                min-width: 0 !important;
            }
            .year-carousel-arrow {
                flex: 0 0 auto;
                width: 36px;
                height: 36px;
                border: none;
                background: none;
                color: #374151;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                padding: 0;
                transition: opacity 0.2s;
                -webkit-tap-highlight-color: transparent;
            }
            .has-year-carousel > .year-tab-btn:not(.todos-year-tab) { display: none !important; }
            .has-year-carousel > .todos-year-tab { order: -1; }
        }
        .todos-year-section {
            content-visibility: auto;
            contain-intrinsic-size: auto 800px;
            padding: 20px 14px;
            margin: 0 -14px;
        }
        .todos-year-label {
            font-size: 1.1rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: #64748b;
            text-align: center;
            padding: 2rem 0 0.75rem;
            border-top: 1px dashed #e2e8f0;
            margin-top: 1.5rem;
        }
        .todos-year-label:first-child { border-top: none; margin-top: 0; padding-top: 0.5rem; }
        .view-dropdown-row {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 120px 10px 14px; cursor: pointer;
            transition: background-color 0.15s;
            border-bottom: 1px solid #f1f5f9;
            position: relative;
        }
        .view-dropdown-row:last-child { border-bottom: none; }
        .view-dropdown-row:hover { background-color: #f8fafc; }
        .view-dropdown-row.active-view { background-color: #eff6ff; color: #2563eb; }
        .view-dropdown-row.active-view svg:first-child { color: #2563eb; }
        .view-month-toggle { position: relative; flex-shrink: 0; cursor: pointer; display: flex; align-items: center; }
        .view-dropdown-row > .view-month-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
        .vmt-track {
            width: 36px; height: 20px; border-radius: 10px;
            background-color: #cbd5e1; transition: background-color 0.2s;
            position: relative;
        }
        .vmt-thumb {
            position: absolute; top: 2px; left: 2px;
            width: 16px; height: 16px; border-radius: 50%;
            background-color: white; transition: transform 0.2s;
            box-shadow: 0 1px 3px rgba(0,0,0,0.15);
        }
        .view-month-toggle input:checked + .vmt-track { background-color: #3b82f6; }
        .view-month-toggle input:checked + .vmt-track .vmt-thumb { transform: translateX(16px); }
        .grid-label-toggle-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; border-bottom: 1px solid #f1f5f9; }
        .grid-label-toggle-panel.open { max-height: 300px; }
        .grid-label-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 14px 5px 38px; font-size: 11px; font-weight: 600; color: #64748b; }
        .grid-label-chevron { transition: transform 0.25s ease; }
        .grid-label-chevron.open { transform: rotate(180deg); }
        body.hide-card-platform .card-platform-badge { display: none !important; }
        body.hide-card-hours .badge-top-left { display: none !important; }
        body.hide-card-platform .ctb-platform { display: none !important; }
        body.hide-card-hours .card-content .card-hours-inline { display: none !important; }
        body.hide-card-dlc .ctb-dlc { display: none !important; }
        body.hide-card-platform .card-top-band:not(:has(.ctb-dlc)) { display: none !important; }
        body.hide-card-platform.hide-card-dlc .card-top-band { display: none !important; }
        body.hide-card-rating .card-content .card-rating-text { display: none !important; }
        body.hide-card-rating .card-content .card-hours-inline { border-left: none !important; margin-left: 0 !important; padding-left: 0 !important; }
        body.hide-card-rating .card-content .card-rating:not(:has(.card-hours-inline)) .card-trophy-progress { border-left: none !important; margin-left: 0 !important; padding-left: 0 !important; }
        body.hide-card-rating.hide-card-hours .card-content .card-trophy-progress { border-left: none !important; margin-left: 0 !important; padding-left: 0 !important; }
        body.hide-card-rating .card-content .card-rating:not(:has(.card-hours-inline)):not(:has(.card-trophy-progress)) { display: none !important; }
        body.hide-card-rating.hide-card-hours .card-content .card-rating:not(:has(.card-trophy-progress)) { display: none !important; }
        body.hide-card-rating.hide-card-trophy-progress .card-content .card-rating:not(:has(.card-hours-inline)) { display: none !important; }
        body.hide-card-rating.hide-card-hours.hide-card-trophy-progress .card-content .card-rating { display: none !important; }
        body.hide-card-completion .completion-trophy-marker { visibility: hidden !important; }
        body.hide-card-trophy-progress .card-trophy-progress { display: none !important; }
        body.hide-card-times-completed .card-times-completed { display: none !important; }
        .month-group-section { margin-bottom: 1.5rem; }
        .month-group-label {
            font-size: 0.85rem; font-weight: 800; text-transform: uppercase;
            letter-spacing: 0.15em; color: #64748b; text-align: center;
            padding: 1rem 0 0.6rem; border-top: 1px dashed #e2e8f0; margin-top: 1rem;
        }
        .month-group-section:first-child .month-group-label { border-top: none; margin-top: 0; padding-top: 0.25rem; }
        .todos-show-year-wrapper { display: flex; justify-content: center; padding: 2rem 0 1rem; }
        .todos-show-year-btn {
            padding: 10px 28px;
            border-radius: 99px;
            background-color: #1e293b;
            color: white;
            font-size: 0.8rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            border: none;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .todos-show-year-btn:hover { background-color: #3b82f6; }
        .todos-show-year-btn:disabled { background-color: #94a3b8; cursor: default; }
        @media (min-width: 640px) {
            .year-tabs-container {
                gap: 4px !important;
                margin-bottom: -1px !important;
                overflow-x: auto !important;
                scrollbar-width: none !important;
                justify-content: center !important;
            }
            .year-tabs-container::-webkit-scrollbar { display: none; }
            .year-tab-btn {
                flex: 0 0 auto !important;
                min-width: 100px !important;                
                border-radius: 12px 12px 0 0 !important;
                margin-bottom: 0 !important;
                border-bottom: none !important;
                padding: 12px 14px !important;
            }            
            .year-tab-btn.active {
                padding-bottom: 16px !important;
                margin-bottom: -1px !important;
                box-shadow: 0 -4px 10px -2px rgba(0, 0, 0, 0.1) !important;
            }            
            .t-year { font-size: 24px; }
            .t-count { font-size: 11px; }
            .t-bar { width: 30px; height: 3px; margin: 5px 0; }
        }    
    .stat-card {
        background-color: #ffffff;
        border-radius: 1rem; 
        padding: 1rem; 
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
        border: 1px solid #f1f5f9;
        display: flex;
        flex-direction: column;
        height: 100%;
        transition: all 0.3s ease;
        position: relative;
        overflow: visible;
    }
    .stat-card:hover {
        transform: translateY(-2px); 
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
        border-color: #e2e8f0;
    }
    .stat-card-title {
        font-family: 'Inter', sans-serif;
        font-size: 0.85rem; 
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #f8fafc;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-align: center;
        color: #475569;
    }
    .stat-card-title svg {
        width: 1.15rem;
        height: 1.15rem;
        opacity: 0.75;
    }
    .stat-list {
        list-style-type: none;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        flex-grow: 1;        
        min-height: 150px;
        max-height: 250px;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }
    .stat-list::-webkit-scrollbar { width: 4px; }
    .stat-list::-webkit-scrollbar-track { background: transparent; }
    .stat-list::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 20px; }    
    .stat-list-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
        font-weight: 500;
        color: #475569;
        border-bottom: 1px dashed #f1f5f9;
    }
    .stat-list-item:last-child { border-bottom: none; }
    .stat-list-item:hover { background-color: #f8fafc; color: #0f172a; }
    .stat-list-item-badge {
        font-size: 0.7rem;
        font-weight: 700;
        color: #64748b;
        background-color: #f1f5f9;
        padding: 0.2rem 0.5rem;
        border-radius: 999px;
    }    
    .stat-card-footer {
        margin-top: auto;
        padding-top: 0.75rem;
        border-top: 2px solid #f8fafc;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
    }
    .stat-footer-item {
        text-align: center;
        padding: 0 0.5rem;
        flex: 1;
    }
    .stat-subtitle {
        font-size: 0.7rem;
        text-transform: uppercase;
        font-weight: 700;
        color: #64748b;
        margin-bottom: 0.2rem;
        display: block;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }
    .stat-big-value {
        font-size: 1.75rem;
        font-weight: 900;
        line-height: 1;
        letter-spacing: -0.05em;
        display: block;
    }
    .stat-separator {
        width: 1px;
        height: 30px; 
        background-color: #f1f5f9;
        flex-shrink: 0;
    }    
    #goty-image {
        object-fit: cover;
        object-position: center;
    }    
    .card-blue .stat-card-title { color: #1d4ed8; }
    .card-blue .stat-big-value { color: #1e40af; }
    .card-indigo .stat-card-title { color: #4338ca; }
    .card-sky .stat-card-title { color: #0369a1; }
    .card-sky .stat-big-value { color: #075985; }    
        #goty-card-container {
            padding: 0 !important;
            border: 2px solid #fbbf24 !important;
            box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3), 0 4px 6px -2px rgba(245, 158, 11, 0.1) !important;
            min-height: 250px !important;
            height: 100%; 
            overflow: hidden;
            position: relative;
            background-color: #1f2937;
        }        
        #goty-card-container > h4.stat-card-title {
            display: none !important;
        }
        #todos-fav-game-card {
            padding: 0 !important;
            border: 2px solid #fbbf24 !important;
            box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3), 0 4px 6px -2px rgba(245, 158, 11, 0.1) !important;
            min-height: 250px !important;
            height: 100%;
            overflow: hidden;
            position: relative;
            background-color: #1f2937;
        }
        #todos-fav-game-card > h4.stat-card-title {
            display: none !important;
        }
        #todos-fav-game-card > .absolute.-right-8 {
            display: none !important;
        }
                #goty-image {
            width: 100%;
            height: 100%;
            object-fit: cover;            
            position: absolute;
            top: 0;
            left: 0;
            transition: transform 0.5s ease;
            z-index: 0;
        }
        #goty-card-container:hover #goty-image {
            transform: scale(1.05);
        }        
        #goty-filled-state .absolute.inset-0 {
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, transparent 100%) !important;
            z-index: 1;
        }        
        #goty-filled-state .absolute.bottom-0 {
            z-index: 10;
            padding: 1.5rem !important;
            text-align: center !important;
            width: 100%;
        }        
        #goty-filled-state .inline-flex {
            background-color: #fbbf24 !important; /* Amber-400 */
            color: #78350f !important; /* Amber-900 */
            border: none !important;
            font-weight: 900 !important;
            box-shadow: 0 2px 5px rgba(0,0,0,0.3);
            margin-bottom: 0.5rem;
        }        
        #goty-filled-state .inline-flex svg {
            fill: #78350f !important;
        }        
        #goty-name {
            font-size: 1.5rem !important;
            line-height: 1.2;
            text-align: center;
            text-shadow: 0 2px 4px rgba(0,0,0,0.8);
        }        
        #goty-empty-state {
            background: transparent;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            min-height: 250px;
            position: relative;
            overflow: hidden;
        }
        #goty-empty-state::before {
            content: none;
        }
        @keyframes goty-pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.0), 0 0 30px rgba(251,191,36,0.10); }
            50% { box-shadow: 0 0 0 8px rgba(251,191,36,0.0), 0 0 50px rgba(251,191,36,0.22); }
        }
        #goty-empty-state .goty-trophy-ring {
            animation: goty-pulse 3s ease-in-out infinite;
        }
        .stat-list {
            max-height: 240px !important;
            min-height: 0 !important;
            overflow-y: auto !important;
            scrollbar-width: thin;
        }        
        .prog-bar-container {
            width: 100%;
            background-color: #f1f5f9;
            border-radius: 4px;
            height: 0.45rem;
            overflow: hidden;
            margin-top: 4px;
            margin-bottom: 2px;
        }
        .prog-bar-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 1s ease-out;
            width: 0%;            
        }        
        .stat-item-row {
            padding: 0.5rem 0.25rem;
            border-bottom: 1px dashed #e2e8f0;
        }
        .stat-item-row:last-child { border-bottom: none; }        
        .stat-label-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            font-weight: 600;
            color: #334155;
            line-height: 1.2;
        }        
        .stat-pct-text {
            font-size: 0.75rem;
            color: #94a3b8;
            font-weight: 500;
            margin-left: 4px;
        }
        .stat-icon-label {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .stat-icon-svg {
            width: 16px;
            height: 16px;
            opacity: 0.8;
            flex-shrink: 0;
        }        
                .timeline-track {
            position: relative;
            height: 4px;
            background-color: #e2e8f0; /* Slate-200 */
            border-radius: 4px;
            margin: 10px 0 20px 0; width: 100%;
        }
        .timeline-node {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background-color: #9ca3af;
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: all 0.2s ease;
            z-index: 10;
        }
        .timeline-node:hover {
            transform: translate(-50%, -50%) scale(1.5);
            z-index: 20;
            box-shadow: 0 4px 6px rgba(0,0,0,0.2);
        }
        /* Tooltip */
        .timeline-node .node-tooltip {
            position: absolute;
            bottom: 150%;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            background-color: #1e293b;
            color: white;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.7rem;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: all 0.2s ease;
            font-weight: 600;
            z-index: 30;
        }
        .timeline-node:hover .node-tooltip {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        .timeline-month-label {
            position: absolute;
            top: 12px;
            transform: translateX(-50%);
            font-size: 0.65rem;
            color: #94a3b8;
            font-weight: 700;
            text-transform: uppercase;
        }
        .timeline-month-tick {
            position: absolute;
            top: 0;
            height: 8px;
            width: 1px;
            background-color: #cbd5e1;
        }
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 6px;
            margin-top: 1rem;
        }
        .calendar-day-header {
            font-size: 0.7rem;
            text-align: center;
            font-weight: 800;
            color: #64748b; /* Slate-500 */
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding-bottom: 8px;
        }
        .calendar-day {
            aspect-ratio: 1/1;
            background-color: #f1f5f9;
            border-radius: 0.75rem;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            padding: 2px;
            overflow: visible !important; 
            transition: all 0.2s ease;
            border: 2px solid transparent;
        }        
        .calendar-day.has-game {
            background-color: #ffffff;
            border-color: #e2e8f0;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            cursor: pointer;
            z-index: 1;
        }
        .calendar-day:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            z-index: 10;
            border-color: #6366f1; 
        }        
        .calendar-day:not(.has-game):hover {
            background-color: #e2e8f0;
        }
        .day-number {
            position: absolute;
            top: 3px;
            left: 5px;
            font-size: 0.65rem;
            color: #94a3b8; /* Slate-400 */
            font-weight: 700;
            line-height: 1;
            pointer-events: none;
            z-index: 5;
        }
        .calendar-day.has-game .day-number {
            color: #334155;
            background-color: rgba(255,255,255,0.8);
            padding: 1px 3px;
            border-radius: 4px;
        }
        .cal-game-icon {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 0.5rem;
        }        
        .calendar-day.multi-game .cal-game-icon {
            width: 50%;
            height: 50%;
            border-radius: 0.25rem;
        }
        /* Tooltip simple */
        .cal-tooltip {
            position: absolute;
            bottom: 110%;
            left: 50%;
            transform: translateX(-50%);
            background: #1e293b; /* Slate-800 */
            color: white;
            padding: 6px 10px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            white-space: nowrap;
            display: none;
            z-index: 20;
            pointer-events: none;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        }        
        .cal-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #1e293b transparent transparent transparent;
        }
        .calendar-day:hover .cal-tooltip {
            display: block;
            animation: fadeInTooltip 0.2s ease-out;
        }
        @keyframes fadeInTooltip {
            from { opacity: 0; transform: translate(-50%, 5px); }
            to { opacity: 1; transform: translate(-50%, 0); }
        }        
        .hide-empty-months .month-empty {
            display: none !important;
        }
        .calendar-controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            margin-bottom: 1rem;
        }
        .filter-toggle-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.75rem;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            cursor: pointer;
            user-select: none;
            transition: color 0.2s;
        }
        .filter-toggle-label:hover {
            color: #3b82f6;
        }        
        .stat-interactive-container {
            position: relative !important;
            cursor: pointer !important; 
            transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        }        
        .stat-interactive-container:hover {
            transform: translateY(-4px) !important;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
            border-color: #3b82f6 !important; 
        }
        .ghost-tooltip {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: rgba(17, 24, 39, 0.85);
            color: white;
            font-size: 0.65rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 4px 8px;
            border-radius: 6px;
            opacity: 0; /* Invisible */
            transform: translateY(5px);
            transition: all 0.2s ease-in-out;
            pointer-events: none;
            backdrop-filter: blur(2px);
            z-index: 20;
            display: flex;
            align-items: center;
            gap: 4px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }        
        .stat-interactive-container:hover .ghost-tooltip {
            opacity: 1;
            transform: translateY(0);
        }        
        .ghost-icon { width: 10px; height: 10px; }
        .timeline-cluster {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 24px; 
            height: 24px;
            border-radius: 50%;
            background-color: #ffffff;
            border: 2px solid #475569;
            color: #1e293b;
            font-size: 11px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 20;
            box-shadow: 0 2px 5px rgba(0,0,0,0.15);
            transition: all 0.2s ease;
        }
        .timeline-cluster:hover, .timeline-node:hover {
            z-index: 50 !important; 
        }
        .timeline-cluster:hover {
            transform: translate(-50%, -50%) scale(1.25);
            border-color: #3b82f6;
            color: #1d4ed8;
            box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
        }
        /* Tooltip Base */
        .cluster-tooltip, .node-tooltip {
            position: absolute;
            bottom: 150%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #1e293b; /* Slate-800 */
            color: white;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.75rem;
            opacity: 0;
            visibility: hidden; 
            pointer-events: none;
            transition: all 0.2s ease;
            z-index: 60;
            min-width: 140px; 
            white-space: normal; 
            box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.4);
            text-align: left;
        }
        .timeline-cluster:hover .cluster-tooltip, 
        .timeline-node:hover .node-tooltip {
            visibility: visible; 
            opacity: 1;
            bottom: 160%; 
        }
        .tooltip-align-left {
            left: 0 !important;
            transform: translateX(0) !important;
            border-bottom-left-radius: 2px; 
        }
        .tooltip-align-right {
            left: auto !important;
            right: 0 !important;
            transform: translateX(0) !important;
            border-bottom-right-radius: 2px;
        }
        .tooltip-header {
            border-bottom: 1px solid rgba(255,255,255,0.2);
            margin-bottom: 6px;
            padding-bottom: 4px;
            color: #93c5fd;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            text-align: center;
        }
        .tooltip-row {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin-bottom: 3px;
            line-height: 1.3;
        }
        .tooltip-day {
            color: #94a3b8;
            font-weight: 700;
            font-size: 0.65rem;
            min-width: 18px;
        }
        .tooltip-name {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 150px;
        }
        .cluster-tooltip {
            pointer-events: none; 
        }
        .timeline-cluster:hover .cluster-tooltip,
        .timeline-cluster:active .cluster-tooltip {
            pointer-events: auto !important;
        }
        .cluster-tooltip::after {
            content: '';
            position: absolute;
            top: 100%; 
            left: 0;
            width: 100%;
            height: 20px; 
        }
        .tooltip-row:hover {
            background-color: rgba(255,255,255,0.15);
            border-radius: 4px;
            cursor: pointer;
        }
        .card-content {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 1.25rem;
            z-index: 50; 
            display: flex;
            flex-direction: column;
            gap: 4px;
            pointer-events: none;
        }
        .completion-trophy-marker {
            transition: transform 0.3s ease-out, filter 0.3s ease-out !important;
            transform: scale(1) !important;
            filter: drop-shadow(0 0 0 rgba(0,0,0,0));
            z-index: 40; 
            transform-origin: bottom right !important; 
        }
        body:not(.no-effects) .game-card-modern:hover .completion-trophy-marker {
            transform: scale(2.0) !important; 
            filter: drop-shadow(0 0 10px rgba(255,215,0,0.8));
        }
        .fab-btn {
            position: relative; 
        }
        .fab-notification {
            position: absolute;
            bottom: 100%; 
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            background-color: #22c55e; /* Green-500 */
            color: white;
            padding: 4px 10px;
            border-radius: 8px;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none; /* Click-through */
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            z-index: 100;
            margin-bottom: 8px;
        }
        .fab-notification::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #22c55e transparent transparent transparent;
        }
        .fab-notification.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        .fab-container.hidden { display: none !important; }
        .fab-container {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 55; 
            display: flex;
            align-items: center;
            background-color: #1e293b; /* Slate-900 */
            border-radius: 9999px;
            padding: 6px 8px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            animation: slideUpFab 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }
        @keyframes slideUpFab {
            from { transform: translate(-50%, 100px); opacity: 0; }
            to { transform: translate(-50%, 0); opacity: 1; }
        }
        .fab-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            color: white;
            padding: 8px 24px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-radius: 20px;
            min-width: 100px;
        }
        @media (hover: hover) {
        .fab-btn:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        }
        .fab-btn:active {
            transform: scale(0.95);
        }
        .fab-icon {
            color: #3b82f6; /* Blue-500 */
            margin-bottom: 2px;
            transition: transform 0.2s;
        }
        @media (hover: hover) {
        .fab-btn:hover .fab-icon {
            transform: scale(1.1);
            color: #60a5fa; /* Blue-400 */
        }
        }
        .fab-label {
            font-size: 0.65rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #cbd5e1; /* Slate-300 */
        }
        .fab-separator {
            width: 1px;
            height: 30px;
            background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
            margin: 0 4px;
        }
        .fab-top-wrap { display: flex; align-items: center; min-width: 0; max-width: 0; opacity: 0; overflow: hidden; transition: max-width 0.6s cubic-bezier(0.16,1,0.3,1), opacity 0.5s ease; }
        #main-fab.show-top .fab-top-wrap { max-width: 170px; opacity: 1; }
        #main-fab.show-top { width: max-content; max-width: 96vw; }
        #main-fab.fab-visitor-only { display: none; }
        #main-fab.fab-visitor-only.show-top { display: flex; }
        #main-fab.fab-visitor-only #fab-add-trigger,
        #main-fab.fab-visitor-only #fab-share-trigger,
        #main-fab.fab-visitor-only .fab-separator { display: none; }
        #main-fab.fab-visitor-only { left: auto; right: 30px; transform: translateY(0); animation: slideUpFabRight 0.5s cubic-bezier(0.16,1,0.3,1); }
        #main-fab.fab-visitor-only:hover { transform: translateY(-2px); }
        @keyframes slideUpFabRight { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        @media (max-width: 640px) {
            #main-fab.fab-visitor-only { right: 15px; transform: translateY(0) scale(0.9); }
            #main-fab.fab-visitor-only:hover { transform: translateY(-2px) scale(0.9); }
        }
        @media (max-width: 640px) {
            .fab-container {
                bottom: 15px !important; 
                padding: 4px 6px !important; 
                transform: translateX(-50%) scale(0.9); 
            }
            .fab-btn {
                padding: 6px 16px !important; 
                min-width: 75px !important;   
            }
            .fab-label {
                font-size: 0.6rem !important; 
                margin-top: 1px !important;
            }
            .fab-icon {
                transform: scale(0.9); 
                margin-bottom: 0 !important;
            }
        }
        #add-game-modal {
            z-index: 60; 
        }
        .add-modal-content {
            max-height: 85vh;
            overflow-y: auto;
        }
                #header-right-group {
                    display: flex;
                    align-items: center;
                    gap: 0.5rem;
                }
        .fab-container.hidden { display: none !important; }
        .fab-container {
            opacity: 0.5;
            transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
        }
        .fab-container:hover {
            opacity: 1; 
            transform: translate(-50%, -2px); 
        }
        .image-preview-box-portrait {
            width: 240px; 
            height: 320px;  
            cursor: crosshair;
            border: 2px dashed #cbd5e1;
            border-radius: 0.75rem;
            background-color: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
            transition: all 0.2s ease-in-out;
            margin-top: 0; 
        }
        .image-preview-box-portrait:hover {
            border-color: #3b82f6;
            background-color: #f1f5f9;
        }
        .image-preview-box-portrait .preview-img {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 0.2s ease-in-out;
        }
        .image-preview-box-portrait.has-image .preview-img { opacity: 1; }
        .image-preview-box-portrait.has-image .text-container { opacity: 0; pointer-events: none; }
        .image-preview-box-portrait .text-container {
            text-align: center; color: #64748b; transition: opacity 0.2s ease-in-out; padding: 1rem;
        }
        .game-card-modern {
            position: relative;
            width: 100%;
            height: 320px; 
            border-radius: 1.5rem; 
            overflow: hidden;
            background-color: #1e293b; /* Slate-800 base */
            box-shadow: none;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(255, 255, 255, 0.1);
            cursor: pointer;
            isolation: isolate;
        }
        .game-card-modern:hover {
            transform: translateY(-6px) scale(1.02);
            box-shadow: none;
            border-color: rgba(59, 130, 246, 0.5); 
        }
        .game-card-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease;
        }
        .game-card-modern:hover .game-card-img {
            transform: scale(1.1);
        }
        .game-card-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(
                to top,
                rgba(15, 23, 42, 1) 0%,      
                rgba(15, 23, 42, 0.8) 25%,   
                rgba(15, 23, 42, 0.2) 60%,
                transparent 100%
            );
            z-index: 10;
            pointer-events: none; 
        }
        /* Badges Flotantes (Glassmorphism) */
        .card-badge {
            position: absolute;
            z-index: 20;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 9999px;
            padding: 4px 10px;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            gap: 4px;
            border: 1px solid rgba(255,255,255,0.15);
        }
        .badge-top-left { top:  6px; left:  6px; background-color: rgba(0, 0, 0, 0.6); }
        .badge-top-right { top:  6px; right:  6px; }
        .card-title {
            font-family: 'Inter', sans-serif;
            font-size: 1.1rem;
            font-weight: 900;
            line-height: 1.2;
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        /* Rating Pill */
        .card-rating {
            display: inline-flex;
            align-self: flex-start;
            margin-top: 4px;
            padding: 2px 8px;
            border-radius: 6px;
            font-size: 0.65rem;
            font-weight: 700;
            background-color: rgba(255,255,255,0.1);
            color: #cbd5e1;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .card-actions {
            position: absolute;
            top: 50px; 
            left: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            z-index: 50; 
            opacity: 0;
            transform: translateX(-10px);
            transition: all 0.3s ease;
            pointer-events: auto; 
        }
        .game-card-modern:hover .card-actions {
            opacity: 1;
            transform: translateX(0);
        }
        .game-card-modern:hover .badge-top-left {
            opacity: 1; 
            transition: opacity 0.2s;
        }
        .game-card-active-v3 {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 320px; 
            background-color: #0f172a; 
            border-radius: 1.5rem;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid #334155; 
            position: relative;
            isolation: isolate;
        }
        .game-card-active-v3:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.3); 
            border-color: #3b82f6;
        }
        .active-v3-image {
            height: 70%; 
            width: 100%;
            position: relative;
            overflow: hidden;
        }
        .active-v3-img-tag {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease;
            mask-image: linear-gradient(to bottom, black 80%, transparent 100%); 
            -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        }
        .game-card-active-v3:hover .active-v3-img-tag {
            transform: scale(1.1);
        }
        .active-v3-ring {
            width: 58px;
            height: 58px;
            user-select: none;
            -webkit-user-select: none;
            -webkit-touch-callout: none;
        }
        .active-v3-ring svg {
            width: 100%;
            height: 100%;
        }
        .active-v3-ring .ring-pct {
            font-size: 0.95rem;
        }
        @media (min-width: 1024px) {
            .active-v3-ring {
                width: 85px;
                height: 85px;
            }
            .active-v3-ring .ring-pct {
                font-size: 1.15rem;
            }
        }
        .active-v3-top-title {
            display: none;
        }
        @media (max-width: 1023px) {
            .active-v3-top-title {
                display: block;
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                z-index: 12;
                padding: 9px 12px 20px 12px;
                font-family: 'Inter', sans-serif;
                font-weight: 700;
                font-size: 0.9rem;
                line-height: 1.2;
                color: #f8fafc;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                text-shadow: 0 1px 3px rgba(0,0,0,0.95);
                background: linear-gradient(to bottom, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.42) 55%, rgba(0,0,0,0) 100%);
                pointer-events: none;
            }
            .game-card-active-v3 .active-v3-title {
                display: none;
            }
        }
        .active-v3-body {
            height: 30%;
            padding: 0 1.25rem 1rem 1.25rem; 
            display: flex;
            flex-direction: column;
            justify-content: flex-end; 
            position: relative;
            z-index: 20;
        }
        .active-v3-title {
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            font-weight: 700;
            color: #f1f5f9; 
            margin-bottom: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .active-v3-badge {
            position: absolute;
            top:  6px;
            right:  6px;
            background-color: rgba(15, 23, 42, 0.85); 
            backdrop-filter: blur(4px);
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            color: #94a3b8; /* Slate-400 */
            border: 1px solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            gap: 4px;
            z-index: 10;
        }
        .v3-slider-container {
            position: relative;
            width: 100%;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        input[type=range].v3-range {
            -webkit-appearance: none;
            flex-grow: 1;
            height: 16px;
            border-radius: 999px;
            background: #1e293b;
            border: 1px solid rgba(148,163,184,0.3);
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
            outline: none;
            cursor: pointer;
        }
        .v3-slider-container:hover input[type=range].v3-range {
            height: 16px;
        }
        input[type=range].v3-range::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: radial-gradient(circle at 40% 35%, #ffffff 0%, #67e8f9 55%, #22d3ee 100%);
            border: none;
            cursor: grab;
            box-shadow: 0 0 8px rgba(34,211,238,0.85);
            margin-top: 1px;
            transition: transform 0.1s;
        }
        input[type=range].v3-range::-webkit-slider-thumb:active {
            transform: scale(1.25);
            cursor: grabbing;
        }
        .v3-percent-text {
            font-size: 0.9rem;
            font-weight: 800;
            color: #e2e8f0;
            min-width: 3ch;
            text-align: right;
        }
        .active-v3-actions {
            position: absolute;
            top:  44px;
            left:  6px;
            display: flex;
            gap: 6px;
            opacity: 0;
            transform: translateY(-5px);
            transition: all 0.2s ease;
            z-index: 30;
        }
        .game-card-active-v3:hover .active-v3-actions {
            opacity: 1;
            transform: translateY(0);
        }
            70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
        }
    .firework-particle {
        position: fixed; 
        width: 6px;
        height: 6px;
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000; 
        opacity: 0;
    }
.st0{fill:#2748ec;}
        #goty-card-container {
            padding: 0 !important; 
            border: 2px solid #fbbf24 !important; 
            box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3), 0 4px 6px -2px rgba(245, 158, 11, 0.1) !important; 
            min-height: 250px !important; 
            height: 100%; 
            overflow: hidden;
            position: relative;
            background-color: #1f2937; 
        }
        #goty-card-container > h4.stat-card-title {
            display: none !important;
        }
        #goty-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            transition: transform 0.5s ease;
            z-index: 0;
        }
        #goty-card-container:hover #goty-image {
            transform: scale(1.05); 
        }
        #goty-filled-state .absolute.inset-0 {
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, transparent 100%) !important;
            z-index: 1;
        }
        #goty-filled-state .absolute.bottom-0 {
            z-index: 10;
            padding: 1.5rem !important;
            text-align: center !important;
            width: 100%;
        }
        #goty-filled-state .inline-flex {
            background-color: #fbbf24 !important; /* Amber-400 */
            color: #78350f !important; /* Amber-900 */
            border: none !important;
            font-weight: 900 !important;
            box-shadow: 0 2px 5px rgba(0,0,0,0.3);
            margin-bottom: 0.5rem;
        }
        #goty-filled-state .inline-flex svg {
            fill: #78350f !important; 
        }
        #goty-name {
            font-size: 1.5rem !important; 
            line-height: 1.2;
            text-align: center;
            text-shadow: 0 2px 4px rgba(0,0,0,0.8);
        }
        #goty-empty-state {
            background: transparent;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            min-height: 250px;
            position: relative;
            overflow: hidden;
        }
        #goty-empty-state::before {
            content: none;
        }
        .stat-list {
            max-height: 240px !important; 
            min-height: 0 !important;     
            overflow-y: auto !important;  
            scrollbar-width: thin;
        }
        .prog-bar-container {
            width: 100%;
            background-color: #f1f5f9;
            border-radius: 4px;
            height: 0.45rem;
            overflow: hidden;
            margin-top: 4px;
            margin-bottom: 2px;
        }
        .prog-bar-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 1s ease-out;
            width: 0%;
        }
        .stat-item-row {
            padding: 0.5rem 0.25rem;
            border-bottom: 1px dashed #e2e8f0;
        }
        .stat-item-row:last-child { border-bottom: none; }
        .stat-label-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            font-weight: 600;
            color: #334155;
            line-height: 1.2;
        }
        .stat-pct-text {
            font-size: 0.75rem;
            color: #94a3b8; 
            font-weight: 500;
            margin-left: 4px;
        }
        .stat-icon-label {
            display: flex;
            align-items: center;
            gap: 8px; 
        }
        .stat-icon-svg {
            width: 16px; 
            height: 16px;
            opacity: 0.8; 
            flex-shrink: 0;
        }
        .timeline-track {
            position: relative;
            height: 4px;
            background-color: #e2e8f0; /* Slate-200 */
            border-radius: 4px;
            margin: 10px 0 20px 0; width: 100%; 
        }
        .timeline-node {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background-color: #9ca3af;
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: all 0.2s ease;
            z-index: 10;
        }
        .timeline-node:hover {
            transform: translate(-50%, -50%) scale(1.5);
            z-index: 20;
            box-shadow: 0 4px 6px rgba(0,0,0,0.2);
        }
        /* Tooltip */
        .timeline-node .node-tooltip {
            position: absolute;
            bottom: 150%;
            left: 50%;
            transform: translateX(-50%) translateY(10px);
            background-color: #1e293b;
            color: white;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.7rem;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: all 0.2s ease;
            font-weight: 600;
            z-index: 30;
        }
        .timeline-node:hover .node-tooltip {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        .timeline-month-label {
            position: absolute;
            top: 12px;
            transform: translateX(-50%);
            font-size: 0.65rem;
            color: #94a3b8;
            font-weight: 700;
            text-transform: uppercase;
        }
        .timeline-month-tick {
            position: absolute;
            top: 0;
            height: 8px;
            width: 1px;
            background-color: #cbd5e1;
        }
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 6px; 
            margin-top: 1rem;
        }
        .calendar-day-header {
            font-size: 0.7rem;
            text-align: center;
            font-weight: 800;
            color: #64748b; /* Slate-500 */
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding-bottom: 8px;
        }
        .calendar-day {
            aspect-ratio: 1/1;
            background-color: #f1f5f9;
            border-radius: 0.75rem;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            padding: 2px;
            overflow: visible !important; 
            transition: all 0.2s ease;
            border: 2px solid transparent;
        }
        .calendar-day.has-game {
            background-color: #ffffff;
            border-color: #e2e8f0;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            cursor: pointer;
            z-index: 1;
        }
        .calendar-day:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            z-index: 10;
            border-color: #6366f1; 
        }
        .calendar-day:not(.has-game):hover {
            background-color: #e2e8f0;
        }
        .day-number {
            position: absolute;
            top: 3px;
            left: 5px;
            font-size: 0.65rem;
            color: #94a3b8; /* Slate-400 */
            font-weight: 700;
            line-height: 1;
            pointer-events: none;
            z-index: 5;
        }
        .calendar-day.has-game .day-number {
            color: #334155; 
            background-color: rgba(255,255,255,0.8);
            padding: 1px 3px;
            border-radius: 4px;
        }
        .cal-game-icon {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 0.5rem; 
        }
        .calendar-day.multi-game .cal-game-icon {
            width: 50%;
            height: 50%;
            border-radius: 0.25rem;
        }
        /* Tooltip simple */
        .cal-tooltip {
            position: absolute;
            bottom: 110%;
            left: 50%;
            transform: translateX(-50%);
            background: #1e293b; /* Slate-800 */
            color: white;
            padding: 6px 10px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            white-space: nowrap;
            display: none;
            z-index: 20;
            pointer-events: none;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        }
        .cal-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #1e293b transparent transparent transparent;
        }
        .calendar-day:hover .cal-tooltip {
            display: block;
            animation: fadeInTooltip 0.2s ease-out;
        }
        @keyframes fadeInTooltip {
            from { opacity: 0; transform: translate(-50%, 5px); }
            to { opacity: 1; transform: translate(-50%, 0); }
        }
        .hide-empty-months .month-empty {
            display: none !important;
        }
        .calendar-controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            margin-bottom: 1rem;
        }
        .filter-toggle-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.75rem;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            cursor: pointer;
            user-select: none;
            transition: color 0.2s;
        }
        .filter-toggle-label:hover {
            color: #3b82f6;
        }
        .stat-interactive-container {
            position: relative !important;
            cursor: pointer !important; 
            transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        }
        .stat-interactive-container:hover {
            transform: translateY(-4px) !important;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
            border-color: #3b82f6 !important; 
        }
        .ghost-tooltip {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: rgba(17, 24, 39, 0.85); 
            color: white;
            font-size: 0.65rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 4px 8px;
            border-radius: 6px;
            opacity: 0; /* Invisible */
            transform: translateY(5px); 
            transition: all 0.2s ease-in-out;
            pointer-events: none;
            backdrop-filter: blur(2px);
            z-index: 20;
            display: flex;
            align-items: center;
            gap: 4px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .stat-interactive-container:hover .ghost-tooltip {
            opacity: 1;
            transform: translateY(0);
        }
        .ghost-icon { width: 10px; height: 10px; }
        .timeline-cluster {
            position: absolute;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 24px; 
            height: 24px;
            border-radius: 50%;
            background-color: #ffffff;
            border: 2px solid #475569;
            color: #1e293b;
            font-size: 11px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 20;
            box-shadow: 0 2px 5px rgba(0,0,0,0.15);
            transition: all 0.2s ease;
        }
        .timeline-cluster:hover, .timeline-node:hover {
            z-index: 50 !important; 
        }
        .timeline-cluster:hover {
            transform: translate(-50%, -50%) scale(1.25);
            border-color: #3b82f6;
            color: #1d4ed8;
            box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
        }
        /* Tooltip Base */
        .cluster-tooltip, .node-tooltip {
            position: absolute;
            bottom: 150%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #1e293b; /* Slate-800 */
            color: white;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.75rem;
            opacity: 0;
            visibility: hidden; 
            pointer-events: none;
            transition: all 0.2s ease;
            z-index: 60;
            min-width: 140px; 
            white-space: normal; 
            box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.4);
            text-align: left;
        }
        .timeline-cluster:hover .cluster-tooltip, 
        .timeline-node:hover .node-tooltip {
            visibility: visible; 
            opacity: 1;
            bottom: 160%; 
        }
        .tooltip-align-left {
            left: 0 !important;
            transform: translateX(0) !important;
            border-bottom-left-radius: 2px; 
        }
        .tooltip-align-right {
            left: auto !important;
            right: 0 !important;
            transform: translateX(0) !important;
            border-bottom-right-radius: 2px;
        }
        .tooltip-header {
            border-bottom: 1px solid rgba(255,255,255,0.2);
            margin-bottom: 6px;
            padding-bottom: 4px;
            color: #93c5fd;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            text-align: center;
        }
        .tooltip-row {
            display: flex;
            align-items: baseline;
            gap: 8px;
            margin-bottom: 3px;
            line-height: 1.3;
        }
        .tooltip-day {
            color: #94a3b8;
            font-weight: 700;
            font-size: 0.65rem;
            min-width: 18px;
        }
        .tooltip-name {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 150px;
        }
        .cluster-tooltip {
            pointer-events: none; 
        }
        .timeline-cluster:hover .cluster-tooltip,
        .timeline-cluster:active .cluster-tooltip {
            pointer-events: auto !important;
        }
        .cluster-tooltip::after {
            content: '';
            position: absolute;
            top: 100%; 
            left: 0;
            width: 100%;
            height: 20px; 
        }
        .tooltip-row:hover {
            background-color: rgba(255,255,255,0.15);
            border-radius: 4px;
            cursor: pointer;
        }
        .fab-container.hidden { display: none !important; }
        .fab-container {
            opacity: 0.5;
            transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
        }
        .fab-container:hover {
            opacity: 1; 
            transform: translate(-50%, -2px); 
        }
        .image-preview-box-portrait {
            width: 240px; 
            height: 320px;  
            cursor: crosshair;
            border: 2px dashed #cbd5e1;
            border-radius: 0.75rem;
            background-color: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
            transition: all 0.2s ease-in-out;
            margin-top: 0; 
        }
        .image-preview-box-portrait:hover {
            border-color: #3b82f6;
            background-color: #f1f5f9;
        }
        .image-preview-box-portrait .preview-img {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 0.2s ease-in-out;
        }
        .image-preview-box-portrait.has-image .preview-img { opacity: 1; }
        .image-preview-box-portrait.has-image .text-container { opacity: 0; pointer-events: none; }
        .image-preview-box-portrait .text-container {
            text-align: center; color: #64748b; transition: opacity 0.2s ease-in-out; padding: 1rem;
        }
        .game-card-modern {
            position: relative;
            width: 100%;
            height: 320px; 
            border-radius: 1.5rem; 
            overflow: hidden;
            background-color: #1e293b; /* Slate-800 base */
            box-shadow: none;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(255, 255, 255, 0.1);
            cursor: pointer;
            isolation: isolate;
        }
        .game-card-modern:hover {
            transform: translateY(-6px) scale(1.02);
            box-shadow: none;
            border-color: rgba(59, 130, 246, 0.5); 
        }
        .game-card-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease;
        }
        .game-card-modern:hover .game-card-img {
            transform: scale(1.1);
        }
        .game-card-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(
                to top,
                rgba(15, 23, 42, 1) 0%,      
                rgba(15, 23, 42, 0.8) 25%,   
                rgba(15, 23, 42, 0.2) 60%,
                transparent 100%
            );
            z-index: 10;
            pointer-events: none; 
        }
        /* Badges Flotantes (Glassmorphism) */
        .card-badge {
            position: absolute;
            z-index: 20;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 9999px;
            padding: 4px 10px;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            gap: 4px;
            border: 1px solid rgba(255,255,255,0.15);
        }
        .badge-top-left { top:  6px; left:  6px; background-color: rgba(0, 0, 0, 0.6); }
        .badge-top-right { top:  6px; right:  6px; }
        .card-title {
            font-family: 'Inter', sans-serif;
            font-size: 1.1rem;
            font-weight: 900;
            line-height: 1.2;
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        /* Rating Pill */
        .card-rating {
            display: inline-flex;
            align-self: flex-start;
            margin-top: 4px;
            padding: 2px 8px;
            border-radius: 6px;
            font-size: 0.65rem;
            font-weight: 700;
            background-color: rgba(255,255,255,0.1);
            color: #cbd5e1;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .card-actions {
            position: absolute;
            top: 50px; 
            left: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            z-index: 50; 
            opacity: 0;
            transform: translateX(-10px);
            transition: all 0.3s ease;
            pointer-events: auto; 
        }
        .game-card-modern:hover .card-actions {
            opacity: 1;
            transform: translateX(0);
        }
        .game-card-modern:hover .badge-top-left {
            opacity: 1; 
            transition: opacity 0.2s;
        }
        .game-card-active-v3 {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 320px; 
            background-color: #0f172a; 
            border-radius: 1.5rem;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid #334155; 
            position: relative;
            isolation: isolate;
        }
        .game-card-active-v3:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.3); 
            border-color: #3b82f6;
        }
        .active-v3-image {
            height: 70%; 
            width: 100%;
            position: relative;
            overflow: hidden;
        }
        .active-v3-img-tag {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease;
            mask-image: linear-gradient(to bottom, black 80%, transparent 100%); 
            -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        }
        .game-card-active-v3:hover .active-v3-img-tag {
            transform: scale(1.1);
        }
        .active-v3-body {
            height: 30%;
            padding: 0 1.25rem 1rem 1.25rem; 
            display: flex;
            flex-direction: column;
            justify-content: flex-end; 
            position: relative;
            z-index: 20;
        }
        .active-v3-title {
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            font-weight: 700;
            color: #f1f5f9; 
            margin-bottom: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .active-v3-badge {
            position: absolute;
            top:  6px;
            right:  6px;
            background-color: rgba(15, 23, 42, 0.85); 
            backdrop-filter: blur(4px);
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            color: #94a3b8; /* Slate-400 */
            border: 1px solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            gap: 4px;
            z-index: 10;
        }
        .v3-slider-container {
            position: relative;
            width: 100%;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        input[type=range].v3-range {
            -webkit-appearance: none;
            flex-grow: 1;
            height: 16px;
            border-radius: 999px;
            background: #1e293b;
            border: 1px solid rgba(148,163,184,0.3);
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
            outline: none;
            cursor: pointer;
        }
        .v3-slider-container:hover input[type=range].v3-range {
            height: 16px;
        }
        input[type=range].v3-range::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: radial-gradient(circle at 40% 35%, #ffffff 0%, #67e8f9 55%, #22d3ee 100%);
            border: none;
            cursor: grab;
            box-shadow: 0 0 8px rgba(34,211,238,0.85);
            margin-top: 1px;
            transition: transform 0.1s;
        }
        input[type=range].v3-range::-webkit-slider-thumb:active {
            transform: scale(1.25);
            cursor: grabbing;
        }
        .v3-percent-text {
            font-size: 0.9rem;
            font-weight: 800;
            color: #e2e8f0;
            min-width: 3ch;
            text-align: right;
        }
        .active-v3-actions {
            position: absolute;
            top:  44px;
            left:  6px;
            display: flex;
            gap: 6px;
            opacity: 0;
            transform: translateY(-5px);
            transition: all 0.2s ease;
            z-index: 30;
        }
        .game-card-active-v3:hover .active-v3-actions {
            opacity: 1;
            transform: translateY(0);
        }
            70% { transform: scale(1); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
        }
        .games-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
            gap: 2px;
            width: 100%;
            padding: 0 2px;
        }
        @media (min-width: 640px) {
            .games-gallery {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
        }
        .game-card-gallery {
            position: relative;
            aspect-ratio: 3/4;
            overflow: hidden;
            border-radius: 4px;
            cursor: pointer;
            transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            background-color: #1e293b;
            z-index: 1;
        }
        .game-card-gallery img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .game-card-gallery:hover {
            z-index: 10;
            transform: scale(1.15);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
            border-radius: 6px;
        }
        .todos-year-section .game-card-gallery:hover {
            box-shadow: none;
        }
        .gallery-info {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            padding: 20px 6px 6px 6px;
            background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
            opacity: 0;
            transition: opacity 0.2s ease;
            pointer-events: none;
            display: flex;
            justify-content: center;
            align-items: flex-end;
        }
        .game-card-gallery:hover .gallery-info { opacity: 1; }
        .gallery-title {
            color: white; font-size: 0.75rem; font-weight: 700;
            text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
            text-shadow: 0 1px 3px black;
        }
        .timeline-grid-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-columns: repeat(12, 1fr); 
            pointer-events: none;
            z-index: 0;
        }
        .timeline-month-cell {
            position: relative;
            height: 12px; 
            top: -4px;    
            border-left: 1px solid #94a3b8; 
            display: flex;
            justify-content: center; 
        }
        .timeline-month-cell:last-child {
            border-right: 1px solid #94a3b8; 
        }
        .timeline-month-label-cell {
            position: absolute;
            top: 16px;
            font-size: 0.65rem;
            color: #64748b;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .calendar-day:hover .cluster-tooltip {
            visibility: visible;
            opacity: 1;
            bottom: 120%; 
            pointer-events: auto;
            transform: translateX(-50%) translateY(0);
        }
        .calendar-day .cluster-tooltip {
            bottom: 120%;
            z-index: 100; 
            min-width: 160px;
            visibility: hidden;
            opacity: 0;
            transition: all 0.2s ease;
            transform: translateX(-50%) translateY(10px);
        }
        .cal-tooltip::after, .cluster-tooltip::after {
            display: none !important;
            content: none !important;
        }
        .cal-tooltip, .cluster-tooltip {
            margin-bottom: 2px !important;
        }

        .af-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

        .af-typebar {
            display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end;
            padding: 0.75rem 0.875rem;
            background: #f8fafc; border-bottom: 1px solid #e2e8f0;
        }
        .af-typegroup { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; }
        .af-typelabel {
            font-size: 0.5rem; font-weight: 700; letter-spacing: 0.15em;
            text-transform: uppercase; color: #94a3b8;
        }
        .af-seg {
            display: inline-flex; gap: 3px; padding: 3px;
            background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px;
        }
        .af-segbtn, .af-dlcbtn {
            display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
            font-size: 0.6875rem; font-weight: 700; cursor: pointer;
            padding: 0.4375rem 0.9375rem; border-radius: 999px;
            transition: background-color 0.15s, color 0.15s, border-color 0.15s;
        }
        .af-segbtn { border: 0; background: transparent; color: #64748b; }
        .af-dot {
            width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1;
            flex: none; transition: background-color 0.15s;
        }
        .af-segbtn[aria-checked="true"] { color: #fff; }
        .af-segbtn[aria-checked="true"] .af-dot,
        .af-dlcbtn[aria-pressed="true"] .af-dot { background: rgba(255,255,255,0.9); }
        .af-segbtn[data-state="done"][aria-checked="true"] { background: #2563eb; }
        .af-segbtn[data-state="progress"][aria-checked="true"] { background: #d97706; }

        .af-dlcbtn {
            border: 1px dashed #cbd5e1; background: #fff; color: #64748b;
            padding: 0.5rem 1rem;
        }
        .af-dlcbtn:hover { border-color: #7c3aed; color: #7c3aed; }
        .af-dlcbtn[aria-pressed="true"] {
            background: #7c3aed; border-color: #7c3aed; border-style: solid; color: #fff;
        }
        .af-segbtn:focus-visible, .af-dlcbtn:focus-visible, .af-tab:focus-visible, .af-trbtn:focus-visible {
            outline: 2px solid #2563eb; outline-offset: 2px;
        }

        .af-tabs {
            display: flex; gap: 0.375rem; margin: 0.875rem 0.875rem 0;
            padding: 0.25rem; background: #f1f5f9; border-radius: 0.75rem;
        }
        .af-tab {
            flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
            border: 0; background: transparent; cursor: pointer;
            padding: 0.6875rem 0.5rem; border-radius: 0.5625rem;
            font-size: 0.875rem; font-weight: 600; color: #64748b;
            transition: all 0.18s ease-in-out;
        }
        .af-tabicon { height: 1.125rem; width: 1.125rem; flex-shrink: 0; }
        .af-tab:hover { background-color: rgba(255, 255, 255, 0.6); color: #334155; }
        .af-tab[aria-selected="true"],
        .af-tab.active {
            background-color: #fff; font-weight: 800;
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
        }
        .af-tab[aria-selected="true"][data-color="blue"],
        .af-tab.active[data-color="blue"]  { color: #2563eb; }
        .af-tab[aria-selected="true"][data-color="amber"],
        .af-tab.active[data-color="amber"] { color: #d97706; }
        .af-tab[aria-selected="true"][data-color="green"],
        .af-tab.active[data-color="green"] { color: #15803d; }

        .af-badge {
            min-width: 1.125rem; height: 1.125rem; padding: 0 0.25rem;
            border-radius: 999px; flex: none;
            display: grid; place-items: center; line-height: 1;
            font-size: 0.6875rem; font-weight: 900; color: #fff;
            font-variant-numeric: tabular-nums;
            transition: background-color 0.18s ease-in-out;
        }
        .af-badge.af-ok   { background: #16a34a; }
        .af-badge.af-err  { background: #dc2626; }
        .af-badge.af-pend { background: #f59e0b; }
        .af-badge.af-opt  { background: #cbd5e1; color: #64748b; font-size: 0.5625rem; }

        @media (max-width: 460px) {
            .af-tab { font-size: 0.8125rem; gap: 0.375rem; padding: 0.5625rem 0.25rem; }
            .af-tabicon { display: none; }
        }

        #game-form input:disabled,
        #game-form select:disabled,
        #game-form textarea:disabled,
        #edit-game-form input:disabled,
        #edit-game-form select:disabled,
        #edit-game-form textarea:disabled {
            background-color: #eef1f5;
            border-color: #e2e8f0;
            border-style: dashed;
            color: #a3adbb;
            cursor: not-allowed;
            box-shadow: none;
            opacity: 1;
        }
        #game-form .af-campo-off > label,
        #edit-game-form .af-campo-off > label { color: #a3adbb; }
        #game-form .af-campo-off,
        #edit-game-form .af-campo-off { cursor: not-allowed; }

        .af-panels { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0.8125rem 0.875rem 0.9375rem; }
        .af-panel { display: flex; flex-direction: column; gap: 0.6875rem; animation: fadeIn 0.3s ease-in-out; }
        .af-panel.hidden { display: none; }

        .af-legend {
            display: block; margin-bottom: 0.5rem;
            font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.14em;
            text-transform: uppercase; color: #94a3b8;
        }
        .af-trophies { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
        .af-prog {
            display: inline-flex; align-items: center; gap: 0.4375rem;
            font-size: 0.65625rem; font-weight: 600; color: #374151;
            padding-right: 0.75rem; border-right: 1px solid #e2e8f0;
        }
        .af-trbtn {
            display: inline-flex; align-items: center; gap: 0.4375rem;
            padding: 0.4375rem 0.8125rem 0.4375rem 0.5625rem;
            border: 1px solid #e2e8f0; border-radius: 0.625rem; background: #fff;
            font-size: 0.65625rem; font-weight: 700; color: #64748b; cursor: pointer;
            transition: border-color 0.15s, background-color 0.15s, color 0.15s, opacity 0.15s;
        }
        .af-trbtn svg { width: 22px; height: 22px; flex: none; display: block; }
        .af-trbtn:hover { border-color: #cbd5e1; }
        .af-trbtn[aria-pressed="true"] {
            color: #0f172a; border-color: #2563eb; background: #eff6ff;
            box-shadow: inset 0 0 0 1px #2563eb;
        }
        .af-trbtn.af-dim { opacity: 0.45; }
        .af-trbtn-mono svg { color: #64748b; }
        .af-trbtn-mono[aria-pressed="true"] svg { color: #0f172a; }

        .af-imgwrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: flex-start; }
        .af-imgcol { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; }
        .af-caplabel {
            font-size: 0.5rem; font-weight: 700; letter-spacing: 0.14em;
            text-transform: uppercase; color: #94a3b8;
        }

        .af-foot { flex: none; border-top: 1px solid #e2e8f0; padding: 0.75rem 0.875rem; background: #fff; }
        #status-message:empty { display: none; }

        @media (prefers-reduced-motion: reduce) {
            .af-segbtn, .af-dlcbtn, .af-tab, .af-trbtn, .af-dot { transition: none; }
            .af-panel { animation: none; }
        }
