/* ============================================================================
   ONLINE-UI.CSS — aparência das cenas online (PC / celular) da rota da Noir.
   ----------------------------------------------------------------------------
   Tudo aqui é "pele": pode mexer à vontade sem quebrar a lógica (online-ui.js)
   nem as cenas (story.js). As cores de acento por aplicativo vêm do
   online-config.js (variável --olui-accent, aplicada pelo módulo).
   ============================================================================ */

/* ------- a camada em si (entre os sprites [3] e a caixa de diálogo [6]) --- */
#online-layer {
  position: absolute; inset: 0; z-index: 4;
  display: none; pointer-events: none;
}
#online-layer.on { display: block; }

/* Em chamadas, os participantes representados por sprites continuam visíveis
   à frente da janela, sem cobrir a caixa de diálogo nem o HUD. */
.hh-stage.is-online-call .sprites { z-index: 5; }

/* O palco nunca deve rolar: efeitos decorativos (ex.: .hh-spot) são mais altos
   que a tela, e um focus em botão pode fazer o navegador "revelar" esse
   excesso rolando o palco inteiro. Cortar aqui é invisível e à prova disso. */
#game-stage {
  overflow: hidden;
  /* `hidden` ainda cria um contêiner rolável: ao devolver o foco de Settings
     para um controle do jogo, o navegador podia manter scrollTop > 0 e empurrar
     HUD, controles e diálogo para fora da tela. `clip` corta os efeitos sem
     permitir essa rolagem programática. */
  overflow: clip;
}

/* O palco em modo online: o cenário de fundo escurece e desfoca de leve —
   o quarto continua lá atrás, fora de foco, atrás da tela acesa. */
.hh-stage.is-online .bg-layer { filter: brightness(.45) saturate(.7) blur(2px); }
.hh-stage.is-online .hh-spot { opacity: .35; }
.hh-stage.is-online .hh-motes { display: none; }

/* ------- moldura do aparelho --------------------------------------------- */
.olui-device {
  position: absolute;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  border-radius: 12px; overflow: hidden;
  animation: olui-device-in .45s ease both;
}
@keyframes olui-device-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.olui-device--pc {
  left: 50%; top: 12%; transform: translateX(-50%);
  width: min(92%, calc(59vh * 16 / 9), 1080px); height: auto;
  aspect-ratio: 16 / 9;
  background: #14161c;
}
.olui-device--pc { animation-name: olui-device-in-pc; }
@keyframes olui-device-in-pc {
  from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.985); }
  to   { opacity: 1; transform: translateX(-50%); }
}
.olui-device--phone {
  left: 50%; top: 3.4%; transform: translateX(-50%);
  width: min(64vw, calc(70vh * 9 / 16)); height: auto;
  aspect-ratio: 9 / 16;
  background: #101218;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 6px #23252c, 0 0 0 7px rgba(255,255,255,.08);
}
.olui-device--phone { animation-name: olui-device-in-pc; }

/* Assets `*_ui_*` e `*_drawing_*` já são telas completas. O JS substitui a
   proporção inicial pela dimensão real da imagem assim que ela carrega. */
.olui-device.olui-device--screen {
  --olui-screen-ratio: 1.7777778;
  left: 50%; top: 2.5%; transform: translateX(-50%);
  width: min(94%, calc(76vh * var(--olui-screen-ratio))); height: auto;
  aspect-ratio: var(--olui-screen-ratio);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  animation-name: olui-device-in-screen;
}
.olui-device.olui-device--screen.olui-device--phone {
  top: 3.4%;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 6px #23252c, 0 0 0 7px rgba(255,255,255,.08);
}
@keyframes olui-device-in-screen {
  from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(.99); }
  to   { opacity: 1; transform: translateX(-50%); }
}

/* luz da tela vazando (identidade "luz de abajur", versão fria de monitor) */
.hh-stage.is-online::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 38%, rgba(120,140,255,.10), transparent 70%);
}

/* ------- paleta das duas marcas -------------------------------------------
   Valores oficiais: o tema escuro do Discord e a paleta Hextech do cliente do
   LoL. Estão aqui, num lugar só, para o resto da folha só citar. */
:root {
  /* Discord (tema escuro) */
  --dc-rail:   #1e1f22;   --dc-side:   #2b2d31;   --dc-chat:   #313338;
  --dc-input:  #383a40;   --dc-panel:  #232428;   --dc-hover:  #35373c;
  --dc-line:   #26282c;
  --dc-head:   #f2f3f5;   --dc-text:   #dbdee1;   --dc-mute:   #949ba4;
  --dc-faint:  #80848e;   --dc-blurple:#5865f2;
  --dc-online: #23a55a;   --dc-idle:   #f0b232;   --dc-dnd:    #f23f43;
  /* League of Legends (Hextech) */
  --lol-black: #010a13;   --lol-grey4: #1e2328;   --lol-cool:  #1e282d;
  --lol-grey2: #5b5a56;   --lol-grey1: #a09b8c;
  --lol-gold1: #f0e6d2;   --lol-gold2: #cdbe91;   --lol-gold3: #c8aa6e;
  --lol-gold4: #c89b3c;   --lol-gold5: #785a28;   --lol-gold6: #463714;
  --lol-blue3: #0ac8b9;   --lol-blue5: #005a82;   --lol-blue7: #0a142b;
  --lol-red:   #be1e37;
}

/* ------- blocos comuns ---------------------------------------------------- */
.olui-app {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #d7dae2; font-size: 14px; line-height: 1.45;
}
/* Barra de título de janela do Windows: nome à esquerda, ─ ☐ ✕ à direita. */
.olui-titlebar {
  display: flex; align-items: center; gap: 9px;
  padding: 0 0 0 11px; height: 30px; background: #0d0f13; flex: none;
  font-size: 11.5px; color: #9aa0ab;
}
.olui-titlebar__mark { font-size: 11px; opacity: .85; }
.olui-titlebar__app { letter-spacing: .01em; white-space: nowrap; }
.olui-titlebar__ctl {
  margin-left: auto; align-self: stretch; display: flex; align-items: stretch;
  font-size: 10px; color: #9aa0ab;
}
.olui-titlebar__ctl i {
  display: flex; align-items: center; justify-content: center;
  width: 42px; font-style: normal;
}
.olui-titlebar__ctl i:last-child { color: #c8ccd4; }
.olui-statusbar {
  display: flex; justify-content: space-between; padding: 8px 16px 2px; flex: none;
  font-size: 11px; color: #8a8f98;
}
.olui-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; color: rgba(255,255,255,.92);
  font-weight: 700; font-size: 14px; font-style: normal;
}
.olui-avatar img { width: 100%; height: 100%; object-fit: cover; }
.olui-avatar--lg { width: 36px; height: 36px; }

/* Avatar com a bolinha de presença recortada (Discord). */
.olui-ava { position: relative; flex: none; display: inline-flex; }
.olui-ava__dot {
  position: absolute; right: -1px; bottom: -1px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 3px solid var(--dc-side); background: var(--dc-faint);
}
.olui-ava__dot.is-online  { background: var(--dc-online); }
.olui-ava__dot.is-idle    { background: var(--dc-idle); }
.olui-ava__dot.is-dnd     { background: var(--dc-dnd); }
.olui-ava__dot.is-offline { background: var(--dc-faint); }
.olui-svg { width: 18px; height: 18px; display: block; flex: none; }

