/* Bate-papo da RDW */
:root {
  --cp-fundo: #0b0f26; --cp-painel: #141a3a; --cp-bolha: #1c2350; --cp-eu: #2a3a8f; --cp-borda: rgba(120,150,255,.18);
  --cp-tx: #eef1ff; --cp-tx2: #a9b2d6; --cp-ciano: #2ee6ff; --cp-rosa: #ff4f9a; --cp-sol: #ffc145;
  --f-titulo: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --f-texto: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--cp-fundo); color: var(--cp-tx); font-family: var(--f-texto); }
body { overflow: hidden; }
button { font: inherit; color: inherit; }
.cp { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 900px; margin: 0 auto; background: radial-gradient(120% 60% at 50% 0%, rgba(79,140,255,.12), transparent 60%), var(--cp-fundo); }

/* topo */
.cp-topo { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: rgba(15,19,48,.96); border-bottom: 1px solid var(--cp-borda); position: relative; z-index: 3; }
.cp-voltar { color: var(--cp-tx); text-decoration: none; font-size: 1.4rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.em-quadro .cp-voltar { display: none; }
.cp-tit { flex: 1; min-width: 0; }
.cp-tit h1 { margin: 0; font: 800 1.15rem/1.1 var(--f-titulo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-sub span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-tit h1 span { background: linear-gradient(90deg, var(--cp-ciano), var(--cp-rosa)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-sub { margin: 2px 0 0; font-size: .8rem; color: var(--cp-tx2); display: flex; align-items: center; gap: 6px; }
.cp-pt { width: 8px; height: 8px; border-radius: 50%; background: #666; display: inline-block; }
.cp.ligado .cp-pt { background: #2fd38c; box-shadow: 0 0 8px #2fd38c; }
.cp-tocando { display: flex; align-items: center; gap: 6px; max-width: 42%; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(46,230,255,.35); background: rgba(46,230,255,.08); cursor: pointer; font-size: .78rem; }
.cp-tocando-tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.cp-eq i { width: 3px; height: 100%; background: var(--cp-ciano); border-radius: 2px; animation: cpEq 1s ease-in-out infinite; transform-origin: bottom; }
.cp-eq i:nth-child(2) { animation-delay: -.4s; } .cp-eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes cpEq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.cp-ic { background: none; border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 1.25rem; flex: none; color: var(--cp-tx2); }
.cp-ic:hover, .cp-ic:focus-visible { background: rgba(255,255,255,.08); color: var(--cp-tx); }

/* lista */
.cp-lista { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px 6px; position: relative; }
.cp-antigas { display: block; margin: 6px auto 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--cp-borda); background: var(--cp-painel); cursor: pointer; font-size: .85rem; color: var(--cp-tx2); }
.cp-vazio { text-align: center; color: var(--cp-tx2); margin-top: 30vh; }
.cp-dia { text-align: center; margin: 14px 0 8px; }
.cp-dia span { font-size: .75rem; color: var(--cp-tx2); background: rgba(255,255,255,.06); padding: 4px 12px; border-radius: 999px; }
.cp-m { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; position: relative; }
.cp-m.seq { margin-top: 3px; }
.cp-m.seq .cp-av { visibility: hidden; height: 0; }
.cp-m.seq .cp-cab { display: none; }
.cp-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: #fff; background: hsl(var(--h) 70% 45%); align-self: flex-start; margin-top: 2px; }
.cp-corpo { max-width: min(78%, 520px); min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.cp-bolha { background: var(--cp-bolha); border: 1px solid var(--cp-borda); border-radius: 4px 16px 16px 16px; padding: 7px 11px 6px; min-width: 0; max-width: 100%; position: relative; }
.cp-m.seq .cp-bolha { border-radius: 16px; }
.cp-m.eu { flex-direction: row-reverse; }
.cp-m.eu .cp-av { display: none; }
.cp-m.eu .cp-corpo { align-items: flex-end; margin-left: auto; }
.cp-m.eu .cp-bolha { background: linear-gradient(135deg, #2b3d97, #3b2a8f); border-color: rgba(120,160,255,.35); border-radius: 16px 4px 16px 16px; }
.cp-m.eu.seq .cp-bolha { border-radius: 16px; }
.cp-cab { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; font-size: .8rem; }
.cp-nome { font-weight: 800; color: hsl(var(--h) 85% 72%); cursor: pointer; }
.cp-m.eu .cp-cab { display: none; }
.cp-selo { font-size: .66rem; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; background: linear-gradient(90deg, var(--cp-sol), #ff9f43); color: #1a1030; }
.cp-selo.equipe { background: linear-gradient(90deg, var(--cp-ciano), #4f8cff); }
.cp-tx { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.38; font-size: .97rem; }
.cp-tx a { color: var(--cp-ciano); }
.cp-tx .cp-mencao { color: var(--cp-sol); font-weight: 700; }
.cp-tx.so-emoji { font-size: 2.3rem; line-height: 1.15; }
.cp-hora { display: block; text-align: right; font-size: .68rem; color: var(--cp-tx2); margin-top: 2px; }
.cp-m.eu .cp-hora { color: #c5cdf5; }
.cp-pend .cp-bolha { opacity: .7; }
.cp-pend .cp-hora::after { content: ' ⏳'; }
.cp-erro .cp-hora { color: #ff8095; }
.cp-mais-btn { align-self: center; flex: none; opacity: 0; background: none; border: 0; color: var(--cp-tx2); cursor: pointer; font-size: 1.1rem; width: 30px; height: 30px; border-radius: 50%; }
.cp-m:hover .cp-mais-btn, .cp-mais-btn:focus-visible { opacity: 1; }
@media (hover: none) { .cp-mais-btn { display: none; } }
.cp-cit { border-left: 3px solid var(--cp-ciano); background: rgba(255,255,255,.06); border-radius: 6px; padding: 4px 8px; margin: 2px 0 5px; font-size: .82rem; cursor: pointer; max-width: 100%; }
.cp-cit b { display: block; color: var(--cp-ciano); font-size: .76rem; }
.cp-cit span { display: block; color: var(--cp-tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-m.realce .cp-bolha { box-shadow: 0 0 0 2px var(--cp-sol); transition: box-shadow .3s; }
.cp-oculta .cp-bolha { outline: 2px dashed #ff5d6c; }
.cp-den { font-size: .72rem; color: #ff8095; font-weight: 700; margin-top: 3px; }

/* mídia */
.cp-midia { display: block; max-width: 100%; border-radius: 12px; margin: 2px 0 4px; background: rgba(255,255,255,.05); }
img.cp-midia { width: 300px; height: auto; max-height: 360px; object-fit: cover; cursor: zoom-in; }
video.cp-midia { width: 300px; max-height: 380px; background: #000; }
audio.cp-midia { width: 260px; max-width: 100%; height: 44px; background: none; }
.cp-dur { display: block; font-size: .72rem; color: var(--cp-tx2); margin: -2px 0 0 6px; }
.cp-fig { width: 150px; height: 150px; object-fit: contain; display: block; cursor: default; }
.cp-bolha.sem-bolha, .cp-m.eu .cp-bolha.sem-bolha { background: none; border: 0; padding: 0; box-shadow: none; }
.cp-exp { font-size: .85rem; color: var(--cp-tx2); font-style: italic; }
.cp-musica { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: linear-gradient(135deg, rgba(46,230,255,.14), rgba(255,79,154,.14)); border: 1px solid rgba(46,230,255,.25); margin: 2px 0 4px; min-width: 220px; }
.cp-musica .cp-disco { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 1.4rem; background: radial-gradient(circle, #fff 0 9%, #111 10% 100%); box-shadow: inset 0 0 0 6px #222, 0 0 0 2px rgba(46,230,255,.4); }
.cp-musica .cp-mt { min-width: 0; flex: 1; }
.cp-musica b { display: block; overflow-wrap: anywhere; }
.cp-musica small { color: var(--cp-tx2); }
.cp-musica .cp-mbot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cp-chip { font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--cp-borda); background: rgba(255,255,255,.08); color: var(--cp-tx); text-decoration: none; cursor: pointer; }
.cp-chip:hover { background: rgba(255,255,255,.16); }

/* reações */
.cp-reacoes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -4px; padding: 0 6px; position: relative; z-index: 1; }
.cp-reacoes button { border: 1px solid var(--cp-borda); background: var(--cp-painel); border-radius: 999px; padding: 1px 7px; font-size: .82rem; cursor: pointer; }
.cp-reacoes button.minha { border-color: var(--cp-ciano); background: rgba(46,230,255,.16); }
.cp-pulo { animation: cpPulo .35s ease; }
@keyframes cpPulo { 50% { transform: scale(1.35); } }

/* novas */
.cp-novas { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 4; border: 0; border-radius: 999px; padding: 8px 16px; background: var(--cp-ciano); color: #0b1020; font-weight: 800; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.cp { position: relative; }

/* rodapé */
.cp-rodape { padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(15,19,48,.96); border-top: 1px solid var(--cp-borda); position: relative; z-index: 3; }
.cp-dig { margin: 0; height: 18px; font-size: .75rem; color: var(--cp-tx2); padding: 2px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-form { display: flex; align-items: flex-end; gap: 6px; }
.cp-campo { flex: 1; display: flex; align-items: flex-end; background: var(--cp-painel); border: 1px solid var(--cp-borda); border-radius: 22px; padding-left: 14px; min-width: 0; }
.cp-campo:focus-within { border-color: rgba(46,230,255,.6); }
.cp-campo textarea { flex: 1; min-width: 0; border: 0; background: none; color: var(--cp-tx); font: inherit; font-size: 1rem; resize: none; padding: 10px 0; max-height: 140px; line-height: 1.35; outline: none; }
.cp-enviar { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.15rem; color: #0b1020; background: linear-gradient(135deg, var(--cp-ciano), #4f8cff); display: grid; place-items: center; }
.cp-enviar:disabled { opacity: .5; }
.cp-resp { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; padding: 6px 6px 6px 10px; border-left: 3px solid var(--cp-ciano); background: rgba(255,255,255,.06); border-radius: 8px; font-size: .85rem; }
.cp-resp > div { flex: 1; min-width: 0; }
.cp-resp b { display: block; color: var(--cp-ciano); font-size: .78rem; }
.cp-resp span { display: block; color: var(--cp-tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-entrar { text-align: center; padding: 10px 6px 4px; }
.cp-entrar p { margin: 8px 0 0; font-size: .78rem; color: var(--cp-tx2); }
.cp-grande { border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 800; cursor: pointer; color: #0b1020; background: linear-gradient(135deg, var(--cp-ciano), #4f8cff); width: 100%; max-width: 380px; }
.cp-bloq { text-align: center; color: #ff8095; font-size: .9rem; padding: 10px; }

/* gravação de áudio */
.cp-grava { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.cp-grava-pt { width: 12px; height: 12px; border-radius: 50%; background: #ff2e63; animation: cpPisca 1s infinite; }
.cp-grava-t { font-variant-numeric: tabular-nums; font-weight: 800; }
.cp-grava-nota { flex: 1; color: var(--cp-tx2); font-size: .85rem; }
@keyframes cpPisca { 50% { opacity: .3; } }

/* painel de emojis, figurinhas e anexos */
.cp-painel { margin: 4px 0 8px; background: var(--cp-painel); border: 1px solid var(--cp-borda); border-radius: 16px; overflow: hidden; }
.cp-abas { display: flex; border-bottom: 1px solid var(--cp-borda); overflow-x: auto; scrollbar-width: none; }
.cp-abas button { flex: none; background: none; border: 0; padding: 8px 12px; cursor: pointer; font-size: 1.1rem; opacity: .6; border-bottom: 2px solid transparent; }
.cp-abas button.on { opacity: 1; border-bottom-color: var(--cp-ciano); }
.cp-abas .cp-aba-tx { font-size: .85rem; font-weight: 700; }
.cp-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; padding: 8px; max-height: 230px; overflow-y: auto; }
.cp-grade button { background: none; border: 0; font-size: 1.55rem; height: 42px; border-radius: 10px; cursor: pointer; }
.cp-grade button:hover { background: rgba(255,255,255,.08); }
.cp-grade.figs { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.cp-grade.figs button { height: 84px; padding: 2px; }
.cp-grade.figs img { width: 100%; height: 100%; object-fit: contain; }
.cp-grade .cp-nova-fig { font-size: .78rem; font-weight: 700; border: 1px dashed var(--cp-borda); color: var(--cp-tx2); }
.cp-grade.gifs { display: block; padding: 8px; }
.cp-gif-busca { width: 100%; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--cp-borda); background: rgba(255,255,255,.06); color: var(--cp-tx); font: inherit; margin-bottom: 8px; }
.cp-gif-res { columns: 3 110px; column-gap: 6px; }
.cp-gif-res button { display: block; width: 100%; height: auto; padding: 0; margin: 0 0 6px; break-inside: avoid; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.05); }
.cp-gif-res img { display: block; width: 100%; height: auto; }
.cp-credito { text-align: right; font-size: .7rem; padding: 4px 2px 0; }
.cp-nota { padding: 8px 12px; margin: 0; color: var(--cp-tx2); font-size: .82rem; }
.cp-anexos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.cp-anexos button { background: rgba(255,255,255,.05); border: 1px solid var(--cp-borda); border-radius: 14px; padding: 12px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; }
.cp-anexos button span { font-size: 1.6rem; }
.cp-anexos button:hover { background: rgba(255,255,255,.1); }

/* janelas */
.cp-fundo { position: fixed; inset: 0; z-index: 50; background: rgba(3,5,15,.75); display: grid; place-items: center; padding: 14px; }
.cp-caixa { width: min(440px, 100%); max-height: calc(100dvh - 28px); overflow-y: auto; background: #121733; border: 1px solid rgba(46,230,255,.35); border-radius: 20px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.cp-caixa h2 { margin: 0 0 10px; font: 800 1.2rem var(--f-titulo); }
.cp-caixa p { color: var(--cp-tx2); margin: 6px 0; font-size: .92rem; }
.cp-caixa label { display: block; font-weight: 700; font-size: .85rem; margin: 10px 0 4px; }
.cp-caixa input[type=text], .cp-caixa input[type=url], .cp-caixa textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(140,170,255,.35); background: rgba(255,255,255,.06); color: #fff; font: inherit; }
.cp-caixa .cp-prev { display: block; max-width: 100%; max-height: 50vh; margin: 6px auto 4px; border-radius: 12px; }
.cp-caixa ul { padding-left: 20px; margin: 8px 0; color: var(--cp-tx); font-size: .92rem; line-height: 1.5; }
.cp-botoes { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.cp-btn { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 800; cursor: pointer; color: #0b1020; background: linear-gradient(135deg, var(--cp-ciano), #4f8cff); }
.cp-btn.sec { background: rgba(255,255,255,.1); color: var(--cp-tx); }
.cp-btn.perigo { background: #ff5d6c; color: #fff; }
.cp-erro-tx { color: #ff8095 !important; min-height: 1.1em; }
.cp-barra { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 8px; }
.cp-barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cp-ciano), var(--cp-rosa)); transition: width .2s; }

/* menu de ações (folha que sobe) */
.cp-folha-fundo { position: fixed; inset: 0; z-index: 40; background: rgba(3,5,15,.55); display: flex; align-items: flex-end; justify-content: center; }
.cp-folha { width: min(480px, 100%); background: #141a3a; border: 1px solid var(--cp-borda); border-radius: 20px 20px 0 0; padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px)); animation: cpSobe .2s ease; }
@keyframes cpSobe { from { transform: translateY(100%); } }
.cp-folha-reac { display: flex; justify-content: space-around; padding: 6px 0 10px; border-bottom: 1px solid var(--cp-borda); margin-bottom: 6px; }
.cp-folha-reac button { background: none; border: 0; font-size: 1.7rem; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; }
.cp-folha-reac button:hover, .cp-folha-reac button.minha { background: rgba(46,230,255,.15); }
.cp-folha > button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 12px 14px; border-radius: 12px; cursor: pointer; font-size: 1rem; }
.cp-folha > button:hover { background: rgba(255,255,255,.07); }
.cp-folha > button.perigo { color: #ff8095; }
.cp-folha-tit { margin: 4px 14px 2px; font-size: .75rem; color: var(--cp-tx2); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

/* foto em tela cheia */
.cp-zoom { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.92); display: grid; place-items: center; cursor: zoom-out; }
.cp-zoom img { max-width: 96vw; max-height: 92vh; border-radius: 8px; }

.cp-toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 70; background: #1f274f; border: 1px solid var(--cp-borda); padding: 10px 16px; border-radius: 12px; font-size: .9rem; max-width: 90vw; box-shadow: 0 8px 24px rgba(0,0,0,.5); }

/* moderação */
.cp-mod-item { border: 1px solid var(--cp-borda); border-radius: 12px; padding: 8px 10px; margin: 6px 0; font-size: .88rem; }
.cp-mod-item b { color: var(--cp-ciano); }

/* janela de login reaproveitada (apelido.js) */
.apelido-fundo { position: fixed; inset: 0; z-index: 10000; background: rgba(3,5,15,.72); display: grid; place-items: center; padding: 16px; }
.apelido-caixa { width: min(420px, 100%); padding: 24px; border-radius: 22px; background: #121733; border: 1px solid rgba(46,230,255,.4); box-shadow: 0 20px 60px rgba(0,0,0,.6); color: #E8ECFF; }
.apelido-caixa h3 { margin: 0 0 6px; font-size: 1.4rem; }
.apelido-motivo { margin: 0 0 14px; color: #A9B2D6; }
.apelido-caixa label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.apelido-caixa input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(140,170,255,.35); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 1.05rem; }
.apelido-erro { min-height: 1.2em; margin: 6px 0; color: #FF6B86; font-size: .88rem; }
.apelido-botoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.apelido-nota { margin: 12px 0 0; font-size: .8rem; color: #A9B2D6; }
.apelido-nota a { color: var(--cp-ciano); }
.btn-prim, .btn-sec { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 800; cursor: pointer; }
.btn-prim { color: #0b1020; background: linear-gradient(135deg, var(--cp-ciano), #4f8cff); }
.btn-sec { background: rgba(255,255,255,.1); color: #fff; }
.esp-link { background: none; border: 0; padding: 0; color: var(--cp-ciano); text-decoration: underline; cursor: pointer; font-size: .85rem; }

@media (max-width: 520px) {
  .cp-tocando { max-width: 34%; }
  img.cp-midia, video.cp-midia { width: 240px; }
  .cp-fig { width: 128px; height: 128px; }
  .cp-corpo { max-width: 82%; }
}
@media (prefers-reduced-motion: reduce) { .cp-eq i, .cp-grava-pt, .cp-folha, .cp-pulo { animation: none; } }

/* modo dono / equipe / moderador */
.cp-modo { flex: none; border: 0; border-radius: 999px; padding: 6px 10px; font-size: .75rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.cp-modo.m-dono { background: linear-gradient(90deg, #ffd56b, #ff9f43); color: #2a1600; box-shadow: 0 0 14px rgba(255,193,69,.45); }
.cp-modo.m-equipe { background: linear-gradient(90deg, #2ee6ff, #4f8cff); color: #071026; }
.cp-modo.m-mod { background: linear-gradient(90deg, #2fd38c, #19b37a); color: #04140c; }
.cp-selo.s-dono { background: linear-gradient(90deg, #ffd56b, #ff9f43); color: #2a1600; box-shadow: 0 0 10px rgba(255,193,69,.5); }
.cp-selo.s-equipe { background: linear-gradient(90deg, #2ee6ff, #4f8cff); color: #071026; }
.cp-selo.s-mod { background: linear-gradient(90deg, #2fd38c, #19b37a); color: #04140c; }
.cp-selo.s-bot { background: #6a5cff; color: #fff; }
.cp-lv { font-size: .8rem; }
button.cp-nome { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: hsl(var(--h) 85% 72%); cursor: pointer; }
button.cp-nome:hover { text-decoration: underline; }
/* mensagens do dono: dourado */
.cp-m.b-dono .cp-bolha { background: linear-gradient(135deg, #3d2a07, #5a3a0a 55%, #4a1f3a); border: 1px solid rgba(255,193,69,.75); box-shadow: 0 0 16px rgba(255,193,69,.25); }
.cp-m.b-dono .cp-nome { color: #ffd56b; }
.cp-m.b-dono .cp-hora { color: #f3d9a4; }
.cp-m.b-equipe .cp-bolha { border-color: rgba(46,230,255,.7); box-shadow: 0 0 12px rgba(46,230,255,.18); }
.cp-m.b-mod .cp-bolha { border-color: rgba(47,211,140,.7); }
.cp-m.b-dono .cp-av { box-shadow: 0 0 0 2px #ffc145, 0 0 12px rgba(255,193,69,.6); }
.cp-m.b-equipe .cp-av { box-shadow: 0 0 0 2px #2ee6ff; }
.cp-m.b-mod .cp-av { box-shadow: 0 0 0 2px #2fd38c; }
.cp-mais-btn.mod { opacity: .85; display: grid; place-items: center; font-size: .95rem; background: rgba(255,255,255,.06); }
@media (hover: none) { .cp-mais-btn.mod { display: grid; } }

/* avatar */
.cp-av { cursor: pointer; overflow: hidden; }
.cp-av.emo { font-size: 1.15rem; background: radial-gradient(circle at 30% 25%, hsl(var(--h) 80% 65%), hsl(var(--h) 70% 38%)); }
.cp-av.foto { background: #222; }
.cp-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-av.grande { width: 72px; height: 72px; font-size: 2rem; }
.cp-av.grande.emo { font-size: 2.3rem; }
.cp-av-prev { display: grid; place-items: center; margin: 4px 0 8px; }
.cp-av-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 4px; margin: 8px 0; }
.cp-av-grade button { height: 42px; font-size: 1.5rem; border-radius: 12px; border: 1px solid var(--cp-borda); background: rgba(255,255,255,.04); cursor: pointer; }
.cp-av-grade button.premio { border-color: rgba(255,193,69,.6); background: rgba(255,193,69,.1); }
.cp-av-grade button.trancado { opacity: .5; font-size: 1rem; }
.cp-cores { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.cp-cores button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); background: hsl(var(--h) 70% 50%); cursor: pointer; }

/* perfil */
.cp-perfil-topo { display: flex; gap: 14px; align-items: center; }
.cp-perfil-topo h2 { margin: 0 0 4px; }
.cp-perfil-topo p { margin: 6px 0 0; }
.cp-perfil-bot { justify-content: flex-start; }
.cp-sub-tit { font-size: 1rem !important; margin: 14px 0 6px !important; }
.cp-rank { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; cursor: pointer; }
.cp-rank:hover { background: rgba(255,255,255,.06); }
.cp-rank.eu { background: rgba(46,230,255,.1); }
.cp-rank .cp-av { width: 30px; height: 30px; font-size: .9rem; margin: 0; }
.cp-rank-pos { width: 28px; text-align: center; }
.cp-rank-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* RDW Bot e desafio */
.cp-bot { justify-content: center; }
.cp-bot .cp-corpo { max-width: min(92%, 520px); align-items: stretch; }
.cp-bot.escondido { display: none; }
.cp-bot-card { background: linear-gradient(135deg, rgba(106,92,255,.28), rgba(255,79,154,.2)); border: 1px solid rgba(160,140,255,.55); border-radius: 16px; padding: 10px 14px 6px; text-align: center; }
.cp-bot-card b { display: block; font-size: .78rem; color: #c9c2ff; margin-bottom: 4px; letter-spacing: .03em; }
.cp-bot-card .cp-tx { font-weight: 600; }
.cp-jogo { display: block; width: 100%; margin: 6px 0 0; padding: 7px 12px; border: 0; border-radius: 12px; font-weight: 800; font-size: .85rem; cursor: pointer; color: #fff; background: linear-gradient(90deg, #6a5cff, #ff4f9a); animation: cpBrilho 1.6s ease-in-out infinite; }
@keyframes cpBrilho { 50% { filter: brightness(1.25); } }
@media (max-width: 420px) { .cp-modo { padding: 5px 8px; font-size: .7rem; } .cp-tocando { display: none; } }
.cp-op { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; margin: 12px 0 !important; cursor: pointer; }
.cp-op input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: #2ee6ff; }
.cp-tx .cp-mencao.eu { background: rgba(255,193,69,.2); border-radius: 6px; padding: 0 3px; }

/* login do app pelo navegador */
.login-app-btn { border: 0; border-radius: 999px; padding: 12px 20px; font: inherit; font-weight: 800; cursor: pointer; color: #0b1020; background: linear-gradient(135deg, #2ee6ff, #4f8cff); width: 100%; }
.login-app-nota { font-size: .85rem; color: #a9b2d6; }
.login-app-codigo { font-size: 2.6rem; font-weight: 900; letter-spacing: .3em; text-align: center; color: #ffc145; margin: 6px 0; }
.login-app-link { background: none; border: 0; color: #2ee6ff; text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
