/* NCTF26 — classement en direct (vitrine). Reprend les jetons de site.css (charte National CTF). */

/* ------------------------------------------------ section de l'accueil (#classement) */
.cl { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--flag-bg); padding: clamp(14px, 3vw, 28px); }
.cl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cl-live { color: var(--green); }
.cl-live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); animation: cl-pulse 2s infinite; vertical-align: middle; }
.cl[data-error] .cl-live { color: var(--red); }
.cl[data-error] .cl-live::before { background: var(--red); animation: none; }
@keyframes cl-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 160, 107, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(34, 160, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 160, 107, 0); } }
.cl-state { margin: 8px 0; color: var(--soft); }
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cl-row { display: grid; grid-template-columns: 2.6em minmax(0, 1.6fr) minmax(0, 1fr) 5.5em; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); border: 1px solid transparent; }
.cl-pos { font-family: var(--mono); color: var(--muted); text-align: right; }
.cl-name { color: var(--paper); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-bar { height: 6px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.cl-fill { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width 0.6s ease; }
.cl-score { font-family: var(--mono); color: var(--paper); text-align: right; font-variant-numeric: tabular-nums; }
.cl-top1 { border-color: var(--yellow-line); background: var(--yellow-wash); }
.cl-top1 .cl-pos, .cl-top1 .cl-score { color: var(--yellow); }
.cl-top1 .cl-fill { background: var(--yellow); }
.cl-top2 .cl-pos { color: var(--soft); }
.cl-top3 .cl-pos { color: var(--bronze); }
.cl-more { color: var(--muted); font-family: var(--mono); font-size: 0.85rem; padding: 6px 12px; }
.cl-foot { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.cl-foot a { color: var(--green); }
@media (max-width: 560px) {
  .cl-row { grid-template-columns: 2.2em minmax(0, 1fr) 4.5em; }
  .cl-bar { display: none; }
}

/* ------------------------------------------------ écran /classement.html (projecteur + mobile) */
.ec-body { background: var(--ink); color: var(--paper); min-height: 100vh; overflow-x: hidden; }
.ec-band { position: fixed; top: 0; left: 0; right: 0; height: 3px; display: flex; z-index: 3; }
.ec-band span { flex: 1; }
.ec-band span:nth-child(1) { background: var(--green-deep); }
.ec-band span:nth-child(2) { background: var(--yellow); }
.ec-band span:nth-child(3) { background: var(--red); }

.ec-bg { position: fixed; top: 0; right: 0; bottom: 0; width: 62%; z-index: 0; }
.ec-bg img, .ec-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 22%; }
.ec-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(10, 13, 11, 0.55) 34%, rgba(10, 13, 11, 0) 70%),
              linear-gradient(0deg, rgba(10, 13, 11, 0.9) 0%, rgba(10, 13, 11, 0) 26%); }
.ec-body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 60% at 4% 38%, var(--green-glow), transparent 70%); }

.ec { position: relative; z-index: 1; min-height: 100vh; box-sizing: border-box;
  padding: clamp(28px, 5.2vh, 56px) clamp(20px, 3.75vw, 72px) clamp(20px, 4.4vh, 48px);
  display: grid; grid-template-columns: minmax(0, 70rem) minmax(0, 1fr); gap: clamp(24px, 2.5vw, 48px); }
.ec-main { display: flex; flex-direction: column; gap: clamp(14px, 2.6vh, 28px); min-width: 0; }

