/* Logo Styles - Derived from Logo Set 15 ('113. 8s Very Slow') */

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #333;
    font-size: 1.3rem;
    line-height: 1.1;
    text-align: left;
    letter-spacing: -0.5px;
}

/* --- Base Grid Structure --- */
.logo-grid {
    width: 48px;
    height: 48px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 2px;
    border: 2px solid #333;
    /* Match Set 15 */
    padding: 2px;
    border-radius: 4px;
    box-sizing: border-box;
    background: white;

    /* FIX: Mask content that overflows */
    overflow: hidden;
    line-height: 0;
    /* Prevent text spacing interference */

    /* 8s Speed for 113 */
    --speed: 8s;
}

.logo-cell {
    width: 6px !important;
    height: 6px !important;
    border-radius: 1px;
    background: #e0e0e0;
    transition: background 0.3s;
    display: block;
    /* Ensure no inline weirdness */
    margin: 0;
    padding: 0;

    /* Default Delay Index */
    --d: 0;
}

/* Keyframes: "One at a time" logic */
@keyframes logo-flash {
    0% {
        opacity: 0.2;
    }

    5%,
    15% {
        opacity: 1;
        transform: scale(1.1);
    }

    20%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }
}

.logo-cell.active {
    background: #4caf50;
    /* Green */
    opacity: 0.2;
    /* Start dim */
    animation: logo-flash var(--speed) infinite;
    animation-delay: calc(var(--speed) * 0.125 * var(--d));
}

/* Delay Indices */
.logo-cell.d0 {
    --d: 0;
}

.logo-cell.d1 {
    --d: 1;
}

.logo-cell.d2 {
    --d: 2;
}

.logo-cell.d3 {
    --d: 3;
}

.logo-cell.d4 {
    --d: 4;
}

.logo-cell.d5 {
    --d: 5;
}

.logo-cell.d6 {
    --d: 6;
}

.logo-cell.d7 {
    --d: 7;
}

/* Base Logo Grid (Fade Out) */
.logo-grid {
    transition: all 1.0s ease-out;
    /* Slow Tween Back */
}

/* Overcharged State (Instant Hit) */
/* Overcharged State (Instant Hit) */
.logo-grid.overcharged {
    /* No glow, just the speed change */
    transition: all 0.1s ease-out;
}

/* No active state override needed for color/glow */

/* --- Jump Animation --- */
/* --- Jump Animation --- */
@keyframes calendar-jump {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    30% {
        transform: translateY(-8px) rotate(var(--jump-rotate, 0deg));
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    70% {
        transform: translateY(-3px) rotate(calc(var(--jump-rotate, 0deg) * 0.5));
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.logo-grid.jump-effect {
    animation: calendar-jump 0.5s ease-out;
}