/* PulseLive — visual das overlays (projetado em escala 1080p vertical)
   Temas: coral (padrão), ouro, menta, clean. Use ?theme=ouro no link do overlay. */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Manrope:wght@500;600;700;800&display=swap');

.w-theme, [data-ovl-theme] {
  --w-acc: #ff5a4e; --w-acc2: #ffb347; --w-gold: #ffcf5a; --w-ink: #ffffff; --w-sub: rgba(255,255,255,.72);
  --w-panel: rgba(13,13,19,.80); --w-panel2: rgba(255,255,255,.07); --w-line: rgba(255,255,255,.14); --w-shadow: 0 24px 60px rgba(0,0,0,.45);
  --w-head: 'Sora', 'Manrope', system-ui, sans-serif; --w-body: 'Manrope', system-ui, sans-serif;
}
[data-ovl-theme=ouro] { --w-acc: #e9b949; --w-acc2: #fff0c2; --w-gold: #ffd76a; --w-panel: rgba(17,13,7,.84); --w-line: rgba(233,185,73,.28); }
[data-ovl-theme=menta] { --w-acc: #2fe0a0; --w-acc2: #b8ffe5; --w-gold: #ffd166; --w-panel: rgba(7,19,17,.80); --w-line: rgba(47,224,160,.22); }
[data-ovl-theme=clean] { --w-acc: #2f6bff; --w-acc2: #7ea4ff; --w-gold: #f0a500; --w-ink: #11131a; --w-sub: #5a5f70;
  --w-panel: rgba(255,255,255,.93); --w-panel2: rgba(17,19,26,.05); --w-line: rgba(17,19,26,.10); --w-shadow: 0 24px 60px rgba(10,20,50,.25); }

.w { position: relative; width: 100%; height: 100%; font-family: var(--w-body); color: var(--w-ink); -webkit-font-smoothing: antialiased; }
.w * { box-sizing: border-box; }
.w-panel { background: var(--w-panel); border: 2px solid var(--w-line); border-radius: 32px; box-shadow: var(--w-shadow); backdrop-filter: blur(14px); }
.w-av { width: 1em; height: 1em; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; font-family: var(--w-head); font-weight: 800;
  background: linear-gradient(135deg, var(--w-acc), var(--w-acc2)); color: #fff; overflow: hidden; }
.w-av span { font-size: .46em; }
.w-ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; flex: none; }
.w-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------------- ALERTAS ---------------- */
.al-stage { position: absolute; left: 0; right: 0; top: 22%; display: grid; place-items: center; }
.al { position: relative; text-align: left; width: 820px; max-width: 92%; padding: 34px 38px 30px; font-size: 32px; animation: al-in .7s cubic-bezier(.16,1.3,.3,1) both; }
.al.out { animation: al-out .5s cubic-bezier(.6,0,.8,.4) both; }
.al-tag { display: inline-flex; align-items: center; gap: 12px; padding: 9px 20px 9px 16px; border-radius: 99px; font: 800 22px var(--w-head); letter-spacing: .02em;
  background: var(--w-acc); color: #fff; position: absolute; top: -24px; left: 38px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.al-main { display: flex; align-items: center; gap: 26px; }
.al-main .w-av { font-size: 116px; border: 5px solid var(--w-acc); box-shadow: 0 0 0 8px rgba(255,255,255,.06); }
.al-txt { flex: 1; min-width: 0; }
.al-name { font: 800 62px/1.02 var(--w-head); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-act { font-weight: 700; color: var(--w-sub); margin-top: 8px; font-size: 32px; line-height: 1.2; }
.al-gift { text-align: center; flex: none; }
.al-gimg { width: 132px; height: 132px; display: grid; place-items: center; font-size: 96px; border-radius: 30px; background: var(--w-panel2); animation: al-bob 1.4s ease-in-out infinite; }
.al-gimg img { width: 110px; height: 110px; object-fit: contain; }
.al-x { font: 800 44px var(--w-head); color: var(--w-acc); margin-top: 6px; }
.al-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--w-line); font-weight: 800; font-size: 28px; }
.al-foot b { color: var(--w-gold); display: inline-flex; align-items: center; gap: 10px; }
.al-timer { position: absolute; left: 32px; right: 32px; bottom: 0; height: 6px; border-radius: 6px; overflow: hidden; background: transparent; }
.al-timer i { display: block; height: 100%; background: linear-gradient(90deg, var(--w-acc), var(--w-acc2)); transform-origin: left; animation: al-timer linear forwards; }
/* níveis */
.al-big { border-color: var(--w-gold); }
.al-big .al-tag { background: var(--w-gold); color: #241800; }
.al-big .w-av { border-color: var(--w-gold); }
.al-legend { border: 0; }
.al-legend::before { content: ''; position: absolute; inset: -4px; border-radius: 36px; padding: 4px; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), var(--w-gold), var(--w-acc), #fff, var(--w-acc2), var(--w-gold)); animation: al-spin 2.4s linear infinite; }
.al-legend::after { content: ''; position: absolute; inset: -140px -80px; z-index: -2; pointer-events: none; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(255,215,106,.35) 0 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent); animation: al-rot 14s linear infinite; }
.al-legend .al-tag { background: linear-gradient(90deg, var(--w-gold), #fff3c4); color: #2a1a00; }
.al-legend .al-name { background: linear-gradient(90deg, #fff, var(--w-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.al-legend .w-av { border-color: var(--w-gold); }
.al-follow .al-tag { background: var(--w-acc2); color: #10131a; }
.al-command .al-tag { background: var(--w-ink); color: var(--w-panel); }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes al-spin { to { --a: 360deg; } }
@keyframes al-rot { to { transform: rotate(360deg); } }
@keyframes al-in { from { opacity: 0; transform: translateY(-60px) scale(.7); } }
@keyframes al-out { to { opacity: 0; transform: translateY(-40px) scale(.92); } }
@keyframes al-bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
@keyframes al-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.al-shake { animation: al-in .7s cubic-bezier(.16,1.3,.3,1) both, al-quake .5s .7s 2; }
@keyframes al-quake { 25% { transform: translate(-6px, 2px); } 75% { transform: translate(6px, -2px); } }

/* ---------------- CHAT ---------------- */
.ch { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 18px; font-size: 30px; overflow: hidden;
  -webkit-mask: linear-gradient(transparent, #000 14%); mask: linear-gradient(transparent, #000 14%); }
.ch-msg { display: flex; gap: 16px; align-items: flex-start; padding: 16px 22px 16px 16px; border-radius: 26px; background: var(--w-panel); border: 2px solid var(--w-line);
  backdrop-filter: blur(10px); animation: ch-in .45s cubic-bezier(.2,1.2,.35,1) both; line-height: 1.28; }
.ch-msg .w-av { font-size: 56px; }
.ch-body { min-width: 0; padding-top: 4px; }
.ch-name { font-weight: 800; margin-right: 10px; color: hsl(var(--h, 0) 90% 72%); }
[data-ovl-theme=clean] .ch-name { color: hsl(var(--h, 0) 70% 38%); }
.ch-badge { display: inline-flex; align-items: center; gap: 6px; font: 800 18px var(--w-head); padding: 4px 11px; border-radius: 99px; margin-right: 8px; vertical-align: 3px; }
.ch-b1 { background: var(--w-gold); color: #2a1a00; }
.ch-b3 { background: var(--w-panel2); color: var(--w-ink); border: 2px solid var(--w-line); }
.ch-text { overflow-wrap: anywhere; }
.ch-cmd { border-color: var(--w-acc); }
.ch-cmd .ch-text { font-weight: 800; color: var(--w-acc); }
.ch-msg.out { animation: ch-out .4s ease-in both; }
@keyframes ch-in { from { opacity: 0; transform: translateX(-50px) scale(.95); } }
@keyframes ch-out { to { opacity: 0; transform: translateY(-14px); } }

/* ---------------- META ---------------- */
.gl { position: absolute; left: 14px; right: 14px; top: 14px; padding: 26px 30px 30px; }
.gl-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.gl-title { font: 800 40px var(--w-head); letter-spacing: -.02em; display: flex; align-items: center; gap: 14px; }
.gl-title .w-ico { color: var(--w-acc); }
.gl-nums { font: 800 34px var(--w-head); white-space: nowrap; }
.gl-nums small { color: var(--w-sub); font-size: 26px; }
.gl-bar { position: relative; height: 46px; margin-top: 20px; border-radius: 99px; background: var(--w-panel2); border: 2px solid var(--w-line); overflow: hidden; }
.gl-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--w-acc), var(--w-acc2));
  transition: width 1s cubic-bezier(.2,1,.3,1); box-shadow: 0 0 30px var(--w-acc); overflow: hidden; }
.gl-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); animation: gl-shine 2.6s infinite; }
.gl-tick { position: absolute; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--w-line); }
.gl-pct { position: absolute; inset: 0; display: grid; place-items: center; font: 800 24px var(--w-head); text-shadow: 0 2px 8px rgba(0,0,0,.4); color: #fff; }
.gl-done { border-color: var(--w-gold); animation: gl-glow 1.1s ease-in-out infinite alternate; }
.gl-done .gl-fill { background: linear-gradient(90deg, var(--w-gold), #fff1c4, var(--w-gold)); }
.gl-pop { animation: gl-pop .5s; }
@keyframes gl-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes gl-glow { to { box-shadow: 0 0 60px rgba(255,207,90,.55), var(--w-shadow); } }
@keyframes gl-pop { 40% { transform: scale(1.03); } }

/* ---------------- RANKING ---------------- */
.rk { position: absolute; left: 14px; right: 14px; top: 14px; padding: 26px 22px 18px; }
.rk-title { font: 800 38px var(--w-head); letter-spacing: -.02em; padding: 0 10px 14px; display: flex; align-items: center; gap: 14px; }
.rk-title .w-ico { color: var(--w-gold); }
.rk-list { position: relative; }
.rk-row { display: flex; align-items: center; gap: 18px; padding: 14px 16px; border-radius: 22px; font-size: 30px; transition: background .5s; }
.rk-row + .rk-row { margin-top: 6px; }
.rk-pos { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font: 800 28px var(--w-head); background: var(--w-panel2); flex: none; }
.rk-p1 .rk-pos { background: linear-gradient(135deg, #ffe08a, #e0a521); color: #2a1a00; }
.rk-p2 .rk-pos { background: linear-gradient(135deg, #f1f3f7, #aab2c0); color: #1b1e25; }
.rk-p3 .rk-pos { background: linear-gradient(135deg, #f2b58a, #b56a3a); color: #2a1205; }
.rk-p1 { background: var(--w-panel2); }
.rk-row .w-av { font-size: 58px; }
.rk-name { flex: 1; min-width: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-val { font: 800 30px var(--w-head); color: var(--w-gold); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rk-delta { position: absolute; right: 26px; font: 800 26px var(--w-head); color: var(--w-acc2); animation: rk-delta 1.4s ease-out forwards; pointer-events: none; }
.rk-bump { background: color-mix(in srgb, var(--w-acc) 30%, transparent); }
.rk-empty { color: var(--w-sub); font-size: 26px; padding: 10px; }
@keyframes rk-delta { from { opacity: 0; transform: translateY(10px); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-40px); } }

/* ---------------- EVENTOS ---------------- */
.ev { position: absolute; left: 14px; right: 14px; top: 14px; padding: 24px 20px 14px; }
.ev-title { font: 800 34px var(--w-head); padding: 0 10px 12px; letter-spacing: -.02em; }
.ev-row { display: flex; align-items: center; gap: 16px; padding: 12px 12px; font-size: 27px; border-top: 2px solid var(--w-line); animation: ch-in .45s cubic-bezier(.2,1.2,.35,1) both; }
.ev-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 28px; flex: none; background: var(--w-panel2); color: var(--w-acc); }
.ev-gift .ev-ic { background: color-mix(in srgb, var(--w-gold) 22%, transparent); color: var(--w-gold); }
.ev-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-det { color: var(--w-sub); font-weight: 700; font-size: 24px; }
.ev-txt { min-width: 0; flex: 1; }

/* ---------------- CHEFÃO ---------------- */
.bs { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 40px 30px; }
.bs.off { display: none; }
.bs-plate { width: 100%; max-width: 940px; padding: 22px 28px 24px; position: relative; z-index: 2; }
.bs-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.bs-name { font: 800 46px var(--w-head); letter-spacing: -.02em; display: flex; align-items: center; gap: 14px; }
.bs-name .w-ico { color: var(--w-acc); }
.bs-lvl { font: 800 24px var(--w-head); padding: 8px 18px; border-radius: 99px; background: var(--w-acc); color: #fff; }
.bs-hp { position: relative; height: 44px; margin-top: 16px; border-radius: 14px; background: rgba(0,0,0,.45); border: 2px solid var(--w-line); overflow: hidden; }
.bs-hp i, .bs-hp b { position: absolute; inset: 0 auto 0 0; }
.bs-hp b { background: rgba(255,255,255,.7); transition: width 1.2s ease-in .3s; }
.bs-hp i { background: linear-gradient(180deg, #ff6b6b, #e0213f); transition: width .3s ease-out; }
.bs-hp i::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 3px), rgba(0,0,0,.35) calc(10% - 3px) 10%); }
.bs-hp span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 24px var(--w-head); color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.bs-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; font-size: 24px; font-weight: 700; color: var(--w-sub); }
.bs-meta b { color: var(--w-ink); }
.bs-hits { display: flex; gap: 10px; overflow: hidden; }
.bs-hits span { flex: none; background: var(--w-panel2); padding: 4px 12px; border-radius: 99px; white-space: nowrap; animation: ch-in .3s both; }
.bs-mon { width: 560px; max-width: 70%; margin-bottom: -16px; transform-origin: 50% 100%; animation: bs-idle 2.2s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(0,0,0,.35)); }
.bs-mon.hit { animation: bs-hit .26s; }
.bs-mon.dead { animation: bs-die 1.1s forwards; }
.bs-mon.spawn { animation: bs-spawn .8s cubic-bezier(.2,1.5,.4,1); }
.bs-dmg { position: absolute; font: 800 64px var(--w-head); pointer-events: none; animation: bs-rise 1.2s ease-out forwards; white-space: nowrap; color: #fff;
  text-shadow: 0 4px 0 rgba(0,0,0,.45), 0 0 24px rgba(0,0,0,.4); text-align: center; z-index: 3; }
.bs-dmg small { display: block; font: 800 24px var(--w-body); color: var(--w-acc2); }
.bs-dmg.gift { color: var(--w-gold); font-size: 84px; }
.bs-banner { position: absolute; left: 0; right: 0; top: 10%; text-align: center; opacity: 0; z-index: 4; }
.bs-banner.show { animation: bs-ban 4.6s ease-out forwards; }
.bs-banner div { display: inline-block; padding: 26px 46px; }
.bs-banner b { display: block; font: 800 78px/1 var(--w-head); letter-spacing: -.03em; }
.bs-banner small { display: block; font: 800 30px var(--w-body); color: var(--w-gold); margin-top: 12px; }
@keyframes bs-idle { 50% { transform: scaleY(.94) scaleX(1.04); } }
@keyframes bs-hit { 30% { transform: translateX(-16px) scale(.96); filter: brightness(2.2) saturate(.3); } 60% { transform: translateX(14px); } }
@keyframes bs-die { 40% { transform: scale(1.15); filter: brightness(3); } to { transform: scale(0) rotate(30deg); opacity: 0; } }
@keyframes bs-spawn { from { transform: scale(0); } }
@keyframes bs-rise { from { transform: translate(-50%, 0) scale(.5); opacity: 0; } 15% { transform: translate(-50%, -10px) scale(1.15); opacity: 1; } to { transform: translate(-50%, -160px); opacity: 0; } }
@keyframes bs-ban { 0% { opacity: 0; transform: scale(.5); } 10%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

#pl-wm { position: fixed; right: 14px; bottom: 12px; font: 700 18px var(--w-body, sans-serif); color: rgba(255,255,255,.85); background: rgba(0,0,0,.45); padding: 5px 12px; border-radius: 8px; z-index: 99; }

@media (prefers-reduced-motion: reduce) { .w *, .w *::before, .w *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }
