@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('/fontes/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('/fontes/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fontes/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fontes/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Kairo Serif';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url('/fontes/instrument-serif-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Kairo Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fontes/geist-mono.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --fundo: #0a0708;
  --fundo-2: #0f0b0c;
  --sup-1: #141011;
  --sup-2: #1a1415;
  --sup-3: #221a1b;
  --sup-4: #2e2324;
  --linha: rgba(255, 255, 255, 0.07);
  --linha-2: rgba(255, 255, 255, 0.12);
  --texto: #f6f1f0;
  --texto-2: #bcb1af;
  --texto-3: #887d7f;
  --acento: #ff2b3a;
  --acento-forte: #ff6a5e;
  --acento-rgb: 255, 43, 58;
  --gradiente: linear-gradient(135deg, #ff7f6c 0%, #ff2b3a 50%, #c8102a 100%);
  --vivo: #ff2b3a;
  --vivo-rgb: 255, 43, 58;
  --ok: #3ccf82;
  --ok-rgb: 60, 207, 130;
  --aviso: #fbbf24;
  --perigo: #ff4d5a;
  --perigo-rgb: 255, 77, 90;
  --raio: 12px;
  --raio-m: 16px;
  --raio-l: 22px;
  --sombra-2: 0 14px 34px -16px rgba(0, 0, 0, 0.8);
  --sombra-3: 0 28px 80px -24px rgba(0, 0, 0, 0.9);
  --fonte: 'Instrument Sans', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
  --titulo: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --serifa: 'Kairo Serif', Georgia, 'Times New Roman', serif;
  --mono: 'Kairo Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --gradiente-texto: linear-gradient(100deg, #ffb3a6 0%, #ff6a5e 30%, #ff2b3a 65%, #e3132f 100%);
  --topo: 64px;
  --suave: cubic-bezier(0.2, 0.8, 0.2, 1);
  --mola: cubic-bezier(0.16, 1, 0.3, 1);
  --mola-forte: cubic-bezier(0.34, 1.56, 0.64, 1);
  --saida: cubic-bezier(0.4, 0, 1, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 14px/1.5 var(--fonte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 8% -12%, rgba(255, 43, 58, 0.1), transparent 62%),
    radial-gradient(820px 620px at 108% 112%, rgba(200, 16, 42, 0.08), transparent 62%);
  z-index: 0;
}

h1,
h2,
h3,
.sala-nome {
  font-family: var(--titulo);
}

#app {
  position: relative;
  z-index: 1;
  height: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--acento-forte);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(var(--acento-rgb), 0.35);
}

:focus-visible {
  outline: 2px solid rgba(var(--acento-rgb), 0.85);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}

.oculto {
  display: none !important;
}

.i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--raio);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  user-select: none;
  position: relative;
  transition: transform 0.15s var(--suave), background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s, filter 0.2s, opacity 0.2s;
}

.botao:active {
  transform: translateY(1px);
}

.botao .i {
  width: 17px;
  height: 17px;
}

.botao-primario {
  background: var(--gradiente);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -10px rgba(var(--acento-rgb), 0.85);
}

.botao-primario:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 30px -10px rgba(var(--acento-rgb), 1);
}

.botao-fantasma {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--linha-2);
  color: var(--texto);
}

.botao-fantasma:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.18);
}

.botao-perigo {
  background: rgba(var(--perigo-rgb), 0.12);
  border: 1px solid rgba(var(--perigo-rgb), 0.35);
  color: #ff8f86;
}

.botao-perigo:hover {
  background: rgba(var(--perigo-rgb), 0.2);
}

.botao-pequeno {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 10px;
}

.botao-icone-pequeno {
  width: 34px;
  padding: 0;
}

.botao-bloco {
  width: 100%;
  height: 46px;
  font-size: 14.5px;
}

.botao[disabled] {
  opacity: 0.55;
  cursor: default;
  filter: none;
}

.botao.carregando > * {
  visibility: hidden;
}

.botao.carregando::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: girar 0.7s linear infinite;
}

.link-acao {
  color: var(--acento-forte);
  font-weight: 600;
  font-size: 12.5px;
}

.link-acao:hover {
  text-decoration: underline;
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

.carregador {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--acento);
  animation: girar 0.8s linear infinite;
}

.carregador.pequeno {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

/* ---------- campos ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.campo-rotulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--texto-2);
}

.campo-rotulo .dica {
  font-weight: 500;
  color: var(--texto-3);
}

.dica-campo {
  font-size: 12px;
  color: var(--texto-3);
}

.entrada {
  position: relative;
  display: flex;
  align-items: center;
}

.entrada > .i {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--texto-3);
  pointer-events: none;
  z-index: 1;
}

.input,
.entrada input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--linha-2);
  border-radius: var(--raio);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.entrada > .i ~ input {
  padding-left: 42px;
}

.entrada .acao-entrada {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--texto-3);
}

.entrada .acao-entrada:hover {
  color: var(--texto);
  background: rgba(255, 255, 255, 0.06);
}

.entrada .acao-entrada ~ input,
.entrada input.com-acao {
  padding-right: 46px;
}

.input:focus,
.entrada input:focus,
textarea.input:focus,
select.input:focus {
  border-color: rgba(var(--acento-rgb), 0.7);
  box-shadow: 0 0 0 4px rgba(var(--acento-rgb), 0.16);
  background-color: rgba(255, 255, 255, 0.05);
}

.input::placeholder,
.entrada input::placeholder,
textarea::placeholder {
  color: var(--texto-3);
}

textarea.input {
  height: auto;
  padding: 11px 14px;
  resize: none;
  line-height: 1.5;
}

.seletor {
  position: relative;
}

.seletor select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.seletor .i {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-3);
  pointer-events: none;
}

select option {
  background: #1a1415;
  color: var(--texto);
}

.input-codigo {
  text-align: center;
  font: 700 22px/1 var(--mono);
  letter-spacing: 0.3em;
  height: 58px;
  text-transform: uppercase;
}

.erro-form {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(var(--perigo-rgb), 0.1);
  border: 1px solid rgba(var(--perigo-rgb), 0.28);
  color: #ffaaa2;
  font-size: 13px;
}

.erro-form.visivel {
  display: flex;
}

.erro-form .i {
  width: 16px;
  height: 16px;
}

.dica-caixa {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(var(--acento-rgb), 0.08);
  border: 1px solid rgba(var(--acento-rgb), 0.22);
  color: var(--texto-2);
  font-size: 12.8px;
}

.dica-caixa .i {
  color: var(--acento-forte);
  margin-top: 1px;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  margin: 8px 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--acento) var(--p, 50%), rgba(255, 255, 255, 0.14) var(--p, 50%));
  outline: none;
  cursor: pointer;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(var(--acento-rgb), 0.18);
  transition: transform 0.15s;
}

input[type='range']::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

/* ---------- interruptor, segmentado ---------- */

.alternador {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
  flex: none;
  transition: background-color 0.2s;
}

.alternador::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s var(--suave);
}

