@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body { font-family: 'Inter', sans-serif; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #1e1e2e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2e2e3e; }

[x-cloak] { display: none !important; }

/* Network ticker */
@keyframes fu-marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
.fu-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    padding-left: 2.5rem;
    white-space: nowrap;
    animation: fu-marquee 160s linear infinite;
    will-change: transform;
}
.fu-marquee:hover .fu-marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .fu-marquee-track { animation-duration: 240s; }
}
/* On a narrow viewport the same px/s reads as much faster — slow it right down. */
@media (max-width: 900px) {
    .fu-marquee-track { animation-duration: 420s; }
}

/* ── FU TV popup: reactions overlay + emote bar (ported from /tv/live.html) ── */
.fu-tv-react-layer {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
    z-index: 10;
}
.fu-tv-react {
    position: absolute; bottom: 0;
    pointer-events: none; will-change: transform, opacity;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    animation: fu-tv-rise var(--dur, 3s) ease-out forwards;
}
@keyframes fu-tv-rise {
    0%   { transform: translate(0,0) scale(0) rotate(0deg); opacity: 0; }
    8%   { transform: translate(calc(var(--wx) * 0.1), calc(var(--peak) * 0.3)) scale(1.15) rotate(var(--r1)); opacity: 1; }
    30%  { transform: translate(calc(var(--wx) * 0.4), calc(var(--peak) * 0.75)) scale(1) rotate(var(--r2)); opacity: 0.9; }
    60%  { transform: translate(calc(var(--wx) * 0.7), var(--peak)) scale(0.85) rotate(var(--r1)); opacity: 0.4; }
    100% { transform: translate(var(--wx), calc(var(--peak) * 0.6)) scale(0.55) rotate(0); opacity: 0; }
}

.fu-tv-emote-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 10px;
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(167, 139, 250, 0.15);
    overflow-x: auto;
    white-space: nowrap;
    flex-shrink: 0;
}
.fu-tv-emote-bar::-webkit-scrollbar { height: 4px; }
.fu-tv-emote-btn {
    width: 34px; height: 34px;
    flex-shrink: 0;
    border: none;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}
.fu-tv-emote-btn:hover { background: rgba(167,139,250,0.2); transform: scale(1.12); }
.fu-tv-emote-btn:active { transform: scale(0.9); }
.fu-tv-emote-btn img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fu-tv-emote-bar.cooldown .fu-tv-emote-btn { opacity: 0.5; }
