/* ===============================
 * AUTHENTICATION MODALS
 * =============================== */

.brainrot-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.brainrot-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 8% auto;
    padding: 30px;
    border: 2px solid #3a4f7a;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brainrot-modal-content h2 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
}

.brainrot-modal-note {
    margin: 0 0 20px 0;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    font-style: italic;
}

.brainrot-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.brainrot-close:hover,
.brainrot-close:focus {
    color: #fff;
}

.brainrot-modal-content input[type="text"],
.brainrot-modal-content input[type="email"],
.brainrot-modal-content input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #3a4f7a;
    border-radius: 6px;
    background: #0f0f1e;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.brainrot-modal-content input[type="text"]:focus,
.brainrot-modal-content input[type="email"]:focus,
.brainrot-modal-content input[type="password"]:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.brainrot-modal-content button[type="submit"] {
    width: 100%;
    padding: 12px;
    margin: 15px 0 10px 0;
    background: linear-gradient(135deg, #4a9eff 0%, #3a7fd5 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.brainrot-modal-content button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.brainrot-modal-content button[type="submit"]:active {
    transform: translateY(0);
}

.brainrot-modal-links {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #aaa;
}

.brainrot-modal-links a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.2s;
}

.brainrot-modal-links a:hover {
    color: #6ab3ff;
    text-decoration: underline;
}

.brainrot-modal-links span {
    margin: 0 8px;
}

.brainrot-message {
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brainrot-message.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgb(34, 197, 94);
    color: rgb(134, 239, 172);
}

.brainrot-message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgb(239, 68, 68);
    color: rgb(252, 165, 165);
}

/* User info in header */
.user-info {
    position: absolute;
    right: 2%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.user-greeting {
    color: #4a9eff;
    font-size: 14px;
    font-weight: 500;
}

.login-btn,
.register-btn,
.logout-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn {
    background: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
    border: 1px solid #4a9eff;
}

.login-btn:hover {
    background: rgba(74, 158, 255, 0.3);
    transform: translateY(-1px);
}

.register-btn {
    background: linear-gradient(135deg, #4a9eff 0%, #3a7fd5 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
}

.register-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

.logout-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .brainrot-modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 20px;
    }
    
    .user-info {
    flex-direction: column;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    position: absolute;
    right: 2%;
    display: flex;
    align-items: right;
    text-align: right;
    justify-content: right;
    gap: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    }
    
    .user-greeting {
        font-size: 6px;
    }
    
    .login-btn,
    .register-btn,
    .logout-btn {
        padding: 6px 12px;
        font-size: 6px;
    }
}



/* ================= RESET ================= */

.brainrot-tracker-wrapper,
.brainrot-tracker-wrapper * ,
.brainrot-tracker-wrapper *::before,
.brainrot-tracker-wrapper *::after {
    box-sizing: border-box;
}


/* ================= WRAPPER ================= */

.brainrot-tracker-wrapper {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 3px solid #4a4a4a;
    border-radius: 12px;
    padding: 12px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: "Arial Black", sans-serif;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    overflow-x: hidden;
    /* 🔥 CRITICAL: Isolate filters from rest of page */
    filter: none !important;
    isolation: isolate;
}

/* ================= HEADER ================= */

.brainrot-tracker-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #4a4a4a;
}

