/* Event live feed (projector-friendly). Theme tokens only. */
.lfx { --lf-radius: calc(var(--radius, 10px) + 4px); width: 100%; max-width: 1400px; margin: 0 auto; padding: clamp(0.5rem, 2vw, 1.25rem) 0 2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; color: var(--text); background: var(--bg, transparent); }
.lfx:fullscreen { max-width: none; padding: 2rem 2.5rem; background: var(--bg, #0b0f14); overflow-y: auto; font-size: 1.15rem; }
.lfx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.lfx-head-main { display: grid; gap: 0.5rem; min-width: 0; }
.lfx-head h1 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }
.lfx-live { display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-soft); }
.lfx-live .dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; }
.lfx-live.live { background: var(--error-bg); color: var(--error-fg); }
.lfx-live.live .dot { animation: lfx-blink 1.2s ease-in-out infinite; box-shadow: 0 0 0 3px color-mix(in srgb, var(--error-fg) 30%, transparent); }
@keyframes lfx-blink { 50% { opacity: 0.3; } }
.lfx-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.95rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.lfx-frozen { color: var(--info-fg); }
.lfx-actions { display: flex; gap: 0.5rem; }
.lfx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--lf-radius); background: var(--surface); }
.lfx-stats > div { display: grid; gap: 0.2rem; padding: 1rem 1.25rem; }
.lfx-stats > div + div { border-left: 1px solid var(--line); }
.lfx-stats strong { font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.lfx-stats span { font-size: 0.82rem; color: var(--text-soft); }
.lfx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.lfx h2 { margin: 0 0 0.75rem; font-size: 1.05rem; font-weight: 700; }
.lfx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.lfx-item { display: grid; grid-template-columns: 3.4rem 2.4rem minmax(0, 1fr) auto auto; gap: 0.9rem; align-items: center; padding: 0.8rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lfx-item.is-fb { border-color: color-mix(in srgb, var(--error-fg) 55%, var(--line)); background: linear-gradient(90deg, color-mix(in srgb, var(--error-fg) 12%, var(--surface)), var(--surface) 60%); }
.lfx-item.is-new { animation: lfx-in 1.6s ease; }
.lfx-item.is-new.is-fb { animation: lfx-in 1.6s ease, lfx-fb 2.4s ease 0.2s 2; }
@keyframes lfx-in { 0% { opacity: 0; transform: translateY(-14px) scale(0.98); background: color-mix(in srgb, var(--primary) 25%, var(--surface)); } 30% { opacity: 1; transform: none; } }
@keyframes lfx-fb { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--error-fg) 35%, transparent), 0 0 30px color-mix(in srgb, var(--error-fg) 40%, transparent); } }
.lfx-time { font-size: 0.85rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.lfx-icon { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-size: 1rem; }
.is-fb .lfx-icon { background: var(--error-bg); color: var(--error-fg); }
.lfx-text { min-width: 0; font-size: 1rem; line-height: 1.4; color: var(--text-soft); overflow-wrap: anywhere; }
.lfx-text strong { color: var(--text); }
.lfx-text b { color: var(--text); font-weight: 600; }
.lfx-text small { font-size: 0.8em; }
.lfx-cat { padding: 0.15rem 0.55rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; color: var(--text-soft); white-space: nowrap; }
.lfx-pts { font-weight: 800; font-size: 1.05rem; color: var(--primary); font-variant-numeric: tabular-nums; }
.lfx-empty { display: grid; justify-items: center; gap: 0.4rem; padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: var(--lf-radius); color: var(--text-soft); text-align: center; }
.lfx-empty i { font-size: 2rem; color: var(--primary); }
.lfx-empty strong { color: var(--text); font-size: 1.1rem; }
.lfx-top { position: sticky; top: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--lf-radius); background: var(--surface); }
.lfx-top ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.lfx-top li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; padding: 0.55rem 0.6rem; border-radius: 10px; }
.lfx-top li.r1 { background: color-mix(in srgb, #e8b931 12%, transparent); }
.lfx-medal { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; font-weight: 800; background: color-mix(in srgb, var(--text) 10%, transparent); }
.r1 .lfx-medal { background: #e8b931; color: #1a1406; } .r2 .lfx-medal { background: #9fb3bf; color: #10161a; } .r3 .lfx-medal { background: #c48a5c; color: #1a0f06; }
.lfx-top-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lfx-top-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.lfx-top-score small { font-weight: 500; color: var(--text-soft); }
.lfx-none { margin: 0; color: var(--text-soft); }
@media (max-width: 980px) { .lfx-grid { grid-template-columns: 1fr; } .lfx-top { position: static; order: -1; } }
@media (max-width: 640px) {
  .lfx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lfx-stats > div:nth-child(3) { border-left: 0; }
  .lfx-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lfx-item { grid-template-columns: 2.2rem minmax(0, 1fr) auto; padding: 0.7rem; }
  .lfx-time, .lfx-cat { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lfx-item.is-new, .lfx-live.live .dot { animation: none; } }
