/* BRAWL 0xGHOSTSEC v18 - Parte 2 */
body { background: #070A24; }
#v18-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: none; }
#ui { z-index: 2; background: transparent !important; }
#ui > [class*="lobby" i], #ui > [class*="home" i], #ui > [class*="menu" i] { background: transparent !important; background-image: none !important; }

/* Fama Cyber */
.v18-fame { display: inline-flex; align-items: center; gap: 8px; --f1: #00E5FF; --f2: #1565C0; vertical-align: middle; }
.v18-fame.t2 { --f1: #E0E0FF; --f2: #7C4DFF; }
.v18-fame.t3 { --f1: #FFD700; --f2: #FF1744; }
.v18-fame-hex { width: 38px; height: 42px; display: grid; place-items: center; font: 900 16px 'Arial Black', Arial, sans-serif; color: #fff; text-shadow: 0 2px 0 #000; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, var(--f1), var(--f2)); filter: drop-shadow(0 0 8px var(--f1)); }
.v18-fame-stars { display: inline-flex; gap: 2px; font-style: normal; }
.v18-fame-stars i { font-style: normal; font-size: 15px; color: #37426b; text-shadow: 0 1px 0 #000; }
.v18-fame-stars i.on { color: var(--f1); text-shadow: 0 0 8px var(--f1), 0 1px 0 #000; }
.v18-fame-name { font: 900 12px 'Arial Black', Arial, sans-serif; color: var(--f1); letter-spacing: 1px; text-shadow: 0 1px 0 #000; }
.v18-fame.mini { gap: 3px; margin-left: 6px; }
.v18-fame.mini .v18-fame-hex { width: 20px; height: 22px; font-size: 9px; }
.v18-fame.mini .v18-fame-stars i { font-size: 9px; }
#v18-fame-lobby { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 3; pointer-events: none; }
#v18-mapchip { position: fixed; top: calc(60px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 3; font: 900 12px 'Arial Black', Arial, sans-serif; color: #fff; background: rgba(10,14,38,.82); border: 2px solid #00E5FF; border-radius: 999px; padding: 6px 14px; cursor: pointer; box-shadow: 0 0 14px rgba(0,229,255,.4); }
#v18-dock { position: fixed; bottom: calc(8px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 52vw; }
.v18-dock-b { font: 900 11px 'Arial Black', Arial, sans-serif; color: #fff; background: rgba(10,14,38,.85); border: 2px solid rgba(0,229,255,.55); border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.v18-dock-b:active { transform: scale(.95); }

/* overlays */
.v18-ov { position: fixed; inset: 0; z-index: 60; color: #fff; font-family: 'Arial Black', Arial, sans-serif; overflow: hidden; background: #070A24; touch-action: none; }
.v18-stage, .v18-train-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.v18-panel { position: absolute; top: 56px; bottom: 16px; width: min(340px, 30vw); overflow-y: auto; padding: 16px; background: linear-gradient(180deg, rgba(14,18,52,.9), rgba(8,10,34,.9)); border: 2px solid var(--rc, #00E5FF); border-radius: 16px; box-shadow: 0 0 24px color-mix(in srgb, var(--rc, #00E5FF) 45%, transparent); }
.v18-left { left: 14px; } .v18-right { right: 14px; }
.v18-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 14px; z-index: 5; font: 900 14px 'Arial Black', Arial, sans-serif; color: #fff; background: #E53935; border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; box-shadow: 0 4px 0 #8e1b18; }
.v18-nav { position: absolute; top: 45%; z-index: 4; width: 48px; height: 64px; border: 0; border-radius: 12px; font: 900 34px Arial; color: #fff; background: rgba(255,255,255,.12); cursor: pointer; }
.v18-nav.prev { left: calc(min(340px, 30vw) + 24px); } .v18-nav.next { right: calc(min(340px, 30vw) + 24px); }
.v18-name { margin: 0; font-size: 28px; text-shadow: 0 3px 0 #000, 0 0 16px var(--rc); }
.v18-sub { font-size: 13px; color: #B8C4FF; margin: 2px 0 8px; }
.v18-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.v18-chip { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--c, #00E5FF); color: #000; }
.v18-chip.alt { background: rgba(255,255,255,.14); color: #fff; }
.v18-rankrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; margin: 6px 0; }
.v18-troph { color: #FFD54F; } .v18-rank { color: #80D8FF; }
.v18-lore { font: 600 13px/1.45 Arial, sans-serif; color: #D6DCFF; margin: 10px 0; }
.v18-skill { font: 600 12px/1.4 Arial, sans-serif; color: #A5B1FF; margin: 6px 0; } .v18-skill.sup { color: #FFD54F; }
.v18-power-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin-bottom: 6px; }
.v18-power-h b { font-size: 15px; color: #FFD54F; }
.v18-segs { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; margin-bottom: 10px; }
.v18-segs i { height: 12px; border-radius: 3px; background: #1d2552; }
.v18-segs i.on { background: linear-gradient(180deg, #FFEE58, #FF9800); box-shadow: 0 0 6px #FFB300; }
.v18-segs.max i.on { background: linear-gradient(180deg, #F48FB1, #E040FB); box-shadow: 0 0 10px #E040FB; }
.v18-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.v18-slot { text-align: center; padding: 6px 2px; border-radius: 10px; background: #141a45; border: 2px solid #2b356f; }
.v18-slot.on { border-color: #00E676; background: #0f3a2b; } .v18-slot.next { border-color: #FFD54F; animation: v18-blink 1.2s infinite; }
.v18-slot.od.on { border-color: #E040FB; background: #3a1050; box-shadow: 0 0 12px #E040FB; }
.v18-slot-g { font-size: 18px; } .v18-slot-l { font-size: 9px; margin-top: 2px; color: #B8C4FF; }
.v18-stat { margin: 8px 0; } .v18-stat-top { display: flex; justify-content: space-between; font-size: 13px; }
.v18-stat-v { color: #fff; } .v18-plus { color: #00E676; text-shadow: 0 0 8px #00E676; }
.v18-bar { position: relative; height: 12px; border-radius: 6px; background: #0b1030; border: 1px solid #2b356f; overflow: hidden; margin-top: 3px; }
.v18-bar-f { position: absolute; left: 0; top: 0; bottom: 0; } .v18-bar-g { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #00E676, #00E676 5px, #00C853 5px, #00C853 10px); }
.v18-btns { margin-top: 12px; display: grid; gap: 8px; } .v18-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v18-btn { font: 900 14px 'Arial Black', Arial, sans-serif; color: #fff; border: 0; border-radius: 12px; padding: 12px 10px; cursor: pointer; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.v18-btn.evolve { background: linear-gradient(180deg, #FFB300, #FF6D00); box-shadow: 0 5px 0 #a54500; }
.v18-btn.evolve.short { filter: saturate(.55) brightness(.85); }
.v18-btn.select { background: linear-gradient(180deg, #00E676, #00A152); box-shadow: 0 5px 0 #00642f; }
.v18-btn.test { background: linear-gradient(180deg, #40C4FF, #0277BD); box-shadow: 0 5px 0 #01497a; }
.v18-btn.ghost { background: #E53935; box-shadow: 0 4px 0 #8e1b18; } .v18-btn:disabled { filter: grayscale(1) brightness(.7); cursor: default; }
.v18-btn:active:not(:disabled) { transform: translateY(3px); }
.v18-lockmsg { font: 700 13px Arial, sans-serif; color: #FFD54F; text-align: center; padding: 8px; background: rgba(255,213,79,.08); border-radius: 10px; }
.v18-msg { min-height: 20px; margin-top: 8px; font: 700 13px Arial, sans-serif; text-align: center; } .v18-msg.bad { color: #FF8A80; } .v18-msg.ok { color: #69F0AE; }
@keyframes v18-blink { 50% { box-shadow: 0 0 12px #FFD54F; } }

/* treino */
.v18-train-hud { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; pointer-events: none; }
.v18-train-hud .v18-btn { pointer-events: auto; padding: 8px 14px; font-size: 12px; }
.v18-train-tag { font-size: 12px; background: rgba(10,14,38,.8); border: 2px solid #00E5FF; border-radius: 999px; padding: 6px 14px; }
.v18-supbtn { position: absolute; right: calc(26px + env(safe-area-inset-right)); bottom: calc(150px + env(safe-area-inset-bottom)); width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fff; background: radial-gradient(circle at 35% 30%, #FFEE58, #FF6D00); font: 900 14px 'Arial Black', Arial, sans-serif; color: #000; display: none; place-items: center; }
.v18-train.touch .v18-supbtn { display: grid; }

/* vitória / derrota */
.v18-end { position: relative; min-height: 100vh; padding: 14px 12px 24px; color: #fff; font-family: 'Arial Black', Arial, sans-serif; overflow-y: auto; text-align: center; }
.v18-end-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 12%, rgba(255,230,0,.28), transparent 60%); animation: v18-pulse-bg 2.4s ease-in-out infinite; }
.v18-end.lose .v18-end-glow { background: radial-gradient(ellipse at 50% 12%, rgba(255,82,82,.25), transparent 60%); } .v18-end.draw .v18-end-glow { background: radial-gradient(ellipse at 50% 12%, rgba(64,196,255,.25), transparent 60%); }
.v18-end-title { position: relative; margin: 6px 0 8px; font-size: clamp(34px, 8vw, 64px); color: #FFE600; text-shadow: 0 4px 0 #8a5a00, 0 0 28px rgba(255,230,0,.8); animation: v18-title .7s cubic-bezier(.2,1.6,.4,1) both; }
.v18-end.lose .v18-end-title { color: #FF8A65; text-shadow: 0 4px 0 #6b2200, 0 0 24px rgba(255,82,82,.7); } .v18-end.draw .v18-end-title { color: #80D8FF; text-shadow: 0 4px 0 #014a6b, 0 0 24px rgba(64,196,255,.7); }
.v18-end-res { position: relative; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.v18-res-chip { min-width: 110px; padding: 8px 14px; border-radius: 14px; background: rgba(10,14,38,.85); border: 2px solid #FFD54F; } .v18-res-chip.neg { border-color: #FF8A80; }
.v18-res-chip b { display: block; font-size: 24px; color: #FFE600; } .v18-res-chip.neg b { color: #FF8A80; } .v18-res-chip span { font-size: 10px; color: #B8C4FF; }
.v18-end-note { position: relative; font: 700 13px Arial, sans-serif; color: #B8C4FF; margin-bottom: 8px; }
.v18-end-teams { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.v18-end-team { flex: 1 1 340px; max-width: 560px; padding: 8px; border-radius: 16px; background: rgba(8,10,34,.55); border: 2px solid rgba(64,196,255,.45); } .v18-end-team.t1 { border-color: rgba(255,82,82,.45); }
.v18-end-tl { font-size: 13px; letter-spacing: 2px; color: #80D8FF; margin-bottom: 6px; } .t1 > .v18-end-tl { color: #FF8A80; }
.v18-end-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v18-end-col { --rc: #00E5FF; animation: v18-in .6s cubic-bezier(.2,1.3,.4,1) both; animation-delay: var(--d, 0s); min-width: 0; }
.v18-end-art { height: clamp(120px, 24vh, 220px); display: flex; align-items: flex-end; justify-content: center; }
.v18-end-art img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 0 14px var(--rc)); animation: v18-bob 3s ease-in-out infinite; animation-delay: var(--d, 0s); user-select: none; -webkit-user-drag: none; }
.v18-end-card { padding: 6px 4px; border-radius: 12px; background: linear-gradient(180deg, #1b2260, #0e1344); border: 2px solid var(--rc); font-size: 11px; }
.v18-end-name { font-size: 12px; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .v18-end-row { font: 700 11px Arial, sans-serif; color: #D6DCFF; }
.v18-end-tag { margin-top: 3px; font-size: 9px; color: #000; background: #FFD54F; border-radius: 6px; padding: 2px 4px; }
.v18-end-col.mvp .v18-end-card { background: linear-gradient(180deg, #5b3b00, #2a1a00); animation: v18-aura 1.3s ease-in-out infinite; }
.v18-end-col.mvp .v18-end-art img { filter: drop-shadow(0 0 22px #FFD700) drop-shadow(0 0 40px var(--rc)); }
.v18-end-star { font-size: 9px; color: #000; background: linear-gradient(90deg, #FFD700, #FF9100); border-radius: 6px; padding: 3px 4px; margin-bottom: 3px; animation: v18-blink 1s infinite; }
.v18-end-foot { position: relative; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.v18-end-pill { padding: 8px 16px; border-radius: 999px; background: rgba(10,14,38,.85); border: 2px solid #00E5FF; font-size: 13px; }
@keyframes v18-in { from { opacity: 0; transform: translateY(40px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes v18-title { from { opacity: 0; transform: scale(2.2); } to { opacity: 1; transform: none; } }
@keyframes v18-bob { 50% { transform: translateY(-6px) scale(1.015); } }
@keyframes v18-aura { 50% { box-shadow: 0 0 26px 6px #FFD700, 0 0 50px 10px var(--rc); } 0%,100% { box-shadow: 0 0 10px 2px #FFD700; } }
@keyframes v18-pulse-bg { 50% { opacity: .6; } }

@media (max-width: 860px) {
  .v18-panel { width: auto; top: auto; bottom: 8px; max-height: 44vh; left: 8px; right: 8px; }
  .v18-left { display: none; }
  .v18-nav { top: 20%; } .v18-nav.prev { left: 8px; } .v18-nav.next { right: 8px; }
  .v18-name { font-size: 22px; }
  #v18-dock { max-width: 94vw; bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) and (min-height: 600px) { .v18-left { display: block; top: calc(56px + env(safe-area-inset-top)); bottom: auto; max-height: 22vh; } .v18-right { max-height: 40vh; } }
@media (prefers-reduced-motion: reduce) { .v18-end-art img, .v18-end-glow, .v18-slot.next { animation: none; } }