.ec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ec-eyebrow { margin: 0 0 12px; font-family: var(--mono); font-size: clamp(0.72rem, 0.8vw, 0.95rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.ec-eyebrow span { display: inline-block; width: 32px; height: 2px; background: var(--yellow); }
.ec-title h1 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: clamp(3.2rem, 5.6vw, 6.4rem); line-height: 0.9; letter-spacing: 0.01em; text-transform: uppercase; }
.ec-title h1 span { color: var(--red); }

.ec-clock { display: grid; gap: 10px; padding: 16px 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(15, 20, 17, 0.78); backdrop-filter: blur(6px); min-width: min(100%, 27rem); }
.ec-clock-label { margin: 0; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ec-clock-label strong { color: var(--paper); font-weight: 400; }
.ec-clock-digits { margin: 0; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ec-clock-digits span { display: inline-flex; align-items: baseline; gap: 6px; }
.ec-clock-digits span[hidden] { display: none; }
.ec-clock-digits[hidden] { display: none; }
.ec[data-phase="over"] .ec-live::before { animation: none; }
.ec-clock-digits b { font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: clamp(2.2rem, 3.2vw, 3.6rem); line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.ec-clock-digits i { font-style: normal; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.ec-progress { height: 4px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.ec-progress span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width 1s linear; }
.ec-clock-note { margin: 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); }
.ec[data-phase="frozen"] .ec-clock-label { color: var(--yellow); }
.ec[data-phase="frozen"] .ec-clock-digits b { color: var(--soft); }

.ec-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ec[data-empty] .ec-podium { display: none; }
.ec-card { display: flex; flex-direction: column; gap: clamp(6px, 1.1vh, 12px); padding: clamp(12px, 1.8vh, 20px) 22px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(15, 20, 17, 0.85); min-width: 0; }
.ec-card.ec-or { border-color: var(--yellow-line); background: linear-gradient(135deg, rgba(255, 206, 0, 0.1), rgba(15, 20, 17, 0.85) 55%); }
.ec-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ec-medal { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-pill); color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 1.1rem; }
.ec-or .ec-medal { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 206, 0, 0.15); }
.ec-argent .ec-medal { background: var(--soft); }
.ec-bronze .ec-medal { background: var(--bronze); }
.ec-card-tag { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ec-or .ec-card-tag { color: var(--yellow); }
.ec-card-name { margin: 0; font-size: clamp(1.2rem, 1.6vw, 1.9rem); font-weight: 650; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-card-score { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: clamp(2.2rem, 2.9vw, 3.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.ec-or .ec-card-score { color: var(--yellow); }
.ec-card-meta { margin: 0; min-height: 1.2em; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

.ec-board { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15, 20, 17, 0.8); backdrop-filter: blur(6px); padding: 12px 22px 14px; }
.ec-board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ec-live { display: inline-flex; align-items: center; gap: 10px; color: var(--green); }
.ec-live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: cl-pulse 2s infinite; }
.ec[data-phase="frozen"] .ec-live { color: var(--yellow); }
.ec[data-phase="frozen"] .ec-live::before { background: var(--yellow); animation: none; }
.ec[data-error] .ec-live { color: var(--red); }
.ec[data-error] .ec-live::before { background: var(--red); animation: none; }
.ec-empty { margin: 18px 0 6px; color: var(--soft); font-size: 1.1rem; }
.ec-list { list-style: none; margin: 0; padding: 0; }
.ec-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(8rem, 17rem) 7.5rem; align-items: center; gap: 20px; padding: clamp(6px, 0.95vh, 11px) 0; border-bottom: 1px solid var(--ink-3); }
.ec-row:last-child { border-bottom: 0; }
.ec-pos { font-family: var(--mono); font-size: clamp(1rem, 1.15vw, 1.4rem); color: var(--muted); text-align: right; }
.ec-who { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.ec-name { min-width: 0; font-size: clamp(1.05rem, 1.25vw, 1.45rem); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-meta { flex: none; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.ec-bar { height: 6px; border-radius: var(--radius-pill); background: var(--ink-3); overflow: hidden; }
.ec-bar span { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width 0.6s ease; }
.ec-score { font-family: var(--mono); font-size: clamp(1.05rem, 1.25vw, 1.5rem); text-align: right; font-variant-numeric: tabular-nums; }
.ec-more { padding: 10px 0 0; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }

.ec-side { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 16px; padding-bottom: 8px; min-width: 0; }
.ec-fb { display: grid; gap: 8px; padding: 16px 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(10, 13, 11, 0.72); backdrop-filter: blur(6px); max-width: 28rem; }
.ec-fb[hidden] { display: none; }
.ec-fb-label { margin: 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ec-fb-text { margin: 0; font-size: 1.25rem; line-height: 1.35; }
.ec-fb-text b { font-weight: 600; }
.ec-fb-text span { color: var(--muted); }
.ec-fb-text code { font-family: var(--mono); color: var(--green); font-size: 0.95em; }
.ec-sign { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.9rem; letter-spacing: 0.06em; color: var(--soft); }
.ec-sign img { width: 40px; height: 40px; }
.ec-signature { margin: 0; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; }
.ec-signature a { color: var(--muted); text-decoration: none; }
.ec-signature a:hover, .ec-signature a:focus-visible { color: var(--paper); }
.ec-signature strong { color: var(--paper); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .cl-live::before, .ec-live::before { animation: none; }
  .ec-bg video { display: none; }
}

/* mobile : visuel en haut, tout empilé, podium en liste */
@media (max-width: 900px) {
  .ec-bg { left: 0; width: auto; bottom: auto; height: 300px; position: absolute; }
  .ec-bg img, .ec-bg video { object-position: 62% 18%; }
  .ec-bg::after { background: linear-gradient(0deg, var(--ink) 4%, rgba(10, 13, 11, 0.55) 45%, rgba(10, 13, 11, 0.1) 100%); }
  .ec { grid-template-columns: minmax(0, 1fr); padding-top: 168px; }
  .ec-head { flex-direction: column; align-items: stretch; }
  .ec-clock { min-width: 0; }
  .ec-podium { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ec-card { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .ec-card-top { flex: none; }
  .ec-card-tag, .ec-card-meta { display: none; }
  .ec-card-name { flex: 1; font-size: 1.05rem; }
  .ec-card-score { font-size: 1.6rem; }
  .ec-medal { width: 32px; height: 32px; font-size: 0.95rem; }
  .ec-row { grid-template-columns: 2.2rem minmax(0, 1fr) 5rem; gap: 12px; }
  .ec-bar, .ec-meta { display: none; }
  .ec-board { padding: 10px 14px; }
  .ec-side { align-items: stretch; }
}

/* ------------------------------------------------ gel / dégel (repris du thème hibris de l'arène, plugin degel) */
.ec-frost { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 1.4s ease; }
.ec-frost[hidden] { display: none; }
.ec-frost.on, .ec-frost.thaw { opacity: 1; }
.ec-frost .rime, .ec-frost .crystals, .ec-frost .cracks { position: absolute; inset: 0; }
.ec-frost .rime {
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(214,232,255,.42), rgba(214,232,255,0) 46%),
    radial-gradient(90% 60% at 100% 0%, rgba(214,232,255,.34), rgba(214,232,255,0) 44%),
    radial-gradient(90% 70% at 0% 100%, rgba(200,224,255,.40), rgba(200,224,255,0) 48%),
    radial-gradient(90% 70% at 100% 100%, rgba(200,224,255,.44), rgba(200,224,255,0) 48%);
  box-shadow: inset 0 0 80px rgba(150,195,255,.45), inset 0 0 220px rgba(127,178,255,.18);
}
.ec-frost .crystals {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round'><g transform='translate(62 64)'><path d='M0-30V30M-26-15L26 15M-26 15L26-15M0-19l-7-7M0-19l7-7M0 19l-7 7M0 19l7 7M-16-9l-9-1M-16-9l-4-8M16 9l9 1M16 9l4 8M16-9l9-1M16-9l4-8M-16 9l-9 1M-16 9l-4 8'/></g><g transform='translate(178 166) scale(.62)'><path d='M0-30V30M-26-15L26 15M-26 15L26-15M0-19l-7-7M0-19l7-7M0 19l-7 7M0 19l7 7'/></g><path d='M8 232L58 182M58 182l-6 20M58 182l20 6M150 14l52 52M178 42l-5 19M178 42l19-5M208 120l26-26M100 220l18-30' opacity='.55'/></g></svg>");
  background-size: 240px 240px; opacity: .30;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 50%, #000 82%);
  mask-image: radial-gradient(ellipse at center, transparent 50%, #000 82%);
}
.ec-frost .cracks {
  opacity: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><g fill='none' stroke='white' stroke-width='.35' stroke-linecap='round'><path d='M50 50L38 34L30 31L18 12M38 34L35 20M50 50L66 38L80 36L96 18M66 38L70 24M50 50L62 66L64 82L72 98M62 66L78 70M50 50L36 62L22 64L4 80M36 62L34 78M50 50L28 48L10 44'/></g></svg>");
  background-size: 100% 100%; filter: drop-shadow(0 0 3px rgba(190,220,255,.9));
}
.ec-frost .snow { position: absolute; inset: 0; }
.ec-frost .flake { position: absolute; top: -8vh; color: #eaf3ff; text-shadow: 0 0 6px rgba(127,178,255,.85); animation: ecFall linear infinite; will-change: transform; }
@keyframes ecFall { to { transform: translate3d(var(--dx, 20px), 116vh, 0) rotate(260deg); } }
.ec-frost.on .rime { animation: ecRimeIn 2.8s cubic-bezier(.2,.7,.2,1) both; }
.ec-frost.on .crystals { animation: ecRimeIn 3.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ecRimeIn { from { opacity: 0; transform: scale(1.14); filter: blur(8px); } to { transform: scale(1); filter: blur(0); } }
.ec[data-phase="frozen"] .ec-main { filter: saturate(.6) hue-rotate(-12deg) brightness(1.04); transition: filter 1.6s ease; }
.ec-main { transition: filter 1.6s ease; }

.ec-frost .degel-big { position: absolute; right: clamp(20px, 3.75vw, 72px); bottom: 14vh; display: flex; flex-direction: column; align-items: center; gap: .2rem;
  padding: .9rem 2.4rem 1.1rem; border-radius: var(--radius-lg); background: rgba(8,16,30,.72); border: 1px solid #3a5b8f;
  box-shadow: 0 0 40px rgba(127,178,255,.28), inset 0 0 24px rgba(127,178,255,.12); font-family: var(--mono); }
.ec-frost .degel-big[hidden] { display: none; }
.ec-frost .degel-big .k { color: #9fc3ff; font-size: 1.05rem; letter-spacing: .32em; text-transform: uppercase; }
.ec-frost .degel-big b { color: #fff; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1; letter-spacing: .06em; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(127,178,255,.95), 0 0 46px rgba(127,178,255,.55); animation: ecPulse 2.4s ease-in-out infinite; }
@keyframes ecPulse { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
.ec-frost .degel-big.last b { color: #ffe9a8; animation-duration: .9s; }

.ec-frost .thaw-flash { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--display); color: #fff; text-align: center; }
.ec-frost .thaw-flash span { font-weight: 800; font-stretch: 118%; font-size: clamp(3rem, 11vw, 9rem); letter-spacing: .08em;
  text-shadow: 0 0 26px rgba(127,178,255,.95), 0 0 70px rgba(127,178,255,.6); }
.ec-frost .thaw-flash small { font-family: var(--mono); font-size: clamp(.9rem, 2vw, 1.4rem); letter-spacing: .4em; text-transform: uppercase; color: #cfe0ff; }
.ec-frost.thaw .degel-big { display: none; }
.ec-frost.thaw .cracks { animation: ecCrack 1.5s ease-out forwards; }
.ec-frost.thaw .rime, .ec-frost.thaw .crystals { animation: ecMelt 3s ease-in .5s forwards; }
.ec-frost.thaw .snow { animation: ecFade 1.6s ease-in forwards; }
.ec-frost.thaw .thaw-flash { display: flex; animation: ecFlash 3.6s ease-out forwards; }
@keyframes ecCrack { 0% { opacity: 0; } 12% { opacity: .95; } 60% { opacity: .6; } 100% { opacity: 0; } }
@keyframes ecMelt { 0% { opacity: 1; filter: brightness(1); } 25% { filter: brightness(1.7); } 100% { opacity: 0; transform: translateY(5%) scale(1.04); filter: blur(7px); } }
@keyframes ecFade { to { opacity: 0; } }
@keyframes ecFlash { 0% { opacity: 0; transform: scale(.82); } 18% { opacity: 1; transform: scale(1.04); } 72% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }

/* confettis tricolores au dégel */
.ec-confetti { position: fixed; inset: 0; z-index: 21; pointer-events: none; overflow: hidden; }
.ec-confetti .burst { position: absolute; inset: 0; }
.ec-confetti i { position: absolute; top: -14px; width: 9px; height: 14px; opacity: .92; animation: ecConfetti linear forwards; }
@keyframes ecConfetti { to { transform: translateY(112vh) rotate(560deg); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ec-frost .flake, .ec-frost .cracks, .ec-confetti { display: none; }
  .ec-frost.on .rime, .ec-frost.on .crystals, .ec-frost.thaw .rime, .ec-frost.thaw .crystals,
  .ec-frost.thaw .thaw-flash, .ec-frost .degel-big b { animation: none; }
  .ec-frost.thaw .thaw-flash { opacity: 1; }
}
@media (max-width: 900px) {
  .ec-frost .degel-big { left: 50%; right: auto; transform: translateX(-50%); bottom: 4vh; padding: .7rem 1.4rem .9rem; }
}

/* ------------------------------------------------ glitch (esprit du thème hibris : glitch du titre toutes les 7 s) */
.ec-glitch-title { position: relative; display: inline-block; animation: ec-glitch-shift 7s steps(1) infinite; }
.ec-glitch-title::before, .ec-glitch-title::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.ec-glitch-title::before { color: var(--red); animation: ec-glitch-a 7s steps(1) infinite; }
.ec-glitch-title::after { color: #58e1ff; animation: ec-glitch-b 7s steps(1) infinite; }
/* fenêtre de glitch : ~0,45 s toutes les 7 s (au plus 3 changements par seconde : WCAG 2.3.1) */
@keyframes ec-glitch-shift {
  0%, 89%, 96%, 100% { transform: none; text-shadow: none; }
  90% { transform: translate(-2px, 0) skewX(-6deg); text-shadow: 3px 0 rgba(210,16,52,.75), -3px 0 rgba(88,225,255,.7); }
  93% { transform: translate(2px, 0) skewX(4deg); text-shadow: -2px 0 rgba(210,16,52,.7), 2px 0 rgba(88,225,255,.7); }
}
@keyframes ec-glitch-a {
  0%, 89%, 96%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
  90% { opacity: .85; clip-path: inset(12% 0 58% 0); transform: translate(-6px, 0); }
  93% { opacity: .85; clip-path: inset(62% 0 8% 0); transform: translate(5px, 0); }
}
@keyframes ec-glitch-b {
  0%, 89%, 96%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
  90% { opacity: .8; clip-path: inset(48% 0 30% 0); transform: translate(6px, 0); }
  93% { opacity: .8; clip-path: inset(20% 0 66% 0); transform: translate(-4px, 0); }
}
/* lignes de balayage très légères sur toute la page */
.ec-scan { position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.14) 2px 3px); mix-blend-mode: multiply; }
.ec-scan::after { content: ""; position: absolute; left: 0; right: 0; height: 18vh; top: -20vh;
  background: linear-gradient(180deg, rgba(34,160,107,0), rgba(34,160,107,.05) 50%, rgba(34,160,107,0)); animation: ec-sweep 9s linear infinite; }
@keyframes ec-sweep { to { transform: translateY(140vh); } }
/* dépassement dans le top 10 : le tableau « glitche » une fois */
.ec.ec-glitching .ec-podium, .ec.ec-glitching .ec-board { animation: ec-board-glitch .75s steps(1) 1; }
@keyframes ec-board-glitch {
  0%, 100% { transform: none; filter: none; clip-path: none; }
  15% { transform: translateX(-5px); filter: drop-shadow(3px 0 rgba(210,16,52,.6)) drop-shadow(-3px 0 rgba(88,225,255,.6)); }
  35% { transform: translateX(4px); clip-path: inset(10% 0 40% 0); }
  55% { transform: translateX(-2px); clip-path: inset(45% 0 5% 0); filter: drop-shadow(-2px 0 rgba(210,16,52,.6)); }
  75% { transform: none; clip-path: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-glitch-title, .ec-glitch-title::before, .ec-glitch-title::after, .ec-scan::after,
  .ec.ec-glitching .ec-podium, .ec.ec-glitching .ec-board { animation: none; }
}