.alternador.ligado {
  background: var(--acento);
}

.alternador.ligado::after {
  transform: translateX(16px);
}

.linha-opcao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.linha-opcao + .linha-opcao {
  border-top: 1px solid var(--linha);
}

.linha-opcao.compacta {
  padding: 8px 0 2px;
}

.linha-opcao-texto strong {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
}

.linha-opcao-texto span {
  display: block;
  font-size: 12.5px;
  color: var(--texto-3);
}

.segmentado {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--linha);
  border-radius: 12px;
}

.segmentado button {
  height: 32px;
  padding: 0 13px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.8px;
  font-weight: 600;
  color: var(--texto-2);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.segmentado button:hover {
  color: var(--texto);
}

.segmentado button.ativo {
  background: var(--sup-4);
  color: var(--texto);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.segmentado button .i {
  width: 15px;
  height: 15px;
}

.segmentado.largo {
  display: flex;
}

.segmentado.largo button {
  flex: 1;
}

.contador {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--vivo);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.contador.neutro {
  background: rgba(255, 255, 255, 0.09);
  color: var(--texto-2);
}

/* ---------- avatar ---------- */

.avatar {
  --tam: 32px;
  --cor: #ff6a5e;
  width: var(--tam);
  height: var(--tam);
  border-radius: 50%;
  flex: none;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--cor), color-mix(in srgb, var(--cor) 50%, #000));
  color: #fff;
  font-weight: 700;
  font-size: calc(var(--tam) * 0.38);
  user-select: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-letras {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

.avatar-anel {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  flex: none;
}

.avatar-anel::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.12s, box-shadow 0.12s;
  pointer-events: none;
}

.falando > .avatar-anel::after,
.avatar-anel.falando::after {
  border-color: var(--ok);
  box-shadow: 0 0 0 3px rgba(var(--ok-rgb), 0.2);
}

.pilha-avatares {
  display: flex;
  align-items: center;
}

.pilha-avatares .avatar {
  box-shadow: 0 0 0 2px #100b0c;
}

.pilha-avatares .avatar + .avatar,
.pilha-avatares .pilha-mais {
  margin-left: -8px;
}

.pilha-mais {
  height: 26px;
  min-width: 26px;
  padding: 0 7px;
  border-radius: 99px;
  display: inline-grid;
  place-items: center;
  background: rgba(17, 12, 13, 0.88);
  box-shadow: 0 0 0 2px #100b0c;
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-2);
}

/* ---------- avisos ---------- */

#camada-avisos {
  position: fixed;
  z-index: 120;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.aviso {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 480px);
  padding: 11px 16px 11px 14px;
  border-radius: 14px;
  background: rgba(34, 26, 27, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--linha-2);
  box-shadow: var(--sombra-3);
  font-weight: 500;
  font-size: 13.5px;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.22s, transform 0.22s var(--suave);
}

.aviso.visivel {
  opacity: 1;
  transform: none;
}

.aviso-ok .i {
  color: var(--ok);
}

.aviso-erro .i {
  color: var(--perigo);
}

.aviso-info .i {
  color: var(--acento-forte);
}

/* ---------- janelas ---------- */

#camada-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.modal-fundo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 4, 4, 0.64);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.2s;
}

.modal-fundo.visivel {
  opacity: 1;
}

.modal {
  width: min(100%, var(--largura, 460px));
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1d1617, #141011);
  border: 1px solid var(--linha-2);
  border-radius: var(--raio-l);
  box-shadow: var(--sombra-3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.26s var(--suave);
}

.modal-fundo.visivel .modal {
  transform: none;
}

.modal-cabeca {
  padding: 22px 24px 2px;
}

.modal-cabeca h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.modal-cabeca p {
  margin: 6px 0 0;
  color: var(--texto-2);
  font-size: 13.5px;
}

.modal-corpo {
  padding: 18px 24px 6px;
  overflow: auto;
}

.modal-rodape {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 22px;
}

.modal-rodape .botao {
  min-width: 96px;
}

/* ---------- popover e menus ---------- */

.popover {
  position: fixed;
  z-index: 95;
  min-width: 200px;
  max-width: calc(100vw - 16px);
  padding: 6px;
  background: rgba(29, 22, 23, 0.97);
  backdrop-filter: blur(18px);
  border: 1px solid var(--linha-2);
  border-radius: 14px;
  box-shadow: var(--sombra-3);
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transition: opacity 0.16s, transform 0.16s var(--suave);
}

.popover.visivel {
  opacity: 1;
  transform: none;
}

.menu-cabeca {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 12px;
}

.menu-cabeca > div {
  min-width: 0;
}

.menu-cabeca > div > strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-cabeca > div > span {
  display: block;
  font-size: 12.5px;
  color: var(--texto-3);
}

.menu-bio {
  margin: 0 10px 10px;
  font-size: 12.8px;
  color: var(--texto-2);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  text-align: left;
  font-weight: 500;
  font-size: 13.5px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.menu-item .i {
  width: 17px;
  height: 17px;
  color: var(--texto-2);
}

.menu-item.perigo {
  color: #ff8f86;
}

.menu-item.perigo .i {
  color: currentColor;
}

.menu-separador {
  height: 1px;
  margin: 6px 4px;
  background: var(--linha);
}

.menu-volume {
  padding: 4px 10px 8px;
}

.menu-volume-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--texto-2);
}

.menu-volume-topo span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.menu-volume-topo .i {
  width: 15px;
  height: 15px;
}

.menu-volume output {
  font-variant-numeric: tabular-nums;
  color: var(--texto);
}

/* ---------- marca ---------- */

.sprite-marca {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--texto);
  flex: none;
}

.logo:hover {
  text-decoration: none;
}

.kairo-icone {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: none;
}

.kairo-icone > svg {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.kairo-icone-raio {
  opacity: 0;
  color: #fff;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px rgba(255, 70, 80, 0.95));
  pointer-events: none;
}

.logo:hover .kairo-icone-raio {
  animation: raio-relampago 0.75s ease-out;
}

.kairo-nome {
  width: 70px;
  height: 18px;
  overflow: visible;
}

@keyframes raio-relampago {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  24% {
    opacity: 0.2;
  }
  38% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}

.logo-heroi .kairo-icone {
  width: 46px;
  height: 46px;
  animation: icone-chega 0.9s var(--mola-forte) both;
}

.logo-heroi .kairo-nome {
  width: 96px;
  height: 25px;
  animation: nome-revela 0.9s 0.22s var(--mola) both;
}

.logo-heroi .kairo-icone-raio {
  animation: raio-relampago 0.9s 0.55s ease-out both;
}

.logo-heroi .kairo-icone::before,
.logo-heroi .kairo-icone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30%;
  border: 1.5px solid rgba(255, 43, 58, 0.55);
  opacity: 0;
  animation: sinal-ao-vivo 3.6s 1.2s var(--suave) infinite;
}