.brainrot-tracker-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tracker-label {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.tracker-subtitle {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

/* Header Controls Row */

.header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filter-group {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.brainrot-search {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #4a4a4a;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    width: 220px;
    flex: 1;
    transition: all 0.2s ease;
}

.brainrot-search:focus {
    border-color: #5a5a5a;
    outline: none;
    box-shadow: 0 0 8px rgba(74, 74, 74, 0.4);
}

.brainrot-search::placeholder {
    color: #888;
}

.collected-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 10px;
    border-radius: 8px;
    border: 2px solid #4CAF50;
    flex-shrink: 0;
}

.count-ratio {
    font-size: 16px;
    color: #4CAF50;
}

.count-percent {
    font-size: 11px;
    color: #aaa;
}

/* Buttons */

.fav-filter {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #4a4a4a;
    color: #aaa;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fav-filter:hover {
    border-color: #5a5a5a;
    color: #ccc;
}

.fav-filter.active {
    color: gold;
    border-color: gold;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.action-group {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

.select-all-btn,
.deselect-all-btn,
.close-btn {
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: 2px solid;
}

.select-all-btn {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.6);
    color: #4CAF50;
}

.select-all-btn:hover {
    background: rgba(76, 175, 80, 0.25);
    border-color: #66BB6A;
    color: #66BB6A;
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.deselect-all-btn {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.6);
    color: #F44336;
}

.deselect-all-btn:hover {
    background: rgba(244, 67, 54, 0.25);
    border-color: #EF5350;
    color: #EF5350;
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.3);
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* ================= CONTENT LAYOUT ================= */

.brainrot-tracker-content {
    display: flex;
    gap: 12px;
    margin: 12px 0;
}

/* ================= VARIANT SIDEBAR ================= */

.brainrot-variant-sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 100px;
}

.variant-btn {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 2px solid #4a4a4a;
    border-radius: 8px;
    padding: 10px 6px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.variant-btn:hover {
    border-color: #5a5a5a;
    transform: translateX(3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.variant-btn.active {
    background: linear-gradient(145deg, gold, silver, silver, silver, silver, gold);
    border-color: silver;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

/* Variant Colors */

.variant-btn[data-variant="gold"] {
    border-color: #FFD700;
    color: #FFD700;
    box-shadow: inset 0 0 6px rgba(255, 215, 0, 0.15);
}

.variant-btn[data-variant="gold"]:hover {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5), inset 0 0 8px rgba(255, 215, 0, 0.25);
}

.variant-btn[data-variant="diamond"] {
    border-color: #7DD3FC;
    color: #7DD3FC;
    background: linear-gradient(145deg, rgba(125, 211, 252, 0.12), rgba(58, 58, 58, 1));
}

.variant-btn[data-variant="diamond"]:hover {
    box-shadow: 0 0 10px rgba(125, 211, 252, 0.45), inset 0 0 6px rgba(255, 255, 255, 0.25);
}

.variant-btn[data-variant="rainbow"] {
    background: linear-gradient(145deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 200% 200%;
    animation: rainbow-shift 3s ease infinite;
    color: #fff;
}

.variant-btn[data-variant="radioactive"] {
    border-color: #7FFF00;
    color: #7FFF00;
    box-shadow: inset 0 0 6px rgba(127, 255, 0, 0.25);
}

.variant-btn[data-variant="radioactive"]:hover {
    animation: radioactive-flicker 1.2s infinite alternate;
}

.variant-btn[data-variant="christmas"] {
    position: relative;
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 2px solid #4a4a4a;
    overflow: hidden;
    text-shadow: none;
}

.variant-btn[data-variant="christmas"],
.variant-btn[data-variant="christmas"] span {
    background: linear-gradient(90deg, #c62828, #2e7d32, #c62828);
    background-size: 200% 200%;
    animation: christmas-text-shift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.variant-btn[data-variant="christmas"]:hover {
    border-color: #FFD700;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.6), 0 0 14px rgba(255, 215, 0, 0.35);
}

.variant-btn[data-variant="christmas"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9) 1px, transparent 2px),
                radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.8) 1px, transparent 2px),
                radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.7) 1px, transparent 2px);
    opacity: 0;
    pointer-events: none;
    animation: snow-fall 2.5s linear infinite;
}

.variant-btn[data-variant="christmas"]:hover::after {
    opacity: 0.9;
}

.variant-btn[data-variant="cursed"] {
    background: linear-gradient(145deg, #1a0000, #300000);
    border: 2px solid #ff2a2a;
    color: #ff2a2a;
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.8);
    box-shadow:
        inset 0 0 10px rgba(255, 0, 0, 0.25),
        0 0 10px rgba(255, 0, 0, 0.4);
}

.variant-btn[data-variant="cursed"]:hover {
    box-shadow:
        0 0 18px rgba(255, 0, 0, 0.8),
        inset 0 0 14px rgba(255, 0, 0, 0.4);
}

/* ================= GRID ================= */

.brainrot-tracker-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-height: 66vh;
    overflow-y: auto;
    padding: 6px;
}

.brainrot-tracker-grid::-webkit-scrollbar {
    width: 8px;
}

.brainrot-tracker-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.brainrot-tracker-grid::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 5px;
}

.brainrot-tracker-grid::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* ================= ITEM ================= */

.brainrot-item {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 2px solid #4a4a4a;
    border-radius: 8px;
    padding: 6px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    /* 🔥 CRITICAL: Prevent filter inheritance */
    filter: none !important;
}

.brainrot-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
    border-color: #5a5a5a;
}

.brainrot-item.uncollected.hidden {
    display: none;
}

/* ================= CHECKBOX ================= */

.brainrot-checkbox-wrapper {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 40;
    /* 🔥 CRITICAL: Prevent filter inheritance */
    filter: none !important;
}

.brainrot-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4CAF50;
    /* 🔥 CRITICAL: Force visibility */
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ================= IMAGE & OVERLAYS ================= */

.brainrot-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 6px;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
}

.brainrot-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease;
}

.dark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.brainrot-item.collected .dark-overlay {
    opacity: 0;
}

/* ================= VARIANT FILTERS ================= */

