.cf-header-wrap { padding: 8px 0; }
.cf-header-link { display: block; text-decoration: none; }
.cf-header-bar-shell { position: relative; display: inline-block; }
.cf-header-fill-track {
    position: absolute;
    top: 55%;
    left: 4%;
    width: 91.8%;
    height: 74%;
    transform: translateY(-50%);
    overflow: hidden;
    border-radius: 4px;
}
.cf-header-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: width .8s ease;
    border-radius: 4px 0 0 4px;
}
.cf-header-overflow-fill {
    position: absolute;
    top: 0;
    height: 100%;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
    filter: brightness(1.3) saturate(1.08);
    transition: left .8s ease, width .8s ease;
}
.cf-header-goal-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 2px;
    transform: translateX(-1px);
    background: rgba(255,255,255,.92);
    box-shadow: 0 0 4px rgba(67,41,20,.8);
    transition: left .8s ease;
}
.cf-header-fill-track.goal-hit .cf-header-fill {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 0 10px rgba(255,235,150,.65);
}

.cf-sparkle-host { position: relative; }
.cf-sparkle-layer {
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
    pointer-events: none;
    z-index: 7;
    overflow: visible;
}
.cf-sparkle-dot {
    position: absolute;
    transform: translate(-50%, -50%) scale(.4);
    opacity: 0;
    color: rgba(255, 248, 210, .96);
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 5px rgba(255,255,255,.95), 0 0 10px rgba(255,214,120,.9);
    animation: cfSparkleFade 1.15s ease-out forwards;
    will-change: transform, opacity;
}
@keyframes cfSparkleFade {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(.35) rotate(0deg); }
    20%  { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2.95) rotate(30deg); }
}
.cf-header-single-food {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
    border: 2px solid #d8c6ae;
    border-radius: 12px;
    background: #fff;
    object-fit: cover;
    z-index: 2;
    padding: 3px;
}
.cf-header-single-food.fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8a7455;
    font-size: 1.45rem;
}
.cf-header-food-list {
    margin: 6px auto 2px;
    max-width: 560px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.cf-header-food-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 248, 233, 0.95);
    border: 1px solid #d8c6ae;
    border-radius: 999px;
    padding: 3px 8px 3px 4px;
    color: #7a5028;
    font-size: .73rem;
    font-weight: 700;
    line-height: 1;
}
.cf-header-food-chip img,
.cf-header-food-chip span.cf-fallback {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #cfb896;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8a7455;
    font-size: .9rem;
}
.cf-header-meta {
    background: rgba(58, 38, 21, 0.84);
    border: 1px solid rgba(203, 150, 81, 0.75);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
    color: #ffe6b8;
    display: table;
    font-size: .82rem;
    line-height: 1.3;
    margin: 5px auto 0;
    max-width: 880px;
    padding: 6px 10px;
    text-shadow: 0 1px 0 rgba(0,0,0,.35);
}
.cf-header-meta .cf-meta-main { display: block; font-weight: 800; color: #ffefcb; }
.cf-header-meta .cf-meta-sub { display: block; font-size: .76rem; color: #f5d6a8; margin-top: 2px; }
.cf-header-meta a { color: #ffe39e; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.cf-header-meta a:hover { color: #fff3cd; }
.cf-header-ticker {
    align-items: center;
    background: linear-gradient(180deg, rgba(113, 68, 29, 0.96) 0%, rgba(70, 43, 21, 0.96) 100%);
    border: 1px solid rgba(223, 171, 95, 0.82);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,.18);
    color: #ffe8ba;
    display: flex;
    gap: 10px;
    margin: 8px auto 0;
    max-width: 900px;
    overflow: hidden;
    padding: 7px 12px 7px 8px;
    text-align: left;
}
.cf-header-ticker-icon,
.cf-header-ticker-icon-fallback {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255, 221, 166, .45);
    border-radius: 10px;
    display: block;
    flex: 0 0 48px;
    height: 48px;
    object-fit: contain;
    padding: 4px;
    width: 48px;
}
.cf-header-ticker-icon-fallback {
    align-items: center;
    color: #ffd580;
    display: inline-flex;
    font-size: 1.35rem;
    justify-content: center;
}
.cf-header-ticker-track {
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
}
.cf-header-ticker-marquee {
    display: inline-flex;
    white-space: nowrap;
    animation: cfHeaderTickerMarquee 11s linear infinite;
    will-change: transform;
}
.cf-header-ticker-text {
    display: inline-block;
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.2;
    padding-right: 52px;
    text-shadow: 0 1px 0 rgba(0,0,0,.28);
}
@keyframes cfHeaderTickerMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 767.98px) {
    .cf-header-single-food { width: 40px; height: 40px; }
    .cf-header-food-list { gap: 4px; max-width: 94vw; }
    .cf-header-food-chip { font-size: .67rem; padding: 3px 6px 3px 4px; }
    .cf-header-food-chip img,
    .cf-header-food-chip span.cf-fallback { width: 18px; height: 18px; }
    .cf-header-meta { font-size: .74rem; line-height: 1.25; max-width: 96vw; padding: 6px 8px; }
    .cf-header-meta .cf-meta-sub { font-size: .71rem; }
    .cf-header-ticker { gap: 8px; max-width: 96vw; padding: 6px 8px 6px 6px; }
    .cf-header-ticker-icon,
    .cf-header-ticker-icon-fallback { flex-basis: 40px; height: 40px; width: 40px; }
    .cf-header-ticker-text { font-size: .76rem; padding-right: 38px; }
}
