/* ==========================================================================
   Arena FX — camada gamificada do painel admin do campeonato.
   Tudo é guiado por --accent (cor do tema), então funciona em todos os temas.
   ========================================================================== */

.arena--fx, .fx-sound-toggle, .fx-toast, .ed-actions, .ed-reel { --fx-gold: #f2c14e; --fx-glow: color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---------- Sound toggle -------------------------------------------------- */
.fx-sound-toggle {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  background: rgba(6, 10, 16, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 0 var(--fx-glow);
  transition: transform .18s ease, box-shadow .3s ease;
  animation: fx-ping 2.8s ease-out 1s 2;
}
.fx-sound-toggle:hover { transform: scale(1.08); }
.fx-sound-toggle:active { transform: scale(.94); }
.fx-sound-toggle .fx-sound-off, .fx-sound-toggle.is-muted .fx-sound-on { display: none; }
.fx-sound-toggle.is-muted .fx-sound-off { display: inline; }
.fx-sound-toggle.is-muted { opacity: .7; border-color: var(--line); }

/* ---------- Hero ---------------------------------------------------------- */
.fx-hero { --mx: 70%; --my: 20%; animation: fx-hero-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.fx-spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  transition: background .2s ease;
}
.fx-hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .07) 48%, transparent 60%);
  transform: translateX(-100%);
  animation: fx-sheen 6s ease-in-out 1.2s infinite;
}
.fx-particles { position: absolute; inset: 0; overflow: hidden; }
.fx-particles i {
  position: absolute;
  bottom: -10px;
  left: calc(var(--p) * 7.3%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 70%, #fff);
  opacity: 0;
  filter: blur(.4px);
  animation: fx-rise calc(7s + var(--p) * .45s) linear calc(var(--p) * -.9s) infinite;
}
.fx-particles i:nth-child(3n) { width: 4px; height: 4px; background: var(--fx-gold); }
.fx-particles i:nth-child(4n) { width: 9px; height: 9px; opacity: .2; }

.fx-hero .arena-title {
  background: linear-gradient(90deg, #fff 0%, #fff 40%, color-mix(in srgb, var(--accent) 70%, #fff) 50%, #fff 60%, #fff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fx-title-shine 5s ease-in-out 1s infinite;
}
.fx-hero .arena-stat {
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  animation: fx-pop-in .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.fx-hero .arena-stat:nth-child(2) { animation-delay: .08s; }
.fx-hero .arena-stat:nth-child(3) { animation-delay: .16s; }
.fx-hero .arena-stat:nth-child(4) { animation-delay: .24s; }
.fx-hero .arena-stat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, rgba(255, 255, 255, .04));
}

/* Leader crown */
.fx-champ { position: relative; animation: fx-pop-in .6s cubic-bezier(.2, 1.4, .4, 1) .3s both; }
.fx-crown {
  position: absolute;
  top: -16px; right: 14px;
  font-size: 1.6rem;
  filter: drop-shadow(0 4px 10px rgba(242, 193, 78, .6));
  animation: fx-float 2.6s ease-in-out infinite;
}
.fx-champ .arena-champ-crest { box-shadow: 0 0 0 2px var(--fx-gold), 0 0 22px rgba(242, 193, 78, .45); }

/* Season bar */
.fx-season { margin-top: 18px; max-width: 560px; }
.fx-season-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin-bottom: 8px;
  font: 800 .72rem/1.2 var(--label-font, "Space Grotesk", sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.fx-season-label { color: var(--muted); }
.fx-season-value { color: #fff; }
.fx-season-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  overflow: visible;
}
.fx-season-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--pct);
  border-radius: inherit;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .18) 0 8px, transparent 8px 16px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 65%, #000), var(--accent));
  background-size: 32px 100%, 100% 100%;
  box-shadow: 0 0 16px var(--fx-glow);
  transform-origin: left;
  animation: grow-x 1.2s cubic-bezier(.2, .8, .2, 1) .4s both, fx-stripes 1s linear infinite;
}
.fx-season-ball {
  position: absolute;
  top: 50%;
  left: clamp(0px, calc(var(--pct) - 11px), calc(100% - 22px));
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: 1.05rem;
  transform: translateY(-50%);
  animation: fx-ball-in 1.2s cubic-bezier(.2, .8, .2, 1) .4s both, fx-bounce 1.4s ease-in-out 1.6s infinite;
}
.fx-season-warn { margin: 8px 0 0; font-size: .8rem; color: #ffc46b; }

/* ---------- Quest / missions --------------------------------------------- */
.fx-quest {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 3vw, 24px);
  border-radius: var(--arena-radius, 18px);
  border: 1px solid var(--arena-line, var(--line));
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--arena-panel, rgba(9, 18, 29, .9));
}
@media (min-width: 980px) { .fx-quest { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); align-items: center; } }
.fx-quest-level { display: flex; align-items: center; gap: 16px; }
.fx-quest-title { margin: 2px 0 4px; font: 800 1.25rem/1.15 var(--display-font, "Space Grotesk", sans-serif); }
.fx-xp { margin: 0; color: var(--muted); font-size: .86rem; }
.fx-xp strong { color: #fff; font-variant-numeric: tabular-nums; }
.fx-level-badge {
  display: inline-block;
  padding: 2px 10px;
  margin-left: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  color: #fff;
  font-size: .9rem;
}
.fx-level-badge.is-max {
  background: linear-gradient(90deg, #b8862b, var(--fx-gold), #fff3c4, var(--fx-gold), #b8862b);
  background-size: 200% 100%;
  color: #2b1d00;
  border-color: var(--fx-gold);
  animation: fx-gold 2.5s linear infinite;
}

.fx-ring { position: relative; width: 92px; height: 92px; flex: none; }
.fx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fx-ring circle { fill: none; stroke-width: 10; }
.fx-ring-bg { stroke: rgba(255, 255, 255, .08); }
.fx-ring-fg {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--pct));
  filter: drop-shadow(0 0 6px var(--fx-glow));
  transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1);
}
.fx-reveal:not(.is-in) .fx-ring-fg { stroke-dashoffset: 100; }
.fx-ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.fx-ring-text strong { font: 800 1.35rem/1 var(--display-font, "Space Grotesk", sans-serif); font-variant-numeric: tabular-nums; }
.fx-ring-text span { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fx-ring.is-levelup { animation: fx-levelup .9s cubic-bezier(.2, 1.4, .4, 1); }

.fx-missions {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.fx-mission a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .025);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.fx-reveal.is-in .fx-mission a { animation: fx-pop-in .45s cubic-bezier(.2, 1.4, .4, 1) calc(var(--i) * 60ms) both; }
.fx-mission a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: rgba(255, 255, 255, .05); }
.fx-mission-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  font-size: 1.15rem;
  filter: grayscale(.7);
  transition: filter .2s ease, transform .2s ease;
}
.fx-mission a:hover .fx-mission-icon { filter: none; transform: rotate(-8deg) scale(1.1); }
.fx-mission-body strong { display: block; font-size: .86rem; }
.fx-mission-body small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.3; }
.fx-mission-xp {
  font: 800 .68rem/1 var(--label-font, "Space Grotesk", sans-serif);
  color: var(--fx-gold);
  white-space: nowrap;
}
.fx-mission.is-done a {
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(255, 255, 255, .02));
}
.fx-mission.is-done .fx-mission-icon { filter: none; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.fx-mission.is-done a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: fx-sheen 4.5s ease-in-out calc(var(--i) * .35s) infinite;
}
.fx-check {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .8rem;
  box-shadow: 0 0 12px var(--fx-glow);
}