.brainrot-tracker-wrapper[data-variant="normal"] .brainrot-item.collected .brainrot-image {
    filter: none;
}

.brainrot-tracker-wrapper[data-variant="gold"] .brainrot-item.collected .brainrot-image {
    filter: contrast(1.3) brightness(1.05) grayscale(100%) sepia(100%) saturate(400%) hue-rotate(5deg) brightness(1.1);
}

.brainrot-tracker-wrapper[data-variant="diamond"] .brainrot-item.collected .brainrot-image {
    filter: contrast(1.3) brightness(1.1) grayscale(100%) sepia(100%) saturate(300%) hue-rotate(160deg) brightness(1.2);
}

.brainrot-tracker-wrapper[data-variant="rainbow"] .brainrot-item.collected .brainrot-image {
    filter: grayscale(100%) brightness(1.15) contrast(1.3) sepia(1) saturate(500%) brightness(1.2);
    animation: rainbow-hue-rotate 4s linear infinite;
}

.brainrot-tracker-wrapper[data-variant="radioactive"] .brainrot-item.collected .brainrot-image {
    filter: contrast(1.3) brightness(1.05) grayscale(100%) sepia(100%) saturate(500%) hue-rotate(50deg) brightness(1.15);
    animation: radioactive-glow 2s ease-in-out infinite;
}

.brainrot-tracker-wrapper[data-variant="christmas"] .brainrot-item.collected .brainrot-image {
    filter: none;
}

/* 🔥 CURSED VARIANT - ONLY APPLY TO IMAGE */
.brainrot-tracker-wrapper[data-variant="cursed"] .brainrot-item.collected .brainrot-image {
    filter: url(#cursed-filter);
}

/* Cursed glow effect on collected items */
.brainrot-tracker-wrapper[data-variant="cursed"] .brainrot-item.collected::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 10px;
    pointer-events: none;
    box-shadow:
        0 0 8px rgba(140, 0, 0, 0.55),
        0 0 18px rgba(255, 0, 0, 0.35),
        inset 0 0 14px rgba(90, 0, 0, 0.6);
    animation: cursed-blood-flicker 1.9s infinite alternate;
    z-index: 5;
}

@keyframes cursed-blood-flicker {
    0% { opacity: 0.65; }
    100% { opacity: 0.95; }
}

/* ================= FAVORITE STAR ================= */

.brainrot-fav {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    z-index: 50;
    transition: all 0.2s ease;
    /* 🔥 CRITICAL: Prevent filter inheritance */
    filter: none !important;
}

.brainrot-item.favorited .brainrot-fav {
    color: gold;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
}

.brainrot-fav:hover {
    transform: scale(1.2);
}

/* ================= INFO ================= */

.brainrot-info {
    text-align: center;
}

.brainrot-name {
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brainrot-rarity {
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
    background: linear-gradient(135deg, #4a4a4a, #3a3a3a);
    color: #ccc;
    border: 1px solid #5a5a5a;
}

.variant-label {
    font-weight: bold;
}

/* Variant Label Colors */

.brainrot-tracker-wrapper[data-variant="gold"] .variant-label {
    color: #FFD700;
}

.brainrot-tracker-wrapper[data-variant="diamond"] .variant-label {
    color: #7DD3FC;
}

.brainrot-tracker-wrapper[data-variant="rainbow"] .variant-label {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-text 3s linear infinite;
}

.brainrot-tracker-wrapper[data-variant="radioactive"] .variant-label {
    color: #7FFF00;
}

.brainrot-tracker-wrapper[data-variant="christmas"] .variant-label {
    background: linear-gradient(90deg, #DC143C, #228B22, #DC143C);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: christmas-label-shift 3s ease infinite;
}

.brainrot-tracker-wrapper[data-variant="cursed"] .variant-label {
    color: #ff2a2a;
    text-shadow: 0 0 4px rgba(255, 0, 0, 0.6);
}

/* ================= FOOTER ================= */

.brainrot-tracker-footer {
    border-top: 2px solid #4a4a4a;
    padding-top: 12px;
    margin-top: 16px;
}

.collection-message {
    margin-bottom: 8px;
}

.collection-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #4a4a4a;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Cursed progress bar */
.brainrot-tracker-wrapper[data-variant="cursed"] .progress-fill {
    background: linear-gradient(90deg, #7a0000, #ff0000, #ff4d4d);
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.8);
}

.progress-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
    font-size: 14px;
    font-weight: bold;
    color: #4CAF50;
    min-width: 60px;
}

/* ================= TOOLTIP ================= */

.brainrot-tooltip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    z-index: 30;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.92);
    border-radius: 0 0 6px 6px;
    pointer-events: none;
}

.brainrot-item:hover .brainrot-tooltip {
    display: flex;
}

