/* CloudGames — visual do app (lobby em ícones, fichas dos jogos, barras e janelas).
   Carregado depois de style.css e extras.css: aqui fica a palavra final do layout. */

/* ---------- base: fundo limpo, sem bolhas por cima do conteúdo ---------- */
:root { --bg1: #2b1680; --bg2: #5a2be0; --bg3: #b8389e; --tile-r: 22px; }
body {
  background: radial-gradient(120% 55% at 50% -12%, rgba(255,255,255,.16), transparent 62%),
              linear-gradient(172deg, var(--bg1) 0%, var(--bg2) 46%, var(--bg3) 100%);
  background-attachment: fixed;
}
.gs-desc, .gs-note, .gs-meta, .join-sheet p, .shop-top small, .tour-h small, .dch-top small, .notice p { font-family: 'Barlow', system-ui, sans-serif; }

/* ---------- avisos rápidos: embaixo, sem deixar uma "pílula" escura no topo ---------- */
.toast { top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; visibility: hidden;
  transition: transform .22s, opacity .22s, visibility 0s .22s; box-shadow: 0 8px 24px rgba(20, 8, 60, .35); font-size: .95rem; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .22s, opacity .22s; }


/* ---------- barra de cima ---------- */
.topbar { padding: 10px 14px 8px; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; font-size: 1.1rem; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.icon-btn:active { transform: translateY(1px); }
.me-chip { padding: 3px 12px 3px 3px; gap: 8px; background: rgba(255,255,255,.14); min-width: 0; max-width: 62%; }
.me-chip .av { width: 38px; height: 38px; font-size: 1.3rem; }
.me-info { min-width: 0; }
.me-info .b, .me-info b, .me-info .nm { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-info small { font-size: .78rem; white-space: nowrap; }
.xpbar { min-width: 70px; height: 3px; }
.online { padding: 3px 10px; font-size: .82rem; background: rgba(0,0,0,.2); }
.topbar-r { gap: 6px; flex: none; }
@media (max-width: 380px) { .online { display: none; } }
.room-title { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#game-title .watch-pill { vertical-align: 1px; }

/* ---------- lobby: a barra de baixo faz parte da tela (nada fica escondido atrás dela) ---------- */
.lobby-main { padding: 0 14px 18px; }
.bottom-nav { position: static; flex: none; margin: 0 10px max(10px, env(safe-area-inset-bottom)); border-radius: 20px; padding: 5px; gap: 2px;
  box-shadow: 0 -2px 0 rgba(255,255,255,.06), 0 10px 28px rgba(20, 8, 60, .35); }
.bottom-nav button { padding: 5px 2px 4px; font-size: .7rem; border-radius: 14px; gap: 1px; }
.bottom-nav button span { font-size: 1.15rem; line-height: 1.2; }
.bottom-nav button.active { background: color-mix(in srgb, var(--primary) 14%, var(--card)); }
.nav-dot { top: 3px; right: calc(50% - 18px); width: 9px; height: 9px; }
.tab-title { font-size: 1.25rem; margin: 2px 0 10px; }

/* avisos do administrador mais discretos */
.notice { padding: 7px 10px; border-radius: 14px; font-size: .9rem; box-shadow: none; }
.notice .n-ic { font-size: 1.15rem; }

/* ---------- atalhos em bolhas (baú, missões, desafio, torneios, ao vivo) ---------- */
.hub { display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px 6px; margin: 0 -4px 6px; scrollbar-width: none; flex-wrap: nowrap; }
.hub-tile { flex: 0 0 72px; width: 72px; min-height: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; flex-direction: column; align-items: center; gap: 4px; color: #fff; }
.hub-tile .ht-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.65rem;
  background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 2px rgba(255,255,255,.28); }
.hub-tile .ht-tx { align-items: center; text-align: center; }
.hub-tile b { font-size: .74rem; font-weight: 700; line-height: 1.1; white-space: normal; color: #fff; }
.hub-tile small { display: none; }
.hub-tile.hot { box-shadow: none; }
.hub-tile.hot .ht-ic { box-shadow: inset 0 0 0 3px var(--yellow), 0 0 16px rgba(255, 200, 61, .45); animation: none; }
.hub-tile.hot::after { top: 2px; right: 10px; width: 11px; height: 11px; box-shadow: 0 0 0 2px var(--bg1); }
.hub-tile:focus-visible .ht-ic { outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (min-width: 760px) { .hub { flex-wrap: nowrap; overflow: visible; justify-content: flex-start; gap: 10px; } .hub-tile { width: 80px; flex: 0 0 80px; } }

/* ---------- busca e código ---------- */
.lobby-tools { margin-bottom: 4px; }
.tools-row { flex-wrap: nowrap; }
.search-box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); border-radius: 14px; padding: 0 12px; height: 42px; }
.search-box .g-search { border: 0; background: none; padding: 0; height: 100%; min-width: 0; flex: 1; font-weight: 600; outline: none; }
.search-box:focus-within { box-shadow: 0 0 0 3px var(--yellow); }
.code-btn { flex: none; height: 42px; border: 0; border-radius: 14px; padding: 0 14px; font: inherit; font-weight: 700; color: #fff; background: rgba(255,255,255,.16); cursor: pointer; }
html.theme-escuro .search-box { background: var(--card); }
html.theme-escuro .search-box .g-search { color: var(--ink); }

/* ---------- títulos das seções ---------- */
.gs-title { color: #fff; font-size: 1.05rem; margin: 16px 2px 8px; display: flex; align-items: baseline; gap: 8px; font-weight: 800; }
.gs-title small { font-size: .78rem; font-weight: 700; opacity: .65; }
.game-sections > .gs-title:first-child { margin-top: 10px; }
.gs-empty { color: #fff; text-align: center; padding: 26px 10px; font-weight: 600; }

/* ---------- jogos como ícones ---------- */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 14px 10px; }
.grail { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.grail::-webkit-scrollbar { display: none; }
.grail .gtile { flex: 0 0 84px; }
.gtile { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; color: #fff; font: inherit; min-width: 0; -webkit-tap-highlight-color: transparent; }
.gt-art { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--tile-r); display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 120% at 28% 18%, color-mix(in srgb, var(--c) 45%, #fff) 0%, var(--c) 52%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.12), 0 6px 14px rgba(20, 8, 60, .28);
  transition: transform .12s ease; }
.gt-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.22), transparent 42%); pointer-events: none; }
.gt-ic { font-size: clamp(2.1rem, 9vw, 2.7rem); filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); line-height: 1; }
.gt-art.cover { background: #1c1240; }
.gt-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gtile:active .gt-art { transform: scale(.94); }
.gtile:focus-visible .gt-art { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (hover: hover) { .gtile:hover .gt-art { transform: translateY(-2px); } }
.gt-name { font-weight: 700; font-size: .84rem; line-height: 1.12; text-align: center; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,.25); min-height: 2.24em; }
.gt-new { position: absolute; top: 7px; left: 7px; font-style: normal; font-size: .6rem; font-weight: 800; background: #ff4d6d; color: #fff; border-radius: 7px; padding: 1px 5px; z-index: 1; }
.gt-new.net { background: rgba(20, 8, 60, .55); }
.gt-fav { position: absolute; top: 5px; right: 7px; font-style: normal; color: #ffd84d; font-size: .95rem; text-shadow: 0 1px 2px rgba(0,0,0,.4); z-index: 1; }
.gt-hot { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .62rem; font-weight: 800; background: rgba(20, 8, 60, .55); color: #fff; border-radius: 8px; padding: 1px 6px; white-space: nowrap; z-index: 1; }
@media (min-width: 600px) { .ggrid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; } }
@media (prefers-reduced-motion: reduce) { .gt-art, .gtile:active .gt-art { transition: none; transform: none; } }

/* ---------- ficha do jogo (abre ao tocar no ícone) ---------- */
.sh.bare .sh-head { position: absolute; right: 0; top: 0; padding: 12px; z-index: 2; }
.sh.bare { position: relative; }
.gsheet { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.gs-top { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.gs-art { flex: none; width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; font-size: 2.5rem; overflow: hidden;
  background: radial-gradient(120% 120% at 28% 18%, color-mix(in srgb, var(--c) 45%, #fff) 0%, var(--c) 52%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 6px 14px rgba(20, 8, 60, .2); }
.gs-art.cover { background: #1c1240; }
.gs-art img { width: 100%; height: 100%; object-fit: cover; }
.gs-id { min-width: 0; }
.gs-id h3 { margin: 0; font-size: 1.45rem; line-height: 1.1; }
.gs-meta { margin: 3px 0 0; color: var(--muted); font-weight: 600; font-size: .92rem; }
.gs-hot { color: #e8455f; }
.gs-desc { margin: 0; color: var(--ink); line-height: 1.4; font-size: 1rem; }
.gs-play { width: 100%; font-size: 1.15rem; }
.gs-alt { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.gs-opt { border: 0; background: var(--soft); color: var(--ink); border-radius: 14px; padding: 9px 4px 8px; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 3px 0 color-mix(in srgb, var(--primary) 18%, var(--soft)); }
.gs-opt b { font-size: 1.3rem; line-height: 1.1; }
.gs-opt:active { transform: translateY(2px); box-shadow: none; }
.gs-lvl { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); font-size: .9rem; }
.gs-seg { display: flex; flex: 1; background: var(--soft); border-radius: 12px; padding: 3px; gap: 2px; }
.gs-seg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 6px 2px; font: inherit; font-size: .84rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.gs-seg button.on { background: var(--card); color: var(--primary); box-shadow: 0 1px 4px rgba(20, 8, 60, .15); }
.gs-links { display: flex; gap: 8px; }
.gs-links button { flex: 1; border: 2px solid var(--soft); background: none; color: var(--primary); border-radius: 12px; padding: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.gs-note { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.join-sheet { display: flex; flex-direction: column; gap: 12px; padding-bottom: 4px; }
.join-sheet p { margin: 0; color: var(--muted); }
.code-in { border: 2px solid var(--soft); border-radius: 16px; padding: 12px; font: inherit; font-size: 1.8rem; font-weight: 800; letter-spacing: 10px; text-align: center; text-transform: uppercase; color: var(--primary); background: var(--card); }
.code-in:focus { outline: none; border-color: var(--primary); }

/* ---------- janelas deslizantes ---------- */
.sh { border-radius: 24px 24px 0 0; }
.sh::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 35%, transparent); margin: 8px auto 0; }
.sh-head { padding: 6px 16px 6px; font-size: 1.1rem; }
.sh-x { width: 32px; height: 32px; }
@media (min-width: 700px) { .sh { border-radius: 24px; } .sh::before { display: none; } }

/* ---------- aviso de rolagem na partida: botão pequeno no canto, sem cobrir o jogo ---------- */
.scroll-hint { left: auto; right: 12px; width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 0; display: grid; place-items: center; transform: translateY(6px); }
.scroll-hint.on { transform: none; }
.scroll-hint span { font-size: 1.4rem; margin: 0; line-height: 1; vertical-align: 0; }

/* ---------- partida ---------- */
#screen-game .topbar { padding: 8px 10px 6px; }
.players-bar { flex-wrap: nowrap; overflow-x: auto; justify-content: safe center; scrollbar-width: none; padding: 2px 12px 8px; }
.players-bar::-webkit-scrollbar { display: none; }
.pchip { flex: none; }
.reactions { gap: 2px; padding-top: 4px; overflow-x: auto; justify-content: safe center; scrollbar-width: none; }
.reactions::-webkit-scrollbar { display: none; }
.reactions button { width: 36px; height: 36px; font-size: 1.15rem; border-radius: 12px; background: rgba(255,255,255,.14); }

/* ---------- sala de espera ---------- */
.room-main { gap: 12px; }
.code-card { padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; gap: 2px 12px; }
.code-card small { grid-column: 1; }
.room-code { grid-column: 1; font-size: 2rem; letter-spacing: 6px; margin: 0; }
.code-card #copy-invite { grid-column: 2; grid-row: 1 / span 2; }
.slots { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot-card { padding: 10px 6px; gap: 2px; border-radius: 16px; }
.slot-card .av { width: 46px; height: 46px; font-size: 1.6rem; }
.slot-card b, .slot-card .b { font-size: .92rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-actions { gap: 8px; }

/* ---------- abas ---------- */
.ranking { gap: 6px; }
.ranking li { padding: 6px 12px; border-radius: 14px; box-shadow: 0 4px 14px rgba(20, 8, 60, .16); }
.chat-box.big { min-height: 0; }
.chat-box.big .chat-list { height: calc(100dvh - 236px); }
.si-pv { height: 76px; }
.si { padding: 8px; border-radius: 16px; }
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.fb-card, .shop-top { box-shadow: 0 4px 14px rgba(20, 8, 60, .16); }

/* 4 ícones por linha no celular */
.ggrid { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 12px 8px; }
.gt-art { border-radius: 20px; }
.gt-ic { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
.gt-name { font-size: .78rem; }
.grail .gtile { flex: 0 0 76px; }
@media (min-width: 600px) { .ggrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px 12px; } .gt-name { font-size: .84rem; } }

/* chat geral ocupa a tela toda */
#tab-chat.active { display: flex; flex-direction: column; min-height: 100%; }
.chat-box.big { flex: 1; }
.chat-box.big .chat-list { height: auto; max-height: none; flex: 1; min-height: 200px; }
@media (min-width: 600px) { .ggrid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); } }
/* na partida, avisos aparecem logo abaixo da barra de cima (não cobrem as cartas da mão) */
body:has(#screen-game.active) .toast { top: calc(56px + env(safe-area-inset-top)); bottom: auto; transform: translate(-50%, -10px); }
body:has(#screen-game.active) .toast.show { transform: translate(-50%, 0); }
.cgpop { top: calc(54px + env(safe-area-inset-top)); padding: 7px 14px 7px 10px; border-radius: 16px; }
.cgpop-ic { font-size: 1.6rem; }

/* ---------- entrar / criar conta ---------- */
#screen-auth { overflow-y: auto; }
#screen-auth.active { display: block; }
.auth { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: max(24px, env(safe-area-inset-top)) 16px 28px; }
.auth-brand { text-align: center; color: #fff; }
.auth-brand .logo { color: #fff; font-size: 2.4rem; }
.auth-brand .logo b { color: var(--yellow); }
.auth-tag { margin: 2px auto 10px; max-width: 30ch; font-family: 'Barlow', system-ui, sans-serif; font-size: 1.02rem; opacity: .9; }
.auth-strip { display: flex; justify-content: center; gap: 8px; }
.auth-strip span { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 1.35rem; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.auth-strip span:nth-child(odd) { transform: translateY(4px); }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border-radius: 26px; padding: 16px 18px 18px; box-shadow: 0 18px 50px rgba(20, 8, 60, .4); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.auth-tabs button { border: 0; background: none; border-radius: 11px; padding: 9px; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; }
.auth-tabs button.on { background: var(--card); color: var(--primary); box-shadow: 0 2px 6px rgba(20, 8, 60, .14); }
.google-area { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 4px; }
#google-btn { width: 100%; display: flex; justify-content: center; min-height: 44px; }
.auth-or { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; font-weight: 600; font-family: 'Barlow', system-ui, sans-serif; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--muted) 30%, transparent); }
.auth-form { display: flex; flex-direction: column; }
.auth-form .lbl { margin: 8px 0 5px; font-size: .92rem; }
.auth-form input { width: 100%; border: 2px solid var(--soft); border-radius: 14px; padding: 11px 14px; font: inherit; font-weight: 600; background: var(--card); color: var(--ink); outline: none; }
.auth-form input:focus { border-color: var(--primary); }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 46px; }
.pass-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 1.05rem; }
.auth-form .btn { width: 100%; margin-top: 16px; }
.auth-link { border: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; margin-top: 10px; cursor: pointer; align-self: center; }
.avatar-grid.small { grid-template-columns: repeat(8, 1fr); gap: 5px; margin: 0; }
.avatar-grid.small .avatar-opt { font-size: 1.2rem; border-radius: 10px; }
.auth-err { margin: 10px 0 0; min-height: 1.2em; color: #d12a48; font-weight: 700; text-align: center; font-size: .92rem; }
.admin-hint { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff4cc; color: #5a4300; font-size: .86rem; line-height: 1.4; font-family: 'Barlow', system-ui, sans-serif; }
.admin-hint[hidden] { display: none; }
.admin-hint a { color: inherit; font-weight: 800; }
.auth-err:empty { margin: 0; min-height: 0; }
@media (max-width: 360px) { .avatar-grid.small { grid-template-columns: repeat(6, 1fr); } }
/* perfil (nome e avatar) */
.prof-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.prof-head h2 { margin: 0; font-size: 1.3rem; }
.icon-btn.dark { background: var(--soft); color: var(--ink); }
.auth-form[hidden], .google-area[hidden], .auth-tabs[hidden], #auth-forgot [hidden] { display: none; }
#fg-step1, #fg-step2 { display: flex; flex-direction: column; }
.fg-head { display: flex; align-items: center; gap: 8px; margin: -2px 0 4px; }
.fg-head h2 { margin: 0; font-size: 1.2rem; color: var(--ink); }
.fg-head .icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--soft); color: var(--ink); font-size: 1.15rem; font-weight: 800; cursor: pointer; display: grid; place-items: center; }
.fg-info { margin: 6px 0 4px; font-family: 'Barlow', system-ui, sans-serif; font-size: .96rem; line-height: 1.4; color: var(--muted); }
.fg-info b { color: var(--ink); word-break: break-all; }
.auth-form input.fg-code { text-align: center; font-size: 1.6rem; letter-spacing: .4em; font-weight: 800; padding: 10px 0 10px .4em; }
.fg-links { display: flex; justify-content: center; gap: 4px 16px; flex-wrap: wrap; }
.fg-links .auth-link { font-size: .9rem; }
.fg-links .auth-link:disabled { color: var(--muted); cursor: default; }

/* equipe: acesso pelo app, selo no chat, menu de moderação */
.staff-link { display: block; margin: 12px auto 0; font-size: .86rem; color: var(--muted); }
.staff-link[hidden] { display: none; }
.st-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 8px; font-size: .62rem; font-weight: 800; letter-spacing: .02em; vertical-align: 1px; color: #fff; background: #5b3df5; }
.st-badge.st-mod { background: #16a36b; }
.msg.staff p { font-weight: 600; }
.msg-mod { font-size: .95rem; }
.staff-menu { display: flex; flex-direction: column; gap: 8px; }
.staff-menu .quote { margin: 0 0 4px; padding: 8px 10px; border-radius: 12px; background: var(--soft); font-style: italic; overflow-wrap: anywhere; }
.staff-menu .btn { width: 100%; justify-content: center; text-decoration: none; }

/* ===== 📬 mensagens, 📌 mural, 💱 câmbio, 💎 diamantes ===== */
.inbox-btn { position: relative; }
.ib-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3d6a; color: #fff; font: 800 .7rem/18px 'Barlow', system-ui, sans-serif; font-style: normal; box-shadow: 0 0 0 2px var(--card); }
.ib-badge[hidden] { display: none; }
.ib-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--soft); border-radius: 14px; padding: 4px; margin-bottom: 12px; }
.ib-tabs button { border: 0; background: none; border-radius: 11px; padding: 8px 6px; font: inherit; font-weight: 800; font-size: .88rem; color: var(--muted); cursor: pointer; }
.ib-tabs button.on { background: var(--card); color: var(--primary); box-shadow: 0 2px 6px rgba(20, 8, 60, .14); }
.ib-list { display: flex; flex-direction: column; gap: 8px; }
.ib-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--soft); }
.ib-item.novo { background: color-mix(in srgb, var(--primary) 12%, var(--card)); box-shadow: inset 3px 0 0 var(--primary); }
.ib-ic { font-size: 1.6rem; flex: none; }
.ib-item b { display: block; }
.ib-item p { margin: 4px 0; font-family: 'Barlow', system-ui, sans-serif; line-height: 1.4; overflow-wrap: anywhere; }
.ib-item small { color: var(--muted); font-size: .76rem; }
.ib-new { margin-left: 6px; padding: 1px 6px; border-radius: 8px; background: var(--primary); color: #fff; font-size: .62rem; vertical-align: 2px; }
.ib-conv { display: flex; flex-direction: column; gap: 10px; }
.ib-thread { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.ib-thread .tm { max-width: 85%; padding: 8px 12px; border-radius: 16px; background: var(--soft); }
.ib-thread .tm.eu { align-self: flex-end; background: color-mix(in srgb, var(--primary) 16%, var(--card)); }
.ib-thread .tm small { display: block; color: var(--muted); font-size: .72rem; }
.ib-thread .tm p { margin: 2px 0 0; font-family: 'Barlow', system-ui, sans-serif; overflow-wrap: anywhere; }
.ib-send { display: flex; gap: 8px; align-items: flex-end; }
.ib-send textarea { flex: 1; border: 2px solid var(--soft); border-radius: 14px; padding: 10px 12px; font: inherit; font-weight: 600; resize: none; background: var(--card); color: var(--ink); }
.ib-send textarea:focus { border-color: var(--primary); outline: none; }
.mural { display: flex; flex-direction: column; gap: 10px; }
.mp { border-radius: 18px; padding: 12px 14px; background: var(--soft); border-left: 6px solid var(--mc, #7c4dff); }
.mp.c-roxo { --mc: #7c4dff; } .mp.c-azul { --mc: #3a86ff; } .mp.c-verde { --mc: #18b26b; } .mp.c-amarelo { --mc: #f2b705; } .mp.c-vermelho { --mc: #e5484d; } .mp.c-rosa { --mc: #ff5cb8; }
.mp { background: color-mix(in srgb, var(--mc) 10%, var(--card)); }
.mp-h { display: flex; align-items: center; gap: 8px; }
.mp-ic { font-size: 1.5rem; }
.mp-h b { flex: 1; font-size: 1.02rem; }
.mp p { margin: 6px 0; font-family: 'Barlow', system-ui, sans-serif; line-height: 1.45; overflow-wrap: anywhere; }
.mp-f { display: flex; align-items: center; gap: 8px; }
.mp-f small { flex: 1; color: var(--muted); font-size: .76rem; }
.mp-f .btn.small { padding: 6px 12px; font-size: .84rem; text-decoration: none; }
.mp-like { border: 0; background: var(--card); border-radius: 20px; padding: 5px 10px; font: inherit; font-weight: 800; font-size: .84rem; cursor: pointer; color: var(--ink); }
.mp-like.on { color: #e5484d; }
.cambio { display: flex; flex-direction: column; gap: 10px; }
.cx-bal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-bal span { background: var(--soft); border-radius: 14px; padding: 10px; text-align: center; font-weight: 700; }
.cx-bal b { font-size: 1.2rem; }
.cx-rates { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; color: var(--muted); font-weight: 700; font-size: .88rem; }
.cx-form { display: flex; flex-direction: column; gap: 8px; }
.cx-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.cx-form input { border: 2px solid var(--soft); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 1.2rem; font-weight: 800; text-align: center; background: var(--card); color: var(--ink); }
.cx-res { text-align: center; color: var(--primary); }
.shop-bal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-coins.dia { background: color-mix(in srgb, #3ac8ff 18%, var(--card)); }
.btn.dia { background: linear-gradient(135deg, #3ac8ff, #7c4dff); color: #fff; box-shadow: 0 4px 0 #4a34c9; }
.si.si-dia { box-shadow: inset 0 0 0 2px color-mix(in srgb, #3ac8ff 50%, transparent); }
.shop-bal .shop-coins { padding: 4px 12px; border-radius: 20px; background: var(--soft); font-size: 1.1rem; }
.me-info small { overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; }
#me-chip { min-width: 0; overflow: hidden; }
.auth-hint { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 10%, var(--card)); color: var(--ink); font-size: .88rem; line-height: 1.4; font-family: 'Barlow', system-ui, sans-serif; }
.auth-hint[hidden] { display: none; }
