/* Iru – tema roxo neon suave sobre fundo escuro */
:root {
  --bg: #0f0c1b;
  --panel: #161228;
  --panel-2: #1d1833;
  --panel-3: #261f42;
  --line: rgba(199, 125, 255, .14);
  --a: #9d4edd;
  --a2: #c77dff;
  --glow: rgba(199, 125, 255, .45);
  --text: #ece6f7;
  --muted: #9a90b3;
  --bad: #ff5d7d;
  --ok: #54e08a;
  --radius: 8px;
  --titlebar: 32px;
}
html.electron { --titlebar: 32px; }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  overflow: hidden;
  padding-top: var(--titlebar);
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.spacer { flex: 1; }
svg { flex: none; }

/* 3.14.1: barra de rolagem do Iru: fina, trilho invisível, "pílula" roxa em degradê que acende ao passar o mouse */
* { scrollbar-width: thin; scrollbar-color: #4a3577 transparent; } /* Firefox */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 999px; border: 3px solid transparent; background-clip: padding-box;
  background-image: linear-gradient(180deg, #5b3d94, #3f2a6b); background-color: transparent; }
::-webkit-scrollbar-thumb:hover { border-width: 2px; background-image: linear-gradient(180deg, #9d4edd, #c77dff); box-shadow: 0 0 8px rgba(199,125,255,.5); }
::-webkit-scrollbar-thumb:active { background-image: linear-gradient(180deg, #c77dff, #e0aaff); }

/* barra de título do Electron (arrastável) */
.drag { position: fixed; inset: 0 0 auto 0; height: 32px; -webkit-app-region: drag; z-index: 50; overflow: hidden;
  display: flex; align-items: center; padding-left: 12px; font-size: 12px; color: var(--muted); letter-spacing: .04em;
  background: #0c0a16; }
.drag-logo { width: 18px; height: 18px; max-width: 18px; max-height: 18px; margin-right: 8px; border-radius: 5px; object-fit: cover; }

/* ---------- botões / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line);
  background: var(--panel-2); border-radius: 6px; padding: 8px 14px; transition: .15s; color: inherit; text-decoration: none; }
.btn:hover { border-color: var(--a2); }
.btn.primary { background: linear-gradient(135deg, var(--a), var(--a2)); border: 0; color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 0 18px var(--glow); }
.btn.danger { background: var(--bad); border: 0; color: #fff; font-weight: 600; }
.btn.danger:hover { filter: brightness(1.1); }
.btn.ghost { background: rgba(15, 12, 27, .55); backdrop-filter: blur(6px); }
.btn.big { padding: 11px 22px; font-size: 15px; }
.btn.tiny { padding: 4px 12px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); transition: .15s; }
.icon-btn:hover:not(:disabled) { background: var(--panel-3); color: var(--text); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn.off { color: var(--bad); }

input[type="text"], input:not([type]), input[type="password"], input[type="email"], textarea, select {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--a2); box-shadow: 0 0 0 3px rgba(199, 125, 255, .16); }
textarea { resize: vertical; min-height: 72px; }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--panel-3);
  outline: none; padding: 0; border: 0; width: 100%; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--a2); box-shadow: 0 0 8px var(--glow); border: 0; }
input[type="range"]:focus-visible { box-shadow: 0 0 0 3px rgba(199, 125, 255, .25); }

label { display: block; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }

/* ---------- entrada ---------- */
.join { height: 100%; display: grid; place-items: safe center; padding: 16px; overflow-y: auto;
  background: radial-gradient(900px 520px at 50% -10%, #2a1650 0%, var(--bg) 62%); }
.join-card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  padding: 30px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
.join-card h1 { margin: 14px 0 2px; font-size: 24px; }
.join-card p { margin: 0 0 6px; }
.join-card .btn { width: 100%; margin-top: 18px; }
.logo { width: 72px; height: 72px; max-width: 72px; max-height: 72px; display: block; object-fit: contain; }
.form-error { color: var(--bad); min-height: 20px; margin-top: 10px; font-size: 13px; }

/* ---------- layout ---------- */
.app { height: 100%; display: grid; grid-template-columns: 240px minmax(0, 1fr) 320px; gap: 8px; padding: 8px 8px 0; }
.app.chat-closed { grid-template-columns: 240px minmax(0, 1fr); }
/* chat fechado: some da tela mas continua montado, senão o player de música pararia */
.app.chat-closed .chat { position: fixed; left: -10000px; top: 0; width: 320px; height: 560px; visibility: hidden; pointer-events: none; }

/* cantos superiores com 8px, colados embaixo */
.panel { background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

/* ---------- sidebar ---------- */
.server-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px; border-bottom: 1px solid var(--line); }
.server-logo { width: 32px; height: 32px; max-width: 32px; max-height: 32px; display: block; object-fit: contain; flex: none; }
.channels { flex: 1; overflow-y: auto; padding: 10px 8px; }
.cat { display: flex; align-items: center; gap: 8px; margin: 14px 8px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pill, .live-pill { background: var(--bad); color: #fff; border-radius: 4px; padding: 0 5px; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.channel { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted);
  padding: 7px 10px; border-radius: 6px; text-align: left; }
.channel:hover { background: var(--panel-2); color: var(--text); }
.channel.on { background: var(--panel-3); color: #fff; }
.members { list-style: none; margin: 2px 0 0; padding: 0 0 0 8px; }
.member { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; color: var(--text); min-width: 0; }
button.member { width: 100%; border: 0; background: transparent; text-align: left; color: var(--muted); }
button.member:hover:not(:disabled) { background: var(--panel-2); color: var(--text); }
button.member.on { color: var(--a2); }
.member-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-profile { flex: none; padding: 2px 8px; font-size: 11px; }
.live-row, .dm-row { display: flex; align-items: center; gap: 4px; }
.live-row .live-item, .dm-row .channel { flex: 1; min-width: 0; width: auto; }
.ico { display: inline-flex; color: var(--muted); }
.ico.bad { color: var(--bad); }

.userpanel { display: flex; align-items: center; gap: 4px; padding: 8px; background: var(--bg); border-top: 1px solid var(--line); }
.me-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; margin-left: 4px; }
.me-info strong, .me-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-info span { font-size: 12px; }

/* ---------- avatar ---------- */
.avatar { position: relative; overflow: hidden; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none;
  box-shadow: 0 0 0 2px transparent; transition: box-shadow .12s; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; grid-area: 1 / 1; }
.avatar.clickable, li.member.clickable { cursor: pointer; }
li.member.clickable:hover { background: var(--panel-2); }
.userpanel .icon-btn { width: 26px; height: 26px; }
.userpanel .icon-btn svg { width: 16px; height: 16px; }
.avatar.sm { width: 24px; height: 24px; font-size: 12px; }
.avatar.xl { width: 84px; height: 84px; font-size: 34px; }
.speaking .avatar, .avatar.speaking { box-shadow: 0 0 0 3px var(--ok), 0 0 16px rgba(84, 224, 138, .55); transition: box-shadow .2s ease; }
.tile.speaking { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok), 0 0 22px rgba(84, 224, 138, .25); transition: box-shadow .2s ease, border-color .2s ease; }

/* ---------- palco ---------- */
.stage-head { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-bottom: 1px solid var(--line); flex: none; }
.stage-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.stage-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; padding: 14px; gap: 12px; overflow: auto;
  background: radial-gradient(700px 360px at 50% 0, rgba(157, 78, 221, .10), transparent 70%); }

.empty { margin: auto; text-align: center; max-width: 360px; }
.empty h2 { margin: 18px 0 4px; }
.empty .btn { margin-top: 14px; }
.empty-orb { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--a2), var(--a) 60%, #3a1a66);
  box-shadow: 0 0 60px var(--glow); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* tiles de participantes */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-content: start; }
.tiles:empty { display: none; }
.stage-body:not(.with-live) .tiles { flex: 1; align-content: center; }
.tile { position: relative; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color .12s, box-shadow .12s; min-width: 0; }
.tile-name { font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.tile-badges { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; align-items: center; }
.tile-vol { width: 100%; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.tile-vol .tile-mute { width: 26px; height: 26px; flex: none; }
.tile-vol .vol-text { min-width: 40px; text-align: right; font-size: 12px; }
.tile-vol.is-muted input[type="range"] { opacity: .4; }
.tile.muted-user .avatar { filter: saturate(.5) brightness(.8); }

/* com live ativa: tiles viram uma faixa compacta embaixo */
.stage-body.with-live .tiles { grid-auto-flow: column; grid-auto-columns: 172px; grid-template-columns: none; overflow-x: auto; flex: none; padding-bottom: 2px; }
.stage-body.with-live .tile { padding: 10px; gap: 6px; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
.stage-body.with-live .avatar.xl { width: 36px; height: 36px; font-size: 16px; }
.stage-body.with-live .tile-name { flex: 1; font-size: 13px; }
.stage-body.with-live .tile-badges { position: static; }
.stage-body.with-live .tile-vol { flex-basis: 100%; }

/* ---------- live ---------- */
.live-view { flex: 1; min-height: 0; display: flex; }
.video-wrap { position: relative; flex: 1; min-height: 240px; background: #000; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 0 40px rgba(157, 78, 221, .18); display: flex; }
.video-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-wrap video.live-self { position: absolute; right: 12px; top: 12px; width: 220px; height: 124px; z-index: 3;
  border: 2px solid #ed4245; border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .6); }
.live-view.mini .live-self, .live-view.mini #lv-stop-mine { display: none; }
.live-badge { position: absolute; top: 12px; left: 12px; background: rgba(15, 12, 27, .78); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.live-badge.me { background: #ed4245; border-color: transparent; }
.live-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: rgba(0, 0, 0, .55); }

.live-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(8, 6, 16, .88)); transition: opacity .2s; }
.live-controls .vol { display: flex; align-items: center; gap: 6px; width: 220px; }
.live-controls .icon-btn { color: #fff; }
.vol-text { font-size: 12px; color: var(--muted); min-width: 36px; text-align: right; }
.video-wrap.idle .live-controls, .video-wrap.idle .live-badge { opacity: 0; pointer-events: none; }
.video-wrap.idle { cursor: none; }
.live-view.streaming .video-wrap { box-shadow: 0 0 0 2px #ed4245, 0 16px 50px rgba(0, 0, 0, .45); }
.live-view.streaming .vol { display: none; }

/* "Ocultar": janela flutuante pequena; o stream continua chegando */
.live-view.mini { position: absolute; right: 18px; bottom: 18px; z-index: 5; width: 280px; height: 158px; flex: none; }
.live-view.mini .video-wrap { min-height: 0; box-shadow: 0 10px 40px rgba(0, 0, 0, .6), 0 0 22px var(--glow); }
.live-view.mini .live-badge, .live-view.mini #lv-hide, .live-view.mini #lv-full, .live-view.mini .vol-text { display: none; }
.live-view.mini #lv-switch span { display: none; }
.live-view.mini #lv-switch { padding: 6px 8px; }
.live-view.mini .live-controls .vol { width: 130px; }
.live-view.mini .live-controls { padding: 18px 8px 8px; justify-content: flex-end; }
.live-view.mini #lv-leave span { display: none; }
.live-view.mini #lv-leave { padding: 6px 8px; }
.mini-restore { position: absolute; top: 8px; left: 8px; padding: 4px 10px; font-size: 12px; }

/* Modo jogo: painel sobre a live (aprovar jogadores / entrar como jogador) */
.pad-panel { position: absolute; top: 12px; right: 12px; z-index: 6; width: min(300px, calc(100% - 24px)); display: grid; gap: 6px;
  background: rgba(15, 12, 27, .86); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; color: #fff; }
.pad-panel .pad-title { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.pad-panel .pad-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pad-panel .pad-row > span { flex: 1; min-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.pad-panel .btn { padding: 4px 10px; font-size: 12px; }
.pad-panel .pad-hint { color: var(--muted); font-size: 12px; margin: 0; }
.pad-rtt { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.pad-rtt.ok { color: #3ba55d; }
.pad-rtt.warn { color: #faa61a; }
.pad-rtt.bad { color: #ed4245; }
.pad-slot { display: inline-block; min-width: 24px; text-align: center; font-weight: 800; color: var(--a2); }
#lv-play.on, #lv-audio.on { border-color: var(--a2); box-shadow: 0 0 14px var(--glow); }
.live-view.mini .pad-panel, .live-view.mini #lv-play, .live-view.mini #lv-audio, .live-view.mini #lv-clip { display: none; }

.video-wrap:fullscreen { border-radius: 0; border: 0; }
/* tela cheia parada: controles e selo somem; o painel do modo jogo (P2...) fica só um fantasma a 20% e não atrapalha o clique */
.pad-panel { transition: opacity .25s; }
.video-wrap:fullscreen.idle .pad-panel { opacity: .2; pointer-events: none; }
.video-wrap:fullscreen.idle .live-self { opacity: .2; pointer-events: none; }

/* ---------- barra de chamada ---------- */
.callbar { flex: none; display: flex; justify-content: center; gap: 12px; padding: 12px; background: var(--bg); border-top: 1px solid var(--line); }
.call-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  display: grid; place-items: center; transition: .15s; }
.call-btn:hover:not(:disabled) { background: var(--panel-3); border-color: var(--a2); }
.call-btn:disabled { opacity: .4; cursor: not-allowed; }
.call-btn.off { background: rgba(255, 93, 125, .15); color: var(--bad); border-color: rgba(255, 93, 125, .4); }
.call-btn.active { background: linear-gradient(135deg, var(--a), var(--a2)); border: 0; color: #fff; box-shadow: 0 0 20px var(--glow); }
.call-btn.enter { background: #1f8f55; border: 0; color: #fff; }
.call-btn.hang { background: var(--bad); border: 0; color: #fff; }
.call-btn.enter:hover, .call-btn.hang:hover { filter: brightness(1.12); }

/* ---------- chat ---------- */
.chat { position: relative; }
.chat-head { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg-head { display: flex; align-items: baseline; gap: 8px; }
.msg-head strong { color: var(--a2); }
.msg-head strong.clickable { cursor: pointer; }
.msg-head strong.clickable:hover { text-decoration: underline; }
.msg.mine .msg-head strong { color: #fff; }
.msg-head time { font-size: 11px; color: var(--muted); }
.msg:not(.system) { display: flex; gap: 8px; align-items: flex-start; }
.msg-body { min-width: 0; flex: 1; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-files { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.msg-img, .msg-video { max-width: min(280px, 100%); max-height: 220px; border-radius: 8px; display: block; background: #000; }
.msg-img { cursor: zoom-in; object-fit: cover; }
.msg-audio { width: min(260px, 100%); }
.msg-file { display: flex; flex-direction: column; gap: 2px; max-width: 100%; padding: 8px 10px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.msg-file:hover { border-color: var(--a2); }
.msg-file span { color: var(--muted); font-size: 12px; }
.pending { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 0; background: var(--bg); }
.pending-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 4px 3px 6px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.pending-chip img { width: 32px; height: 32px; object-fit: cover; border-radius: 4px; }
.pending-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(5, 3, 12, .86); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: min(960px, 100%); max-height: 100%; object-fit: contain; border-radius: 8px; }
.msg.system { color: var(--muted); font-size: 12px; text-align: center; }
.jump { position: absolute; left: 50%; transform: translateX(-50%); bottom: 70px; border: 0; border-radius: 999px; padding: 6px 14px;
  background: linear-gradient(135deg, var(--a), var(--a2)); color: #fff; font-size: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.composer { flex: none; display: flex; gap: 6px; padding: 10px; background: var(--bg); border-top: 1px solid var(--line); }
.composer input { flex: 1; }
.composer .send { color: var(--a2); width: 38px; height: 38px; }

/* ---------- modal de transmissão ---------- */
.modal { position: fixed; inset: 0; background: rgba(5, 3, 12, .72); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 80; padding: 16px; }
.modal-card { width: min(760px, 100%); max-height: 100%; overflow: auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0; padding: 18px 20px 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal-card header { display: flex; align-items: center; justify-content: space-between; }
.modal-card h3 { margin: 0; font-size: 18px; }
.modal-card footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; max-height: 360px; overflow: auto; padding: 2px; }
.pk-card { border: 2px solid transparent; background: var(--panel-2); border-radius: 8px; padding: 6px; text-align: left; transition: .12s; }
.pk-card:hover { border-color: var(--line); }
.pk-card.selected { border-color: var(--a2); box-shadow: 0 0 18px var(--glow); }
.pk-thumb { aspect-ratio: 16 / 9; background: #000; border-radius: 5px; overflow: hidden; display: grid; place-items: center; }
.pk-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pk-name { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pk-icon { width: 16px; height: 16px; max-width: 16px; max-height: 16px; object-fit: contain; }
.pk-opts { display: flex; flex-wrap: wrap; align-items: end; gap: 18px; margin-top: 14px; }
.pk-opts label { margin: 0; min-width: 220px; }
.pk-opts select { margin-top: 6px; }
.pk-opts .check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); min-width: 0; padding-bottom: 8px; }
.pk-opts .check input { width: auto; accent-color: var(--a); }
.pk-modal { width: min(880px, 100%); }
.pk-tabs { display: flex; gap: 6px; margin: 12px 0 8px; }
.pk-tab { border: 0; background: transparent; color: var(--muted); border-radius: 6px; padding: 6px 12px; font-weight: 700; }
.pk-tab.on { background: var(--panel-3); color: #fff; }
.channel.dm .member-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.channel .badge { margin-left: auto; background: var(--bad); color: #fff; border-radius: 999px; min-width: 18px; padding: 0 5px; font-size: 11px; font-weight: 800; }
.dm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--panel-3); flex: none; }
.dm-dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.audio-card { width: min(420px, 100%); }
.audio-card .check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); margin: 12px 0 0; }
.audio-card .check input { width: auto; accent-color: var(--a); }
.audio-card .hint { margin: 14px 0 0; }

/* ---------- perfil ---------- */
.profile-card { width: min(460px, 100%); padding: 0 0 18px; position: relative; }
.pf-close { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(15, 12, 27, .55); color: #fff; }
.pf-banner-wrap { position: relative; height: 128px; margin: 8px 8px 0; border-radius: var(--gc-radius-lg, 12px); overflow: hidden; background: linear-gradient(135deg, #2a1650, #9d4edd 70%, #c77dff); }
/* o banner cobre todo o topo do card e é clicável em toda a área */
.pf-banner { position: absolute; inset: 0; cursor: pointer; border-radius: inherit; }
.pf-banner:focus-visible { outline: 2px solid var(--a2); outline-offset: -2px; }
.pf-banner:not(.has):not(:focus-visible) { cursor: default; }
.pf-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-banner-btn { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.pf-body { padding: 0 18px; }
.pf-avatar-wrap { display: flex; align-items: flex-end; gap: 12px; margin-top: -42px; position: relative; }
.pf-avatar-wrap .avatar.xl { border: 4px solid var(--panel); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.pf-body h3 { margin: 10px 0 4px; font-size: 20px; }
.pf-bio { margin: 0 0 12px; padding: 0; background: none; border: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-bio.empty { color: var(--muted); font-style: italic; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
#pf-edit-btn { margin-top: 8px; }
.profile-card.editing .pf-banner,
.profile-card.editing #pf-avatar { cursor: pointer; }

/* aviso fixo enquanto a sala está sem conexão */
.net-banner { position: fixed; left: 16px; right: 16px; top: calc(var(--titlebar) + 10px); z-index: 70;
  background: #3a1422; border: 1px solid var(--bad); color: #fff; text-align: center; font-weight: 600;
  padding: 10px 14px; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; top: calc(var(--titlebar) + 12px); display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--panel-3); border: 1px solid var(--line); border-left: 3px solid var(--a2); padding: 10px 14px; border-radius: 6px;
  max-width: 320px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: in .2s ease; }
.toast.error { border-left-color: var(--bad); }
.toast.ok { border-left-color: var(--ok); }
.toast.warn { border-left-color: #ffc857; }
.toast.out { opacity: 0; transform: translateX(10px); transition: .3s; }
@keyframes in { from { opacity: 0; transform: translateX(10px); } }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .app { grid-template-columns: 200px minmax(0, 1fr) 280px; }
  .app.chat-closed { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .app, .app.chat-closed { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .sidebar { max-height: 38vh; }
  .app:not(.chat-closed) .chat { position: fixed; inset: calc(var(--titlebar) + 8px) 8px 0 auto; width: min(340px, 92vw); z-index: 30; box-shadow: -20px 0 50px rgba(0, 0, 0, .5); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }


/* ================================================================== */
/* Feedback de clique                                                  */
/* ================================================================== */
.btn, .icon-btn, .call-btn, .channel, .pk-card, button.member { transition: transform .08s ease, background .15s, border-color .15s, box-shadow .15s, filter .15s; }
.btn:active:not(:disabled), .icon-btn:active:not(:disabled), .call-btn:active:not(:disabled), .channel:active, .pk-card:active, button.member:active:not(:disabled) { transform: scale(.93); }
.call-btn:focus-visible, .icon-btn:focus-visible, .btn:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
.call-btn.enter:hover:not(:disabled) { box-shadow: 0 0 18px rgba(84, 224, 138, .45); }
.call-btn.hang:hover:not(:disabled) { box-shadow: 0 0 18px rgba(255, 93, 125, .5); }

/* ================================================================== */
/* IruBot – player de música fixo acima do chat                     */
/* ================================================================== */
.music { flex: none; display: flex; flex-direction: column; max-height: 66%; min-height: 0; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(157, 78, 221, .10), transparent 70%), var(--panel); }
.music-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; flex: none; }
.music-badge { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--a), var(--a2)); box-shadow: 0 0 14px var(--glow); }
.music-id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.music-id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-body { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 8px; min-height: 0; overflow-y: auto; }
.music.collapsed .music-body { max-height: 0; padding: 0; overflow: hidden; visibility: hidden; } /* continua montado: o som segue tocando */
.music.collapsed .mu-composer { display: none; }

/* vídeo: o iframe é desenhado no tamanho da qualidade escolhida e reduzido com transform (ver music.js) */
.mu-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); flex: none; }
.mu-video.audio { aspect-ratio: auto; height: 0; border: 0; }
.mu-frame { position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; /* ninguém desincroniza clicando no vídeo */ }
.mu-frame iframe { width: 100%; height: 100%; display: block; }
.mu-video:not(.has-video) .mu-frame { visibility: hidden; }
.mu-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; color: var(--muted); font-size: 12px; background: radial-gradient(circle at 50% 30%, rgba(157, 78, 221, .22), var(--bg) 70%); }
.mu-idle svg { width: 28px; height: 28px; color: var(--a2); }
.mu-unlock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 0 24px var(--glow); }

.mu-now { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mu-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mu-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mu-by { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-prog { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.mu-prog .small { min-width: 34px; font-variant-numeric: tabular-nums; }
.mu-prog .small:last-child { text-align: right; }

/* equalizador animado (só enquanto toca) */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
.eq i { width: 3px; height: 4px; background: var(--a2); border-radius: 2px; }
.music.is-playing .eq i { animation: eq .9s ease-in-out infinite; }
.music.is-playing .eq i:nth-child(2) { animation-delay: -.3s; }
.music.is-playing .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

.mu-controls { display: flex; align-items: center; gap: 4px; }
.mu-controls .icon-btn { color: var(--text); }
.mu-controls #mu-play:not(:disabled) { background: linear-gradient(135deg, var(--a), var(--a2)); color: #fff; border-radius: 50%; box-shadow: 0 0 12px var(--glow); }
.mu-controls #mu-vol { flex: 1; min-width: 40px; }
.mu-controls select { width: auto; padding: 5px 6px; font-size: 12px; }

.mu-queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 96px; overflow-y: auto; }
.mu-queue li { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 6px; font-size: 12px; min-width: 0; }
.mu-queue li:hover { background: var(--panel-2); }
.mu-q-n { color: var(--a2); font-weight: 700; min-width: 14px; text-align: right; }
.mu-q-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-q-by { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiny-x { width: 22px; height: 22px; }
.mu-q-more { justify-content: center; }

.mu-log { display: flex; flex-direction: column; gap: 3px; max-height: 92px; min-height: 40px; overflow-y: auto; padding: 6px 8px; font-size: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.mu-msg { overflow-wrap: anywhere; }
.mu-msg strong { color: var(--text); }
.mu-msg.bot strong { color: var(--a2); }
.mu-msg.bot { color: var(--muted); }
.mu-msg.bot.k-error { color: #ffb3c1; }
.mu-msg.bot.k-play { color: var(--text); }
.mu-composer { flex: none; display: flex; gap: 6px; padding: 0 10px 10px; }
.mu-composer input { flex: 1; padding: 7px 10px; font-size: 13px; }
.mu-composer .send { color: var(--a2); width: 34px; height: 34px; }

/* chip do "tocando agora" no topo do palco (aparece com o chat fechado) */
.mu-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; border: 1px solid var(--line); background: var(--panel-2);
  border-radius: 999px; padding: 3px 12px; color: var(--a2); font-size: 12px; }
.mu-chip:hover { border-color: var(--a2); }
.mu-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.mu-chip svg { width: 14px; height: 14px; }

@media (max-height: 760px) { .mu-log { max-height: 56px; } .music { max-height: 72%; } }

/* volume da live na barra lateral (mesmo modelo do slider dos participantes) */
.side-vol { display: flex; align-items: center; gap: 6px; margin: 4px 8px 0 16px; padding: 4px 8px 4px 4px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.side-vol .icon-btn { width: 26px; height: 26px; }
.side-vol input[type="range"] { flex: 1; min-width: 40px; }

/* V5: cores do perfil (degradê estilo Nitro) e saída da música */
.profile-card.has-theme { background: linear-gradient(145deg, var(--pf1), var(--pf2)); }
.profile-card.has-theme .pf-banner-wrap { background: linear-gradient(135deg, var(--pf1), var(--pf2)); }
.profile-card.has-theme .pf-body { display: flow-root; background: none; backdrop-filter: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .65); } /* sem caixa em volta da bio: texto limpo sobre o degradê */
.profile-card.has-theme { padding-bottom: 12px; }
.pf-colors { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }
.pf-colors input[type=color] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.pf-mix { flex: 1; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--pf1, #9d4edd), var(--pf2, #2a1650)); }
.mu-out { margin-top: 4px; max-width: 100%; font-size: 11px; padding: 3px 6px; border-radius: 8px; }
.mu-out:disabled { opacity: .55; cursor: not-allowed; }

/* V5.1: texto legível ao editar perfil/bio */
textarea, .pf-body input[type="text"], .pf-body input:not([type]) { color: var(--text); font: inherit; caret-color: var(--a2); }
textarea::placeholder, input::placeholder { color: var(--muted); opacity: 1; }
.profile-card.has-theme textarea, .profile-card.has-theme input[type="text"], .profile-card.has-theme input:not([type]) { background: rgba(15, 12, 27, .85); }

/* V5.2: seta para fechar o chat no celular */
.chat-close { display: none; margin-left: auto; }
@media (max-width: 820px) { .chat-close { display: grid; } }


/* ---------- login / cadastro / cookies / boas-vindas (v6) ---------- */
.link { background: none; border: 0; padding: 0; color: var(--a2); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.link:hover { color: #e0b3ff; }
.link:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; border-radius: 3px; }

.auth-card .logo { margin: 0 auto; }
.auth-card h1, .auth-card > p { text-align: center; }
.auth-view .btn + .btn { margin-top: 10px; }
.auth-title { margin: 6px 0 8px; font-size: 20px; }
.auth-note { margin: 12px 0 0; }
.auth-loading { text-align: center; margin: 22px 0 6px; }
.auth-back { display: block; margin: 16px auto 0; }
.auth-foot { text-align: center; margin-top: 16px; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; }

.code-input { text-align: center; font-size: 28px; font-weight: 600; letter-spacing: .45em; padding-left: calc(12px + .45em) !important;
  font-variant-numeric: tabular-nums; }
.code-input::placeholder { letter-spacing: .45em; opacity: .35; }

.cookie-modal { z-index: 95; }
.cookie-card { width: min(480px, 100%); }
.cookie-card h3 { margin-bottom: 8px; }
.cookie-card p { margin: 0 0 10px; }
.ck-list { margin: 0 0 10px; padding-left: 18px; }
.ck-list li { margin: 4px 0; }
.ck-actions { flex-wrap: wrap; }

.welcome-modal { z-index: 90; }
.welcome-card { width: min(460px, 100%); text-align: center; padding: 26px 26px 22px; }
.welcome-card .wl-logo { margin: 0 auto 10px; }
.welcome-card h3 { font-size: 22px; margin-bottom: 8px; }
.welcome-card p { margin: 0 0 12px; }
.wl-list { list-style: none; margin: 14px 0; padding: 0; text-align: left; display: grid; gap: 8px; }
.wl-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; }
.wl-list li svg { color: var(--a2); margin-top: 2px; }
.welcome-card footer { justify-content: center; }
.welcome-card footer .btn { width: 100%; }

/* ---------- servidores ---------- */
.srv-modal { width: min(640px, 100%); }
.srv-list { display: grid; gap: 8px; max-height: 360px; overflow: auto; margin-top: 12px; }
.srv-card { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.srv-card:hover { border-color: var(--a2); }
.srv-badge { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--a), var(--a2)); }
.srv-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.srv-info strong, .srv-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-empty { text-align: center; padding: 24px 0; }
.srv-create label { display: block; margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }

/* indicação de onde você está (lobby geral / servidor / privado) */
.where-chip { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--panel-3); color: var(--muted); }
#chat-head[data-where="lobby"] { box-shadow: inset 0 -2px 0 var(--ok); }
#chat-head[data-where="lobby"] .where-chip { color: var(--ok); background: rgba(84, 224, 138, .12); }
#chat-head[data-where="server"] { box-shadow: inset 0 -2px 0 var(--a2); }
#chat-head[data-where="server"] .where-chip { color: #fff; background: var(--a); }
#me-name { cursor: pointer; }
#me-name:hover { text-decoration: underline; }

/* ---------- câmera no painel de áudio ---------- */
.au-cam-preview { width: 100%; max-height: 180px; margin-top: 8px; border-radius: 10px; background: #000; object-fit: cover; transform: scaleX(-1); }
.audio-card #au-cam-test { margin-top: 8px; }

/* ---------- ícone do servidor, canais e painel do dono ---------- */
.srv-ico { flex: none; display: inline-grid; place-items: center; overflow: hidden; border-radius: 30%; background: linear-gradient(135deg, var(--a), var(--a2)); color: #fff; font-weight: 700; }
.srv-ico.sm { width: 22px; height: 22px; font-size: 12px; }
.srv-ico.xl { width: 72px; height: 72px; font-size: 30px; }
.srv-ico img { width: 100%; height: 100%; object-fit: cover; }
.ch-list { list-style: none; margin: 0 0 6px 14px; padding: 0 0 0 8px; border-left: 1px solid var(--line); }
.ch-list .channel { width: 100%; }
.ch-voice-users { list-style: none; margin: 0 0 2px 22px; padding: 0; }
.sa-body { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow-y: auto; }
.sa-body footer { margin-top: 10px; display: flex; justify-content: flex-end; }
.sa-icon-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.sa-icon-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sa-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: var(--panel-2); }
.sa-add { display: flex; gap: 8px; }
.sa-add select { width: auto; }
.btn.danger.tiny { background: rgba(255, 93, 125, .15); color: var(--bad); border: 1px solid rgba(255, 93, 125, .4); }

/* ---------- versão ---------- */
.ver-badge { margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: var(--panel-3); color: var(--a2); border: 1px solid var(--line); white-space: nowrap; }
.ver-login { margin-right: 10px; }


/* ---------- Design System v1.0.4: normalização global ---------- */
:root {
  --bg: var(--gc-surface-1);
  --panel: var(--gc-surface-2);
  --panel-2: var(--gc-surface-3);
  --panel-3: var(--gc-surface-4);
  --line: var(--gc-line);
  --a: var(--gc-brand-500);
  --a2: var(--gc-brand-400);
  --glow: var(--gc-brand-glow);
  --text: var(--gc-text);
  --muted: var(--gc-text-muted);
  --bad: var(--gc-bad);
  --ok: var(--gc-ok);
  --warn: var(--gc-warn);
  --radius: var(--gc-radius-md);
  font-family: var(--gc-font-sans);
}
body { font-family: var(--gc-font-sans); font-size: var(--gc-fs-md); line-height: var(--gc-lh-base); }
.btn {
  gap: var(--gc-sp-2);
  border-color: var(--gc-line);
  background: var(--gc-surface-3);
  border-radius: var(--gc-radius-sm);
  padding: var(--gc-sp-2) var(--gc-sp-4);
  transition: var(--gc-dur) var(--gc-ease);
}
.btn.primary { background: var(--gc-gradient-brand); color: var(--gc-text-on-brand); }
.btn.danger { background: var(--gc-bad); color: var(--gc-text-on-brand); }
.btn.ghost { background: var(--gc-surface-2); }
.btn.tiny { padding: var(--gc-sp-1) var(--gc-sp-3); font-size: var(--gc-fs-sm); }
.btn:focus-visible, .icon-btn:focus-visible, .pk-tab:focus-visible {
  outline: var(--gc-focus-ring); outline-offset: 2px;
}
.icon-btn { border-radius: var(--gc-radius-sm); transition: var(--gc-dur) var(--gc-ease); }
input[type="text"], input:not([type]), input[type="password"], input[type="email"],
textarea, select {
  border-color: var(--gc-line);
  border-radius: var(--gc-radius-sm);
  background: var(--gc-surface-1);
  padding: var(--gc-sp-3) var(--gc-sp-3);
  font: inherit;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gc-brand-400);
  box-shadow: 0 0 0 3px var(--gc-brand-ring);
}
label { font-size: var(--gc-fs-xs); font-weight: var(--gc-fw-semibold); margin: var(--gc-sp-4) 0 var(--gc-sp-2); }
.modal { padding: var(--gc-sp-6); }
.modal-card {
  border-radius: var(--gc-radius-lg);
  padding: var(--gc-sp-6);
  box-shadow: var(--gc-shadow-2);
}
.modal-card header { gap: var(--gc-sp-4); margin-bottom: var(--gc-sp-2); }
.modal-card h3 { font-size: var(--gc-fs-xl); font-weight: var(--gc-fw-bold); }
.modal-card footer { gap: var(--gc-sp-3); }
.pk-tabs { gap: var(--gc-sp-2); margin: var(--gc-sp-4) 0 var(--gc-sp-3); }
.pk-tab { border-radius: var(--gc-radius-sm); padding: var(--gc-sp-2) var(--gc-sp-4); transition: var(--gc-dur); }
.pk-tab:hover { background: var(--gc-surface-3); color: var(--gc-text); }
.pk-tab.on { background: var(--gc-surface-4); color: var(--gc-text); }

/* ---------- Painel de administração do servidor ---------- */
.srv-modal {
  width: min(680px, 100%);
  padding: var(--gc-sp-6);
}
.sa-body {
  gap: var(--gc-sp-4);
  max-height: min(62vh, 620px);
  padding: var(--gc-sp-1);
}
.sa-body > label { margin-top: var(--gc-sp-2); }
.sa-body > input, .sa-body > textarea { margin-bottom: var(--gc-sp-1); }
.sa-body footer { margin-top: var(--gc-sp-3); }
.sa-icon-row { gap: var(--gc-sp-5); margin-bottom: var(--gc-sp-2); }
.sa-icon-btns { gap: var(--gc-sp-2); }
.sa-list { gap: var(--gc-sp-2); }
.sa-row {
  gap: var(--gc-sp-3);
  min-height: 52px;
  padding: var(--gc-sp-3) var(--gc-sp-4);
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-radius-md);
  background: var(--gc-surface-3);
}
.sa-row .member-name { flex: 1; min-width: 0; }
.sa-add { gap: var(--gc-sp-3); align-items: center; }
.sa-add input { flex: 1; min-width: 0; }
.sa-add select { min-width: 112px; }
.sa-body > .muted.small { margin: 0 0 var(--gc-sp-1); }
@media (max-width: 560px) {
  .modal { padding: var(--gc-sp-3); }
  .srv-modal { padding: var(--gc-sp-4); }
  .sa-add { align-items: stretch; flex-direction: column; }
  .sa-add select { width: 100%; }
  .sa-row { gap: var(--gc-sp-2); padding: var(--gc-sp-3); }
}

/* Responder e excluir mensagens */
.msg { position: relative; }
.msg-actions { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.msg:hover .msg-actions, .msg:focus-within .msg-actions { opacity: 1; }
.msg-actions .icon-btn { width: 24px; height: 24px; font-size: 13px; line-height: 1; }
.msg-actions .icon-btn.danger:hover { color: #ff6b81; }
@media (hover: none) { .msg-actions { opacity: .7; } }
.msg-reply { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 4px; padding: 4px 8px; border-left: 3px solid var(--a2);
  background: rgba(255,255,255,.05); border-radius: 0 6px 6px 0; cursor: pointer; font-size: 12px; max-width: 100%; }
.msg-reply strong { color: var(--a2); }
.msg-reply span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.flash { animation: msgflash 1.4s ease; }
@keyframes msgflash { 0%, 60% { background: rgba(199,125,255,.22); } 100% { background: transparent; } }
.reply-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-left: 3px solid var(--a2);
  background: rgba(255,255,255,.05); font-size: 12px; }
.reply-bar[hidden] { display: none; }
.reply-bar-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.reply-bar-text strong { color: var(--a2); }

/* Status de jogo no perfil */
.pf-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; padding-bottom: 4px; text-shadow: none; }
.pf-badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 9px; border-radius: var(--gc-radius-pill, 999px); font-size: 12px; font-weight: 700; line-height: 1.3; background: rgba(15, 12, 27, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.pf-badge-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-badge.playing { border-color: var(--ok, #3ddc84); }
.pf-badge.playing svg { color: var(--ok, #3ddc84); flex: none; }
.pf-badge.player { background: var(--a2, #9d4edd); border-color: transparent; letter-spacing: .02em; }
.profile-card.editing .pf-status { display: none; }
.pf-zoom { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .85); cursor: zoom-out; }
.pf-zoom img { max-width: 100%; max-height: 100%; border-radius: var(--gc-radius-lg, 12px); object-fit: contain; }

/* ================================================================== */
/* IruBot · favoritos (aba lateral), coração e prompt de playlist  */
/* Só tokens do Design System (--gc-*)                                */
/* ================================================================== */

/* coração da faixa atual */
.mu-fav { flex: none; width: 28px; height: 28px; color: var(--gc-text-muted); }
.mu-fav.on { color: var(--gc-bad); }
.mu-fav.on:hover:not(:disabled) { color: var(--gc-bad); }

/* aba (estilo aba de navegador) no cabeçalho do bot */
.mu-tab { flex: none; display: inline-flex; align-items: center; gap: var(--gc-sp-1); height: 28px; padding: 0 var(--gc-sp-2);
  border: 1px solid var(--gc-line); border-bottom: 0; border-radius: var(--gc-radius-sm) var(--gc-radius-sm) 0 0;
  background: var(--gc-surface-3); color: var(--gc-text-muted); font: inherit; font-size: var(--gc-fs-sm); font-weight: var(--gc-fw-semibold);
  cursor: pointer; align-self: flex-end; transition: background var(--gc-dur) var(--gc-ease), color var(--gc-dur) var(--gc-ease); }
.mu-tab:hover { background: var(--gc-surface-4); color: var(--gc-text); border-color: var(--gc-line-strong); }
.mu-tab.active { background: var(--gc-surface-2); color: var(--gc-text); border-color: var(--gc-brand-400); }
.mu-tab:focus-visible { outline: 2px solid var(--gc-brand-400); outline-offset: 1px; }
.mu-tab svg { width: 14px; height: 14px; color: var(--gc-bad); }
.mu-tab .gc-badge { padding: 0 var(--gc-sp-1); font-size: var(--gc-fs-2xs); }

/* gaveta lateral: desliza da direita sobre o chat (abaixo do cabeçalho do chat) */
.mu-drawer { position: absolute; z-index: var(--gc-z-overlay); top: 48px; right: 0; bottom: 0; width: 100%; max-width: 360px;
  display: flex; flex-direction: column; min-height: 0; background: var(--gc-surface-2); border-left: 1px solid var(--gc-line-strong);
  box-shadow: var(--gc-shadow-2); transform: translateX(105%); visibility: hidden;
  transition: transform var(--gc-dur-slow) var(--gc-ease), visibility 0s linear var(--gc-dur-slow); }
.mu-drawer.open { transform: none; visibility: visible; transition: transform var(--gc-dur-slow) var(--gc-ease); }
@media (prefers-reduced-motion: reduce) { .mu-drawer, .mu-drawer.open { transition: none; } }
.mu-drawer-head { flex: none; display: flex; align-items: flex-end; gap: var(--gc-sp-2); padding: var(--gc-sp-2) var(--gc-sp-2) 0 var(--gc-sp-3); border-bottom: 1px solid var(--gc-line); }
.mu-drawer-head .icon-btn { margin-left: auto; margin-bottom: var(--gc-sp-1); }
.mu-drawer-tab { display: inline-flex; align-items: center; gap: var(--gc-sp-2); padding: var(--gc-sp-2) var(--gc-sp-3);
  border: 1px solid var(--gc-brand-400); border-bottom: 0; border-radius: var(--gc-radius-sm) var(--gc-radius-sm) 0 0;
  background: var(--gc-surface-3); color: var(--gc-text); font-weight: var(--gc-fw-bold); font-size: var(--gc-fs-md); margin-bottom: -1px; }
.mu-drawer-tab svg { color: var(--gc-bad); }
.mu-fav-list { flex: 1; min-height: 0; list-style: none; margin: 0; padding: var(--gc-sp-2); display: flex; flex-direction: column; gap: var(--gc-sp-1); overflow-y: auto; }
.mu-fav-item { display: flex; align-items: center; gap: var(--gc-sp-2); padding: var(--gc-sp-2); border: 1px solid var(--gc-line); border-radius: var(--gc-radius-md); background: var(--gc-surface-3); min-width: 0; }
.mu-fav-item:hover { background: var(--gc-surface-4); border-color: var(--gc-line-strong); }
.mu-fav-item.is-star { border-color: var(--gc-warn-line); background: linear-gradient(90deg, var(--gc-warn-bg), transparent 60%), var(--gc-surface-3); }
.mu-star-badge { flex: none; padding: var(--gc-sp-1); }
.mu-star-badge svg { display: block; }
.mu-fav-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: var(--gc-lh-tight); }
.mu-fav-title { font-weight: var(--gc-fw-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-fav-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-fav-play { color: var(--gc-brand-400); }
.mu-fav-del:hover:not(:disabled) { color: var(--gc-bad); }
.mu-fav-empty { padding: var(--gc-sp-6) var(--gc-sp-3); text-align: center; font-size: var(--gc-fs-sm); }
.mu-fav-foot { flex: none; display: flex; align-items: center; gap: var(--gc-sp-1); margin: 0; padding: var(--gc-sp-2) var(--gc-sp-3); border-top: 1px solid var(--gc-line); }
.mu-fav-foot svg { color: var(--gc-warn); flex: none; width: 12px; height: 12px; }

/* prompt "playlist inteira ou faixa única?" */
.mu-log:has(.mu-ask) { max-height: 170px; }
.mu-ask { display: flex; flex-direction: column; gap: var(--gc-sp-2); padding: var(--gc-sp-2) var(--gc-sp-3); margin: var(--gc-sp-1) 0;
  border: 1px solid var(--gc-info-line); border-radius: var(--gc-radius-md); background: var(--gc-info-bg); color: var(--gc-text); }
.mu-ask-q { display: flex; align-items: flex-start; gap: var(--gc-sp-2); }
.mu-ask-q svg { flex: none; color: var(--gc-brand-400); margin-top: 1px; }
.mu-ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gc-sp-2); }
.mu-ask-left { margin-left: auto; font-variant-numeric: tabular-nums; }
.mu-ask-track { height: 3px; border-radius: var(--gc-radius-pill); background: var(--gc-surface-4); overflow: hidden; }
.mu-ask-bar { display: block; height: 100%; width: 100%; background: var(--gc-brand-500); transition: width .25s linear; }

/* Volume sensível + barrinhas dinâmicas de nível (beta 1.11.0) */
.vu { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; flex: none; }
.vu i { width: 3px; border-radius: 2px; background: var(--panel-3); transition: background .08s, opacity .08s; opacity: .55; }
.vu i:nth-child(1) { height: 25%; } .vu i:nth-child(2) { height: 32%; } .vu i:nth-child(3) { height: 40%; }
.vu i:nth-child(4) { height: 48%; } .vu i:nth-child(5) { height: 56%; } .vu i:nth-child(6) { height: 64%; }
.vu i:nth-child(7) { height: 72%; } .vu i:nth-child(8) { height: 82%; } .vu i:nth-child(9) { height: 91%; } .vu i:nth-child(10) { height: 100%; }
.vu i.on { opacity: 1; background: #4ade80; }
.vu i.on:nth-child(n+7) { background: #facc15; }
.vu i.on:nth-child(n+9) { background: #f87171; }
.tile-vol.is-muted .vu { opacity: .35; }
.tile-vol { flex-wrap: nowrap; }

/* ---------- auto-setup do Python (modal do modo jogo) ---------- */
.ps-modal { z-index: 96; } /* acima do seletor de tela */
.ps-card { width: min(460px, 100%); }
.ps-card h3 { margin-bottom: 8px; }
.ps-card p { margin: 0 0 10px; }
.ps-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 14px 0 8px; }
.ps-bar > i { display: block; height: 100%; width: 0; background: var(--a); transition: width .25s ease; }
.ps-status { min-height: 1.2em; }

/* beta 1.14.0: contraste do nome e da bio sobre o degradê do perfil.
   Texto num tom brando (não branco puro) com uma borda fina em volta das letras: lê em qualquer cor.
   Fundo claro demais (classe pf-light, calculada em profile.js) troca para texto escuro com borda clara. */
.profile-card.has-theme .pf-body { text-shadow: none; }
.profile-card.has-theme #pf-name,
.profile-card.has-theme .pf-bio,
.profile-card.has-theme .pf-body .muted {
  color: #f3eefa;
  text-shadow: -1px -1px 0 rgba(15, 10, 28, .78), 1px -1px 0 rgba(15, 10, 28, .78), -1px 1px 0 rgba(15, 10, 28, .78),
    1px 1px 0 rgba(15, 10, 28, .78), 0 2px 6px rgba(0, 0, 0, .45);
}
.profile-card.has-theme .pf-body .muted, .profile-card.has-theme .pf-bio.empty { color: #ddd3ee; }
.profile-card.has-theme.pf-light #pf-name,
.profile-card.has-theme.pf-light .pf-bio,
.profile-card.has-theme.pf-light .pf-body .muted {
  color: #1d1630;
  text-shadow: -1px -1px 0 rgba(255, 255, 255, .7), 1px -1px 0 rgba(255, 255, 255, .7), -1px 1px 0 rgba(255, 255, 255, .7),
    1px 1px 0 rgba(255, 255, 255, .7), 0 1px 5px rgba(255, 255, 255, .35);
}
.profile-card.has-theme.pf-light .pf-body .muted, .profile-card.has-theme.pf-light .pf-bio.empty { color: #3a3150; }
.mu-vol-text { min-width: 34px; white-space: nowrap; font-size: 11px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.profile-card.has-theme .pf-body label { color: #e6ddf3; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.profile-card.has-theme.pf-light .pf-body label { color: #3a3150; text-shadow: 0 1px 2px rgba(255, 255, 255, .6); }

/* =====================================================================
   Celular (beta 1.14.0) — uma tela por vez + abas embaixo (mobile.js)
   ===================================================================== */
.m-tabs { display: none; }

@media (max-width: 820px) {
  /* no app de Windows (janela estreita) a barra de título continua: ela é que arrasta a janela */
  html:not(.electron) { --titlebar: 0px; }
  html:not(.electron) .drag { display: none !important; }
  html, body { height: var(--app-h, 100dvh); }
  body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }

  /* os três painéis ocupam a tela toda; só a aba escolhida aparece (os outros seguem montados e tocando) */
  #app { --tabs-h: calc(58px + env(safe-area-inset-bottom)); display: block; position: relative; height: 100%; padding: 0; gap: 0; }
  #app.kb-open { --tabs-h: 0px; }
  #app > .panel,
  #app.chat-closed > .chat {
    position: absolute; left: 0; right: 0; top: 0; bottom: var(--tabs-h); width: auto; height: auto; max-height: none;
    border: 0; border-radius: 0; box-shadow: none; z-index: 1; visibility: visible; pointer-events: auto;
    padding-top: env(safe-area-inset-top);
  }
  #app:not([data-mview="side"]) > .sidebar,
  #app:not([data-mview="stage"]) > .stage,
  #app:not([data-mview="chat"]) > .chat { visibility: hidden; pointer-events: none; z-index: 0; }

  /* barra de abas */
  .m-tabs { display: flex; position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; height: var(--tabs-h);
    padding: 0 6px env(safe-area-inset-bottom); background: #0c0a16; border-top: 1px solid var(--line); }
  #app.kb-open .m-tabs { display: none; }
  .m-tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
  .m-tab svg { width: 22px; height: 22px; }
  .m-tab.on { color: var(--a2); }
  .m-tab.on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--a), var(--a2)); box-shadow: 0 0 10px var(--glow); }
  .m-tab.dot::after { content: ''; position: absolute; top: 9px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 50%;
    background: var(--bad); box-shadow: 0 0 0 2px #0c0a16; }

  /* cabeçalhos: o que não serve no celular sai (download do app de Windows, abrir/fechar chat: virou aba) */
  .stage-head { padding: 0 10px; gap: 6px; height: 52px; }
  .stage-head .dl-app, #toggle-chat, .mu-chip { display: none !important; }
  .stage-title { white-space: nowrap; }
  #stage-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .chat-close { display: grid; }
  .server-head { padding: 12px 14px; }

  /* chamada */
  .stage-body { padding: 10px; gap: 10px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .tile { padding: 14px 10px 10px; }
  .callbar { gap: 10px; padding: 10px 8px; flex-wrap: wrap; }
  .call-btn { width: 54px; height: 54px; }

  /* live: vídeo em cima, controles só com ícones (o texto cabia no PC, aqui empurrava tudo) */
  .video-wrap { min-height: 200px; }
  .stage-body.with-live .live-view { flex: none; aspect-ratio: 16 / 9; max-height: 52vh; }
  .live-controls { gap: 4px; padding: 26px 8px 8px; flex-wrap: wrap; }
  .live-controls .vol { width: auto; flex: 1 1 120px; min-width: 110px; }
  .live-controls .btn { padding: 8px 10px; }
  .live-controls .btn > span { display: none; }
  html:not(.electron) #lv-clip, html:not(.electron) #lv-play, html:not(.electron) #lv-switch,
  html:not(.electron) #lv-audio { display: none !important; } /* só existem no app de Windows */

  /* chat + bot de música */
  .music { max-height: 58%; overflow-y: auto; overscroll-behavior: contain; }
  .music > * { flex-shrink: 0; } /* nada encolhe por cima do outro: o painel rola */
  .composer { padding: 8px; }
  .msg-actions { opacity: .8; }

  /* janelas: ocupam a tela, com rolagem */
  .modal { padding: 0; place-items: end stretch; }
  .modal-card { width: 100%; max-height: calc(var(--app-h, 100dvh) - 24px); border-radius: 16px 16px 0 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .toasts { left: 10px; right: 10px; top: calc(env(safe-area-inset-top) + 10px); }
  .toast { max-width: none; }
  .net-banner { top: calc(env(safe-area-inset-top) + 8px); left: 8px; right: 8px; }
}

/* dedo, não mouse: alvos de toque maiores e sem zoom do iPhone ao focar campo (precisa de 16 px) */
@media (pointer: coarse) {
  .icon-btn { width: 40px; height: 40px; }
  .userpanel .icon-btn { width: 36px; height: 36px; }
  .channel, button.member { padding-top: 10px; padding-bottom: 10px; }
  input[type="range"] { height: 6px; }
  input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; }
  input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; }
  input[type="text"], input:not([type]), input[type="password"], input[type="email"], textarea, select { font-size: 16px; }
}
/* bio é letra pequena: borda mais leve para não "embolar" as letras (o nome mantém a borda cheia) */
.profile-card.has-theme .pf-bio, .profile-card.has-theme .pf-body .muted {
  text-shadow: 0 0 1px rgba(15, 10, 28, .9), 0 1px 2px rgba(15, 10, 28, .55), 0 0 6px rgba(15, 10, 28, .35);
}
.profile-card.has-theme.pf-light .pf-bio, .profile-card.has-theme.pf-light .pf-body .muted {
  text-shadow: 0 0 1px rgba(255, 255, 255, .9), 0 1px 2px rgba(255, 255, 255, .5);
}

/* beta 2.0.0: aviso no lugar do bot fora dos servidores */
.mu-where { display: block; color: var(--brand, var(--accent)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-where[hidden] { display: none; }
.mu-off { flex: none; margin: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(157, 78, 221, .14), rgba(15, 12, 27, .4)); }
.mu-off-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mu-off-head .music-badge { width: 30px; height: 30px; }
.mu-off p { margin: 0 0 8px; }
.mu-off-list { margin: 0 0 10px; padding-left: 18px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.mu-off-list b { color: var(--text); font-weight: 600; }
html.electron .mu-off .dl-app { display: none; }

/* beta 2.0.0: lista de servidores com respiro (antes ficava tudo colado e o nome era cortado pelos botões) */
.app { grid-template-columns: 264px minmax(0, 1fr) 320px; }
.app.chat-closed { grid-template-columns: 264px minmax(0, 1fr); }
@media (max-width: 1100px) { .app { grid-template-columns: 228px minmax(0, 1fr) 280px; } .app.chat-closed { grid-template-columns: 228px minmax(0, 1fr); } }
#srv-mine { display: flex; flex-direction: column; gap: 6px; padding-left: 4px; }
#srv-mine .srv-block > .members { padding-left: 0; }
#srv-mine .dm-row { gap: 2px; border-radius: 8px; }
#srv-mine .dm-row:hover { background: rgba(255, 255, 255, .03); }
#srv-mine .channel.dm { padding: 9px 10px; gap: 10px; color: var(--text); font-weight: 600; }
#srv-mine .channel.dm.on { background: var(--panel-3); }
.srv-act { width: 28px; height: 28px; opacity: 0; transition: opacity .12s, background .15s, color .15s; }
.dm-row:hover .srv-act, .dm-row:focus-within .srv-act { opacity: 1; }
.srv-act.danger:hover:not(:disabled) { color: var(--bad); background: rgba(255, 93, 125, .12); }
@media (hover: none) { .srv-act { opacity: .75; } }
.ch-list { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 8px 18px; padding: 2px 0 2px 10px; }
.ch-list > li { list-style: none; }
.ch-list .channel { padding: 8px 10px; }
.ch-voice-users { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 6px 26px; }
.ch-voice-users .member { padding: 4px 6px; }
.channels .cat { margin-top: 18px; }
.channels > .channel, .channels > ul > li > .channel { padding-top: 8px; padding-bottom: 8px; }

/* beta 2.0.0: amigos */
#fr-list { display: flex; flex-direction: column; gap: 2px; }
.fr-row { display: flex; align-items: center; gap: 4px; }
.fr-row .fr-item { flex: 1; min-width: 0; width: auto; border: 0; background: transparent; text-align: left; color: var(--text); padding: 6px 8px; gap: 10px; }
.fr-row .fr-item:hover { background: var(--panel-2); }
.fr-ava { position: relative; display: inline-flex; }
.fr-ava::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%;
  background: #5b5570; box-shadow: 0 0 0 2px var(--panel); }
.fr-ava.on::after { background: var(--ok); }
.fr-actions { display: inline-flex; gap: 4px; flex: none; }
.fr-actions .btn { padding: 3px 8px; font-size: 11px; }
.fr-empty { padding: 4px 8px 2px; }
.fr-add { width: 26px; height: 26px; flex: none; color: var(--a2); }
.fr-add.out { color: var(--muted); }
.fr-add.in { color: var(--ok); }
.pf-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pf-buttons:not(:has(> :not([hidden]))) { display: none; }

/* beta 2.0.0: vaga de cada jogador no Modo Jogo */
.pad-slot-sel { width: auto; padding: 4px 8px; font-weight: 700; color: var(--a2); background: rgba(15, 12, 27, .7); }
.pad-req { border-left: 3px solid var(--a2); padding-left: 8px; }

/* ---------------- Menu flutuante de controles da live (beta 2.1.1) ----------------
   Cores dos controles: P1 verde, P2 azul, P3 vermelho, P4 amarelo. */
.pad-tag { display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 800; color: #0b0912; background: var(--pc, var(--a2)); }
.p1 { --pc: #3ccf6e; } .p2 { --pc: #3b8cff; } .p3 { --pc: #ff4d5e; } .p4 { --pc: #ffc83d; }
.pad-dock { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 6px;
  padding: 6px; border-radius: 14px; background: rgba(15, 12, 27, .82); backdrop-filter: blur(10px); border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45); color: #fff; width: max-content; max-width: calc(100% - 24px); flex-wrap: wrap; justify-content: center; transition: opacity .25s; }
.pad-dock.moved { transform: none; bottom: auto; }
.pad-dock-grip, .pad-dock-min { background: none; border: 0; color: var(--muted); cursor: grab; padding: 4px 4px; font-size: 14px; line-height: 1; letter-spacing: -2px; display: grid; place-items: center; }
.pad-dock-min { cursor: pointer; letter-spacing: 0; }
.pad-dock-grip:active { cursor: grabbing; }
.pad-dock-min:hover, .pad-dock-grip:hover { color: #fff; }
.pad-dock.min .pad-dock-min { color: #fff; }
.pad-chip { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 150px; padding: 5px 10px 5px 7px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1.5px solid color-mix(in srgb, var(--pc) 45%, transparent); color: #fff; font-size: 12px;
  transition: transform .08s, background .15s, border-color .15s, box-shadow .15s, opacity .15s; }
.pad-chip svg { color: var(--pc); flex: none; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--pc) 55%, transparent)); }
.pad-chip b { color: var(--pc); font-weight: 800; }
.pad-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad-chip:hover { background: color-mix(in srgb, var(--pc) 16%, transparent); border-color: var(--pc); }
.pad-chip:active { transform: scale(.94); }
.pad-chip.free { opacity: .55; border-style: dashed; }
.pad-chip.free svg { filter: none; }
.pad-chip.me { background: color-mix(in srgb, var(--pc) 20%, transparent); border-color: var(--pc); }
.pad-chip.picked { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 28%, transparent); box-shadow: 0 0 0 2px var(--pc), 0 0 18px color-mix(in srgb, var(--pc) 60%, transparent); animation: padPick 1s ease-in-out infinite alternate; }
.pad-chip.target { opacity: 1; border-style: solid; }
.pad-chip.target:hover, .pad-chip.over { box-shadow: 0 0 0 2px var(--pc); background: color-mix(in srgb, var(--pc) 22%, transparent); }
.pad-chip.asked { border-style: dashed; border-color: var(--pc); opacity: 1; }
@keyframes padPick { from { transform: translateY(0); } to { transform: translateY(-2px); } }
.pad-dock-hint { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 8px; background: rgba(15, 12, 27, .9); border: 1px solid var(--line); color: #fff; pointer-events: none; }
.live-view.mini .pad-dock { display: none; }
.video-wrap:fullscreen.idle .pad-dock { opacity: .2; }
.video-wrap:fullscreen.idle .pad-dock:hover { opacity: 1; }
@media (max-width: 640px) { .pad-chip span { display: none; } .pad-chip { padding: 5px 8px; } }
@media (prefers-reduced-motion: reduce) { .pad-chip.picked { animation: none; } }

/* ---------------- Marca Iru (beta 2.2.0) ---------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.logo.brand-logo { width: 150px; height: 150px; max-width: 150px; max-height: 150px; filter: drop-shadow(0 6px 24px rgba(155, 77, 255, .35)); margin-bottom: 8px; }
@media (max-width: 480px) { .logo.brand-logo { width: 120px; height: 120px; } }

/* ---------------- Minijogos (beta 2.3.0) ---------------- */
.jg-list { margin-top: 2px; }
.jg-item { padding: 0; }
.jg-row { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.jg-row:hover, .jg-item.on .jg-row { background: rgba(155, 77, 255, .12); }
.jg-row:focus-visible { outline: 2px solid var(--a2); }
.jg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pc, var(--a2)); flex: none; box-shadow: 0 0 8px var(--pc, var(--a2)); }
.jg-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-name small { color: var(--muted); }
.jg-meta { font-size: 11px; color: var(--muted); white-space: nowrap; }
.jg-meta em { font-style: normal; }
.jg-hub-card { width: min(760px, 100%); max-height: 90vh; overflow: auto; }
.jg-hub-card header, .jg-game-card header { display: flex; align-items: center; gap: 8px; }
.jg-hub-card header h3 { flex: 1; }
.jg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 14px 0; }
.jg-card { border: 1px solid color-mix(in srgb, var(--pc) 40%, transparent); border-radius: 14px; padding: 14px; display: grid; gap: 6px; align-content: start;
  background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 14%, transparent), transparent 70%); }
.jg-card h4 { margin: 0; }
.jg-card p { margin: 0; }
.jg-card .btn { margin-top: 6px; }
.jg-card-ico { color: var(--pc); }
.jg-sub { margin: 6px 0; }
.jg-open { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.jg-open li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.jg-game-card { width: min(1180px, 100%); height: min(860px, 94vh); display: flex; flex-direction: column; padding: 14px; }
.jg-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 280px; gap: 12px; margin-top: 10px; }
.jg-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.jg-aside { min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.jg-players { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 210px; overflow: auto; counter-reset: pos; }
.jg-players li { display: flex; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, .03); counter-increment: pos; font-size: 13px; }
.jg-players li::before { content: counter(pos) "º"; color: var(--muted); font-size: 11px; width: 20px; }
.jg-players li.me { outline: 1px solid var(--a2); }
.jg-players li.acertou { background: rgba(60, 207, 110, .15); }
.jg-pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-pname em { font-style: normal; color: var(--a2); }
.jg-chat { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.jg-msg { overflow-wrap: anywhere; }
.jg-msg.sys { color: var(--muted); font-size: 12px; }
.jg-msg.ok { color: #3ccf6e; font-weight: 600; }
.jg-form { display: flex; gap: 6px; }
.jg-form input { flex: 1; min-width: 0; }
.jg-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 38px; }
.jg-info { font-size: 14px; }
.jg-timer { font-variant-numeric: tabular-nums; }
.jg-timer.pouco { color: #ff4d5e; }
.jg-dica { letter-spacing: 2px; font-family: ui-monospace, Consolas, monospace; font-size: 18px; }
.jg-word b { color: var(--a2); font-size: 16px; }
.jg-canvas-wrap { flex: 1; min-height: 0; display: grid; place-items: center; }
.jg-canvas { width: 100%; max-height: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: 12px; touch-action: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.jg-canvas.can { cursor: crosshair; }
.jg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.jg-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: var(--c); cursor: pointer; padding: 0; }
.jg-color.on { border-color: #fff; box-shadow: 0 0 0 2px var(--a2); }
.jg-size { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); display: grid; place-items: center; cursor: pointer; }
.jg-size i { display: block; border-radius: 50%; background: #fff; }
.jg-size.on { border-color: var(--a2); }
.jg-sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.btn.on { border-color: var(--a2); color: var(--a2); }
.jg-hint { margin: 0; }
.jg-center { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
.jg-center .ok { color: #3ccf6e; } .jg-center .bad { color: #ff4d5e; }
.jg-velha { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(360px, 100%); margin: 0 auto; aspect-ratio: 1; }
.jg-cell { font-size: clamp(32px, 7vw, 64px); font-weight: 900; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; }
.jg-cell:disabled { cursor: default; }
.jg-cell:not(:disabled):hover { background: rgba(155, 77, 255, .18); }
.jg-cell.vX, .jg-placar .vX { color: #3b8cff; }
.jg-cell.vO, .jg-placar .vO { color: #ff4d5e; }
.jg-cell.win { background: rgba(60, 207, 110, .2); border-color: #3ccf6e; }
.jg-placar { display: flex; justify-content: center; gap: 24px; font-weight: 700; flex-wrap: wrap; }
.jg-status { font-size: 16px; }
.jg-forca { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.jg-forca-svg { color: #fff; }
.jg-mask { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 520px; }
.jg-mask span { width: 30px; height: 40px; border-bottom: 3px solid var(--a2); display: grid; place-items: center; font-size: 24px; font-weight: 800; text-transform: uppercase; }
.jg-mask span.sp { border: 0; width: 14px; }
.jg-keys { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 620px; margin: 0 auto; }
.jg-key { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: #fff; font-weight: 800; cursor: pointer; }
.jg-key.ok { background: rgba(60, 207, 110, .25); border-color: #3ccf6e; }
.jg-key.bad { background: rgba(255, 77, 94, .2); border-color: #ff4d5e; opacity: .7; }
@media (max-width: 760px) {
  .jg-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(220px, 1fr); }
  .jg-game-card { height: 100vh; width: 100%; border-radius: 0; }
  .jg-players { max-height: 90px; }
}

/* ---------------- Novidades / patch notes (beta 2.3.0) ---------------- */
.ver-badge.clickable { cursor: pointer; }
.ver-badge.clickable:hover { border-color: var(--a2); }
.nv-card { width: min(560px, 100%); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.nv-logo { width: 84px; height: 84px; filter: drop-shadow(0 4px 16px rgba(155, 77, 255, .4)); }
.nv-body { width: 100%; overflow-y: auto; display: grid; gap: 12px; text-align: left; }
.nv-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.nv-item.grande { border-color: rgba(155, 77, 255, .5); background: rgba(155, 77, 255, .07); }
.nv-item header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nv-item h4 { margin: 0; flex: 1; }
.nv-ver { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--a2); color: #fff; }
.nv-item ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.jg-velha { flex: none; width: min(360px, 100%, 52vh); }
.jg-card { display: flex; flex-direction: column; }
.jg-card .btn { margin-top: auto; }
.jg-card p.small { margin-bottom: 8px; }
.jg-velha { grid-template-rows: repeat(3, 1fr); height: auto; }
.jg-cell { min-height: 0; min-width: 0; padding: 0; line-height: 1; }

/* ---------------- Cargos, canais privados, senha (beta 2.4.0) ---------------- */
.ch-lock { display: inline-flex; margin-left: 4px; opacity: .7; vertical-align: middle; }
.sa-hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0 6px; }
.sa-ch, .sa-member { flex-wrap: wrap; }
.sa-roles { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 2px 2px; }
.role-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px; border-radius: 999px; font-size: 12px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--rc) 60%, transparent); background: color-mix(in srgb, var(--rc) 12%, transparent); }
.role-chip:has(input:checked) { background: color-mix(in srgb, var(--rc) 32%, transparent); border-color: var(--rc); }
.role-chip input { accent-color: var(--rc); margin: 0; }
.role-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rc); flex: none; }
.sa-row input[type=color] { width: 36px; height: 30px; padding: 2px; border-radius: 8px; }
.sa-priv { margin-left: auto; }
.srv-pass { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.srv-pass input { width: 160px; }
.srv-pass .form-error { flex-basis: 100%; }

/* ---------------- Call centralizada + atividade (beta 2.4.0) ---------------- */
.stage-body:not(.with-live) .tiles { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 16px; }
.stage-body:not(.with-live) .tile { width: 220px; flex: none; }
.tile-act { font-size: 12px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: -4px; }
.stage-body.with-live .tile-act { flex-basis: 100%; margin-top: 0; }
.pf-user { margin: -6px 0 2px; }
.pf-act { margin: 0 0 6px; font-size: 13px; color: var(--a2); }
.pf-user-row { display: flex; align-items: center; gap: 6px; }
.pf-user-row input { flex: 1; }
.pf-act-row { display: flex; gap: 6px; }
.pf-act-row select { width: auto; }
.pf-act-row input { flex: 1; min-width: 0; }

/* ---------------- Painéis ajustáveis (beta 2.4.0) ---------------- */
@media (min-width: 821px) {
  html:not(.mobile) .app.resizable { grid-template-columns: var(--side-w, 264px) minmax(0, 1fr) var(--chat-w, 320px); }
  html:not(.mobile) .app.resizable.chat-closed { grid-template-columns: var(--side-w, 264px) minmax(0, 1fr); }
}
.app.resizable .sidebar, .app.resizable .chat { position: relative; }
.resizer { position: absolute; top: 0; bottom: 0; width: 10px; z-index: 6; cursor: col-resize; touch-action: none; }
.resizer-side { right: 0; }
.resizer-chat { left: 0; }
.resizer::after { content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 44px; transform: translate(-50%, -50%); border-radius: 4px;
  background: var(--line); opacity: 0; transition: opacity .15s, background .15s; }
.resizer:hover::after, .resizer:focus-visible::after, body.resizing .resizer::after { opacity: 1; background: var(--a2); }
.resizer:focus-visible { outline: 2px solid var(--a2); outline-offset: -2px; border-radius: 4px; }
body.resizing { cursor: col-resize; user-select: none; }
html.mobile .resizer { display: none; }
@media (max-width: 820px) { .resizer { display: none; } }

/* ---------------- Acessibilidade (beta 2.4.0) ---------------- */
:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
.skip-links { position: fixed; top: 6px; left: 6px; z-index: 1000; display: flex; gap: 6px; }
.skip { position: absolute; left: -9999px; padding: 8px 14px; border-radius: 8px; background: var(--a2); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { position: static; left: auto; }
html.a11y-zoom body { zoom: var(--ui-zoom, 1); }
html.a11y-links a { text-decoration: underline !important; }
html.a11y-foco :focus-visible { outline: 3px solid #ffd84d !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px rgba(0, 0, 0, .8) !important; }
html.a11y-contraste { --muted: #e2dcf2; --line: rgba(255, 255, 255, .45); --panel: #07050d; --panel-2: #100c1d; --panel-3: #1b1530; --bg: #000;
  --gc-text-muted: #e2dcf2; --gc-surface-1: #000; --gc-surface-2: #07050d; --gc-surface-3: #100c1d; --gc-surface-4: #1b1530; }
html.a11y-contraste body { color: #fff; }
html.a11y-contraste .btn, html.a11y-contraste .icon-btn, html.a11y-contraste input, html.a11y-contraste select, html.a11y-contraste textarea { border-color: rgba(255, 255, 255, .6) !important; }
html.a11y-movimento *, html.a11y-movimento *::before, html.a11y-movimento *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.a11y-card { width: min(520px, 100%); max-height: 90vh; overflow: auto; display: grid; gap: 10px; }
.a11y-card header { display: flex; align-items: center; justify-content: space-between; }
.a11y-card h4 { margin: 8px 0 0; }
.a11y-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.a11y-opt { align-items: flex-start; gap: 10px; }
.a11y-keys { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
kbd { font-family: ui-monospace, Consolas, monospace; font-size: 12px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); }
.a11y-card footer { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------------- Indicadores de conexão, baixo input, janela avulsa (beta 2.5.0) ---------------- */
.net-wrap { position: relative; display: flex; align-items: center; margin-right: 6px; }
.net-badge { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--nc, #7a7290) 55%, transparent); background: color-mix(in srgb, var(--nc, #7a7290) 12%, transparent); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.net-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 15px; }
.net-bars i { width: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.net-bars i.on { background: var(--nc); }
.net-pop { position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 20; width: 260px; padding: 12px 14px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 13px; display: grid; gap: 6px; }
.net-pop dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0; }
.net-pop dt { color: var(--muted); } .net-pop dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.net-pop p { margin: 0; }
.lv-net { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: rgba(10, 8, 18, .78); backdrop-filter: blur(6px); border: 1px solid color-mix(in srgb, var(--nc, #7a7290) 60%, transparent); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-badge ~ .lv-net { top: 44px; }
.lv-low-tag { font-style: normal; font-weight: 600; color: #3ccf6e; }
.lv-net-aviso { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px);
  padding: 8px 10px 8px 12px; border-radius: 12px; background: rgba(60, 30, 0, .9); border: 1px solid #ffc83d; color: #fff; font-size: 13px; }
.lv-net-aviso svg { color: #ffc83d; flex: none; }
.lv-net-aviso .icon-btn { width: 26px; height: 26px; }
#lv-low.on { border-color: #3ccf6e; color: #3ccf6e; }
.popped-note { display: none; }
.live-view.is-popped .popped-note { display: grid; place-items: center; gap: 10px; text-align: center; padding: 40px; color: var(--muted); }
body.popout-body { margin: 0; background: #000; height: 100vh; overflow: hidden; }
body.popout-body .video-wrap.popped { position: relative; width: 100vw; height: 100vh; border-radius: 0; border: 0; }
body.popout-body .video-wrap.popped video { width: 100%; height: 100%; object-fit: contain; }
.video-wrap:fullscreen.idle .lv-net { opacity: .25; }

/* ---------------- Pontos e títulos (beta 2.5.0) ---------------- */
.tier-chip { all: unset; cursor: pointer; display: block; font-size: 11px; color: var(--a2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; border-radius: 4px; }
.tier-chip:hover { text-decoration: underline; }
/* 2.33.3: o título embaixo agora parece botão (seta) */
.tier-chip::after { content: ' ›'; opacity: .7; }
.tier-chip:focus-visible { outline: 2px solid var(--a2); }
.tier-card { width: min(440px, 100%); max-height: 90vh; overflow: auto; display: grid; gap: 8px; }
.tier-card header { display: flex; align-items: center; justify-content: space-between; }
.tier-card h4 { margin: 8px 0 0; }
.tier-pts { margin: 0; font-size: 15px; } .tier-pts b { font-size: 26px; color: var(--a2); }
.tier-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tier-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--a), var(--a2)); }
.tier-prog p { margin: 4px 0 0; }
.tier-rules { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.tier-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tier-list li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); opacity: .6; }
.tier-list li.ok { opacity: 1; border-color: rgba(155, 77, 255, .5); background: rgba(155, 77, 255, .08); }
.pf-badge.tier { background: rgba(155, 77, 255, .15); border-color: rgba(155, 77, 255, .5); }
.live-controls .btn { white-space: nowrap; }
#lv-low.on::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ccf6e; box-shadow: 0 0 8px #3ccf6e; }
body.popout-body { padding: 0 !important; }
body.popout-body .video-wrap.popped { position: fixed; inset: 0; width: auto; height: auto; }
body.popout-body #lv-hide, body.popout-body #lv-restore { display: none !important; }

/* ---------------- Controles da live compactos (beta 2.5.2) ----------------
   Só ícones redondos (o texto ficava enorme e vazava para fora da live). O texto continua no botão para leitor de
   tela, e aparece no balão ao ligar/desligar e no title ao passar o mouse. */
.live-controls { gap: 6px; padding: 26px 10px 10px; flex-wrap: nowrap; }
.live-controls .vol { width: auto; flex: 0 1 170px; min-width: 0; }
.live-controls .vol input { min-width: 50px; flex: 1; }
.live-controls .vol-text { display: none; }
.live-controls .lv-ic { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; gap: 0; color: #fff; }
.live-controls .lv-ic > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.live-controls .lv-ic svg { width: 18px; height: 18px; }
.live-controls .lv-ic[hidden] { display: none; }
.live-controls .btn.ghost.lv-ic { background: rgba(15, 12, 27, .55); border-color: rgba(255, 255, 255, .14); }
.live-controls .btn.ghost.lv-ic:hover { background: rgba(255, 255, 255, .14); }
/* ligado/desligado bem visível: desligado fica apagadinho, ligado ganha cor e bolinha */
.live-controls .lv-ic[role="switch"] { position: relative; opacity: .7; }
.live-controls .lv-ic[role="switch"].on { opacity: 1; color: #3ccf6e; border-color: #3ccf6e; background: rgba(60, 207, 110, .14); }
.live-controls .lv-ic[role="switch"].on::after { content: ""; position: absolute; top: 1px; right: 1px; width: 8px; height: 8px; border-radius: 50%; background: #3ccf6e; box-shadow: 0 0 6px #3ccf6e; }
#lv-low.on { border-color: #3ccf6e; color: #3ccf6e; }
.live-controls .lv-x { background: #ed4245; border-color: transparent; }
.live-controls .lv-x:hover { background: #ff5a5d; }
.lv-more-wrap { position: relative; flex: none; display: inline-flex; }
.lv-more-wrap[hidden] { display: none; }
.lv-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 6; min-width: 210px; padding: 6px; display: grid; gap: 2px;
  background: rgba(15, 12, 27, .96); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.lv-menu[hidden] { display: none; }
.lv-mi { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #fff; font-size: 13px; white-space: nowrap; }
.lv-mi[hidden] { display: none; }
.lv-mi:hover, .lv-mi:focus-visible { background: rgba(255, 255, 255, .1); }
.lv-mi:focus-visible { outline: 2px solid var(--a2, #9b4dff); }
.lv-mi svg { width: 16px; height: 16px; flex: none; }
#lv-stop-mine { color: #ff8a8c; }
.lv-tip { position: absolute; z-index: 7; padding: 5px 10px; border-radius: 999px; background: rgba(15, 12, 27, .95); border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; animation: lvTip .15s ease-out; }
@keyframes lvTip { from { opacity: 0; transform: translateY(4px); } }
/* minimizada / live estreita: ainda menor, e só o essencial (volume, janela, voltar, sair) */
.live-view.mini .live-controls { gap: 4px; padding: 18px 6px 6px; }
.live-view.mini .live-controls .lv-ic { width: 28px; height: 28px; }
.live-view.mini .live-controls .lv-ic svg { width: 15px; height: 15px; }
.live-view.mini .live-controls .vol { flex: 0 1 90px; }
.live-view.mini #lv-leave { padding: 0; }
.live-view.mini #lv-audio, .live-view.mini #lv-play, .live-view.mini #lv-low, .live-view.mini #lv-more-wrap { display: none; }
@media (max-width: 760px) {
  .live-controls { flex-wrap: nowrap; }
  .live-controls .vol { flex: 1 1 80px; }
  .live-controls .btn.lv-ic { padding: 0; }
}

/* ---------------- Acessibilidade: opções legíveis (beta 2.7.0) ---------------- */
label.check.a11y-opt { display: flex; align-items: flex-start; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 14px;
  font-weight: 400; color: var(--text); margin: 12px 0 0; cursor: pointer; }
label.check.a11y-opt input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
label.check.a11y-opt b { font-weight: 600; }

/* =====================================================================
   Celular, rodada 2 (beta 2.7.0): o que a auditoria em 390 e 360 px achou
   ===================================================================== */
@media (max-width: 820px) {
  /* campo com letra < 16 px faz o iPhone dar zoom ao tocar (antes só valia com "pointer: coarse") */
  input[type="text"], input:not([type]), input[type="password"], input[type="email"], input[type="search"],
  input[type="url"], textarea, select { font-size: 16px; }
  .pf-body input[type="text"], .pf-body input:not([type]), .pf-body textarea { font-size: 16px; } /* o perfil usava "font: inherit" */

  /* chamada: 2 pessoas por linha, todos os botões numa linha só (o desligar caía sozinho na de baixo) */
  .stage-body:not(.with-live) .tiles { gap: 10px; }
  .stage-body:not(.with-live) .tile { width: calc(50% - 5px); padding: 14px 8px 10px; }
  .stage-body:not(.with-live) .tiles:has(> .tile:only-child) .tile { width: min(260px, 100%); }
  .callbar { flex-wrap: nowrap; justify-content: space-evenly; gap: 6px; padding: 8px 6px calc(8px); }
  .call-btn { width: 48px; height: 48px; flex: none; }
  .callbar #net-call { flex: none; padding: 6px 8px; }
  .tile-vol .tile-mute, #lv-side-mute { width: 36px; height: 36px; }
  .member .icon-btn, .friend-add { min-width: 36px; min-height: 36px; }
  .mu-tab { min-height: 36px; }
  .stage-body.with-live .tiles { grid-auto-columns: 150px; }

  /* toque confortável: nada clicável menor que ~36 px */
  .btn.tiny, .btn.mini { min-height: 36px; padding: 8px 12px; }
  .srv-act { width: 36px; height: 36px; opacity: .85; }
  .msg-actions .icon-btn, .msg-actions button { min-width: 34px; min-height: 34px; }
  .tile button.btn { min-height: 36px; }
  .modal-card header .icon-btn { width: 42px; height: 42px; }

  /* bot de música: no navegador do celular não dá para escolher a saída de som (some o seletor) e o
     registro vazio não fica parecendo um campo em branco */
  html:not(.electron) #mu-out { display: none; }
  .mu-log:empty { display: none; }
  .music.collapsed { max-height: none; }
  .music-head { padding-top: 8px; padding-bottom: 8px; }

  /* live: um pouco mais de vídeo; controles com área de toque maior */
  .stage-body.with-live .live-view { max-height: 46vh; }
  .live-controls .lv-ic { width: 38px; height: 38px; }

  /* troca de aba deslizando o dedo: animação curta da aba que entra */
  #app > .panel { transition: opacity .16s ease; }
  #app:not([data-mview="side"]) > .sidebar,
  #app:not([data-mview="stage"]) > .stage,
  #app:not([data-mview="chat"]) > .chat { opacity: 0; }
}
@media (max-width: 380px) {
  .call-btn { width: 44px; height: 44px; }
  .callbar { gap: 4px; }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) { #app > .panel { transition: none; } }

/* =====================================================================
   Chat melhor (beta 2.8.0): dias, mensagens agrupadas, descer, fotos e balões no privado
   ===================================================================== */
/* separador de dia */
.msg-day { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; color: var(--muted); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; }
.msg-day::before, .msg-day::after { content: ''; flex: 1; height: 1px; background: var(--line); }
/* mensagens seguidas da mesma pessoa: sem repetir foto, nome e hora */
.msg.cont { margin-top: -6px; }
.msg.cont > .avatar { visibility: hidden; height: 0; }
.msg.cont .msg-head > strong, .msg.cont .msg-head > time { display: none; }
.msg.cont .msg-head { position: absolute; right: 0; top: -2px; z-index: 1; }

/* botão de descer: redondo, com o número de mensagens novas */
.jump { left: auto; right: 14px; transform: none; width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  background: var(--panel-3); border: 1px solid var(--line); color: var(--text); box-shadow: 0 8px 22px rgba(0, 0, 0, .45); z-index: 6;
  cursor: pointer; transition: transform .12s ease; }
.jump[hidden] { display: none; }
.jump:hover { transform: translateY(-2px); border-color: var(--a2); }
.jump svg { width: 20px; height: 20px; }
.jump-n { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid;
  place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--a), var(--a2)); }
.jump-n[hidden] { display: none; }

/* fotos escolhidas antes de enviar: miniaturas grandes + progresso */
.pending { flex-wrap: nowrap; overflow-x: auto; padding: 8px 10px 2px; scrollbar-width: thin; }
.pending-chip { position: relative; flex: none; overflow: hidden; }
.pending-chip.foto { flex-direction: column; align-items: stretch; padding: 0; width: 76px; }
.pending-chip.foto img { width: 76px; height: 76px; border-radius: 8px 8px 0 0; }
.pending-chip.foto .pending-name { display: none; }
.pending-chip.foto .icon-btn { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0, 0, 0, .65); color: #fff; }
.pending-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--a), var(--a2));
  transition: width .15s linear; }
.pending.enviando .pending-chip { opacity: .85; }
.pending.enviando .pending-chip .icon-btn { display: none; }

/* foto aberta: fundo escuro e botão de fechar claro (dá para dar zoom com os dedos) */
.lightbox img { touch-action: pinch-zoom; }

/* aviso do IruBot: não aparece na conversa privada; tem botão para não mostrar mais */
#chat-head[data-where="dm"] ~ #mu-off { display: none !important; }
.mu-off-head .mu-off-x { margin-left: auto; width: 30px; height: 30px; }

/* status no topo da conversa privada */
#chat-head[data-where="dm"].dm-online #chat-head-where::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); margin-right: 5px; vertical-align: 1px; box-shadow: 0 0 6px var(--ok); }

/* ---- conversa privada em balões (só tem duas pessoas: sem foto/nome em cada mensagem) ---- */
.messages.dm-mode { gap: 8px; }
.dm-mode .msg:not(.system) { max-width: min(82%, 560px); align-self: flex-start; align-items: center; gap: 4px; }
.dm-mode .msg > .avatar { display: none; }
.dm-mode .msg-body { flex: 0 1 auto; position: relative; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 16px 16px 16px 5px; padding: 7px 11px; min-width: 0; }
/* hora no cantinho de baixo: o texto reserva um espaço no fim da última linha para ela não ficar por cima */
.dm-mode .msg-time { position: absolute; right: 9px; bottom: 5px; font-size: 10px; line-height: 1; color: var(--muted); pointer-events: none; }
.dm-mode .msg-text::after { content: ''; display: inline-block; width: 38px; height: 1px; }
.dm-mode .msg-actions { flex: none; margin: 0; }
.dm-mode .msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.dm-mode .msg.mine .msg-body { background: linear-gradient(135deg, rgba(123, 47, 247, .92), rgba(157, 78, 221, .92)); border-color: transparent;
  border-radius: 16px 16px 5px 16px; color: #fff; }
.dm-mode .msg.mine .msg-time { color: rgba(255, 255, 255, .8); }
.dm-mode .msg.mine .msg-reply { background: rgba(0, 0, 0, .18); border-left-color: #fff; }
.dm-mode .msg.mine .msg-reply strong { color: #fff; }
/* em sequência: balões colados, só o último do bloco tem a "pontinha" */
.dm-mode .msg.cont { margin-top: -4px; }
.dm-mode .msg:not(.mine):has(+ .msg.cont:not(.mine)) .msg-body { border-bottom-left-radius: 16px; }
.dm-mode .msg.mine:has(+ .msg.cont.mine) .msg-body { border-bottom-right-radius: 16px; }
/* foto no balão: ocupa o balão todo, com a hora num selinho por cima */
.dm-mode .msg-files { margin-top: 0; }
.dm-mode .msg-text + .msg-files { margin-top: 6px; }
.dm-mode .msg-img, .dm-mode .msg-video { max-width: 100%; max-height: 320px; border-radius: 12px; }
.dm-mode .msg-body:not(:has(.msg-text)) { padding: 3px; }
.dm-mode .msg-body:not(:has(.msg-text)) .msg-time { right: 9px; bottom: 9px; padding: 3px 6px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; }

/* celular: ações só ao tocar na mensagem (antes ficavam sempre visíveis em todas) */
@media (hover: none) {
  .msg-actions { opacity: 0; pointer-events: none; }
  .msg.acts-on .msg-actions { opacity: 1; pointer-events: auto; }
  .msg.acts-on .msg-body { outline: 1px solid rgba(157, 78, 221, .45); outline-offset: 2px; border-radius: 10px; }
  .dm-mode .msg.acts-on .msg-body { outline-offset: 1px; border-radius: inherit; }
}
@media (max-width: 820px) {
  .composer { gap: 2px; padding: 6px 6px calc(6px); align-items: center; }
  .composer .icon-btn { width: 40px; height: 40px; flex: none; }
  .jump { right: 10px; }
  .dm-mode .msg:not(.system) { max-width: 86%; }
}

/* =====================================================================
   PC mais limpo (beta 2.10.0): painel central, barra lateral organizada, menu do usuário, música recolhida
   ===================================================================== */
/* ---- seções da barra lateral que abrem e fecham ---- */
.cat[data-sec] { cursor: pointer; user-select: none; border-radius: 6px; padding: 2px 4px; margin-left: 4px; margin-right: 4px; }
.cat[data-sec]:hover { color: var(--text); }
.cat[data-sec]:focus-visible { outline: 2px solid var(--a2); outline-offset: 1px; }
.cat[data-sec]::before { content: ''; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .7; transition: transform .15s ease; flex: none; }
.cat[data-sec].fechada::before { transform: rotate(-90deg); }
.channels .sec-off { display: none !important; }
#cat-admin { margin-top: 18px; }

/* nome do servidor inteiro: os botões (convite, painel, sair) só aparecem ao passar o mouse, por cima */
@media (hover: hover) {
  .dm-row { position: relative; }
  .dm-row .srv-act { position: absolute; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; background: var(--panel-3); }
  .dm-row .srv-act:nth-last-of-type(1) { right: 2px; }
  .dm-row .srv-act:nth-last-of-type(2) { right: 32px; }
  .dm-row .srv-act:nth-last-of-type(3) { right: 62px; }
  .dm-row:hover .srv-act, .dm-row:focus-within .srv-act { opacity: 1; pointer-events: auto; }
}

/* ---- barra do usuário: nome inteiro + menu ⚙ ---- */
.me-info strong { font-size: 14px; }
.up-menu-wrap { position: relative; display: inline-flex; }
.up-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; min-width: 200px; padding: 6px; display: grid; gap: 2px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(0, 0, 0, .5); }
.up-menu[hidden] { display: none; }
.up-mi { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  font-size: 14px; color: var(--text); }
.up-mi svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.up-mi:hover, .up-mi:focus-visible { background: var(--panel-3); }
.up-mi:focus-visible { outline: 2px solid var(--a2); }
.up-mi.danger { color: #ff8a8c; }
.up-mi.danger svg { color: #ff8a8c; }

/* ---- painel central ---- */
.empty.tem-inicio { margin: 0; max-width: none; width: 100%; text-align: left; align-self: stretch; overflow-y: auto; }
.ini { max-width: 980px; margin: 0 auto; padding: 18px 6px 28px; display: flex; flex-direction: column; gap: 10px; }
.ini-hero { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(157, 78, 221, .22), transparent 60%), var(--panel-2); }
.ini-hero h2 { margin: 0 0 2px; font-size: 22px; }
.ini-hero p { margin: 2px 0 0; }
.ini-hero-txt { flex: 1; min-width: 0; }
.ini-hero-acoes { display: flex; gap: 8px; flex: none; }
.srv-ico.lg { width: 64px; height: 64px; font-size: 26px; }
.srv-ico.md { width: 40px; height: 40px; font-size: 17px; }
.ini-tit { margin: 14px 2px 2px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ini-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ini-voz { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); }
.ini-voz.ativo { border-color: rgba(84, 224, 138, .45); box-shadow: 0 0 0 1px rgba(84, 224, 138, .12), 0 10px 26px rgba(0, 0, 0, .25); }
.ini-voz header { display: flex; align-items: center; gap: 8px; }
.ini-voz header svg { color: var(--muted); }
.ini-voz.ativo header svg { color: var(--ok); }
.ini-voz footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: auto; }
.ini-lock svg { color: var(--muted); }
.ini-vazio { margin: 0; }
.ini-pessoas { display: flex; flex-direction: column; gap: 4px; }
.ini-online { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.ini-pessoa { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; min-width: 0; }
.ini-pessoa:hover, .ini-pessoa:focus-visible { background: var(--panel-3); }
.ini-pessoa:focus-visible { outline: 2px solid var(--a2); }
.ini-pessoa-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ini-nome { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ini-atv { font-size: 12px; color: var(--a2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ini-live { margin-left: auto; flex: none; font-size: 10px; font-weight: 800; letter-spacing: .05em; padding: 2px 6px; border-radius: 6px; background: #ed4245; color: #fff; }
.ini-srv { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel-2); transition: border-color .15s, transform .15s; min-width: 0; }
.ini-srv:hover { border-color: var(--a2); transform: translateY(-1px); }
.ini-srv:focus-visible { outline: 2px solid var(--a2); }
.ini-srv.ativo { border-color: rgba(84, 224, 138, .45); }
.ini-srv-txt { display: flex; flex-direction: column; min-width: 0; }
.ini-srv-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ini-novo { border-style: dashed; color: var(--muted); }
.ini-novo svg { width: 40px; height: 40px; padding: 9px; border-radius: 30%; background: var(--panel-3); flex: none; }
.ini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ini-chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel-2); font-size: 13px; }
.ini-chip:hover, .ini-chip.on { border-color: var(--a2); color: var(--text); }
.ini-rodape { display: flex; gap: 8px; margin-top: 10px; }
.btn.tiny svg { width: 16px; height: 16px; }

/* ---- música sem nada tocando: só a caixa de pedir música (o player vazio ocupava meia coluna) ---- */
.music.ocioso .mu-video, .music.ocioso .mu-controls, .music.ocioso .mu-queue { display: none !important; }
.music.ocioso .mu-log:empty { display: none; }

/* ---- botão de descer vira "3 novas mensagens" quando tem novidade; linha marca onde começam as novas ---- */
.jump.com-novas { width: auto; padding: 0 14px 0 12px; gap: 6px; grid-auto-flow: column; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, var(--a), var(--a2)); border-color: transparent; color: #fff; }
.jump.com-novas .jump-n { position: static; min-width: 0; height: auto; padding: 0; background: none; font-size: 13px; }
.msg-novas { display: flex; align-items: center; gap: 10px; color: #ff8a8c; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.msg-novas::after { content: ''; flex: 1; height: 1px; background: rgba(255, 107, 129, .55); }
/* seções vazias somem (Lives e Conversas sem nada não ocupam espaço) */
.cat[data-sec="lives"]:has(+ #live-list:empty), .cat[data-sec="diretas"]:has(+ #dm-list:empty) { display: none; }

/* opção da atividade automática no perfil (beta 2.11.0) */
label.check.pf-auto { display: flex; align-items: flex-start; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 400;
  color: var(--text); margin: 10px 0 2px; cursor: pointer; }
label.check.pf-auto input { margin-top: 3px; width: 17px; height: 17px; flex: none; }
label.check.pf-auto[hidden] { display: none; }

/* diagnóstico da atividade automática no perfil (beta 2.11.2) */
.pf-auto-diag { margin: 4px 0 6px 27px; }
.pf-auto-diag p { margin: 4px 0; }
#pf-auto-agora { color: var(--ok); }
#pf-auto-agora.erro { color: #ffc83d; }
#pf-auto-escolha summary { cursor: pointer; color: var(--a2); }
.pf-auto-lista, .pf-auto-meus { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; max-height: 220px; overflow-y: auto; }
.pf-auto-prog { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-auto-prog:hover, .pf-auto-prog:focus-visible { border-color: var(--a2); }
.pf-auto-meu { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pf-auto-meu .btn { margin-left: auto; }
#me-status { cursor: default; }

/* caso que o bot silenciou sozinho (beta 2.12.0) */
.gc-mod-auto { margin: 4px 0; padding: 6px 10px; border-radius: 8px; background: rgba(255, 93, 125, .12); border: 1px solid rgba(255, 93, 125, .35); color: #ffb3c0; font-size: 13px; }

/* =====================================================================
   Esqueletos de carregamento (beta 2.13.0)
   ===================================================================== */
.sk { display: block; border-radius: 6px; background: linear-gradient(100deg, var(--panel-2) 30%, var(--panel-3) 50%, var(--panel-2) 70%);
  background-size: 300% 100%; animation: skBrilho 1.3s ease-in-out infinite; }
@keyframes skBrilho { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
html.a11y-movimento .sk { animation: none; }
.sk-linha { height: 11px; width: 60%; }
.sk-nome { width: 90px; height: 12px; opacity: .9; }
.sk-av { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.sk-av.sk-quadrado { border-radius: 30%; width: 22px; height: 22px; }
.sk-av.sk-grande { width: 40px; height: 40px; }
.sk-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding-top: 2px; }
.sk-msg { display: flex; gap: 10px; align-items: flex-start; padding: 2px 0; }
.sk-item { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
.sk-cartao { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); }
.sk-cartao .sk { background: linear-gradient(100deg, var(--panel-3) 30%, rgba(255,255,255,.08) 50%, var(--panel-3) 70%); background-size: 300% 100%; }
.sk-inicio { width: min(980px, 100%); margin: 0 auto; padding: 18px 6px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.sk-hero { height: 96px; border-radius: var(--radius); }
.sk-tit { width: 140px; height: 10px; margin-top: 6px; }
.sk-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
/* enquanto o centro tem esqueleto, esconde o "Escolha um servidor" antigo */
.empty:has(.sk-inicio) { margin: 0; max-width: none; width: 100%; align-self: stretch; }
.empty:has(.sk-inicio) > :not(.sk-inicio) { display: none; }
/* foto do chat chegando: bloco brilhando do tamanho dela */
.msg-img.carregando { min-width: 200px; min-height: 140px; background: linear-gradient(100deg, var(--panel-2) 30%, var(--panel-3) 50%, var(--panel-2) 70%);
  background-size: 300% 100%; animation: skBrilho 1.3s ease-in-out infinite; color: transparent; }
@media (prefers-reduced-motion: reduce) { .msg-img.carregando { animation: none; } }
/* live conectando: brilho no lugar da imagem */
.live-wait:not([hidden]) { background: linear-gradient(100deg, rgba(15,12,27,.92) 30%, rgba(40,32,62,.92) 50%, rgba(15,12,27,.92) 70%); background-size: 300% 100%;
  animation: skBrilho 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .live-wait:not([hidden]) { animation: none; } }

/* ===================== Controle na tela (beta 2.14.0, touchpad.js) =====================
   Celular jogando a live sem controle físico. A live ocupa a tela inteira e o controle fica por cima, translúcido.
   Deitado: analógico à esquerda, A/B/X/Y à direita, gatilhos nos cantos de cima. Em pé: vídeo em cima, controle embaixo. */
.tp-on #video-wrap { position: fixed; inset: 0; z-index: 9000; background: #000; border-radius: 0; }
.tp-on #live-video { width: 100%; height: 100%; object-fit: contain; }
.tp-on #pad-panel, .tp-on #pad-dock, .tp-on .live-controls, .tp-on #live-badge { display: none !important; }
.tp { position: absolute; inset: 0; z-index: 20; touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; pointer-events: none; font-family: inherit; color: #fff; }
.tp[hidden] { display: none; }
.tp > * { pointer-events: auto; }
.tp-titulo { position: absolute; top: 12px; left: 50%; transform: translate(-50%, 46px); font-size: 11px; opacity: .55; pointer-events: none; white-space: nowrap; }
.tp-giro { display: none; pointer-events: none; }

/* botão genérico */
.tp-b { position: absolute; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14);
  border: 2px solid rgba(255,255,255,.35); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); transition: transform .06s, background .06s; }
.tp-b.on { transform: scale(.9); background: rgba(255,255,255,.4); }
.tp-letra { font-weight: 800; font-size: 20px; line-height: 1; }
.tp-rot { font-size: 10px; font-weight: 600; line-height: 1.1; text-align: center; opacity: .9; pointer-events: none; }
.tp-b.com-rot .tp-letra { position: absolute; top: 5px; font-size: 11px; opacity: .7; }
.tp-b.com-rot .tp-rot { font-size: 11px; padding: 0 4px; }

/* A/B/X/Y em losango, nas cores do controle Xbox */
.tp-face { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: 7%; width: 196px; height: 196px; pointer-events: none; }
.tp-face .tp-btn { width: 64px; height: 64px; pointer-events: auto; }
.tp-face .tp-btn.grande { width: 78px; height: 78px; }
.tp-y { top: 0; left: 50%; transform: translateX(-50%); border-color: #f1b101; }
.tp-a { bottom: 0; left: 50%; transform: translateX(-50%); border-color: #5fbf3a; }
.tp-x { left: 0; top: 50%; transform: translateY(-50%); border-color: #3f7fe0; }
.tp-face .tp-y.on { transform: translateX(-50%) scale(.9); } .tp-face .tp-a.on { transform: translateX(-50%) scale(.9); }
.tp-face .tp-x.on, .tp-face [data-k="b"].on { transform: translateY(-50%) scale(.9); }
.tp-face [data-k="b"] { right: 0; left: auto; top: 50%; transform: translateY(-50%); border-color: #e24a3b; }
.tp-face .tp-a { background: rgba(95,191,58,.22); } .tp-face [data-k="b"] { background: rgba(226,74,59,.22); }
.tp-face .tp-x { background: rgba(63,127,224,.22); } .tp-face .tp-y { background: rgba(241,177,1,.22); }

/* ombros (LB/LT e RB/RT) */
.tp-ombro { position: absolute; top: max(10px, env(safe-area-inset-top)); display: flex; gap: 8px; }
.tp-ombro.esq { left: max(12px, env(safe-area-inset-left)); }
.tp-ombro.dir { right: max(12px, env(safe-area-inset-right)); flex-direction: row-reverse; }
.tp-ombro .tp-b { position: relative; width: 76px; height: 44px; border-radius: 14px; }
.tp-ombro .tp-gat { height: 52px; }
.tp-ombro .tp-letra { font-size: 15px; }

/* centro: Back, sair, tela cheia, Start */
.tp-meio { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; }
.tp-meio .tp-b { position: relative; width: 58px; height: 34px; border-radius: 17px; }
.tp-meio .tp-letra { font-size: 11px; }
.tp-sair, .tp-cheia { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.45); color: #fff; font-size: 15px; }

/* analógicos */
.tp-zona-l { position: absolute; left: 0; bottom: 0; width: 44%; height: 66%; pointer-events: auto; }
.tp-zona-r { position: absolute; right: 230px; bottom: 5%; width: 150px; height: 150px; pointer-events: auto; }
.tp-zona-r[hidden], .tp-dpad[hidden] { display: none; }
.tp-stick { position: absolute; left: 34%; top: 62%; width: 124px; height: 124px; margin: -62px 0 0 -62px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.25); pointer-events: none; display: grid; place-items: center; }
.tp-zona-r .tp-stick { left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; }
.tp-stick.on { background: rgba(255,255,255,.14); }
.tp-bola { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.45); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.tp-stick .tp-rot { position: absolute; bottom: -18px; font-size: 10px; opacity: .6; }

/* D-pad (acima do analógico esquerdo) */
.tp-dpad { position: absolute; left: max(14px, env(safe-area-inset-left)); top: -2%; width: 118px; height: 118px; }
.tp-seta { position: absolute; width: 38px; height: 38px; background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.3); border-radius: 8px; }
.tp-seta.on { background: rgba(255,255,255,.45); }
.tp-seta.up { left: 40px; top: 0; } .tp-seta.down { left: 40px; bottom: 0; }
.tp-seta.left { left: 0; top: 40px; } .tp-seta.right { right: 0; top: 40px; }

/* Em pé (iPhone não deixa travar a paisagem): vídeo em cima, controle na metade de baixo */
@media (orientation: portrait) {
  .tp-on #live-video { height: 46%; object-position: top; }
  .tp-ombro, .tp-meio { top: 47%; }
  .tp-titulo { top: 47%; }
  .tp-zona-l { height: 44%; width: 50%; }
  .tp-zona-r { right: 30px; bottom: calc(5% + 176px); width: 120px; height: 120px; }
  .tp-zona-r .tp-stick { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
  .tp-face { width: 168px; height: 168px; bottom: 5%; }
  .tp-face .tp-btn { width: 56px; height: 56px; } .tp-face .tp-btn.grande { width: 66px; height: 66px; }
  .tp-ombro .tp-b { width: 62px; }
  .tp-meio { top: max(8px, env(safe-area-inset-top)); }
  .tp-giro { display: block; position: absolute; top: calc(46% - 26px); left: 0; right: 0; text-align: center; font-size: 11px; opacity: .6; }
  .tp-dpad { top: 6%; width: 100px; height: 100px; } .tp-seta { width: 32px; height: 32px; }
  .tp-seta.up, .tp-seta.down { left: 34px; } .tp-seta.left, .tp-seta.right { top: 34px; }
}
/* telas bem baixas (celular deitado pequeno) */
@media (orientation: landscape) and (max-height: 380px) {
  .tp-face { width: 170px; height: 170px; } .tp-face .tp-btn { width: 56px; height: 56px; } .tp-face .tp-btn.grande { width: 68px; height: 68px; }
  .tp-zona-r { right: 196px; }
  .tp-ombro .tp-b { height: 38px; } .tp-ombro .tp-gat { height: 44px; }
}
/* ombros e centro com rótulo: letra pequena em cima, função embaixo (sem sobrepor) */
.tp-ombro .tp-b.com-rot, .tp-meio .tp-b.com-rot { display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.tp-ombro .tp-b.com-rot .tp-letra, .tp-meio .tp-b.com-rot .tp-letra { position: static; font-size: 9px; }
.tp-meio .tp-b.com-rot { height: 38px; width: 64px; }
.tp-meio .tp-b.com-rot .tp-rot { font-size: 10px; }
/* beta 2.14.0: volume da música numa linha só dele, ocupando a largura do player (mais precisão no baixinho) */
.mu-controls #mu-quality { margin-left: auto; }
.mu-volrow { display: flex; align-items: center; gap: 8px; padding: 2px 0 4px; }
.mu-volrow .icon-btn { color: var(--text); flex: none; }
.mu-volrow #mu-vol { flex: 1; min-width: 0; width: 100%; height: 6px; margin: 9px 0; cursor: pointer;
  background: linear-gradient(to right, var(--a2) var(--p, 50%), var(--panel-3) var(--p, 50%)); }
.mu-volrow #mu-vol::-webkit-slider-thumb { width: 16px; height: 16px; }
.mu-volrow .mu-vol-text { flex: none; min-width: 38px; }
.music.ocioso .mu-volrow { display: none !important; }

/* 2.14.5: botão "Atualizar agora" vira barra de progresso enquanto baixa */
#btn-update.baixando { position: relative; overflow: hidden; opacity: 1;
  background: linear-gradient(to right, var(--a2) var(--p, 0%), rgba(255, 255, 255, .08) var(--p, 0%));
  transition: background .2s linear; font-variant-numeric: tabular-nums; min-width: 190px; }

/* 2.15.1: configuração da partida (Desenha & Adivinha) e aviso de convite para jogo */
.jg-cfgs { align-items: center; gap: 12px; flex-wrap: wrap; }
.jg-cfg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.jg-cfg select { width: auto; padding: 4px 8px; font-size: 13px; }
.jg-convite { position: fixed; right: 16px; bottom: 16px; z-index: 9500; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: var(--panel-2, #1d1530); border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45); max-width: min(92vw, 440px); font-size: 14px; animation: jgConvite .25s ease-out; }
@keyframes jgConvite { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .jg-convite { animation: none; } }
html.mobile .jg-convite { left: 12px; right: 12px; bottom: 76px; }

/* ===================== 2.16.1: Desenha & Adivinha arrumado =====================
   O canvas usava width:100% + aspect-ratio e ficava MAIS ALTO que o espaço: a barra de ferramentas caía por cima do
   desenho e saía da janela. Agora a área do desenho é um contêiner de tamanho e o canvas cabe nele (4:3) sem vazar. */
.jg-main { overflow: hidden; gap: 8px; }
.jg-top-slot { flex: none; }
.jg-canvas-wrap { flex: 1 1 auto; min-height: 160px; container-type: size; display: grid; place-items: center; }
.jg-canvas { width: min(100cqw, calc(100cqh * 4 / 3)); height: auto; max-height: none; aspect-ratio: 4 / 3; }
.jg-tools-slot { flex: none; }
.jg-tools-slot:empty { display: none; }
.jg-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.jg-grupo { display: flex; align-items: center; gap: 5px; padding: 0 6px; }
.jg-grupo + .jg-grupo { border-left: 1px solid var(--line); padding-left: 12px; }
.jg-tools .jg-color { width: 24px; height: 24px; border: 2px solid rgba(255, 255, 255, .18); }
.jg-tools .jg-color[style*="#ffffff"] { border-color: rgba(255, 255, 255, .55); }
.jg-tools .jg-color.on { border-color: #fff; box-shadow: 0 0 0 2px var(--a2); transform: scale(1.12); }
.jg-tools .jg-size { width: 32px; height: 32px; padding: 0; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); display: grid; place-items: center; cursor: pointer; }
.jg-tools .jg-size i { border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.jg-tools .jg-size.on { border-color: var(--a2); background: rgba(155, 77, 255, .18); }
.jg-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 13px;
  cursor: pointer; white-space: nowrap; }
.jg-btn:hover { background: rgba(155, 77, 255, .16); border-color: color-mix(in srgb, var(--a2) 50%, var(--line)); }
.jg-btn.on { background: rgba(155, 77, 255, .28); border-color: var(--a2); }
.jg-btn.perigo:hover { background: rgba(255, 77, 94, .16); border-color: #ff4d5e; }
.jg-btn:focus-visible, .jg-tools .jg-size:focus-visible, .jg-tools .jg-color:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
/* dica de quem chuta e resumo da configuração: na mesma faixa, sem ficar por cima do desenho */
.jg-tools-slot > .jg-hint { text-align: center; padding: 8px; }
.jg-cfgs { justify-content: flex-start; }
.jg-cfg { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text); }
.jg-cfg select { min-width: 72px; }
@media (max-width: 760px) {
  .jg-grupo + .jg-grupo { border-left: 0; padding-left: 6px; }
  .jg-btn span { display: none; } /* celular: só o ícone (o title/aria continua com o nome) */
  .jg-btn { padding: 0 9px; }
}
/* 2.16.1 celular: o desenho ocupa a maior parte da tela; placar/chat ficam embaixo, menores */
@media (max-width: 760px) {
  .jg-layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.6fr) minmax(170px, 1fr); }
  .jg-canvas-wrap { min-height: 220px; }
  .jg-game-card header h3 { font-size: 17px; }
  .jg-game-card header .btn { white-space: nowrap; }
  .jg-top { gap: 6px; }
  .jg-tools { gap: 4px; padding: 6px; }
  .jg-grupo { gap: 4px; padding: 0 2px; }
  .jg-tools .jg-color { width: 22px; height: 22px; }
  .jg-tools .jg-size, .jg-btn { height: 30px; }
}
.jg-regra { flex-basis: 100%; }
/* 2.16.6: chat fechado no PC. A regra das colunas redimensionáveis (.app.resizable .chat { position: relative })
   vinha depois e anulava o "position: fixed" do chat fechado: ele voltava para a grade, criava uma 2ª linha de 560px
   e a barra da chamada subia até a metade da tela. Aqui o chat fechado sai da grade de vez. */
html:not(.mobile) .app.chat-closed > .chat { position: fixed; left: -10000px; top: 0; }

/* 2.16.7: botão do rádio do bot de música */
.mu-controls .mu-radio.on { color: #fff; background: color-mix(in srgb, var(--a2) 35%, transparent); box-shadow: 0 0 10px var(--glow); }

/* ===================== 2.18.0: canal de Estudos ===================== */
.channel.estudo { color: color-mix(in srgb, #7fd6b0 70%, var(--text)); }
.estudo-faixa { display: flex; align-items: center; gap: 10px; padding: 8px 14px; margin: 0 12px 8px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, #7fd6b0 35%, var(--line)); background: color-mix(in srgb, #7fd6b0 9%, transparent); font-size: 13px; }
.estudo-faixa.eu { border-color: #7fd6b0; background: color-mix(in srgb, #7fd6b0 20%, transparent); }
.estudo-faixa .estudo-txt { flex: 1; min-width: 0; }
.estudo-faixa em { font-style: normal; color: var(--muted); }
.call-btn.pedindo, .icon-btn.pedindo { box-shadow: 0 0 0 2px #7fd6b0 inset; }
/* em Estudos não há live nem modo jogo, e a música não é escolhida */
html.modo-estudo #cb-share, html.modo-estudo #cb-play, html.modo-estudo #mu-form, html.modo-estudo #mu-radio, html.modo-estudo #mu-play, html.modo-estudo #mu-favtab { display: none !important; }

/* ===================== 2.19.0: cargos visíveis e moderação ===================== */
.cargo-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px;
  color: var(--rc); background: color-mix(in srgb, var(--rc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent); }
.cargo-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  color: var(--text); background: color-mix(in srgb, var(--rc) 18%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); }
.cargo-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rc); }
.pf-srv { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.pf-srv-tit { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pf-cargos, .pf-mod { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-mod .btn { display: inline-flex; align-items: center; gap: 5px; }
.pf-mod-sel { width: auto; padding: 4px 8px; font-size: 12px; }
.ini-membros { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.ini-membro { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .025); min-width: 0; }
.ini-membro:hover { background: rgba(155, 77, 255, .1); }
.ini-membro:focus-visible { outline: 2px solid var(--a2); }
.ini-membro.off { opacity: .6; }
.ini-membro-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ini-membro .ini-nome { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ini-cargos { display: flex; flex-wrap: wrap; gap: 4px; }
.sa-perms { display: flex; flex-wrap: wrap; gap: 6px 12px; flex-basis: 100%; padding: 4px 0 2px 22px; font-size: 12px; color: var(--muted); }
.sa-perms label { display: inline-flex; align-items: center; gap: 5px; margin: 0; cursor: pointer; }
.sa-acoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ===================== 2.21.0: aba Amigos, cartão da conversa privada, menu de servidores ===================== */
.fr-open .fr-on { margin-left: 6px; font-size: 11px; color: var(--ok, #3ccf6e); }
.fr-card-modal { width: min(920px, 100%); height: min(760px, 92vh); display: flex; flex-direction: column; }
.fr-card-modal header { gap: 12px; }
.fr-card-modal header h3 { flex: none; }
.fr-card-modal #fr-busca { flex: 1; min-width: 0; max-width: 320px; margin-left: auto; }
.fr-corpo { flex: 1; min-height: 0; overflow: auto; padding: 4px 2px 8px; }
.fr-sec { margin: 16px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fr-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.fr-empty { padding: 24px 8px; text-align: center; }
.frc { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c1) 35%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--c2) 30%, var(--panel)) 0%, var(--panel) 70%); }
.frc:not(.on) { opacity: .78; }
.frc-faixa { height: 56px; background: linear-gradient(120deg, var(--c1), var(--c2)); background-size: cover; background-position: center; }
.frc-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 0 12px; margin-top: -26px; }
.frc-ava { position: relative; display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 4px var(--panel); background: var(--panel); }
.frc-ava::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #5d5870; border: 3px solid var(--panel); }
.frc-ava.on::after { background: var(--ok, #3ccf6e); }
.frc-titulo { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); white-space: nowrap; margin-bottom: 4px; }
.frc-corpo { display: grid; gap: 2px; padding: 8px 12px 4px; min-width: 0; }
.frc-nome { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.frc-status i { width: 8px; height: 8px; border-radius: 50%; background: #5d5870; flex: none; }
.frc-status.on { color: var(--text); } .frc-status.on i { background: var(--ok, #3ccf6e); box-shadow: 0 0 8px var(--ok, #3ccf6e); }
.frc-bio { margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.frc-acoes { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 12px; margin-top: auto; }
.frc-acoes .frc-sair { margin-left: auto; opacity: .7; }
/* cartão "com quem estou falando" */
.chat-dm-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 26%, transparent), color-mix(in srgb, var(--c2) 22%, transparent)); }
.chat-dm-card[hidden] { display: none; }
.cdm-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cdm-nome { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* menu de servidores */
.ch-sub { list-style: none; padding: 8px 10px 2px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .8; }
.ch-n { margin-left: auto; min-width: 18px; padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 700; text-align: center;
  background: color-mix(in srgb, var(--ok, #3ccf6e) 22%, transparent); color: var(--ok, #3ccf6e); }
@media (max-width: 760px) {
  .fr-card-modal { height: calc(var(--app-h, 100dvh) - 24px); }
  .fr-grade { grid-template-columns: 1fr; }
  .fr-card-modal header { flex-wrap: wrap; }
  .fr-card-modal #fr-busca { order: 3; max-width: none; flex-basis: 100%; margin: 0; }
}
/* 2.21.0: foto do cartão de amigo com tamanho próprio (antes herdava um tamanho pequeno e a bolinha tapava a letra) */
.frc-ava .avatar { width: 52px; height: 52px; font-size: 20px; }
.frc-topo { margin-top: -30px; }

/* ===== beta 2.22.0: notificações de DM e menção (cartão com o lobinho) ===== */
.lobo { display: inline-flex; flex: none; } .lobo svg { width: 100%; height: 100%; display: block; }
.notifs { position: fixed; right: 16px; bottom: 84px; z-index: 61; display: flex; flex-direction: column-reverse; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.notif { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 34px 12px 12px; text-align: left; cursor: pointer;
  color: var(--text); font: inherit; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--a2) 38%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--a2) 16%, var(--panel-3)), var(--panel-3) 60%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45); animation: notif-in .28s cubic-bezier(.2, .9, .3, 1.2); }
.notif:hover { border-color: var(--a2); }
.notif.out { opacity: 0; transform: translateX(16px); transition: .25s; }
.notif-marca { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: #171022; border: 1px solid var(--line); }
.notif-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.notif-topo { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.notif-topo strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-topo small { color: var(--a2); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-corpo { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.notif-x { position: absolute; top: 6px; right: 8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 16px; }
.notif-x:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
@keyframes notif-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .notif { animation: none; } }
@media (max-width: 760px) { .notifs { left: 12px; right: 12px; bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 8px); width: auto; flex-direction: column; } }
html.modo-estudo .notifs { display: none; }
/* menção no texto da mensagem */
.mencao { color: var(--a2); font-weight: 600; background: color-mix(in srgb, var(--a2) 14%, transparent); border-radius: 4px; padding: 0 3px; }
.msg.me-citou { background: color-mix(in srgb, var(--a2) 9%, transparent); box-shadow: inset 3px 0 0 var(--a2); }

/* ===== beta 2.23.0: emojis, emotes e figurinhas ===== */
.emo-pop { position: fixed; z-index: 70; max-height: min(420px, 60vh); display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: var(--panel-2); border: 1px solid color-mix(in srgb, var(--a2) 30%, var(--line)); box-shadow: 0 18px 48px rgba(0, 0, 0, .55); animation: emo-in .16s ease-out; }
.emo-pop[hidden] { display: none; }
@keyframes emo-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.emo-abas { display: flex; gap: 4px; padding: 8px 8px 0; flex: none; }
.emo-aba { flex: 1; padding: 8px 6px; border: 0; border-radius: 10px 10px 0 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; border-bottom: 2px solid transparent; }
.emo-aba:hover { color: var(--text); } .emo-aba.on { color: var(--text); border-bottom-color: var(--a2); background: color-mix(in srgb, var(--a2) 10%, transparent); }
.emo-busca { margin: 8px 10px 0; flex: none; }
.emo-lista { flex: 1; min-height: 0; overflow: auto; padding: 4px 10px 10px; }
.emo-sec { margin: 10px 2px 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.emo-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 2px; }
.emo-e { height: 36px; border: 0; border-radius: 8px; background: transparent; font-size: 21px; line-height: 1; cursor: pointer; padding: 0; font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif; }
.emo-e:hover, .emo-i:hover { background: color-mix(in srgb, var(--a2) 18%, transparent); transform: scale(1.12); }
.emo-e, .emo-i { transition: transform .08s, background .08s; }
.emo-imgs { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }
.emo-figs { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.emo-i { border: 0; border-radius: 10px; background: transparent; padding: 4px; cursor: pointer; aspect-ratio: 1; display: grid; place-items: center; }
.emo-i img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.emo-vazio { padding: 24px 8px; text-align: center; font-size: 13px; }
.msg-text .emote { height: 1.55em; width: auto; max-width: 3.2em; vertical-align: -.38em; object-fit: contain; margin: 0 1px; }
.msg-text.so-emotes .emote { height: 48px; max-width: 96px; vertical-align: middle; }
.msg-fig { display: block; max-width: min(180px, 60%); max-height: 180px; object-fit: contain; margin-top: 4px; border-radius: 8px; }
.sa-emotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 8px 0; }
.sa-emotes.figurinha { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.sa-emote { position: relative; margin: 0; padding: 8px 6px 6px; border: 1px solid var(--line); border-radius: 10px; display: grid; justify-items: center; gap: 4px; background: var(--panel); }
.sa-emote img { width: 44px; height: 44px; object-fit: contain; } .sa-emotes.figurinha .sa-emote img { width: 80px; height: 80px; }
.sa-emote figcaption { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-emote-x { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; font-size: 15px; }
@media (max-width: 760px) { .emo-pop { left: 8px !important; right: 8px; width: auto !important; } .emo-e { height: 40px; font-size: 24px; } }
.emo-i img { width: 100%; height: 100%; image-rendering: auto; }
.emo-pop .emo-busca { width: calc(100% - 20px); }
.emo-pop { min-height: 260px; }

/* ===== beta 2.24.0: minijogos cooperativos ===== */
.jg-card.p5, .jg-dot.p5 { --pc: #3ccf6e; } .jg-card.p6, .jg-dot.p6 { --pc: #ffc83d; } .jg-card.p7, .jg-dot.p7 { --pc: #ff6b81; }
.jg-coop { margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle;
  background: color-mix(in srgb, var(--pc) 22%, transparent); color: var(--pc); }
.jg-mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(420px, 100%, 58vh); margin: 0 auto; }
.jg-carta { aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; padding: 0; font-size: clamp(26px, 6vw, 40px); color: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a2) 30%, var(--panel-3)), var(--panel-3)); transition: transform .18s, background .18s, box-shadow .18s; }
.jg-carta:not(:disabled):hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.jg-carta .jg-carta-in { display: grid; place-items: center; width: 100%; height: 100%; font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif; }
.jg-carta.aberta { background: var(--panel); animation: jg-vira .22s ease-out; cursor: default; }
.jg-carta.achada { border-color: #3ccf6e; background: rgba(60, 207, 110, .14); }
@keyframes jg-vira { from { transform: rotateY(90deg); } }
.jg-termo { display: grid; gap: 6px; justify-content: center; margin: 4px auto 12px; }
.jg-termo-l { display: grid; grid-template-columns: repeat(5, 46px) minmax(0, 90px); gap: 6px; align-items: center; }
.jg-termo-l small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.jg-termo-c { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; border: 2px solid var(--line); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.jg-termo-c.r0 { background: rgba(255, 255, 255, .07); border-color: transparent; color: var(--muted); }
.jg-termo-c.r1 { background: #c9a227; border-color: #c9a227; color: #17120a; }
.jg-termo-c.r2 { background: #2fa85a; border-color: #2fa85a; color: #06140b; }
.jg-termo-c[class*=" r"] { animation: jg-vira .25s ease-out; }
.jg-key.meio { background: rgba(255, 200, 61, .25); border-color: #ffc83d; }
.jg-minas { display: grid; grid-template-columns: repeat(var(--w, 9), 1fr); gap: 3px; width: min(440px, 100%, 60vh); margin: 0 auto; user-select: none; }
.jg-casa { aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--line); padding: 0; cursor: pointer; font-weight: 800; font-size: clamp(13px, 2.6vw, 18px); color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--a2) 26%, var(--panel-3)), var(--panel-3)); }
.jg-casa:not(:disabled):hover { filter: brightness(1.25); }
.jg-casa.aberta { background: rgba(255, 255, 255, .04); border-color: transparent; cursor: default; }
.jg-casa.n1 { color: #6aa9ff; } .jg-casa.n2 { color: #3ccf6e; } .jg-casa.n3 { color: #ff6b81; } .jg-casa.n4 { color: #c77dff; } .jg-casa.n5, .jg-casa.n6, .jg-casa.n7, .jg-casa.n8 { color: #ffc83d; }
.jg-casa.boom { background: rgba(255, 77, 94, .5); }
@media (prefers-reduced-motion: reduce) { .jg-carta.aberta, .jg-termo-c[class*=" r"] { animation: none; } }
@media (max-width: 760px) { .jg-termo-l { grid-template-columns: repeat(5, 40px) minmax(0, 60px); } .jg-termo-c { width: 40px; height: 40px; font-size: 19px; } }

/* ===== beta 2.24.0: faixas do início (Recomendados e Minijogos) e vitrine de jogos ===== */
.faixa { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 92px; padding: 16px 20px; border-radius: 18px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .12); color: #fff; font: inherit; text-align: left; isolation: isolate; transition: transform .18s, box-shadow .18s, border-color .18s; }
.faixa:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); border-color: rgba(255, 255, 255, .28); }
.faixa:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.faixa-txt { display: grid; gap: 2px; min-width: 0; flex: 1; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.faixa-txt small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.faixa-txt strong { font-size: clamp(17px, 2.2vw, 22px); line-height: 1.15; }
.faixa-txt span { font-size: 13px; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faixa-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(4px); }
.faixa:hover .faixa-cta { background: rgba(255, 255, 255, .26); }
.rec-faixa { background: linear-gradient(110deg, #7a0b22 0%, #dc143c 48%, #ff5a5f 100%); margin-bottom: 14px; }
.rec-trilho { position: absolute; inset: 0; z-index: -1; display: flex; gap: 10px; align-items: center; width: max-content; opacity: .2; filter: saturate(.9); animation: rec-anda 60s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.rec-trilho img { height: 110px; width: auto; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 10px; flex: none; }
.faixa:hover .rec-trilho { opacity: .3; }
@keyframes rec-anda { to { transform: translateX(-50%); } }
.mj-faixa { background: linear-gradient(110deg, #2a1650 0%, #7b2cbf 55%, #c77dff 100%); margin-top: 18px; }
.mj-pecas { position: absolute; inset: 0; z-index: -1; opacity: .22; pointer-events: none; }
.mj-pecas i { position: absolute; top: 50%; left: calc(8% + var(--i) * 13.5%); font-style: normal; font-size: 44px; transform: translateY(-50%) rotate(calc((var(--i) - 3) * 7deg)); animation: mj-flutua 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s);
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif; }
@keyframes mj-flutua { 50% { transform: translateY(-62%) rotate(calc((var(--i) - 3) * -5deg)); } }
@media (prefers-reduced-motion: reduce) { .rec-trilho, .mj-pecas i { animation: none; } .faixa { transition: none; } }
.rec-card { width: min(980px, 100%); height: min(820px, 92vh); display: flex; flex-direction: column; }
.rec-corpo { flex: 1; min-height: 0; overflow: auto; padding: 0 4px 8px; }
.rec-sec { margin: 18px 0 2px; font-size: 15px; } .rec-dica { margin: 0 0 10px; }
.rec-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.rec-jogo { display: grid; gap: 2px; padding: 8px 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
a.rec-jogo:hover { transform: translateY(-3px); border-color: #dc143c; box-shadow: 0 10px 24px rgba(220, 20, 60, .22); }
.rec-capa { display: block; aspect-ratio: 460 / 215; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg, #3a0d18, #1b1326); margin-bottom: 6px; }
.rec-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-jogo.sem-img .rec-capa { display: grid; place-items: center; }
.rec-nome { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-ps2 { padding: 12px; border-style: dashed; }
.rec-pe { margin: 16px 0 4px; }
@media (max-width: 760px) { .faixa { min-height: 78px; padding: 12px 14px; gap: 10px; } .faixa-cta { padding: 7px 10px; font-size: 12px; } .faixa-txt span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .rec-card { height: calc(var(--app-h, 100dvh) - 24px); } .rec-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .mj-pecas i { font-size: 32px; } }
/* enquanto a capa não chega (ou se não chegar), o nome do jogo ocupa o lugar dela */
.rec-capa { position: relative; } .rec-capa img { position: relative; }
.rec-capa::before { content: attr(data-nome); position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; font-weight: 700; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ===== beta 2.25.0: ícones de título (duas cores) ===== */
.tit-ico { display: inline-flex; flex: none; vertical-align: -.18em; } .tit-ico svg { display: block; overflow: visible; }
.tit { display: inline-flex; align-items: center; gap: 6px; }
.tier-h { display: flex; align-items: center; gap: 10px; }
#me-tier, .frc-titulo, .pf-badge.tier { display: inline-flex; align-items: center; gap: 5px; }
.tier-list li .tit { gap: 8px; }
.tier-list li:not(.ok) .tit-ico { filter: grayscale(1); opacity: .5; }
.tier-chip { min-height: 20px; line-height: 20px; }

/* ===== beta 2.25.0: animações (todas somem com "reduzir movimento" do sistema, regra global lá em cima) ===== */
/* mensagem nova */
.msg.chega { animation: msg-chega .26s cubic-bezier(.2, .8, .3, 1); }
.msg.mine.chega { animation-name: msg-chega-eu; }
@keyframes msg-chega { from { opacity: 0; transform: translateY(8px); } }
@keyframes msg-chega-eu { from { opacity: 0; transform: translateY(8px) scale(.98); transform-origin: right bottom; } }
/* janelas: o fundo escurece e o cartão sobe (reinicia toda vez que a janela aparece) */
.modal:not([hidden]) { animation: modal-fundo .18s ease-out; }
.modal:not([hidden]) > .modal-card { animation: modal-sobe .24s cubic-bezier(.2, .9, .3, 1.05); }
@keyframes modal-fundo { from { opacity: 0; } }
@keyframes modal-sobe { from { opacity: 0; transform: translateY(14px) scale(.97); } }
/* live abrindo */
.live-view:not([hidden]) .video-wrap { animation: live-abre .32s cubic-bezier(.2, .8, .3, 1); }
@keyframes live-abre { from { opacity: 0; transform: scale(.985); } }
.live-wait { animation: live-pulsa 1.6s ease-in-out infinite; }
@keyframes live-pulsa { 50% { opacity: .55; } }
/* menus e listas laterais */
.channel, .dm-row, .member, .ch-sub + li, .btn, .icon-btn, .pk-tab { transition: background-color .14s, color .14s, border-color .14s, transform .12s, box-shadow .14s; }
.btn:active:not(:disabled), .icon-btn:active:not(:disabled) { transform: scale(.96); }
.channels > ul:not([hidden]), .members:not([hidden]) { animation: lista-abre .2s ease-out; }
@keyframes lista-abre { from { opacity: 0; transform: translateY(-4px); } }
.toast { animation: toast-in .24s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes toast-in { from { opacity: 0; transform: translateX(14px) scale(.98); } }
/* centro: troca suave entre início, servidor e chamada */
#empty.tem-inicio > .entra { animation: entra-suave .28s ease-out; } /* só quando troca de painel, não a cada presença */
@keyframes entra-suave { from { opacity: 0; transform: translateY(6px); } }
/* celular: títulos de seção da barra (Servidores, Conversas…) e o chip de título com área de toque de 32 px */
@media (max-width: 760px), (pointer: coarse) { .channels .cat { min-height: 32px; display: flex; align-items: center; } .tier-chip { min-height: 32px; line-height: 32px; } }
/* hub de minijogos (2.25.0) */
.jg-card-ico { font-size: 30px; line-height: 1; font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif; }
#jg-hub-body .jg-sub { margin: 16px 0 4px; } #jg-hub-body .jg-sub:first-child { margin-top: 4px; }
#jg-hub-body .jg-cards { margin: 8px 0 4px; }
@media (max-width: 760px) {
  #jg-hub-body .jg-cards { grid-template-columns: 1fr; gap: 8px; }
  #jg-hub-body .jg-card { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; row-gap: 2px; padding: 12px; }
  #jg-hub-body .jg-card-ico { grid-row: 1 / 3; font-size: 28px; text-align: center; }
  #jg-hub-body .jg-card h4 { grid-column: 2; font-size: 15px; }
  #jg-hub-body .jg-card p.muted { grid-column: 2; grid-row: 2; font-size: 12px; margin: 0; }
  #jg-hub-body .jg-card p.small:not(.muted) { display: none; }
  #jg-hub-body .jg-card .btn { grid-column: 3; grid-row: 1 / 3; margin: 0; padding: 8px 12px; font-size: 13px; }
}
.au-notif-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .au-notif-row .check { flex: 1; min-width: 0; }
/* 2.25.1: aviso de versão nova */
.aviso-versao { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px;
  border-radius: 14px; background: var(--panel-3); border: 1px solid var(--a2); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); max-width: calc(100vw - 24px); animation: notif-in .28s ease-out; }
/* 2.25.1: atalho "Voltar para a chamada" no Lobby */
.lobby-volta { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; cursor: pointer; font: inherit; color: var(--text); text-align: left;
  border: 1px solid color-mix(in srgb, var(--ok, #3ccf6e) 45%, var(--line)); background: color-mix(in srgb, var(--ok, #3ccf6e) 12%, var(--panel)); }
.lobby-volta > svg, .lobby-volta > i { color: var(--ok, #3ccf6e); flex: none; }
.lobby-volta > span:nth-child(2) { display: grid; gap: 1px; flex: 1; min-width: 0; }
.lobby-volta small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobby-volta-cta { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 700; font-size: 13px; color: var(--ok, #3ccf6e); }
.lobby-volta:hover { border-color: var(--ok, #3ccf6e); }

/* ===== beta 2.26.0: vitrine com abas, favoritos e Jogar no Steam ===== */
.rec-abas { display: flex; gap: 4px; margin: 0 0 6px; border-bottom: 1px solid var(--line); flex: none; }
.rec-aba { padding: 9px 14px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rec-aba:hover { color: var(--text); } .rec-aba.on { color: var(--text); border-bottom-color: #dc143c; }
.rec-n:not(:empty) { margin-left: 2px; padding: 0 6px; border-radius: 999px; font-size: 11px; background: rgba(220, 20, 60, .25); color: #ff8fa3; }
.rec-jogo { position: relative; }
.rec-capa { cursor: pointer; }
.rec-fav { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; font-size: 17px; line-height: 1;
  background: rgba(10, 6, 20, .7); color: #fff; backdrop-filter: blur(4px); transition: transform .12s, background .12s; }
.rec-fav:hover { transform: scale(1.1); } .rec-fav.on { color: #ffc83d; background: rgba(10, 6, 20, .85); }
.rec-acoes { display: flex; gap: 6px; margin-top: 8px; } .rec-acoes .btn { flex: 1; justify-content: center; text-align: center; text-decoration: none; }
.rec-vazio { padding: 40px 12px; text-align: center; }
a.rec-jogo:hover, .rec-jogo:hover { border-color: #dc143c; }

/* ===== beta 2.27.0: eventos (amarelo, contrastando com o roxo) ===== */
:root { --ev: #ffc83d; --ev-escuro: #2a2108; }
.ev-tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--ev); }
.ev-btn { background: var(--ev); color: #1d1500; border-color: var(--ev); font-weight: 700; }
.ev-btn:hover { filter: brightness(1.08); }
.ev-selo { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--ev); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-selo.rolando { animation: ev-pisca 1.8s ease-in-out infinite; }
#srv-mine .channel.dm .member-name { display: block; }
@keyframes ev-pisca { 50% { opacity: .55; } }
.channel.ch-evento { color: var(--ev); background: color-mix(in srgb, var(--ev) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ev) 40%, transparent); }
.channel.ch-evento.on { background: color-mix(in srgb, var(--ev) 22%, transparent); }
.ch-ev-tag { margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; background: var(--ev); color: #1d1500; }
.ev-secao { margin: 4px 0 6px; }
.ev-secao-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ev-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 8px; }
.ev-cartao { display: grid; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--ev) 45%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--ev) 16%, var(--panel)), var(--panel) 70%); }
.ev-cartao.rolando { border-color: var(--ev); box-shadow: 0 0 0 1px var(--ev), 0 10px 30px rgba(255, 200, 61, .12); }
.ev-topo { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ev-quando { font-size: 12px; color: var(--muted); }
.ev-jogo { font-size: 20px; }
.ev-quem { color: var(--muted); }
.ev-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-missoes { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.ev-missoes li { display: grid; grid-template-columns: 16px 1fr auto; gap: 6px; align-items: baseline; }
.ev-missoes li b { color: var(--ev); font-size: 12px; }
.ev-missoes li.feita { opacity: .7; } .ev-missoes li.feita > span:first-child { color: var(--ok, #3ccf6e); font-weight: 800; }
.ev-missoes small { color: var(--muted); }
.ev-dm { display: grid; gap: 3px; margin-top: 6px; padding: 12px; border-radius: 12px; max-width: 320px; border: 1px solid var(--ev); background: color-mix(in srgb, var(--ev) 12%, var(--panel)); }
.ev-dm strong { font-size: 17px; } .ev-dm.fim { opacity: .65; border-style: dashed; }
.ev-card { width: min(520px, 100%); }
.ev-form { display: grid; gap: 8px; } .ev-form footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.ev-pessoas { display: grid; gap: 2px; max-height: 200px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; }
.ev-pessoa { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; cursor: pointer; } .ev-pessoa:hover { background: var(--panel-2); }
.ev-on { width: 8px; height: 8px; border-radius: 50%; background: var(--ok, #3ccf6e); margin-left: auto; }
.ev-voto { width: min(460px, 100%); } .ev-candidatos { display: grid; gap: 8px; margin: 10px 0; } .ev-candidatos .btn { justify-content: center; padding: 12px; font-size: 15px; }
.ev-festa { position: fixed; top: calc(var(--titlebar, 0px) + 16px); left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-radius: 16px; background: linear-gradient(135deg, #3a2a05, #1d1500); border: 2px solid var(--ev); color: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 200, 61, .25);
  animation: ev-festa-in .5s cubic-bezier(.2, 1.4, .4, 1); max-width: calc(100vw - 24px); }
.ev-festa > span:last-child { display: grid; gap: 2px; } .ev-festa small { color: #ffe9a8; }
.ev-festa-ico { font-size: 30px; animation: ev-pula .7s ease-in-out 2; }
.ev-festa.out { opacity: 0; transform: translate(-50%, -12px); transition: .35s; }
@keyframes ev-festa-in { from { opacity: 0; transform: translate(-50%, -24px) scale(.9); } }
@keyframes ev-pula { 50% { transform: translateY(-6px) rotate(-8deg); } }
.ev-quadro { position: fixed; left: calc(var(--side-w, 280px) + 24px); top: calc(var(--titlebar, 0px) + 64px); z-index: 40; width: 300px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--ev); background: color-mix(in srgb, var(--ev) 8%, var(--panel-2)); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.ev-quadro[hidden] { display: none; }
.ev-quadro-topo { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.ev-quadro-topo strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-quadro .ev-missoes { padding: 0 12px 12px; }
.pf-badge.insignia { border-color: var(--ev); color: var(--ev); background: color-mix(in srgb, var(--ev) 12%, transparent); }
html.modo-estudo .ev-quadro, html.modo-estudo .ev-festa { display: none; }
@media (max-width: 760px) { .ev-quadro { left: 12px; right: 12px; width: auto; top: 64px; } .ev-grade { grid-template-columns: 1fr; } }
/* 2.28.0: modo caos */
.ev-caos { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(157, 78, 221, .14); border: 1px dashed rgba(199, 125, 255, .5); }
.ev-quadro .ev-caos { margin: 0 12px 12px; }
.ev-caos-aceito { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; }
.ev-caos-btn { margin-left: auto; background: #7b2cbf; color: #fff; border-color: #9d4edd; }
.ev-caos-opc { align-items: flex-start; } .ev-caos-opc > span { display: grid; gap: 2px; }
.ev-caos-aviso { background: linear-gradient(135deg, #3c1361, #1b0a2e); border-color: #c77dff; box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 30px rgba(199, 125, 255, .35); }
.ev-caos-aviso .ev-festa-ico { animation: ev-gira 1s linear 3; }
@keyframes ev-gira { to { transform: rotate(360deg); } }
.ev-caos-aceito { text-transform: none; letter-spacing: normal; font-size: 13px; color: var(--text); margin: 0; }

/* 2.29.0: soundboard da call */
.sb-painel { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 60; width: min(470px, calc(100vw - 24px));
  padding: 14px; border-radius: 16px; background: var(--panel, #17181d); border: 1px solid var(--line, #2a2c33);
  box-shadow: 0 18px 50px rgba(0,0,0,.45); animation: sb-entra .16s ease-out; }
@keyframes sb-entra { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.sb-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sb-topo span { font-size: 12px; opacity: .65; }
.sb-grade { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sb-som { padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line, #2a2c33); background: var(--panel-2, #1f2128);
  color: inherit; font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: transform .08s, background .15s; }
.sb-som:hover { background: var(--panel-3); }
.sb-som:active { transform: scale(.95); }
.sb-som.foi { animation: sb-foi .35s ease-out; }
@keyframes sb-foi { 0% { box-shadow: 0 0 0 0 var(--glow); } 100% { box-shadow: 0 0 0 10px transparent; } }
.sb-rodape { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12px; }
.sb-rodape label { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--muted); margin: 0; }
.sb-vol { display: flex; align-items: center; gap: 8px; }
.sb-vol input { width: 110px; }
.sb-tag { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 61; padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,.72); color: #fff; font-size: 13px; pointer-events: none; animation: sb-tag 2.2s ease-out forwards; }
@keyframes sb-tag { 0% { opacity: 0; transform: translate(-50%, 6px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
@media (max-width: 760px) { .sb-painel { bottom: 140px; } .sb-grade { grid-template-columns: repeat(2, 1fr); } }

/* 2.29.1: quadro de missões no topo da tela; recolhido vira uma pilulinha (só o título) */
.ev-quadro.mini { width: auto; max-width: min(360px, calc(100vw - 24px)); border-radius: 999px; }
.ev-quadro.mini .ev-quadro-topo strong { flex: 0 1 auto; } /* 2.33.0: recolhido mostra o nome do jogo inteiro sempre que couber */
.ev-quadro.mini .ev-quadro-topo { padding: 6px 12px; }
.ev-quadro-seta { opacity: .7; font-size: 12px; }
.ev-caos-auto { font-weight: 600; }
/* 2.29.5: nível do caos aleatório */
.ev-caos-nivel { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); margin: 0; }
.ev-caos-nivel select { flex: 1; min-width: 0; padding: 4px 6px; border-radius: 8px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); font: inherit; font-weight: 500; }
/* 2.29.8: lista do @ no chat */
.composer { position: relative; }
.mc-caixa { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 30; display: grid; gap: 2px; padding: 6px; max-height: 280px; overflow: auto;
  border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.mc-item { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.mc-item span { color: var(--muted); font-size: 12px; }
.mc-item small { margin-left: auto; color: var(--muted); font-size: 11px; }
.mc-item.sel, .mc-item:hover { background: var(--panel-3); }
/* 2.31.2: Desenha & Adivinha — círculo do pincel e cursor de quem desenha */
.jg-canvas-wrap { position: relative; }
.jg-mira, .jg-ponteiro { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; will-change: transform; }
.jg-mira { margin: 0; border-radius: 50%; border: 2px solid #111; box-shadow: 0 0 0 1.5px #fff, inset 0 0 0 1px #fff; background: color-mix(in srgb, var(--c, #111) 45%, transparent);
  translate: -50% -50%; }
.jg-ponteiro { width: 0; height: 0; }
.jg-ponteiro::before { content: ''; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--a2); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.jg-ponteiro::after { content: '✏️'; position: absolute; left: 6px; top: -22px; font-size: 16px; }
.jg-mira[hidden], .jg-ponteiro[hidden] { display: none; }
/* 2.31.3: insígnia em destaque e botão de destacar no próprio perfil */
button.pf-badge.insignia { font: inherit; cursor: pointer; }
button.pf-badge.insignia:not(.destaque) { opacity: .75; }
button.pf-badge.insignia:hover { opacity: 1; }
.pf-badge.insignia.destaque { background: var(--ev); color: #1b1300; border-color: var(--ev); font-weight: 700; box-shadow: 0 0 14px color-mix(in srgb, var(--ev) 45%, transparent); }
/* 2.32.0: sons próprios do servidor no soundboard */
.sb-sub { margin: 12px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sb-som.proprio { border-color: color-mix(in srgb, var(--a2) 45%, var(--line)); overflow: hidden; text-overflow: ellipsis; }
.sb-dica { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.sa-sons { display: grid; gap: 6px; margin: 8px 0; }
.sa-som { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.sa-som strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 2.33.0: molduras de rank (desenho em js/molduras.js). A moldura é 1,875x o avatar, centralizada nele. */
.mold-wrap { position: relative; display: inline-grid; flex: none; place-items: center; }
.mold { position: absolute; inset: -43.75%; pointer-events: none; z-index: 2; }
.mold svg { width: 100%; height: 100%; overflow: visible; display: block; }
.tile .mold-wrap { margin: 18px 0 10px; }
.pf-avatar-wrap .mold-wrap { z-index: 1; }
.mold-pisca { transform-box: fill-box; transform-origin: center; animation: mold-pisca 2.6s ease-in-out infinite; }
.mold-pisca.d2 { animation-delay: .6s; } .mold-pisca.d3 { animation-delay: 1.2s; } .mold-pisca.d4 { animation-delay: 1.8s; }
@keyframes mold-pisca { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.6); } }
.mold-gira { transform-origin: 120px 120px; animation: mold-gira 16s linear infinite; }
@keyframes mold-gira { to { transform: rotate(360deg); } }
.mold-brilho { animation: mold-brilho 4s linear infinite; }
@keyframes mold-brilho { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -440; } }
@media (prefers-reduced-motion: reduce) { .mold-pisca, .mold-gira, .mold-brilho { animation: none; } }
/* painel de títulos: escolha da moldura e o que vem no próximo nível */
.tier-prox { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); display: flex; align-items: center; gap: 12px; }
.tier-prox .mold-mini { width: 56px; height: 56px; }
.tier-prox p { margin: 0; font-size: 13px; } .tier-prox b { color: var(--a2); }
.mold-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.mold-op { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.mold-op:hover:not(:disabled) { border-color: var(--a2); }
.mold-op.on { border-color: var(--a2); box-shadow: 0 0 0 1px var(--a2), 0 0 18px var(--glow); }
.mold-op:disabled { cursor: not-allowed; }
.mold-op:disabled .mold-mini { filter: grayscale(1) brightness(.45); }
.mold-op small { color: var(--muted); font-size: 11px; }
.mold-mini { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.mold-mini > i { width: 34px; height: 34px; border-radius: 50%; background: var(--a); }
.mold-mini svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mold-cadeado { position: absolute; top: 6px; right: 8px; font-size: 13px; }
.mold-opcoes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }

/* 2.33.3: moldura no Editar perfil */
.pf-moldura { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pf-moldura .mold-mini { width: 56px; height: 56px; }
.pf-moldura .muted { flex: 1; }
/* 2.34.0: links no chat e cartão do YouTube (estilo Discord) */
.msg-link { color: var(--a2); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.msg-link:hover { color: #fff; }
.yt-card { margin-top: 6px; max-width: 400px; padding: 10px 12px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid #ff0033; display: grid; gap: 8px; }
.yt-cab { display: grid; gap: 2px; min-width: 0; }
.yt-marca { font-size: 11px; color: var(--muted); }
.yt-tit { color: var(--a2); font-weight: 600; font-size: 14px; text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.yt-tit:hover { text-decoration: underline; }
.yt-canal { color: var(--muted); font-size: 12px; }
.yt-capa { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #000; }
.yt-capa img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .15s; }
.yt-capa:hover img { filter: brightness(.8); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; translate: -50% -50%; border-radius: 12px; background: rgba(255, 0, 51, .92); box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.yt-play::after { content: ''; position: absolute; left: 26px; top: 13px; border-left: 16px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.yt-player { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #000; }
.yt-bot { justify-self: start; }
/* 2.35.0: jogos — ícones próprios, cartões e convite no padrão do app */
.p5 { --pc: #3ccf6e; } .p6 { --pc: #ffc83d; } .p7 { --pc: #ff6b81; } .p8 { --pc: #2ec4b6; } .p9 { --pc: #c77dff; } .p10 { --pc: #ff8a3d; } .p11 { --pc: #4cc9f0; }
.jg-ico { display: block; flex: none; }
.jg-row-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; color: var(--pc, var(--a2)); background: color-mix(in srgb, var(--pc, var(--a2)) 16%, transparent); }
.jg-meta em.st-jogando { color: var(--ok); } .jg-meta em.st-espera { color: var(--muted); }
.ch-sub-jogos { display: flex; align-items: center; gap: 6px; padding-right: 4px; }
.ch-sub-jogos span { flex: 1; }
.ch-sub-add { width: 22px; height: 22px; opacity: .8; }
.ch-sub-add:hover { opacity: 1; }
.ch-jogo-novo { color: var(--muted); font-size: 13px; }
.jg-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.jg-card-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--pc); background: color-mix(in srgb, var(--pc) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); font-size: inherit; font-family: inherit; }
.jg-card-gente { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); padding: 3px 8px; border-radius: 999px; background: var(--panel-3); }
.jg-card { transition: transform .15s ease, border-color .15s ease; }
.jg-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--pc) 70%, transparent); }
.jg-open li .jg-row-ico { width: 28px; height: 28px; }
.jg-vazio { padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.jg-conv-cab { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent);
  background: color-mix(in srgb, var(--pc) 10%, transparent); }
.jg-conv-cab h4, .jg-conv-cab p { margin: 0; }
.jg-conv-lista { display: grid; gap: 4px; margin: 12px 0; max-height: 46vh; overflow: auto; }
.jg-conv-pessoa { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); margin: 0; }
.jg-conv-pessoa:hover { background: var(--panel-3); }
.jg-conv-pessoa span { flex: 1; }
.jg-conv-pessoa small { color: var(--muted); font-size: 11px; }
.jg-conv-pessoa.off { opacity: .55; cursor: not-allowed; }
.jg-conv-acoes { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 760px) {
  #jg-hub-body .jg-card { display: grid; grid-template-columns: 42px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; }
  #jg-hub-body .jg-card-top { grid-row: 1 / 3; margin: 0; } #jg-hub-body .jg-card-gente { display: none; }
  #jg-hub-body .jg-card h4 { grid-column: 2; } #jg-hub-body .jg-card p.muted { grid-column: 2; grid-row: 2; }
  #jg-hub-body .jg-card .btn { grid-column: 3; grid-row: 1 / 3; margin: 0; }
}
.mj-pecas i { color: rgba(255,255,255,.55); } /* 2.35.0: ícones de linha no lugar dos emojis */
/* 2.35.0: memória — cartas fixas (sem pular no hover, que tirava a carta de baixo do mouse) */
.jg-carta:not(:disabled):hover { transform: none; box-shadow: 0 0 0 2px var(--a2), 0 8px 20px rgba(0, 0, 0, .35); }
.jg-carta { background: linear-gradient(145deg, var(--panel-3), var(--panel-2)); transition: box-shadow .12s ease, background .12s ease; position: relative; }
.jg-carta:not(.aberta)::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--a2) 45%, transparent); }
.jg-carta.aberta { animation: none; }
.jg-carta.vira { animation: jg-vira .22s ease-out; }
.jg-carta.pend { box-shadow: 0 0 0 2px var(--a2); }
.jg-carta .jg-carta-in svg { width: 46%; height: 46%; }
.jg-mem.travada .jg-carta:not(:disabled) { cursor: wait; opacity: .7; }
.jg-mem-espera { color: var(--muted); }
.jg-mem-topo, .jg-mem-fim { width: 100%; }
@media (prefers-reduced-motion: reduce) { .jg-carta.vira { animation: none; } }
/* 2.36.0: sinuca */
#jg-body[data-kind="sinuca"] { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.jg-sn-mesa { flex: 1; min-height: 0; display: grid; place-items: center; }
.jg-sinuca { width: 100%; max-height: 100%; aspect-ratio: 1088 / 588; object-fit: contain; border-radius: 22px; box-shadow: 0 18px 40px rgba(0,0,0,.45); cursor: crosshair; touch-action: none; }
.jg-sn-placar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jg-sn-lado { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); transition: border-color .15s, box-shadow .15s; }
.jg-sn-lado.vez { border-color: var(--a2); box-shadow: 0 0 0 1px var(--a2), 0 0 16px var(--glow); }
.jg-sn-lado small { color: var(--muted); font-size: 12px; }
.jg-sn-lado em { font-style: normal; font-weight: 800; color: var(--a2); min-width: 14px; text-align: center; }
.jg-sn-x { color: var(--muted); font-size: 12px; }
.jg-sn-bola { width: 14px; height: 14px; border-radius: 50%; background: #9a90b3; flex: none; }
.jg-sn-bola.lisas { background: radial-gradient(circle at 35% 35%, #ffe28a, #f7c531 60%); }
.jg-sn-bola.listradas { background: linear-gradient(#f6f3ea 0 28%, #2f6fd6 28% 72%, #f6f3ea 72%); }
.jg-sn-rodape { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 32px; }
.jg-sn-dica { font-size: 13px; color: var(--muted); }
.jg-sn-dica.minha { color: var(--text); font-weight: 600; }
/* 2.37.0: Lig 4, Pontinhos e Stop */
.jg-ficha { width: 14px; height: 14px; border-radius: 50%; background: var(--fc); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); flex: none; }
#jg-body[data-kind="lig4"], #jg-body[data-kind="pontinhos"], #jg-body[data-kind="stop"] { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.jg-l4-wrap, .jg-pt-wrap { flex: 1; min-height: 0; display: grid; place-items: center; }
.jg-l4 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 12px; border-radius: 18px; background: linear-gradient(160deg, #2b2050, #1a1433);
  border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(0,0,0,.4); width: min(560px, 100%); }
.jg-l4-col { all: unset; display: grid; gap: 6px; padding: 4px; border-radius: 12px; cursor: pointer; }
.jg-l4.minha .jg-l4-col:hover { background: color-mix(in srgb, var(--fc) 14%, transparent); }
.jg-l4.minha .jg-l4-col:hover .jg-l4-casa:not(.cheia):last-of-type { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--fc) 60%, transparent); }
.jg-l4-col:disabled { cursor: default; }
.jg-l4-col:focus-visible { outline: 2px solid var(--a2); }
.jg-l4-casa { aspect-ratio: 1; border-radius: 50%; background: #0f0b1d; box-shadow: inset 0 3px 6px rgba(0,0,0,.6); }
.jg-l4-casa.cheia { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--fc) 55%, #fff), var(--fc) 60%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); animation: jg-cai .25s ease-in; }
.jg-l4-casa.venc { box-shadow: 0 0 0 3px #fff, 0 0 18px var(--fc); }
@keyframes jg-cai { from { transform: translateY(-160%); opacity: .3; } to { transform: none; opacity: 1; } }
.jg-pt { width: min(440px, 100%); height: auto; }
.jg-pt.minha .jg-pt-l:not(.feita):hover .vis { stroke: rgba(199,125,255,.75); }
.jg-pt .alvo { cursor: pointer; }
.jg-pt-placar { display: flex; flex-wrap: wrap; gap: 8px; }
.jg-stop-cab { display: flex; align-items: center; gap: 14px; }
.jg-stop-cab > div { display: grid; }
.jg-stop-letra { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 32px; font-weight: 900; color: #1b1300; background: linear-gradient(145deg, #ffe08a, #ffb23d); box-shadow: 0 8px 22px rgba(255,178,61,.35); }
.jg-stop-tempo { margin-left: 8px; }
.jg-stop-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.jg-stop-campo { display: grid; gap: 4px; margin: 0; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--muted); }
.jg-stop-campo input { font-size: 15px; }
.jg-stop-btn { font-weight: 900; letter-spacing: .08em; padding: 10px 26px; background: linear-gradient(135deg, #ff4d5e, #ff8a3d); border-color: #ff4d5e; }
.jg-stop-tab { display: grid; grid-template-columns: minmax(110px, auto) repeat(var(--n), minmax(110px, 1fr)); gap: 4px; overflow: auto; }
.jg-stop-tab > span { padding: 7px 10px; border-radius: 8px; background: var(--panel-2); font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.jg-stop-tab .cab { background: transparent; font-weight: 700; color: var(--muted); font-size: 12px; }
.jg-stop-tab .cat { color: var(--muted); font-size: 12px; }
.jg-stop-tab .resp b { font-size: 12px; padding: 2px 7px; border-radius: 999px; background: var(--panel-3); }
.jg-stop-tab .resp.p10 b { background: rgba(60,207,110,.2); color: #6ee79a; } .jg-stop-tab .resp.p5 b { background: rgba(255,200,61,.18); color: #ffd36b; }
.jg-stop-tab .resp.p0 { color: var(--muted); }
.jg-stop-tab .tot { font-weight: 800; background: var(--panel-3); }
.jg-sn-bot { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* 2.38.1: o Iru perdeu na sinuca: recado de vingança por cima de tudo (clique fecha) */
.iru-vinganca { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(circle at center, rgba(90, 0, 20, .55), rgba(5, 0, 8, .92) 70%); cursor: pointer; animation: iruVingEntra .6s ease-out both; }
.iru-vinganca img { width: 150px; height: 150px; object-fit: contain; filter: grayscale(.4) sepia(.6) hue-rotate(-40deg) saturate(3) drop-shadow(0 0 24px #ff1744); animation: iruVingTreme .12s infinite alternate; }
.iru-vinganca-txt { font-size: clamp(26px, 4.6vw, 60px); font-weight: 900; letter-spacing: .02em; color: #ff2d4a; text-align: center; padding: 0 20px;
  text-shadow: 0 0 18px rgba(255, 23, 68, .8), 3px 3px 0 #2a0008; animation: iruVingPulsa 1s ease-in-out infinite; }
.iru-vinganca-sub { color: #d9a5b0; font-size: 15px; opacity: .85; }
.iru-vinganca.saindo { animation: iruVingSai .8s ease-in forwards; }
@keyframes iruVingEntra { from { opacity: 0; } to { opacity: 1; } }
@keyframes iruVingSai { to { opacity: 0; } }
@keyframes iruVingTreme { from { transform: translate(-1px, 1px) rotate(-1deg); } to { transform: translate(1px, -1px) rotate(1deg); } }
@keyframes iruVingPulsa { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .iru-vinganca img, .iru-vinganca-txt { animation: none; } }

/* 2.38.2: aviso "voltar pro jogo" no topo enquanto a partida segue aberta e a tela do jogo está escondida */
.jg-volta { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px 9px 14px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; color: #fff;
  background: linear-gradient(90deg, #ff3d7f, #9b4dff); box-shadow: 0 6px 24px rgba(255, 61, 127, .45), 0 0 0 2px rgba(255, 255, 255, .12) inset;
  animation: jgVoltaEntra .35s ease-out, jgVoltaBrilho 2s ease-in-out infinite; }
.jg-volta[hidden] { display: none; }
.jg-volta b { background: rgba(255, 255, 255, .95); color: #6a1fd1; padding: 4px 12px; border-radius: 999px; font-size: 12px; }
.jg-volta:hover b { background: #fff; }
.jg-volta-ponto { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); animation: jgVoltaPonto 1.4s infinite; }
.jg-volta.vez { background: linear-gradient(90deg, #ffb020, #ff3d7f); box-shadow: 0 6px 26px rgba(255, 176, 32, .55); }
@keyframes jgVoltaEntra { from { opacity: 0; transform: translate(-50%, -12px); } }
@keyframes jgVoltaBrilho { 50% { box-shadow: 0 6px 32px rgba(255, 61, 127, .75), 0 0 0 2px rgba(255, 255, 255, .2) inset; } }
@keyframes jgVoltaPonto { 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .jg-volta, .jg-volta-ponto { animation: none; } }

/* 2.38.3: o Iru ganhou na sinuca: balão de zoeira no canto de baixo (clique fecha) */
.iru-zoeira { position: fixed; right: 24px; bottom: 24px; z-index: 9999; display: flex; align-items: center; gap: 12px; max-width: 380px;
  padding: 12px 18px 12px 12px; border-radius: 18px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #2a1650, #4a1f8a); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(155, 77, 255, .35);
  animation: iruZoeiraEntra .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.iru-zoeira img { width: 58px; height: 58px; object-fit: contain; animation: iruZoeiraRi .25s ease-in-out 6 alternate; }
.iru-zoeira b { display: block; font-size: 17px; font-weight: 800; color: #ffd84d; }
.iru-zoeira span { display: block; font-size: 14px; color: #e8dcff; margin-top: 2px; }
.iru-zoeira.saindo { animation: iruZoeiraSai .6s ease-in forwards; }
@keyframes iruZoeiraEntra { from { opacity: 0; transform: translateY(30px) scale(.9); } }
@keyframes iruZoeiraSai { to { opacity: 0; transform: translateY(20px); } }
@keyframes iruZoeiraRi { from { transform: rotate(-8deg) translateY(0); } to { transform: rotate(8deg) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .iru-zoeira, .iru-zoeira img { animation: none; } }

/* 2.39.0: Sinuca em destaque no hub: card largo e baixo (ocupa a linha toda) */
.jg-destaque { --pc: #2ec4b6; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin: 14px 0 6px;
  padding: 14px 18px 14px 14px; border-radius: 16px; position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--pc) 22%, transparent), transparent 55%),
              linear-gradient(135deg, var(--panel-2, #1c1530), var(--panel-3, #241b3d)); }
.jg-destaque::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.jg-dest-mesa { width: 120px; height: 64px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); transition: transform .25s ease; }
.jg-destaque:hover .jg-dest-mesa { transform: rotate(-3deg) scale(1.04); }
.jg-dest-txt { display: grid; gap: 4px; min-width: 0; }
.jg-dest-txt h4 { margin: 0; font-size: 18px; }
.jg-dest-txt p { margin: 0; }
.jg-dest-tag { display: flex; gap: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.jg-dest-tag span { color: var(--pc); }
.jg-dest-tag .novo { color: #1a1030; background: var(--pc); padding: 1px 6px; border-radius: 999px; }
.jg-dest-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.jg-dest-chips span { font-size: 11px; padding: 2px 9px; border-radius: 999px; color: color-mix(in srgb, var(--pc) 75%, white);
  background: color-mix(in srgb, var(--pc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 28%, transparent); }
.jg-dest-acoes { display: grid; gap: 8px; }
.jg-dest-acoes .btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
@media (max-width: 760px) {
  .jg-destaque { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .jg-dest-mesa { display: none; }
  .jg-dest-acoes { grid-template-columns: 1fr 1fr; }
}

/* 2.39.0: ranking da Sinuca (no hub) */
.jg-rank { display: grid; gap: 6px; margin: 12px 0; }
.jg-rank-rei { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 4px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 200, 61, .18), rgba(255, 200, 61, .04)); border: 1px solid rgba(255, 200, 61, .35); }
.jg-rank-rei .coroa { font-size: 26px; color: #ffc83d; line-height: 1; text-shadow: 0 0 12px rgba(255, 200, 61, .5); }
.jg-rank-rei div { flex: 1; display: grid; }
.jg-rank-rei small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #ffc83d; }
.jg-rank-linha { display: grid; grid-template-columns: 30px 1fr auto 56px; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--panel-3); }
.jg-rank-linha .pos { font-weight: 800; text-align: center; color: var(--muted); }
.jg-rank-linha .nome { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-rank-linha .rei { font-size: 10px; color: #1a1030; background: #ffc83d; padding: 1px 6px; border-radius: 999px; font-weight: 700; }
.jg-rank-linha .pts { text-align: right; font-variant-numeric: tabular-nums; }
.jg-rank-linha.top .pos { color: #1a1030; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; margin: 0 auto; font-size: 12px; }
.jg-rank-linha.ouro .pos { background: #ffc83d; } .jg-rank-linha.prata .pos { background: #c9d1e0; } .jg-rank-linha.bronze .pos { background: #d08a54; }
.jg-rank-linha.eu { outline: 1px solid color-mix(in srgb, #2ec4b6 60%, transparent); background: color-mix(in srgb, #2ec4b6 12%, var(--panel-3)); }
.jg-rank-meu { margin: 6px 2px 0; }

/* 2.39.0: faixa da Sinuca na página do servidor (rei da semana e 1º do ranking) */
.ini-sinuca { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin: 14px 0 4px; border-radius: 14px;
  border: 1px solid rgba(46, 196, 182, .3); background: linear-gradient(90deg, rgba(46, 196, 182, .12), rgba(46, 196, 182, .02)); }
.ini-sinuca:empty { display: none; }
.ini-sn-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #2ec4b6; background: rgba(46, 196, 182, .16); }
.ini-sn-txt { display: grid; flex: 1; min-width: 140px; }
.ini-sn-bloco { display: grid; padding: 4px 14px; border-left: 1px solid var(--line, rgba(255, 255, 255, .08)); }
.ini-sn-bloco small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ini-sn-bloco.rei small { color: #ffc83d; }
.ini-sn-bloco.rei strong::before { content: '♛ '; color: #ffc83d; }

/* 2.40.0: Configurações em janela inteira (categorias na lateral, conteúdo à direita) */
.cfg-card { width: min(980px, 96vw); height: min(680px, 90vh); padding: 0; display: grid; grid-template-columns: 240px 1fr; overflow: hidden; }
.cfg-lado { background: var(--panel); border-right: 1px solid var(--line); padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.cfg-lado h3 { display: flex; align-items: center; gap: 8px; margin: 0 8px 4px; font-size: 16px; }
.cfg-nav { display: grid; gap: 2px; align-content: start; flex: 1; overflow: auto; }
.cfg-nav-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.cfg-nav-item:hover { background: var(--panel-3); color: var(--text); }
.cfg-nav-item.on { background: color-mix(in srgb, var(--a) 22%, transparent); color: var(--text); box-shadow: inset 3px 0 0 var(--a2); }
.cfg-nav-item:focus-visible, .cfg-sair:focus-visible { outline: 2px solid var(--a2); }
.cfg-sair { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #ff8a8c; font-size: 14px; border-top: 1px solid var(--line); }
.cfg-sair:hover { background: rgba(255, 93, 125, .1); }
.cfg-main { position: relative; min-height: 0; display: flex; }
.cfg-fechar { position: absolute; top: 14px; right: 14px; z-index: 2; }
.cfg-corpo { flex: 1; overflow: auto; padding: 28px 36px 32px; display: grid; gap: 22px; align-content: start; }
.cfg-cab h2 { margin: 0; font-size: 22px; }
.cfg-cab p { margin: 4px 0 0; }
.cfg-grupo { display: grid; gap: 10px; }
.cfg-grupo h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cfg-desc { margin: -4px 0 2px; }
.cfg-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cfg-campo { display: grid; gap: 6px; margin: 0; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 13px; }
.cfg-campo-rot { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.cfg-campo select { height: 42px; border-radius: 10px; }
.cfg-cam-linha { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cfg-cam-linha .btn { display: inline-flex; align-items: center; gap: 6px; }
.cfg-cam { width: 260px; max-width: 100%; border-radius: 12px; background: #000; }
.cfg-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); justify-self: start; }
.cfg-seg button { all: unset; cursor: pointer; padding: 9px 16px; border-radius: 9px; font-size: 14px; color: var(--muted); transition: background .15s, color .15s; }
.cfg-seg button:hover { color: var(--text); }
.cfg-seg button.on { background: var(--a); color: #fff; box-shadow: 0 4px 14px rgba(157, 78, 221, .35); }
.cfg-seg button:focus-visible { outline: 2px solid var(--a2); }
.cfg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cfg-tile-wrap { display: grid; gap: 6px; align-content: start; }
.cfg-tile-wrap .btn { justify-self: start; }
.cfg-tile { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 8px;
  padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, background .15s, transform .15s; }
.cfg-tile:hover { border-color: color-mix(in srgb, var(--a2) 45%, transparent); transform: translateY(-1px); }
.cfg-tile:focus-visible { outline: 2px solid var(--a2); }
.cfg-tile-ico { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-3); color: var(--muted); transition: background .15s, color .15s; }
.cfg-tile-txt { display: grid; gap: 3px; }
.cfg-tile-txt b { font-size: 14px; }
.cfg-tile-txt span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.cfg-estado { grid-column: 2; justify-self: start; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--panel-3); color: var(--muted); }
.cfg-tile.on { border-color: color-mix(in srgb, var(--a2) 60%, transparent); background: color-mix(in srgb, var(--a) 12%, var(--panel)); }
.cfg-tile.on .cfg-tile-ico { background: var(--a); color: #fff; }
.cfg-tile.on .cfg-estado { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.cfg-slider { display: grid; grid-template-columns: 170px 1fr 48px; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.cfg-slider input { width: 100%; accent-color: var(--a2); }
.cfg-slider output { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.cfg-perfil { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--a) 18%, var(--panel)), var(--panel)); border: 1px solid var(--line); }
.cfg-perfil > div:not(.avatar) { flex: 1; display: grid; gap: 2px; }
.cfg-perfil b { font-size: 18px; }
.cfg-perfil .btn { display: inline-flex; align-items: center; gap: 6px; }
.cfg-av { width: 64px; height: 64px; font-size: 24px; }
.cfg-atalhos { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); }
.cfg-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.cfg-acoes .btn { display: inline-flex; align-items: center; gap: 6px; }
.cfg-sobre { display: flex; align-items: center; gap: 18px; }
.cfg-sobre img { width: 84px; height: 84px; object-fit: contain; }
.cfg-sobre div { display: grid; gap: 4px; }
.cfg-sobre b { font-size: 20px; }
@media (max-width: 760px) {
  .cfg-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 92vh; }
  .cfg-lado { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 10px 8px; gap: 8px; }
  .cfg-lado h3 { margin: 0 6px; }
  .cfg-nav { display: flex; overflow-x: auto; gap: 4px; }
  .cfg-nav-item { white-space: nowrap; padding: 8px 12px; }
  .cfg-nav-item.on { box-shadow: inset 0 -2px 0 var(--a2); }
  .cfg-sair { display: none; }
  .cfg-corpo { padding: 18px 16px 24px; }
  .cfg-slider { grid-template-columns: 1fr 48px; } .cfg-slider span { grid-column: 1 / -1; }
}
.cfg-sair-mob { color: #ff8a8c; }
@media (min-width: 761px) { .cfg-sair-mob { display: none !important; } }
.cfg-cab { display: block; padding-right: 40px; }
.cfg-link { grid-template-rows: auto; }
.cfg-link .cfg-tile-ico { grid-row: auto; color: var(--a2); }

/* 2.40.0: painel do servidor (mesma estrutura das Configurações, com controles maiores) */
.sa-card .cfg-corpo { gap: 26px; }
.sa-topo { display: flex; align-items: center; gap: 12px; padding: 0 6px 6px; }
.sa-topo h3 { margin: 0; font-size: 16px; line-height: 1.2; word-break: break-word; }
.sa-topo small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.sa-hero { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--a) 16%, var(--panel)), var(--panel)); }
.sa-hero .srv-ico.xl { width: 88px; height: 88px; font-size: 36px; border-radius: 22px; }
.sa-hero-txt { display: grid; gap: 6px; }
.sa-hero-txt b { font-size: 20px; }
.sa-numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sa-numeros div { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.sa-numeros b { font-size: 22px; }
.sa-campo input, .sa-campo textarea, .sa-linha input:not([type=color]), .sa-acoes select { height: 44px; border-radius: 10px; font-size: 15px; }
.sa-campo textarea { height: auto; min-height: 80px; padding: 10px 12px; }
.sa-linha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sa-linha input:not([type=color]) { flex: 1; min-width: 200px; }
.sa-body .btn { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; border-radius: 10px; }
.sa-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.sa-status.on { color: var(--text); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, var(--panel)); }
.sa-novo { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: end; }
.sa-cartoes { display: grid; gap: 10px; }
.sa-cartao { display: grid; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.sa-cartao.priv { border-color: color-mix(in srgb, var(--a2) 35%, transparent); }
.sa-cartao-top { display: flex; align-items: center; gap: 12px; }
.sa-cartao-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-3); color: var(--a2); flex: none; }
.sa-cartao-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sa-cartao-txt b { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.sa-cartao-top > input[type=text] { flex: 1; height: 42px; border-radius: 10px; font-size: 15px; }
.sa-dono { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, #ffc83d 25%, transparent); color: #ffc83d; }
.sa-apagar { width: 40px; height: 40px; color: var(--muted); flex: none; }
.sa-apagar:hover { color: var(--bad); background: rgba(255, 93, 125, .1); }
.sa-cor { width: 44px; height: 44px; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; flex: none; }
.sa-cargo { border-left: 4px solid var(--rc); }
.sa-cargos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-left: 2px; }
.sa-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sa-acoes select { width: auto; min-width: 170px; }
.sa-chave { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); transition: background .15s, border-color .15s, color .15s; --rc: var(--a2); }
.sa-chave:hover { color: var(--text); border-color: color-mix(in srgb, var(--rc) 50%, transparent); }
.sa-chave:focus-visible { outline: 2px solid var(--a2); }
.sa-chave-luz { width: 9px; height: 9px; border-radius: 50%; background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, box-shadow .15s; }
.sa-chave.on { color: var(--text); border-color: var(--rc); background: color-mix(in srgb, var(--rc) 20%, var(--panel-2)); }
.sa-chave.on .sa-chave-luz { background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.sa-vazio { padding: 22px; border-radius: 14px; border: 1px dashed var(--line); text-align: center; }
.sa-body .sa-emotes { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 0; }
.sa-sons { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sa-som { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.sa-som strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-play { width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--a) 25%, transparent); color: var(--a2); }
.sa-body input[type=search] { height: 44px; border-radius: 10px; }
.sa-body .cfg-seg button { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 760px) {
  .sa-numeros { grid-template-columns: repeat(2, 1fr); }
  .sa-novo { grid-template-columns: 1fr; }
  .sa-hero { flex-direction: column; text-align: center; }
  .sa-topo { display: none; }
}
.sa-card .sa-body { display: grid; flex-direction: initial; max-height: none; overflow-y: auto; gap: 26px; padding: 28px 36px 32px; }
.sa-card .sa-body > .muted.small { margin: 0; }
.modal-card .cfg-cab { display: block; padding-right: 40px; }
.cfg-grupo .form-error:empty { display: none; }
.sa-cartao-txt .dm-dot { display: inline-block; vertical-align: middle; }

/* 2.40.0: seletor de efeito da sinuca (bolinha branca onde se escolhe o ponto do taco) */
.jg-efeito { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); opacity: .55; transition: opacity .15s; }
.jg-efeito.ativo { opacity: 1; }
.jg-ef-bola { position: relative; width: 46px; height: 46px; border-radius: 50%; cursor: crosshair; flex: none; touch-action: none;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e9e4d8 55%, #b9b3a6 100%); box-shadow: 0 2px 8px rgba(0, 0, 0, .45), inset 0 -3px 6px rgba(0, 0, 0, .15); }
.jg-ef-bola:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
.jg-ef-mira { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(transparent calc(50% - .5px), rgba(0, 0, 0, .18) calc(50% - .5px), rgba(0, 0, 0, .18) calc(50% + .5px), transparent calc(50% + .5px)),
              linear-gradient(90deg, transparent calc(50% - .5px), rgba(0, 0, 0, .18) calc(50% - .5px), rgba(0, 0, 0, .18) calc(50% + .5px), transparent calc(50% + .5px)); }
.jg-ef-ponto { position: absolute; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: #e53e5a; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 8px rgba(229, 62, 90, .8); transition: left .08s, top .08s; }
.jg-ef-txt { display: grid; line-height: 1.15; }
.jg-ef-txt b { font-size: 12px; }
.jg-ef-txt small { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* 2.40.3: imagem aberta (chat e perfil) cabe sempre na janela. Antes o limite era "100% da altura" de uma célula de
   grade que cresce com o conteúdo, então com a janela pequena (app fora da tela cheia) a imagem passava e era cortada.
   Agora o limite é a própria janela (dvh/vw), descontando a margem e a barra de título do app. */
.lightbox, .pf-zoom { top: var(--titlebar, 0px); overflow: hidden; }
.lightbox img, .pf-zoom img { width: auto; height: auto;
  max-width: min(1600px, calc(100vw - 48px));
  max-height: calc(100dvh - var(--titlebar, 0px) - 48px); }
/* 2.41.0: câmera (mesmo caminho da live, cor própria para não confundir) */
.live-pill.cam, .ini-live.cam { background: #2ec4b6; color: #062320; }

/* 2.42.0: comemoração de vitória nos minijogos (não pega clique; some sozinha) */
.jg-vitoria { position: fixed; inset: 0; z-index: 9000; pointer-events: none; display: grid; place-items: center; animation: jgVitEntra .35s ease-out both; }
.jg-vitoria.saindo { animation: jgVitSai .6s ease-in forwards; }
.jg-vit-confete { position: absolute; inset: 0; width: 100%; height: 100%; }
.jg-vit-card { position: relative; display: grid; justify-items: center; gap: 10px; padding: 22px 34px 20px; border-radius: 22px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(255, 200, 61, .22), rgba(29, 24, 51, .92) 60%); border: 1px solid rgba(255, 200, 61, .45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(255, 200, 61, .25); animation: jgVitPula .55s cubic-bezier(.2, 1.6, .4, 1) both; }
.jg-vit-fotos { display: flex; gap: 10px; }
.jg-vit-av { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-size: 38px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--a), var(--a2)); box-shadow: 0 0 0 4px #ffc83d, 0 0 24px rgba(255, 200, 61, .6); animation: jgVitBalanca 1.1s ease-in-out infinite; }
.jg-vit-av img { width: 100%; height: 100%; object-fit: cover; }
.jg-vit-fotos .jg-vit-av:not(:only-child) { width: 64px; height: 64px; font-size: 26px; }
.jg-vit-nome { font-size: clamp(22px, 3.4vw, 34px); font-weight: 900; color: #ffc83d; text-shadow: 0 2px 0 #5a3a00, 0 0 18px rgba(255, 200, 61, .55); max-width: 80vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-vit-sub { font-size: 15px; color: #f3ecff; }
@keyframes jgVitEntra { from { opacity: 0; } }
@keyframes jgVitSai { to { opacity: 0; transform: translateY(-10px); } }
@keyframes jgVitPula { from { transform: scale(.4) translateY(30px); opacity: 0; } }
@keyframes jgVitBalanca { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .jg-vit-av, .jg-vit-card { animation: none; } }
html.a11y-movimento .jg-vit-av, html.a11y-movimento .jg-vit-card { animation: none; }

/* 2.43.0: elo da sinuca (selo), aviso de PDL ganho/perdido */
.sn-elo { --ec: #c9d1e0; display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 5px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  color: color-mix(in srgb, var(--ec) 85%, white); background: color-mix(in srgb, var(--ec) 16%, transparent); border: 1px solid color-mix(in srgb, var(--ec) 45%, transparent); }
.sn-elo svg { flex: none; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--ec) 60%, transparent)); }
.jg-sn-lado .sn-elo { font-size: 11px; padding: 1px 7px 1px 4px; }
.pf-badge.sinuca { font-size: 12px; }
.jg-rank-linha { grid-template-columns: 30px 1fr auto auto; }
.sn-pdl { position: fixed; left: 50%; top: calc(var(--titlebar, 0px) + 74px); transform: translateX(-50%); z-index: 9100; pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(22, 18, 40, .95); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: snPdlEntra .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.sn-pdl b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sn-pdl.ganhou b { color: var(--ok); text-shadow: 0 0 12px rgba(84, 224, 138, .5); }
.sn-pdl.perdeu b { color: var(--bad); }
.sn-pdl-elo { font-size: 13px; font-weight: 700; color: #ffc83d; }
.sn-pdl.perdeu .sn-pdl-elo { color: var(--muted); }
.sn-pdl.saindo { animation: snPdlSai .6s ease-in forwards; }
@keyframes snPdlEntra { from { opacity: 0; transform: translate(-50%, -16px) scale(.85); } }
@keyframes snPdlSai { to { opacity: 0; transform: translate(-50%, -10px); } }

/* 2.44.0: pílula da call (página do servidor/Lobby por cima da call) */
#stage { position: relative; }
.pilula { position: absolute; right: 18px; bottom: 18px; z-index: 40; width: min(340px, calc(100% - 36px)); display: grid; gap: 8px; padding: 10px;
  border-radius: 18px; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); animation: plEntra .3s ease-out both; }
.pilula[hidden] { display: none; }
@keyframes plEntra { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.pl-voltar { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 12px; }
.pl-voltar:hover { background: var(--panel-3); }
.pl-voltar:focus-visible { outline: 2px solid var(--a2); }
.pl-ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(84, 224, 138, .7); animation: plPonto 1.8s infinite; flex: none; }
@keyframes plPonto { 70% { box-shadow: 0 0 0 8px rgba(84, 224, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(84, 224, 138, 0); } }
.pl-txt { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.pl-canal { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-quem { font-size: 11px; color: var(--muted); }
.pl-avs { display: flex; }
.pl-avs .avatar { width: 26px; height: 26px; font-size: 11px; margin-left: -6px; box-shadow: 0 0 0 2px var(--panel); }
.pl-avs .avatar.speaking { box-shadow: 0 0 0 2px var(--ok); }
.pl-acoes { display: flex; gap: 6px; justify-content: space-between; }
.pl-btn { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-3); color: var(--text); transition: background .15s; }
.pl-btn:hover { background: color-mix(in srgb, var(--a) 30%, var(--panel-3)); }
.pl-btn:focus-visible { outline: 2px solid var(--a2); }
.pl-btn.off { background: color-mix(in srgb, var(--bad) 25%, var(--panel-3)); color: #ff8a9b; }
.pl-btn[hidden] { display: none; }
#pl-sair { background: var(--bad); color: #fff; }
.pl-musica { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 12px; background: color-mix(in srgb, var(--a) 14%, var(--panel-2)); color: var(--a2); }
.pl-musica[hidden] { display: none; }
.pl-mus-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text); }
.pl-musica .pl-btn { flex: none; width: 34px; height: 34px; }
@media (max-width: 760px) { .pilula { right: 10px; left: 10px; width: auto; bottom: 10px; } }
#stage.com-pilula .ini { padding-bottom: 170px; } /* espaço no fim da página para a pílula não tapar */

/* 2.45.0: menu da pessoa (botão direito), efeito de voz */
.stage-body.with-live .tile-vol input[type=range], .stage-body.with-live .tile-vol .vol-text { display: none; } /* minúsculo e zerava no toque: o volume fica no botão direito */
.menu-pessoa { position: fixed; z-index: 9500; width: 280px; padding: 10px; display: grid; gap: 8px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55); animation: mpEntra .12s ease-out; }
@keyframes mpEntra { from { opacity: 0; transform: scale(.97); } }
.mp-cab { display: flex; align-items: center; gap: 10px; padding: 2px 4px 6px; border-bottom: 1px solid var(--line); }
.mp-cab b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-sec { display: grid; gap: 6px; padding: 4px; }
.mp-rot { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mp-vol { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.mp-vol input { flex: 1; accent-color: var(--a2); height: 22px; }
.mp-vol-txt { min-width: 44px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.mp-linha { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-fx { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-chip { all: unset; cursor: pointer; padding: 6px 10px; border-radius: 999px; font-size: 12px; background: var(--panel-3); border: 1px solid var(--line); }
.mp-chip:hover { border-color: var(--a2); }
.mp-chip.on { background: var(--a); color: #fff; border-color: var(--a); }
.mp-chip.tirar { color: #ff8a9b; }
.mp-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; }
.mp-item:hover, .mp-item:focus-visible, .mp-chip:focus-visible { background: var(--panel-3); outline: none; }
.fx-pill { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: rgba(199, 125, 255, .2); color: var(--a2); white-space: nowrap; }
.sa-pend { border-color: color-mix(in srgb, var(--a2) 45%, transparent); }
.sa-pend-img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: var(--panel-3); flex: none; }
.sa-pend-img.figurinha { width: 84px; height: 84px; }
.sa-vol { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.sa-vol input { flex: 1; accent-color: var(--a2); }
.sa-vol-txt { min-width: 40px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.sa-som-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sa-som-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-sons { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* 2.46.0: atalhos (Configurações › Atalhos) e a dica de uma vez só perto da engrenagem */
.userpanel { position: relative; }
.dica-atalhos { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 8px); z-index: 40; display: grid; gap: 6px; padding: 12px 14px;
  background: var(--panel, var(--bg)); border: 1px solid var(--a); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 13px; line-height: 1.35; animation: dica-in .25s ease-out; }
.dica-atalhos::after { content: ""; position: absolute; right: 18px; bottom: -7px; width: 12px; height: 12px; background: inherit; border-right: 1px solid var(--a); border-bottom: 1px solid var(--a); transform: rotate(45deg); }
.dica-atalhos b { color: var(--a); }
.dica-atalhos span { color: var(--muted, inherit); }
.dica-atalhos div { display: flex; gap: 6px; margin-top: 2px; }
@keyframes dica-in { from { opacity: 0; transform: translateY(6px); } }
.cfg-novo { margin-left: auto; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 999px; background: var(--a); color: #fff; }
.cfg-atalhos-lista { display: grid; gap: 8px; }
.cfg-atalho { display: grid; grid-template-columns: 1fr minmax(150px, auto) 32px; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.cfg-atalho-txt { display: grid; gap: 2px; }
.cfg-atalho-txt span { font-size: 12px; color: var(--muted, inherit); }
.cfg-tecla { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 8px 12px; min-height: 36px; border-radius: 8px; font: 600 13px/1.2 ui-monospace, Consolas, monospace;
  background: var(--bg); border: 1px solid var(--line); border-bottom-width: 3px; }
.cfg-tecla:hover, .cfg-tecla:focus-visible { border-color: var(--a); }
.cfg-tecla.vazio { color: var(--muted, inherit); font-weight: 400; }
.cfg-tecla.ouvindo { border-color: var(--a); color: var(--a); animation: tecla-pisca 1s ease-in-out infinite; }
@keyframes tecla-pisca { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .cfg-tecla.ouvindo, .dica-atalhos { animation: none; } }

/* 2.47.0: "o maioral" — coroa, provocações que trocam e pontos entrando na conta */
.jg-vit-coroa { font-size: 12px; font-weight: 900; letter-spacing: .28em; color: #1d1833; background: linear-gradient(90deg, #ffc83d, #ffe08a, #ffc83d); padding: 4px 12px 4px 15px; border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 200, 61, .6); animation: jgCoroa 1.4s ease-in-out infinite; }
.jg-vit-frase { font-size: clamp(16px, 2.2vw, 21px); font-weight: 800; color: #fff; max-width: min(560px, 82vw); min-height: 1.3em; text-shadow: 0 2px 10px rgba(199, 125, 255, .7); }
.jg-vit-frase.nova { animation: jgFrase .35s cubic-bezier(.2, 1.6, .4, 1); }
.jg-vit-chips { display: flex; gap: 8px; margin-top: 4px; }
.jg-vit-chip { font: 800 16px/1 inherit; font-variant-numeric: tabular-nums; padding: 8px 14px; border-radius: 999px; color: #1d1833; background: #54e08a; box-shadow: 0 0 16px rgba(84, 224, 138, .55); }
.jg-vit-chip.pdl { background: #c77dff; color: #fff; box-shadow: 0 0 16px rgba(199, 125, 255, .6); }
.jg-vit-chip.voando { position: fixed; z-index: 9001; pointer-events: none; transition: transform .8s cubic-bezier(.5, -0.3, .7, 1), opacity .8s ease-in; }
#me-avatar.jg-ganhou-pts { animation: jgPtsChegou .6s ease-out; }
@keyframes jgCoroa { 50% { transform: scale(1.08); } }
@keyframes jgFrase { from { transform: scale(.6) rotate(-4deg); opacity: 0; } }
@keyframes jgPtsChegou { 40% { transform: scale(1.35); box-shadow: 0 0 0 4px #54e08a, 0 0 22px #54e08a; } }
@media (prefers-reduced-motion: reduce) { .jg-vit-coroa, .jg-vit-frase.nova { animation: none; } }
html.a11y-movimento .jg-vit-coroa, html.a11y-movimento .jg-vit-frase.nova { animation: none; }

.cfg-atalho-txt .cfg-atalho-aviso { color: #ffc83d; }


/* 2.50.0: resumo do PDL com detalhes e barra da divisão */
.sn-pdl { pointer-events: auto; cursor: pointer; flex-direction: column; min-width: 240px; }
.sn-pdl .sn-pdl-total { font-size: 22px; }
.sn-pdl-barra { width: 100%; height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.sn-pdl-barra i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .6s ease-out; }
.sn-pdl.perdeu .sn-pdl-barra i { background: var(--muted); }
.sn-pdl-det { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 3px; font-size: 12.5px; }
.sn-pdl-det li { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.sn-pdl .sn-pdl-det b { font-size: 12.5px; font-weight: 800; text-shadow: none; color: var(--text); }
.sn-pdl { border-radius: 16px; align-items: stretch; text-align: center; } .sn-pdl .sn-elo { align-self: center; }

.nv-texto { margin: 6px 0 0; color: var(--text); line-height: 1.45; }


/* 3.1.0: controle na tela transparente (dá para ver o jogo por trás) e botão de esconder */
.tp .tp-b, .tp .tp-stick, .tp .tp-dpad, .tp .tp-meio { opacity: .5; transition: opacity .15s; }
.tp .tp-b.on, .tp .tp-stick.on, .tp .tp-dpad:active { opacity: .85; }
.tp-olho { position: absolute; top: max(8px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: #fff; font-size: 20px; line-height: 1; opacity: .7; z-index: 2; }
.tp.tp-oculto > *:not(.tp-olho) { visibility: hidden; pointer-events: none !important; }

/* 3.1.0: sinuca no celular (força separada, mira fina, Tacar) */
.jg-toque { display: grid; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); opacity: .55; flex: 1 1 260px; }
.jg-toque[hidden] { display: none; }
.jg-toque.ativo { opacity: 1; }
.jg-tq-linha { display: flex; align-items: center; gap: 10px; }
.jg-tq-rot { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.jg-tq-val { min-width: 48px; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.35); text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
/* 3.10.0: barra de força com degradê verde → amarelo → vermelho (igual à do PC), marcas de 25% e bolinha com brilho */
.jg-tq-forca { flex: 1; height: 38px; -webkit-appearance: none; appearance: none; background: transparent; touch-action: none; --trilha: linear-gradient(90deg, #3ddc84 0%, #ffc83d 55%, #ff8a3d 85%, #ff4d5e 100%); }
.jg-tq-forca::-webkit-slider-runnable-track { height: 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(0,0,0,.35) calc(25% - 1px) 25%, transparent 25% calc(50% - 1px), rgba(0,0,0,.35) calc(50% - 1px) 50%, transparent 50% calc(75% - 1px), rgba(0,0,0,.35) calc(75% - 1px) 75%, transparent 75%),
    linear-gradient(90deg, transparent var(--f, 50%), rgba(20,14,32,.85) var(--f, 50%)), var(--trilha); }
.jg-tq-forca::-moz-range-track { height: 14px; border-radius: 999px; background: linear-gradient(90deg, transparent var(--f, 50%), rgba(20,14,32,.85) var(--f, 50%)), var(--trilha); }
.jg-tq-forca::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e9e4f5); border: 3px solid #ffc83d; box-shadow: 0 0 0 4px rgba(255,200,61,.22), 0 3px 10px rgba(0,0,0,.5); }
.jg-tq-forca::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid #ffc83d; box-shadow: 0 0 0 4px rgba(255,200,61,.22); }
.jg-tq-fino { min-width: 48px; min-height: 44px; font-size: 18px; touch-action: manipulation; }
.jg-tq-tacar { margin-left: auto; min-height: 44px; min-width: 96px; font-size: 16px; }

/* 3.1.0: mesa em tela cheia (no iPhone, que não tem tela cheia de verdade, ocupa a janela toda) */
#jg-body.sn-cheia { position: fixed; inset: 0; z-index: 9800; background: #0c0a16; padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); overflow: auto; }
#jg-body.sn-cheia .jg-sn-mesa { flex: 1 1 auto; }
#jg-body.sn-cheia .jg-sinuca { width: auto; height: 100%; max-width: 100%; max-height: calc(100dvh - 150px); }
@media (orientation: landscape) and (max-height: 520px) {
  #jg-body.sn-cheia { display: grid; grid-template-columns: 1fr minmax(220px, 34%); grid-template-rows: auto 1fr; gap: 8px; }
  #jg-body.sn-cheia .jg-sn-topo { grid-column: 1 / -1; }
  #jg-body.sn-cheia .jg-sinuca { max-height: calc(100dvh - 70px); }
  #jg-body.sn-cheia .jg-sn-rodape { flex-direction: column; align-items: stretch; overflow: auto; }
  #jg-body.sn-cheia .jg-sn-rodape .spacer { display: none; }
}
/* 3.1.0: no celular a mesa não encolhe por baixo dos controles (o painel de força ficava por cima dela) */
@media (max-width: 760px), (pointer: coarse) {
  #jg-body[data-kind="sinuca"]:not(.sn-cheia) { overflow: auto; }
  #jg-body[data-kind="sinuca"]:not(.sn-cheia) .jg-sn-mesa { flex: 0 0 auto; }
  #jg-body[data-kind="sinuca"]:not(.sn-cheia) .jg-sinuca { max-height: none; }
}
@media (orientation: landscape) and (max-height: 520px) {
  #jg-body.sn-cheia .jg-toque, #jg-body.sn-cheia .jg-efeito { flex: none; }
  #jg-body.sn-cheia .jg-sn-rodape { justify-content: flex-start; gap: 8px; }
}
.tp-olho { top: auto; right: auto; bottom: max(10px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); }

/* ===================== 3.3.0: ossinhos (carteira, missões, loja) ===================== */
.os-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--gc-line, var(--line));
  background: var(--gc-surface-3, var(--panel)); color: #ffe3b0; font: 700 12px/1 inherit; font-variant-numeric: tabular-nums; cursor: pointer; flex: none; }
.os-chip:hover, .os-chip:focus-visible { border-color: #ffc83d; }
.os-chip svg { color: #ffd88a; }
.os-chip.pulso { animation: osPulso .6s ease-out; }
@keyframes osPulso { 40% { transform: scale(1.18); box-shadow: 0 0 0 4px rgba(255,200,61,.35); } }
.os-card { width: min(640px, 100%); display: grid; gap: var(--gc-sp-4, 16px); }
.os-cab { display: grid !important; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--gc-sp-3, 12px); margin: 0 !important; }
.os-cab h3 { margin: 0; }
.os-cab p { margin: 2px 0 0; }
.os-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #ffc83d, #e7893c); color: #2a1a00; }
.os-saldo { display: inline-flex; align-items: center; gap: 4px; font-size: var(--gc-fs-xl, 22px); font-weight: 800; color: #ffe3b0; font-variant-numeric: tabular-nums; }
.os-abas { width: 100%; }
.os-abas button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.os-corpo { display: grid; gap: var(--gc-sp-4, 16px); min-height: 220px; }
.os-bloco { display: grid; gap: var(--gc-sp-2, 8px); }
.os-bloco-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.os-bloco-cab h4 { margin: 0; font-size: var(--gc-fs-md, 15px); }
.os-mis-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gc-sp-2, 8px); }
.os-mis { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: var(--gc-sp-3, 12px); padding: var(--gc-sp-3, 12px);
  border: 1px solid var(--gc-line, var(--line)); border-radius: var(--gc-radius-md, 12px); background: var(--gc-surface-1, var(--bg)); }
.os-mis.feita { border-color: color-mix(in srgb, var(--ok) 55%, transparent); background: color-mix(in srgb, var(--ok) 9%, var(--gc-surface-1, var(--bg))); }
.os-mis-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gc-surface-3, var(--panel)); color: var(--a); }
.os-mis.feita .os-mis-ico { background: var(--ok); color: #06210f; }
.os-mis-txt { display: grid; gap: 4px; min-width: 0; }
.os-mis-txt b { font-size: var(--gc-fs-sm, 14px); }
.os-barra { height: 6px; border-radius: 999px; background: var(--gc-surface-3, rgba(255,255,255,.1)); overflow: hidden; }
.os-barra i { display: block; height: 100%; border-radius: inherit; background: var(--gc-gradient-brand, var(--a)); }
.os-mis.feita .os-barra i { background: var(--ok); }
.os-mis-premio { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; color: #ffd88a; white-space: nowrap; }
.os-loja { display: grid; gap: var(--gc-sp-2, 8px); }
.os-item { display: grid; grid-template-columns: minmax(120px, 210px) 1fr auto; align-items: center; gap: var(--gc-sp-3, 12px); padding: var(--gc-sp-3, 12px);
  border: 1px solid var(--gc-line, var(--line)); border-radius: var(--gc-radius-md, 12px); background: var(--gc-surface-1, var(--bg)); }
.os-item.usando { border-color: var(--a); box-shadow: 0 0 0 1px var(--a) inset; }
.os-item-taco svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
.os-item-txt { display: grid; gap: 2px; min-width: 0; }
.os-item .btn { display: inline-flex; align-items: center; gap: 4px; }
.os-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.os-tag.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.os-ext { list-style: none; margin: 0; padding: 0; display: grid; }
.os-ext li { display: grid; grid-template-columns: 1fr auto auto; gap: var(--gc-sp-3, 12px); align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--gc-line, var(--line)); font-size: var(--gc-fs-sm, 14px); }
.os-ext b { font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }
.os-ext b.pos { color: var(--ok); } .os-ext b.neg { color: var(--bad); }
.os-ajuda { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 560px) { .os-item { grid-template-columns: 1fr auto; } .os-item-taco { grid-column: 1 / -1; } .os-cab { grid-template-columns: auto 1fr auto; } .os-cab .os-saldo { grid-row: 2; grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .os-chip.pulso { animation: none; } }
.os-abas button { white-space: nowrap; }

/* 3.3.0: apostas na sinuca e escolha do pano */
.jg-aposta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border: 1px solid color-mix(in srgb, #ffc83d 40%, var(--line));
  border-radius: 12px; background: color-mix(in srgb, #ffc83d 7%, transparent); }
.jg-ap-ico { color: #ffd88a; display: grid; place-items: center; }
.jg-ap-txt { font-size: 13px; }
.jg-ap-valor { width: 84px; padding: 5px 8px; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 700; color: #fff; -webkit-text-fill-color: #fff; background: #120d20; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; color-scheme: dark; } /* 3.9.0: número bem legível */
.jg-sn-mesa-sel { padding: 4px 8px; font-size: 13px; border-radius: 8px; max-width: 170px; }

/* ===================== 3.3.0: perfil refinado (design system + contraste WCAG) =====================
   Texto sobre o degradê: claro ou escuro conforme o contraste calculado em profile.js (classe pf-light).
   A edição fica em blocos sobre superfície sólida: contraste garantido com qualquer cor de perfil. */
.profile-card { --pf-txt: var(--gc-text, #ece6f7); --pf-txt2: var(--gc-text-muted, #b8aed0); width: min(480px, 100%); border-radius: var(--gc-radius-lg, 18px); overflow: hidden; }
.profile-card.has-theme { --pf-txt: #f4eefc; --pf-txt2: #e3d9f2; }
.profile-card.has-theme.pf-light { --pf-txt: #14101f; --pf-txt2: #3a3150; }
.profile-card.has-theme #pf-name, .profile-card.has-theme .pf-bio, .profile-card.has-theme .pf-user, .profile-card.has-theme .pf-act,
.profile-card.has-theme .pf-body > .muted { color: var(--pf-txt); text-shadow: none; }
.profile-card.has-theme .pf-user, .profile-card.has-theme .pf-bio.empty { color: var(--pf-txt2); }
.profile-card .pf-body { padding: 0 var(--gc-sp-6, 24px); }
.profile-card #pf-name { font-size: var(--gc-fs-xl, 22px); font-weight: var(--gc-fw-bold, 800); margin: var(--gc-sp-2, 8px) 0 0; letter-spacing: -.01em; }
.profile-card .pf-user { margin: 2px 0 var(--gc-sp-3, 12px); font-weight: 600; }
.profile-card .pf-bio { line-height: 1.5; }
.pf-buttons { display: flex; flex-wrap: wrap; gap: var(--gc-sp-2, 8px); margin-top: var(--gc-sp-4, 16px); }
.pf-buttons .btn, #pf-edit-btn { min-height: 40px; }
#pf-edit-btn { margin-top: var(--gc-sp-4, 16px); }
/* blocos da edição */
#pf-edit { display: grid; gap: var(--gc-sp-3, 12px); margin-top: var(--gc-sp-4, 16px); }
#pf-edit[hidden] { display: none; }
.pf-sec { display: grid; gap: var(--gc-sp-2, 8px); padding: var(--gc-sp-4, 16px); border-radius: var(--gc-radius-md, 12px);
  background: var(--gc-surface-2, #161228); border: 1px solid var(--gc-line, var(--line)); box-shadow: var(--gc-shadow-1, 0 2px 8px rgba(0,0,0,.25)); }
.pf-sec h4 { margin: 0 0 var(--gc-sp-1, 4px); font-size: var(--gc-fs-sm, 13px); text-transform: uppercase; letter-spacing: .08em; color: var(--gc-text-muted, var(--muted)); }
.profile-card .pf-sec label, .profile-card.has-theme .pf-body .pf-sec label, .profile-card.has-theme.pf-light .pf-body .pf-sec label { color: var(--gc-text, var(--text)); text-shadow: none; margin: var(--gc-sp-2, 8px) 0 0; }
.pf-sec .pf-dica { color: var(--gc-text-muted, var(--muted)); margin: 0; text-shadow: none; }
.pf-campo { display: grid; gap: var(--gc-sp-1, 4px); }
.pf-rot { font-size: var(--gc-fs-xs, 12px); font-weight: var(--gc-fw-semibold, 600); color: var(--gc-text, var(--text)); }
.pf-sec .pf-user-row span { color: var(--gc-text-muted, var(--muted)); font-weight: 700; }
.pf-sec input, .pf-sec textarea, .pf-sec select, .profile-card.has-theme .pf-sec textarea, .profile-card.has-theme .pf-sec input:not([type]) { background: var(--gc-surface-1, #0f0c1b); color: var(--gc-text, var(--text)); }
.pf-midia { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gc-sp-2, 8px); }
.pf-moldura .small { color: var(--gc-text, var(--text)); }
.pf-colors input[type=color]:disabled, #pf-banner-btn:disabled, #pf-mold-trocar:disabled { opacity: .45; cursor: not-allowed; }
/* níveis */
.pf-niveis { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-niveis > p { flex-basis: 100%; }
.pf-nivel { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--gc-surface-3, #211a3a); color: var(--gc-text-muted, var(--muted)); border: 1px dashed var(--gc-line, var(--line)); }
.pf-nivel small { font-weight: 700; color: #ffd88a; }
.pf-nivel.ok { color: var(--gc-text, var(--text)); border-style: solid; border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 12%, var(--gc-surface-2, #161228)); }
.pf-nivel.ok svg { color: var(--ok); }
.profile-card .pf-actions { position: sticky; bottom: 0; display: flex; gap: var(--gc-sp-2, 8px); padding: var(--gc-sp-3, 12px) 0 0; }
.profile-card .pf-actions .btn { min-height: 42px; }
/* 3.3.0: online com "Jogando X" e botão de entrar na call */
.member-txt { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.member-txt .member-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-act { font-size: 11px; color: var(--ok); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-join { color: var(--ok); }
.member-join:hover, .member-join:focus-visible { background: color-mix(in srgb, var(--ok) 18%, transparent); }
.profile-card .pf-actions { z-index: 2; margin: 0 calc(-1 * var(--gc-sp-6, 24px)); padding: var(--gc-sp-3, 12px) var(--gc-sp-6, 24px); background: var(--gc-surface-1, #0f0c1b); border-top: 1px solid var(--gc-line, var(--line)); }
.profile-card .pf-actions { position: static; margin: 0; padding: var(--gc-sp-2, 8px) 0 0; background: none; border-top: 0; }
.profile-card .pf-banner-btn:disabled { opacity: .45; filter: grayscale(1); cursor: not-allowed; }

/* ===================== 3.4.0: central de notificações (sininho) ===================== */
#toggle-sfx { position: relative; }
#toggle-sfx:not([data-badge=""])::after { content: attr(data-badge); position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--danger, #ef476f); color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--gc-surface-1, #0f0c1b); }
#toggle-sfx[data-badge=""]::after, #toggle-sfx:not([data-badge])::after { display: none; }
.ct-painel { position: fixed; z-index: 9000; width: min(380px, calc(100vw - 16px)); max-height: min(560px, calc(100vh - 80px)); display: flex; flex-direction: column;
  background: var(--gc-surface-2, #161228); border: 1px solid var(--gc-line, var(--line)); border-radius: var(--gc-radius-lg, 16px); box-shadow: var(--gc-shadow-3, 0 18px 50px rgba(0,0,0,.5)); overflow: hidden; animation: ctEntra .16s ease-out; }
@keyframes ctEntra { from { opacity: 0; transform: translateY(-6px); } }
.ct-cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.ct-cab h3 { margin: 0; font-size: 16px; }
.ct-cab .btn { display: inline-flex; align-items: center; gap: 4px; }
.ct-chaves { display: grid; gap: 6px; padding: 0 12px 12px; border-bottom: 1px solid var(--gc-line, var(--line)); }
.ct-chave { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left;
  border-radius: var(--gc-radius-md, 12px); background: var(--gc-surface-1, #0f0c1b); border: 1px solid transparent; color: var(--gc-text, var(--text)); cursor: pointer; }
.ct-chave:hover, .ct-chave:focus-visible { border-color: var(--gc-line, var(--line)); }
.ct-chave-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--gc-surface-3, #211a3a); color: var(--gc-text-muted, var(--muted)); }
.ct-chave[aria-checked="true"] .ct-chave-ico { color: var(--a); background: color-mix(in srgb, var(--a) 16%, transparent); }
.ct-chave-txt { display: grid; min-width: 0; }
.ct-chave-txt b { font-size: 13px; }
.ct-chave-txt small { font-size: 11px; color: var(--gc-text-muted, var(--muted)); line-height: 1.3; }
.ct-trilho { width: 34px; height: 20px; border-radius: 999px; background: var(--gc-surface-3, #2a2240); position: relative; transition: background .15s; }
.ct-trilho i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #cfc6e2; transition: transform .15s; }
.ct-chave[aria-checked="true"] .ct-trilho { background: var(--a); }
.ct-chave[aria-checked="true"] .ct-trilho i { transform: translateX(14px); background: #fff; }
.ct-lista { overflow-y: auto; padding: 6px; display: grid; gap: 2px; align-content: start; }
.ct-vazio { margin: 18px 12px; text-align: center; color: var(--gc-text-muted, var(--muted)); font-size: 13px; }
.ct-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; width: 100%; padding: 9px 10px; border-radius: 10px; text-align: left;
  background: none; border: 0; color: var(--gc-text, var(--text)); position: relative; }
button.ct-item { cursor: pointer; }
button.ct-item:hover, button.ct-item:focus-visible { background: var(--gc-surface-3, #211a3a); }
.ct-item.novo { background: color-mix(in srgb, var(--a) 9%, transparent); }
.ct-item.novo::before { content: ""; position: absolute; left: 3px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--a); }
.ct-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gc-surface-3, #211a3a); color: var(--gc-text-muted, var(--muted)); }
.ct-aposta .ct-ico, .ct-palpite .ct-ico { color: #ffd88a; }
.ct-missao .ct-ico { color: var(--ok); }
.ct-mordida .ct-ico { color: #ff9fb6; }
.ct-txt { display: grid; gap: 2px; min-width: 0; }
.ct-topo { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.ct-topo b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-topo small { flex: none; font-size: 11px; color: var(--gc-text-muted, var(--muted)); }
.ct-corpo { font-size: 12px; color: var(--gc-text-muted, var(--muted)); line-height: 1.35; }
.ct-valor { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 999px; align-self: center; }
.ct-valor.mais { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.ct-valor.menos { color: #ff8fa3; background: color-mix(in srgb, #ff8fa3 14%, transparent); }
/* mordida: tremidinha rápida da tela inteira (respeita "menos animação") */
body.mordido #app, body.mordido .app { animation: mordida .45s ease-in-out; }
@keyframes mordida { 0%, 100% { transform: none; } 20% { transform: translate(-4px, 1px) rotate(-.4deg); } 40% { transform: translate(4px, -1px) rotate(.4deg); } 60% { transform: translate(-3px, 0); } 80% { transform: translate(2px, 0); } }
@media (prefers-reduced-motion: reduce) { body.mordido #app, body.mordido .app { animation: none; } }
.a11y-menos-animacao body.mordido #app, html.menos-animacao body.mordido #app { animation: none; }
.mp-morder { color: #ff9fb6; }

/* ===================== 3.4.0: perfil com distribuição padronizada =====================
   Banner de ponta a ponta, foto sobreposta com anel na cor do cartão, nome + título na mesma linha,
   blocos "Agora" e "Sobre mim" com o mesmo rótulo, botões em grade de colunas iguais. Espaços só dos tokens. */
.modal-card.profile-card { padding: 0 0 var(--gc-sp-6, 24px); width: min(440px, 100%); }
.profile-card .pf-banner-wrap { margin: 0; height: 132px; border-radius: 0; }
.profile-card .pf-banner { border-radius: 0; }
.profile-card .pf-close { top: var(--gc-sp-3, 12px); right: var(--gc-sp-3, 12px); }
.profile-card .pf-banner-btn { right: var(--gc-sp-3, 12px); bottom: var(--gc-sp-3, 12px); }
.profile-card .pf-body { padding: 0 var(--gc-sp-6, 24px); }
.profile-card .pf-avatar-wrap { margin-top: -48px; align-items: flex-end; gap: var(--gc-sp-3, 12px); }
.profile-card .pf-avatar-wrap .avatar.xl { border: 5px solid var(--panel); box-shadow: var(--gc-shadow-1, 0 4px 14px rgba(0,0,0,.35)); }
.profile-card.has-theme .pf-avatar-wrap .avatar.xl { border-color: color-mix(in srgb, var(--pf2) 85%, #000); }
.profile-card .pf-status { padding-bottom: var(--gc-sp-2, 8px); }
.profile-card #pf-name { margin: var(--gc-sp-3, 12px) 0 0; line-height: 1.2; }
.profile-card .pf-user { margin: 2px 0 0; }
/* blocos de leitura: mesmo rótulo, mesmo espaço */
.profile-card .pf-act, .profile-card .pf-bio, .profile-card .pf-srv { margin: var(--gc-sp-4, 16px) 0 0; padding-top: var(--gc-sp-4, 16px); border-top: 1px solid color-mix(in srgb, var(--pf-txt, var(--text)) 14%, transparent); }
.profile-card .pf-act::before, .profile-card .pf-bio::before { display: block; margin-bottom: var(--gc-sp-1, 4px); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pf-txt2, var(--muted)); }
.profile-card .pf-act::before { content: "Agora"; }
.profile-card .pf-bio::before { content: "Sobre mim"; }
.profile-card .pf-act { display: block; font-size: 14px; font-weight: 600; color: var(--ok); }
.profile-card.has-theme .pf-act { color: var(--pf-txt); }
.profile-card .pf-bio { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-card .pf-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gc-sp-2, 8px); margin-top: var(--gc-sp-6, 24px); }
.profile-card .pf-buttons > [hidden] { display: none; }
.profile-card .pf-buttons .btn { width: 100%; justify-content: center; min-height: 40px; }
.profile-card #pf-join, .profile-card #pf-dm { grid-column: 1 / -1; }
/* 3.15.0: se só sobrar um secundário (ex.: offline sem convite), ele também ocupa a linha */
.profile-card #pf-friend:not([hidden]):has(+ #pf-game[hidden]), .profile-card #pf-game:not([hidden]):is(#pf-friend[hidden] + *) { grid-column: 1 / -1; }
.profile-card #pf-edit-btn { width: 100%; min-height: 42px; margin-top: var(--gc-sp-6, 24px); }
.profile-card.editing .pf-act, .profile-card.editing .pf-bio { display: none; }

/* ===================== 3.5.0: Modo Jogo — vagas e tela dividida ampliada ===================== */
.pad-dock { flex-wrap: wrap; max-width: calc(100% - 24px); }
.pad-dock-extra { flex-basis: 100%; display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.1); }
.pad-dock-pedido { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 8px; border-radius: 10px; font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--a) 22%, rgba(15,12,27,.9)); border: 1px solid color-mix(in srgb, var(--a) 55%, transparent); animation: padPedido 1.2s ease-in-out 3; }
.pad-dock-pedido span { flex: 1; min-width: 140px; }
@keyframes padPedido { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 35%, transparent); } }
.pad-dock-split { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pad-dock-split .btn { display: inline-flex; align-items: center; gap: 4px; }
.pad-split-sel { height: 28px; padding: 0 8px; border-radius: 8px; font-size: 12px; background: rgba(15,12,27,.85); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.pad-zoom { display: inline-flex; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); }
.pad-zoom button { padding: 4px 9px; font-size: 12px; font-weight: 600; background: rgba(15,12,27,.85); color: #d8d0ea; border: 0; cursor: pointer; }
.pad-zoom button + button { border-left: 1px solid rgba(255,255,255,.12); }
.pad-zoom button.on { background: var(--a); color: #fff; }
#live-video.recortado { transition: transform .25s ease, clip-path .25s ease; will-change: transform; }
@media (prefers-reduced-motion: reduce) { #live-video.recortado { transition: none; } }

/* ===================== 3.6.0: "Bora?" ===================== */
.bora-card { width: min(440px, 100%); display: grid; gap: var(--gc-sp-3, 12px); }
.bora-card > p { margin: 0; }
.bora-todos { justify-self: start; }
.bora-lista { display: grid; gap: 4px; max-height: min(46vh, 360px); overflow-y: auto; padding: 2px; }
.bora-p { display: grid; grid-template-columns: 34px 1fr 22px; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 10px; text-align: left;
  background: var(--gc-surface-1, #0f0c1b); border: 1px solid transparent; color: var(--gc-text, var(--text)); cursor: pointer; opacity: .75; }
.bora-p.on { opacity: 1; }
.bora-p:hover, .bora-p:focus-visible { border-color: var(--gc-line, var(--line)); opacity: 1; }
.bora-p.sel { border-color: var(--a); background: color-mix(in srgb, var(--a) 14%, var(--gc-surface-1, #0f0c1b)); opacity: 1; }
.bora-p-txt { display: grid; min-width: 0; }
.bora-p-txt b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bora-p-txt small { font-size: 11px; color: var(--gc-text-muted, var(--muted)); }
.bora-p.on .bora-p-txt small { color: var(--ok); }
.bora-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gc-line, var(--line)); color: transparent; }
.bora-p.sel .bora-check { background: var(--a); border-color: var(--a); color: #fff; }
.bora-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; font-weight: 800; color: #fff; flex: none; }
.bora-av img { width: 100%; height: 100%; object-fit: cover; }
.bora-recado { display: grid; gap: 4px; font-size: 12px; font-weight: 600; }
.bora-acoes { display: flex; justify-content: flex-end; gap: 8px; }
.bora-acoes .btn { display: inline-flex; align-items: center; gap: 6px; }
.bora-chamados { position: fixed; right: 16px; bottom: 16px; z-index: 9200; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.bora-chamado { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 34px 12px 12px; border-radius: 14px;
  background: var(--gc-surface-2, #161228); border: 1px solid color-mix(in srgb, var(--a) 50%, var(--gc-line, var(--line))); box-shadow: var(--gc-shadow-3, 0 18px 50px rgba(0,0,0,.5));
  animation: boraEntra .28s cubic-bezier(.2, 1.2, .4, 1); }
.bora-chamado .bora-av { width: 40px; height: 40px; }
.bora-chamado.out { opacity: 0; transform: translateY(8px); transition: .2s; }
@keyframes boraEntra { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.bora-chamado-txt { display: grid; gap: 3px; min-width: 0; font-size: 12px; color: var(--gc-text-muted, var(--muted)); }
.bora-chamado-txt b { font-size: 14px; color: var(--gc-text, var(--text)); }
.bora-chamado-txt q { color: var(--gc-text, var(--text)); font-style: italic; }
.bora-resps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.bora-x { position: absolute; top: 6px; right: 6px; }
@media (prefers-reduced-motion: reduce) { .bora-chamado { animation: none; } }

/* ===================== 3.7.0: notificação no celular ===================== */
.ct-link { display: flex; align-items: center; gap: 8px; margin: 0 12px 10px; padding: 9px 12px; border-radius: 10px; background: color-mix(in srgb, var(--a) 12%, var(--gc-surface-1, #0f0c1b));
  border: 1px solid color-mix(in srgb, var(--a) 35%, transparent); color: var(--gc-text, var(--text)); font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.ct-link span { flex: 1; }
.ct-link:hover, .ct-link:focus-visible { background: color-mix(in srgb, var(--a) 22%, var(--gc-surface-1, #0f0c1b)); }
.cfg-cel, .cfg-cel-det { display: grid; gap: 10px; }
.cfg-cel-det[hidden] { display: none; }
.cfg-cel-det > .btn { justify-self: start; }
.cfg-cel-horas { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 4px 2px; }
.cfg-hora { height: 32px; padding: 0 8px; border-radius: 8px; background: var(--gc-surface-1, #0f0c1b); color: var(--gc-text, var(--text)); border: 1px solid var(--gc-line, var(--line)); }
.cfg-cel-ios { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--gc-surface-1, #0f0c1b); border: 1px solid var(--gc-line, var(--line)); font-size: 13px; }
.cfg-cel-ios ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ===================== 3.8.0: cosméticos da loja ===================== */
/* nome "Aurora": degradê que se mexe (a etiqueta do cargo continua normal) */
.nome-aurora { background: linear-gradient(90deg, #c77dff, #4cc9f0, #7ee8b8, #ffd84d, #ff9fd6, #c77dff); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: nomeAurora 6s linear infinite; }
.nome-aurora > * { -webkit-text-fill-color: initial; }
@keyframes nomeAurora { to { background-position: 300% 0; } }
/* auras (molduras animadas): brilho em volta da foto, sem mexer no recorte da imagem */
.aura { border-radius: 50%; }
.aura-brilho { animation: auraBrilho 2.4s ease-in-out infinite; }
@keyframes auraBrilho { 50% { box-shadow: 0 0 0 3px rgba(199,125,255,.55), 0 0 18px 4px rgba(199,125,255,.55); } 0%, 100% { box-shadow: 0 0 0 2px rgba(199,125,255,.35), 0 0 8px 1px rgba(199,125,255,.3); } }
.aura-gelo { animation: auraGelo 3s ease-in-out infinite; }
@keyframes auraGelo { 50% { box-shadow: 0 0 0 3px rgba(168,230,255,.75), 0 0 22px 6px rgba(76,201,240,.55); } 0%, 100% { box-shadow: 0 0 0 2px rgba(168,230,255,.45), 0 0 10px 2px rgba(76,201,240,.3); } }
.aura-fogo { animation: auraFogo 0.9s ease-in-out infinite alternate; }
@keyframes auraFogo { 0% { box-shadow: 0 0 0 2px #ff8a3d, 0 -4px 14px 3px rgba(255,93,61,.7), 0 0 22px 6px rgba(255,200,61,.35); }
  100% { box-shadow: 0 0 0 3px #ffc83d, 0 -7px 20px 5px rgba(255,93,61,.8), 0 0 28px 8px rgba(255,138,61,.45); } }
.aura-arco { animation: auraArco 4s linear infinite; }
@keyframes auraArco { 0% { box-shadow: 0 0 0 3px #ff5d7d, 0 0 18px 4px rgba(255,93,125,.55); } 25% { box-shadow: 0 0 0 3px #ffd84d, 0 0 18px 4px rgba(255,216,77,.55); }
  50% { box-shadow: 0 0 0 3px #7ee8b8, 0 0 18px 4px rgba(126,232,184,.55); } 75% { box-shadow: 0 0 0 3px #4cc9f0, 0 0 18px 4px rgba(76,201,240,.55); } 100% { box-shadow: 0 0 0 3px #ff5d7d, 0 0 18px 4px rgba(255,93,125,.55); } }
@media (prefers-reduced-motion: reduce) { .aura, .nome-aurora { animation: none !important; } }
html.a11y-movimento .aura, html.a11y-movimento .nome-aurora { animation: none !important; }
.jg-vit-confete.previa { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9800; }
/* loja 3.8.0: categorias e prévias */
.os-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.os-cats button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer;
  background: var(--gc-surface-1, #0f0c1b); color: var(--gc-text-muted, var(--muted)); border: 1px solid var(--gc-line, var(--line)); }
.os-cats button.on { background: color-mix(in srgb, var(--a) 22%, var(--gc-surface-1, #0f0c1b)); color: var(--gc-text, var(--text)); border-color: var(--a); }
.os-prev { display: grid; place-items: center; min-height: 52px; }
.os-prev-nome b { font-size: 16px; }
.os-prev-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #7b2cbf; color: #fff; font-weight: 800; }
.os-prev-btn { justify-self: start; display: inline-flex; align-items: center; gap: 4px; }
.os-raridade { margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }
.os-raridade.raro { background: rgba(76,201,240,.16); color: #8ecbff; }
.os-raridade.epico { background: rgba(255,216,77,.16); color: #ffd84d; }
.os-item.epico { border-color: rgba(255,216,77,.45); box-shadow: inset 0 0 24px rgba(255,216,77,.06); }
.os-item.raro { border-color: rgba(76,201,240,.35); }

/* ===================== 3.9.0: controle conectado ===================== */
.pad-status { position: relative; color: var(--gc-text-muted, var(--muted)); }
.pad-status.on { color: var(--ok); }
.pad-status.on::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--gc-surface-1, #0f0c1b), 0 0 8px var(--ok); }
html.mobile .pad-status:not(.on) { display: none; }
.pc-painel { position: fixed; z-index: 9000; width: min(320px, calc(100vw - 16px)); padding: 14px; display: grid; gap: 10px; border-radius: 14px;
  background: var(--gc-surface-2, #161228); border: 1px solid var(--gc-line, var(--line)); box-shadow: var(--gc-shadow-3, 0 18px 50px rgba(0,0,0,.5)); }
.pc-painel h3 { margin: 0; font-size: 15px; }
.pc-painel p { margin: 0; }
.pc-item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--gc-surface-1, #0f0c1b); }
.pc-item svg { color: var(--ok); }
.pc-item span { display: grid; }
.pc-item small { font-size: 11px; color: var(--gc-text-muted, var(--muted)); }

/* ===================== 3.9.0: celular parecido com o PC ===================== */
.m-voltar, #cb-mais, .m-callpill { display: none; }
@media (max-width: 820px) {
  .m-voltar { display: grid; flex: none; }
  .stage-head .stage-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  /* barra da call enxuta: mic, fone, câmera, Bora?, mais, sair (o resto vai para o "mais") */
  #cb-share, #cb-play, #cb-board, #cb-audio { display: none !important; }
  #cb-mais { display: grid; }
  .callbar { flex-wrap: nowrap; justify-content: space-between; gap: 6px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .callbar .call-btn { width: auto; flex: 1 1 0; max-width: 64px; height: 54px; border-radius: 18px; }
  .callbar .net-pill, .callbar .rede-pill { display: none; }
  /* faixa "Na call" no topo do chat */
  .m-callpill { display: flex; align-items: center; gap: 10px; margin: 6px 12px; padding: 10px 14px; border-radius: 999px; min-height: 44px;
    background: #143326; border: 1px solid #2f6b4f; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-align: left; }
  .m-callpill[hidden] { display: none; }
  .m-callpill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex: none; }
  .m-callpill-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* aba do meio vira "Call" com ponto verde */
  .m-tab.na-call { color: var(--ok); }
  .m-tab.na-call::after { content: ''; position: absolute; top: 9px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px #0c0a16; }
  /* página do servidor: cartões de voz grandes e fáceis de tocar */
  .ini-grade { grid-template-columns: 1fr !important; }
  .ini-voz { cursor: pointer; border-radius: 16px; padding: 14px; }
  .ini-voz footer .btn { min-height: 40px; padding: 0 18px; border-radius: 999px; }
  .ini-chips { flex-wrap: wrap; }
  .ini-chip { min-height: 44px; padding: 0 16px; border-radius: 999px; }
  .m-mais { place-items: end stretch; }
  .m-mais-card { display: grid; gap: 6px; padding: 14px; }
  .m-mais-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--panel-2); color: var(--text); font: inherit; font-size: 15px; text-align: left; }
}
/* PC: o mesmo cartão de voz fica tocável e o canal em que você está fica destacado */
.ini-voz { cursor: pointer; transition: border-color .15s, transform .15s; }
.ini-voz:hover { border-color: color-mix(in srgb, var(--a) 45%, var(--line)); }
.ini-voz.aqui { border-color: var(--ok); }
/* 3.11.0: pote de ossinhos ocupa a linha inteira embaixo do topo do jogo */
.jg-top.com-pote .jg-pote { flex: 1 1 100%; }


/* ===================== 3.11.2: celular como o protótipo ===================== */
.m-inicio[hidden], .m-chatbtn[hidden] { display: none !important; }
@media (max-width: 820px) {
  /* --- aba Servidores: início em cartões; da barra lateral antiga fica só Conversas, Amigos e Lives --- */
  .sidebar { display: flex; flex-direction: column; overflow-y: auto; }
  .sidebar > .server-head, .sidebar > .userpanel { display: none !important; }
  .sidebar .channels { overflow: visible; flex: none; padding-top: 0; }
  .sidebar .channels > [data-sec="lobby"], #ch-chat, .channels > [data-sec="servidores"], #srv-mine,
  .channels > [data-sec="jogos"], #jg-open-2, #jg-list, .channels > [data-sec="online"], #online-list { display: none !important; }
  .m-inicio { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 6px; }
  .mi-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
  .mi-ola { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .mi-ola small { font-size: 13px; color: var(--muted); }
  .mi-ola b { font-size: 22px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mi-ossos { display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: #241c10; color: #ffd84d; font: inherit; font-weight: 800; font-size: 14px; }
  .mi-cfg { width: 40px; height: 40px; border-radius: 12px; background: var(--panel-2); }
  .mi-tit { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
  .mi-srv { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font: inherit; text-align: left; min-height: 72px; }
  .mi-srv.ativo { border-color: #3c6b4f; }
  .mi-srv .srv-ico { width: 48px; height: 48px; border-radius: 14px; flex: none; font-size: 20px; }
  .mi-srv-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .mi-srv-txt b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mi-srv-txt small { font-size: 12px; color: var(--muted); }
  .mi-srv-txt .mi-on { color: var(--ok); display: flex; align-items: center; gap: 6px; }
  .mi-on i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
  .mi-srv > svg { color: var(--muted); flex: none; }
  .mi-novo { height: 48px; border-radius: 14px; border: 1px dashed #3a2f57; background: transparent; color: #cfc6e2; font: inherit; font-weight: 600; font-size: 14px; }
  .mi-amigos { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
  .mi-amigo { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; flex: none; border: 0; background: none; color: var(--text); font: inherit; font-size: 12px; }
  .mi-amigo span:last-child { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .avatar.md { width: 52px; height: 52px; font-size: 20px; }
  .mi-amigo.em-call .avatar { box-shadow: 0 0 0 3px #0f0c1b, 0 0 0 5px var(--ok); }
  .mi-dica { margin: 0; font-size: 12px; color: var(--muted); }
  .mi-jogos { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #3b1d63, var(--panel-2)); border: 1px solid #4a2d78; color: var(--text); font: inherit; text-align: left; margin-top: 8px; }
  .mi-jogos > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
  .mi-jogos b { font-size: 15px; } .mi-jogos small { font-size: 12px; color: #cfc6e2; }
  .mi-jogar { padding: 10px 14px; border-radius: 999px; background: var(--a); color: #fff; font-size: 13px; font-weight: 700; }
  .mi-lobby { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: transparent; border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px; text-align: left; min-height: 48px; }
  .mi-lobby span { flex: 1; }

  /* --- página do servidor --- */
  .ini.mv { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 16px; }
  .mv-topo { display: flex; align-items: center; gap: 12px; }
  .mv-topo .srv-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; }
  .mv-topo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .mv-topo-txt b { font-size: 18px; font-weight: 800; } .mv-topo-txt small { font-size: 12px; color: var(--muted); }
  .mv-ic { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); }
  .mv-lista { display: flex; flex-direction: column; gap: 8px; }
  .mv-voz { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font: inherit; text-align: left; }
  .mv-voz.vazio { flex-direction: row; align-items: center; min-height: 52px; }
  .mv-voz.vazio > b { flex: 1; font-size: 16px; } .mv-voz.vazio small { font-size: 12px; color: var(--muted); }
  .mv-voz > svg { color: var(--muted); }
  .mv-voz.ativo { border-color: #3c6b4f; }
  .mv-voz.aqui { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) inset; }
  .mv-linha { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .mv-linha > svg { color: var(--ok); flex: none; }
  .mv-linha > b { flex: 1; font-size: 16px; }
  .mv-n { color: var(--ok); font-weight: 600; font-size: 12px; }
  .mv-quem { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mv-entrar { padding: 10px 16px; border-radius: 999px; background: var(--a); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
  .m-pilhas { display: flex; flex: none; }
  .m-pilhas .avatar { border: 2px solid var(--panel-2); }
  .m-pilhas .avatar + .avatar { margin-left: -8px; }
  .avatar.xs { width: 22px; height: 22px; font-size: 10px; }
  .mv-txt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: transparent; border: 0; color: #cfc6e2; font: inherit; text-align: left; min-height: 48px; }
  .mv-txt.on, .mv-txt:first-child { background: var(--panel-2); color: var(--text); }
  .mv-txt b { flex: 1; font-size: 15px; font-weight: 600; } .mv-txt svg { color: var(--muted); }
  .mv-hash { color: var(--muted); font-size: 18px; font-weight: 700; }

  /* --- tela da call: ocupa tudo (sem abas), cabeçalho com Chat, quadrinhos 2 por linha --- */
  #app.m-telacall { --tabs-h: 0px; }
  #app.m-telacall .m-tabs { display: none; }
  .m-chatbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; }
  #app.m-telacall #toggle-sfx, #app.m-telacall #btn-print { display: none !important; }
  #app.m-telacall .stage-body:not(.with-live) .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; justify-content: stretch; flex: 1; overflow-y: auto; }
  #app.m-telacall .stage-body:not(.with-live) .tile { width: auto; aspect-ratio: 1; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 8px; }
  .m-bora-tile { aspect-ratio: 1; border-radius: 20px; border: 2px dashed var(--line); background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 600; }
  #cb-bora, .callbar .rede-pill, .callbar .net-pill, .callbar #net-pill { display: none !important; }
  .callbar { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: #120e20; border-top: 1px solid var(--line); }
  .callbar > :not(.call-btn) { display: none !important; }
  .callbar .call-btn { width: auto; max-width: none; height: 56px; border-radius: 18px; }

  /* --- faixa "Na call" fica em cima das abas (Servidores e Mensagens) --- */
  .m-callpill { position: absolute; left: 12px; right: 12px; bottom: calc(var(--tabs-h) + 8px); z-index: 41; margin: 0; padding: 8px 10px 8px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
  .m-callpill .m-pilhas .avatar { border-color: #143326; }
  #app:not(.m-telacall) .m-callpill:not([hidden]) ~ * , #app .sidebar, #app .chat { scroll-padding-bottom: 70px; }
  .m-tab .avatar.xs { width: 24px; height: 24px; }

  /* --- página do servidor sem estar na call: sem a barra de entrar (entra tocando no canal); a pílula do PC
         some porque no celular a faixa "Na call" faz o mesmo --- */
  #app:not(.m-telacall) .callbar { display: none !important; }
  .pilula { display: none !important; }

  /* --- chat --- */
  .chat-head #chat-head-where { display: none; }
  /* gaveta de Favoritos da música: cobre o chat inteiro (antes sobrava uma faixa do chat aparecendo por trás) */
  .mu-drawer { top: 0; left: 0; max-width: none; border-left: 0; z-index: 35; }
}
/* 3.11.2: a gaveta escondida fica fora da tela à direita: sem isso o chat "deslizava" para o lado e ficava torto */
.chat { overflow-x: clip; }

/* ===================== 3.12.2: sinuca com a mesa em pé no celular ===================== */
#jg-body.sn-empe[data-kind="sinuca"] { position: fixed; inset: 0; z-index: 9800; background: #0c0a16; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  padding: max(8px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom)); }
#jg-body.sn-empe[data-kind="sinuca"] .jg-sn-topo { flex: none; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-top { gap: 6px; flex-wrap: nowrap; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-sn-placar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-sn-lado { padding: 4px 8px; font-size: 12px; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-sn-lado small { display: none; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-sn-x { display: none; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-sn-mesa { position: relative; flex: 1 1 auto; min-height: 0; display: block; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-sn-rodape { flex: none; display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; max-height: 42dvh; overflow-y: auto; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-toque { grid-column: 1 / -1; grid-row: 1; opacity: 1; padding: 8px; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-toque:not(.ativo) { opacity: .45; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-efeito { grid-column: 1; grid-row: 2; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-sn-dica { grid-column: 2; grid-row: 2; font-size: 12px; line-height: 1.3; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-sn-rodape .spacer { display: none; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-sn-rodape > :nth-child(n+5) { grid-column: 1 / -1; justify-self: start; }
#jg-body.sn-empe[data-kind="sinuca"] .jg-sn-cheia { display: none; } /* em pé a mesa já ocupa a tela; "tela cheia" deita o celular */
#jg-body.sn-empe[data-kind="sinuca"] .jg-tq-tacar { min-height: 52px; min-width: 120px; font-size: 18px; }

/* 3.12.2: celular deitado: tela inteira, mesa à esquerda e controles à direita */
#jg-body.sn-deitado[data-kind="sinuca"] { position: fixed; inset: 0; z-index: 9800; background: #0c0a16; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 32%); grid-template-rows: auto minmax(0, 1fr); gap: 6px 10px;
  padding: max(6px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
#jg-body.sn-deitado[data-kind="sinuca"] .jg-sn-topo { grid-column: 1 / -1; }
#jg-body.sn-deitado[data-kind="sinuca"] .jg-sn-lado small { display: none; }
#jg-body.sn-deitado[data-kind="sinuca"] .jg-sn-mesa { min-height: 0; display: grid; place-items: center; }
#jg-body.sn-deitado[data-kind="sinuca"] .jg-sinuca { width: auto; height: auto; max-width: 100%; max-height: 100%; }
#jg-body.sn-deitado[data-kind="sinuca"] .jg-sn-rodape { flex-direction: column; align-items: stretch; flex-wrap: nowrap; overflow-y: auto; min-height: 0; gap: 6px; }
#jg-body.sn-deitado[data-kind="sinuca"] .jg-sn-rodape .spacer, #jg-body.sn-deitado[data-kind="sinuca"] .jg-sn-cheia { display: none; }
#jg-body.sn-deitado[data-kind="sinuca"] .jg-toque { flex: none; opacity: 1; }
#jg-body.sn-deitado[data-kind="sinuca"] .jg-sn-dica { font-size: 12px; }
#jg-body.sn-deitado[data-kind="sinuca"] .jg-toque { min-width: 0; }
#jg-body.sn-deitado[data-kind="sinuca"] .jg-tq-linha { flex-wrap: wrap; min-width: 0; }
#jg-body.sn-deitado[data-kind="sinuca"] .jg-tq-forca { min-width: 0; }
#jg-body.sn-deitado[data-kind="sinuca"] .jg-tq-tacar { flex: 1 1 100%; margin-left: 0; min-height: 48px; }

/* 3.13.2: Modo Jogo no celular: o vídeo é baixo, então o menu de vagas fica pequeno, numa linha só, encostado embaixo */
@media (max-width: 820px) {
  .pad-dock:not(.moved) { bottom: 52px; }
  .pad-dock { flex-wrap: nowrap; overflow-x: auto; max-width: calc(100% - 12px); padding: 4px; gap: 4px; scrollbar-width: none; }
  .pad-dock .btn, .pad-dock button { flex: none; }
  .pad-panel { top: 6px; right: 6px; width: min(280px, calc(100% - 12px)); }
}

/* ===================== 3.14.0: testador de controle ===================== */
.tc-modal { place-items: center; }
.tc-card { width: min(560px, calc(100vw - 24px)); display: grid; gap: 12px; }
.tc-cab { display: flex; align-items: flex-start; gap: 10px; }
.tc-cab > div { flex: 1; } .tc-cab h3 { margin: 0 0 2px; }
.tc-abas { display: flex; gap: 6px; flex-wrap: wrap; }
.tc-abas button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13px; }
.tc-abas button.on { color: var(--text); border-color: var(--a2); background: color-mix(in srgb, var(--a) 18%, transparent); }
.tc-desenho { border-radius: 16px; background: radial-gradient(circle at 50% 40%, rgba(157,78,221,.14), transparent 70%), #0f0c1b; padding: 10px; }
.tc-svg { width: 100%; height: auto; display: block; }
.tc-corpo { fill: #1e1833; stroke: #3a2f57; stroke-width: 2; }
.tc-base { fill: #120e20; stroke: #3a2f57; stroke-width: 2; }
.tc-bt, .tc-gat { fill: #2a2342; stroke: #3a2f57; stroke-width: 1.5; transition: fill .06s; }
.tc-stick { fill: #3a2f57; stroke: #4c3f70; stroke-width: 2; transition: fill .06s; }
.tc-stick.mexe { fill: #6a4aa8; }
.tc-bt.on, .tc-gat.on, .tc-stick.on { fill: var(--a2, #c77dff); stroke: #fff; filter: drop-shadow(0 0 6px rgba(199,125,255,.8)); }
.tc-face[data-b="0"].on { fill: #3ccf6e; } .tc-face[data-b="1"].on { fill: #ff4d5e; } .tc-face[data-b="2"].on { fill: #3b8cff; } .tc-face[data-b="3"].on { fill: #ffc83d; }
.tc-gat-enche { fill: #ffc83d; opacity: .85; pointer-events: none; }
.tc-rot { fill: #ece6f7; font: 700 13px system-ui, sans-serif; text-anchor: middle; pointer-events: none; }
.tc-modal.sem .tc-desenho { opacity: .35; }
.tc-rodape { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tc-ult { display: inline-block; min-width: 56px; padding: 2px 10px; border-radius: 999px; background: #241c3d; text-align: center; }
.tc-eixos { font-variant-numeric: tabular-nums; }
.tc-info { margin: 0; }

/* 3.14.1: janelas nunca passam da altura da tela (em janela pequena o "Salvar perfil" ficava escondido embaixo) */
.modal-card { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.profile-card { overflow-x: hidden; overflow-y: auto; }
/* editando: Cancelar/Salvar grudados no pé da janela, sempre visíveis enquanto rola */
/* 3.15.2: a barra Cancelar/Salvar tem SEMPRE o mesmo tamanho e posição (de ponta a ponta do card, grudada embaixo):
   rolando, aparece só um cartão sólido desenhado por baixo dos botões (16 px da borda do card); no fim (.pf-fim, vem do
   profile.js) o cartão some e fica o degradê do fundo. Assim os botões não pulam: só muda o que está atrás deles.
   --pfa-l/r/b = respiro que os blocos de dentro dão até a borda do card (medido no profile.js). */
.profile-card.editing .pf-actions { position: sticky; bottom: 0; z-index: 3; pointer-events: none; border: 0; background: none; box-shadow: none;
  margin: 14px calc(-1 * var(--pfa-r, 24px)) 0 calc(-1 * var(--pfa-l, 24px));
  padding: 18px 28px 22px; }
/* sem respiro embaixo da barra: ela é a última coisa do card e encosta na borda */
.profile-card.editing, .profile-card.editing .pf-body, .profile-card.editing #pf-edit { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.profile-card.editing .pf-actions > * { pointer-events: auto; position: relative; z-index: 1; }
.profile-card.editing .pf-actions::before { content: ""; position: absolute; inset: 8px 16px 12px; border-radius: 14px;
  background: var(--gc-surface-2, #171326); border: 1px solid var(--gc-line, rgba(255,255,255,.12)); box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: opacity .2s ease; }
.profile-card.editing.pf-fim .pf-actions::before { opacity: 0; }
/* degradê do fim: é o FUNDO do próprio card, preso ao fim do conteúdo (attachment local). Fica atrás dos blocos (bio
   inclusive), só aparece na parte colorida e vai até a borda de baixo, sem faixa sobrando nem emenda. */
.profile-card.editing.has-theme { background:
  linear-gradient(180deg, rgba(15,12,27,0) 0%, rgba(15,12,27,.55) 35%, rgba(15,12,27,.9) 65%, #0f0c1b 85%) left bottom / 100% 380px no-repeat local,
  linear-gradient(145deg, var(--pf1), var(--pf2)); }
@media (prefers-reduced-motion: reduce) { .profile-card.editing .pf-actions::before { transition: none; } }
/* 3.14.1: perfil de quem está offline */
.pf-badge.offline { background: rgba(15, 12, 27, .72); border-color: rgba(255, 255, 255, .22); color: #cfc8e0; }
.pf-off-dot { width: 8px; height: 8px; border-radius: 50%; background: #7d7591; display: inline-block; }

/* ===================== 3.15.0: status, painel de baixo, conversas com foto ===================== */
:root { --st-on: #3fdc8a; --st-ausente: #ffc23d; --st-np: #ff5d6c; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--st-on); display: inline-block; }
.st-ausente .st-dot, .st-dot.st-ausente { background: var(--st-ausente); }
.st-np .st-dot { background: var(--st-np); }
/* painel de baixo: mais alto, o nome não fica espremido */
.sidebar .userpanel { min-height: 62px; padding: 10px 8px 10px 10px; gap: 6px; }
.userpanel #me-avatar { width: 40px; height: 40px; flex: none; }
.me-info { gap: 3px; }
.me-info strong { font-size: 14px; line-height: 1.25; }
/* status = tag discreta (estado + recado) */
.sidebar .userpanel { flex-wrap: wrap; row-gap: 6px; }
.userpanel .me-st { margin-left: 50px; max-width: calc(100% - 50px); margin-top: -2px; }
.me-st { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; align-self: flex-start;
  padding: 2px 8px 2px 6px; border-radius: 999px; border: 1px solid transparent; background: rgba(255,255,255,.04); color: var(--muted); font-size: 11.5px; line-height: 1.5; transition: border-color .15s, background .15s, color .15s; }
.me-st:hover, .me-st[aria-expanded="true"] { border-color: color-mix(in srgb, var(--a2) 45%, transparent); background: rgba(157,78,221,.12); color: var(--text, #fff); }
.me-st:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
.me-st-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* seletor de status (abre por cima do painel) */
.st-pop { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 8px); z-index: 40; display: grid; gap: 10px; padding: 12px;
  background: var(--gc-surface-2, #171326); border: 1px solid var(--gc-line, var(--line)); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.5); min-width: 240px; }
.st-cab { display: flex; align-items: center; justify-content: space-between; }
.st-cab b { font-size: 13px; }
.st-ops { display: grid; gap: 4px; }
.st-op { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 7px 9px; border-radius: 10px; border: 1px solid transparent; }
.st-op:hover { background: rgba(255,255,255,.05); }
.st-op[aria-checked="true"] { border-color: color-mix(in srgb, var(--a2) 55%, transparent); background: rgba(157,78,221,.14); }
.st-op:focus-visible { outline: 2px solid var(--a2); }
.st-op .st-dot { width: 10px; height: 10px; }
.st-op-txt { display: grid; gap: 1px; }
.st-op-txt b { font-size: 13px; }
.st-op-txt small { font-size: 11.5px; color: var(--muted); }
.st-rot { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.st-campo { position: relative; display: block; }
.st-input { width: 100%; box-sizing: border-box; padding-right: 44px; }
.st-conta { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-acoes { display: flex; justify-content: space-between; gap: 8px; }
.st-acoes .btn { min-height: 34px; }
/* perfil: recado em balão (como no Discord) e o estado */
.pf-recado { position: relative; display: inline-block; max-width: 100%; padding: 5px 11px; border-radius: 12px; background: var(--gc-surface-2, #171326);
  border: 1px solid var(--gc-line, rgba(255,255,255,.14)); color: #fff; font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.pf-recado::before { content: ""; position: absolute; left: -5px; top: 9px; width: 8px; height: 8px; background: inherit; border-left: inherit; border-bottom: inherit; transform: rotate(45deg); }
.pf-badge.estado { gap: 6px; }
.pf-badge.st-ausente { border-color: color-mix(in srgb, var(--st-ausente) 50%, transparent); }
.pf-badge.st-np { border-color: color-mix(in srgb, var(--st-np) 50%, transparent); }
/* "Mostrar sozinho o que estou jogando/ouvindo" agora é chave */
label.check.pf-auto { align-items: center; justify-content: space-between; }
input.chave { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 38px !important; height: 22px !important; margin: 0 !important; border-radius: 999px;
  background: var(--panel-3, #2a2440); border: 1px solid var(--gc-line, var(--line)); cursor: pointer; transition: background .18s, border-color .18s; }
input.chave::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #cfc8e0; transition: transform .18s, background .18s; }
input.chave:checked { background: var(--gc-gradient-brand, linear-gradient(135deg, #9d4edd, #c77dff)); border-color: transparent; }
input.chave:checked::after { transform: translateX(16px); background: #fff; }
input.chave:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { input.chave, input.chave::after { transition: none; } }
/* conversas: foto da pessoa com a bolinha de online */
.dm-ava { position: relative; flex: none; display: inline-grid; }
.dm-ava .avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.dm-ava-dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #6d6585; border: 2px solid var(--bg, #0f0c1b); }
.dm-ava.on .dm-ava-dot { background: var(--st-on); }
.dm-ava.on.st-ausente .dm-ava-dot { background: var(--st-ausente); }
.dm-ava.on.st-np .dm-ava-dot { background: var(--st-np); }
.dm-ava:not(.on) .avatar { filter: grayscale(.5); opacity: .75; }
/* print: secundário, quase escondido, perto do nome Iru */
.server-head .print-discreto { width: 24px; height: 24px; opacity: .35; margin-left: -4px; }
.server-head .print-discreto:hover, .server-head .print-discreto:focus-visible { opacity: 1; }
.server-head .print-discreto svg { width: 14px; height: 14px; }
/* ossinhos no topo, ao lado do sininho */
.stage-head .os-chip { margin-right: 2px; }
@media (max-width: 820px) { .stage-head .os-chip { display: none; } }
/* 3.15.2: no Editar perfil os botões de ver (Mensagem, Amigos…) ficam escondidos, mas a grade vazia ainda ocupava 24 px embaixo */
.profile-card.editing .pf-buttons, .profile-card .pf-buttons:not(:has(> :not([hidden]))) { display: none; }

/* ===================== 3.16.0: música favorita no perfil ===================== */
.pf-mus-slot { margin: 0; }
/* 3.16.1: o perfil e a música ficam empilhados (12 px entre eles), com a mesma largura; o perfil encolhe e rola se faltar altura */
.pf-pilha { display: flex; flex-direction: column; gap: 12px; width: min(480px, 100%); max-height: calc(100dvh - 32px); min-height: 0; }
.pf-pilha > .profile-card { width: 100%; flex: 0 1 auto; min-height: 0; max-height: none; }
.pf-pilha > .pf-mus-slot { flex: none; }
.pf-pilha .pf-mus { height: 76px; }
.pf-mus-acao { display: grid; justify-items: center; gap: 3px; }
.pf-mus-cap { font-size: 10px; color: #cfc3e6; white-space: nowrap; }
.pf-mus { position: relative; overflow: hidden; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; height: 76px; box-sizing: border-box;
  padding: 0 14px 0 12px; border-radius: 14px; background: #150f2f; border: 1px solid rgba(233, 216, 255, .55); color: #f4eefc; text-shadow: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.pf-mus-capa { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: #241a47; color: #c77dff; }
.pf-mus-txt { min-width: 0; display: grid; gap: 1px; }
.pf-mus-nome { font-weight: 700; font-size: 14px; color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-mus-nome:hover, .pf-mus-nome:focus-visible { text-decoration: underline; color: #e0aaff; }
.pf-mus-art { font-size: 12px; color: #cfc3e6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-mus-dica { font-size: 10.5px; color: #9f92bf; text-decoration: none; }
.pf-mus-dica:hover { color: #e0aaff; }
.pf-mus-play { all: unset; box-sizing: border-box; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #f4eefc; color: #150f2f; transition: transform .15s, background .15s; }
.pf-mus-play:hover { background: #fff; transform: scale(1.06); }
.pf-mus-play:active { transform: scale(.94); }
.pf-mus-play:focus-visible { outline: 2px solid #e0aaff; outline-offset: 2px; }
.pf-mus-play .ic-pause, .pf-mus.tocando .pf-mus-play .ic-play { display: none; }
.pf-mus.tocando .pf-mus-play .ic-pause { display: grid; }
.pf-mus-play span { display: grid; place-items: center; }
/* prévia: barrinha embaixo do cartão */
.pf-mus-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #9d4edd, #e0aaff); transform-origin: left;
  transform: scaleX(var(--prog, 0)); transition: transform .25s linear; }
@media (prefers-reduced-motion: reduce) { .pf-mus-play, .pf-mus-prog { transition: none; } }
/* editar: chave + link + conferir */
.pf-mus-chave { margin-top: 10px; }
.pf-mus-edit { display: grid; gap: 6px; margin-top: 6px; }
.pf-mus-edit[hidden] { display: none; }
.pf-mus-linha { display: flex; gap: 8px; }
.pf-mus-linha input { flex: 1; min-width: 0; }
#pf-mus-msg.erro { color: #ffb4bd; }
#pf-mus-prev:empty { display: none; }

/* ===================== 3.17.0: Live Safety ===================== */
.ls-mi { color: #ffb4bd; }
.ls-card { width: min(520px, 100%); display: grid; gap: 12px; }
.ls-cab { display: flex; align-items: flex-start; gap: 12px; }
.ls-cab > div { flex: 1; }
.ls-cab h3 { margin: 0 0 2px; font-size: 17px; }
.ls-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 93, 108, .14); color: #ff8a96; flex: none; }
.ls-ops { display: grid; gap: 6px; }
.ls-op { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--gc-line, var(--line)); background: var(--gc-surface-2, #171326); }
.ls-op:hover { border-color: color-mix(in srgb, var(--a2) 45%, transparent); }
.ls-op[aria-checked="true"] { border-color: #ff8a96; background: rgba(255, 93, 108, .1); }
.ls-op:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
.ls-op b { font-size: 13.5px; }
.ls-op small { font-size: 11.5px; color: var(--muted); }
.ls-card textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.ls-priv { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); margin: 0; }
.ls-acoes { display: flex; justify-content: flex-end; gap: 8px; }
/* painel do moderador */
.ls-caso.sev-critica { border-color: rgba(255, 93, 108, .7); box-shadow: 0 0 0 1px rgba(255, 93, 108, .25); }
.ls-caso.sev-alta { border-color: rgba(255, 194, 61, .55); }
.ls-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.ls-img { all: unset; position: relative; cursor: pointer; width: 160px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--gc-line, var(--line)); }
.ls-img img { width: 100%; height: 100%; object-fit: cover; filter: blur(16px) grayscale(.6); transform: scale(1.1); transition: filter .2s; }
.ls-img span { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px #000; }
.ls-img.aberta img { filter: none; transform: none; }
.ls-img.aberta span { display: none; }
.ls-img:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }

/* ===================== 3.17.0: hipercargos ===================== */
.hc-tag { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; letter-spacing: .02em; color: #04261b;
  background: linear-gradient(135deg, var(--gc-call-400, #3fdcaa), #b8ffe3); border: 1px solid rgba(220, 255, 240, .9);
  box-shadow: 0 0 12px rgba(63, 220, 170, .45), inset 0 1px 0 rgba(255,255,255,.6); text-shadow: none; }
.hc-tag.hc-cocriador { background: linear-gradient(135deg, #16b98c, #3fdcaa); color: #032116; box-shadow: 0 0 8px rgba(63, 220, 170, .3); }
.pf-badge.hc-tag { padding: 3px 10px; }
.hc-tag.hc-criador { position: relative; overflow: hidden; }
.hc-tag.hc-criador::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%); transform: translateX(-120%); animation: hcBrilho 3.2s ease-in-out infinite; }
@keyframes hcBrilho { 60%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .hc-tag.hc-criador::after { animation: none; display: none; } }
.hc-mini { margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 10px; line-height: 16px; vertical-align: 1px; }
.hc-painel { display: grid; gap: 10px; }
.hc-lista { display: grid; gap: 6px; }
.hc-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--gc-surface-2, #171326); border: 1px solid var(--gc-line, var(--line)); }
.hc-item .btn { margin-left: auto; }
.hc-item .hc-tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; }

/* ===================== 3.18.0: tela dividida (botão + painel) e controles presos no canto ===================== */
.dv-btn { position: relative; }
.dv-btn .dv-svg .dv-p { fill: transparent; stroke: currentColor; stroke-width: 1.4; }
.dv-btn.on { color: var(--gc-call-400, #3fdcaa); }
.dv-btn .dv-svg .dv-eu { fill: currentColor; fill-opacity: .55; }
.dv-btn.menu::after { content: "menu"; position: absolute; right: -4px; bottom: -6px; font: 800 8px/1 inherit; padding: 2px 3px; border-radius: 4px; background: #ffc23d; color: #241a00; }
.dv-pop { position: fixed; z-index: 9500; width: min(360px, calc(100vw - 16px)); max-height: calc(100dvh - 80px); overflow-y: auto; display: grid; gap: 12px; padding: 14px;
  background: var(--gc-surface-2, #171326); border: 1px solid var(--gc-line, var(--line)); border-radius: 14px; box-shadow: 0 16px 44px rgba(0,0,0,.55); }
.dv-cab { display: flex; justify-content: space-between; align-items: center; }
.dv-dica { margin: -6px 0 0; }
.dv-modos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dv-modo { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--gc-line, var(--line)); text-align: center; font-size: 10.5px; color: var(--muted); }
.dv-modo:hover { border-color: color-mix(in srgb, var(--a2) 45%, transparent); color: var(--text, #fff); }
.dv-modo[aria-checked="true"] { border-color: var(--a2); background: rgba(157,78,221,.16); color: #fff; }
.dv-modo:focus-visible, .dv-parte:focus-visible { outline: 2px solid var(--a2); outline-offset: 2px; }
.dv-svg .dv-p { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.55); stroke-width: .8; }
.dv-svg .dv-eu { fill: var(--gc-call-400, #3fdcaa); stroke: #b8ffe3; }
.dv-svg .dv-tomada { fill: rgba(255,255,255,.18); stroke-dasharray: 1.5 1; }
.dv-sec { display: grid; gap: 8px; }
.dv-tit { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dv-partes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.dv-parte { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: 2px; padding: 8px 6px; border-radius: 10px; border: 1px solid var(--gc-line, var(--line)); text-align: center; font-size: 11.5px; }
.dv-parte small { font-size: 10.5px; color: var(--muted); }
.dv-parte:hover:not([disabled]) { border-color: var(--gc-call-400, #3fdcaa); }
.dv-parte.on { border-color: var(--gc-call-400, #3fdcaa); background: rgba(63,220,170,.1); }
.dv-parte[disabled] { opacity: .5; cursor: not-allowed; }
.dv-int { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.dv-int > span { display: grid; gap: 2px; }
.dv-int b { font-size: 13px; }
.dv-int small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.dv-agora { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dv-estado { font-size: 12px; font-weight: 700; color: var(--gc-call-400, #3fdcaa); }
.dv-estado.menu { color: #ffc23d; }
.dv-janela { width: 100%; justify-content: center; display: inline-flex; gap: 6px; align-items: center; }
.dv-aviso { width: min(460px, 100%); display: grid; gap: 12px; }
.dv-aviso h3 { margin: 0; }
.dv-sempre { display: flex; gap: 8px; align-items: center; font-size: 13px; }
/* controles: presos no canto de cima à esquerda do vídeo (abaixo do selo AO VIVO), em coluna; à direita fica o painel do Modo jogo */
@media (min-width: 821px) {
  .pad-dock, .pad-dock.moved { left: 12px !important; right: auto; top: 52px !important; bottom: auto; transform: none; flex-direction: column; align-items: stretch; flex-wrap: nowrap;
    width: 200px; max-width: 200px; padding: 8px; gap: 4px; border-radius: 14px; background: rgba(15, 12, 27, .82); backdrop-filter: blur(8px); }
  .pad-dock .pad-dock-grip { display: none; }
  .pad-dock .pad-chip { max-width: none; width: 100%; }
  .pad-dock .pad-dock-min { position: absolute; top: 4px; right: 4px; }
  .pad-dock.min { width: auto; padding: 6px; }
  .pad-dock.min .pad-dock-min { position: static; }
  .pad-dock::before { content: "Controles"; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 4px 2px; }
  .pad-dock.min::before { display: none; }
  .pad-dock-hint { position: static; transform: none; white-space: normal; }
}
.dv-int, .dv-int b, .dv-int small { text-transform: none; letter-spacing: 0; }
.dv-int b { color: var(--text, #fff); }
.dv-int small { font-weight: 400; }

/* 3.18.3: cabeçalho do perfil em 2 colunas (rascunho do dono):
   - esquerda: foto (sobre o banner), nome 8 px abaixo da ponta da moldura e o @;
   - direita: tags a 12 px da moldura e 12 px abaixo do banner (nunca em cima dele), descendo ao lado do nome;
   - balão do status alinhado com o topo da foto, por cima do banner, sem empurrar nada.
   O espaço segue o desenho REAL da moldura (--pf-mold-r/--pf-mold-b, medidos em profile.js). */
.profile-card .pf-topo { display: grid; grid-template-columns: fit-content(55%) minmax(0, 1fr); column-gap: var(--gc-sp-3, 12px);
  align-items: start; margin-top: -48px; }
.profile-card .pf-topo:has(> .pf-status[hidden]) { grid-template-columns: minmax(0, 1fr); }
.profile-card .pf-esq { min-width: 0; }
.profile-card .pf-avatar-wrap { display: flex; align-items: flex-end; gap: var(--gc-sp-3, 12px); margin-top: 0; }
.profile-card .pf-avatar-wrap > .mold-wrap { margin-right: var(--pf-mold-r, 0px); margin-bottom: var(--pf-mold-b, 0px); }
.profile-card .pf-status { position: relative; min-width: 0; margin-top: calc(48px + var(--gc-sp-3, 12px)); padding: 0; display: block; }
.profile-card .pf-status[hidden] { display: none; }
.profile-card #pf-name { margin: var(--gc-sp-2, 8px) 0 0; overflow-wrap: anywhere; }
.pf-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }

/* Tags padronizadas: todas na altura da do título (Uivador), mesma fonte, ícone e respiro. */
.pf-tags .pf-badge, .pf-tags .pf-badge.hc-tag, .pf-tags .pf-badge.sinuca, .pf-tags button.pf-badge {
  box-sizing: border-box; height: 24px; padding: 0 10px; gap: 5px; font: 700 12px/1 var(--gc-font-sans); letter-spacing: 0;
  white-space: nowrap; border-width: 1px; }
.pf-tags .pf-badge svg { width: 14px; height: 14px; flex: none; }
.pf-tags .pf-badge > b { font-weight: 800; }

/* 3.18.3: balão do status no desenho do dono: pílula escura sólida, texto branco, sem borda, bico pequeno
   embaixo à esquerda apontando para a foto. Alinhado com o topo da foto, por cima do banner, separado das tags. */
.profile-card .pf-recado { position: absolute; left: 4px; top: calc(-48px - var(--gc-sp-3, 12px)); z-index: 2; margin: 0;
  max-width: calc(100% - 4px); padding: 5px 12px; border-radius: 999px; background: #1d1b29; border: 0; color: #f3f1fa;
  font-size: 12.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.profile-card .pf-recado::before { content: ""; position: absolute; left: -3px; bottom: 0; width: 10px; height: 10px;
  background: #1d1b29; border: 0; clip-path: polygon(0 100%, 100% 0, 100% 100%); transform: none; }
.pf-balao { display: none; }

/* "Em <servidor>": quase branco no escuro, azul-marinho no claro (nunca 100% branco ou preto). */
.profile-card .pf-srv-tit { color: #f3f1fa; }
.profile-card.has-theme.pf-light .pf-srv-tit { color: #141b3d; }

/* 3.18.1: nome do perfil (o "H1") em Manrope Bold, servida pelo próprio Iru (licença OFL em /fonts). */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-ext-700-normal.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: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.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; }
.profile-card #pf-name { font-family: "Manrope", var(--gc-font-sans); font-weight: 700; letter-spacing: -.01em; }

/* 3.18.4: nome de música grande alargava a pílula da call (coluna do grid crescia com o texto em nowrap).
   Coluna travada na largura da pílula e todo filho pode encolher: o texto vira "…". */
.pilula { grid-template-columns: minmax(0, 1fr); max-width: 340px; box-sizing: border-box; overflow: hidden; }
.pilula > * { min-width: 0; max-width: 100%; }
.pl-acoes .pl-btn { min-width: 0; }
.pl-mus-txt, .pl-canal, .pl-quem { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 3.21.0: aviso do anti-farm contra o Iru */
.jg-ap-cansaco { color: #ffcf7a; font-weight: 600; }

/* 3.22.0: a luz de quem está falando usa a AURA comprada na loja (cor + efeito). Sem aura = o verde de sempre.
   data-fala vem do applySpeaking (app.js). Menos animação: fica só a cor. */
[data-fala="aura-brilho"] { --fala: 199, 125, 255; --fala2: 230, 190, 255; --fala-anim: falaPulso 0.9s ease-in-out infinite alternate; }
[data-fala="aura-gelo"]   { --fala: 76, 201, 240;  --fala2: 168, 230, 255; --fala-anim: falaPulso 1.2s ease-in-out infinite alternate; }
[data-fala="aura-fogo"]   { --fala: 255, 138, 61;  --fala2: 255, 200, 61;  --fala-anim: falaFogo 0.35s ease-in-out infinite alternate; }
[data-fala="aura-arco"]   { --fala: 255, 93, 125;  --fala2: 76, 201, 240;  --fala-anim: falaArco 1.6s linear infinite; }
.speaking[data-fala] .avatar, .avatar.speaking[data-fala] {
  box-shadow: 0 0 0 3px rgb(var(--fala)), 0 0 18px 3px rgba(var(--fala), .6); animation: var(--fala-anim); }
.tile.speaking[data-fala] { border-color: rgb(var(--fala)); box-shadow: 0 0 0 1px rgb(var(--fala)), 0 0 24px rgba(var(--fala), .3); }
@keyframes falaPulso { from { box-shadow: 0 0 0 2px rgb(var(--fala)), 0 0 10px 1px rgba(var(--fala), .45); }
  to { box-shadow: 0 0 0 3px rgb(var(--fala2)), 0 0 22px 5px rgba(var(--fala), .7); } }
@keyframes falaFogo { from { box-shadow: 0 0 0 2px rgb(var(--fala)), 0 -4px 14px 3px rgba(255, 93, 61, .7); }
  to { box-shadow: 0 0 0 3px rgb(var(--fala2)), 0 -8px 22px 6px rgba(255, 93, 61, .85); } }
@keyframes falaArco { 0% { box-shadow: 0 0 0 3px #ff5d7d, 0 0 18px 4px rgba(255, 93, 125, .6); } 25% { box-shadow: 0 0 0 3px #ffd84d, 0 0 18px 4px rgba(255, 216, 77, .6); }
  50% { box-shadow: 0 0 0 3px #7ee8b8, 0 0 18px 4px rgba(126, 232, 184, .6); } 75% { box-shadow: 0 0 0 3px #4cc9f0, 0 0 18px 4px rgba(76, 201, 240, .6); } 100% { box-shadow: 0 0 0 3px #ff5d7d, 0 0 18px 4px rgba(255, 93, 125, .6); } }
@media (prefers-reduced-motion: reduce) { .speaking[data-fala] .avatar, .avatar.speaking[data-fala] { animation: none; } }
html.a11y-movimento .speaking[data-fala] .avatar, html.a11y-movimento .avatar.speaking[data-fala] { animation: none; }

/* 3.22.1: cartão da música com as cores do perfil (escurecidas para o texto branco continuar legível) */
.pf-pilha.pf-tema .pf-mus { background: linear-gradient(135deg, color-mix(in srgb, var(--pf1) 42%, #0c0918), color-mix(in srgb, var(--pf2) 42%, #0c0918));
  border-color: color-mix(in srgb, var(--pf1) 45%, rgba(255, 255, 255, .55)); }
.pf-pilha.pf-tema .pf-mus-capa { background: color-mix(in srgb, var(--pf1) 30%, #0c0918); }
.pf-pilha.pf-tema .pf-mus-prog { background: linear-gradient(90deg, var(--pf1), var(--pf2)); }

/* 3.24.0: bônus de sequência e cena de "novo título" */
.tier-bonus { margin: 4px 0 0; font-size: 13px; color: #ffd27a; font-weight: 600; }
.tier-up { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(8, 6, 20, .55); animation: tierUpFundo .3s ease-out; }
.tier-up.sai { opacity: 0; transition: opacity .5s; }
.tier-up-card { display: grid; justify-items: center; gap: 8px; padding: 22px 34px 18px; border-radius: 18px; background: #1d1b29; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 60px rgba(160, 120, 255, .45); animation: tierUpCard .6s cubic-bezier(.2, 1.4, .4, 1); text-align: center; }
.tier-up-card small { text-transform: uppercase; letter-spacing: .14em; color: #c9b8ff; font-weight: 700; }
.tier-up-card b { font-size: 24px; }
.tier-up-ico { animation: tierUpIco 1.6s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(255, 210, 122, .6)); }
.tier-up-mold { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #d8d2ee; }
@keyframes tierUpFundo { from { opacity: 0; } }
@keyframes tierUpCard { from { transform: scale(.6); opacity: 0; } }
@keyframes tierUpIco { 50% { transform: translateY(-4px) scale(1.06); } }
.sb-vol-txt { font-size: 11px; color: var(--muted); min-width: 78px; text-align: right; }
.cfg-slider output { min-width: 84px; }
/* 3.24.0 (pedido do dono): sem controle de volume no quadrinho; o volume fica no botão direito (ou toque longo).
   Só aparece o aviso de "mudo para você", que tira do mudo com um clique. */
.tile-vol { display: none !important; }
.tile-vol.is-muted { display: flex !important; justify-content: center; }
.tile-vol.is-muted input[type=range], .tile-vol.is-muted .vu { display: none !important; }
.cfg-slider { grid-template-columns: 170px 1fr auto auto; }
@media (max-width: 720px) { .cfg-slider { grid-template-columns: 1fr auto auto; } }
/* 3.24.0: testador com o formato do controle de verdade (Xbox / PlayStation) */
.tc-xbox .tc-corpo { fill: #23262e; stroke: #3b404c; }
.tc-ps .tc-corpo { fill: #1c2030; stroke: #343b55; }
.tc-cruz { fill: #15171d; }
.tc-seta { fill: #2b2f3a; }
.tc-stick-topo { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 2; pointer-events: none; }
.tc-xbox .tc-face { fill: #15171d; }
.tc-letra-a { fill: #5dd879; } .tc-letra-b { fill: #ff6b6b; } .tc-letra-x { fill: #5aa9ff; } .tc-letra-y { fill: #ffd24d; }
.tc-face.on + .tc-rot { fill: #10131a; }
.tc-guia { fill: #2f3440; } .tc-guia-anel { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2; pointer-events: none; }
.tc-touch { fill: #141826; stroke: #343b55; }
.tc-barra-luz { fill: #4f8cff; filter: drop-shadow(0 0 4px #4f8cff); }
.tc-ps .tc-face { fill: #141826; }
.tc-simb { fill: none; stroke-width: 2.4; pointer-events: none; }
.tc-tri { stroke: #3fd6a0; } .tc-cir { stroke: #ff6b81; } .tc-xis { stroke: #7fa8ff; stroke-linecap: round; } .tc-qua { stroke: #f08cd2; }
.tc-ps .tc-face[data-b="0"].on { fill: #7fa8ff; } .tc-ps .tc-face[data-b="1"].on { fill: #ff6b81; } .tc-ps .tc-face[data-b="2"].on { fill: #f08cd2; } .tc-ps .tc-face[data-b="3"].on { fill: #3fd6a0; }
.tc-ps .tc-face.on + .tc-simb { stroke: #10131a; }
/* 3.24.1: comemoração/PDL por cima da mesa em "tela cheia" (também no modo que só ocupa a janela, z 9800) */
.jg-vitoria { z-index: 9900; } .sn-pdl { z-index: 9910; }
/* 3.24.1: faixa de fim de partida por cima da mesa (aparece em tela cheia) */
.jg-sn-mesa { position: relative; }
.jg-sn-fim { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); z-index: 5; display: grid; justify-items: center; gap: 6px;
  max-width: min(92%, 460px); padding: 14px 22px; border-radius: 16px; background: rgba(18, 14, 32, .92); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 40px rgba(0,0,0,.5); text-align: center; animation: snFimEntra .35s ease-out both; animation-delay: .6s; }
.jg-sn-fim b { font-size: 20px; } .jg-sn-fim.ganhou b { color: var(--ok, #54e08a); }
.jg-sn-fim small { color: var(--muted); max-width: 40ch; }
.jg-sn-fim-acoes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 4px; }
.jg-sn-fim-dica { color: #ffc83d; }
@keyframes snFimEntra { from { opacity: 0; transform: translate(-50%, 12px); } }

/* 3.25.0: aura de arco-íris gira as cores também na BORDA do quadrinho (antes a borda ficava vermelha parada) */
.tile.speaking[data-fala="aura-arco"] { animation: falaArcoBorda 1.6s linear infinite; }
@keyframes falaArcoBorda {
  0%, 100% { border-color: #ff5d7d; box-shadow: 0 0 0 1px #ff5d7d, 0 0 24px rgba(255, 93, 125, .35); }
  25% { border-color: #ffd84d; box-shadow: 0 0 0 1px #ffd84d, 0 0 24px rgba(255, 216, 77, .35); }
  50% { border-color: #7ee8b8; box-shadow: 0 0 0 1px #7ee8b8, 0 0 24px rgba(126, 232, 184, .35); }
  75% { border-color: #4cc9f0; box-shadow: 0 0 0 1px #4cc9f0, 0 0 24px rgba(76, 201, 240, .35); } }
html.a11y-movimento .tile.speaking[data-fala], .tile.speaking[data-fala="aura-arco"].sem-anim { animation: none; }
@media (prefers-reduced-motion: reduce) { .tile.speaking[data-fala] { animation: none; } }
/* a miniatura do chat não tem a aura animada (só a call e o perfil) */
#messages .aura-arco, #messages .aura-fogo, #messages .aura-brilho, #messages .aura-gelo { animation: none; box-shadow: none; }
/* 3.25.0: a alça de alargar a barra lateral ficava EM CIMA da barra de rolagem da lista (as duas com 10 px na
   borda direita): arrastar a rolagem puxava a largura. A alça ficou mais fina e a lista rola antes dela. */
.app.resizable .resizer-side { width: 6px; }
.app.resizable .sidebar .channels { margin-right: 6px; }
/* 3.25.0: log do bot de música escondido por padrão (só perguntas e a resposta ao que você mandou) */
.music.log-oculto .mu-log > .mu-msg:not(.mu-ask):not(.recente) { display: none; }
.music.log-oculto .mu-log:not(:has(.mu-ask, .recente)) { display: none; }
.mu-logbtn { display: block; margin: 2px auto 0; padding: 2px 8px; border: 0; background: none; color: var(--muted); font-size: 11px; opacity: .45; cursor: pointer; border-radius: 6px; }
.mu-logbtn:hover, .mu-logbtn:focus-visible { opacity: .9; text-decoration: underline; }
/* 3.25.0 (relato do dono: com live aberta, foto e nick ficavam grudados no quadrinho): na faixa de baixo cada
   quadrinho é uma grade — foto à esquerda (com folga para a moldura), nome e selos em linhas próprias à direita. */
.stage-body.with-live .tiles { grid-auto-columns: 208px; gap: 10px; }
.stage-body.with-live .tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: auto; column-gap: 14px; row-gap: 4px; align-items: center; padding: 10px 14px; }
.stage-body.with-live .tile > :first-child { grid-row: 1 / span 2; margin: 5px; }
.stage-body.with-live .tile-name { grid-column: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: end; }
.stage-body.with-live .tile-badges { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px; align-self: start; }
.stage-body.with-live .tile-act, .stage-body.with-live .tile-vol, .stage-body.with-live .tile > button { grid-column: 1 / -1; }
.stage-body.with-live .tile-act:empty { display: none; }
@media (max-width: 720px) { .stage-body.with-live .tiles { grid-auto-columns: 176px; } }
/* 3.25.0: "Experimentar" da loja */
.os-item-acoes { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.os-exp-btn { opacity: .85; }
.os-exp { position: fixed; inset: 0; z-index: 9950; display: grid; place-items: center; background: rgba(8, 6, 20, .6); }
.os-exp-card { display: grid; gap: 14px; width: min(600px, 94vw); padding: 18px 20px; border-radius: 18px; background: #1d1b29; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.os-exp-card header { display: grid; gap: 2px; }
.os-exp-palco { display: grid; place-items: center; min-height: 200px; padding: 18px; border-radius: 14px; background: #120f1f; overflow: hidden; }
.os-exp-tile { width: 220px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; }
.os-exp-tile .avatar { width: 72px; height: 72px; font-size: 28px; }
.os-exp-nome { font-size: 16px; }
.os-exp-chega { animation: osExpChega .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes osExpChega { from { transform: translateY(18px) scale(.9); opacity: 0; } }
.os-exp-cv, .os-exp-mesa canvas { max-width: 100%; height: auto; border-radius: 10px; }
.os-exp-acoes { display: flex; justify-content: flex-end; gap: 8px; }
/* 3.25.0: "Acontecendo agora" — calls em cartões no início (PC e celular) */
.ic-calls { display: grid; gap: 10px; }
.ic-tit { display: flex; align-items: center; gap: 8px; }
.ic-pulso { width: 9px; height: 9px; border-radius: 50%; background: var(--ok, #54e08a); box-shadow: 0 0 0 0 rgba(84,224,138,.6); animation: icPulso 1.8s ease-out infinite; }
@keyframes icPulso { 70% { box-shadow: 0 0 0 9px rgba(84,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(84,224,138,0); } }
.ic-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ic-call { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(160deg, rgba(84,224,138,.10), rgba(84,224,138,.02) 60%), var(--panel-2);
  border: 1px solid rgba(84,224,138,.35); box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.ic-call.amigos { border-color: rgba(84,224,138,.7); box-shadow: 0 0 0 1px rgba(84,224,138,.25), 0 10px 32px rgba(0,0,0,.3); }
.ic-cab { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ic-onde { display: grid; min-width: 0; flex: 1; } .ic-onde b, .ic-onde small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-onde small { color: var(--muted); display: flex; align-items: center; gap: 3px; }
.ic-ao-vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ok, #54e08a); white-space: nowrap; }
.ic-ao-vivo i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ic-gente { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.ic-pessoa { display: grid; justify-items: center; gap: 4px; width: 64px; }
.ic-pessoa .avatar { box-shadow: 0 0 0 2px rgba(84,224,138,.7); }
.ic-nome { font-size: 12px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-mais { align-self: center; font-weight: 700; color: var(--muted); }
.ic-pe { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ic-pe > span { flex: 1; min-width: 140px; }
.ic-entrar { font-size: 15px; padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px; }
.ic-vazio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.14); color: var(--muted); }
.ic-call.compacto { padding: 12px; gap: 10px; } .ic-call.compacto .ic-pessoa { width: 52px; } .ic-call.compacto .ic-nome { max-width: 52px; font-size: 11px; }
.ic-call.compacto .ic-entrar { width: 100%; justify-content: center; }
#m-inicio .ic-lista { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) { .ic-pulso { animation: none; } }
html.a11y-movimento .ic-pulso { animation: none; }
/* 3.25.0: troca de chat bem visível */
#chat-head { transition: background-color .3s; }
#chat-head[data-where="lobby"] { --onde: 84, 224, 138; } #chat-head[data-where="server"] { --onde: 199, 125, 255; } #chat-head[data-where="dm"] { --onde: 90, 169, 255; }
#chat-head-title { font-size: 15px; }
.chat-trocou #chat-head { animation: chatTrocou 1.2s ease-out; }
@keyframes chatTrocou { 0% { background-color: rgba(var(--onde, 199, 125, 255), .38); } 100% { background-color: transparent; } }
.chat-agora { position: relative; z-index: 3; display: flex; align-items: center; gap: 6px; margin: 8px 12px 0; padding: 8px 12px; border-radius: 10px; font-size: 13px;
  background: var(--panel-3); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 6px 18px rgba(0,0,0,.3); animation: chatAgora .25s ease-out; transition: opacity .4s, transform .4s; }
.chat-agora.sai { opacity: 0; transform: translateY(-6px); }
@keyframes chatAgora { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .chat-trocou #chat-head, .chat-agora { animation: none; } }
html.a11y-movimento .chat-trocou #chat-head, html.a11y-movimento .chat-agora { animation: none; }

/* 3.26.0 (pedido do dono): cada cor de nome da loja tem a própria FONTE. Fontes OFL servidas daqui (public/fonts,
   licenças *-OFL.txt), baixadas do @fontsource. A classe nf-<id> vem de pintarNome (nomes.js). */
@font-face { font-family: "Iru Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fredoka-latin-ext-700-normal.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: "Iru Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fredoka-latin-700-normal.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: "Iru Comfortaa"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/comfortaa-latin-ext-700-normal.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: "Iru Comfortaa"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/comfortaa-latin-700-normal.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: "Iru Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/baloo-2-latin-ext-700-normal.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: "Iru Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/baloo-2-latin-700-normal.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: "Iru Pacifico"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pacifico-latin-ext-400-normal.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: "Iru Pacifico"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pacifico-latin-400-normal.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: "Iru Cinzel"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cinzel-latin-ext-700-normal.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: "Iru Cinzel"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cinzel-latin-700-normal.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: "Iru Orbitron"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/orbitron-latin-700-normal.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; }
.nf-cor-menta { font-family: "Iru Fredoka", var(--gc-font-sans, system-ui), sans-serif !important; font-weight: 700 !important;  }
.nf-cor-ceu { font-family: "Iru Comfortaa", var(--gc-font-sans, system-ui), sans-serif !important; font-weight: 700 !important;  }
.nf-cor-pessego { font-family: "Iru Baloo 2", var(--gc-font-sans, system-ui), sans-serif !important; font-weight: 700 !important;  }
.nf-cor-rosa { font-family: "Iru Pacifico", var(--gc-font-sans, system-ui), sans-serif !important; font-weight: 400 !important; letter-spacing: .01em; }
.nf-cor-ouro { font-family: "Iru Cinzel", var(--gc-font-sans, system-ui), sans-serif !important; font-weight: 700 !important; letter-spacing: .04em; }
.nf-cor-aurora { font-family: "Iru Orbitron", var(--gc-font-sans, system-ui), sans-serif !important; font-weight: 700 !important; letter-spacing: .03em; font-size: .92em; }
/* as etiquetas ao lado do nome (cargo, Criador) não herdam a fonte do cosmético */
[class*="nf-cor"] :is(.cargo-tag, .hc-tag) { font-family: var(--gc-font-sans, system-ui), sans-serif !important; font-weight: 700 !important; letter-spacing: normal; font-size: 11px; }
/* 3.26.0 (pedido do dono): o selo LIVE/CÂMERA do quadrinho vira uma tag presa no canto de cima à direita
   (antes ficava solto no meio, desalinhado) e o "Assistir" fica centralizado embaixo. */
.tile { position: relative; }
.tile .tile-badges .live-pill { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 2; font-size: 10px; padding: 2px 7px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.tile > .btn.primary.tiny { align-self: center; justify-self: center; margin-top: 4px; }
.stage-body.with-live .tile > .btn.primary.tiny { grid-column: 1 / -1; width: 100%; }
/* 3.26.0: memória por turnos */
.jg-mem-vez { text-align: center; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: var(--panel-3); color: var(--muted); margin: 4px auto; width: fit-content; }
.jg-mem-vez.minha { background: rgba(84,224,138,.16); color: var(--ok); box-shadow: 0 0 0 1px rgba(84,224,138,.5); }
.jg-mem-placar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 6px; }
.jg-mem-jog { padding: 3px 10px; border-radius: 999px; background: var(--panel-2); font-size: 13px; border: 1px solid transparent; }
.jg-mem-jog.vez { border-color: var(--a2); box-shadow: 0 0 10px rgba(199,125,255,.4); }
.jg-mem.outra-vez { opacity: .75; }
