/* A part of the page a link asked for (?focus=): a blue flame runs around it for ten seconds, then fades. pagetabs.js sets it. */
@property --flame-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.focus-glow { position: relative; box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--brand) 4%, transparent); transition: box-shadow .8s ease; }
/* A strip keeps its own tone: blue over red turns plum. */
.strip.focus-glow { box-shadow: none; }
.focus-glow::before, .focus-glow::after {
  content: ""; position: absolute; inset: 4px; width: auto; z-index: 2; padding: 2px; border-radius: var(--r-card); pointer-events: none;
  background: conic-gradient(from var(--flame-turn),
    transparent 0deg, var(--brand) 50deg, var(--brand-hover) 110deg, transparent 170deg,
    var(--brand) 230deg, var(--brand-hover) 290deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: focus-flame 2.2s linear infinite, focus-out .8s ease-in 9.2s forwards;
}
.focus-glow::after { inset: 2px; padding: 6px; filter: blur(9px); opacity: .85; }

@keyframes focus-flame { to { --flame-turn: 360deg; } }
@keyframes focus-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .focus-glow::before, .focus-glow::after { animation: none; background: var(--brand); }
}
