/* Pawball 5.0 - dedicated full-screen live match presentation */

body.match-live-active #app { display: none; }
body.match-live-active { overflow: hidden; }

#live-match {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  overflow: hidden;
  background: #2E5638 url("../images/wallpapers/match-day.png") center 38% / cover no-repeat;
  color: var(--cream);
}
.lm-screen {
  width: 100%;
  height: var(--pb-viewport-height);
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(8px, 1.4vh, 16px);
  padding: clamp(10px, 2vw, 24px);
  overflow: hidden;
}
.lm-topbar {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(253, 248, 235, .68);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(8, 28, 17, .72);
}
.lm-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cream);
  font-weight: 750;
}
.lm-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(217, 169, 60, .12);
  animation: lmLivePulse 2.3s ease-in-out infinite;
}

.lm-stage {
  --lm-aura: rgba(75, 145, 91, .22);
  position: relative;
  isolation: isolate;
  width: min(1180px, 100%);
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: clamp(8px, 1.3vh, 14px);
  padding: clamp(12px, 2vw, 26px);
  border: 0;
  border-radius: clamp(18px, 2.5vw, 30px);
  background: none;
  box-shadow: none;
  transition: opacity 300ms ease;
}
.lm-stage[data-aura-state="buildup"] { --lm-aura: rgba(110, 161, 93, .28); }
.lm-stage[data-aura-state="attack"],
.lm-stage[data-aura-state="shot"] { --lm-aura: rgba(197, 152, 58, .30); }
.lm-stage[data-aura-state="danger"] { --lm-aura: rgba(217, 169, 60, .46); }
.lm-stage[data-aura-state="goal"] { --lm-aura: rgba(217, 169, 60, .62); }
.lm-stage[data-aura-state="save"] { --lm-aura: rgba(110, 174, 150, .35); }
.lm-stage[data-aura-state="halftime"],
.lm-stage[data-aura-state="fulltime"],
.lm-stage[data-aura-state="paused"] { --lm-aura: rgba(184, 134, 11, .18); }

/* Match screens sit outside #app, so they can't inherit the shared .pb-amb
   layer directly - this host reuses the exact same PB_AMBIENT particle/
   atmosphere system (js/ambient.js paintExternalEffect) so the pitch shows
   the same day's weather as the rest of the game, kept safely behind the
   scoreboard/commentary. */
.lm-ambient {
  position: absolute;
  inset: 0;
  /* negative, not 0: .lm-stage's other children (score, commentary, controls)
     are plain in-flow grid items with no z-index of their own, so a
     positioned z-index:0 layer would otherwise paint above them, not behind */
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}

/* MatchAura: presentation-only liquid layers behind current engine data. */
.lm-aura {
  display: none;
}

/* Event-driven edge glow. The stage stays transparent so the match artwork
   remains untouched; only opacity and transform animate during pulses. */
.lm-edge {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  overflow: visible;
  transform: translateZ(0);
  --edge-gold: 217, 169, 60;
  --edge-green: 55, 102, 63;
  --edge-cream: 253, 248, 235;
  --edge-base: .16;
  --edge-peak: .34;
  --edge-scale: 1.006;
  --pulse-duration: 1700ms;
}
.lm-edge-aura {
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  padding: 18px;
  background: conic-gradient(
    from 18deg,
    rgba(var(--edge-green), .96),
    rgba(var(--edge-cream), .92) 24%,
    rgba(var(--edge-gold), .94) 48%,
    rgba(var(--edge-green), .9) 72%,
    rgba(var(--edge-cream), .88)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: var(--edge-base);
  will-change: opacity, transform;
}
.lm-edge-aura-out {
  inset: -10px;
  filter: blur(14px);
}
.lm-edge-aura-in {
  inset: 0;
  padding: 21px;
  filter: blur(9px);
  transform: scale(.992);
}
.lm-edge-line {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--edge-cream), .32);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(var(--edge-green), .12);
  opacity: .72;
}
.lm-edge-sweep {
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  padding: 15px;
  overflow: hidden;
  opacity: .28;
  filter: blur(7px);
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.lm-edge-sweep-spin {
  position: absolute;
  inset: -70%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(var(--edge-cream), .92) 10deg,
    rgba(var(--edge-gold), .88) 54deg,
    transparent 104deg,
    transparent 178deg,
    rgba(var(--edge-green), .9) 226deg,
    rgba(var(--edge-cream), .74) 270deg,
    transparent 322deg,
    transparent 360deg
  );
  animation: lmEdgeSweepSpin 22s linear infinite;
  will-change: transform;
}
.lm-edge-corner { display: none; }
.lm-edge-burst {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transform: scale(.96);
  box-shadow:
    inset 0 0 44px 10px rgba(var(--edge-cream), .42),
    0 0 58px 18px rgba(var(--edge-gold), .62),
    0 0 96px 30px rgba(var(--edge-green), .28);
}