/* ------- app: CHAT (Murmur / SMS) ---------------------------------------- */
.olui-chat__head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; flex: none;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.olui-chat__id { display: flex; flex-direction: column; min-width: 0; }
.olui-chat__title { font-weight: 700; font-size: 14px; color: #eceef2; }
.olui-chat__sub { font-size: 11px; color: #8a8f98; }
.olui-status::before { content: "●  "; font-size: 8px; vertical-align: 1px; }
.olui-status.is-online::before { color: #57b26a; }
.olui-status.is-idle::before { color: #d8a25a; }
.olui-status.is-offline::before { color: #6a6f7c; }
.olui-chat__note {
  margin-left: auto; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: #565b66; border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
  padding: 3px 10px; white-space: nowrap;
}
.olui-chat__list {
  flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 10px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent;
}
.olui-msg { display: flex; gap: 10px; max-width: 86%; }
.olui-msg__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.olui-msg__name { font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.olui-bubble {
  display: inline-block; padding: 7px 12px; border-radius: 4px 14px 14px 14px;
  background: #1e222b; color: #d7dae2; white-space: pre-wrap; word-break: break-word;
}
.olui-msg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.olui-msg.is-mine .olui-msg__body { align-items: flex-end; }
.olui-msg.is-mine .olui-bubble {
  background: color-mix(in srgb, var(--olui-accent, #7c6cff) 26%, #1e222b);
  border-radius: 14px 4px 14px 14px;
}
.olui-divider {
  flex: none; align-self: center; text-align: center;
  font-size: 11px; font-weight: 600; line-height: 1;
}
.olui-divider--today {
  margin: 5px 0 2px; padding: 6px 10px; border-radius: 7px;
  background: rgba(20,24,29,.88); color: #c7cbd1;
  box-shadow: 0 1px 2px rgba(0,0,0,.28);
}
.olui-time {
  align-self: center; text-align: center; margin: 6px 0 2px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #6a6f7c;
}
.olui-time::before, .olui-time::after { content: "—"; margin: 0 10px; color: #3a3e48; }
.olui-system {
  align-self: center; text-align: center; font-size: 11px; color: #8a8f98;
  border: 1px dashed rgba(255,255,255,.12); border-radius: 20px; padding: 3px 14px;
}
.olui-msg__tag { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6a6f7c; }
.olui-voice {
  display: inline-flex; align-items: center; gap: 10px;
  background: #1e222b; border-radius: 14px; padding: 8px 14px;
}
.olui-voice__play {
  width: 26px; height: 26px; border-radius: 50%; flex: none; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--olui-accent, #7c6cff); color: #fff; font-size: 11px;
}
.olui-voice__bars { display: inline-flex; align-items: center; gap: 2px; height: 18px; }
.olui-voice__bars b { width: 3px; border-radius: 2px; background: #565b66; }
.olui-voice__bars b:nth-child(3n)   { height: 60%; background: #8a8f98; }
.olui-voice__bars b:nth-child(3n+1) { height: 100%; }
.olui-voice__bars b:nth-child(3n+2) { height: 35%; }
.olui-voice__dur { font-style: normal; font-size: 11px; color: #8a8f98; }
.olui-imgmsg { display: block; max-width: 240px; border-radius: 10px; overflow: hidden; }
.olui-imgmsg img { display: block; width: 100%; height: auto; }
.olui-composer {
  flex: none; display: flex; align-items: center; gap: 10px;
  margin: 8px 12px 12px; padding: 9px 14px;
  background: #1a1d24; border-radius: 10px;
}
.olui-composer__input { flex: 1; min-width: 0; color: #d7dae2; white-space: nowrap; overflow: hidden; }
.olui-composer__hint { color: #565b66; font-style: normal; }
.olui-caret {
  display: inline-block; width: 1px; height: 14px; background: #d7dae2;
  vertical-align: -2px; margin-left: 1px; animation: olui-caret 1.05s step-end infinite;
}
@keyframes olui-caret { 50% { opacity: 0; } }
.olui-composer__send { color: var(--olui-accent, #7c6cff); font-size: 15px; }

/* indicador de digitação */
.olui-typing { display: inline-flex; gap: 4px; padding: 9px 13px; background: #1e222b; border-radius: 14px; }
.olui-typing b { width: 6px; height: 6px; border-radius: 50%; background: #8a8f98; animation: olui-typing 1.2s ease-in-out infinite; }
.olui-typing b:nth-child(2) { animation-delay: .18s; }
.olui-typing b:nth-child(3) { animation-delay: .36s; }
@keyframes olui-typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.olui-typing__who { font-size: 10px; color: #6a6f7c; }

/* ==========================================================================
   DISCORD — três colunas: barra de servidores, lista de DMs, conversa.
   Nada de bolha: mensagem é avatar + nome colorido + horário, e as seguintes
   do mesmo autor entram coladas na mesma calha. Cores do tema escuro oficial.
   ========================================================================== */
.olui-app--dc { background: var(--dc-chat); font-family: "Manrope", "Helvetica Neue", Arial, sans-serif; }
.olui-app--dc .olui-titlebar { background: var(--dc-rail); color: var(--dc-mute); }
.olui-app--dc .olui-titlebar__mark { color: var(--dc-blurple); font-size: 13px; }
.olui-dc { flex: 1; min-height: 0; display: flex; }

/* --- barra de servidores (72 px) --- */
.olui-dc__rail {
  flex: none; width: 72px; background: var(--dc-rail);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 0; overflow: hidden;
}
.olui-dc__slot { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
/* a pílula branca que marca o servidor aberto */
.olui-dc__pip {
  position: absolute; left: 0; width: 4px; height: 8px; border-radius: 0 4px 4px 0;
  background: #fff; opacity: 0; transition: height .2s ease, opacity .2s ease;
}
.olui-dc__slot.is-active .olui-dc__pip { opacity: 1; height: 40px; }
.olui-dc__btn {
  width: 48px; height: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--dc-side); color: var(--dc-text);
  font-weight: 700; font-size: 16px; font-style: normal;
}
.olui-dc__btn.is-home { background: var(--dc-blurple); color: #fff; }
.olui-dc__btn.is-add  { background: var(--dc-side); color: var(--dc-online); }
/* Servidor: círculo enquanto está fechado, quadrado arredondado quando é o
   aberto — o mesmo "estica" que o Discord faz ao selecionar. */
.olui-dc__btn.is-server {
  border-radius: 50%; font-size: 14px; letter-spacing: .02em; color: #fff;
  transition: border-radius .2s ease;
}
.olui-dc__slot.is-active .olui-dc__btn.is-server { border-radius: 16px; }
.olui-dc__btn.is-server i { font-style: normal; }
.olui-dc__btn.is-server img { width: 100%; height: 100%; object-fit: cover; }
.olui-dc__btn .olui-svg { width: 24px; height: 24px; }
/* a marca do botão inicial, desenhada em CSS */
.olui-dc__home {
  width: 26px; height: 18px; border-radius: 12px / 10px; background: #fff;
  position: relative; font-style: normal;
}
.olui-dc__home::before, .olui-dc__home::after {
  content: ""; position: absolute; top: 6px; width: 5px; height: 6px;
  border-radius: 50%; background: var(--dc-blurple);
}
.olui-dc__home::before { left: 5px; }
.olui-dc__home::after  { right: 5px; }
.olui-dc__railsep { width: 32px; height: 2px; border-radius: 1px; background: #35373c; margin: 2px 0; }

/* --- coluna de conversas (240 px) --- */
.olui-dc__side { flex: none; width: 240px; background: var(--dc-side); display: flex; flex-direction: column; min-height: 0; }
.olui-dc__search {
  flex: none; margin: 9px 10px; padding: 5px 8px; border-radius: 4px;
  background: var(--dc-rail); color: var(--dc-faint); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Cabeçalho do servidor: nome + seta, com a sombra que o Discord usa no lugar
   de uma borda. Substitui a busca quando a cena está num canal. */
.olui-dc__svhead {
  flex: none; display: flex; align-items: center; gap: 8px; height: 48px;
  padding: 0 16px; box-shadow: 0 1px 0 rgba(0,0,0,.24), 0 2px 6px rgba(0,0,0,.16);
  z-index: 1;
}
.olui-dc__svname {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--dc-head);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.olui-dc__svchev { font-style: normal; font-size: 15px; color: var(--dc-head); line-height: 1; }
.olui-dc__dms { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px; scrollbar-width: thin; scrollbar-color: var(--dc-rail) transparent; }
/* Canal de texto: # apagado, nome apagado, e o aberto acende. */
.olui-dc__ch {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: 4px; margin-bottom: 1px;
  color: var(--dc-mute); font-size: 13.5px; font-weight: 500;
}
.olui-dc__ch.is-active { background: var(--dc-hover); color: var(--dc-head); }
/* Canal silenciado continua apagado mesmo aberto — é o "muted" da cena. */
.olui-dc__ch.is-muted { color: var(--dc-faint); }
.olui-dc__chicon { width: 18px; height: 18px; color: var(--dc-faint); flex: none; }
.olui-dc__cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 8px 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; color: var(--dc-mute);
}
.olui-dc__catadd { font-style: normal; font-size: 15px; line-height: 1; color: var(--dc-mute); }
.olui-dc__dm {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px; border-radius: 4px; margin-bottom: 1px;
  color: var(--dc-mute); font-size: 13.5px; font-weight: 500;
}
.olui-dc__dm.is-active { background: var(--dc-hover); color: var(--dc-head); }
.olui-dc__dm .olui-avatar { width: 32px; height: 32px; }
.olui-dc__dmname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- painel do usuário, no pé da coluna --- */
.olui-dc__me {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; background: var(--dc-panel);
}
.olui-dc__me .olui-avatar { width: 32px; height: 32px; }
.olui-dc__me .olui-ava__dot { border-color: var(--dc-panel); }
.olui-dc__meid { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.olui-dc__mename { font-size: 12.5px; font-weight: 600; color: var(--dc-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.olui-dc__mesub { font-size: 11px; color: var(--dc-mute); }
.olui-dc__metools { display: flex; gap: 4px; color: var(--dc-mute); }
.olui-dc__metools .olui-svg { width: 17px; height: 17px; }

/* --- coluna de membros (direita, 200 px) ---
   O `ONLINE — N` do topo é o medidor diegético da rota: encolhe ao longo dos
   capítulos e nenhum personagem comenta. Aqui ele é só um título de categoria,
   igual ao do Discord — e é essa naturalidade que faz a conta funcionar. */
.olui-dc__members {
  flex: none; width: 200px; background: var(--dc-side);
  overflow-y: auto; padding: 0 8px 12px;
  scrollbar-width: thin; scrollbar-color: var(--dc-rail) transparent;
}
.olui-dc__mcat {
  padding: 16px 8px 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; color: var(--dc-mute);
}
.olui-dc__member { display: flex; align-items: center; gap: 12px; padding: 4px 8px; border-radius: 4px; }
.olui-dc__member.is-off { opacity: .35; }
.olui-dc__member .olui-avatar { width: 32px; height: 32px; }
.olui-dc__member .olui-ava__dot { border-color: var(--dc-side); }
.olui-dc__memid { display: flex; flex-direction: column; min-width: 0; }
.olui-dc__memname {
  font-size: 13.5px; font-weight: 500; color: var(--dc-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.olui-dc__memstatus {
  font-size: 11.5px; color: var(--dc-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --- conversa --- */
.olui-dc__main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--dc-chat); }
.olui-dc__top {
  flex: none; display: flex; align-items: center; gap: 8px; height: 48px;
  padding: 0 16px; box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.12);
  z-index: 1;
}
.olui-dc__topicon { width: 22px; height: 22px; color: var(--dc-faint); }
.olui-app--dc .olui-chat__title { font-size: 15px; font-weight: 700; color: var(--dc-head); }
.olui-dc__topsub { font-size: 12px; color: var(--dc-mute); }
.olui-app--dc .olui-chat__note {
  margin-left: auto; border: 0; background: var(--dc-rail); color: var(--dc-mute);
  border-radius: 4px; letter-spacing: .02em; text-transform: none; font-size: 11px;
}
.olui-dc__list { padding: 8px 0 16px; gap: 0; }
.olui-dc__msg { max-width: 100%; gap: 0; padding: 2px 16px 2px 0; }
.olui-dc__msg.is-head { margin-top: 14px; }
.olui-dc__msg.is-head:first-child { margin-top: 0; }
.olui-dc__gutter { flex: none; width: 72px; display: flex; justify-content: center; padding-top: 2px; }
.olui-dc__msg .olui-avatar--lg { width: 40px; height: 40px; }
.olui-dc__msg .olui-msg__body { gap: 2px; min-width: 0; flex: 1; }
.olui-dc__meta { display: flex; align-items: baseline; gap: 8px; }
.olui-app--dc .olui-msg__name { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.olui-dc__stamp { font-size: 10.5px; color: var(--dc-faint); font-style: normal; }
.olui-dc__text {
  display: block; font-size: 14px; line-height: 1.45; color: var(--dc-text);
  white-space: pre-wrap; word-break: break-word;
}
.olui-app--dc .olui-imgmsg { max-width: 260px; margin-top: 4px; }
.olui-app--dc .olui-voice { background: var(--dc-input); border-radius: 8px; }
.olui-app--dc .olui-voice__play { background: var(--dc-blurple); }
.olui-app--dc .olui-msg__tag { color: var(--dc-faint); }
.olui-app--dc .olui-typing { background: transparent; padding: 4px 0; }
.olui-app--dc .olui-typing-row .olui-msg__body { padding-left: 0; }
.olui-app--dc .olui-typing-row { padding-left: 16px; gap: 10px; }
.olui-divider--new {
  align-self: stretch; display: flex; align-items: center; gap: 9px;
  margin: 14px 16px 6px; color: var(--dc-dnd);
  font-size: 10.5px; font-weight: 700; white-space: nowrap;
}
.olui-divider--new::before, .olui-divider--new::after {
  content: ""; height: 1px; background: currentColor; flex: 1;
}
.olui-app--dc .olui-time { color: var(--dc-mute); font-size: 10.5px; margin: 12px 16px 6px; }
.olui-app--dc .olui-time::before, .olui-app--dc .olui-time::after { color: var(--dc-line); }
.olui-app--dc .olui-system {
  border: 0; background: transparent; color: var(--dc-mute);
  align-self: flex-start; margin-left: 72px; padding: 2px 0; font-size: 12px;
}
/* caixa de digitar */
.olui-app--dc .olui-composer {
  margin: 0 16px 20px; padding: 10px 14px; border-radius: 8px;
  background: var(--dc-input); gap: 12px;
}
.olui-app--dc .olui-composer__plus {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--dc-mute); color: var(--dc-input);
}
.olui-app--dc .olui-composer__plus .olui-svg { width: 16px; height: 16px; }
.olui-app--dc .olui-composer__input { color: var(--dc-text); font-size: 14px; }
.olui-app--dc .olui-composer__hint { color: var(--dc-faint); }

/* O chat do cliente abre DENTRO dele, encostado na lista social — não vira
   mais uma janela independente flutuando sobre o quarto. */
.olui-client-dm {
  position: absolute; right: 14px; bottom: 12px; z-index: 3;
  width: min(42%, 330px); height: min(88%, 390px);
  display: flex; flex-direction: column; min-height: 0;
  background: rgba(15,22,28,.98);
  border: 1px solid #806536;
  box-shadow: 0 14px 38px rgba(0,0,0,.72);
  font-size: 12px; color: var(--lol-gold2);
}
.olui-client-dm__head {
  flex: none; display: flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 11px;
  background: linear-gradient(180deg, #20292e, #12191e);
  border-bottom: 1px solid var(--lol-gold5);
}
.olui-client-dm__head .olui-avatar { width: 30px; height: 30px; }
.olui-client-dm__head .olui-ava__dot { border-color: #151d22; }
.olui-client-dm__id { display: flex; flex-direction: column; min-width: 0; }
.olui-client-dm__id b {
  color: var(--lol-gold1); font-size: 12px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.olui-client-dm__id small { color: #58a96a; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; }
.olui-client-dm__tools { margin-left: auto; color: var(--lol-grey1); letter-spacing: .25em; font-size: 10px; }
.olui-client-dm .olui-chat__list {
  padding: 10px 12px 7px; gap: 3px;
  background: linear-gradient(180deg, rgba(1,10,19,.55), rgba(22,29,34,.35));
}
.olui-client-dm .olui-msg {
  align-self: stretch; max-width: 100%; gap: 6px; padding: 2px 0;
}
.olui-client-dm .olui-msg.is-mine { align-self: stretch; }
.olui-client-dm .olui-msg .olui-avatar { display: none; }
.olui-client-dm .olui-msg__body { display: block; width: 100%; }
.olui-client-dm .olui-msg__name {
  display: inline; margin-right: 5px; font-size: 11px;
}
.olui-client-dm .olui-bubble {
  display: inline; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #d4d0c6; font-size: 11.5px; line-height: 1.35;
}
.olui-client-dm .olui-msg.is-mine .olui-bubble {
  border: 0; border-radius: 0; background: transparent; color: #8dd9d0;
}
.olui-client-dm .olui-msg.is-mine .olui-bubble::before {
  content: "You: "; color: var(--lol-gold3); font-weight: 700;
}
.olui-client-dm .olui-system {
  align-self: stretch; margin: 4px 0; padding: 4px 7px;
  border: 0; border-left: 2px solid var(--lol-gold5); border-radius: 0;
  color: var(--lol-grey1); background: rgba(120,90,40,.1);
  font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase;
}
.olui-client-dm .olui-time { color: var(--lol-grey2); }
.olui-client-dm .olui-composer {
  flex: none; margin: 0; padding: 8px 10px; border-radius: 0;
  background: #080e12; border: 0; border-top: 1px solid #3b3a34;
}
.olui-client-dm .olui-composer__send { color: var(--lol-gold3); }
.olui-client-dm .olui-composer__hint { color: #706e67; font-size: 10.5px; }

/* telefone: bolhas maiores, sem avatar */
.olui-app.is-phone .olui-msg .olui-avatar { display: none; }
.olui-app.is-phone .olui-msg__name { display: none; }
.olui-app.is-phone .olui-bubble { border-radius: 16px 16px 16px 5px; }
.olui-app.is-phone .olui-msg.is-mine .olui-bubble { border-radius: 16px 16px 5px 16px; }
.olui-app.is-phone .olui-chat__head { padding: 8px 14px; }

/* ==========================================================================
   LEAGUE OF LEGENDS — o cliente. Preto hextech, painéis #1E2328, fio dourado
   em tudo, títulos em caixa alta condensada (Barlow no lugar do Beaufort) e
   corpo de texto claro. Sem cantos redondos: a linguagem Hextech é quadrada.
   ========================================================================== */
.olui-app--match {
  background: var(--lol-black);
  background-image:
    radial-gradient(110% 90% at 50% 0%, rgba(0,90,130,.2), transparent 62%),
    linear-gradient(180deg, #071522 0%, var(--lol-black) 74%);
  color: var(--lol-gold2);
}
.olui-app--match .olui-titlebar {
  height: 24px; background: #050a0e; color: #77766f;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid #20262a;
}
.olui-app--match .olui-titlebar__mark { color: var(--lol-gold4); }
.olui-app--match .olui-titlebar__ctl i { width: 34px; }
.olui-match__top {
  flex: none; display: flex; align-items: center; gap: 0;
  height: 50px; padding: 0 11px 0 0; background: rgba(5,14,20,.98);
  border-bottom: 1px solid #62502f;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}
.olui-match__sigil {
  width: 50px; align-self: stretch;
  display: grid; place-items: center;
  font-family: Georgia, serif; font-size: 24px; font-weight: 700;
  color: var(--lol-gold4); border-right: 1px solid #2e3335;
  text-shadow: 0 0 15px rgba(200,155,60,.25);
}
.olui-match__play {
  position: relative; align-self: stretch;
  display: flex; align-items: center; padding: 0 26px 0 22px;
  color: var(--lol-gold1); font-size: 14px; letter-spacing: .16em;
  background: linear-gradient(180deg, rgba(11,76,103,.7), rgba(5,44,65,.62));
  border-right: 1px solid #2a7389;
}
.olui-match__play::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px;
  background: var(--lol-blue3); box-shadow: 0 0 8px rgba(10,200,185,.6);
}
/* Abas do cliente: caixa alta, espaçadas, com o filete dourado na ativa. */
.olui-match__tabs { display: flex; align-items: center; gap: 23px; margin-left: 24px; }
.olui-match__tab {
  position: relative; padding: 4px 0;
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lol-grey1);
}
.olui-match__tab.is-active { color: var(--lol-gold1); }
.olui-match__tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--lol-gold4);
}
.olui-match__wallet {
  margin-left: auto; display: flex; align-items: center; gap: 11px;
  padding-right: 12px; font-size: 10px; letter-spacing: .04em;
}
.olui-match__wallet i { font-style: normal; }
.olui-match__wallet .is-blue { color: #56b8d4; }
.olui-match__wallet .is-gold { color: var(--lol-gold3); }
.olui-match__profile {
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  height: 34px; border-left: 1px solid #2e3335;
}
.olui-match__level {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--lol-gold4);
  background: #102431; color: var(--lol-gold1); font-style: normal; font-size: 10px;
}
.olui-match__profile-id { display: flex; flex-direction: column; min-width: 70px; }
.olui-match__profile-id b {
  max-width: 100px; color: var(--lol-gold1); font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.olui-match__profile-id small { color: #4ca864; font-size: 8px; letter-spacing: .12em; }
.olui-match__gear { width: 16px; height: 16px; color: var(--lol-grey1); }

.olui-client-shell {
  flex: 1; min-height: 0; display: flex; position: relative;
}
.olui-client-main {
  flex: 1; min-width: 0; min-height: 0; position: relative;
  display: flex; flex-direction: column;
}
.olui-social {
  flex: none; width: 202px; min-height: 0;
  display: flex; flex-direction: column;
  background: rgba(6,14,19,.98); border-left: 1px solid #313436;
  color: var(--lol-grey1);
}
.olui-social__head {
  flex: none; height: 38px; display: flex; align-items: center;
  padding: 0 12px; border-bottom: 1px solid #2e3335;
  font: 11px/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: .13em; color: var(--lol-gold1);
}
.olui-social__tools { margin-left: auto; color: var(--lol-grey1); letter-spacing: .16em; }
.olui-social__cat {
  flex: none; padding: 12px 11px 7px; color: #8b897f;
  font: 9.5px/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: .12em;
}
.olui-social__friend {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px;
  border-left: 2px solid transparent;
}
.olui-social__friend.is-active { background: #172127; border-left-color: var(--lol-blue3); }
.olui-social__friend .olui-avatar { width: 32px; height: 32px; }
.olui-social__friend .olui-ava__dot { border-color: #172127; }
.olui-social__id { display: flex; flex-direction: column; min-width: 0; }
.olui-social__id b {
  color: var(--lol-gold1); font-size: 11.5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.olui-social__id small { color: #58a96a; font-size: 9.5px; }
.olui-social__empty { padding: 12px; color: #5d5e5b; font-size: 10.5px; font-style: italic; }
.olui-social__foot {
  margin-top: auto; flex: none; height: 32px;
  display: flex; align-items: center; justify-content: flex-end; gap: 15px;
  padding: 0 12px; border-top: 1px solid #2e3335; color: #74746e; font-size: 11px;
}
.olui-match__stage {
  flex: 1; min-height: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 13px 18px;
  background:
    radial-gradient(70% 90% at 50% 8%, rgba(10,200,185,.07), transparent 62%),
    repeating-linear-gradient(45deg, rgba(200,170,110,.02) 0 2px, transparent 2px 26px);
}
/* cantoneiras douradas: o enquadramento "mágico" do cliente */
.olui-match__stage::before, .olui-match__stage::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none;
  border: 1px solid var(--lol-gold5);
}
.olui-match__stage::before { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.olui-match__stage::after  { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }

/* Seleção, carregamento e partida são telas imersivas: o menu do client e a
   lista social ficam de fora, como no LoL. */
.olui-app--match.is-immersive .olui-titlebar {
  background: #02070b; border-bottom-color: #2b312f;
}
.olui-app--match.is-view-champ .olui-match__stage,
.olui-app--match.is-view-loading .olui-match__stage {
  position: absolute; inset: 0; display: block; padding: 0;
}
.olui-app--match.is-view-champ .olui-match__stage::before,
.olui-app--match.is-view-champ .olui-match__stage::after,
.olui-app--match.is-view-loading .olui-match__stage::before,
.olui-app--match.is-view-loading .olui-match__stage::after {
  display: none;
}

/* ------- Champion Select ------------------------------------------------- */
.olui-champ {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: 54px minmax(0, 1fr);
  background:
    radial-gradient(60% 100% at 50% 42%, rgba(14,105,125,.16), transparent 70%),
    linear-gradient(180deg, #06121a, #02090e);
}
.olui-champ__head {
  display: grid; grid-template-columns: 190px minmax(0, 1fr) 190px;
  align-items: center; gap: 14px; padding: 5px 12px;
  border-bottom: 1px solid #4e4229;
  background: rgba(1,8,12,.78);
}
.olui-champ__title {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  align-items: center; justify-items: center; column-gap: 12px;
  color: var(--lol-gold1);
  font: 600 18px/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: .18em; text-transform: uppercase;
}
.olui-champ__title > span { justify-self: end; }
.olui-champ__title b {
  grid-row: 1 / 3; grid-column: 2; color: var(--lol-blue3);
  font-size: 27px; line-height: 1;
}
.olui-champ__title small {
  justify-self: end; color: var(--lol-grey1);
  font-size: 7.5px; font-weight: 400; letter-spacing: .14em;
}
.olui-champ__bans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.olui-champ__ban {
  aspect-ratio: 1; display: grid; place-items: center;
  background: #081118; border: 1px solid #303b3f; color: #41494b;
}
.olui-champ__ban i { font-style: normal; font-size: 12px; }
.olui-champ__bans.is-enemy { direction: rtl; }
.olui-champ__body {
  min-height: 0; display: grid;
  grid-template-columns: 190px minmax(300px, 1fr) 190px;
  gap: 10px; padding: 8px 10px 10px;
}
.olui-champ__team {
  min-height: 0; display: flex; flex-direction: column; gap: 4px;
}
.olui-champ__team.is-enemy { padding-bottom: 124px; }
.olui-champ__player {
  flex: 1; min-height: 0;
  display: flex; align-items: center; gap: 9px; padding: 4px 7px;
  background: linear-gradient(90deg, rgba(24,37,43,.94), rgba(8,17,23,.9));
  border-left: 2px solid var(--lol-gold5);
  box-shadow: inset 0 0 0 1px rgba(120,90,40,.42);
}
.olui-champ__team.is-enemy .olui-champ__player {
  flex-direction: row-reverse; text-align: right;
  background: linear-gradient(270deg, rgba(37,29,32,.94), rgba(13,13,18,.9));
  border-left: 0; border-right: 2px solid #69404a;
  box-shadow: inset 0 0 0 1px rgba(113,58,69,.42);
}
.olui-champ__portrait {
  flex: none; height: 100%; max-height: 42px; aspect-ratio: 1;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #183648, #071019);
  border: 1px solid var(--lol-gold4); color: var(--lol-gold3);
}
.olui-champ__player.is-hidden .olui-champ__portrait {
  background: #090d11; border-color: #49363d; color: #5d474e;
}
.olui-champ__portrait i {
  font: 600 14px/1 "Barlow Condensed", "Arial Narrow", sans-serif; font-style: normal;
}
.olui-champ__player-id {
  min-width: 0; display: flex; flex-direction: column; line-height: 1.15;
}
.olui-champ__team.is-enemy .olui-champ__player-id { align-items: flex-end; }
.olui-champ__player-id small {
  color: var(--lol-grey2); font-size: 8px; letter-spacing: .15em;
}
.olui-champ__player-id b {
  color: var(--lol-gold1); font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.olui-champ__player-id em {
  color: var(--lol-grey1); font-size: 7.5px; font-style: normal; text-transform: uppercase;
}
.olui-champ__player.is-you { border-left-color: var(--lol-blue3); }
.olui-champ__player.is-you .olui-champ__portrait { border-color: var(--lol-blue3); color: #b8fffa; }
.olui-champ__pool {
  min-width: 0; min-height: 0;
  display: grid; grid-template-rows: 28px minmax(0, 1fr) 29px;
  padding: 0 7px; border-left: 1px solid #29373b; border-right: 1px solid #29373b;
}
.olui-champ__tools {
  display: flex; align-items: center; justify-content: space-between;
  color: #6e7471; font-size: 9px; letter-spacing: .12em;
}
.olui-champ__search {
  width: 35%; padding: 3px 7px; border: 1px solid #313b3d;
  color: #747873; letter-spacing: .04em;
}
.olui-champ__grid {
  min-height: 0; overflow: hidden;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 4px;
}
.olui-champ__card {
  min-width: 0; min-height: 0; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  background:
    radial-gradient(circle at 50% 35%, hsl(var(--champ-hue) 45% 48% / .9), transparent 42%),
    linear-gradient(150deg, hsl(var(--champ-hue) 40% 24%), #071019 72%);
  border: 1px solid #30464d;
}
.olui-champ__card > i {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(240,230,210,.72);
  font: 600 clamp(12px, 1.4vw, 19px)/1 Georgia, serif; font-style: normal;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.olui-champ__card small {
  position: relative; z-index: 1; width: 100%; padding: 2px 2px;
  background: rgba(1,8,12,.8); color: #c7c1b3;
  font-size: 7px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.olui-champ__card.is-hovered {
  border-color: var(--lol-gold3);
  box-shadow: inset 0 0 0 1px var(--lol-gold3), 0 0 12px rgba(200,155,60,.32);
}
.olui-champ__loadout {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--lol-grey1); font-size: 8px; letter-spacing: .09em;
}
.olui-client-main.is-champ .olui-match__chat {
  position: absolute; right: 10px; bottom: 10px; z-index: 5;
  width: 190px; height: 114px; max-height: none;
  margin: 0; padding: 7px 8px;
  background: rgba(1,9,14,.97); border-color: #503e20;
  font-size: 10.5px; line-height: 1.35;
}

/* ------- Loading screen -------------------------------------------------- */
.olui-loading {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: 22px minmax(0, 1fr) 18px minmax(0, 1fr) 4px;
  justify-items: center; gap: 5px; padding: 8px 8%;
  background:
    radial-gradient(circle at 50% 50%, rgba(33,77,87,.26), transparent 44%),
    linear-gradient(120deg, #06151a, #071018 48%, #151014);
}
.olui-loading__title {
  color: var(--lol-gold2);
  font: 600 12px/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: .32em;
}
.olui-loading__team {
  width: min(100%, 760px); min-height: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px;
}
.olui-load-card {
  min-width: 0; min-height: 0;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid #655333;
  background: rgba(1,8,12,.86);
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.olui-load-card.is-enemy { border-color: #663d48; }
.olui-load-card__art {
  min-height: 0; position: relative; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 35%, hsl(var(--champ-hue) 48% 50% / .85), transparent 38%),
    linear-gradient(150deg, hsl(var(--champ-hue) 44% 26%), #071019 72%);
}
.olui-load-card__art::after {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid rgba(200,170,110,.3); pointer-events: none;
}
.olui-load-card__art i {
  color: rgba(240,230,210,.8);
  font: 600 clamp(18px, 3vw, 38px)/1 Georgia, serif; font-style: normal;
  text-shadow: 0 4px 16px rgba(0,0,0,.9);
}
.olui-load-card__id {
  display: flex; align-items: center; justify-content: space-between; gap: 5px;
  padding: 3px 6px; background: rgba(1,8,12,.94);
}
.olui-load-card__id b {
  min-width: 0; color: var(--lol-gold1); font-size: 8.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.olui-load-card__id small { color: var(--lol-grey1); font-size: 7px; letter-spacing: .1em; }
.olui-load-card.is-you { border-color: var(--lol-blue3); }
.olui-load-card.is-her { box-shadow: 0 0 16px rgba(10,200,185,.24); }
.olui-loading__versus {
  color: var(--lol-gold3);
  font: 600 12px/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: .2em;
}
.olui-loading > .olui-loadbar { width: min(100%, 760px); align-self: end; }

.olui-queue {
  width: min(92%, 610px); display: flex; flex-direction: column; align-items: center;
  color: var(--lol-gold1); text-align: center;
}
.olui-queue__eyebrow {
  color: var(--lol-grey1); font: 10px/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: .28em; text-transform: uppercase;
}
.olui-queue__title {
  margin-top: 5px; color: var(--lol-gold1);
  font: 600 clamp(18px, 2.4vw, 28px)/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: .16em; text-transform: uppercase;
}
.olui-queue__rule {
  width: 68%; height: 1px; margin: 10px 0 12px;
  background: linear-gradient(90deg, transparent, var(--lol-gold5), transparent);
}
.olui-queue__party { display: flex; justify-content: center; gap: 13px; }
.olui-queue__member {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--lol-grey1); font-size: 8px; letter-spacing: .08em;
}
.olui-queue__member i {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; font-style: normal; font-size: 16px;
  background: #102431; border: 1px solid #6d582e; color: var(--lol-gold3);
  box-shadow: 0 0 0 3px #071019, 0 0 0 4px #2b312f;
}
.olui-queue__member.is-me i { border-color: var(--lol-blue3); color: #b8fffa; }
.olui-queue__member.is-empty i { background: #0a1116; color: #555b5c; border-color: #343a3b; }
.olui-queue__prefs { display: flex; gap: 8px; margin-top: 13px; }
.olui-queue__pref {
  min-width: 132px; display: flex; align-items: center; gap: 9px;
  padding: 7px 11px; text-align: left;
  background: rgba(16,30,38,.86); border: 1px solid #5b4c2e;
}
.olui-queue__pref > i {
  width: 25px; height: 25px; display: grid; place-items: center;
  border-radius: 50%; font-style: normal; color: var(--lol-gold3);
  border: 1px solid var(--lol-gold5);
}
.olui-queue__pref > span { display: flex; flex-direction: column; }
.olui-queue__pref small { color: var(--lol-grey1); font-size: 8px; letter-spacing: .12em; }
.olui-queue__pref b { color: var(--lol-gold1); font-size: 12px; letter-spacing: .12em; }
.olui-queue__button, .olui-client-home__button {
  margin-top: 12px; padding: 8px 28px;
  color: #cdfafa; background: linear-gradient(180deg, #0b6c80, #06465e);
  border: 1px solid #20b6bd; box-shadow: inset 0 0 0 1px #042e3b, 0 0 16px rgba(10,200,185,.18);
  font: 11px/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: .18em; text-transform: uppercase;
}
.olui-champ__heading, .olui-end__heading {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font: 600 21px/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: .18em; color: var(--lol-gold1); text-transform: uppercase;
}
.olui-champ__heading small, .olui-end__heading small {
  color: var(--lol-grey1); font-size: 8.5px; font-weight: 400; letter-spacing: .16em;
}
.olui-client-main--home {
  background:
    radial-gradient(80% 100% at 48% 30%, rgba(14,92,116,.25), transparent 62%),
    linear-gradient(150deg, #0b2635 0%, #09141d 55%, #03090d 100%);
  overflow: hidden;
}
.olui-client-home {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 8% 38% 8% 9%;
  background:
    linear-gradient(90deg, rgba(3,12,18,.95), rgba(3,12,18,.36) 54%, rgba(3,12,18,.78)),
    radial-gradient(circle at 65% 42%, rgba(200,155,60,.14), transparent 25%);
}
.olui-client-home::after {
  content: "VI"; position: absolute; right: 18%; top: 15%;
  font: 700 clamp(70px, 10vw, 120px)/1 Georgia, serif;
  color: rgba(200,155,60,.09); letter-spacing: -.12em;
  transform: skewX(-7deg);
}
.olui-client-home__kicker {
  color: var(--lol-gold3); font: 10px/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: .3em;
}
.olui-client-home__title {
  margin-top: 6px; color: var(--lol-gold1);
  font: 600 clamp(23px, 4vw, 42px)/.98 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: .08em;
}
.olui-client-home__copy { margin-top: 8px; color: var(--lol-grey1); font-size: 11px; }
.olui-client-home__button { margin-top: 16px; z-index: 1; }
.olui-match__banner {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(34px, 5.4vw, 58px); font-weight: 600; letter-spacing: .3em;
  padding-left: .3em; color: var(--lol-gold1);
  text-shadow: 0 0 34px rgba(200,155,60,.6);
  animation: olui-banner .8s ease both;
}
@keyframes olui-banner { from { opacity: 0; transform: scale(1.25); filter: blur(6px); } to { opacity: 1; } }
.olui-match__queue {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 13px; letter-spacing: .3em; color: var(--lol-grey1);
  animation: olui-caret 1.6s step-end infinite;
}

/* Grade de jogadores: coluna no champ select, linha na tela de carregamento. */
.olui-roster { display: flex; flex-direction: column; gap: 14px; width: min(94%, 700px); }
.olui-roster.is-column { width: min(70%, 420px); align-self: flex-start; }
/* O número de colunas vem do tamanho do elenco (online-ui.js). */
.olui-roster__grid { display: grid; gap: 8px; }
.olui-roster.is-column .olui-roster__grid { gap: 4px; }
.olui-slot {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 4px 11px;
  background: linear-gradient(180deg, rgba(30,40,45,.9), rgba(1,10,19,.9));
  box-shadow: inset 0 0 0 1px var(--lol-gold6);
  transition: box-shadow .3s ease, background .3s ease;
}
.olui-roster.is-column .olui-slot {
  flex-direction: row; align-items: center; gap: 12px;
  padding: 7px 12px 7px 7px;
}
/* Moldura do retrato do campeão. */
.olui-slot__portrait {
  flex: none; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #10293b, #071019);
  box-shadow: inset 0 0 0 2px var(--lol-gold5);
  color: var(--lol-gold3); font-weight: 700; font-size: 18px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}
.olui-slot__portrait i { font-style: normal; opacity: .75; }
.olui-roster.is-column .olui-slot__portrait { width: 38px; height: 38px; font-size: 15px; }
.olui-slot__id { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.olui-roster.is-column .olui-slot__id { align-items: flex-start; }
.olui-slot__role {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--lol-grey2);
}
.olui-slot__name {
  font-size: 12.5px; font-weight: 700; color: var(--lol-gold1); text-align: center; line-height: 1.25;
  word-break: break-word;
}
.olui-roster.is-column .olui-slot__name { text-align: left; }
.olui-slot__note {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 10.5px; color: var(--lol-grey2); letter-spacing: .12em; text-transform: uppercase;
}
.olui-slot.is-you {
  background: linear-gradient(180deg, rgba(120,90,40,.28), rgba(1,10,19,.92));
  box-shadow: inset 0 0 0 1px var(--lol-gold3);
}
.olui-slot.is-you .olui-slot__name { color: var(--lol-gold1); }
.olui-slot.is-you .olui-slot__portrait { box-shadow: inset 0 0 0 2px var(--lol-gold3); }
.olui-slot.is-her {
  background: linear-gradient(180deg, rgba(10,200,185,.16), rgba(1,10,19,.92));
  box-shadow: inset 0 0 0 1px var(--lol-blue3);
}
.olui-slot.is-her .olui-slot__name { color: #cdfafa; }
.olui-slot.is-her .olui-slot__portrait { box-shadow: inset 0 0 0 2px var(--lol-blue3); color: var(--lol-blue3); }
.olui-loadbar {
  height: 4px; overflow: hidden;
  background: rgba(1,10,19,.9); box-shadow: inset 0 0 0 1px var(--lol-gold6);
}
.olui-loadbar__fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--lol-gold5), var(--lol-gold4));
  box-shadow: 0 0 12px rgba(200,155,60,.7);
  animation: olui-loadbar-in 1.2s ease both;
}
@keyframes olui-loadbar-in { from { transform: scaleX(.2); transform-origin: left; } }

/* Pedido de amizade na tela de fim de jogo: um clique, nenhuma palavra. */
.olui-request {
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(30,40,45,.96), rgba(1,10,19,.96));
  box-shadow: 0 14px 36px rgba(0,0,0,.6), inset 0 0 0 1px var(--lol-gold5);
  animation: olui-request-in .5s ease both;
}
@keyframes olui-request-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.olui-request__tag {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--lol-gold3);
}
.olui-request__who { display: flex; align-items: center; gap: 10px; }
.olui-request__id { display: flex; flex-direction: column; }
.olui-request__name { font-size: 15px; font-weight: 700; color: var(--lol-gold1); }
.olui-request__sub { font-size: 11.5px; color: var(--lol-grey1); }
.olui-request__btn {
  align-self: stretch; text-align: center;
  padding: 7px 22px; font-size: 12px; font-weight: 600;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(180deg, #1e282d, #010a13);
  box-shadow: inset 0 0 0 1px var(--lol-gold3);
  color: var(--lol-gold1);
}
/* O chat da partida: caixa translúcida encostada no canto, texto corrido. */
.olui-match__chat {
  flex: none; max-height: 46%; overflow-y: auto;
  margin: 0 14px 12px; padding: 9px 12px;
  background: rgba(1,10,19,.78);
  border: 1px solid var(--lol-gold6);
  font-family: "Segoe UI", system-ui, sans-serif; font-size: 12.5px; line-height: 1.55;
  scrollbar-width: thin; scrollbar-color: var(--lol-gold6) transparent;
}
.olui-mline { white-space: pre-wrap; word-break: break-word; }
.olui-mline--sys {
  color: var(--lol-gold3); text-align: left; letter-spacing: .04em; font-size: 11.5px;
  font-style: italic;
}
.olui-mline__chan { color: var(--lol-grey1); }
.olui-mline.is-all .olui-mline__chan { color: #e0664a; }
.olui-mline__name { font-weight: 700; }
.olui-mline__text { color: #e6e2d8; }
.olui-match__chat .olui-time { display: block; text-align: center; }
.olui-match__chat .olui-msg { display: block; }

/* ------- app: WEB (navegador com slot de vídeo) --------------------------- */
.olui-app--web { background: #17181c; }
.olui-web__chrome {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 7px 12px; background: #202228;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.olui-web__nav { font-size: 12px; color: #6a6f7c; letter-spacing: .18em; }
.olui-web__url {
  flex: 1; min-width: 0; padding: 4px 12px; border-radius: 20px;
  background: #14161a; color: #8a8f98; font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.olui-web__stage {
  flex: 1; min-height: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.olui-web__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Foto no lugar do vídeo (o perfil dela, cap. 6): mesma moldura, mesmo encaixe. */
.olui-web__media {
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%;
}
.olui-web__image { display: block; width: 100%; height: 100%; object-fit: contain; }
.olui-face-blur {
  position: absolute; z-index: 2;
  overflow: hidden; border-radius: 42%;
  -webkit-backdrop-filter: blur(var(--olui-blur, 16px));
  backdrop-filter: blur(var(--olui-blur, 16px));
  background:
    repeating-linear-gradient(90deg, rgba(27,25,32,.32) 0 7px, rgba(68,61,77,.4) 7px 14px),
    repeating-linear-gradient(0deg, rgba(20,18,24,.22) 0 7px, rgba(82,72,88,.28) 7px 14px);
}
.olui-face-blur__source {
  display: none; position: absolute; max-width: none; max-height: none;
  object-fit: fill; filter: blur(var(--olui-blur, 16px)); transform: scale(1.04);
  transform-origin: center;
}
@supports ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .olui-face-blur { background: rgba(28,24,31,.08); }
}
/* O placeholder ocupa o mesmo quadro do vídeo: quando o arquivo chegar, ele
   some e nada mais muda de tamanho. */
.olui-web__slot {
  position: absolute; inset: 8%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed rgba(255,255,255,.22); border-radius: 12px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 12px, transparent 12px 24px);
  text-align: center; padding: 12px;
}
.olui-web__slotmark {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: #d7dae2; font-size: 20px; padding-left: 4px;
}
.olui-web__slottext {
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: #a8adb8;
}
.olui-web__slotpath {
  font-family: Consolas, "Cascadia Mono", monospace; font-size: 10.5px;
  color: #6a6f7c; word-break: break-all; max-width: 90%;
}

/* ------- app: CALL (canal de voz do Discord) -------------------------------
   A cena é a lista de quem está no canal. O anel verde é quem está falando; o
   nome apagado com ⃠ é quem está mudo. O número ao lado do canal encolhe ao
   longo da rota e ninguém o comenta — não dê destaque nenhum a ele. */
.olui-app--call { background: var(--dc-chat); display: flex; flex-direction: column; }
.olui-call__head {
  flex: none; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.12); z-index: 1;
}
.olui-call__mark { font-size: 15px; opacity: .7; }
.olui-call__chan { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--dc-head); }
.olui-call__count {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 15px; letter-spacing: .12em; color: var(--dc-mute);
}
.olui-call__stage {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; padding: 16px 18px;
  background: radial-gradient(70% 90% at 50% 30%, rgba(88,101,242,.07), transparent 70%), var(--dc-rail);
  /* Rede de segurança: uma call cheia (sete pessoas) numa janela baixa rolaria
     para fora do aparelho e sumiria com quem importa. Aqui ela rola dentro do
     próprio painel em vez de ser cortada. */
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--dc-panel) transparent;
}
/* Chamada com câmera: o quadro grande mostra o que a câmera DELA mostra. */
.olui-call__cam {
  position: relative; width: min(100%, 520px); aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.07);
}
.olui-call__cam img { width: 100%; height: 100%; object-fit: cover; display: block; }
.olui-call__camname {
  position: absolute; left: 10px; bottom: 8px; padding: 2px 8px; border-radius: 5px;
  background: rgba(0,0,0,.62); color: #eceef2; font-size: 12px;
}
.olui-call__grid { display: grid; gap: 12px; width: 100%; max-width: 620px; }
.olui-vtile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; border-radius: 8px; background: var(--dc-panel);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.olui-vtile__face {
  width: 64px; height: 64px; box-sizing: border-box;
  display: grid; place-items: center; line-height: 0;
  border: 2px solid transparent; border-radius: 50%; padding: 2px;
}
.olui-vtile.is-speaking .olui-vtile__face { border-color: var(--dc-online, #23a55a); }
.olui-vtile .olui-avatar { width: 56px; height: 56px; }
.olui-vtile__foot { display: flex; align-items: center; gap: 5px; max-width: 100%; }
.olui-vtile__name {
  font-size: 12.5px; color: var(--dc-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.olui-vtile.is-muted .olui-vtile__name { color: var(--dc-faint); }
.olui-vtile__mic { font-style: normal; font-size: 12px; color: #d4494f; }
.olui-call__chat { flex: none; max-height: 34%; background: var(--dc-chat); }
.olui-call__bar {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 14px;
  height: 46px; background: var(--dc-panel); color: var(--dc-mute);
}
.olui-call__bar .olui-svg { width: 18px; height: 18px; }
.olui-call__leave {
  padding: 4px 12px; border-radius: 5px; background: #d4494f; color: #fff;
  font-size: 11.5px; letter-spacing: .04em;
}

/* ------- app: DESKTOP ------------------------------------------------------ */
.olui-app--desktop { background: #23262e center/cover no-repeat; position: relative; }
.olui-desktop__icons {
  position: absolute; left: 18px; top: 16px;
  display: flex; flex-direction: column; gap: 16px;
}
.olui-icon { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 76px; text-align: center; }
.olui-icon__glyph {
  width: 44px; height: 44px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  background: rgba(10,12,18,.55); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 3px 8px rgba(0,0,0,.45);
}
.olui-icon__label { font-size: 10.5px; line-height: 1.25; color: #eceef2; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
/* Barra de tarefas do Windows 11: ícones no centro, relógio à direita. */
.olui-taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 14px; background: rgba(24,26,32,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 11px; color: #c8ccd4;
}
.olui-taskbar__pinned { display: flex; align-items: center; gap: 8px; }
.olui-taskbar__start { font-size: 17px; color: #7cb0e8; }
.olui-taskbar__app {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; background: rgba(255,255,255,.08);
}
.olui-taskbar__clock { position: absolute; right: 14px; letter-spacing: .04em; }

/* ------- notificação (toast dentro do aparelho) --------------------------- */
.olui-notif {
  position: absolute; right: 12px; top: 12px; max-width: 74%;
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 13px; border-radius: 10px;
  background: #23262e; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  font-size: 12px; color: #d7dae2;
  opacity: 0; transform: translateY(-8px); transition: opacity .35s ease, transform .35s ease;
}
.olui-notif.on { opacity: 1; transform: none; }
.olui-notif__app { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #8a8f98; }
.olui-notif__text b { color: #eceef2; }

/* ------- chegada das mensagens (anima só o rabo novo) --------------------- */
.olui-anim { opacity: 0; transform: translateY(8px); }
.olui-anim.olui-anim-in { opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease; }

/* ------- a caixa de diálogo em modo online -------------------------------- */
/* Narração: fica mais estreita e discreta, como uma legenda sob o aparelho. */
.hh-stage.is-online .hh-dialog { --hh-dialog-bg: rgba(12, 10, 8, .88); }
/* Escolhas que o jogador DIGITA no aparelho viram "respostas": ganham o ícone
   de enviar. Quem decide é o motor (isTypedReply): numa chamada de voz, num
   navegador ou numa ação dentro do chat a seta não entra, porque nada foi
   enviado. */
.hh-choice--online .hh-choice__text::before {
  content: "↩  "; color: var(--olui-accent, #7c6cff); opacity: .7;
}

/* ------- telas pequenas ---------------------------------------------------- */
@media (max-width: 700px) {
  /* Fallback para o bug de composição de backdrop-filter no Chromium/Android:
     desfoca um recorte da própria mídia, sem alterar o arquivo original. */
  .olui-face-blur {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(28,24,31,.12);
  }
  .olui-face-blur__source { display: block; }
  /* HUD + controles ocupam os primeiros ~146 px no retrato. A tela virtual
     começa abaixo deles para que nenhum título ou mensagem fique encoberto. */
  .olui-device--pc {
    width: min(96%, calc(44dvh * 16 / 9));
    height: auto;
    top: calc(max(10px, env(safe-area-inset-top)) + 144px);
  }
  .olui-device--phone {
    width: min(88vw, calc(44dvh * 9 / 16), 340px);
    height: auto;
    top: calc(max(10px, env(safe-area-inset-top)) + 144px);
  }
  .olui-device.olui-device--screen {
    width: min(96%, calc(44dvh * var(--olui-screen-ratio)));
    height: auto;
    top: calc(max(10px, env(safe-area-inset-top)) + 144px);
  }
  .olui-device.olui-device--screen.olui-device--phone {
    top: calc(max(10px, env(safe-area-inset-top)) + 144px);
  }
  .olui-chat__note { display: none; }
  .olui-app { font-size: 13px; }
  /* Não cabem três colunas num celular: o Discord fica só com a conversa,
     como no aplicativo de telefone dele mesmo. */
  .olui-dc__rail, .olui-dc__side, .olui-dc__members { display: none; }
  .olui-dc__gutter { width: 52px; }
  /* Numa call, quatro colunas de retrato viram ilegíveis: o CSS força duas e
     o JS não precisa saber de tela pequena. Os retratos também deitam — com
     seis pessoas, três fileiras de card em pé não cabem no aparelho, e quem
     sobraria de fora seriam justamente as duas últimas: ela e você. */
  .olui-call__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
  .olui-call__stage { padding: 10px 12px; gap: 8px; }
  .olui-vtile { flex-direction: row; justify-content: flex-start; gap: 8px; padding: 6px 8px; }
  .olui-vtile .olui-avatar { width: 28px; height: 28px; }
  .olui-vtile__name { font-size: 11.5px; }
  .olui-app--dc .olui-system { margin-left: 52px; }
  .olui-match__tabs { display: none; }
  .olui-match__wallet, .olui-match__profile-id { display: none; }
  .olui-match__top { height: 42px; }
  .olui-match__sigil { width: 40px; font-size: 20px; }
  .olui-match__play { padding: 0 17px; font-size: 12px; }
  .olui-match__profile { margin-left: auto; padding: 0 8px; border-left: 0; }
  .olui-match__gear { margin-right: 4px; }
  .olui-social { display: none; }
  .olui-client-dm {
    right: 5px; bottom: 5px; width: calc(100% - 10px); height: calc(100% - 10px);
  }
  .olui-client-home { display: none; }
  .olui-queue__party { gap: 8px; }
  .olui-queue__member i { width: 34px; height: 34px; }
  .olui-queue__member small { font-size: 7px; }
  .olui-queue__prefs { width: 100%; }
  .olui-queue__pref { flex: 1; min-width: 0; padding: 6px 8px; }
  .olui-queue__button { margin-top: 9px; padding: 7px 22px; }
  .olui-roster.is-column { width: 100%; }
  .olui-champ { grid-template-rows: 42px minmax(0, 1fr); }
  .olui-champ__head {
    grid-template-columns: 76px minmax(0, 1fr) 76px;
    gap: 5px; padding: 4px 5px;
  }
  .olui-champ__bans { gap: 2px; }
  .olui-champ__ban i { font-size: 7px; }
  .olui-champ__title { column-gap: 5px; font-size: 10px; letter-spacing: .08em; }
  .olui-champ__title b { font-size: 18px; }
  .olui-champ__title small { font-size: 5.5px; letter-spacing: .06em; }
  .olui-champ__body {
    grid-template-columns: 78px minmax(0, 1fr) 78px;
    gap: 4px; padding: 4px;
  }
  .olui-champ__team { gap: 2px; }
  .olui-champ__team.is-enemy { padding-bottom: 78px; }
  .olui-champ__player { gap: 3px; padding: 2px 3px; }
  .olui-champ__portrait { max-height: 27px; }
  .olui-champ__portrait i { font-size: 9px; }
  .olui-champ__player-id small { font-size: 5.5px; letter-spacing: .05em; }
  .olui-champ__player-id b { font-size: 7px; }
  .olui-champ__player-id em { display: none; }
  .olui-champ__pool { grid-template-rows: 20px minmax(0, 1fr); padding: 0 3px; }
  .olui-champ__tools { font-size: 5.5px; }
  .olui-champ__search { width: 42%; padding: 2px 3px; }
  .olui-champ__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 2px;
  }
  .olui-champ__card:nth-child(n+16) { display: none; }
  .olui-champ__card small { font-size: 5px; padding: 1px; }
  .olui-champ__loadout { display: none; }
  .olui-client-main.is-champ .olui-match__chat {
    right: 4px; bottom: 4px; width: 78px; height: 72px;
    padding: 4px; font-size: 6px; line-height: 1.25;
  }
  .olui-loading {
    grid-template-rows: 15px minmax(0, 1fr) 10px minmax(0, 1fr) 3px;
    gap: 3px; padding: 5px 4%;
  }
  .olui-loading__title { font-size: 8px; letter-spacing: .2em; }
  .olui-loading__team { gap: 3px; }
  .olui-load-card__art::after { inset: 3px; }
  .olui-load-card__art i { font-size: 14px; }
  .olui-load-card__id { padding: 2px 3px; }
  .olui-load-card__id b { font-size: 5.5px; }
  .olui-load-card__id small { font-size: 4.5px; }
  .olui-loading__versus { font-size: 8px; }
}
/* Janela larga mas baixa: a barra de servidores continua, a lista de DMs sai. */
@media (max-width: 980px) and (min-width: 701px) {
  .olui-dc__side { width: 190px; }
  /* A coluna de membros aperta mas NÃO sai: `ONLINE — N` é um medidor da
     história, e uma janela estreita não é motivo para apagá-lo. */
  .olui-dc__members { width: 152px; }
  .olui-champ__head {
    grid-template-columns: 150px minmax(0, 1fr) 150px;
  }
  .olui-champ__body {
    grid-template-columns: 150px minmax(260px, 1fr) 150px;
  }
  .olui-champ__team.is-enemy { padding-bottom: 110px; }
  .olui-client-main.is-champ .olui-match__chat {
    width: 150px; height: 100px;
  }
}

/* Anexos de mensagem: imagem e vídeo preservam o layout quando a mídia falha. */
.olui-imgmsg,
.olui-videomsg {
  position: relative; display: block; overflow: hidden;
  width: min(360px, 100%); min-height: 92px; margin-top: 6px;
  border-radius: 9px; background: #111318;
}
.olui-imgmsg img,
.olui-videomsg video {
  display: block; width: 100%; max-height: 280px; object-fit: contain; background: #090a0d;
}
.olui-media-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 92px; padding: 12px; color: #aeb3bd; background: #17191f;
  font-size: 12px; text-align: center;
}
.olui-media-fallback[hidden] { display: none; }
.olui-media-fallback__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%;
  font-style: normal; font-weight: 700;
}
