/* Overlay OBS de Leonida Map : fond transparent, néon lisible sur n'importe quel jeu. */
@font-face { font-family: "Anton"; src: url("../fonts/anton-400.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Yellowtail"; src: url("../fonts/yellowtail-400.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/rajdhani-700.woff2") format("woff2"); font-weight: 700; font-display: block; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: block; }

:root {
  --rose: #ff3f8e; --cyan: #22e5ff; --jaune: #fff3a0; --vert: #3dffa8;
  --soleil: linear-gradient(90deg, #ffd56e, #ff8d47 45%, #ff3f8e);
  --titre: linear-gradient(180deg, #fff3a0 10%, #ffb347 38%, #ff4f8b 68%, #c06bff 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: transparent; color: #fbefff; overflow: hidden; }
body.page { background: #12032a; overflow: auto; }

.ov {
  width: 600px; margin: 10px; padding: 14px 20px 14px; border-radius: 20px; background: rgba(18, 3, 42, .78);
  border: 2px solid rgba(255, 63, 142, .75); box-shadow: 0 0 22px rgba(255, 63, 142, .55), inset 0 0 18px rgba(176, 60, 255, .25);
  font-family: "Rajdhani", sans-serif; font-weight: 700;
}
.ov-tete { display: flex; align-items: baseline; gap: 12px; position: relative; }
.ov-script { font-family: "Yellowtail", cursive; font-size: 40px; line-height: 1; background: var(--titre); -webkit-background-clip: text;
  background-clip: text; color: transparent; filter: drop-shadow(0 0 8px rgba(255, 63, 142, .7)); }
.ov-titre { font-family: "Anton", sans-serif; font-size: 26px; letter-spacing: .08em; text-transform: uppercase; color: #dffcff;
  text-shadow: 0 0 4px #fff, 0 0 12px var(--cyan); }
.ov-plus { margin-left: auto; font-family: "Anton", sans-serif; font-size: 30px; color: var(--vert); text-shadow: 0 0 12px var(--vert);
  opacity: 0; transform: translateY(8px); }
.ov-ligne { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.ov-barre { flex: 1; height: 16px; border-radius: 10px; background: rgba(255, 255, 255, .12); overflow: hidden;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .5); }
.ov-barre span { display: block; height: 100%; width: 0; background: var(--soleil); box-shadow: 0 0 14px var(--rose);
  transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.ov-pct { font-family: "Anton", sans-serif; font-weight: 400; font-size: 30px; color: var(--jaune); min-width: 104px; text-align: right;
  text-shadow: 0 0 10px rgba(255, 141, 71, .8); }
.ov-bas { display: flex; gap: 14px; margin-top: 6px; font-size: 18px; letter-spacing: .04em; color: #d9c6ea; white-space: nowrap; }
.ov-dernier { overflow: hidden; text-overflow: ellipsis; font-family: "Barlow", sans-serif; font-weight: 500; }

.ov.pulse { animation: pulse 1.2s ease; }
.ov.pulse .ov-plus { animation: plus 1.6s ease; }
@keyframes pulse { 0% { box-shadow: 0 0 22px rgba(255, 63, 142, .55); } 25% { box-shadow: 0 0 48px var(--vert), 0 0 12px #fff; border-color: var(--vert); } 100% { box-shadow: 0 0 22px rgba(255, 63, 142, .55); } }
@keyframes plus { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* Variante une ligne */
.ov.compact { width: auto; display: inline-flex; align-items: center; gap: 14px; padding: 8px 18px; }
.ov.compact .ov-tete { gap: 8px; }
.ov.compact .ov-script { font-size: 30px; }
.ov.compact .ov-titre { font-size: 20px; }
.ov.compact .ov-ligne { margin: 0; width: 220px; }
.ov.compact .ov-pct { font-size: 24px; min-width: 84px; }
.ov.compact .ov-bas { display: none; }
.ov.compact .ov-plus { position: absolute; right: -36px; top: -6px; }

/* Page d'aide (ouverte dans un navigateur normal) */
.aide { max-width: 760px; margin: 0 auto; padding: 32px 16px; font-family: "Barlow", system-ui, sans-serif; line-height: 1.6; }
.aide h1 { font-family: "Anton", sans-serif; font-weight: 400; letter-spacing: .03em; background: var(--titre); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.aide code { background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 6px; }
.aide a { color: #ff8fd0; }