.lm-stage[data-aura-state="buildup"] .lm-edge { --edge-base: .18; --edge-peak: .42; --pulse-duration: 1550ms; }
.lm-stage[data-aura-state="attack"] .lm-edge { --edge-base: .2; --edge-peak: .55; --edge-scale: 1.009; --pulse-duration: 1350ms; }
.lm-stage[data-aura-state="shot"] .lm-edge { --edge-base: .21; --edge-peak: .64; --edge-scale: 1.011; --pulse-duration: 1250ms; }
.lm-stage[data-aura-state="save"] .lm-edge { --edge-base: .22; --edge-peak: .7; --edge-scale: 1.012; --pulse-duration: 1250ms; }
.lm-stage[data-aura-state="danger"] .lm-edge { --edge-base: .24; --edge-peak: .8; --edge-scale: 1.014; --pulse-duration: 1120ms; }
.lm-stage[data-aura-state="goal"] .lm-edge { --edge-base: .28; --edge-peak: .95; --edge-scale: 1.017; --pulse-duration: 1450ms; }
.lm-stage[data-aura-state="halftime"] .lm-edge { --edge-base: .2; --edge-peak: .48; --pulse-duration: 1800ms; }
.lm-stage.lm-event-pulse .lm-edge-aura { animation: lmEdgeEventPulse var(--pulse-duration) cubic-bezier(.2, .72, .3, 1) both; }
.lm-stage.lm-event-pulse .lm-edge-sweep { animation: lmEdgeSweepPulse var(--pulse-duration) ease-out both; }
.lm-stage.lm-event-pulse[data-aura-state="goal"] .lm-edge-burst { animation: lmEdgeGoalBurst 1050ms cubic-bezier(.2, .9, .25, 1) both; }
.lm-stage[data-aura-state="fulltime"] .lm-edge-sweep,
.lm-stage[data-aura-state="paused"] .lm-edge-sweep { opacity: .08; }
.lm-stage[data-aura-state="fulltime"] .lm-edge-sweep-spin,
.lm-stage[data-aura-state="paused"] .lm-edge-sweep-spin { animation: none; }

.lm-stage.lm-event-pulse[data-aura-state="danger"] .lm-score { animation: lmScoreBreath 1120ms ease-out both; }
.lm-aura-orb,
.lm-aura-core {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.lm-aura-one {
  width: 58%; height: 76%; left: 8%; top: 8%;
  background: radial-gradient(circle, rgba(71, 154, 95, .42), transparent 69%);
  animation: lmAuraDriftOne 7s ease-in-out infinite;
}
.lm-aura-two {
  width: 53%; height: 70%; right: 5%; bottom: 4%;
  background: radial-gradient(circle, rgba(194, 145, 50, .30), transparent 70%);
  animation: lmAuraDriftTwo 8.4s ease-in-out infinite;
}
.lm-aura-core {
  width: 44%; height: 58%; left: 29%; top: 20%;
  background: radial-gradient(circle, var(--lm-aura), transparent 68%);
  animation: lmAuraHeartbeat 4.6s ease-in-out infinite;
}
.lm-aura[data-aura-state="attack"] .lm-aura-core,
.lm-aura[data-aura-state="shot"] .lm-aura-core { animation-duration: 2.3s; }
.lm-aura[data-aura-state="danger"] .lm-aura-core { animation-duration: 1.35s; }
.lm-aura[data-aura-state="goal"] { opacity: .96; filter: blur(16px); }
.lm-aura[data-aura-state="goal"] .lm-aura-core { animation: lmAuraGoal 1.35s ease-out both; }
.lm-aura[data-aura-state="halftime"],
.lm-aura[data-aura-state="fulltime"],
.lm-aura[data-aura-state="paused"] { opacity: .38; }

.lm-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 3vw, 34px);
  padding: 2px clamp(2px, 2vw, 18px);
}
.lm-team { min-width: 0; display: flex; align-items: center; gap: clamp(8px, 1.5vw, 16px); }
.lm-away { justify-content: flex-end; text-align: right; }
.lm-tname { min-width: 0; font-family: var(--serif); font-weight: 720; font-size: clamp(1rem, 1.8vw, 1.48rem); line-height: 1.05; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 14px rgba(5, 25, 15, .72); }
.lm-centre { min-width: clamp(112px, 16vw, 190px); text-align: center; }
.lm-score {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(8px, 1.6vw, 20px);
  font-family: var(--serif);
  font-size: clamp(2.45rem, 6vw, 4.8rem);
  font-weight: 780;
  line-height: .95;
  color: #fff8e7;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 28px rgba(0, 0, 0, .28);
}
.lm-score.goal-pulse { animation: lmScoreGoal 900ms cubic-bezier(.2, .9, .25, 1); }
.lm-dash { color: rgba(253, 248, 235, .58); font-size: .48em; }
.lm-clock { display: flex; justify-content: center; gap: 10px; margin-top: 8px; color: rgba(253, 248, 235, .88); font-size: .86rem; font-weight: 650; letter-spacing: .04em; text-shadow: 0 1px 8px rgba(5, 25, 15, .72); }
.lm-clock strong { color: var(--gold-bright); font-variant-numeric: tabular-nums; }