.logo-heroi .kairo-icone::after {
  animation-delay: 2.4s;
}

@keyframes icone-chega {
  from {
    opacity: 0;
    transform: scale(0.55) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes nome-revela {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: none;
  }
}

@keyframes sinal-ao-vivo {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

/* ---------- entrar ---------- */

.entrar {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  height: 100%;
}

.entrar-marca {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px 56px;
  border-right: 1px solid var(--linha);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.entrar-marca::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 70% at 30% 40%, #000, transparent 78%);
  mask-image: radial-gradient(80% 70% at 30% 40%, #000, transparent 78%);
}

.orbe {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: flutuar 20s ease-in-out infinite alternate;
  pointer-events: none;
}

.orbe-1 {
  width: 460px;
  height: 460px;
  top: -170px;
  left: -110px;
  background: #ff2b3a;
  opacity: 0.3;
}

.orbe-2 {
  width: 440px;
  height: 440px;
  bottom: -190px;
  right: -110px;
  background: #c8102a;
  opacity: 0.42;
  animation-delay: -7s;
}

.orbe-3 {
  width: 260px;
  height: 260px;
  top: 44%;
  left: 46%;
  background: #ff6a5e;
  opacity: 0.1;
  animation-delay: -13s;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acento-forte);
}

.kicker .pulso {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vivo);
  box-shadow: 0 0 10px rgba(var(--vivo-rgb), 0.9);
}

.kicker .pulso::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(var(--vivo-rgb), 0.7);
  animation: sinal-ao-vivo 2.2s var(--suave) infinite;
}

@keyframes flutuar {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(46px, 32px) scale(1.08);
  }
}

.entrar-marca-conteudo {
  position: relative;
  margin: auto 0;
  max-width: 540px;
}

.entrar-marca h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.1vw, 58px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.destaque-texto {
  white-space: nowrap;
  font-family: var(--serifa);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.01em;
  padding-right: 0.06em;
  background: var(--gradiente-texto);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.entrar-marca .lead {
  max-width: 460px;
  margin: 0 0 34px;
  font-size: 16px;
  color: var(--texto-2);
}

.recursos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.recursos li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--linha);
  backdrop-filter: blur(10px);
}

.recurso-icone {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(var(--acento-rgb), 0.14);
  color: var(--acento-forte);
}

.recursos li > div > strong {
  display: block;
  font-weight: 600;
}

.recursos li > div > span {
  display: block;
  font-size: 13px;
  color: var(--texto-3);
}

.recurso-icone .i {
  width: 20px;
  height: 20px;
}

.entrar-rodape {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--texto-3);
  font-size: 12.5px;
}

.entrar-rodape .i {
  width: 15px;
  height: 15px;
}

.entrar-lado {
  display: grid;
  place-items: center;
  padding: 32px;
  overflow: auto;
}

.cartao-entrar {
  width: min(100%, 400px);
}

.cartao-entrar .logo {
  display: none;
  margin-bottom: 28px;
}

.cartao-entrar h2 {
  margin: 22px 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cartao-entrar .sub {
  margin: 0 0 24px;
  color: var(--texto-2);
}

.entrar-rodape-form {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--texto-3);
}

/* ---------- página com topo ---------- */

.pagina {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.topo {
  position: relative;
  z-index: 5;
  height: var(--topo);
  flex: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--linha);
  background: rgba(10, 7, 8, 0.72);
  backdrop-filter: blur(14px);
}

.topo-busca {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
}

.topo-busca input {
  height: 40px;
}

.topo-acoes {
  display: flex;
  align-items: center;
  gap: 10px;
}

.botao-avatar {
  border-radius: 50%;
  padding: 2px;
  border: 1px solid var(--linha-2);
  transition: border-color 0.2s;
  display: inline-flex;
}

.botao-avatar:hover {
  border-color: rgba(var(--acento-rgb), 0.6);
}

/* ---------- salas ---------- */

.lobby {
  flex: 1;
  overflow: auto;
}

.lobby-conteudo {
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 28px 56px;
}

.lobby-cabeca {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}

.lobby-cabeca h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lobby-cabeca p {
  margin: 4px 0 0;
  color: var(--texto-2);
}

.grade-salas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.cartao-sala {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  outline: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--linha);
  transition: transform 0.25s var(--suave), border-color 0.25s, box-shadow 0.25s;
}

.cartao-sala:hover,
.cartao-sala:focus-visible {
  transform: translateY(-3px);
  border-color: var(--linha-2);
  box-shadow: var(--sombra-2);
}

.cartao-sala.ao-vivo {
  border-color: rgba(var(--vivo-rgb), 0.25);
}

.cartao-capa {
  --cor: #ff6a5e;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--cor) 55%, transparent), transparent 56%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--cor) 28%, transparent), transparent 60%),
    #110c0d;
}

.cartao-capa::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 34%, transparent 52%, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.capa-imagem {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--suave);
}

.cartao-sala:hover .capa-imagem {
  transform: scale(1.04);
}

.capa-padrao {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.capa-grade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 74%);
  mask-image: radial-gradient(circle at center, #000, transparent 74%);
}

.capa-padrao > .i {
  position: relative;
  width: 52px;
  height: 52px;
  color: rgba(255, 255, 255, 0.88);
  stroke-width: 1.35;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s var(--suave);
}

.cartao-sala:hover .capa-padrao > .i {
  transform: scale(1.06) rotate(-3deg);
}

.capa-selos {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.capa-rodape {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.035em;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.selo .i {
  width: 13px;
  height: 13px;
}

.selo-icone {
  width: 26px;
  padding: 0;
  justify-content: center;
}

.selo-calmo {
  color: rgba(255, 255, 255, 0.7);
}

.selo-vivo {
  background: var(--vivo);
  border-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(var(--vivo-rgb), 0.9);
}

.ponto {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: piscar 1.6s ease-in-out infinite;
}

.ponto-verde {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

@keyframes piscar {
  50% {
    opacity: 0.35;
  }
}

.cartao-info {
  padding: 14px 16px 16px;
}

.cartao-info h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.012em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cartao-info p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--texto-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cartao-info p.apagado {
  color: var(--texto-3);
}

.cartao-transmitindo {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ff9890;
  min-width: 0;
}

.cartao-transmitindo .i {
  width: 15px;
  height: 15px;
}

.cartao-transmitindo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cartao-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}

.cartao-dono {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--texto-2);
}

.cartao-dono > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contagem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--texto-3);
  font-variant-numeric: tabular-nums;
}