/* ---------- Tabs ---------------------------------------------------------- */
.arena--fx .arena-tabs a { position: relative; transition: background .2s ease, color .2s ease, transform .15s ease; }
.arena--fx .arena-tabs a:active { transform: scale(.95); }
.arena--fx .arena-tabs a.is-active { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 6px 18px var(--fx-glow); }

/* ---------- Scroll reveal ------------------------------------------------- */
.fx-reveal { opacity: 0; transform: translateY(18px) scale(.99); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.fx-reveal.is-in { opacity: 1; transform: none; }

/* Panels: glowing top edge + hover lift */
.arena--fx .arena-panel { position: relative; transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1), border-color .25s ease, box-shadow .25s ease; }
.arena--fx .arena-panel::before {
  content: "";
  position: absolute; left: 18px; right: 18px; top: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .0;
  transition: opacity .3s ease;
}
.arena--fx .arena-panel.is-in::before { opacity: .7; }
.arena--fx .arena-panel:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }

/* ---------- Standings ----------------------------------------------------- */
.arena--fx .is-in .arena-standings tbody tr { animation: fx-row-in .45s ease calc(var(--i, 1) * 45ms) both; }
.arena--fx .arena-standings .rank-1 { background: linear-gradient(90deg, rgba(242, 193, 78, .16), transparent 70%); }
.arena--fx .arena-standings .rank-1 .rank-pos::after { display: inline-block; animation: fx-medal 2.4s ease-in-out infinite; }
.arena--fx .arena-standings tbody tr { transition: background .15s ease; }
.arena--fx .arena-standings tbody tr:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ---------- Bouts --------------------------------------------------------- */
.arena--fx .bout { transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.arena--fx .bout:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.arena--fx .bout-vs { display: inline-block; animation: fx-vs 3s ease-in-out infinite; }
.fx-goal-flash { animation: fx-goal 1.2s ease; }

/* ---------- Region chips + roster (catálogo de PDVs) ---------------------- */
.fx-regions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.fx-region {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font: 800 .8rem/1 var(--label-font, "Space Grotesk", sans-serif);
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.fx-region span {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .7rem;
}
.fx-region:hover { transform: translateY(-2px); color: #fff; }
.fx-region:active { transform: scale(.94); }
.fx-region.is-active {
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  box-shadow: 0 6px 18px var(--fx-glow);
}
.fx-region.is-active span { background: var(--accent); }
.fx-region--sp.is-active { border-color: #ff5a7a; background: rgba(255, 90, 122, .22); box-shadow: 0 6px 18px rgba(255, 90, 122, .35); }
.fx-region--sp.is-active span { background: #ff5a7a; }

.fx-roster.is-shuffling .picker-row { animation: fx-row-in .35s ease calc(min(var(--i), 20) * 18ms) both; }

.fx-roster { align-content: start; }
.fx-player { grid-template-columns: auto auto 1fr auto; position: relative; min-height: max-content; }
.fx-player-crest {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 45%, #111), #0b1220);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  color: #fff;
  font: 800 .78rem/1 var(--display-font, "Space Grotesk", sans-serif);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2, 1.4, .4, 1);
}
.fx-player-crest.has-logo { background: #fff; padding: 3px; }
.fx-player-crest img { width: 100%; height: 100%; object-fit: contain; }
.fx-player:hover .fx-player-crest { transform: rotate(-6deg) scale(1.08); }
.fx-player:has(input:checked:not(:disabled)) {
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent), rgba(255, 255, 255, .03));
  box-shadow: inset 3px 0 0 var(--accent);
}
.fx-player:has(input:checked:not(:disabled)) .fx-player-crest { transform: scale(1.06); box-shadow: 0 0 0 2px var(--accent), 0 0 16px var(--fx-glow); }
.fx-pop { animation: fx-row-pop .38s cubic-bezier(.2, 1.4, .4, 1); }

.fx-uf { font-weight: 800; letter-spacing: .06em; }
.fx-uf--sp { background: rgba(255, 90, 122, .18); border-color: rgba(255, 90, 122, .55); color: #ffc2cf; }
.fx-uf--rj { background: rgba(63, 169, 255, .16); border-color: rgba(63, 169, 255, .5); color: #bfe2ff; }
.fx-uf--es { background: rgba(124, 242, 156, .12); border-color: rgba(124, 242, 156, .45); color: #c8f9d4; }
.fx-new {
  background: linear-gradient(90deg, #ff8a00, #ff5a7a);
  border-color: transparent;
  color: #fff;
  font-weight: 800;
  animation: fx-new 1.8s ease-in-out infinite;
}

/* ---------- Flash, toast, confetti ---------------------------------------- */
.fx-flash-win { position: relative; overflow: hidden; animation: fx-pop-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.fx-flash-win::before { content: "🏆 "; }
.fx-flash-shake { animation: fx-shake .45s ease; }

.fx-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }

.fx-toast {
  position: fixed;
  left: 50%; top: 22%;
  z-index: 95;
  display: grid; justify-items: center; gap: 4px;
  padding: 16px 28px;
  border-radius: 18px;
  background: rgba(6, 10, 16, .92);
  border: 2px solid var(--accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 40px var(--fx-glow, rgba(46, 204, 113, .4));
  transform: translate(-50%, 0);
  animation: fx-toast-in .5s cubic-bezier(.2, 1.5, .4, 1) both;
  pointer-events: none;
  text-align: center;
}
.fx-toast strong { font: 400 clamp(2rem, 7vw, 3.4rem)/1 "Anton", Impact, sans-serif; letter-spacing: .04em; color: var(--accent); text-shadow: 0 0 24px var(--fx-glow, transparent); }
.fx-toast span { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.fx-toast--level strong { color: var(--fx-gold, #f2c14e); }
.fx-toast.is-out { animation: fx-toast-out .5s ease forwards; }

/* ==========================================================================
   Página pública do campeonato
   ========================================================================== */
@media (min-width: 860px) {
  .arena--public .fx-public-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Countdown */
.fx-kickoff {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--arena-radius, 18px);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  background:
    radial-gradient(60% 120% at 100% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--arena-panel, rgba(9, 18, 29, .9));
}
@media (min-width: 860px) { .fx-kickoff { grid-template-columns: minmax(0, 1fr) auto; } }
.fx-kickoff h3 { margin: 4px 0 6px; font: 800 clamp(1.3rem, 3.4vw, 1.9rem)/1.1 var(--display-font, "Space Grotesk", sans-serif); }
.fx-kickoff .muted { margin: 0; }
.fx-countdown { display: grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: 10px; }
.fx-countdown div {
  display: grid; justify-items: center; gap: 4px;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: inset 0 -12px 24px rgba(0, 0, 0, .25);
}
.fx-countdown strong {
  font: 400 clamp(1.8rem, 5vw, 2.6rem)/1 "Anton", Impact, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 18px var(--fx-glow);
}
.fx-countdown strong.is-tick { animation: fx-flip .45s ease; }
.fx-countdown span { font: 800 .62rem/1 var(--label-font, "Space Grotesk", sans-serif); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Podium */
.fx-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(8px, 2vw, 18px);
  padding: clamp(16px, 3vw, 26px) clamp(10px, 3vw, 26px) 0;
  border-radius: var(--arena-radius, 18px);
  border: 1px solid var(--arena-line, var(--line));
  background: radial-gradient(70% 90% at 50% 100%, rgba(242, 193, 78, .14), transparent 70%), var(--arena-panel, rgba(9, 18, 29, .9));
  overflow: hidden;
}
.fx-podium-spot { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.fx-reveal.is-in .fx-podium-spot { animation: fx-pop-in .6s cubic-bezier(.2, 1.4, .4, 1) calc(var(--i) * 140ms) both; }
.fx-podium-medal { font-size: 1.8rem; animation: fx-float 3s ease-in-out infinite; }
.fx-podium-crest { width: 64px !important; height: 64px !important; font-size: 1.2rem !important; }
.fx-podium-spot--1 .fx-podium-crest { width: 84px !important; height: 84px !important; box-shadow: 0 0 0 3px var(--fx-gold), 0 0 30px rgba(242, 193, 78, .5); }
.fx-podium-name { font-weight: 800; font-size: .9rem; overflow-wrap: anywhere; }
.fx-podium-pts { color: var(--muted); font-size: .8rem; }
.fx-podium-pts b { color: #fff; font-size: 1.1rem; }
.fx-podium-block {
  width: 100%;
  display: grid; place-items: start center;
  padding-top: 10px;
  border-radius: 12px 12px 0 0;
  font: 400 1.6rem/1 "Anton", Impact, sans-serif;
  color: rgba(255, 255, 255, .85);
  transform-origin: bottom;
}
.fx-reveal.is-in .fx-podium-block { animation: fx-grow-y .8s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 140ms + .2s) both; }
.fx-podium-spot--1 .fx-podium-block { height: 120px; background: linear-gradient(180deg, #f2c14e, #a77a16); color: #3a2800; }
.fx-podium-spot--2 .fx-podium-block { height: 88px; background: linear-gradient(180deg, #d9e2ec, #8a98a8); color: #1e2833; }
.fx-podium-spot--3 .fx-podium-block { height: 64px; background: linear-gradient(180deg, #e09a5b, #8e5424); color: #2d1606; }

/* Rich standings table */
.fx-table-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -4px 0 12px; font-size: .74rem; color: var(--muted); }
.fx-table-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fx-table-legend .fx-dot { width: 10px; height: 10px; font-size: 0; }
.fx-standings { font-variant-numeric: tabular-nums; }
.fx-standings th { white-space: nowrap; }
.fx-standings td { vertical-align: middle; }
.fx-trow { position: relative; }
.fx-trow td:first-child { position: relative; }
.fx-trow.rank-1 td:first-child::before, .fx-trow.rank-2 td:first-child::before, .fx-trow.rank-3 td:first-child::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px;
}
.fx-trow.rank-1 td:first-child::before { background: var(--fx-gold); box-shadow: 0 0 10px var(--fx-gold); }
.fx-trow.rank-2 td:first-child::before { background: #c9d3dd; }
.fx-trow.rank-3 td:first-child::before { background: #d48a4a; }
.fx-team { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.fx-team-crest { width: 30px !important; height: 30px !important; font-size: .7rem !important; flex: none; transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.fx-trow:hover .fx-team-crest { transform: scale(1.18) rotate(-6deg); }
.fx-team-name { font-weight: 700; white-space: nowrap; }
.fx-delta { font: 800 .68rem/1 var(--label-font, "Space Grotesk", sans-serif); padding: 3px 6px; border-radius: 999px; }
.fx-delta--up { color: #7cf29c; background: rgba(124, 242, 156, .12); animation: fx-up 1.6s ease-in-out infinite; }
.fx-delta--down { color: #ff7a8a; background: rgba(255, 90, 122, .12); }
.fx-pts { position: relative; min-width: 56px; }
.fx-pts strong { position: relative; z-index: 1; font-size: 1.05rem; }
.fx-pts-bar { display: block; height: 3px; margin-top: 4px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fx-pts-bar::after { content: ""; display: block; height: 100%; width: var(--pts); background: var(--accent); border-radius: inherit; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.fx-plus {
  position: absolute; left: 50%; top: -2px;
  font: 800 .8rem/1 var(--label-font, "Space Grotesk", sans-serif);
  color: #7cf29c;
  pointer-events: none;
  animation: fx-plus 1.8s ease forwards;
}
.fx-trow-up { animation: fx-row-flash 1.6s ease; }
.fx-sg.is-pos { color: #7cf29c; }
.fx-sg.is-neg { color: #ff7a8a; }
.fx-eff { position: relative; display: inline-flex; justify-content: center; white-space: nowrap; min-width: 54px; padding: 3px 8px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .06); font-weight: 700; font-size: .8rem; }
.fx-eff::before { content: ""; position: absolute; inset: 0; width: var(--eff); background: color-mix(in srgb, var(--accent) 40%, transparent); transition: width .8s ease; }
.fx-eff > * { position: relative; }
.fx-eff span { position: relative; }
.fx-form { display: inline-flex; gap: 4px; }
.fx-dot {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font: 800 .62rem/1 var(--label-font, "Space Grotesk", sans-serif);
  font-style: normal;
  color: #06110a;
}
.fx-dot--v { background: #34d46b; }
.fx-dot--e { background: #9aa8b8; }
.fx-dot--d { background: #ff5a6a; color: #fff; }
.fx-form .fx-dot:last-child { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
@media (max-width: 760px) {
  .fx-col-wide { display: none; }
}

/* ==========================================================================
   Tela da partida — campo simulado
   ========================================================================== */
.fx-pitch-panel .arena-panel-head { flex-wrap: wrap; gap: 12px; }
.fx-pitch-panel .arena-eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.fx-pitch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-cheer { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-cheer--a { border-color: rgba(255, 77, 94, .55) !important; }
.fx-cheer--b { border-color: rgba(63, 169, 255, .55) !important; }
.fx-cheer.is-pulse { animation: fx-row-pop .4s cubic-bezier(.2, 1.4, .4, 1); }
.fx-pitch-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .4);
  background: #1f7a3a;
}
.fx-pitch { display: block; width: 100%; aspect-ratio: 1000 / 620; cursor: crosshair; touch-action: manipulation; }
.fx-pitch-hint {
  position: absolute; right: 10px; bottom: 8px; margin: 0;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: .72rem; font-weight: 700;
  pointer-events: none;
  animation: fx-hint 6s ease 2s forwards;
}
.fx-scorebug {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  display: flex; align-items: center; gap: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(5, 8, 12, .86);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  font: 800 .78rem/1 var(--label-font, "Space Grotesk", sans-serif);
  pointer-events: none;
  max-width: calc(100% - 20px);
}
.fx-bug-team { padding: 8px 10px; color: #fff; max-width: 22vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-bug-team--a { border-left: 4px solid #ff4d5e; }
.fx-bug-team--b { border-right: 4px solid #3fa9ff; }
.fx-bug-score { display: inline-flex; gap: 6px; padding: 6px 10px; background: #fff; color: #0a0f14; font-size: 1rem; }
.fx-bug-score b.is-bump { animation: score-bump .8s ease; display: inline-block; }
.fx-bug-score i { font-style: normal; opacity: .5; }
.fx-bug-clock { padding: 8px 10px; color: var(--accent); font-variant-numeric: tabular-nums; }
.fx-bug-replay { display: none; padding: 8px 10px; background: #ff3b4e; color: #fff; letter-spacing: .1em; animation: bout-live 1s ease-in-out infinite; }
.fx-pitch-panel.is-replay .fx-bug-replay { display: inline; }
.fx-pitch-panel.is-replay .fx-bug-clock { display: none; }

.fx-pitch-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-content: center; justify-items: center; gap: 6px;
  pointer-events: none;
  opacity: 0;
  text-align: center;
  background: radial-gradient(circle, rgba(0, 0, 0, .55), transparent 70%);
}
.fx-pitch-overlay.is-on { animation: fx-overlay 2.8s ease forwards; }
.fx-pitch-overlay strong {
  font: 400 clamp(2.6rem, 11vw, 6.5rem)/.9 "Anton", Impact, sans-serif;
  letter-spacing: .04em;
  color: #fff;
  -webkit-text-stroke: 2px rgba(0, 0, 0, .3);
  text-shadow: 0 6px 0 rgba(0, 0, 0, .35), 0 0 40px var(--fx-glow);
}
.fx-pitch-overlay.is-a strong { color: #ffd2d7; text-shadow: 0 6px 0 rgba(0, 0, 0, .35), 0 0 40px rgba(255, 77, 94, .9); }
.fx-pitch-overlay.is-b strong { color: #d4ecff; text-shadow: 0 6px 0 rgba(0, 0, 0, .35), 0 0 40px rgba(63, 169, 255, .9); }
.fx-pitch-overlay span { padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: clamp(.8rem, 2.4vw, 1.1rem); }
.fx-pitch-overlay em { font-style: normal; color: var(--fx-gold); font-weight: 800; font-size: .85rem; letter-spacing: .08em; }
.fx-pitch-panel.is-goal .fx-pitch-stage { animation: fx-goal-stage 1.2s ease; }

.fx-pitch-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}
@media (min-width: 700px) { .fx-pitch-stats { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.fx-poss, .fx-mini-stat { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.fx-poss-label { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.fx-poss-label b { color: #fff; font-size: .9rem; letter-spacing: 0; }
.fx-poss-bar { display: block; height: 8px; margin-top: 8px; border-radius: 999px; background: #3fa9ff; overflow: hidden; }
.fx-poss-bar i { display: block; height: 100%; width: var(--poss); background: #ff4d5e; transition: width .9s ease; }
.fx-mini-stat { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fx-mini-stat span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.fx-mini-stat b { font-size: 1rem; font-variant-numeric: tabular-nums; }

.fx-feed { list-style: none; margin: 12px 0 6px; padding: 0; display: grid; gap: 6px; min-height: 40px; }
.fx-feed-item {
  display: flex; gap: 10px; align-items: baseline;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border-left: 3px solid rgba(255, 255, 255, .15);
  font-size: .86rem;
  animation: fx-row-in .35s ease;
}
.fx-feed-item:not(:first-child) { opacity: .7; }
.fx-feed-item b { color: var(--accent); font-variant-numeric: tabular-nums; min-width: 28px; }
.fx-feed-item.is-goal { border-left-color: var(--fx-gold); background: rgba(242, 193, 78, .1); font-weight: 800; }
.fx-feed-item.is-save { border-left-color: #ffe16b; }
.fx-feed-item.is-shot { border-left-color: #ff8a00; }
.fx-feed-item.is-cheer { border-left-color: #ff5a7a; }
.fx-feed-item.is-info { border-left-color: var(--accent); }

/* Goal timeline on the match page */
.arena--match .goal-item { animation: fx-row-in .4s ease both; }
.arena--match .goal-item:hover { transform: translateX(3px); }

/* ---------- Keyframes ----------------------------------------------------- */
@keyframes fx-hero-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fx-sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes fx-rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .55; }
  80% { opacity: .35; }
  100% { transform: translateY(-460px) translateX(30px); opacity: 0; }
}
@keyframes fx-title-shine { 0%, 55% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
@keyframes fx-pop-in { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes fx-float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-6px) rotate(6deg); } }
@keyframes fx-stripes { to { background-position: 32px 0, 0 0; } }
@keyframes fx-ball-in { from { left: -11px; opacity: 0; } }
@keyframes fx-bounce { 0%, 100% { transform: translateY(-50%) rotate(0); } 50% { transform: translateY(-95%) rotate(180deg); } }
@keyframes fx-gold { to { background-position: -200% 0; } }
@keyframes fx-levelup { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-6deg); } 100% { transform: scale(1); } }
@keyframes fx-row-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes fx-row-pop { 0% { transform: scale(1); } 40% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes fx-medal { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-12deg) scale(1.15); } }
@keyframes fx-vs { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes fx-goal {
  0% { box-shadow: 0 0 0 0 var(--fx-glow); }
  30% { box-shadow: 0 0 0 6px var(--fx-glow), 0 0 50px var(--fx-glow); transform: scale(1.015); }
  100% { box-shadow: 0 0 0 0 transparent; transform: none; }
}
@keyframes fx-new { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
@keyframes fx-shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes fx-toast-in { from { opacity: 0; transform: translate(-50%, 20px) scale(.7); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes fx-toast-out { to { opacity: 0; transform: translate(-50%, -20px) scale(.9); } }
@keyframes fx-flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); opacity: .4; } 100% { transform: rotateX(0); } }
@keyframes fx-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fx-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes fx-plus { 0% { opacity: 0; transform: translate(-50%, 6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px); } }
@keyframes fx-row-flash { 0% { background: color-mix(in srgb, var(--accent) 35%, transparent); } 100% { background: transparent; } }
@keyframes fx-hint { to { opacity: 0; } }
@keyframes fx-overlay { 0% { opacity: 0; transform: scale(.6); } 12% { opacity: 1; transform: scale(1.08); } 20% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: scale(1.05); } }
@keyframes fx-goal-stage { 0%, 100% { transform: none; } 10% { transform: translate(-6px, 3px); } 20% { transform: translate(6px, -3px); } 30% { transform: translate(-4px, 2px); } 40% { transform: none; } }
@keyframes fx-ping { 0% { box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 0 var(--fx-glow); } 70% { box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 16px transparent; } 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 0 transparent; } }

@media (max-width: 640px) {
  .fx-sound-toggle { right: 12px; bottom: 12px; width: 44px; height: 44px; }
  .fx-player { grid-template-columns: auto auto 1fr; }
  .fx-player .picker-row-tags { grid-column: 1 / -1; justify-content: flex-start; }
  .fx-quest-level { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .arena--fx *, .arena--fx *::before, .arena--fx *::after, .fx-toast { animation: none !important; transition: none !important; }
  .fx-reveal { opacity: 1; transform: none; }
  .fx-particles { display: none; }
}

/* ==========================================================================
   Admin — painel do link de montagem
   ========================================================================== */
.fx-share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.fx-share-row form { margin: 0; }
.fx-share-input { flex: 1 1 280px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.fx-share-row--secondary { margin-top: 12px; }
.fx-share { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

/* ==========================================================================
   Montar partidas (/montar/<token>)
   ========================================================================== */
.ed { padding-bottom: 96px; }
.ed-head {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 16px;
  padding: clamp(16px, 4vw, 28px);
  border-radius: var(--arena-radius, 18px);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 55%),
    linear-gradient(160deg, rgba(10, 18, 28, .96), rgba(5, 9, 15, .98));
}
@media (min-width: 860px) { .ed-head { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); align-items: end; } }
.ed-head .arena-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ed-title { margin: 0 0 14px; font: 800 clamp(1.7rem, 6vw, 2.6rem)/1 var(--display-font, "Space Grotesk", sans-serif); }
.ed-date { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ed-date-step {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.ed-date-step:hover { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.ed-date-step:active { transform: scale(.9); }
.ed-date-field {
  display: grid; gap: 2px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: rgba(0, 0, 0, .3);
}
.ed-date-week { font: 800 .64rem/1 var(--label-font, "Space Grotesk", sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ed-date-field input { border: 0; background: transparent; color: #fff; font: 700 1rem/1.2 inherit; padding: 0; color-scheme: dark; min-height: 26px; }
.ed-chip {
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
  color: #fff; font-weight: 800; font-size: .82rem; cursor: pointer;
}
.ed-chip.is-active { background: var(--accent); border-color: transparent; color: #06110a; }
.ed-progress { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.ed-progress-top { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); }
.ed-progress-top b { color: #fff; font-variant-numeric: tabular-nums; }
.ed-progress-bar { height: 10px; margin-top: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ed-progress-bar i {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .2) 0 8px, transparent 8px 16px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, #000), var(--accent));
  background-size: 32px 100%, 100% 100%;
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
  animation: fx-stripes 1s linear infinite;
}

.ed-hint {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  font-size: .92rem;
  transition: background .25s ease, border-color .25s ease;
}
.ed-hint.is-active { border-style: solid; background: color-mix(in srgb, var(--accent) 18%, transparent); animation: fx-pop-in .3s ease; }
.ed-hint.is-done { border-style: solid; border-color: var(--fx-gold); background: rgba(242, 193, 78, .12); font-weight: 800; }
.ed-hint-step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #06110a; font-weight: 800; font-size: .75rem; }

.ed-grid { display: grid; gap: 18px; }
@media (min-width: 960px) { .ed-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.ed-panel h3 { display: flex; align-items: center; gap: 8px; }
.ed-badge { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: #06110a; font-size: .8rem; }
.ed-search { width: 100%; margin-bottom: 12px; }

.ed-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ed-team {
  position: relative;
  display: grid; justify-items: center; align-content: start; gap: 8px;
  min-height: 118px;
  padding: 14px 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .18s cubic-bezier(.2, 1.4, .4, 1), border-color .2s ease, box-shadow .2s ease, background .2s ease;
  animation: fx-pop-in .35s cubic-bezier(.2, 1.4, .4, 1) calc(min(var(--i), 24) * 18ms) both;
}
.ed-team:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.ed-team:active { transform: scale(.95); }
.ed-team-name { font-weight: 800; font-size: .86rem; line-height: 1.15; overflow-wrap: anywhere; }
.ed-team.is-selected {
  border-color: var(--accent);
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 35%, transparent), rgba(255, 255, 255, .03));
  box-shadow: 0 0 0 2px var(--accent), 0 12px 30px var(--fx-glow);
  transform: translateY(-4px) scale(1.03);
}
.ed-team.is-selected::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #06110a; font-weight: 800; font-size: .8rem; }
.ed-team.is-target { border-style: dashed; animation: ed-wiggle 1.6s ease-in-out infinite; }
.ed-team.is-target:hover { border-style: solid; background: color-mix(in srgb, var(--accent) 14%, transparent); }

.ed-crest {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 45%, #111), #0b1220);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  font: 800 .9rem/1 var(--display-font, "Space Grotesk", sans-serif);
  color: #fff;
  overflow: hidden;
  flex: none;
}
.ed-crest.has-logo { background: #fff; padding: 4px; }
.ed-crest img { width: 100%; height: 100%; object-fit: contain; }
.ed-crest--sm { width: 34px; height: 34px; border-radius: 10px; font-size: .72rem; }
.ed-tag { font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.ed-tag--forte { background: rgba(255, 138, 0, .18); color: #ffc58a; }
.ed-tag--fraco { background: rgba(63, 169, 255, .16); color: #bfe2ff; }

.ed-matches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ed-match {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}
.ed-match.is-new { animation: ed-match-in .6s cubic-bezier(.2, 1.4, .4, 1) calc(var(--i) * 50ms) both; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.ed-match.is-locked { opacity: .8; }
.ed-match-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .07); font-weight: 800; font-size: .75rem; color: var(--muted); }
.ed-side { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 800; font-size: .86rem; }
.ed-side span:not(.ed-crest) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-side--b { justify-content: flex-end; text-align: right; }
.ed-vs { font: 400 1rem/1 "Anton", Impact, sans-serif; color: var(--accent); letter-spacing: .04em; white-space: nowrap; }
.ed-undo {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 90, 106, .4);
  background: rgba(255, 90, 106, .1);
  color: #ffb3bc;
  font-size: 1rem; font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.ed-undo:hover { background: rgba(255, 90, 106, .25); transform: rotate(90deg); }
.ed-lock { text-align: center; }
.ed-empty { margin: 8px 0 0; color: var(--muted); text-align: center; padding: 18px 10px; border: 1px dashed var(--line); border-radius: 14px; }

.ed-actions {
  position: fixed; left: 50%; bottom: 14px; z-index: 50;
  display: flex; gap: 8px;
  width: min(560px, calc(100% - 92px));
  padding: 8px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  background: rgba(6, 10, 16, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  transform: translateX(-50%);
}
.ed-action { flex: 1; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; }
.ed-action:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 420px) { .ed-actions { left: 12px; transform: none; width: calc(100% - 80px); } .ed-action { font-size: .82rem; padding-inline: 8px; } }

.ed-reel { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.ed-reel[hidden] { display: none; }
.ed-reel-box { padding: 24px 28px; border-radius: 20px; border: 2px solid var(--accent); background: rgba(6, 10, 16, .95); text-align: center; box-shadow: 0 0 60px var(--fx-glow); animation: fx-pop-in .3s ease both; width: min(520px, calc(100% - 32px)); }
.ed-reel-box p { margin: 0 0 12px; font: 800 .8rem/1 var(--label-font, "Space Grotesk", sans-serif); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.ed-reel-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.ed-reel-vs span { font-weight: 800; font-size: clamp(.9rem, 3.6vw, 1.2rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-reel-vs b { font: 400 1.6rem/1 "Anton", Impact, sans-serif; color: var(--accent); }

@media (max-width: 560px) {
  .ed-match { grid-template-columns: 22px minmax(0, 1fr) auto minmax(0, 1fr) 36px; gap: 6px; padding: 10px 8px; }
  .ed-match-num { width: 22px; height: 22px; }
  .ed-side, .ed-side--b { flex-direction: column; justify-content: center; text-align: center; gap: 4px; font-size: .74rem; }
  .ed-side--b { flex-direction: column-reverse; }
  .ed-side span:not(.ed-crest) { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
  .ed-undo { width: 36px; height: 36px; }
  .ed-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@keyframes ed-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1deg); } 75% { transform: rotate(1deg); } }
@keyframes ed-match-in { from { opacity: 0; transform: translateX(-20px) scale(.95); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ed-team, .ed-match, .ed-reel-box { animation: none !important; } }

/* REDE CONFIANÇA (soma de todas as lojas) */
.is-rede {
  background: linear-gradient(140deg, #f7d77a, #b8862b) !important;
  color: #2b1d00 !important;
  border-color: #f2c14e !important;
  font-weight: 900 !important;
  box-shadow: 0 0 14px rgba(242, 193, 78, .45);
}

/* ---------------------------------------------- Points rules (admin) --- */
.fx-rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.fx-rule {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 12px 12px; border-radius: 16px; text-align: center; cursor: default;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1); transition: transform .2s, border-color .2s;
}
.fx-rule:focus-within { border-color: var(--accent, #ffcc33); transform: translateY(-2px); }
.fx-rule--win { box-shadow: inset 0 3px 0 #2ecc71; }
.fx-rule--draw { box-shadow: inset 0 3px 0 #f5b941; }
.fx-rule--draw_zero { box-shadow: inset 0 3px 0 #8fa3b8; }
.fx-rule--loss { box-shadow: inset 0 3px 0 #e74c3c; }
.fx-rule-icon { font-size: 1.8rem; line-height: 1; }
.fx-rule-label { font-weight: 800; font-size: .95rem; }
.fx-rule small { opacity: .65; font-size: .75rem; min-height: 1.2em; }
.fx-rule-input { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.fx-rule-input input {
  width: 64px; text-align: center; font-size: 1.6rem; font-weight: 900; padding: 4px;
  border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.15); color: inherit;
  -moz-appearance: textfield;
}
.fx-rule-input input::-webkit-outer-spin-button,
.fx-rule-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fx-rule-step {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: inherit; font-size: 1.2rem; font-weight: 800; cursor: pointer;
}
.fx-rule-step:hover { background: rgba(255,255,255,.18); }
.fx-rule-step:active { transform: scale(.9); }
.fx-rule-unit { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.fx-rule.is-bump .fx-rule-input input { animation: fx-rule-bump .3s ease; }
@keyframes fx-rule-bump { 50% { transform: scale(1.18); } }
.fx-rules-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.fx-rules-foot p { margin: 0; font-size: .8rem; flex: 1 1 260px; }
@media (max-width: 420px) { .fx-rules-grid { grid-template-columns: 1fr 1fr; } .fx-rule-input input { width: 52px; font-size: 1.3rem; } }
.fx-points-rules { margin: 0 0 10px; font-size: .78rem; opacity: .75; }
.fx-points-rules b { color: var(--accent, #ffcc33); }