.lm-event-timeline { position: relative; z-index: 2; min-height: 9px; display: flex; justify-content: center; gap: 6px; }
.lm-event-timeline span { width: 6px; height: 6px; border-radius: 50%; background: rgba(253, 248, 235, .18); transition: transform 280ms ease, background 280ms ease, box-shadow 280ms ease; }
.lm-event-timeline span.current { transform: scale(1.4); }
.lm-event-timeline span[data-state="buildup"] { background: rgba(115, 179, 128, .68); }
.lm-event-timeline span[data-state="attack"], .lm-event-timeline span[data-state="shot"] { background: rgba(217, 169, 60, .72); }
.lm-event-timeline span[data-state="danger"] { background: #e6bc62; box-shadow: 0 0 9px rgba(230, 188, 98, .7); }
.lm-event-timeline span[data-state="goal"] { background: #f4d080; box-shadow: 0 0 12px rgba(244, 208, 128, .9); }
.lm-event-timeline span[data-state="save"] { background: #83c8b1; }
.lm-event-timeline span[data-state="halftime"] { background: rgba(253, 248, 235, .48); }

.lm-match-grid {
  position: relative;
  z-index: 2;
  min-height: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.lm-match-grid[hidden],
.lm-event-timeline[hidden],
.lm-commentary-bar[hidden] { display: none !important; }
.lm-support { width: min(300px, 100%); }
.lm-momentum-card,
.lm-live-stats {
  border: 1px solid rgba(184, 134, 11, .28);
  border-radius: 20px;
  color: var(--green-deep);
  background: rgba(253, 248, 235, .9);
  box-shadow: 0 8px 24px rgba(10, 35, 21, .16), inset 0 1px rgba(255, 255, 255, .65);
}
.lm-commentary-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 9px clamp(12px, 1.8vw, 18px);
  border: 1px solid rgba(184, 134, 11, .42);
  border-radius: 16px;
  color: var(--green-deep);
  background: rgba(253, 248, 235, .96);
  box-shadow: 0 8px 24px rgba(10, 35, 21, .18), inset 0 1px rgba(255, 255, 255, .78);
}
.lm-commentary-bar > em { flex: 0 0 auto; color: var(--gold-deep); font-style: normal; font-size: .71rem; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.lm-section-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--green-deep); font-size: .72rem; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.lm-section-label em { color: var(--gold-deep); font-style: normal; font-weight: 820; letter-spacing: .06em; }
.lm-feed { flex: 1; min-width: 0; overflow: hidden; }
.lm-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: var(--green-deep);
  font-size: clamp(.86rem, 1.2vw, 1rem);
  line-height: 1.3;
  animation: lmFeedIn 440ms cubic-bezier(.2, .85, .25, 1);
}
.lm-line span { color: var(--gold-deep); font-size: .8em; font-weight: 820; font-variant-numeric: tabular-nums; }
.lm-line strong { font-weight: 650; }
.lm-line-goal { color: var(--green-deep); font-family: var(--serif); font-size: clamp(.94rem, 1.45vw, 1.12rem); }
.lm-line-major strong { color: #6F5017; }
.lm-line-phase { text-transform: uppercase; letter-spacing: .08em; }

.lm-support { min-height: 0; display: grid; grid-template-rows: auto auto; gap: 10px; }
.lm-momentum-card { padding: 13px 14px; }
.lm-momentum { position: relative; height: 9px; margin: 14px 0 8px; border-radius: 999px; overflow: hidden; background: linear-gradient(90deg, rgba(55, 102, 63, .2) 0 50%, rgba(184, 134, 11, .2) 50% 100%); }
.lm-momentum::after { content: ""; position: absolute; left: 50%; top: -2px; width: 2px; height: 13px; background: rgba(253, 248, 235, .84); }
.lm-momentum span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4b9a5d, #d1a348); transition: width 800ms ease; }
.lm-momentum i { position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(46, 86, 56, .2); border-radius: inherit; }
.lm-mom-teams { display: flex; justify-content: space-between; gap: 8px; color: rgba(27, 45, 32, .72); font-size: .7rem; font-weight: 650; }
.lm-mom-teams span { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-live-stats { padding: 5px 13px; display: grid; align-content: start; }
.lm-live-stats > div { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 9px 2px; border-bottom: 1px solid rgba(46, 86, 56, .14); font-variant-numeric: tabular-nums; }
.lm-live-stats > div:last-child { border-bottom: 0; }
.lm-live-stats span { font-weight: 820; color: var(--green-deep); }
.lm-live-stats span:last-child { text-align: right; color: var(--gold-deep); }
.lm-live-stats em { color: rgba(27, 45, 32, .68); font-style: normal; font-size: .74rem; font-weight: 680; }

.lm-goal-hero,
.lm-phase-card {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 380ms ease, visibility 380ms ease;
  background: radial-gradient(circle, rgba(24, 65, 39, .78), rgba(5, 25, 16, .88));
}
.lm-goal-hero.visible,
.lm-phase-card.visible { opacity: 1; visibility: visible; }
.lm-goal-hero > div,
.lm-phase-card > div { text-align: center; animation: lmHeroIn 680ms cubic-bezier(.15, .9, .2, 1); }
.lm-goal-hero span,
.lm-phase-card span,
.lm-ft-hero span { display: block; color: var(--gold-bright); font-size: .72rem; font-weight: 820; letter-spacing: .2em; text-transform: uppercase; }
.lm-goal-hero strong { display: block; margin: 10px 0 7px; font-family: var(--serif); font-size: clamp(2rem, 7vw, 5.2rem); line-height: .95; color: #fff5d8; text-shadow: 0 0 32px rgba(217, 169, 60, .45); }
.lm-goal-hero em { color: rgba(253, 248, 235, .7); font-style: normal; }
.lm-phase-card strong { display: block; margin: 10px 0; font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4.5rem); color: var(--cream); }
.lm-phase-card p { color: rgba(253, 248, 235, .64); }

.lm-controls { position: relative; z-index: 9; grid-row: 5; display: flex; justify-content: center; align-items: center; gap: 12px; }
.lm-live-controls { display: flex; justify-content: center; align-items: center; gap: 12px; }
.lm-controls [hidden] { display: none !important; }
.lm-controls button { min-height: 40px; border: 1px solid rgba(217, 169, 60, .58); border-radius: 999px; padding: 7px 17px; color: var(--cream); background: rgba(31, 72, 43, .9); box-shadow: 0 4px 14px rgba(7, 28, 16, .2); font-size: .8rem; font-weight: 760; text-align: center; }
.lm-controls button:hover, .lm-controls button:focus-visible { border-color: var(--gold-bright); background: rgba(46, 86, 56, .96); }
.lm-controls button:disabled { opacity: .48; cursor: default; }
.lm-controls button.active { border-color: var(--gold-bright); color: var(--green-deep); background: var(--cream); box-shadow: 0 0 0 2px rgba(217, 169, 60, .42), 0 5px 16px rgba(7, 28, 16, .22); }
.lm-controls button[aria-pressed="true"] { border-color: var(--gold-bright); color: var(--green-deep); background: #F3D989; box-shadow: 0 0 0 2px rgba(253, 248, 235, .7), 0 5px 16px rgba(7, 28, 16, .22); }
.lm-speed { display: flex; gap: 5px; padding: 4px; border-radius: 999px; background: rgba(31, 72, 43, .72); }
.lm-speed button { min-width: 43px; padding-inline: 10px; border-color: transparent; }

.lm-ft { position: relative; z-index: 3; grid-row: 3; min-height: 0; overflow-y: auto; padding: 0 clamp(2px, 2vw, 16px) 4px; }
.lm-ft[hidden] { display: none !important; }
.lm-ft-hero { text-align: center; margin: 0 auto 10px; }
.lm-ft-hero strong { display: block; margin: 4px 0; font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 4.8rem); color: #fff6df; }
.lm-ft-hero p { color: rgba(253, 248, 235, .58); }
.lm-scorers { display: grid; grid-template-columns: 1fr 1fr; min-height: 18px; gap: 16px; margin-bottom: 8px; color: rgba(253, 248, 235, .68); font-size: .75rem; }
.lm-scorers div:last-child { text-align: right; }
.lm-ft-stats { width: min(580px, 100%); margin: 0 auto 12px; padding: 8px 14px; border: 1px solid rgba(216, 184, 116, .18); border-radius: 16px; background: rgba(3, 27, 18, .38); }
.lm-ft-stat { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; padding: 4px 0; }
.lm-ft-stat span { font-weight: 750; }
.lm-ft-stat span:last-child { text-align: right; color: #e3c27e; }
.lm-ft-stat em { color: rgba(253, 248, 235, .46); font-style: normal; font-size: .7rem; }
.lm-ft-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lm-ft-col { padding: 10px; border: 1px solid rgba(216, 184, 116, .14); border-radius: 16px; background: rgba(3, 27, 18, .30); }
.lm-ft-col h3 { margin: 0 0 7px; font-family: var(--serif); font-size: .9rem; color: #e3c27e; }
.lm-rate { display: flex; align-items: center; gap: 8px; min-height: 31px; padding: 3px 5px; border-radius: 9px; font-size: .75rem; }
.lm-rate.motm { background: rgba(197, 152, 58, .18); }
.lm-ava { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: rgba(253, 248, 235, .1); }
.lm-ava-init { display: grid; place-items: center; font-weight: 750; }
.lm-rate-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-rate-name small { margin-left: 5px; color: rgba(253, 248, 235, .42); }
.lm-motm-tag { color: #e3c27e; font-size: .6rem; font-weight: 800; }
.lm-rate-val { font-weight: 800; font-variant-numeric: tabular-nums; }
.lm-done { display: block; min-height: 40px; }

@keyframes lmLivePulse { 0%,100% { opacity: .55; transform: scale(.86); } 50% { opacity: 1; transform: scale(1); } }
@keyframes lmAuraDriftOne { 0%,100% { transform: translate3d(-3%, -2%, 0) scale(.94); } 50% { transform: translate3d(7%, 4%, 0) scale(1.08); } }
@keyframes lmAuraDriftTwo { 0%,100% { transform: translate3d(4%, 3%, 0) scale(1.02); } 50% { transform: translate3d(-6%, -5%, 0) scale(.91); } }
@keyframes lmAuraHeartbeat { 0%,100% { transform: scale(.92); opacity: .54; } 45% { transform: scale(1.08); opacity: .9; } 55% { transform: scale(1.02); opacity: .72; } }
@keyframes lmAuraGoal { 0% { transform: scale(.65); opacity: .25; } 32% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1.02); opacity: .65; } }
@keyframes lmScoreGoal { 0% { transform: scale(1); } 35% { transform: scale(1.14); color: #f5d58b; text-shadow: 0 0 36px rgba(217,169,60,.72); } 100% { transform: scale(1); } }
@keyframes lmFeedIn { 0% { opacity: 0; transform: translateY(9px) scale(.97); filter: blur(2px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes lmHeroIn { 0% { opacity: 0; transform: scale(.82) translateY(12px); } 100% { opacity: 1; transform: none; } }
@keyframes lmEdgeEventPulse {
  0% { opacity: var(--edge-base); transform: scale(1); }
  18% { opacity: var(--edge-peak); transform: scale(var(--edge-scale)); }
  100% { opacity: var(--edge-base); transform: scale(1); }
}
@keyframes lmEdgeSweepSpin { to { transform: rotate(360deg); } }
@keyframes lmEdgeSweepPulse { 0%, 100% { opacity: .28; } 22% { opacity: .7; } }
@keyframes lmEdgeGoalBurst {
  0% { opacity: 0; transform: scale(0.94); }
  32% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0; transform: scale(1.12); }
}
@keyframes lmScoreBreath { 0%, 100% { text-shadow: 0 3px 28px rgba(0, 0, 0, .28); } 30% { text-shadow: 0 0 34px rgba(217, 169, 60, .6); } }

@media (prefers-reduced-motion: reduce) {
  .lm-live-pill i,
  .lm-aura-orb,
  .lm-aura-core,
  .lm-score.goal-pulse,
  .lm-line,
  .lm-edge-aura,
  .lm-edge-burst,
  .lm-edge-sweep-spin,
  .lm-stage.lm-event-pulse[data-aura-state="danger"] .lm-score,
  .lm-goal-hero > div,
  .lm-phase-card > div { animation: none !important; }
  .lm-edge-aura { opacity: .24; }
  .lm-edge-sweep { opacity: .14; }
  .lm-aura-core { transform: none; opacity: .6; }
  .lm-stage,
  .lm-momentum span,
  .lm-event-timeline span,
  .lm-goal-hero,
  .lm-phase-card,
  .lm-line { transition: opacity 180ms linear !important; }
}