.contagem .i {
  width: 15px;
  height: 15px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--linha);
}

.chip .i {
  width: 14px;
  height: 14px;
}

.cartao-esqueleto {
  border-radius: 20px;
  border: 1px solid var(--linha);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.cartao-esqueleto .bloco {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  background-size: 200% 100%;
  animation: brilho 1.4s linear infinite;
}

.cartao-esqueleto .bloco-capa {
  aspect-ratio: 16 / 9;
}

.cartao-esqueleto .bloco-linha {
  height: 12px;
  border-radius: 6px;
  margin: 16px 16px 0;
}

.cartao-esqueleto .bloco-linha.curta {
  width: 45%;
  margin-bottom: 18px;
}

@keyframes brilho {
  to {
    background-position: -200% 0;
  }
}

.vazio {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 20px;
  border: 1px dashed var(--linha-2);
  border-radius: 22px;
  color: var(--texto-2);
  grid-column: 1 / -1;
}

.vazio-icone {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(var(--acento-rgb), 0.12);
  color: var(--acento-forte);
}

.vazio-icone.erro {
  background: rgba(var(--perigo-rgb), 0.12);
  color: #ff8f86;
}

.vazio-icone .i {
  width: 28px;
  height: 28px;
}

.vazio h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--texto);
}

.vazio p {
  margin: 0 0 18px;
}

.estado-pagina {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}

.estado-pagina h2 {
  margin: 0;
  max-width: 420px;
  font-size: 18px;
  font-weight: 700;
}

.estado-pagina p {
  margin: 0;
  color: var(--texto-2);
}

/* ---------- formulário de sala ---------- */

.categorias-escolha {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.categoria-op {
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--linha);
  color: var(--texto-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.categoria-op:hover {
  border-color: var(--linha-2);
  color: var(--texto);
}

.categoria-op.ativa {
  border-color: rgba(var(--acento-rgb), 0.6);
  background: rgba(var(--acento-rgb), 0.1);
  color: var(--texto);
}

.categoria-op .i {
  width: 21px;
  height: 21px;
}

.tipo-escolha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tipo-op {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--linha);
  transition: border-color 0.15s, background-color 0.15s;
}

.tipo-op:hover {
  border-color: var(--linha-2);
}

.tipo-op.ativa {
  border-color: rgba(var(--acento-rgb), 0.6);
  background: rgba(var(--acento-rgb), 0.08);
}

.tipo-op .i {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--acento-forte);
}

.tipo-op strong {
  display: block;
  font-size: 13.5px;
}

.tipo-op span {
  display: block;
  font-size: 12px;
  color: var(--texto-3);
}

.linha-limite {
  display: flex;
  align-items: center;
  gap: 16px;
}

.linha-limite output {
  min-width: 82px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.codigo-convite {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--linha-2);
}

.codigo-convite code {
  flex: 1;
  font: 700 19px/1 var(--mono);
  letter-spacing: 0.2em;
}

.zona-perigo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(var(--perigo-rgb), 0.06);
  border: 1px solid rgba(var(--perigo-rgb), 0.2);
}

.zona-perigo > div > strong {
  display: block;
  font-size: 13.5px;
}

.zona-perigo > div > span {
  display: block;
  font-size: 12.5px;
  color: var(--texto-3);
}

/* ---------- perfil e ajustes ---------- */

.perfil-topo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.perfil-avatar {
  position: relative;
}

.perfil-avatar-botao {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sup-4);
  border: 2px solid #171112;
  color: var(--texto);
  transition: background-color 0.2s;
}

.perfil-avatar-botao:hover {
  background: var(--acento);
}

.perfil-avatar-botao .i {
  width: 15px;
  height: 15px;
}

.perfil-ident strong {
  display: block;
  font-size: 15px;
}

.perfil-ident span {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--texto-3);
}

.paleta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paleta .cor {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
  transition: transform 0.15s, box-shadow 0.15s;
}

.paleta .cor:hover {
  transform: scale(1.1);
}

.paleta .cor.ativa {
  box-shadow: 0 0 0 2px #171112, 0 0 0 4px var(--c);
}

.detalhes {
  border: 1px solid var(--linha);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.detalhes summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 13.5px;
}

.detalhes summary::-webkit-details-marker {
  display: none;
}

.detalhes summary .seta {
  margin-left: auto;
  color: var(--texto-3);
  transition: transform 0.2s;
}

.detalhes[open] summary .seta {
  transform: rotate(180deg);
}

.detalhes-corpo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px 14px;
}

.secao + .secao {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--linha);
}

.secao-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.secao-titulo .i {
  width: 15px;
  height: 15px;
}

.secao .campo + .campo,
.secao .campo + .linha-opcao {
  margin-top: 14px;
}

.medidor {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.medidor i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ok), #a3e635);
  transition: width 0.08s linear;
}

.medidor b {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: #fff;
  opacity: 0.7;
}

.atalhos {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.atalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--texto-2);
}

kbd {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--linha-2);
  border-bottom-width: 2px;
  font: 600 11.5px/1 var(--mono);
  color: var(--texto);
}

/* ---------- sala ---------- */

.sala {
  position: relative;
  display: grid;
  grid-template-rows: var(--topo) minmax(0, 1fr);
  height: 100%;
}

.sala-topo {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--linha);
  background: rgba(10, 7, 8, 0.76);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 15;
}

.pilula-voltar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px 0 10px;
  flex: none;
  border-radius: 99px;
  border: 1px solid var(--linha-2);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  font-size: 13px;
  color: var(--texto-2);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.pilula-voltar:hover {
  color: var(--texto);
  background: rgba(255, 255, 255, 0.075);
}

.pilula-voltar .i {
  width: 16px;
  height: 16px;
}

.sala-identidade {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.sala-icone {
  --cor: #ff6a5e;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--cor) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--cor) 38%, transparent);
  color: color-mix(in srgb, var(--cor) 75%, #fff);
}

.sala-titulos {
  min-width: 0;
}

.sala-nome {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sala-nome h1 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.012em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sala-selos {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.sala-selos .selo {
  height: 20px;
  font-size: 10px;
  padding: 0 8px;
}

.selo-mini {
  display: inline-grid;
  place-items: center;
  color: var(--texto-3);
}

.selo-mini .i {
  width: 14px;
  height: 14px;
}

.sala-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--texto-3);
  white-space: nowrap;
}

.sala-desc {
  overflow: hidden;
  text-overflow: ellipsis;
}

.separador {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--texto-3);
  flex: none;
}

.sala-topo-acoes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.sala-topo-acoes .botao {
  position: relative;
}

.sala-topo-acoes .contador {
  position: absolute;
  top: -6px;
  right: -6px;
}

.sala-corpo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 0;
}