.tooltip-header {
    font-size: 12px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.tooltip-content {
    font-size: 11px;
    color: #eee;
    line-height: 1.2;
    padding: 0 8px;
    text-align: center;
}

.tooltip-content:not(:first-of-type) {
    white-space: pre-line;
    word-break: break-word;
}

/* ================= ANIMATIONS ================= */

@keyframes rainbow-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes radioactive-flicker {
    0% {
        box-shadow: 0 0 6px rgba(127, 255, 0, 0.4), inset 0 0 6px rgba(127, 255, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 14px rgba(127, 255, 0, 0.75), inset 0 0 10px rgba(127, 255, 0, 0.45);
    }
}

@keyframes christmas-text-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes snow-fall {
    0% { transform: translateY(-10%); }
    100% { transform: translateY(10%); }
}

@keyframes rainbow-hue-rotate {
    0% { filter: grayscale(100%) brightness(1.15) contrast(1.3) sepia(1) saturate(500%) hue-rotate(0deg) brightness(1.2); }
    100% { filter: grayscale(100%) brightness(1.15) contrast(1.3) sepia(1) saturate(500%) hue-rotate(360deg) brightness(1.2); }
}

@keyframes radioactive-glow {
    0%, 100% { filter: contrast(1.3) brightness(1.05) grayscale(100%) sepia(100%) saturate(500%) hue-rotate(50deg) brightness(1.15); }
    50% { filter: contrast(1.3) brightness(1.05) grayscale(100%) sepia(100%) saturate(500%) hue-rotate(50deg) brightness(1.25); }
}

@keyframes rainbow-text {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes christmas-label-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ================= DESKTOP SCALE ================= */

@media (min-width: 601px) {
    .brainrot-tracker-wrapper {
        transform: scale(0.8);
        transform-origin: top center;
    }
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 600px) {
    .brainrot-tracker-wrapper {
        padding: 8px;
    }

    .brainrot-tracker-header {
        gap: 8px;
    }

    .tracker-label {
        font-size: 16px;
    }

    .tracker-subtitle {
        font-size: 10px;
    }

    .header-controls {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px;
        align-items: center;
    }

    .collected-count {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        padding: 4px 8px;
        border-width: 1px;
    }

    .count-ratio {
        font-size: 13px;
    }

    .count-percent {
        font-size: 10px;
    }

    .filter-group {
        grid-column: 1;
        grid-row: 2;
        gap: 3px;
    }

    .brainrot-search {
        grid-column: 2;
        grid-row: 2;
        flex: 1;
        font-size: 11px;
        padding: 4px 6px;
        border-width: 1px;
        width: auto;
    }

    .action-group {
        grid-column: 3;
        grid-row: 2;
        gap: 3px;
    }

    .fav-filter,
    .select-all-btn,
    .deselect-all-btn,
    .close-btn {
        font-size: 10px;
        padding: 4px 5px;
        border-width: 1px;
    }

    .brainrot-tracker-content {
        flex-direction: column;
    }

    .brainrot-variant-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        overflow: visible;
    }

    .variant-btn {
        min-width: 70px;
        padding: 8px 4px;
        font-size: 10px;
    }

    .brainrot-tracker-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-height: 250px;
    }

    .brainrot-item {
        padding: 4px;
        border-radius: 6px;
    }

    .brainrot-checkbox {
        width: 14px;
        height: 14px;
    }

    .brainrot-name {
        font-size: 6.5px;
    }

    .brainrot-rarity {
        font-size: 6px;
        padding: 2px 5px;
    }

    .progress-bar {
        height: 16px;
    }

    .progress-text {
        font-size: 12px;
        min-width: 48px;
    }

    .tooltip-header {
        font-size: 7px;
        margin-bottom: 6px;
    }

    .tooltip-content {
        font-size: 6px;
        padding: 0 8px;
        line-height: 1.2;
    }

    .collection-message {
        font-size: 9px;
        padding: 4px;
    }
}

/* Add these styles to your CSS file */

/* Taco variant button */
.variant-btn[data-variant="taco"] {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 2px solid #FFD700;
    color: #FFD700;
    position: relative;
    overflow: hidden;
}

.variant-btn[data-variant="taco"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.1) 0%,
        rgba(255, 140, 0, 0.1) 50%,
        rgba(255, 69, 0, 0.1) 100%
    );
    opacity: 0.5;
}

.variant-btn[data-variant="taco"]:hover {
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 140, 0, 0.3);
    border-color: #FF8C00;
}


/* Taco variant label color */
.brainrot-tracker-wrapper[data-variant="taco"] .variant-label {
    background: linear-gradient(90deg, #FFD700, #FF8C00, #FFD700);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: taco-label-shift 3s ease infinite;
}

/* Taco label animation */
@keyframes taco-label-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}