:root {
  --bg: #15130f;
  --bg-2: #1b1813;
  --card: #211d18;
  --card-2: #2a251f;
  --border: #35302a;
  --border-strong: #4a443b;
  --text: #f3ece0;
  --muted: #a69e8f;
  --accent: #ff7a1a;
  --accent-hover: #ff8f3d;
  --accent-ink: #1a0f05;
  --ok: #58c48f;
  --danger: #e5484d;
  --warn: #ffd166;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
input { font: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.big { width: 56px; height: 56px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.9rem; margin: 8px 0 0; }
.hint.center { text-align: center; margin-top: 22px; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 10px 0 0; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; padding-top: calc(10px + env(safe-area-inset-top));
  background: rgba(21, 19, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); stroke: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.online { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; }
.online .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.online .sep { margin: 0 6px; opacity: 0.6; }
.online .i { width: 14px; height: 14px; margin-right: 4px; }
.game-card .live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.game-card .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.game-card .live.on { color: var(--ok); }
.game-card .live.on .dot { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.game-card .tag.partial { background: rgba(255, 209, 102, 0.8); color: #1a0f05; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--card-2); }
.icon-btn.small { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.small .i { width: 16px; height: 16px; }
.badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center;
}
.user-pill { display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px 3px 3px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.9rem; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; flex: none; }
.user-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.user-pill .icon-btn { border-radius: 999px; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch button { background: transparent; color: var(--muted); border: 0; padding: 6px 11px; font-size: 0.8rem; font-weight: 600; }
.lang-switch button.active { background: var(--text); color: var(--bg); }

/* ---------- aviso de atualização ---------- */
.update-banner { position: sticky; top: 59px; z-index: 19; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 20px; background: var(--warn); color: var(--accent-ink); font-weight: 600; font-size: 0.92rem; }
.update-banner .i { stroke: none; fill: currentColor; }
.update-banner span { flex: 1; min-width: 200px; }
.update-banner .btn-primary.small { padding: 7px 14px; font-size: 0.9rem; background: var(--accent-ink); color: var(--warn); }

/* ---------- telas ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 24px 20px 48px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.screen { display: none; animation: rise 0.22s ease; }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- entrar ---------- */
.auth { max-width: 460px; margin: 6vh auto 0; text-align: center; }
.auth-art { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); color: var(--accent); margin-bottom: 18px; }
.auth-art .i { stroke: none; }
.auth h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.auth form { margin-top: 22px; text-align: left; }
.auth .hint { margin-top: 18px; text-align: center; }
.auth .status { margin: 14px 0 20px; }
.auth .btn-secondary { margin-top: 4px; }

.field { display: block; border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.field > span, .field > legend { display: block; font-weight: 600; margin-bottom: 8px; padding: 0; font-size: 0.95rem; }
.field input[type="text"] {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); outline: none;
  font-size: 1.05rem;
}
.field input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.2); }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-family: var(--font-display); font-size: 1rem;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-big { width: 100%; font-size: 1.15rem; padding: 15px; margin-top: 4px; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--card); }
.btn-ghost { background: transparent; border: 0; color: var(--muted); padding: 6px 8px; }
.error { color: #ff9a9d; background: rgba(229, 72, 77, 0.1); border: 1px solid rgba(229, 72, 77, 0.35); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; margin: 0 0 14px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(88, 196, 143, 0.1); border: 1px solid rgba(88, 196, 143, 0.3); margin: 0 0 20px; font-size: 0.92rem; }
.note .i { color: var(--ok); margin-top: 2px; }
.note.warm { background: rgba(255, 122, 26, 0.1); border-color: rgba(255, 122, 26, 0.35); text-align: left; max-width: 520px; margin: 6px auto 0; }
.note.warm .i { color: var(--accent); stroke: none; fill: var(--accent); }

.ring { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- apresentação (quem chega pelo Google) ---------- */
.about { max-width: 560px; margin: 56px auto 0; padding-top: 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
.about h2 { font-size: 1.3rem; color: var(--text); margin-bottom: 10px; }
.about h3 { font-size: 1rem; color: var(--text); margin: 22px 0 6px; }
.about p { margin: 0 0 10px; }
.about ol { margin: 0; padding-left: 20px; }
.about li { margin-bottom: 6px; }
.about a { color: var(--accent); word-break: break-all; }

/* ---------- início ---------- */
.hero-banner { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--border); background: #12100d; margin: 4px 0 26px; min-height: 340px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-text { position: relative; z-index: 2; padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.hero-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.hero-brand em { font-style: normal; color: var(--accent); }
.hero-text h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 0; }
.hero-text .lead { margin: 0; max-width: 460px; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 11px 18px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
.hero-pill .i { stroke: none; fill: currentColor; width: 22px; height: 22px; }
.hero-pill:hover { background: var(--accent-hover); }
.hero-covers { position: absolute; top: 0; bottom: 0; right: 0; width: 58%; overflow: hidden; }
.hero-covers::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #12100d 0%, rgba(18, 16, 13, 0) 28%); pointer-events: none; }
.hero-tilt { position: absolute; left: -10%; top: 50%; width: 140%; transform: rotate(-8deg) translateY(-50%); }
.hero-track { display: flex; gap: 18px; width: max-content; animation: heroDrift 80s linear infinite; }
.hero-banner:hover .hero-track { animation-play-state: paused; }
.hero-cover { width: 150px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 2px solid #35302a; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); flex: none; background: var(--card); }
.hero-cover:nth-child(even) { margin-top: 70px; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes heroDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero-track { animation: none; } }
.home-stats { display: inline-flex; align-items: center; gap: 8px; margin: -12px 0 22px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-size: 0.88rem; }
.home-stats .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.section-title { font-size: 0.8rem; color: var(--muted); font-weight: 700; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-body); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px 14px; }
.game-card { background: none; border: 0; padding: 0; text-align: left; color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.game-card .cover { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--card); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.game-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-card:hover .cover, .game-card:focus-visible .cover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45); }
.game-card:focus-visible { outline: none; }
.game-card .tag { position: absolute; top: 10px; left: 10px; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; letter-spacing: 0.02em; backdrop-filter: blur(4px); }
.game-card .tag.nocross { background: rgba(229, 72, 77, 0.75); }
.game-card .name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.game-card .meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; }
.game-card .plats { display: inline-flex; gap: 4px; color: var(--muted); }
.game-card .plats .i { width: 15px; height: 15px; }

/* ---------- configuração ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); padding: 0; margin-bottom: 18px; font-size: 0.95rem; }
.back:hover { color: var(--text); }
.setup-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.setup-cover img { width: 100%; max-width: 220px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); display: block; }
.setup-cover h2 { font-size: 1.5rem; margin-top: 14px; }
.setup-cover p { margin: 4px 0 0; font-size: 0.9rem; }
@media (min-width: 760px) {
  .setup-layout { grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
  .setup-cover { position: sticky; top: 84px; }
  .setup-cover img { max-width: none; }
}
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice-grid.two { grid-template-columns: repeat(2, 1fr); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choice-box { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-2); min-height: 58px; transition: border-color 0.12s ease, background 0.12s ease; }
.choice-box strong { font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.choice-box small { color: var(--muted); font-size: 0.78rem; }
.choice input:checked + .choice-box { border-color: var(--accent); background: rgba(255, 122, 26, 0.1); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice.disabled { opacity: 0.45; }

/* ---------- busca ---------- */
.searching { text-align: center; padding: 48px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.searching h2 { font-size: 1.7rem; }
.searching .btn-secondary { margin-top: 18px; }

/* ---------- chamada ---------- */
.room-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.room-cover { width: 56px; height: 74px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); flex: none; }
.room-title { flex: 1; min-width: 0; }
.room-title h2 { font-size: 1.35rem; }
.room-title p { margin: 2px 0 0; font-size: 0.88rem; }
.room-count { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); white-space: nowrap; }
.status { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); font-size: 0.92rem; color: var(--muted); }
.status.live { color: var(--text); border-color: rgba(88, 196, 143, 0.4); background: rgba(88, 196, 143, 0.08); }
.members { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.member { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); transition: border-color 0.1s ease, box-shadow 0.1s ease; }
.member.speaking { border-color: var(--ok); box-shadow: 0 0 0 2px rgba(88, 196, 143, 0.3); }
.member .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--border-strong); font-family: var(--font-display); font-weight: 800; flex: none; }
.member.me .avatar { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.member .info { min-width: 0; display: flex; flex-direction: column; }
.member .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member .plat { font-size: 0.76rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.member .plat .i { width: 13px; height: 13px; }
.member .mic { margin-left: auto; color: var(--muted); }
.member.muted .mic { color: var(--danger); }
.member.connecting .avatar { opacity: 0.4; }
.controls { position: sticky; bottom: 0; display: flex; justify-content: center; gap: 12px; padding: 14px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); margin-top: 10px; }
.ctrl { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 96px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--card); color: var(--text); }
.ctrl .i { width: 24px; height: 24px; }
.ctrl-label { font-size: 0.78rem; font-weight: 600; }
.ctrl.active { background: var(--warn); color: var(--accent-ink); border-color: var(--warn); }
.ctrl.danger { background: var(--danger); border-color: var(--danger); color: #fff; }

/* ---------- painel: chat e logins ---------- */
.panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.panel.inline { margin-bottom: 8px; }
.panel.drawer { position: fixed; z-index: 40; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 560px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
.panel-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, 0.35); }
.panel-tabs { display: flex; align-items: center; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); }
.panel-tabs .tab { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.panel-tabs .tab .i { width: 16px; height: 16px; }
.panel-tabs .tab.active { background: var(--card-2); color: var(--text); }
.panel-tabs .tab .badge { position: static; margin-left: 2px; }
.panel-close { margin-left: auto; }
.panel.inline .panel-close { display: none; }
.panel-body { display: flex; flex-direction: column; min-height: 0; }
.panel-body h3 { font-size: 1rem; padding: 12px 14px 0; }
.chat-log { flex: 1; min-height: 70px; max-height: 220px; overflow-y: auto; padding: 10px 14px; font-size: 0.9rem; display: flex; flex-direction: column; gap: 4px; }
.chat-log .msg b { color: var(--accent); font-weight: 600; }
.chat-log .msg.sys { color: var(--muted); font-style: italic; }
.chat-empty { color: var(--muted); font-size: 0.9rem; padding: 14px; margin: 0; }
.chat-form { display: flex; gap: 8px; padding: 8px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); outline: none; }
.chat-form input:focus { border-color: var(--accent); }
.logins { list-style: none; margin: 0; padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.login-req { padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.login-req .when { color: var(--muted); font-size: 0.8rem; }
.login-req .actions { display: flex; gap: 8px; margin-top: 10px; }
.login-req .actions button { flex: 1; padding: 9px 10px; }
.panel .hint { padding: 0 14px 14px; margin: 6px 0 0; }

/* ---------- amigos ---------- */
.friends { list-style: none; margin: 0; padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.friend { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.friend .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--border-strong); font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; flex: none; position: relative; }
.friend .avatar .st { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); border: 2px solid var(--card); }
.friend.is-online .avatar .st { background: var(--ok); }
.friend .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.friend .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend .sub { font-size: 0.76rem; color: var(--muted); }
.friend .acts { display: flex; gap: 6px; }
.friend .acts .icon-btn { width: 34px; height: 34px; }
.friend .acts .icon-btn .i { width: 17px; height: 17px; }
.friend .acts .icon-btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.friend .acts .icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }
.friend .unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center; }
.dm-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.dm-name { flex: 1; font-weight: 700; font-family: var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-primary.small { padding: 7px 12px; font-size: 0.85rem; }
.dm-log { max-height: 260px; min-height: 120px; }
.dm-log .msg { max-width: 85%; padding: 7px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); align-self: flex-start; }
.dm-log .msg.mine { align-self: flex-end; background: rgba(255, 122, 26, 0.14); border-color: rgba(255, 122, 26, 0.4); }
.dm-log .msg time { display: block; font-size: 0.68rem; color: var(--muted); margin-top: 2px; }
.member .add { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font-size: 0.76rem; font-weight: 600; }
.member .add .i { width: 14px; height: 14px; }
.member .add:hover { border-color: var(--accent); color: var(--accent); }
.member .add + .mic { margin-left: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 50; max-width: calc(100vw - 32px); width: max-content;
  background: var(--card-2); color: var(--text); border: 1px solid var(--border-strong);
  padding: 12px 16px; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); font-size: 0.92rem;
}
.toast .toast-actions { display: flex; gap: 8px; margin-top: 10px; }
.toast .toast-actions button { flex: 1; padding: 8px 12px; font-size: 0.9rem; }
.audio-sink { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- celular ---------- */
@media (max-width: 560px) {
  .topbar { padding-left: 14px; padding-right: 14px; gap: 8px; }
  .online { display: none; }
  .user-pill .user-name { display: none; }
  .topbar .online.calls-only { display: inline-flex; }
  main { padding: 18px 16px 40px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-banner { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
  .hero-text { padding: 26px 20px 18px; }
  .hero-covers { position: relative; width: 100%; height: 210px; }
  .hero-covers::before { background: linear-gradient(90deg, #12100d 0%, rgba(18, 16, 13, 0) 15%, rgba(18, 16, 13, 0) 85%, #12100d 100%); }
  .hero-tilt { left: -20%; width: 160%; }
  .hero-cover { width: 110px; }
  .hero-cover:nth-child(even) { margin-top: 44px; }
  .panel.drawer { right: 0; bottom: 0; left: 0; width: auto; border-radius: var(--radius) var(--radius) 0 0; max-height: 75vh; padding-bottom: env(safe-area-inset-bottom); }
  .room-head { flex-wrap: wrap; }
}