.sala-corpo.sem-lateral {
  grid-template-columns: minmax(0, 1fr);
}

.sala-corpo.sem-lateral .lateral {
  display: none;
}

.palco {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 18px 18px 98px;
}

.palco-area {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}

.palco-pessoas {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 0;
  overflow: auto;
}

.grade-pessoas {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.grade-pessoas.sozinho {
  max-width: 420px;
}

.tile-pessoa {
  --cor: #ff6a5e;
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 20px;
  background:
    radial-gradient(80% 90% at 50% 30%, color-mix(in srgb, var(--cor) 14%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--linha);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tile-pessoa.falando {
  border-color: rgba(var(--ok-rgb), 0.55);
  box-shadow: 0 0 0 1px rgba(var(--ok-rgb), 0.3), 0 0 46px -12px rgba(var(--ok-rgb), 0.5);
}

.anel {
  position: relative;
  padding: 4px;
  border-radius: 50%;
}

.anel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.falando .anel::before {
  border-color: var(--ok);
  box-shadow: 0 0 0 5px rgba(var(--ok-rgb), 0.16);
}

.tile-pessoa-nome {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 90%;
  font-weight: 600;
}

.tile-pessoa-nome span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-pessoa-nome .i {
  width: 15px;
  height: 15px;
}

.vermelho {
  color: #ff8f86;
}

.coroa {
  color: var(--aviso);
}

.palco-dica {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--texto-3);
  font-size: 13px;
  text-align: center;
}

.palco-dica .i {
  width: 16px;
  height: 16px;
}

.palco-transmissoes {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  width: 100%;
}

.palco-principal {
  flex: 1;
  min-height: 0;
  display: flex;
}

.palco-transmissoes.modo-grade .palco-principal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 12px;
}

.palco-faixa {
  flex: none;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.palco-transmissoes:not(.com-faixa) .palco-faixa {
  display: none;
}

.palco-modo {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(14, 10, 11, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  font-weight: 600;
}

.palco-modo .i {
  width: 15px;
  height: 15px;
}

.tile {
  --cor: #ff6a5e;
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #060404;
  border: 1px solid var(--linha);
  outline: none;
}

.tile.na-faixa {
  flex: none;
  width: 224px;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--suave);
}

.tile.na-faixa:hover {
  border-color: rgba(var(--acento-rgb), 0.55);
  transform: translateY(-2px);
}

.tile video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #060404;
}

.tile-espera {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  background: radial-gradient(80% 80% at 50% 40%, color-mix(in srgb, var(--cor) 16%, transparent), transparent 70%), #090606;
}

.tile-espera-conteudo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tile-espera p {
  margin: 0;
  color: var(--texto-2);
}

.tile-espera p strong {
  color: var(--texto);
}

.tile.na-faixa .tile-espera-conteudo .avatar,
.tile.na-faixa .tile-espera-conteudo .botao,
.tile.na-faixa .tile-espera p {
  display: none;
}

.tile-topo {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent);
  pointer-events: none;
}

.tile-quem {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
  font-size: 13px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.tile-quem > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-selos {
  display: flex;
  gap: 6px;
  flex: none;
}

.tile.na-faixa .tile-selos .selo:not(.selo-vivo) {
  display: none;
}

.tile-acoes {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s var(--suave);
}

.tile:hover .tile-acoes,
.tile:focus-within .tile-acoes {
  opacity: 1;
  transform: none;
}

.tile.na-faixa .tile-acoes {
  display: none;
}

.tile-botao {
  height: 36px;
  min-width: 36px;
  padding: 0 9px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(14, 10, 11, 0.74);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}

.tile-botao:hover {
  background: rgba(41, 31, 32, 0.92);
}

.tile-botao.perigo {
  color: #ffa097;
}

.tile-botao .i {
  width: 17px;
  height: 17px;
}

.tile-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  background: rgba(14, 10, 11, 0.74);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tile-volume .i {
  width: 16px;
  height: 16px;
}

.tile-volume input {
  width: 92px;
  margin: 0;
}

.tile-stats {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 7, 8, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font: 12px/1.6 var(--mono);
  color: #d6ccca;
}

.tile-stats.visivel {
  display: block;
}

.tile-stats div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.tile-stats b {
  color: #fff;
  font-weight: 600;
}

.tile:fullscreen {
  border-radius: 0;
  border: 0;
}

.controles {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(23, 17, 18, 0.84);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--linha-2);
  box-shadow: var(--sombra-3);
}

.controles-grupo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.controles-divisor {
  width: 1px;
  height: 26px;
  background: var(--linha-2);
}

.ctrl {
  position: relative;
  height: 46px;
  min-width: 46px;
  padding: 0 12px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--texto);
  background: rgba(255, 255, 255, 0.065);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.ctrl .i {
  width: 20px;
  height: 20px;
}

.ctrl:hover {
  background: rgba(255, 255, 255, 0.115);
}

.ctrl.desligado {
  background: rgba(var(--perigo-rgb), 0.16);
  color: #ff8f86;
}

.ctrl.desligado:hover {
  background: rgba(var(--perigo-rgb), 0.26);
}

.ctrl.destaque {
  background: linear-gradient(180deg, #ffffff, #ebe4e3);
  color: #140d0e;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 10px 26px -14px rgba(255, 255, 255, 0.55);
}

.ctrl.destaque:hover {
  background: #fff;
}

.ctrl-par .ctrl.destaque:last-child {
  border-left-color: rgba(0, 0, 0, 0.12);
}

.ctrl.transmitindo {
  background: rgba(var(--vivo-rgb), 0.18);
  color: #ffa097;
}

.ctrl.transmitindo:hover {
  background: rgba(var(--vivo-rgb), 0.28);
}

.ctrl-par {
  display: flex;
}

.ctrl-par .ctrl:first-child {
  border-radius: 14px 0 0 14px;
  padding: 0 16px 0 14px;
}

.ctrl-par .ctrl:last-child {
  min-width: 32px;
  width: 32px;
  padding: 0;
  border-radius: 0 14px 14px 0;
  border-left: 1px solid rgba(0, 0, 0, 0.28);
}

.ctrl-par .ctrl:last-child .i {
  width: 16px;
  height: 16px;
}

.ctrl-sair {
  background: var(--perigo);
  color: #fff;
}

.ctrl-sair:hover {
  background: #ff3b4a;
}

.opcoes-tela {
  width: 100%;
  padding: 8px 8px 6px;
}

.opcoes-titulo {
  margin: 4px 2px 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.opcoes-titulo + .segmentado {
  margin-bottom: 12px;
}

.opcoes-dica {
  margin: 8px 2px 2px;
  font-size: 12px;
  color: var(--texto-3);
}

.opcoes-dica + .opcoes-titulo {
  margin-top: 18px;
}

.faixa-aviso {
  position: absolute;
  z-index: 20;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
  font-weight: 600;
  font-size: 13px;
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

.faixa-aviso.clicavel {
  cursor: pointer;
  background: rgba(var(--acento-rgb), 0.16);
  border-color: rgba(var(--acento-rgb), 0.45);
  color: #ffd4ce;
}

.faixa-aviso .carregador {
  border-top-color: #fcd34d;
}

/* ---------- painel lateral ---------- */

.lateral {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--linha);
  background: rgba(12, 8, 9, 0.62);
}

.lateral-abas {
  display: flex;
  gap: 4px;
  padding: 8px 12px 0;
  border-bottom: 1px solid var(--linha);
  flex: none;
}

.lateral-aba {
  position: relative;
  flex: 1;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--texto-3);
  transition: color 0.2s;
}

.lateral-aba:hover {
  color: var(--texto-2);
}

.lateral-aba.ativa {
  color: var(--texto);
}

.lateral-aba.ativa::after {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradiente);
}

