header {
    position: relative;
}
.header-bar {
    position: absolute;
    z-index: 99;
    width: 100%;
    margin-block-start: 8vw;
}
.bkg-splash {
    background: linear-gradient(180deg, #401928 50%, transparent);
    margin-block-start: -4vw;
}
.logo img {
    filter: drop-shadow(0px 10px 6px rgb(0 0 0 / 40%));
}

.base-sprites,
.mixer-sprites {
    position: absolute;
    inset-block-start: 0;
    inset-block-end: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
}

/* 1. Register generic timeline factors */
@property --bob-factor {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

@property --tilt-factor {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

header .sprite {
    --pos-bs: 50%;
    --pos-is: 50%;
    width: 5%;
    position: absolute;
    inset-block-start: var(--pos-bs);
    inset-inline-start: var(--pos-is);
    /* Apply the math formula to the transform */
    transform: 
        translateY(calc(var(--bob-max) * var(--bob-factor))) 
        rotate(calc(var(--tilt-base) + (var(--tilt-max) * var(--tilt-factor))));
    animation: 
        bobbing 3s ease-in-out infinite alternate, 
        tilting 4s ease-in-out infinite alternate;
}

.base-sprites {
    grid-column: full-width / center !important;
}
.base-sprites .sprite {
    filter: drop-shadow(-4px 10px 6px rgb(0 0 0 / 40%));
}
.base-sprites .spr01 {
    --pos-bs: 50%;
    --pos-is: 50%;
    --bob-max: -12px;
    --tilt-base: 25deg;
    --tilt-max: 4deg;
    animation-delay: 0s, 0s;
}

.mixer-sprites {
    grid-column: center / full-width-end !important;
}
.mixer-sprites .sprite {
    filter: drop-shadow(4px 10px 6px rgb(0 0 0 / 40%));
}
.mixer-sprites .spr01 {
    --pos-bs: 50%;
    --pos-is: 50%;
    --bob-max: -40px;
    --tilt-base: 0deg;
    --tilt-max: 18deg;
    animation-delay: -0.75s, -3.1s;
}




/* The keyframes just drive the abstract 0-1 loops */
@keyframes bobbing {
  0%   { --bob-factor: 0; }
  100% { --bob-factor: 1; }
}
@keyframes tilting {
  0%   { --tilt-factor: -1; }
  100% { --tilt-factor: 1; }
}


body { padding: 2rem; }

.filter-search-wrap { position: relative; }

.filter-dropdown {
    display: none;
    position: absolute;
    z-index: 999;
    width: 100%;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 0.5px solid #ccc;
    border-radius: 8px;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.filter-dropdown.open { display: block; }

.filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.1s;
}

.filter-item:hover,
.filter-item.active { background: #f5f5f5; }

.filter-item-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}

.filter-item-img-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.filter-item span { font-size: 14px; color: #333; }

.filter-item span em {
    font-style: normal;
    background: #FFF176;
    color: #4B3A00;
    border-radius: 2px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f0;
    border: 0.5px solid #ccc;
    border-radius: 999px;
    padding: 4px 10px 4px 12px;
    font-size: 13px;
    color: #333;
}

.filter-tag button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #888;
    line-height: 1;
    font-size: 15px;
}

.filter-tag button:hover { color: #333; }

.filter-empty {
    padding: 14px;
    font-size: 13px;
    color: #888;
    text-align: center;
}