@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --page-bg: #f3f5f5; --text: #1b293b; --solid: #fff; --surface-alt: #eef3f2; --hover: #f1f6f5;
  --line: #dce3e8; --muted: #66727a; --link: #1f4b50; --input: #fff; --label: #63807d; --navy: #1f3547;
  --warn-bg: #fcf5e3; --warn-text: #a07b1c; --ok-bg: #eef6f1; --ok-text: #3b8a63; --bad: #b8504a;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--page-bg); color: var(--text);
  font: 15px/1.5 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 2rem; margin: .2rem 0 .6rem; font-weight: 700; letter-spacing: -.03em; color: #0d1a26; }
h2 { font-size: 1.3rem; margin: 1.8rem 0 .6rem; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: .8rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin: 1rem 0 .3rem; color: var(--muted); }

.top {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  padding: 0 2.25rem; min-height: 4.5rem; gap: 2.5rem; background: #031820; border-bottom: 0;
}
.top a { color: #8aa3a8; }
.brand { font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: #e8f1f1 !important; line-height: 1.2; font-weight: 600; }
.brand span { display: block; font-weight: 400; color: #7e9aa0; font-size: .6rem; letter-spacing: .26em; }
.top nav { display: flex; gap: 0; flex: 1; align-self: stretch; }
.top nav a { display: inline-flex; align-items: center; padding: 0 1.1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; position: relative; }
.top nav a:hover { color: #fff; text-decoration: none; }
.top nav a.on { color: #fff; }
.top nav a.on::after { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: 0; height: 2px; background: #d9b99b; }
.me { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.langs { display: flex; gap: .1rem; margin-right: .4rem; }
.login-box .langs { justify-content: center; margin: 1.2rem 0 0; }
.login-box .langs a { padding: .2rem .55rem; border: 1px solid transparent; border-radius: .3rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; color: var(--muted); }
.login-box .langs a:hover { color: #fff; text-decoration: none; }
.login-box .langs a.on { color: #fff; border-color: rgba(255, 255, 255, .35); }
.top .langs a { padding: .2rem .45rem; border: 1px solid transparent; border-radius: .3rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; }
.top .langs a:hover { color: #fff; text-decoration: none; }
.top .langs a.on { color: #fff; border-color: rgba(255, 255, 255, .3); }
.me form { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; color: #dfeaea !important; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.chip img { border-radius: 50%; }
.chip small { color: #8aa3a8; }
.me button.ghost { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #8aa3a8; border-color: rgba(255, 255, 255, .14); }

main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 1.5rem 1.5rem 2rem; }
footer { padding: 1.5rem; text-align: center; color: #8796a3; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }

.crumbs, .muted { color: var(--muted); }
.crumbs { margin: 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }

.scroll { overflow-x: auto; }

table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--solid); border: 1px solid var(--line); border-radius: .85rem; overflow: hidden; box-shadow: 0 8px 0 -6px rgba(150, 225, 225, .22); }
th, td { padding: .5rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { background: #fafbfb; font-family: var(--mono); font-size: .62rem; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--label); white-space: nowrap; }
tbody tr:hover { background: var(--hover); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody th { font-weight: 500; color: var(--muted); width: 8rem; }
.timeline .t { width: 5.5rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.who { display: inline-flex; align-items: center; gap: .5rem; }
.who img, .avatar { border-radius: 6px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; margin: 1rem 0; }
.card { background: var(--solid); border: 1px solid var(--line); border-radius: .85rem; padding: .9rem 1.1rem; box-shadow: 0 8px 0 -6px rgba(150, 225, 225, .22); }
.card b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.card span { color: var(--muted); font-size: .72rem; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.2rem; }

.head { display: flex; align-items: center; gap: 1rem; }

.badge { display: inline-block; padding: .1rem .55rem; border-radius: .3rem; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--surface-alt); color: var(--muted); font-size: .62rem; font-weight: 600; vertical-align: middle; }
.badge.live { background: var(--ok-bg); color: var(--ok-text); }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); }
.badge.server { background: var(--navy); color: #fff; letter-spacing: .04em; text-transform: none; }

.tag { display: inline-block; padding: .1rem .55rem; margin: .1rem .1rem .1rem 0; border-radius: .3rem; border: 1px solid var(--line); background: var(--surface-alt); font-size: .85rem; }
.bad { color: var(--bad); font-weight: 600; }
code { background: var(--surface-alt); padding: .05rem .35rem; border-radius: 4px; }

.alert { background: var(--warn-bg); color: var(--warn-text); padding: .6rem .9rem; border-radius: 8px; }

.login { max-width: 460px; margin: 4rem auto; text-align: center; }

.button, button {
  display: inline-block; padding: .5rem 1rem; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--navy); color: #fff; font: inherit; font-weight: 600;
}
.button:hover, button:hover { filter: brightness(1.12); text-decoration: none; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: .25rem .7rem; }

input, select {
  background: var(--input); color: var(--text); border: 1px solid var(--line); border-radius: 6px;
  padding: .4rem .6rem; font: inherit;
}
.button.danger, button.danger { background: var(--bad); }
.danger-link { color: var(--bad); font-size: .85rem; }
form.stack { display: grid; gap: .6rem; max-width: 520px; margin-top: 1rem; }
.inline { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
form.inline { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 0; }

.map { height: 520px; border: 1px solid var(--line); border-radius: .85rem; background: #14181d; }

/* ---- transicao suave entre telas ---- */
body { transition: opacity .65s ease; animation: entrar .5s ease; }
body.leaving { opacity: 0; }

@keyframes entrar { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; transition: none; }
}

/* ---- entrada (login) ---- */
body.login-page, body.popup-page { color: #e9edf3; --muted: #afbac9; --link: #85b7ff; }
body.login-page h1, body.popup-page h1 { color: #fff; }
body.login-page, body.popup-page { background: #0b0f19; }

/* foto de fundo e escurecimento nas bordas, em camadas fixas atras do conteudo */
body.login-page::after, body.popup-page::after {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: url("fundo-login.webp") 72% 78% / cover no-repeat;
}

body.login-page::before, body.popup-page::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(6, 10, 22, .15) 0%, rgba(6, 10, 22, .68) 100%);
}

body.login-page .top, body.popup-page .top { display: none; }

body.login-page main, body.popup-page main {
  display: grid; place-items: center; max-width: none; padding: 1rem; position: relative;
}

body.login-page footer, body.popup-page footer { display: none; }

.login-box {
  width: min(440px, 100%); padding: 2.4rem 2.1rem; text-align: center;
  background: rgba(14, 19, 32, .62); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}

.login-box .logo { font-size: 2.6rem; font-weight: 800; letter-spacing: .32em; text-indent: .32em; margin-bottom: .4rem; }
.login-box h1 { font-size: 1.35rem; margin: 0 0 .5rem; }
.login-box .lead { color: #d3dbe6; margin: 0 0 1.4rem; }
.login-box .small { font-size: .78rem; margin: 1.2rem 0 0; }
.login-box .msg { min-height: 1.4em; margin: .9rem 0 0; color: #cfe3ff; font-size: .9rem; }

.button.steam {
  display: block; width: 100%; padding: .8rem 1rem; font-size: 1rem;
  background: linear-gradient(180deg, #2a475e 0%, #1b2838 100%); border: 1px solid #66c0f4;
  color: #fff; transition: filter .2s ease, transform .2s ease;
}
.button.steam:hover { filter: brightness(1.2); text-decoration: none; transform: translateY(-1px); }
.button.steam.busy { opacity: .65; pointer-events: none; }

/* ---- mapa da missao ---- */
body.wide main { max-width: none; }
.small-title { font-size: .9rem; font-weight: 400; margin-left: .5rem; }

.mapa { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; align-items: start; }
.map.big { height: calc(100vh - 290px); min-height: 420px; }
.mapa-side { max-height: calc(100vh - 150px); overflow-y: auto; }
.mapa-side h2 { margin-top: .2rem; }

.timeline-bar { display: flex; align-items: center; gap: .8rem; margin-top: .7rem; padding: .6rem .8rem; background: var(--solid); border: 1px solid var(--line); border-radius: 8px; }
.timeline-bar button { min-width: 2.6rem; padding: .4rem .6rem; }
.slider-wrap { position: relative; flex: 1; height: 28px; }
.slider-wrap input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: transparent; accent-color: #1f3547; cursor: pointer; }
.ticks { position: absolute; left: 8px; right: 8px; top: 0; height: 8px; pointer-events: none; }
.tick { position: absolute; top: 0; width: 2px; height: 8px; margin-left: -1px; background: #ff5a4d; border-radius: 1px; }
.tick.k-death { background: #1b293b; height: 10px; }
.tick.k-unconscious { background: #f7cf7e; }
.tick.k-vkill { background: #ff9f43; }
.tick.friendly { background: #d56bff; }
.clock { font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 8.5rem; text-align: right; }
.speed { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .85rem; white-space: nowrap; }

.timeline-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: .5rem; font-size: .85rem; }
.timeline-meta label { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); }

.plist, .feed { list-style: none; margin: 0 0 1rem; padding: 0; }
.plist li { display: flex; align-items: center; gap: .45rem; padding: .25rem .3rem; border-radius: 6px; }
.plist li.following { background: var(--hover); }
.plist li.gone .pname { color: var(--muted); }
.plist .swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; border: 1px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.plist .pname { background: none; border: 0; color: var(--text); padding: 0; font-weight: 600; text-align: left; cursor: pointer; }
.plist .pname:hover { text-decoration: underline; filter: none; }
.plist .pstatus { color: var(--muted); margin-left: auto; font-size: .75rem; text-align: right; }

.feed li { display: grid; grid-template-columns: 3.4rem 1fr; gap: .4rem; padding: .3rem .4rem; border-left: 3px solid var(--line); margin-bottom: .25rem; background: var(--solid); border-radius: 0 6px 6px 0; cursor: pointer; font-size: .85rem; }
.feed li:hover { background: var(--hover); }
.feed li time { color: var(--muted); font-variant-numeric: tabular-nums; }
.feed li.k-kill { border-left-color: #ff5a4d; }
.feed li.k-death { border-left-color: #1b293b; }
.feed li.k-unconscious { border-left-color: #f7cf7e; }
.feed li.k-vkill { border-left-color: #ff9f43; }
.feed li.friendly { border-left-color: #d56bff; }
.feed li.empty { display: block; cursor: default; color: var(--muted); border-left-color: transparent; }

/* icones dos jogadores no mapa */
.pm { pointer-events: auto; }
.pm.off { display: none; }
.pm .pd { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 1px 4px rgba(0, 0, 0, .6); cursor: pointer; }
.pm .pd::after { content: ""; position: absolute; left: 50%; top: -9px; margin-left: -4px; border: 4px solid transparent; border-bottom: 7px solid #fff; border-top: 0; }
.pm .pn { position: absolute; left: 13px; top: -9px; white-space: nowrap; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 2px #000; pointer-events: none; }
.pm.noname .pn { display: none; }
.pm.veh .pd { border-radius: 4px; }

/* conjunto Milsim: silhuetas; o contorno branco + brilho na cor do jogador mantem a identificacao */
.pm .pi { display: none; position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) perspective(260px) rotateY(var(--roll, 0deg)) rotateX(var(--pitch, 0deg)); cursor: pointer; pointer-events: auto; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 0 1.2px #fff) drop-shadow(0 0 3px var(--c)); }
.icons-milsim .pm.hasicon .pi { display: block; }
.icons-milsim .pm.hasicon .pd { display: none; }
.icons-milsim .pm.hasicon .pn { left: 30px; }
.pi.sz-inf { width: 28px; height: 28px; }
.pi.sz-sm { width: 30px; height: 30px; }
.pi.sz-veh { width: 38px; height: 38px; }
.pi.sz-truck { width: 50px; height: 50px; }
.pi.sz-jet { width: 54px; height: 54px; }
.pi.sz-air { width: 58px; height: 58px; }
.pi.sz-big { width: 78px; height: 78px; }
.pm.down .pi { animation: piscar 1s infinite; }

/* veiculos rastreados: quadrado cinza (Padrao) ou silhueta (Milsim); destruido fica escuro e apagado */
.pm.vm { --c: #aab3c0; }
.pm.vm .pd { border-radius: 4px; width: 20px; height: 20px; left: -10px; top: -10px; background: #8d97a6; }
.pm.vm .pd::after { top: -8px; }
.pm.vm .pn { font-weight: 700; color: #ffe9a8; }
.pm.vm.wreck .pd { background: #3a3f46; border-style: dashed; }
.pm.vm.wreck .pi { filter: grayscale(1) brightness(.55) drop-shadow(0 0 1.5px #fff); }
.pm.vm.wreck .pn { color: #aaa; text-decoration: line-through; }
.plist .vsw { border-radius: 3px; background: #8d97a6; }
.pm.down .pd { border-color: #f7cf7e; opacity: .75; animation: piscar 1s infinite; }
@keyframes piscar { 50% { opacity: .3; } }

.pc0 { --c: #e6194b; } .pc1 { --c: #3cb44b; } .pc2 { --c: #ffe119; } .pc3 { --c: #4363d8; }
.pc4 { --c: #f58231; } .pc5 { --c: #911eb4; } .pc6 { --c: #46f0f0; } .pc7 { --c: #f032e6; }
.pc8 { --c: #bcf60c; } .pc9 { --c: #fabebe; } .pc10 { --c: #20a39e; } .pc11 { --c: #e6beff; }
path.tc0 { stroke: #e6194b; } path.tc1 { stroke: #3cb44b; } path.tc2 { stroke: #ffe119; } path.tc3 { stroke: #4363d8; }
path.tc4 { stroke: #f58231; } path.tc5 { stroke: #911eb4; } path.tc6 { stroke: #46f0f0; } path.tc7 { stroke: #f032e6; }
path.tc8 { stroke: #bcf60c; } path.tc9 { stroke: #fabebe; } path.tc10 { stroke: #20a39e; } path.tc11 { stroke: #e6beff; }

.em span { position: absolute; left: -9px; top: -12px; font-size: 20px; line-height: 1; text-shadow: 0 0 3px #000, 0 0 3px #000; animation: surgir .4s ease-out; }
.em.k-kill span { color: #ff5a4d; }
.em.k-vkill span { color: #ff9f43; }
.em.k-death span { color: #fff; }
.em.k-unconscious span { color: #f7cf7e; }
@keyframes surgir { from { transform: scale(2.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.popup { display: grid; gap: .3rem; min-width: 150px; font: 13px/1.4 system-ui, sans-serif; color: #202124; }
.popup .muted { color: #555; }
.popup a { color: #1769ee; }
.popup button.ghost { color: #333; border-color: #bbb; padding: .15rem .5rem; }

@media (max-width: 900px) {
  .top { padding: .6rem 1rem; gap: 1rem; min-height: 0; }
  .top nav a { padding: .6rem .7rem; }
  .mapa { grid-template-columns: 1fr; }
  .mapa-side { max-height: none; }
  .timeline-bar { flex-wrap: wrap; }
  .slider-wrap { order: 3; flex-basis: 100%; }
}

@media (max-width: 640px) {
  main { padding: .7rem; }
  .map { height: 380px; }
}

/* ---- lista: busca, filtros e paginas ---- */
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.title-row .inline { margin: 0 0 .6rem; }
.button.ghost-btn { background: var(--solid); color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; align-items: end; margin: .4rem 0 1.2rem; padding: 1rem; background: var(--solid); border: 1px solid var(--line); border-radius: .85rem; }
.filtros label { display: grid; gap: .25rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.filtros input, .filtros select { width: 100%; font-family: inherit; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); }
.filtros-acoes { display: flex; align-items: center; gap: .7rem; }
.small-note { font-size: .82rem; margin: 0 0 .5rem; }
.paginas { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem 0; }

/* ---- lista: busca, filtros e paginas ---- */
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.title-row .inline { margin: 0 0 .6rem; }
.button.ghost-btn { background: var(--solid); color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; align-items: end; margin: .4rem 0 1.2rem; padding: 1rem; background: var(--solid); border: 1px solid var(--line); border-radius: .85rem; }
.filtros label { display: grid; gap: .25rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.filtros input, .filtros select { width: 100%; font-family: inherit; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); }
.filtros-acoes { display: flex; align-items: center; gap: .7rem; }
.small-note { font-size: .82rem; margin: 0 0 .5rem; }
.paginas { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem 0; }

/* ---- missao: destaques, linha do tempo, equipe medica ---- */
.destaques { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; margin: .2rem 0 1rem; }
.destaque { display: grid; gap: .15rem; padding: .85rem 1rem; background: var(--solid); border: 1px solid var(--line); border-left: 3px solid #c4a562; border-radius: .6rem; color: var(--text); }
.destaque:hover { text-decoration: none; border-color: #c9d6d8; border-left-color: #c4a562; }
.destaque small { font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.destaque b { font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.destaque span { font-family: var(--mono); font-size: .85rem; color: #1f4b50; }

.faixa { padding: .7rem 1rem .8rem; background: var(--solid); border: 1px solid var(--line); border-radius: .85rem; }
.faixa-svg { display: block; overflow: visible; }
.faixa-eixo { stroke: #c9d3d6; stroke-width: 2; }
.fm { fill: #8a96a0; transition: transform .1s; }
.fm:hover { fill-opacity: .7; }
.k-kill.fm, .lk.k-kill { fill: #b8504a; background: #b8504a; }
.k-friendly.fm, .lk.k-friendly { fill: #9b4fc2; background: #9b4fc2; }
.k-death.fm, .lk.k-death { fill: #1b293b; background: #1b293b; }
.k-unconscious.fm, .lk.k-unconscious { fill: #c8962e; background: #c8962e; }
.k-vkill.fm, .lk.k-vkill { fill: #e07a2f; background: #e07a2f; }
.faixa-ext { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .66rem; color: #8796a3; }
.legenda-linha { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: .5rem 0 0; padding: 0; list-style: none; font-size: .74rem; color: var(--muted); }
.legenda-linha li { display: inline-flex; align-items: center; gap: .35rem; }
.lk { display: inline-block; width: .65rem; height: .65rem; border-radius: 2px; }

.compare-form { margin: 1.8rem 0 .6rem; }
.compare-form select { max-width: 22rem; }
.equipe { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .55rem; }
.membro { display: flex; align-items: center; gap: .7rem; padding: .5rem .8rem .5rem .5rem; background: var(--solid); border: 1px solid var(--line); border-radius: .6rem; color: var(--text); }
.membro:hover { text-decoration: none; border-color: #aab8bb; }
.membro.ileso { opacity: .72; }
.membro-txt { display: grid; min-width: 0; }
.membro-txt b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.membro-txt em { font-style: normal; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; color: #3f7d70; }
.membro-txt em.t-warn { color: #a07b1c; } .membro-txt em.t-bad { color: #b8504a; }
.mini { position: relative; flex: none; width: 30px; aspect-ratio: 201 / 475; }
.mini img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mr { position: absolute; inset: 0; opacity: 0; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.mr0 { --m: url(corpo/head.png); } .mr1 { --m: url(corpo/torso.png); } .mr2 { --m: url(corpo/arm-left.png); }
.mr3 { --m: url(corpo/arm-right.png); } .mr4 { --m: url(corpo/leg-left.png); } .mr5 { --m: url(corpo/leg-right.png); }
.st-residual, .st-sutured { background: #6568c9; } .mr.st-residual, .mr.st-sutured { opacity: .6; }
.st-bleeding { background: #c93d64; } .mr.st-bleeding { opacity: .85; }
.st-fracture, .st-splint { background: #36529b; } .mr.st-fracture, .mr.st-splint { opacity: .85; }
.st-tourniquet { background: #2f97a0; } .mr.st-tourniquet { opacity: .85; }

/* ---- perfil: graficos de evolucao (uma serie por grafico) e conquistas ---- */
.graficos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.grafico { margin: 0; padding: .8rem .9rem .6rem; background: var(--solid); border: 1px solid var(--line); border-radius: .85rem; }
.grafico figcaption { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.grafico figcaption b { font-family: "DM Sans", sans-serif; font-size: 1.05rem; letter-spacing: 0; color: var(--text); }
.grafico svg { display: block; width: 100%; height: 120px; margin-top: .3rem; overflow: visible; }
.g-base { stroke: #dce3e8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.g-line { fill: none; stroke: #1f4b50; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.g-avg { fill: none; stroke: #c4a562; stroke-width: 2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.g-dot { fill: #1f4b50; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.g-hit { fill: transparent; cursor: pointer; }
.g-hit:hover + .g-dot { fill: #c4a562; }
.g-legenda { display: flex; justify-content: space-between; gap: .5rem; margin: .35rem 0 0; font-size: .7rem; color: var(--muted); }
.g-legenda i { display: inline-block; width: 1rem; height: 0; margin: 0 .25rem 0 .5rem; vertical-align: middle; border-top: 2px solid #1f4b50; }
.g-legenda i.g-k2 { border-top: 2px dashed #c4a562; }

.conquistas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; }
.conquista { display: flex; gap: .7rem; padding: .8rem .9rem; background: var(--solid); border: 1px dashed #c9d3d6; border-radius: .7rem; opacity: .75; }
.conquista.ok { border: 1px solid #e3d3a8; background: #fffdf6; opacity: 1; }
.conquista .selo { font-size: 1.3rem; line-height: 1; color: #b4bbbd; }
.conquista.ok .selo { color: #c4a562; }
.conquista b { font-size: .92rem; }
.conquista p { margin: .15rem 0 .25rem; font-size: .76rem; color: var(--muted); }
.conquista small { font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; color: var(--label); }

/* ---- ranking ---- */
.quadros { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; margin-top: 1rem; }
.quadro { padding: .2rem 1.1rem 1rem; background: var(--solid); border: 1px solid var(--line); border-radius: .85rem; }
.quadro h2 { margin: .8rem 0 .1rem; }
.rank { list-style: none; margin: .4rem 0 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 1.8rem 1fr auto; gap: 0 .5rem; align-items: baseline; padding: .4rem 0; border-top: 1px solid #eef2f3; }
.rank li:first-child { border-top: 0; }
.rank .pos { font-family: var(--mono); font-size: .75rem; color: #8796a3; }
.rank li:nth-child(-n+3) .pos { color: #c4a562; font-weight: 600; }
.rank a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank b { font-family: var(--mono); font-size: .82rem; }
.rank small { grid-column: 2 / 4; font-size: .72rem; color: var(--muted); }

/* ---- comparar ---- */
.comparar thead th small { display: block; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.comparar tbody th { width: 12rem; }
.dif { font-family: var(--mono); font-size: .8rem; }
.dif.up { color: #3b8a63; } .dif.down { color: #b8504a; }

/* ---- mapa: disparo (brilho no jogador) e abates antigos (ficam marcados, menores e apagados) ---- */
.pm.firing .pd { box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 9px 3px rgba(255, 207, 61, .9); }
.icons-milsim .pm.firing .pi { filter: drop-shadow(0 0 1.2px #fff) drop-shadow(0 0 6px #ffcf3d); }
.em.old span { font-size: 13px; opacity: .6; animation: none; }

/* jogador morto: fica no lugar do corpo, apagado e com a cruz (a posicao de espectador na origem do mapa e ignorada) */
.pm.dead .pd { background: #6b7176; border-color: #d9d9d9; opacity: .8; }
.pm.dead .pd::after { display: none; }
.pm.dead .pi { filter: grayscale(1) brightness(.6) drop-shadow(0 0 1.2px #fff); opacity: .8; }
.pm.dead .pn { color: #d6d6d6; text-decoration: line-through; }
.pm.dead::before { content: "✝"; position: absolute; left: -6px; top: -26px; font-size: 13px; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; pointer-events: none; }

/* clipe GIF do replay */
.clip-range { position: absolute; top: 0; bottom: 0; background: rgba(255, 207, 61, .28); border-left: 2px solid #c4a562; border-right: 2px solid #c4a562; pointer-events: none; }
.clip-h { position: absolute; top: -3px; bottom: -3px; left: -7px; width: 12px; cursor: ew-resize; pointer-events: auto; touch-action: none; }
.clip-h.end { left: auto; right: -7px; }
.clip-panel { margin-top: .6rem; padding: .7rem .9rem; background: var(--solid); border: 1px solid var(--line); border-radius: 8px; }
.clip-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.clip-panel p { margin: .5rem 0; font-size: .85rem; }
.clip-panel label { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .85rem; }
.clip-panel progress { flex: 1; min-width: 8rem; }
.clip-preview { display: block; max-width: 100%; margin-top: .7rem; border-radius: 6px; border: 1px solid var(--line); }
.clip-panel [hidden], .clip-range[hidden] { display: none !important; }

/* grupos na legenda dos jogadores */
.plist li.ghead { display: block; margin-top: .5rem; padding: .15rem .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line, rgba(128, 128, 128, .3)); border-radius: 0; }
.plist li.ghead:first-child { margin-top: 0; }

/* marcadores do mapa do jogo */
.mk-box { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; }
.mk-box[hidden] { display: none; }
.mk-channels { display: inline-flex; flex-wrap: wrap; gap: .2rem .6rem; }
.mk { pointer-events: none; }
.mk .mk-dot { position: absolute; left: 0; top: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.mk.mk-line .mk-dot { border-radius: 2px; transform: rotate(45deg); }
.mk.mk-shaped .mk-dot { display: none; }
.mk .mk-txt { position: absolute; left: 9px; top: -8px; white-space: nowrap; font: 600 11px/1.2 system-ui, sans-serif; color: #111; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; }
.mk.mk-shaped .mk-txt { left: 0; top: -6px; transform: translateX(-50%); }
.noname .mk-txt { display: none; }