.painel {
  position: relative;
  flex: 1;
  display: none;
  flex-direction: column;
  min-height: 0;
}

.painel.ativo {
  display: flex;
}

/* ---------- chat ---------- */

.chat-lista {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 0 10px;
}

.chat-inicio {
  padding: 18px 18px 12px;
}

.chat-inicio .sala-icone {
  margin-bottom: 12px;
}

.chat-inicio h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.chat-inicio p {
  margin: 0;
  font-size: 13px;
  color: var(--texto-3);
}

.chat-carregar {
  display: flex;
  justify-content: center;
}

.chat-dia {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 16px 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.chat-dia::before,
.chat-dia::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--linha);
}

.msg {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 7px 16px 4px;
  transition: background-color 0.15s;
}

.msg:hover {
  background: rgba(255, 255, 255, 0.025);
}

.msg.compacta {
  padding-top: 1px;
}

.msg-avatar {
  margin-top: 2px;
}

.msg-lateral {
  width: 36px;
  flex: none;
  padding-top: 3px;
  text-align: right;
  font-size: 10.5px;
  color: var(--texto-3);
  opacity: 0;
  font-variant-numeric: tabular-nums;
}

.msg:hover .msg-lateral {
  opacity: 1;
}

.msg-corpo {
  flex: 1;
  min-width: 0;
}

.msg-cabeca {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.msg-autor {
  font-weight: 650;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-cabeca time {
  flex: none;
  font-size: 11px;
  color: var(--texto-3);
}

.msg-texto {
  font-size: 13.8px;
  line-height: 1.5;
  color: #eee6e4;
  overflow-wrap: anywhere;
}

.msg-texto code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  font: 12.5px/1.4 var(--mono);
}

.msg-texto a {
  word-break: break-all;
}

.mencao {
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(var(--acento-rgb), 0.16);
  color: var(--acento-forte);
  font-weight: 600;
}

.mencao.eu {
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
}

.msg.me-menciona {
  background: rgba(251, 191, 36, 0.055);
  box-shadow: inset 2px 0 0 var(--aviso);
}

.msg-resposta {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-bottom: 3px;
  text-align: left;
  font-size: 12px;
  color: var(--texto-3);
}

.msg-resposta .i {
  width: 13px;
  height: 13px;
  flex: none;
}

.msg-resposta strong {
  flex: none;
  font-weight: 600;
  color: var(--texto-2);
}

.msg-resposta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-resposta:hover span {
  color: var(--texto-2);
}

.msg-acoes {
  position: absolute;
  z-index: 2;
  top: -14px;
  right: 14px;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--sup-3);
  border: 1px solid var(--linha-2);
  box-shadow: var(--sombra-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}

.msg:hover .msg-acoes {
  opacity: 1;
  pointer-events: auto;
}

.msg-acoes button {
  width: 28px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--texto-2);
}

.msg-acoes button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--texto);
}

.msg-acoes button.perigo:hover {
  color: #ff8f86;
}

.msg-acoes .i {
  width: 15px;
  height: 15px;
}

.reacoes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.reacoes:empty {
  display: none;
}

.reacao {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--linha);
  transition: background-color 0.15s, border-color 0.15s;
}

.reacao:hover {
  border-color: var(--linha-2);
}

.reacao span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--texto-2);
}

.reacao.minha {
  background: rgba(var(--acento-rgb), 0.16);
  border-color: rgba(var(--acento-rgb), 0.45);
}

.reacao.minha span {
  color: var(--acento-forte);
}

.seletor-emoji {
  display: flex;
  gap: 2px;
}

.seletor-emoji button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: background-color 0.12s, transform 0.12s;
}

.seletor-emoji button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.12);
}

.msg-sistema {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 4px 63px;
  font-size: 12.5px;
  color: var(--texto-3);
}

.msg-sistema .i {
  width: 14px;
  height: 14px;
}

.msg-sistema.entrou .i {
  color: var(--ok);
}

.msg-sistema.tela .i {
  color: var(--vivo);
}

.msg.destacada {
  animation: destacar 1.8s ease;
}

@keyframes destacar {
  0%,
  45% {
    background: rgba(var(--acento-rgb), 0.15);
  }
}

.chat-novas {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--gradiente);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 10px 26px -10px rgba(var(--acento-rgb), 0.9);
}

.chat-novas .i {
  width: 15px;
  height: 15px;
}

.chat-digitando {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 22px;
  padding: 0 18px;
  flex: none;
  font-size: 12px;
  color: var(--texto-3);
}

.pontinhos {
  display: inline-flex;
  gap: 3px;
}

.pontinhos i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: pontinho 1.2s infinite;
}

.pontinhos i:nth-child(2) {
  animation-delay: 0.15s;
}

.pontinhos i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pontinho {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.compositor {
  flex: none;
  padding: 0 12px 14px;
}

.resposta-barra {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -12px;
  padding: 8px 10px 20px 12px;
  border-radius: 14px 14px 0 0;
  background: var(--sup-1);
  border: 1px solid var(--linha);
  border-bottom: 0;
  font-size: 12.5px;
  color: var(--texto-2);
}

.resposta-barra .i {
  width: 14px;
  height: 14px;
  flex: none;
}

.resposta-barra strong {
  flex: none;
  color: var(--texto);
}

.resposta-barra span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resposta-barra button {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--texto-3);
}

.resposta-barra button:hover {
  color: var(--texto);
  background: rgba(255, 255, 255, 0.07);
}

