@font-face { font-family: Lilita; src: url(/fonts/lilita.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/nunito-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/nunito-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/nunito-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --plum: #3a1550;
  --plum-2: #4a1d4f;
  --violet: #7a4fe8;
  --violet-d: #5530b8;
  --pink: #ff7ab8;
  --pink-d: #d9478e;
  --sun: #ffd447;
  --sun-d: #e0a713;
  --mint: #55dc86;
  --mint-d: #2fa65e;
  --ruby: #ec3b46;
  --cream: #fff7fb;
  --display: Lilita, 'Arial Rounded MT Bold', sans-serif;
  --ui: Nunito, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #2a0f3a; color: var(--plum); font-family: var(--ui); overscroll-behavior: none; }
body { display: grid; place-items: stretch center; }
::selection { background: var(--pink); color: #fff; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#stage { position: relative; width: 100%; max-width: 480px; height: 100dvh; overflow: hidden; background: #8e6bff; box-shadow: 0 0 80px rgba(0,0,0,.4); }
.screen { position: absolute; inset: 0; display: none; }
.screen.active { display: block; }

/* ---------- INÍCIO ---------- */
#home { display: none; flex-direction: column; align-items: center; padding: calc(var(--safe-t) + 14px) 18px calc(var(--safe-b) + 18px); overflow-y: auto; }
#home.active { display: flex; }
.sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #7e55f0 0%, #b07cf7 38%, #ffb4dc 70%, #ffd2e8 100%); overflow: hidden; }
#home > * { position: relative; }
.cloud { position: absolute; background: #fff; border-radius: 99px; opacity: .9; box-shadow: 30px -14px 0 4px #fff, 64px 2px 0 -2px #fff; height: 30px; width: 70px; animation: drift 38s linear infinite; }
.c1 { top: 12%; left: -20%; } .c2 { top: 30%; left: 60%; transform: scale(.7); animation-duration: 52s; } .c3 { top: 52%; left: 10%; transform: scale(.55); animation-duration: 64s; opacity: .7; }
@keyframes drift { from { translate: -40vw 0; } to { translate: 120vw 0; } }
.hill { position: absolute; bottom: -40%; border-radius: 50%; }
.h1 { left: -30%; width: 110%; height: 62%; background: #6fd877; }
.h2 { right: -40%; width: 120%; height: 56%; background: #55c565; }

.home-top { width: 100%; display: flex; justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 8px; border-radius: 99px; background: rgba(58,21,80,.55); color: #fff; font-family: var(--display); font-size: 20px; }
.pill svg { width: 24px; height: 24px; fill: var(--sun); stroke: var(--sun-d); stroke-width: 1.2; }
.pill small { font-size: 14px; opacity: .75; }

.logo { margin: 6px 0 0; font-family: var(--display); font-weight: 400; line-height: .86; text-align: center; color: #fff; letter-spacing: .01em;
  -webkit-text-stroke: 9px var(--plum); paint-order: stroke fill; text-shadow: 0 7px 0 var(--plum), 0 12px 18px rgba(58,21,80,.35); }
.logo span { display: block; }
.logo span:first-child { font-size: clamp(40px, 12vw, 54px); color: var(--sun); transform: rotate(-4deg); }
.logo span:last-child { font-size: clamp(60px, 19vw, 86px); color: #ffd1ea; }

#heroArt { width: min(78%, 300px); aspect-ratio: 3 / 2; margin: 0 0 10px; flex: none; }

.levels { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
#home .levels { margin-top: auto; margin-bottom: auto; }
.lvl { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; aspect-ratio: 1 / 1.05;
  padding: 6px 2px; border: 3px solid var(--plum); border-radius: 18px; background: var(--c, var(--pink));
  box-shadow: 0 5px 0 var(--plum), 0 10px 16px rgba(58,21,80,.22); transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.lvl:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--plum); }
.lvl .num { font-family: var(--display); font-size: clamp(26px, 8vw, 34px); line-height: 1; color: #fff; -webkit-text-stroke: 6px var(--plum); paint-order: stroke fill; }
.lstars { display: flex; gap: 1px; }
.lstars svg { width: 14px; height: 14px; fill: rgba(58,21,80,.28); }
.lstars svg.on { fill: var(--sun); stroke: var(--plum); stroke-width: 1.6; }
.lvl.next { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(-4px); } }
.lvl.locked { background: #d8cde4; }
.lvl.locked .num { color: #efe8f5; -webkit-text-stroke-color: #8d7a9f; }
.lvl.locked .lock { width: 18px; height: 18px; fill: #8d7a9f; stroke: #8d7a9f; }
.install { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 99px; border: 3px solid var(--plum);
  background: var(--sun); font-weight: 800; font-size: 16px; box-shadow: 0 5px 0 var(--plum); }
.install svg { width: 20px; height: 20px; }
.install:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--plum); }

/* ---------- JOGO ---------- */
#field { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.hud { position: absolute; top: calc(var(--safe-t) + 10px); left: 10px; right: 10px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--plum); background: #fff; display: grid; place-items: center; box-shadow: 0 4px 0 var(--plum); }
.round-btn svg { width: 22px; height: 22px; }
.hud-title { flex: 1; display: flex; flex-direction: column; color: #fff; text-shadow: 0 2px 0 var(--plum); }
.hud-title small { font-weight: 800; font-size: 12px; opacity: .9; }
.hud-title strong { font-family: var(--display); font-weight: 400; font-size: 20px; -webkit-text-stroke: 4px var(--plum); paint-order: stroke fill; }
.hud2 { position: absolute; top: calc(var(--safe-t) + 60px); left: 64px; right: 12px; display: flex; gap: 6px; align-items: center; pointer-events: none;
  font-weight: 800; font-size: 13px; color: #fff; }
.hud2 span { padding: 3px 9px; border-radius: 99px; background: rgba(58,21,80,.62); font-variant-numeric: tabular-nums; }
.hud2 #hudTime { margin-left: auto; }
.shield-pill:empty { display: none; }
.shield-pill { background: rgba(40,120,170,.75) !important; }
.hearts { display: flex; gap: 3px; }
.hearts svg { width: 26px; height: 26px; fill: var(--ruby); stroke: var(--plum); stroke-width: 2; }
.hearts svg.off { fill: rgba(255,255,255,.4); }
.super { position: absolute; left: 14px; bottom: calc(var(--safe-b) + 18px); width: 62px; height: 112px; border-radius: 22px; border: 3px solid var(--plum); background: #fff; overflow: hidden; box-shadow: 0 5px 0 var(--plum); }
.super-fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p, 0) * 100%); background: linear-gradient(0deg, #ff4f8b, #ff9a3c, #ffd84a, #55dc86, #45c2ff, #9a6bff); transition: height .2s var(--ease); }
.super-label { position: absolute; inset: auto 0 8px; font-family: var(--display); font-size: 15px; color: #fff; -webkit-text-stroke: 4px var(--plum); paint-order: stroke fill; }
.super:disabled { cursor: default; }
.super:not(:disabled) { animation: ready 1s var(--ease) infinite; }
@keyframes ready { 50% { transform: scale(1.07) rotate(-3deg); } }
.hint { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 140px); margin: 0; text-align: center; color: #fff; font-family: var(--display); font-size: 19px;
  -webkit-text-stroke: 5px var(--plum); paint-order: stroke fill; pointer-events: none; transition: opacity .4s; }
.hint.gone { opacity: 0; }

/* ---------- MODAIS ---------- */
.modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(42,15,58,.55); backdrop-filter: blur(3px); }
.modal[hidden] { display: none; }
.card { width: 100%; max-width: 360px; padding: 22px 20px 20px; border-radius: 26px; background: var(--cream); border: 3px solid var(--plum); text-align: center;
  box-shadow: 0 8px 0 var(--plum), 0 24px 40px rgba(0,0,0,.3); animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.86); opacity: 0; } }
.card h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 34px; color: #fff; -webkit-text-stroke: 7px var(--plum); paint-order: stroke fill; }
.card p { margin: 6px 0 12px; font-weight: 700; color: #5b3a6b; }
.row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.btn { min-height: 46px; padding: 0 18px; border-radius: 16px; border: 3px solid var(--plum); background: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 4px 0 var(--plum); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--plum); }
.btn.primary { background: var(--mint); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { background: var(--ruby); color: #fff; }
.btn.sm { min-height: 40px; font-size: 15px; }
.big-stars { display: flex; justify-content: center; gap: 4px; margin: 4px 0; }
.big-stars svg { width: 54px; height: 54px; fill: #e1d6ea; stroke: var(--plum); stroke-width: 1.4; }
.big-stars svg.on { fill: var(--sun); animation: pop .5s var(--ease) both; }
.big-stars svg:nth-child(2) { width: 66px; height: 66px; translate: 0 -8px; animation-delay: .12s; }
.big-stars svg:nth-child(3) { animation-delay: .24s; }
.lock-big { width: 54px; height: 54px; fill: var(--violet); stroke: var(--violet); }
#lockPass { width: 100%; height: 52px; padding: 0 16px; border-radius: 16px; border: 3px solid var(--plum); font: 800 20px var(--ui); color: var(--plum); text-align: center; background: #fff; }
#lockPass::placeholder { color: #a48fb3; font-weight: 700; }
.err { min-height: 1.2em; margin: 8px 0 4px !important; color: #b3122a !important; font-size: 14px; }
.steps { text-align: left; font-weight: 700; color: #5b3a6b; line-height: 1.7; padding-left: 22px; }
.inl { width: 18px; height: 18px; vertical-align: -3px; }

/* ---------- MENSAGEIRO ---------- */
.chat { --bg: #160c1e; --panel: #21142c; --line: #33223f; --text: #f6ecfb; --muted: #b9a3c8; --out: #8c2f6c; --in: #2c1d38; background: var(--bg); color: var(--text); }
.chat ::selection { background: #e05a9f; }
.pane { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pane[hidden] { display: none; }
.bar { display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 8px 10px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.bar-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bar-title strong { font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title small { font-size: 13px; color: var(--muted); }
#connState[data-ok="1"] { color: #8fe3b0; }
.icon-btn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--text); fill: currentColor; }
.icon-btn:active { background: rgba(255,255,255,.08); }
.icon-btn svg { width: 24px; height: 24px; }
.lock-out { color: #ff9ccc; }
.avatar { --h: 300; flex: none; position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 16px;
  color: #fff; background: hsl(var(--h) 55% 42%); }
.avatar.online::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #4cd787; border: 2.5px solid var(--bg); }

.new-chat { padding: 12px 14px 4px; background: var(--panel); border-bottom: 1px solid var(--line); }
.new-chat label { font-size: 13px; color: var(--muted); font-weight: 700; }
.new-row { display: flex; gap: 8px; margin-top: 6px; }
.new-row input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 700 16px var(--ui); }
.chat .btn { border-width: 0; box-shadow: none; }
.chat .btn.primary { background: #e05a9f; color: #fff; }
.chat .err { color: #ff8fa0 !important; font-weight: 700; }

.contacts { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.contact { width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px 14px; border: 0; background: none; text-align: left; color: var(--text); }
.contact:active { background: rgba(255,255,255,.05); }
.c-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.c-top, .c-bot { display: flex; align-items: center; gap: 8px; }
.c-top strong { flex: 1; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-top time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.c-prev { flex: 1; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #e05a9f; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.badge[hidden] { display: none; }
.empty { padding: 32px 28px; color: var(--muted); line-height: 1.5; max-width: 40ch; }
.empty strong { color: var(--text); }
.empty[hidden] { display: none; }

.key-warn { padding: 10px 14px; background: #4a1a22; color: #ffd1d6; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.key-warn[hidden] { display: none; }
.key-warn p { margin: 0; flex: 1; }
.messages { flex: 1; overflow-y: auto; padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 3px;
  background: radial-gradient(circle at 20% 10%, rgba(224,90,159,.07), transparent 40%), var(--bg); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sys, .day { align-self: center; margin: 8px 0; padding: 5px 12px; border-radius: 10px; background: var(--panel); color: var(--muted); font-size: 12.5px; text-align: center; max-width: 90%; }
.day { font-weight: 800; }
.bubble { max-width: 82%; padding: 7px 10px 6px; border-radius: 14px; font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-wrap; animation: in .22s var(--ease); }
@keyframes in { from { transform: translateY(6px); opacity: 0; } }
.bubble.out { align-self: flex-end; background: var(--out); border-bottom-right-radius: 5px; }
.bubble.in { align-self: flex-start; background: var(--in); border-bottom-left-radius: 5px; }
.meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -2px 10px; font-size: 11px; color: rgba(246,236,251,.62); font-variant-numeric: tabular-nums; }
.st { display: inline-grid; width: 17px; height: 11px; }
.st svg { width: 100%; height: 100%; }
.st-read { color: #7fe0ff; }
.st-fail { color: #ff7a8a; width: 12px; height: 12px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px calc(var(--safe-b) + 8px); background: var(--panel); border-top: 1px solid var(--line); }
.composer textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 16px/1.35 var(--ui); caret-color: #ff8fc8; }
.composer textarea::placeholder { color: #8e7a9e; }
.send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #e05a9f; color: #fff; display: grid; place-items: center; }
.send svg { width: 22px; height: 22px; translate: 1px 0; }
.composer.disabled { opacity: .4; pointer-events: none; }

.sheet { position: absolute; inset: 0; z-index: 30; display: flex; align-items: flex-end; background: rgba(0,0,0,.5); }
.sheet[hidden] { display: none; }
.sheet-card { width: 100%; padding: 20px 18px calc(var(--safe-b) + 18px); background: var(--panel); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; gap: 10px; animation: up .3s var(--ease); }
.sheet-card[hidden] { display: none; }
@keyframes up { from { transform: translateY(40%); opacity: 0; } }
.sheet-card h3 { margin: 0; font-size: 19px; }
.sheet-card p, .facts { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.facts { padding-left: 18px; }
.code { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0; }
.code span { padding: 10px 0; border-radius: 12px; background: var(--bg); text-align: center; font: 800 20px var(--ui); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.sheet-card .btn { background: var(--line); color: var(--text); }
.sheet-card .btn.danger { background: #7d1a2c; }
.sheet-card .btn.ghost { background: transparent; border: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* mensageiro v2 */
.to-game { flex: none; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.to-game:active { background: rgba(255,255,255,.06); }
.avatar.group { background: #5a3a78; color: #e9d8f6; }
.avatar.group svg { width: 24px; height: 24px; }
.bubble .who { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 800; color: hsl(var(--h) 80% 72%); }
.bubble.cont.in { border-top-left-radius: 6px; }
.bubble.cont.out { border-top-right-radius: 6px; }
.bubble.cont { margin-top: -1px; }
.bubble:not(.cont) { margin-top: 5px; }
.bubble .txt { display: inline; }
.img-att { display: block; padding: 0; margin: -3px -6px 4px; border: 0; background: rgba(0,0,0,.2); border-radius: 10px; overflow: hidden; min-width: 120px; min-height: 80px; }
.img-att img { display: block; max-width: min(260px, 64vw); max-height: 320px; width: auto; height: auto; }
.file-att { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 200px; margin: 0 0 4px; padding: 9px 10px; border: 0; border-radius: 10px; background: rgba(0,0,0,.22); color: var(--text); text-align: left; }
.file-att svg { flex: none; width: 30px; height: 30px; color: #ffb3d9; }
.f-info { min-width: 0; display: flex; flex-direction: column; }
.f-info strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-info small { font-size: 12px; color: var(--muted); }
.fail-txt { color: #ff9aa6; font-weight: 700; }
.attach { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; }
.attach svg { width: 24px; height: 24px; }
.attach:active { background: rgba(255,255,255,.06); }
.chat textarea:focus-visible, .chat button:focus-visible { outline: 2px solid #e05a9f; outline-offset: 1px; }

/* mensageiro v3: mídia, áudio, menu */
.chat { color-scheme: dark; }
.bubble.has-image, .bubble.has-video { padding: 4px 4px 5px; }
.bubble.has-image .meta, .bubble.has-video .meta { margin-right: 6px; }
.bubble.has-image .txt, .bubble.has-video .txt { display: block; padding: 4px 6px 0; }
.img-att { margin: 0 0 2px; border-radius: 11px; background: rgba(0,0,0,.25); cursor: zoom-in; }
.img-att img { max-width: min(270px, 66vw); max-height: 340px; min-height: 60px; }
.vid-att { display: block; width: min(280px, 68vw); max-height: 360px; border-radius: 11px; background: #000; }
.aud-att { min-width: min(260px, 66vw); padding: 2px 0; }
.aud-att audio { width: 100%; height: 40px; }
a.file-att { text-decoration: none; }
.attach { flex: none; }
#micBtn[hidden], #sendBtn[hidden] { display: none; }
.composer { position: relative; }
.rec-bar { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 8px 8px calc(var(--safe-b) + 8px); background: var(--panel); }
.rec-bar[hidden] { display: none; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff4d6d; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.rec-time { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.rec-label { flex: 1; color: var(--muted); font-size: 14px; }
.viewer { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; background: rgba(8,4,12,.96); }
.viewer[hidden] { display: none; }
.viewer-bar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: calc(var(--safe-t) + 10px) 10px 6px; }
.viewer-bar a { text-decoration: none; }
#viewerImg { flex: 1; min-height: 0; width: 100%; object-fit: contain; padding: 8px 8px calc(var(--safe-b) + 16px); }
.sheet-card { max-height: 88%; overflow-y: auto; }
.nu-form { display: flex; flex-direction: column; gap: 6px; }
.nu-form label { font-size: 13px; color: var(--muted); font-weight: 700; }
.nu-form input { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 700 16px var(--ui); }
.nu-form .err, .nu-form .ok { margin: 2px 0 !important; min-height: 0; }
.ok { color: #8fe3b0; font-size: 14px; font-weight: 700; }
.sheet-card h3 + p { margin-top: -4px; }
.sheet-card h3:not(:first-child) { margin-top: 10px; }
.chat .btn.primary, .sheet-card .btn.primary { background: #e05a9f; color: #fff; }
.toast { position: absolute; left: 16px; right: 16px; bottom: calc(var(--safe-b) + 80px); z-index: 50; padding: 12px 16px; border-radius: 14px; background: #33223f; color: var(--text); font-weight: 700; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.toast[hidden] { display: none; }
.aud-dur { display: block; padding: 2px 4px 0; font-size: 12px; color: rgba(246,236,251,.7); }

/* v4: papel de parede, perfil, fotos */
.messages { background: url(/img/wallpaper.svg) 0 0 / 300px 300px repeat, radial-gradient(120% 80% at 80% 0%, #2a1336 0%, transparent 60%), radial-gradient(100% 70% at 0% 100%, #1e1030 0%, transparent 60%), #150b1c; }
.sys, .day { background: rgba(33,20,44,.92); backdrop-filter: blur(2px); }
.bar-tap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 2px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; }
.bar-tap:active { background: rgba(255,255,255,.05); }
.avatar.photo { overflow: visible; background: #2c1d38; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.xl { width: 84px; height: 84px; font-size: 30px; }
.avatar.xl svg { width: 44px; height: 44px; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.photo-row { display: flex; align-items: center; gap: 16px; margin: 4px 0 6px; }
.photo-btns { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.photo-btns[hidden], .info-view[hidden], #groupForm[hidden] { display: none; }
.info-view { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-view strong { font-size: 19px; }
.info-view small { color: #8fe3b0; font-size: 13px; }
.info-view p { margin: 6px 0 0 !important; color: var(--text) !important; }
.nu-form textarea { min-height: 64px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 600 15px/1.4 var(--ui); resize: vertical; }
.nu-form h4 { margin: 12px 0 2px; font-size: 14px; color: var(--muted); }
.members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.members li { display: flex; align-items: center; gap: 10px; }
.m-box { display: flex; flex-direction: column; min-width: 0; }
.m-name { font-weight: 800; font-size: 15px; }
.m-box small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-card > .btn:first-child { margin-bottom: 4px; }
