
.bb { position: relative; isolation: isolate; color: #fff; border: 1.5px solid transparent; background-clip: padding-box; }
.bubble.bb, .t-msg p.bb { border-radius: 16px; padding: 8px 12px; }
.t-msg p.bb { display: inline-block; margin: 2px 0; }
.bb small { color: rgba(255, 255, 255, .7); }

.bb.bb-classico:not(#_) { background: linear-gradient(180deg, #3b82f6, #1d4ed8); border-color: #93c5fd55; }
.bb.bb-classico.bbp-rosa:not(#_) { background: linear-gradient(180deg, #f472b6, #db2777); border-color: #fbcfe855; }
.bb.bb-militar:not(#_) { background: radial-gradient(circle at 20% 30%, #4d5b2c 0 18%, transparent 19%), radial-gradient(circle at 70% 60%, #2f3a1c 0 20%, transparent 21%), radial-gradient(circle at 45% 85%, #6b7a3a 0 14%, transparent 15%), #3f4a24; border-color: #a3b06a66; }
.bb.bb-gelo:not(#_) { background: linear-gradient(160deg, #a5f3fc 0%, #22d3ee 45%, #0e7490 100%); color: #052e36; border-color: #e0fbff; box-shadow: inset 0 1px 0 #fff8; }
.bb.bb-gelo:not(#_) small { color: #05303899; }
.bb.bb-gelo:not(#_)::after { content: '✦'; position: absolute; top: -7px; right: 8px; font-size: 12px; color: #e0fbff; text-shadow: 0 0 6px #67e8f9; }
.bb.bb-brasa:not(#_) { background: linear-gradient(180deg, #ff7a2a, #c2410c); border-color: #fdba74; box-shadow: 0 0 10px #ff4d1a55; }
.bb.bb-neon:not(#_) { background: #0b0b14; border-color: #22d3ee; box-shadow: 0 0 8px #22d3ee, inset 0 0 8px #a855f755; animation: bb-neon 2.4s ease-in-out infinite; }
@keyframes bb-neon { 50% { border-color: #e879f9; box-shadow: 0 0 10px #e879f9, inset 0 0 8px #22d3ee55; } }
.bb.bb-toxico:not(#_) { background: radial-gradient(circle at 85% 30%, #bef26488 0 6%, transparent 7%), radial-gradient(circle at 75% 70%, #bef26466 0 4%, transparent 5%), linear-gradient(180deg, #65a30d, #3f6212); border-color: #d9f99d; }
.bb.bb-raio:not(#_) { background: linear-gradient(180deg, #facc15, #ca8a04); color: #1c1402; border-color: #fef08a; box-shadow: 0 0 10px #facc1566; }
.bb.bb-raio:not(#_) small { color: #1c140299; }
.bb.bb-raio:not(#_)::after { content: 'ϟ'; position: absolute; left: -8px; top: -9px; font-size: 15px; color: #fde047; text-shadow: 0 0 6px #facc15; }
.bb.bb-galaxia:not(#_) { background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 50% 75%, #fff, transparent), radial-gradient(1px 1px at 85% 65%, #fff, transparent), linear-gradient(135deg, #312e81, #6d28d9 55%, #be185d); border-color: #c4b5fd88; background-size: 160% 160%; animation: bb-gal 9s linear infinite; }
@keyframes bb-gal { to { background-position: 100% 100%; } }
.bb.bb-chamas:not(#_) { background: linear-gradient(180deg, #7f1d1d, #b91c1c 60%, #ea580c); border-color: #fca5a5; }
.bb.bb-chamas:not(#_)::before { content: ''; position: absolute; left: 6px; right: 6px; bottom: -6px; height: 10px; z-index: -1; background: radial-gradient(ellipse at 15% 100%, #f97316 0 40%, transparent 42%), radial-gradient(ellipse at 45% 100%, #facc15 0 35%, transparent 37%), radial-gradient(ellipse at 75% 100%, #ef4444 0 40%, transparent 42%); filter: blur(1px); animation: bb-fogo .8s ease-in-out infinite alternate; }
@keyframes bb-fogo { to { transform: scaleY(1.35) translateY(-1px); } }
.bb.bb-coroa:not(#_) { background: linear-gradient(180deg, #2a2216, #120e08); color: #fbe3a0; border-color: #e8a93a; box-shadow: 0 0 0 1px #b8812a inset, 0 0 10px #e8a93a44; }
.bb.bb-coroa:not(#_) small { color: #fbe3a099; }
.bb.bb-coroa:not(#_)::after { content: '♛'; position: absolute; top: -11px; left: 10px; font-size: 14px; color: #f2c14e; text-shadow: 0 1px 0 #6b4a12; }
.bb.bb-rgb:not(#_) { background: #101018; border-width: 2px; border-image: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7, #ef4444) 1; border-radius: 0 !important; animation: bb-rgb 3s linear infinite; }
@keyframes bb-rgb { to { filter: hue-rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bb, .bb::before { animation: none !important; } }


.msg-fig { display: block; width: 128px; height: 128px; object-fit: contain; }
.msg-fig.sm { width: 46%; height: auto; aspect-ratio: 1; }
.bubble.has-fig { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0; }
.t-msg .msg-fig { width: 112px; height: 112px; }


.th-bal { display: grid; place-items: center; }
.th-bal-in { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 14px; background: var(--card-2, #222); }
.th-figs { display: flex; flex-wrap: wrap; gap: 4%; justify-content: center; align-content: center; padding: 6%; }


.fig-pack { margin-bottom: 16px; }
.fig-pack.locked .fig-grid { opacity: .4; filter: grayscale(.6); }
.fig-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fig-btn { background: var(--card-2, #1b1b20); border: 0; border-radius: 14px; padding: 6px; }
.fig-btn .msg-fig { width: 100%; height: auto; aspect-ratio: 1; }
.composer .fig-open { flex: none; }
.gift-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.gift-who { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line, #2a2a30); background: var(--card, #141418); color: inherit; }
.gift-who b { flex: 1; text-align: left; }


.composer { flex-wrap: wrap; }
.ce-in { flex: 1; min-width: 0; min-height: 46px; max-height: 120px; overflow-y: auto; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); outline: none;
  font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; cursor: text; }
.ce-in:focus { border-color: rgba(201, 162, 77, .6); }
.ce-in.empty::before { content: attr(data-ph); color: var(--faint); pointer-events: none; }
.composer.fixed .ce-in { align-self: center; }
.reply-bar { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; }
.rq { display: grid; gap: 1px; min-width: 0; flex: 1; text-align: left; padding: 6px 10px; border-left: 3px solid #c9a24d; border-radius: 8px; background: rgba(201, 162, 77, .1); }
.rq b { font-size: 12px; color: #e0bd6a; }
.rq small { font-size: 12.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rq.in { margin: 0 0 6px; width: 100%; border: 0; border-left: 3px solid rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .18); cursor: pointer; }
.bubble.me .rq.in b { color: #fff; }
.bubble.me .rq.in small { color: rgba(255, 255, 255, .8); }
.bubble, .t-msg { position: relative; touch-action: pan-y; }
.bubble.swipe-ok::before, .t-msg.swipe-ok::before { content: '↩'; position: absolute; left: -34px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(201, 162, 77, .25); color: #e0bd6a; font-size: 14px; }
.flash { animation: rq-flash 1.2s ease-out; }
@keyframes rq-flash { 0%, 30% { box-shadow: 0 0 0 3px rgba(201, 162, 77, .7); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 77, 0); } }
.msg-fig.own { cursor: pointer; border-radius: 14px; }
.fig-new { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; aspect-ratio: 1; color: #e0bd6a; border: 1.5px dashed rgba(201, 162, 77, .5); cursor: pointer; }
.fig-new svg { width: 22px; height: 22px; }
.fig-new small { font-size: 11.5px; }
.fig-new input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fig-btn { position: relative; }
.fig-btn.editing { animation: fig-wig .3s ease-in-out infinite alternate; }
@keyframes fig-wig { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.fig-x { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e5484d; color: #fff; }
.fig-x svg { width: 12px; height: 12px; }
.fig-view { display: grid; place-items: center; margin: 4px 0 14px; }
.fig-view canvas, .fig-view .msg-fig { width: min(240px, 70vw); height: auto; aspect-ratio: 1; border-radius: 18px; background: repeating-conic-gradient(#222 0 25%, #2a2a2a 0 50%) 0 0 / 20px 20px; }


.voice-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(64, 196, 140, .12), rgba(64, 196, 140, .03)); border: 1px solid rgba(64, 196, 140, .3); margin: 6px 0; }
.voice-card .vc-ic { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(64, 196, 140, .2); color: #5fe0a8; }
.voice-card .vc-ic svg { width: 18px; height: 18px; }
.voice-card b { display: block; font-size: 14px; }
.voice-card small { font-size: 12px; color: var(--muted); }
.voice-card .grow { min-width: 0; }
.call-tip { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 14px; }
.call-tip svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.call-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 7px 12px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, .25); color: inherit; font-weight: 700; font-size: 13px; }
.call-link svg { width: 15px; height: 15px; }


.ol-up { position: relative; }
.ol-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ol-read { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 8px 0; }
.ol-id { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); flex-wrap: wrap; }
.ol-id small { flex-basis: 100%; color: var(--muted); font-size: 11.5px; padding-left: 24px; }
.ol-hits, .ol-list { list-style: none; display: grid; gap: 8px; }
.ol-hits li, .ol-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ol-hits small, .ol-list small { display: block; font-size: 12px; color: var(--muted); }
.ol-list .grow, .ol-hits .grow { min-width: 0; }


.conv-down { position: fixed; z-index: 46; right: max(16px, calc(50% - 244px)); bottom: calc(84px + var(--safe-b, 0px)); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2, #1b1b20); color: #e0bd6a; border: 1px solid rgba(201, 162, 77, .45); box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none; transition: opacity .18s, transform .18s; }
.conv-down.on { opacity: 1; transform: none; pointer-events: auto; }
.conv-down svg { width: 22px; height: 22px; }


.artes-frame { display: block; width: 100%; height: calc(100vh - 150px); min-height: 640px; border: 0; border-radius: 14px; background: #0b090a; }