.compositor-caixa {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border-radius: 16px;
  background: var(--sup-2);
  border: 1px solid var(--linha-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.compositor-caixa:focus-within {
  border-color: rgba(var(--acento-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--acento-rgb), 0.12);
}

.compositor-caixa textarea {
  flex: 1;
  min-height: 24px;
  max-height: 160px;
  padding: 6px 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  font-size: 13.8px;
  line-height: 1.5;
}

.botao-enviar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--gradiente);
  color: #fff;
  transition: opacity 0.2s, filter 0.2s;
}

.botao-enviar:hover:not(:disabled) {
  filter: brightness(1.1);
}

.botao-enviar:disabled {
  opacity: 0.32;
  cursor: default;
}

.botao-enviar .i {
  width: 17px;
  height: 17px;
}

.compositor-contador {
  position: absolute;
  right: 54px;
  bottom: -19px;
  font-size: 11px;
  color: var(--texto-3);
  font-variant-numeric: tabular-nums;
}

.sugestoes {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 6px;
  border-radius: 14px;
  background: var(--sup-3);
  border: 1px solid var(--linha-2);
  box-shadow: var(--sombra-3);
}

.sugestao {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border-radius: 9px;
  text-align: left;
  font-size: 13px;
}

.sugestao.ativa,
.sugestao:hover {
  background: rgba(255, 255, 255, 0.07);
}

.sugestao small {
  margin-left: auto;
  color: var(--texto-3);
}

/* ---------- pessoas ---------- */

.pessoas-lista {
  flex: 1;
  overflow: auto;
  padding: 10px 8px;
}

.pessoas-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.pessoa {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  text-align: left;
  transition: background-color 0.15s;
}

.pessoa:hover {
  background: rgba(255, 255, 255, 0.04);
}

.pessoa-info {
  flex: 1;
  min-width: 0;
}

.pessoa-nome {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 600;
  font-size: 13.5px;
}

.pessoa-nome-texto {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pessoa-nome .coroa {
  width: 14px;
  height: 14px;
}

.pessoa-sub {
  font-size: 12px;
  color: var(--texto-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pessoa-sub.vivo {
  color: #ff9890;
}

.pessoa-estado {
  display: flex;
  gap: 6px;
  color: var(--texto-3);
}

.pessoa-estado .i {
  width: 16px;
  height: 16px;
}

.pessoa-estado .vivo {
  color: var(--vivo);
}

.tag-voce {
  flex: none;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--texto-3);
}

.convite {
  width: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.convite-titulo strong {
  display: block;
  font-size: 14px;
}

.convite-titulo span {
  display: block;
  font-size: 12.5px;
  color: var(--texto-3);
}

.convite-link {
  display: flex;
  gap: 6px;
}

.convite-link .input {
  height: 36px;
  font-size: 12.5px;
}

.convite-codigo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--linha-2);
  font-size: 12.5px;
  color: var(--texto-3);
}

.convite-codigo code {
  font: 700 16px/1 var(--mono);
  letter-spacing: 0.18em;
  color: var(--texto);
}

.menu-pessoa {
  width: 100%;
}

.audios {
  display: none;
}

/* ---------- movimento ---------- */

.campo.desativado {
  opacity: 0.45;
  pointer-events: none;
}

.faixa-aviso.neutra {
  background: rgba(var(--acento-rgb), 0.14);
  border-color: rgba(var(--acento-rgb), 0.4);
  color: #ffdcd6;
}

.faixa-aviso.neutra .carregador {
  border-top-color: var(--acento-forte);
}

.modal-fundo {
  transition: opacity 0.24s ease;
}

.modal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(18px) scale(0.965);
  transition: transform 0.45s var(--mola), opacity 0.22s ease, filter 0.32s ease;
}

.modal-fundo.visivel .modal {
  opacity: 1;
  filter: none;
  transform: none;
}

.aviso {
  filter: blur(4px);
  transform: translateY(-14px) scale(0.94);
  transition: opacity 0.24s ease, transform 0.5s var(--mola), filter 0.3s ease;
}

.aviso.visivel {
  filter: none;
}

.popover {
  filter: blur(3px);
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.34s var(--mola), filter 0.2s ease;
}

.popover.visivel {
  filter: none;
}

.ctrl,
.botao,
.tile-botao,
.lateral-aba,
.pessoa {
  transition-property: background-color, color, box-shadow, filter, opacity, transform, border-color;
}

.ctrl:active,
.tile-botao:active,
.botao-enviar:active {
  transform: scale(0.93);
}

.ctrl .i.trocou {
  animation: icone-troca 0.42s var(--mola-forte) both;
}

.msg.nova,
.msg-sistema.nova,
.chat-dia.nova {
  animation: msg-surgir 0.42s var(--mola) both;
}

.reacao.nova {
  animation: estalo 0.5s var(--mola-forte) both;
}

.tile-pessoa.recem {
  animation: chegada 1.6s ease-out both;
}

.grade-salas.chegando .cartao-sala {
  animation: surgir 0.65s var(--mola) both;
  animation-delay: calc(var(--i, 0) * 55ms + 60ms);
}

.cartao-esqueleto {
  animation: aparecer 0.4s ease both;
}

.estado-pagina > * {
  animation: surgir 0.55s var(--mola) both;
}

.estado-pagina > *:nth-child(2) {
  animation-delay: 0.06s;
}

.estado-pagina > *:nth-child(3) {
  animation-delay: 0.12s;
}

.cartao-entrar > * {
  animation: surgir 0.65s var(--mola) both;
}

.cartao-entrar > *:nth-child(2) {
  animation-delay: 0.05s;
}

.cartao-entrar > *:nth-child(3) {
  animation-delay: 0.1s;
}

.cartao-entrar > *:nth-child(4) {
  animation-delay: 0.15s;
}

.cartao-entrar > *:nth-child(5) {
  animation-delay: 0.2s;
}

.cartao-entrar > *:nth-child(6) {
  animation-delay: 0.25s;
}

.entrar-marca-conteudo > * {
  animation: surgir 0.75s var(--mola) both;
}

.entrar-marca-conteudo > *:nth-child(2) {
  animation-delay: 0.08s;
}

.recursos li {
  animation: surgir 0.7s var(--mola) both;
}

.recursos li:nth-child(1) {
  animation-delay: 0.16s;
}

.recursos li:nth-child(2) {
  animation-delay: 0.22s;
}

.recursos li:nth-child(3) {
  animation-delay: 0.28s;
}

.recursos li:nth-child(4) {
  animation-delay: 0.34s;
}

.lobby-cabeca > * {
  animation: surgir 0.6s var(--mola) both;
}

.lobby-cabeca > *:nth-child(2) {
  animation-delay: 0.06s;
}

