/* ── App logo hover: a 1.2s pulse + levitate + accent shine, transform/filter only so the topbar never
   reflows. Keyed on the .logo-hover latch (ui/toolbar/toolbar.js), not :hover, which a view transition drops. */
@keyframes logoPulse {
    0%, 100% { transform: translateY(0) scale(1);
               filter: drop-shadow(0 0 1px color-mix(in srgb, var(--accent) 25%, transparent)); }
    50%      { transform: translateY(-2px) scale(1.12);
               filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 80%, transparent)); }
}
.app-logo-wrap.logo-hover .app-logo { animation: logoPulse 1.2s ease-in-out infinite; }
/* Ray layer: 8 accent spokes masked to a ring, one revolution / 8s, breathing on the same 1.2s beat;
   pointer-events:none so the logo's hit target never widens. */
.app-logo-wrap::before {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    background: repeating-conic-gradient(from -5deg,
        transparent 0deg, var(--accent) 4deg 6deg, transparent 10deg 45deg);
    -webkit-mask: radial-gradient(circle, transparent 52%, #000 63%, #000 72%, transparent 82%);
    mask: radial-gradient(circle, transparent 52%, #000 63%, #000 72%, transparent 82%);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
@keyframes logoRaysSpin    { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes logoRaysShimmer { 0%, 100% { opacity: 0.14; } 50% { opacity: 0.4; } }
.app-logo-wrap.logo-hover::before {
    animation: logoRaysSpin 8s linear infinite,
               logoRaysShimmer 1.2s ease-in-out infinite;
}
/* The mark keeps its loop under every motion mode, "none" included; only the webcore skin stills it. */
:root[data-motion="none"] .app-logo-wrap.logo-hover .app-logo {
    animation-duration: 1.2s !important;
    animation-iteration-count: infinite !important;
    transition-duration: 0.2s !important;
}
:root[data-motion="none"] .app-logo-wrap::before { transition-duration: 0.25s !important; }
:root[data-motion="none"] .app-logo-wrap.logo-hover::before {
    animation-duration: 8s, 1.2s !important;
    animation-iteration-count: infinite !important;
}
:root[data-skin="webcore"] .app-logo-wrap.logo-hover .app-logo {
    animation: none !important;
    transform: scale(1.08) !important;
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 70%, transparent));
}
:root[data-skin="webcore"] .app-logo-wrap::before { content: none; }
@media (prefers-reduced-motion: reduce) {
    .app-logo-wrap.logo-hover .app-logo { animation: none; }
    .app-logo-wrap::before { content: none; }
}