.entrada-css.sala .sala-topo,
.pagina.entrada-css .topo {
  animation: vt-desce-entra 0.6s var(--mola) both;
}

.entrada-css.sala .palco-area {
  animation: vt-cresce-entra 0.65s var(--mola) 0.05s both;
}

.entrada-css.sala .lateral {
  animation: vt-direita-entra 0.65s var(--mola) 0.1s both;
}

.entrada-css.sala .controles {
  animation: controles-entra 0.75s var(--mola) 0.16s both;
}

@keyframes surgir {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

@keyframes aparecer {
  from {
    opacity: 0;
  }
}

@keyframes msg-surgir {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes estalo {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }
  60% {
    opacity: 1;
    transform: scale(1.14);
  }
  100% {
    transform: none;
  }
}

@keyframes icone-troca {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-12deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes chegada {
  0% {
    border-color: rgba(var(--acento-rgb), 0.85);
    box-shadow: 0 0 0 1px rgba(var(--acento-rgb), 0.45), 0 0 50px -12px rgba(var(--acento-rgb), 0.6);
  }
}

@keyframes controles-entra {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(46px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}

@keyframes vt-pagina-sai {
  to {
    opacity: 0;
    transform: scale(0.985);
    filter: blur(6px);
  }
}

@keyframes vt-pagina-entra {
  from {
    opacity: 0;
    transform: scale(1.012);
    filter: blur(10px);
  }
}

@keyframes vt-desce-entra {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes vt-sobe-sai {
  to {
    opacity: 0;
    transform: translateY(-16px);
  }
}

@keyframes vt-sobe-entra {
  from {
    opacity: 0;
    transform: translateY(46px) scale(0.94);
  }
}

@keyframes vt-desce-sai {
  to {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
}

@keyframes vt-direita-entra {
  from {
    opacity: 0;
    transform: translateX(42px);
  }
}

@keyframes vt-direita-sai {
  to {
    opacity: 0;
    transform: translateX(36px);
  }
}

@keyframes vt-cresce-entra {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes vt-encolhe-sai {
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* ---------- transições entre telas e dentro da sala ---------- */

::view-transition-group(*) {
  animation-duration: 0.55s;
  animation-timing-function: var(--mola);
}

html[data-transicao='pagina']::view-transition-old(root) {
  animation: vt-pagina-sai 0.3s var(--saida) both;
}

html[data-transicao='pagina']::view-transition-new(root) {
  animation: vt-pagina-entra 0.6s var(--mola) 0.04s both;
}

html[data-transicao='sala']::view-transition-old(root),
html[data-transicao='sala']::view-transition-new(root),
html[data-transicao='lista']::view-transition-old(root),
html[data-transicao='lista']::view-transition-new(root) {
  animation: none;
}

.vt .logo-vt {
  view-transition-name: logo;
}

.vt .topo {
  view-transition-name: topo;
}

.vt .sala-topo {
  view-transition-name: sala-topo;
}

.vt .controles {
  view-transition-name: controles;
}

.vt .lateral {
  view-transition-name: lateral;
}

.vt .palco-area,
.vt .cartao-capa.alvo-palco {
  view-transition-name: palco;
}

.vt #camada-avisos {
  view-transition-name: avisos;
}

html[data-transicao='sala'] .tile-pessoa,
html[data-transicao='sala'] .tile {
  view-transition-name: var(--vt, none);
  view-transition-class: peca;
}

html[data-transicao='sala'] .painel.ativo .pessoa {
  view-transition-name: var(--vt, none);
  view-transition-class: linha;
}

html[data-transicao='lista'] .cartao-sala {
  view-transition-name: var(--vt, none);
  view-transition-class: cartao;
}

::view-transition-old(palco),
::view-transition-new(palco) {
  height: 100%;
  object-fit: cover;
}

::view-transition-new(sala-topo):only-child,
::view-transition-new(topo):only-child {
  animation: vt-desce-entra 0.55s var(--mola) both;
}

::view-transition-old(sala-topo):only-child,
::view-transition-old(topo):only-child {
  animation: vt-sobe-sai 0.26s var(--saida) both;
}

::view-transition-new(controles):only-child {
  animation: vt-sobe-entra 0.7s var(--mola) 0.12s both;
}

::view-transition-old(controles):only-child {
  animation: vt-desce-sai 0.3s var(--saida) both;
}

::view-transition-new(lateral):only-child {
  animation: vt-direita-entra 0.6s var(--mola) 0.08s both;
}

::view-transition-old(lateral):only-child {
  animation: vt-direita-sai 0.28s var(--saida) both;
}

::view-transition-new(palco):only-child {
  animation: vt-cresce-entra 0.6s var(--mola) 0.04s both;
}

::view-transition-old(palco):only-child {
  animation: vt-encolhe-sai 0.28s var(--saida) both;
}

::view-transition-new(*.peca):only-child,
::view-transition-new(*.cartao):only-child {
  animation: vt-cresce-entra 0.55s var(--mola) both;
}

::view-transition-old(*.peca):only-child,
::view-transition-old(*.cartao):only-child {
  animation: vt-encolhe-sai 0.26s var(--saida) both;
}

::view-transition-new(*.linha):only-child {
  animation: vt-direita-entra 0.45s var(--mola) both;
}

::view-transition-old(*.linha):only-child {
  animation: vt-direita-sai 0.22s var(--saida) both;
}

/* ---------- telas menores ---------- */

@media (max-width: 1180px) {
  .sala-corpo {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 900px) {
  .entrar {
    grid-template-columns: 1fr;
  }

  .entrar-marca {
    display: none;
  }

  .cartao-entrar .logo {
    display: inline-flex;
  }

  .topo {
    padding: 0 16px;
    gap: 12px;
  }

  .topo-busca {
    display: none;
  }

  .topo-acoes {
    margin-left: auto;
  }

  .rotulo {
    display: none;
  }

  .lobby-conteudo {
    padding: 24px 16px 40px;
  }

  .sala-corpo {
    grid-template-columns: minmax(0, 1fr);
  }

  .lateral {
    position: absolute;
    z-index: 25;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 380px);
    background: var(--fundo-2);
    box-shadow: var(--sombra-3);
  }

  .sala-sub,
  .sala-selos {
    display: none;
  }

  .sala-topo {
    gap: 10px;
    padding: 0 12px;
  }

  .pilula-voltar {
    padding: 0 10px;
  }

  .pilula-voltar span {
    display: none;
  }

  .palco {
    padding: 12px 12px 92px;
  }

  .controles {
    gap: 6px;
    padding: 6px;
  }

  .ctrl {
    height: 42px;
    min-width: 42px;
    padding: 0 10px;
  }

  .ctrl-par .ctrl:first-child {
    padding: 0 12px;
  }
}

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