@font-face{font-family:"Cinzel Decorative";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/cinzel-decorative-latin-400-normal.woff2) format("woff2");}
@font-face{font-family:"Cinzel Decorative";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/cinzel-decorative-latin-700-normal.woff2) format("woff2");}
@font-face{font-family:"IM Fell English";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/im-fell-english-latin-400-normal.woff2) format("woff2");}
@font-face{font-family:"IM Fell English";font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/im-fell-english-latin-400-italic.woff2) format("woff2");}
@font-face{font-family:"Uncial Antiqua";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/uncial-antiqua-latin-400-normal.woff2) format("woff2");}
:root{--f-title:"Cinzel Decorative","Uncial Antiqua",Georgia,serif;--f-text:"IM Fell English",Georgia,serif;}
:root { --fs: 1.15; }  /* tamanho de texto e ícones (Configurações → Perfil) */
:root, [data-theme="taverna-escuro"] {
  /* Taverna à noite: madeira escura, luz de lamparina */
  --bg: #15100c; --bg2: #1d1610; --bg3: #2a2017; --line: #3a2c1f; --rail: #110d09;
  --text: #f1e5d3; --muted: #a8937a; --accent: #ec8a2c; --accent2: #b9631c; --accent-ink: #1f1206;
  --danger: #e2574c; --speak: #f2a33a; --link: #f3b26b; --radius: 10px;
  --hover: #2f241a; --active: #3a2b1d; --glow: 0 0 0 1px #ec8a2c33, 0 8px 30px #00000066;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color-scheme: dark;
}
[data-theme="taverna-claro"] {
  /* Taverna de dia: pergaminho, carvalho claro, mesmo laranja */
  --bg: #f6eddc; --bg2: #eee1c8; --bg3: #e4d2b2; --line: #d5bf99; --rail: #e6d6b9;
  --text: #2a1d12; --muted: #7a6249; --accent: #d9731a; --accent2: #b45d14; --accent-ink: #fff8ee;
  --danger: #c4392f; --speak: #d9731a; --link: #a9500f;
  --hover: #e7d6b8; --active: #dcc6a0; --glow: 0 0 0 1px #d9731a33, 0 8px 30px #6b4a2333;
  color-scheme: light;
}
* { box-sizing: border-box; }
:root { accent-color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-size: calc(14px * var(--fs)); }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: calc(12px * var(--fs)); } .center { text-align: center; }
.error { color: var(--danger); min-height: 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
input:focus { outline: 2px solid var(--accent2); border-color: transparent; }
.btn { background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.icon-btn { background: none; border: 0; color: var(--muted); font-size: calc(16px * var(--fs)); padding: 4px 6px; border-radius: 6px; }
.icon-btn:hover { color: var(--text); background: var(--bg3); }

/* ---- Auth ---- */
.auth-card { width: 360px; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.brand { margin: 0; font-size: calc(28px * var(--fs)); letter-spacing: -0.5px; }
.tabs { display: flex; gap: 6px; margin: 18px 0 12px; }
.tab { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--muted); }
.tab.active { color: var(--text); border-color: var(--accent2); }
.auth-form { display: grid; gap: 10px; }
.auth-form label { display: grid; gap: 4px; color: var(--muted); font-size: calc(12px * var(--fs)); }

/* ---- Layout ---- */
#app { display: grid; grid-template-columns: calc(250px * var(--fs)) 1fr; height: 100%; }
#sidebar { background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.server-name { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px; font-weight: 700; font-size: calc(16px * var(--fs)); border-bottom: 1px solid var(--line); }
.channel-group { padding: 10px 8px 0; }
.group-title { text-transform: uppercase; font-size: calc(11px * var(--fs)); color: var(--muted); letter-spacing: .6px; padding: 4px 8px; }
#sidebar ul { list-style: none; margin: 0; padding: 0; }
.ch { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; color: var(--muted); cursor: pointer; }
.ch:hover { background: var(--hover); color: var(--text); }
.ch.active { background: var(--active); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.ch .hash { width: calc(16px * var(--fs)); text-align: center; opacity: .8; flex: none; }
.vmembers { padding: 2px 0 4px 30px; }
.vmember { display: flex; align-items: center; gap: 6px; padding: 2px 0; color: var(--muted); font-size: calc(13px * var(--fs)); }
.vmember.speaking .avatar.sm { box-shadow: 0 0 0 2px var(--speak); }
.avatar { display: inline-grid; place-items: center; width: calc(30px * var(--fs)); height: calc(30px * var(--fs)); border-radius: 50%; background: var(--accent2); color: #fff; font-weight: 700; flex: none; background-size: cover; background-position: center; overflow: hidden; }
.avatar.sm { width: calc(20px * var(--fs)); height: calc(20px * var(--fs)); font-size: calc(10px * var(--fs)); }
#voice-status { margin-top: auto; padding: 10px 12px; border-top: 1px solid var(--line); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; } .dot.ok { background: var(--accent); }
.voice-controls { display: flex; gap: 6px; margin-top: 8px; }
.ctl { flex: 1; background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; padding: 7px 0; font-size: calc(16px * var(--fs)); }
.ctl.off { background: color-mix(in srgb, var(--danger) 22%, var(--bg3)); border-color: var(--danger); }
.ctl.on { background: color-mix(in srgb, var(--accent) 25%, var(--bg3)); border-color: var(--accent); }
.ctl.danger:hover { background: var(--danger); }
.user-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--rail); }
#voice-status.hidden + .user-bar { margin-top: auto; }
.user-bar #me-name { flex: 1; font-weight: 600; }

#main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#main-header { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: calc(15px * var(--fs)); }
.view { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ---- Chat ---- */
#messages { flex: 1; overflow-y: auto; padding: 14px 18px; }
.msg { display: grid; grid-template-columns: calc(38px * var(--fs)) 1fr; gap: 10px; padding: 6px 0; }
.msg .meta { font-size: calc(12px * var(--fs)); color: var(--muted); }
.msg .meta b { color: var(--text); font-size: calc(14px * var(--fs)); margin-right: 6px; }
.msg.bot .meta b { color: var(--accent); }
.msg .body { white-space: pre-wrap; word-break: break-word; line-height: 1.4; }
.msg .body a { color: var(--link); }
.badge { font-size: calc(10px * var(--fs)); background: var(--accent2); color: var(--accent-ink); border-radius: 4px; padding: 1px 4px; margin-right: 6px; }
#composer { padding: 12px 18px 18px; }
#composer input { width: 100%; padding: 12px 14px; background: var(--bg3); border-color: transparent; }

/* ---- Voz ---- */
#stage { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
#screens { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.screen { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.screen video { width: 100%; display: block; max-height: 70vh; object-fit: contain; }
.screen .label { position: absolute; left: 8px; bottom: 8px; background: #000a; padding: 3px 8px; border-radius: 6px; font-size: calc(12px * var(--fs)); }
.screen .fs { position: absolute; right: 8px; bottom: 8px; }
#tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.tile { width: calc(150px * var(--fs)); height: calc(110px * var(--fs)); background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; align-content: center; gap: 8px; transition: box-shadow .1s; }
.tile .avatar { width: calc(48px * var(--fs)); height: calc(48px * var(--fs)); font-size: calc(20px * var(--fs)); }
.tile.speaking { box-shadow: 0 0 0 3px var(--speak); }
.tile .name { font-size: calc(13px * var(--fs)); }
.tile .flags { font-size: calc(12px * var(--fs)); color: var(--muted); }

#music { border-top: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--bg2)), var(--bg2));
  padding: 12px 16px; display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(220px, 300px); gap: 18px; align-items: center; }
#yt-wrap { position: relative; width: 200px; height: 200px; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 22px #0007; }
#yt-wrap iframe, #yt-player { width: 100%; height: 100%; display: block; }
#yt-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--muted);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 22%, #000), #000); }
#yt-empty span { font-size: calc(40px * var(--fs)); }
.mp-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mp-title { font-size: calc(18px * var(--fs)); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-sub { font-size: calc(13px * var(--fs)); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-progress { display: flex; align-items: center; gap: 10px; font-size: calc(12px * var(--fs)); color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 6px; }
.mp-bar { position: relative; flex: 1; height: 6px; border-radius: 4px; background: var(--bg3); cursor: pointer; }
.mp-bar:hover { height: 8px; }
#mp-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: var(--accent); }
#mp-knob { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--text); transform: translate(-50%, -50%); opacity: 0; transition: opacity .1s; }
.mp-bar:hover #mp-knob { opacity: 1; }
.mp-ctl { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.mp-play { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; transition: transform .1s; }
.mp-play:hover { transform: scale(1.06); }
.mp-play svg, .mp-btn svg { width: 22px; height: 22px; fill: currentColor; }
.mp-play .i-pause { display: none; } .mp-play.playing .i-play { display: none; } .mp-play.playing .i-pause { display: block; }
.mp-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 8px; display: grid; }
.mp-btn:hover { color: var(--text); }
.mp-vol { display: flex; align-items: center; gap: 6px; color: var(--muted); margin-left: 8px; }
.mp-vol svg { width: 20px; height: 20px; fill: currentColor; }
.mp-vol input { width: 110px; }
.mp-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-self: stretch; }
#m-add { display: flex; gap: 6px; } #m-add input { flex: 1; min-width: 0; } #m-add .btn { padding: 6px 12px; font-size: calc(16px * var(--fs)); }
.mp-next { font-size: calc(11px * var(--fs)); text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
#m-queue { margin: 0; padding: 0; list-style: none; overflow-y: auto; max-height: 120px; display: grid; gap: 2px; counter-reset: q; }
#m-queue li { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 6px; font-size: calc(13px * var(--fs)); counter-increment: q; }
#m-queue li::before { content: counter(q); color: var(--muted); font-size: calc(11px * var(--fs)); text-align: right; }
#m-queue li:hover { background: var(--hover); }
#m-queue li .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#m-queue li .t small { color: var(--muted); }
#m-queue .empty { color: var(--muted); font-size: calc(12px * var(--fs)); padding: 4px 0; }
#m-queue .empty::before { content: none; }
@media (max-width: 1100px) { #music { grid-template-columns: 200px minmax(0, 1fr); } .mp-side { grid-column: 1 / -1; } }

/* ---- Modais ---- */
.modal { position: fixed; inset: 0; background: #000a; display: grid; place-items: center; z-index: 10; }
.modal-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; width: 460px; max-height: 85vh; overflow-y: auto; }
.modal-card.wide { width: 760px; }
.modal-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: calc(16px * var(--fs)); }
.modal-card h3 { font-size: calc(13px * var(--fs)); text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; letter-spacing: .5px; }
.row { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.row label { display: grid; gap: 4px; font-size: calc(12px * var(--fs)); color: var(--muted); }
.row input[type=number] { width: 110px; }
table { width: 100%; border-collapse: collapse; font-size: calc(13px * var(--fs)); }
td, th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
.invite-code { font-family: ui-monospace, Consolas, monospace; font-size: calc(20px * var(--fs)); background: var(--bg); padding: 10px; border-radius: 8px; text-align: center; letter-spacing: 2px; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line); }
#picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pick { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px; text-align: left; }
.pick:hover { border-color: var(--accent); }
.pick img { width: 100%; border-radius: 4px; display: block; }
.pick span { display: block; font-size: calc(12px * var(--fs)); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Grupos ---- */
#channel-tree { flex: 1; overflow-y: auto; padding-bottom: 8px; }
.section { padding: 10px 8px 0; }
.section-title { display: flex; align-items: center; gap: 6px; text-transform: uppercase; font-size: calc(11px * var(--fs)); color: var(--muted); letter-spacing: .6px; padding: 4px 8px; cursor: pointer; user-select: none; }
.section-title:hover { color: var(--text); }
.section-title .chev { transition: transform .15s; font-size: calc(9px * var(--fs)); }
.section.collapsed .chev { transform: rotate(-90deg); }
.section.collapsed ul { display: none; }
.section.grp .section-title { color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; width: 100%; }
.checks label { display: inline-flex !important; grid: none; gap: 4px; align-items: center; color: var(--text) !important; font-size: calc(13px * var(--fs)) !important; }
.gchips { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.gchips label { display: inline-flex; gap: 3px; align-items: center; font-size: calc(12px * var(--fs)); }
.pill { font-size: calc(11px * var(--fs)); background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 1px 7px; margin-right: 4px; color: var(--muted); }

/* ---- Marca / Taverna ---- */
.server-name { gap: 10px; justify-content: flex-start; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg2)), var(--bg2)); }
.server-name .logo { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.server-name > span { flex: 1; font-family: var(--f-title); letter-spacing: .3px; }
.brand { font-family: var(--f-title); display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
#auth { background: radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), var(--bg); }
.auth-card { box-shadow: var(--glow); }
#main-header { display: flex; align-items: center; gap: 8px; }
.ch .hash { width: calc(20px * var(--fs)); }
.section-title .gicon { font-size: calc(13px * var(--fs)); }
.user-bar .uname { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Configurações (estilo painel lateral) ---- */
.settings-card { display: grid; grid-template-columns: calc(180px * var(--fs)) 1fr; gap: 0; padding: 0; width: min(calc(820px * var(--fs)), 96vw); height: min(calc(640px * var(--fs)), 90vh); overflow: hidden; }
.settings-nav { background: var(--bg); border-right: 1px solid var(--line); padding: 18px 10px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav h2 { font-family: var(--f-title); font-size: calc(18px * var(--fs)); margin: 0 8px 12px; }
.settings-nav button { text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 8px; color: var(--muted); }
.settings-nav button:hover { background: var(--hover); color: var(--text); }
.settings-nav button.active { background: var(--active); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.settings-body { padding: 18px 22px; overflow-y: auto; position: relative; }
.settings-body .close { position: absolute; right: 12px; top: 10px; }
.settings-body h3 { margin: 18px 0 8px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: calc(12px * var(--fs)); color: var(--muted); }
.field select, .field input[type=password] { width: 100%; }
.avatar-row { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.avatar.xl { width: calc(84px * var(--fs)); height: calc(84px * var(--fs)); font-size: calc(34px * var(--fs)); box-shadow: 0 0 0 3px var(--bg3); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch.sel { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg2) inset; }
.swatch.none { background: var(--bg3); color: var(--muted); font-size: calc(12px * var(--fs)); }
input[type=color] { width: 34px; height: 28px; padding: 0 2px; }
.theme-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-opt { border: 2px solid var(--line); border-radius: 10px; padding: 10px; text-align: left; background: var(--bg); }
.theme-opt.sel { border-color: var(--accent); }
.theme-opt .prev { height: 46px; border-radius: 6px; margin-bottom: 6px; display: flex; gap: 4px; padding: 6px; }
.theme-opt .prev i { display: block; border-radius: 4px; }
.meter { height: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; flex: 1; }
.meter > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent2), var(--accent), #ffd27a); transition: width .06s linear; }
.row-inline { display: flex; gap: 8px; align-items: center; }
.toggle { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: calc(13px * var(--fs)); }
.toggle small { display: block; color: var(--muted); }
.hint { font-size: calc(12px * var(--fs)); color: var(--muted); margin: 4px 0 12px; }

/* ---- Seletor de ícone ---- */
.icon-btn-pick { min-width: 34px; height: 30px; font-size: calc(16px * var(--fs)); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.icon-pop { position: fixed; z-index: 30; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; width: 264px; box-shadow: var(--glow); }
.icon-pop .grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.icon-pop .grid button { font-size: calc(18px * var(--fs)); background: none; border: 0; border-radius: 6px; padding: 4px 0; }
.icon-pop .grid button:hover { background: var(--hover); }
.icon-pop .row-inline { margin-top: 6px; }
.icon-pop input { flex: 1; width: 0; }

/* ---- Balcão da Taverna ---- */
.home-link { margin: 10px 8px 0; font-weight: 600; color: var(--text) !important; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.home-link.active { background: var(--active); }
.home-scroll { flex: 1; overflow-y: auto; padding: 22px 28px; display: flex; flex-direction: column; gap: 18px; }
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.stage-head h1 { margin: 0; font-family: var(--f-title); font-size: calc(30px * var(--fs)); letter-spacing: -.3px; display: flex; align-items: center; gap: 10px; }
.stage-head h1 .pill { font-family: "Segoe UI", system-ui, sans-serif; font-size: calc(12px * var(--fs)); }
#home-join { border-radius: 999px; padding: 10px 18px; }
.people { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.person { flex: none; width: 86px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: default; }
.person .ring { position: relative; padding: 3px; border-radius: 50%; background: var(--bg3); }
.person.voice .ring { background: color-mix(in srgb, var(--accent) 55%, var(--bg3)); }
.person.speaking .ring { background: var(--speak); box-shadow: 0 0 0 3px color-mix(in srgb, var(--speak) 35%, transparent); }
.person .avatar { width: 60px; height: 60px; font-size: calc(24px * var(--fs)); box-shadow: 0 0 0 3px var(--bg); }
.person .badge-ic { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-size: calc(12px * var(--fs)); background: var(--bg2); border: 2px solid var(--bg); }
.person .pname { font-size: calc(13px * var(--fs)); font-weight: 700; max-width: 86px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .pstat { font-size: calc(11px * var(--fs)); color: var(--muted); max-width: calc(86px * var(--fs)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person.voice .pstat { color: var(--accent); }
.person.voice { cursor: pointer; }
.hcard { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.hcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hcard-head h2 { margin: 0; font-family: var(--f-title); font-size: calc(20px * var(--fs)); }
.board-body { white-space: pre-wrap; line-height: 1.5; }
.board-body a { color: var(--link); }
.board-foot { margin-top: 8px; font-size: calc(12px * var(--fs)); color: var(--muted); }
.board-form { display: grid; gap: 8px; margin-top: 12px; }
.board-form textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; resize: vertical; }
#home-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.room-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.room-card:hover { border-color: var(--accent); }
.room-card .ric { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: calc(20px * var(--fs)); background: color-mix(in srgb, var(--accent) 18%, var(--bg3)); flex: none; }
.room-card .rinfo { min-width: 0; flex: 1; }
.room-card .rinfo b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-card .who { display: flex; margin-top: 2px; }
.room-card .who .avatar { width: 24px; height: 24px; font-size: calc(10px * var(--fs)); margin-right: -6px; box-shadow: 0 0 0 2px var(--bg); }
.room-card small { color: var(--muted); }
#home-rooms .empty { color: var(--muted); }
/* ---- Cartões do bot e conquistas ---- */
.msg .card { border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--bg2));
  border-radius: 8px; padding: 8px 12px; margin-top: 3px; display: inline-block; max-width: 100%; }
.avatar.bot-img { background: var(--bg3); }
.avatar.bot-img img { width: 100%; height: 100%; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ach { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg); }
.ach .ic { font-size: calc(22px * var(--fs)); }
.ach.locked { opacity: .45; filter: grayscale(1); }
.ach b { display: block; font-size: calc(13px * var(--fs)); } .ach small { color: var(--muted); font-size: calc(11px * var(--fs)); }



/* ---- Player sem vídeo (vídeo escondido, mas ativo) ---- */
#music.video-hidden { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); }
#music.video-hidden #yt-wrap { position: fixed; right: 0; bottom: 0; width: 200px; height: 200px; opacity: 0; pointer-events: none; z-index: -1; }
#m-video.on { color: var(--accent); }
.mp-sub .unlock { color: var(--accent); font-weight: 600; }
@media (max-width: 1100px) { #music.video-hidden { grid-template-columns: minmax(0, 1fr); } }

/* ---- Controle deslizante próprio (o padrão do navegador não preenchia até o fim) ---- */
input[type=range].range { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 4px; outline: none; cursor: pointer; padding: 0; border: 0;
  background: linear-gradient(to right, var(--accent) 0 var(--v, 50%), var(--bg3) var(--v, 50%) 100%); }
input[type=range].range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 2px solid var(--accent); box-shadow: 0 1px 4px #0006; }
input[type=range].range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 2px solid var(--accent); }
input[type=range].range::-moz-range-track { background: transparent; }
input[type=range].range:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent); }

/* ---- Lista de canais no admin ---- */
#admin-channels .ch-sec { border: 0; padding: 12px 2px 4px; font-size: calc(11px * var(--fs)); text-transform: uppercase; letter-spacing: .6px; color: var(--accent); justify-content: flex-start; }
#admin-channels .ch-row { align-items: center; gap: 8px; padding: 5px 2px; }
#admin-channels .ch-view { display: flex; align-items: center; gap: 8px; min-width: 0; }
#admin-channels .ch-view b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#admin-channels .ch-actions { display: flex; gap: 2px; flex: none; }
#admin-channels .ch-actions button:disabled { opacity: .25; cursor: default; }
#admin-channels .ch-edit { display: flex; gap: 8px; align-items: center; width: 100%; flex-wrap: wrap; }
#admin-channels .ch-edit input { flex: 1; min-width: 160px; }
#admin-channels .editing { background: var(--hover); border-radius: 8px; padding: 8px; }

/* ---- Editar / apagar mensagens ---- */
.msg { position: relative; grid-template-columns: calc(38px * var(--fs)) 1fr; border-radius: 8px; padding: 6px 8px; margin: 0 -8px; }
.msg:hover { background: color-mix(in srgb, var(--hover) 55%, transparent); }
.msg-main { min-width: 0; }
.msg-actions { position: absolute; right: 10px; top: -12px; display: none; gap: 2px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; box-shadow: 0 4px 12px #0005; }
.msg:hover .msg-actions { display: flex; }
.msg.editing .msg-actions { display: none; }
.msg-actions .icon-btn { font-size: calc(14px * var(--fs)); padding: 3px 6px; }
.msg .edited { font-size: calc(11px * var(--fs)); color: var(--muted); }
.msg.editing { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.edit-box { width: 100%; resize: none; overflow: hidden; font: inherit; color: var(--text); background: var(--bg3); border: 1px solid var(--accent); border-radius: 8px; padding: 8px 10px; }
.edit-hint { font-size: calc(11px * var(--fs)); color: var(--muted); margin-top: 3px; }
.msg.editing .body { white-space: normal; }
.edit-box { display: block; outline: none; }
.edit-box:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---- Microfone / som desligado ao lado do nome ---- */
.vstate { display: inline-flex; align-items: center; color: var(--danger); margin-left: 4px; vertical-align: middle; }
.vstate .st-ic { width: calc(14px * var(--fs)); height: calc(14px * var(--fs)); }
.vstate.on { color: var(--muted); }
.vmember .vstate { margin-left: auto; padding-right: 6px; }
.tile .flags .vstate .st-ic { width: calc(16px * var(--fs)); height: calc(16px * var(--fs)); }
.person .pstat .vstate .st-ic { width: calc(12px * var(--fs)); height: calc(12px * var(--fs)); }

/* =========================================================
   Recursos estilo Discord/TeamSpeak
   ========================================================= */
/* status */
.sdot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg2); background: #5cc46e; }
.sdot.online { background: #5cc46e; } .sdot.away { background: #f2c14e; } .sdot.dnd { background: var(--danger); } .sdot.invisible, .sdot.offline { background: #7d7d7d; }
.me-status-btn { position: relative; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
.me-status-btn .sdot { border-color: var(--rail); }
.me-names { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.me-names small { font-size: calc(11px * var(--fs)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-names .me-ver { font-size: calc(9.5px * var(--fs)); opacity: .55; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.me-names .me-ver:empty { display: none; }
.me-names .me-ver.upd { opacity: .9; color: var(--accent, #d9a441); }
.person .ring { position: relative; }
.person .ring .sdot { right: 2px; bottom: 2px; width: 14px; height: 14px; border-color: var(--bg); }
.person .ring .badge-ic { right: auto; left: -2px; }
.person.st-away .avatar, .person.st-invisible .avatar { opacity: .75; }

/* barra lateral: não lidas, menções, DMs, cadeado */
.ch .cname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch.unread { color: var(--text); font-weight: 700; }
.ch.unread::before { content: ""; position: absolute; left: -8px; width: 4px; height: 8px; border-radius: 0 4px 4px 0; background: var(--text); }
.ch { position: relative; }
.mbadge { background: var(--danger); color: #fff; font-size: calc(11px * var(--fs)); font-weight: 700; border-radius: 9px; padding: 0 6px; min-width: 18px; text-align: center; }
.ch .lock { font-size: calc(11px * var(--fs)); opacity: .8; } .ch .limit { font-size: calc(11px * var(--fs)); color: var(--muted); background: var(--bg3); border-radius: 6px; padding: 0 5px; }
.dm-section { padding-top: 6px; }
.dm-title { justify-content: space-between; cursor: default; }
.dm-title .icon-btn { font-size: calc(14px * var(--fs)); padding: 0 6px; }
.dm .dm-av { position: relative; display: inline-flex; }
.dm .dm-av .sdot { width: 9px; height: 9px; right: -2px; bottom: -2px; }
.dm-empty { padding: 4px 8px; list-style: none; }
.vmember { cursor: context-menu; }

/* cabeçalho */
#main-header { justify-content: flex-start; }
#pins-btn { margin-left: auto; padding: 5px 10px; font-size: calc(13px * var(--fs)); }
.ptt-badge { margin-left: 10px; font-size: calc(12px * var(--fs)); padding: 2px 8px; border-radius: 10px; background: var(--bg3); color: var(--muted); }
.ptt-badge.live { background: var(--speak); color: var(--accent-ink); }
#main-header .avatar.sm { vertical-align: middle; }

/* mensagens: resposta, menção, imagem, reações, fixada */
.msg.has-reply { grid-template-rows: auto auto; }
.reply-ref { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: calc(12px * var(--fs)); color: var(--muted); margin: 0 0 2px 20px; cursor: pointer; white-space: nowrap; overflow: hidden; }
.reply-ref .muted { overflow: hidden; text-overflow: ellipsis; }
.reply-ref:hover { color: var(--text); }
.avatar.xs { width: calc(16px * var(--fs)); height: calc(16px * var(--fs)); font-size: calc(9px * var(--fs)); }
.msg.mentioned { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.mention { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--link); border-radius: 4px; padding: 0 3px; font-weight: 600; cursor: pointer; }
.mention.me { background: color-mix(in srgb, var(--accent) 38%, transparent); color: var(--text); }
.msg .attach { display: block; max-width: min(420px, 100%); max-height: 320px; border-radius: 10px; margin-top: 6px; cursor: zoom-in; border: 1px solid var(--line); }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.react { background: var(--bg3); border: 1px solid transparent; border-radius: 8px; padding: 1px 7px; font-size: calc(13px * var(--fs)); cursor: pointer; }
.react b { font-size: calc(12px * var(--fs)); } .react.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--bg3)); }
.react.add { opacity: 0; } .msg:hover .react.add { opacity: 1; }
.msg .pinned { font-size: calc(11px * var(--fs)); }
.msg.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 40% { background: color-mix(in srgb, var(--accent) 28%, transparent); } 100% { background: transparent; } }

/* compositor */
#composer { position: relative; display: flex; gap: 8px; align-items: center; }
#composer input { flex: 1; }
.attach-btn { cursor: pointer; font-size: calc(18px * var(--fs)); padding: 8px; border-radius: 8px; background: var(--bg3); line-height: 1; }
.attach-btn:hover { background: var(--hover); }
.reply-bar { display: flex; justify-content: space-between; align-items: center; margin: 0 18px -6px; padding: 6px 12px; font-size: calc(13px * var(--fs)); background: var(--bg2); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; }
.mention-pop { position: absolute; left: 50px; bottom: 100%; margin-bottom: 6px; width: 320px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 4px; box-shadow: var(--glow); z-index: 5; }
.mention-pop button { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 6px 8px; border-radius: 6px; text-align: left; }
.mention-pop button.sel, .mention-pop button:hover { background: var(--active); }
#text-view.drop { outline: 3px dashed var(--accent); outline-offset: -8px; }

/* fixadas */
.pins-pop { position: fixed; z-index: 25; width: 380px; max-height: 60vh; overflow-y: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--glow); }
.pin-item { padding: 8px; border-radius: 8px; cursor: pointer; font-size: calc(13px * var(--fs)); border-bottom: 1px solid var(--line); }
.pin-item:hover { background: var(--hover); }
.pin-item .meta { font-size: calc(11px * var(--fs)); color: var(--muted); }

/* menu de contexto */
.ctx { position: fixed; z-index: 40; min-width: 230px; max-width: 300px; max-height: 80vh; overflow-y: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--glow); }
.ctx button:not(.btn) { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 7px 9px; border-radius: 7px; text-align: left; font-size: calc(13px * var(--fs)); }
.ctx button:not(.btn):hover, .ctx button.sel { background: var(--active); }
.ctx button small { margin-left: auto; font-size: calc(11px * var(--fs)); }
.ctx button .sdot { position: static; border: 0; }
.ctx-title { font-size: calc(11px * var(--fs)); text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 6px 9px 3px; }
.ctx-sep { height: 1px; background: var(--line); margin: 5px 0; }
.ctx-row { display: flex; align-items: center; gap: 8px; padding: 5px 9px; }
.ctx-row input[type=text], .ctx-row input:not([type]) { flex: 1; }
.ctx-row .range { flex: 1; }
.ctx-head { display: flex; gap: 10px; align-items: center; padding: 6px 8px 8px; }
.ctx-head .avatar { width: 40px; height: 40px; font-size: calc(16px * var(--fs)); }

/* avisos */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.toast { background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 10px 12px; font-size: calc(13px * var(--fs)); box-shadow: var(--glow); animation: tin .2s ease-out; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* visualizador de imagem */
.lightbox { position: fixed; inset: 0; z-index: 60; background: #000c; display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

/* voz: câmera, silenciado pelo admin */
.tile { position: relative; overflow: hidden; }
.tile .cam { display: none; }
.tile.has-cam { width: calc(260px * var(--fs)); height: calc(160px * var(--fs)); padding: 0; }
.tile.has-cam .cam { display: block; position: absolute; inset: 0; }
.tile.has-cam .cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.has-cam > .avatar { display: none; }
.tile.has-cam .name, .tile.has-cam .flags { position: absolute; z-index: 1; background: #000a; color: #fff; padding: 1px 7px; border-radius: 6px; }
.tile.has-cam .name { left: 8px; bottom: 8px; } .tile.has-cam .flags { right: 8px; bottom: 8px; }
.ctl.locked { opacity: .5; cursor: not-allowed; }

/* Game Hub */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.game { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.game .gic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.game .ginfo { flex: 1; min-width: 0; } .game .ginfo b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game small, .event small { color: var(--muted); }
.game .who, .event .who { display: flex; align-items: center; }
.game .who .avatar, .event .who .avatar { width: 24px; height: 24px; font-size: calc(10px * var(--fs)); margin-right: -6px; box-shadow: 0 0 0 2px var(--bg); }

/* jogatinas */
.ev-form { display: grid; gap: 8px; margin-bottom: 12px; }
.ev-form label { display: grid; gap: 3px; color: var(--muted); }
.event { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.event:first-child { border-top: 0; }
.edate { width: 48px; flex: none; text-align: center; background: var(--bg3); border-radius: 10px; padding: 4px 0; line-height: 1.1; }
.edate b { display: block; font-size: calc(20px * var(--fs)); } .edate small { text-transform: uppercase; font-size: calc(11px * var(--fs)); }
.event.live .edate { background: var(--accent); color: var(--accent-ink); } .event.live .edate small { color: inherit; }
.einfo { flex: 1; min-width: 0; display: grid; gap: 3px; }
.einfo .who .small { margin-left: 12px; }
.eact { display: flex; gap: 6px; align-items: center; flex: none; }
.pill.live { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
#m-queue li.empty { display: block; }

/* ---- volume por pessoa, opções de mudo e volume das transmissões ---- */
.ctl.narrow { flex: 0 0 26px; font-size: calc(12px * var(--fs)); }
.tile-vol { position: absolute; top: 5px; right: 5px; z-index: 2; background: #0008; color: #fff; border: 0; border-radius: 6px; padding: 2px 5px; font-size: calc(13px * var(--fs)); cursor: pointer; opacity: .55; display: flex; align-items: center; gap: 3px; }
.tile-vol small { font-size: calc(10px * var(--fs)); }
.tile:hover .tile-vol, .tile-vol.off, .tile-vol:has(small) { opacity: 1; }
.tile-vol.off { background: color-mix(in srgb, var(--danger) 60%, #000); }
.vm-vol { margin-left: 4px; background: none; border: 0; padding: 0 4px; font-size: calc(12px * var(--fs)); cursor: pointer; opacity: 0; color: inherit; }
.vmember:hover .vm-vol { opacity: 1; }
.ctx-row.presets { gap: 6px; }
.ctx-row.presets button { flex: 1; padding: 3px 0; text-align: center; border: 1px solid var(--line); border-radius: 6px; }
#ctx button.mo { display: flex; align-items: center; gap: 6px; }
.mo-box { width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 4px; display: inline-grid; place-items: center; font-size: calc(11px * var(--fs)); flex: 0 0 16px; }
.mo.checked .mo-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.mo-hint { margin-left: auto; padding-left: 10px; }
#ctx { min-width: 250px; }
.screen .scr-ctl { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; background: #000a; padding: 4px 6px; border-radius: 8px; opacity: 0; transition: opacity .15s; }
.screen:hover .scr-ctl, .screen .scr-ctl:focus-within { opacity: 1; }
.screen .scr-ctl .btn { position: static; padding: 3px 7px; }
.screen .scr-ctl .scr-mute.off { background: color-mix(in srgb, var(--danger) 50%, var(--bg3)); }
.screen .scr-vol { width: 110px; }
.screen .fs { position: static; }
.screen:fullscreen video { max-height: 100vh; height: 100%; }

/* ---- comandos ---- */
.msg.ephemeral { background: color-mix(in srgb, var(--accent) 6%, transparent); border-left: 3px solid var(--accent); }
.eph-note { font-size: calc(11px * var(--fs)); color: var(--muted); margin-top: 3px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: inherit; text-decoration: underline; }
.mention-pop.cmds { width: 460px; }
.mention-pop button.cmd { flex-wrap: wrap; gap: 4px 6px; }
.mention-pop button.cmd .cdesc { flex-basis: 100%; }
.card { white-space: pre-wrap; }

/* ---- volume e sensibilidade do microfone ---- */
.meter { position: relative; }
#st-gate-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; box-shadow: 0 0 0 1px #000a; transition: left .1s; }
#st-meter.gated { filter: grayscale(1) brightness(.7); }
.range:disabled { opacity: .45; }
.ctx-row.presets button { font-size: calc(12px * var(--fs)); }

/* ---- transmissão em tela cheia: ocupa a tela toda ---- */
.screen:fullscreen, .screen.is-fs { display: flex !important; align-items: center; justify-content: center; background: #000; border: 0; border-radius: 0; width: 100vw; height: 100vh; }
.screen:fullscreen video, .screen.is-fs video { width: 100% !important; height: 100% !important; max-height: none !important; max-width: none !important; object-fit: contain; }
.screen:-webkit-full-screen video { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: contain; }
.screen video { cursor: zoom-in; } .screen.is-fs video { cursor: zoom-out; }
.screen.is-fs .label, .screen.is-fs .scr-ctl { z-index: 2; }
/* ---- escolha de tamanho ---- */
.size-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.size-pick button { background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }
.size-pick button.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, var(--bg3)); }

.composer-locked { margin: 10px 16px 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; background: var(--bg2); }

/* ---- cartão "Assistir transmissão" e ping ---- */
.screen.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: calc(150px * var(--fs)); background: var(--bg2); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); }
.screen.ph .avatar { width: calc(48px * var(--fs)); height: calc(48px * var(--fs)); }
.vs-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ping { font-size: calc(11px * var(--fs)); color: var(--muted); white-space: nowrap; cursor: help; }
.ping.good { color: #5fc46a; } .ping.ok { color: #e8b84a; } .ping.bad { color: var(--danger); }
.ping-tcp { background: color-mix(in srgb, var(--danger) 30%, transparent); color: #fff; border-radius: 4px; padding: 0 4px; margin-left: 2px; }
.screen .scr-ctl .scr-stop { font-weight: 700; }

.ping-chip { font-size: calc(10px * var(--fs)); padding: 0 5px; border-radius: 6px; background: var(--bg3); color: var(--muted); white-space: nowrap; }
.ping-chip.good { color: #5fc46a; } .ping-chip.ok { color: #e8b84a; } .ping-chip.bad { color: var(--danger); }
.vmember .ping-chip { margin-left: auto; }
.vmember .ping-chip + .vstate, .vmember .vstate ~ .ping-chip { margin-left: 4px; }
.tile .ping-chip { position: absolute; top: 5px; left: 5px; background: #0007; }

.screen .scr-ctl .scr-q { padding: 3px 6px; font-size: calc(12px * var(--fs)); background: var(--bg3); }
#screen-local .scr-ctl { opacity: 1; }

.screen .diag { position: absolute; left: 8px; top: 8px; z-index: 3; max-width: calc(100% - 16px); background: #000c; color: #9fe; font: 11px/1.4 ui-monospace, Consolas, monospace; padding: 4px 7px; border-radius: 6px; pointer-events: none; }

/* ---- player de música redimensionável ---- */
#music { position: relative; }
#music-grip { position: absolute; left: 0; right: 0; top: -5px; height: 10px; cursor: ns-resize; z-index: 4; display: flex; justify-content: center; align-items: center; touch-action: none; }
#music-grip i { width: 46px; height: 4px; border-radius: 4px; background: var(--line); transition: background .15s, width .15s; }
#music-grip:hover i, #music.resizing #music-grip i { background: var(--accent); width: 70px; }
#music.resizing { user-select: none; }
#music.sized { align-items: stretch; overflow: hidden; }
#music.sized .mp-main { align-self: center; }
#music.sized .mp-side { min-height: 0; overflow: hidden; }
#music.sized #m-queue { max-height: none; flex: 1; min-height: 0; align-content: start; }

/* ---- botão sair: porta medieval que abre ---- */
.door-btn { display: grid; place-items: center; }
.door-btn:hover { border-color: color-mix(in srgb, var(--danger) 60%, var(--line)); background: color-mix(in srgb, var(--danger) 14%, var(--bg3)); }
.door { position: relative; display: block; width: calc(18px * var(--fs)); height: calc(21px * var(--fs)); perspective: 70px;
  border: 2px solid #8d8577; border-bottom: 0; border-radius: 10px 10px 1px 1px; background: #2a2622;
  box-shadow: inset 0 0 0 1px #0006, 0 1px 0 #5c564d; }
/* lado de fora: luz quente que aparece quando a porta abre */
.door-in { position: absolute; inset: 0; border-radius: 8px 8px 0 0; background: radial-gradient(ellipse at 50% 80%, #fff1c2 0%, #ffbf5a 35%, #b8641a 65%, #2a1608 100%); opacity: .35; transition: opacity .45s; }
/* folha da porta: tábuas, duas faixas de ferro e a argola */
.door-leaf { position: absolute; inset: 0; border-radius: 8px 8px 0 0; transform-origin: left center; transition: transform .5s cubic-bezier(.3, .8, .25, 1);
  background:
    linear-gradient(transparent 26%, #2b2724 26% 33%, transparent 33% 68%, #2b2724 68% 75%, transparent 75%),
    repeating-linear-gradient(90deg, #8a5428 0 3.5px, #6b3e1b 3.5px 4.5px);
  box-shadow: inset 0 0 0 1px #3a220e; backface-visibility: hidden; }
.door-leaf i { position: absolute; right: 2px; top: 46%; width: 4px; height: 4px; border: 1.2px solid #c9b48a; border-radius: 50%; }
.door-btn:hover .door-leaf { transform: rotateY(-55deg); }
.door-btn:hover .door-in { opacity: .8; }
.door-btn.opening .door-leaf { transform: rotateY(-105deg); transition-duration: .45s; }
.door-btn.opening .door-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .door-leaf, .door-in { transition: none; } }

/* ---- vídeo acompanha o tamanho do player / modo teatro ---- */
/* player grande com vídeo: vídeo em cima (16:9, cresce com o painel), controles embaixo, fila na lateral */
#voice-view.theater #music:not(.video-hidden) { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); grid-template-rows: minmax(0, 1fr) auto; row-gap: 10px; }
#voice-view.theater #music:not(.video-hidden) #yt-wrap { grid-column: 1; grid-row: 1; height: 100%; width: auto; max-width: 100%; aspect-ratio: 16 / 9; min-height: 200px; justify-self: center; align-self: stretch; }
#voice-view.theater #music:not(.video-hidden) .mp-main { grid-column: 1; grid-row: 2; align-self: end; }
#voice-view.theater #music:not(.video-hidden) .mp-side { grid-column: 2; grid-row: 1 / span 2; }
#m-theater.on { color: var(--accent); }
#voice-view.theater #stage { flex: 0 0 auto; max-height: 22%; overflow: auto; }
#voice-view.theater #tiles .tile { transform: scale(.8); transform-origin: top left; margin: 0 -16px -12px 0; }
#yt-wrap:fullscreen { width: 100vw !important; height: 100vh !important; max-width: none; border-radius: 0; }

/* nunca cortar os controles: o painel não fica menor que o próprio conteúdo */
#music.sized #yt-wrap { align-self: start; }
#voice-view.theater #music:not(.video-hidden) #yt-wrap { align-self: stretch; }

/* ---- ocultar participantes sem vídeo ---- */
#novid-btn { margin-left: auto; padding: 5px 10px; font-size: calc(13px * var(--fs)); }
#novid-btn.on { border-color: var(--accent); color: var(--accent); }
#voice-view.hide-novid #tiles .tile:not(.has-cam) { display: none; }
/* a sala nunca empurra o player para fora da tela */
#app { grid-template-rows: minmax(0, 1fr); }
#main { overflow: hidden; }
#music { flex-shrink: 0; }

/* ---- transmissões ocupam o espaço da sala (acima do player), em vez de altura fixa ---- */
#screens:not(:empty) { flex: 1 1 auto; min-height: calc(220px * var(--fs)); grid-auto-rows: minmax(0, 1fr); }
#screens .screen:not(.ph) { min-height: 0; display: flex; }
#screens .screen video { flex: 1; width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: contain; }
#screens .screen.ph { max-height: calc(220px * var(--fs)); align-self: start; }
/* sua própria tela: prévia escondida (evita o espelho infinito) */
.screen.own-hidden { max-height: calc(160px * var(--fs)); align-self: start; }
.screen.own-hidden video, .screen.own-hidden .scr-ctl .own-hide, .screen.own-hidden .diag { display: none; }
.screen .own-cover { display: none; }
.screen.own-hidden .own-cover { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; text-align: center; background: var(--bg2); color: var(--text); min-height: calc(140px * var(--fs)); }
.screen.own-hidden .own-cover small { color: var(--muted); max-width: 340px; }
.screen.own-hidden .label { display: none; }
/* ---- destaque de uma transmissão: a escolhida ocupa o espaço, as outras numa faixa embaixo ---- */
#screens.has-focus { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(200px * var(--fs)), 1fr)); grid-template-rows: minmax(0, 1fr); grid-auto-rows: auto; }
#screens.has-focus .screen.focus { grid-column: 1 / -1; grid-row: 1; max-height: none; align-self: stretch; }
#screens.has-focus .screen:not(.focus) { cursor: pointer; max-height: calc(130px * var(--fs)); }
#screens.has-focus .screen:not(.focus) video { height: calc(112px * var(--fs)); flex: none; object-fit: cover; cursor: pointer; }
#screens.has-focus .screen.ph:not(.focus) { min-height: calc(112px * var(--fs)); padding: 6px; gap: 4px; }
#screens.has-focus .screen:not(.focus) .scr-ctl .scr-vol, #screens.has-focus .screen:not(.focus) .scr-ctl .scr-q,
#screens.has-focus .screen:not(.focus) .scr-ctl .scr-diag, #screens.has-focus .screen:not(.focus) .scr-ctl .scr-mute, #screens.has-focus .screen:not(.focus) .diag,
#screens.has-focus .screen:not(.focus) .own-cover small { display: none; }
#screens.has-focus .screen:not(.focus):hover { outline: 2px solid var(--accent); }

#voice-hint:empty { display: none; }

/* ---- botão transmitir: espelho mágico ---- */
.mirror-btn { display: grid; place-items: center; }
.mirror { width: calc(20px * var(--fs)); height: calc(22px * var(--fs)); overflow: visible; filter: drop-shadow(0 1px 1px #0008); }
.mirror .m-glow { opacity: 0; transition: opacity .35s; }
.mirror .m-shine { transform-box: view-box; transition: transform .6s; }
.mirror-btn:hover .m-shine { animation: mShine 1.1s ease-in-out; }
.mirror-btn.on .m-glow { opacity: .95; animation: mPulse 2.4s ease-in-out infinite; }
.mirror-btn.on .m-shine { animation: mShine 2.4s ease-in-out infinite; }
.mirror-btn.on .mirror { filter: drop-shadow(0 0 5px #8cc8ff) drop-shadow(0 1px 1px #0008); }
@keyframes mShine { 0% { transform: translateX(-6px) rotate(25deg); } 60%, 100% { transform: translateX(16px) rotate(25deg); } }
@keyframes mPulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mirror .m-shine, .mirror .m-glow { animation: none !important; } }

/* ---- microfone: caneca de hidromel (cheia = ligado, virada = mudo) ---- */
.mug-btn, .scroll-btn { display: grid; place-items: center; }
.mug-ic { width: calc(22px * var(--fs)); height: calc(22px * var(--fs)); overflow: visible; filter: drop-shadow(0 1px 1px #0008); }
.mug-ic .mug { transform-box: view-box; transform-origin: 16px 21.5px; transition: transform .45s cubic-bezier(.4, 1.6, .5, 1); }
.mug-ic .mug-foam { transition: opacity .25s, transform .3s; transform-box: view-box; transform-origin: 10px 8px; }
.mug-ic .mug-spill { opacity: 0; transform-box: view-box; transform-origin: 16px 22px; transform: scaleX(.2); transition: opacity .3s .25s, transform .4s .2s; }
.mug-btn.off .mug { transform: rotate(78deg) translate(-3px, 3px) scale(.86); }
.mug-btn.off .mug-foam { opacity: 0; transform: scale(.4); }
.mug-btn.off .mug-spill { opacity: .9; transform: scaleX(1); }
.mug-btn:not(.off):hover .mug { transform: rotate(-12deg); }
.mug-btn:not(.off):hover .mug-foam { transform: scale(1.12); }
/* ---- opções de áudio: pergaminho que desenrola ---- */
.scroll-ic { width: calc(13px * var(--fs)); height: calc(22px * var(--fs)); overflow: visible; filter: drop-shadow(0 1px 1px #0008); }
.scroll-ic .sc-paper, .scroll-ic .sc-lines { transform-box: view-box; transform-origin: 7px 4px; transform: scaleY(.08); transition: transform .4s ease; }
.scroll-ic .sc-lines { opacity: 0; transition: transform .4s ease, opacity .2s; }
.scroll-ic .sc-bottom { transform: translateY(-14.6px); transition: transform .4s ease; }
.scroll-btn:hover .sc-paper { transform: scaleY(.3); } .scroll-btn:hover .sc-bottom { transform: translateY(-10.5px); }
.scroll-btn.open .sc-paper, .scroll-btn.open .sc-lines { transform: scaleY(1); } .scroll-btn.open .sc-lines { opacity: 1; transition-delay: .15s; }
.scroll-btn.open .sc-bottom { transform: none; }
@media (prefers-reduced-motion: reduce) { .mug-ic *, .scroll-ic * { transition: none !important; } }

/* ---- ensurdecer: corneta acústica de anão (rolha = ensurdecido) ---- */
.horn-btn, .eye-btn { display: grid; place-items: center; }
.horn-ic { width: calc(25px * var(--fs)); height: calc(22px * var(--fs)); overflow: visible; filter: drop-shadow(0 1px 1px #0008); }
.horn-ic .h-cork { opacity: 0; transform: translateX(6px); transition: transform .35s cubic-bezier(.4, 1.6, .5, 1), opacity .2s; }
.horn-ic .h-waves { opacity: 0; transform: translateX(2px); transition: opacity .25s, transform .3s; }
.horn-btn:not(.off):hover .h-waves { opacity: 1; transform: none; animation: hWave 1.2s ease-in-out infinite; }
.horn-btn.off .h-cork { opacity: 1; transform: none; }
@keyframes hWave { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* ---- câmera: olho de dragão (fechado = desligada, aberto = ligada) ---- */
.eye-ic { width: calc(26px * var(--fs)); height: calc(20px * var(--fs)); overflow: visible; filter: drop-shadow(0 1px 1px #0008); }
.eye-ic .e-lid, .eye-ic .e-lid-line { transform-box: view-box; transform-origin: 13px -1px; transition: transform .45s cubic-bezier(.3, .8, .3, 1); }
.eye-ic .e-pupil { transform-box: view-box; transform-origin: 13px 10px; transition: transform .4s; }
.eye-btn:not(.on):hover .e-lid, .eye-btn:not(.on):hover .e-lid-line { transform: scaleY(.62); }
.eye-btn.on .e-lid, .eye-btn.on .e-lid-line { transform: scaleY(0.05); }
.eye-btn.on .e-pupil { animation: ePupil 4s ease-in-out infinite; }
.eye-btn.on .eye-ic { filter: drop-shadow(0 0 5px #ffb23a) drop-shadow(0 1px 1px #0008); }
@keyframes ePupil { 0%, 70%, 100% { transform: scaleX(1); } 78%, 90% { transform: scaleX(.45); } }
@media (prefers-reduced-motion: reduce) { .horn-ic *, .eye-ic * { animation: none !important; transition: none !important; } }

/* ---- ping: vela (a cor da chama acompanha a latência) ---- */
.ping { display: inline-flex; align-items: center; gap: 4px; }
.candle { width: calc(11px * var(--fs)); height: calc(18px * var(--fs)); overflow: visible; --flame: #9a8a70; --core: #fff6d8; }
.ping.good .candle { --flame: #4fd06a; --core: #e8ffe9; }
.ping.ok .candle { --flame: #f2b53a; --core: #fff4cf; }
.ping.bad .candle { --flame: #f0503c; --core: #ffe1d6; }
.candle .c-flame { fill: var(--flame); transform-box: fill-box; transform-origin: 50% 100%; animation: cFlick 1.6s ease-in-out infinite; }
.candle .c-core { fill: var(--core); transform-box: fill-box; transform-origin: 50% 100%; animation: cFlick 1.1s ease-in-out infinite reverse; }
.candle .c-glow { fill: var(--flame); opacity: .22; filter: blur(1.5px); animation: cGlow 1.6s ease-in-out infinite; }
.ping.bad .candle .c-flame { animation-duration: .7s; }
@keyframes cFlick { 0%, 100% { transform: scale(1, 1) skewX(0); } 30% { transform: scale(.94, 1.08) skewX(-4deg); } 60% { transform: scale(1.04, .95) skewX(3deg); } }
@keyframes cGlow { 0%, 100% { opacity: .18; } 50% { opacity: .32; } }
@media (prefers-reduced-motion: reduce) { .candle * { animation: none !important; } }

/* ---- download do app na tela de login ---- */
.dl-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--bg2)); color: var(--text); text-decoration: none; transition: background .15s, transform .15s; }
.dl-card:hover { background: color-mix(in srgb, var(--accent) 16%, var(--bg2)); transform: translateY(-1px); }
.dl-card .dl-ic { font-size: calc(24px * var(--fs)); }
.dl-card small { display: block; color: var(--muted); font-size: calc(12px * var(--fs)); margin-top: 2px; }

/* ---- níveis, ficha ---- */
.lvl { display: inline-block; font-size: calc(10px * var(--fs)); font-weight: 700; padding: 0 5px; border-radius: 5px; margin-left: 4px; vertical-align: 1px;
  background: color-mix(in srgb, var(--accent) 18%, var(--bg3)); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); cursor: help; }
.lvl.lv1 { background: #2d4a2a; color: #9be38f; border-color: #4e7a47; } .lvl.lv2 { background: #23405a; color: #8fcbff; border-color: #3d6c94; }
.lvl.lv3 { background: #4a2a5a; color: #e2a6ff; border-color: #774a94; } .lvl.lv4, .lvl.lv5, .lvl.lv6 { background: #5a4518; color: #ffd36b; border-color: #a07b2a; }
.ctitle { margin: 0 6px 0 5px; font-size: calc(11px * var(--fs)); color: var(--muted); font-style: italic; font-weight: 400; }
.sheet { padding: 6px 9px 8px; display: grid; gap: 5px; }
.sheet-l { display: flex; align-items: baseline; gap: 4px; font-size: calc(13px * var(--fs)); }
.xpbar { height: 6px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #b8641a, var(--accent), #ffd27a); }
#st-race, #st-class { flex: 1; }
/* ---- soundboard ---- */
#sb-btn { margin-left: auto; padding: 5px 10px; font-size: calc(13px * var(--fs)); }
#sb-btn:not(.hidden) + #novid-btn { margin-left: 8px; }
.sb-grid { display: grid; grid-template-columns: repeat(4, calc(64px * var(--fs))); gap: 5px; padding: 4px 8px 8px; }
#ctx .sb { position: relative; display: grid; justify-items: center; gap: 2px; padding: 7px 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg3); text-align: center; transition: transform .1s, background .15s; }
#ctx .sb span { font-size: calc(20px * var(--fs)); line-height: 1; }
#ctx .sb small { font-size: calc(10px * var(--fs)); color: var(--muted); max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ctx .sb:hover { background: color-mix(in srgb, var(--accent) 18%, var(--bg3)); }
#ctx .sb.hit { transform: scale(.92); background: color-mix(in srgb, var(--accent) 35%, var(--bg3)); }
.sb-del { position: absolute; top: 1px; right: 3px; font-style: normal; font-size: 10px; color: var(--muted); }
.sb-del:hover { color: var(--danger); }

/* ---- Landing (tela de acesso no navegador) ---- */
#auth { height: 100%; display: block; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; background: var(--bg); }
#auth .serif, .lp-hero h2, .lp-row h3, .lp-h, .menu h3, .menu h4, .sign h3, .lp-logo { font-family: var(--f-title); }
a.btn { color: var(--text); text-decoration: none; } a.btn.primary { color: var(--accent-ink); }

.lp-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px max(20px, calc((100% - 1160px) / 2));
  background: color-mix(in srgb, var(--rail) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: calc(20px * var(--fs)); color: var(--text); text-decoration: none; }
.lp-logo img { width: 32px; height: 32px; }
.lp-nav nav { display: flex; gap: 4px; flex: 1; }
.lp-nav nav a, .lp-link { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.lp-nav nav a:hover, .lp-link:hover { color: var(--text); background: var(--hover); }
.lp-nav-r { display: flex; align-items: center; gap: 8px; }

/* Hero: centralizado, com lanternas e brasas */
.lp-hero { position: relative; text-align: center; padding: 96px 20px 72px; overflow: hidden;
  background: radial-gradient(700px 380px at 50% 0, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 118px, #00000022 118px 120px), linear-gradient(180deg, var(--bg2), var(--bg)); }
.lp-kicker { display: inline-block; margin: 0; padding: 6px 14px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--link); font-size: calc(12px * var(--fs)); letter-spacing: .4px; text-transform: uppercase; }
.lp-hero h2 { margin: 22px auto 16px; font-size: calc(64px * var(--fs)); line-height: 1.02; letter-spacing: -1.5px; max-width: 900px; text-shadow: 0 4px 30px #0008; }
.lp-hero h2 span { color: var(--accent); font-style: italic; font-size: .62em; letter-spacing: -.5px; }
.lp-lead { color: var(--muted); font-size: calc(18px * var(--fs)); line-height: 1.6; max-width: 640px; margin: 0 auto 30px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lp-big { padding: 14px 26px; font-size: calc(16px * var(--fs)); border-radius: 999px; display: inline-block; transition: transform .15s, box-shadow .15s; }
.lp-big:hover { transform: translateY(-2px); }
.lp-big.primary { box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 40%, transparent); }
.lp-ghost { background: transparent; border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.lp-dl-info { margin: 12px 0 0; min-height: 1em; }
.lp-lantern { position: absolute; top: 0; width: 64px; transform-origin: 50% 0; animation: lp-swing 5s ease-in-out infinite; filter: drop-shadow(0 0 24px #ec8a2c88); }
.lp-lantern.l { left: max(24px, calc(50% - 560px)); } .lp-lantern.r { right: max(24px, calc(50% - 560px)); animation-delay: -2.5s; }
@keyframes lp-swing { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-3deg); } }
.lp-embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 8px #ff9a2e; opacity: 0; animation: lp-ember 7s linear infinite; }
.lp-embers i:nth-child(1) { left: 12%; } .lp-embers i:nth-child(2) { left: 24%; animation-delay: -1.5s; } .lp-embers i:nth-child(3) { left: 37%; animation-delay: -3s; }
.lp-embers i:nth-child(4) { left: 52%; animation-delay: -4.5s; } .lp-embers i:nth-child(5) { left: 63%; animation-delay: -.8s; } .lp-embers i:nth-child(6) { left: 75%; animation-delay: -2.2s; }
.lp-embers i:nth-child(7) { left: 86%; animation-delay: -5.4s; } .lp-embers i:nth-child(8) { left: 93%; animation-delay: -3.7s; }
@keyframes lp-ember { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(30px, -520px); opacity: 0; } }

/* Viga com letreiro rolando */
.lp-beam { overflow: hidden; border-block: 3px solid #3a2616; background: linear-gradient(180deg, #6b4524, #4a2e16); box-shadow: inset 0 2px 0 #8a5a30, 0 10px 30px #0006; }
.lp-beam-track { display: flex; width: max-content; padding: 14px 0; animation: lp-marquee 144s linear infinite; font-family: var(--f-title); font-size: calc(22px * var(--fs)); color: #f6dfb8; white-space: nowrap; }
.lp-beam-track b { color: #ffb347; font-weight: 400; }
.lp-beam-track > * { margin-right: 28px; flex: none; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }


/* Seções em zigue-zague */
.lp-row { max-width: 1120px; margin: 0 auto; padding: 88px 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; scroll-margin-top: 70px; }
.lp-row.rev .lp-row-text { order: 2; }
.lp-eyebrow { display: inline-block; font-size: calc(13px * var(--fs)); font-weight: 600; color: var(--link); text-transform: uppercase; letter-spacing: .8px; }
.lp-row h3 { font-size: calc(40px * var(--fs)); line-height: 1.1; margin: 10px 0 14px; letter-spacing: -.8px; }
.lp-row p { color: var(--muted); font-size: calc(16px * var(--fs)); line-height: 1.65; margin: 0; }
.lp-row-art { display: grid; place-items: center; min-height: 360px; }

/* Mesa redonda */
.v-table { position: relative; width: 380px; height: 380px; }
.v-table::before { content: ""; position: absolute; inset: 95px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #9a6234, #6b3f1d 60%, #4a2a12); box-shadow: inset 0 0 0 6px #3a2212, inset 0 0 30px #0007, 0 20px 50px #0008; }
.v-top { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 1; font-family: var(--f-title); color: #f6dfb8; font-size: calc(20px * var(--fs)); }
.v-top small { font-family: system-ui, sans-serif; font-size: 12px; color: #e8c99a; opacity: .8; }
.v-seat { --a: 0deg; position: absolute; left: 50%; top: 50%; width: 76px; margin: -32px 0 0 -38px; display: grid; justify-items: center; gap: 4px; transform: rotate(var(--a)) translateY(-150px) rotate(calc(-1 * var(--a))); }
.v-seat i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent2); color: #fff; font-style: normal; font-weight: 700; font-size: 18px; border: 3px solid var(--bg2); }
.v-seat em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.v-seat.s1 { --a: 0deg; } .v-seat.s2 { --a: 60deg; } .v-seat.s3 { --a: 120deg; } .v-seat.s4 { --a: 180deg; } .v-seat.s5 { --a: 240deg; } .v-seat.s6 { --a: 300deg; }
.v-seat.s2 i { background: #6a7d3a; } .v-seat.s3 i { background: #4a6a8a; opacity: .7; } .v-seat.s4 i { background: #8a3a4a; } .v-seat.s5 i { background: #7a4a9a; }
.v-seat.talk i, .v-seat.talk2 i { box-shadow: 0 0 0 3px var(--speak); animation: lp-talk 1.6s ease-in-out infinite; }
.v-seat.talk2 i { animation-delay: -.8s; } .v-seat.talk em, .v-seat.talk2 em { color: var(--text); }
.v-seat.empty i { background: transparent; border: 2px dashed var(--line); color: var(--muted); }
@keyframes lp-talk { 0%, 100% { box-shadow: 0 0 0 3px var(--speak); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--speak) 35%, transparent); } }

/* Espelho mágico */
.mirror-frame { width: 100%; max-width: 480px; padding: 16px; border-radius: 48% 48% 18px 18px / 24% 24% 18px 18px;
  background: linear-gradient(135deg, #f1d27a, #c79a3c 45%, #7d5a1d); box-shadow: 0 0 0 2px #5a3d12, 0 24px 60px #0009, 0 0 60px #9fd3ff22; }
.mirror-glass { position: relative; height: 290px; overflow: hidden; border-radius: 46% 46% 10px 10px / 22% 22% 10px 10px; box-shadow: inset 0 0 0 2px #5a3d12;
  background: linear-gradient(180deg, #2a3f6a, #6a4a8a 55%, #e0864a); }
.hills { position: absolute; inset: auto 0 0; height: 45%; background: radial-gradient(120% 90% at 20% 100%, #1d2b1d 60%, transparent 61%), radial-gradient(110% 80% at 85% 100%, #24361f 60%, transparent 61%); }
.mirror-glass .live { position: absolute; top: 18%; left: 12%; z-index: 1; background: #d63a3a; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; }
.mirror-glass .q { position: absolute; top: 18%; right: 12%; z-index: 1; background: #000a; color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 5px; }
.mirror-glass .watch { position: absolute; bottom: 12px; left: 12px; z-index: 1; display: flex; align-items: center; gap: 0; background: #000a; padding: 4px 10px 4px 6px; border-radius: 999px; }
.mirror-glass .watch i { display: grid; place-items: center; width: 22px; height: 22px; margin-right: -6px; border-radius: 50%; border: 2px solid #000; background: var(--accent2); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; }
.mirror-glass .watch small { margin-left: 12px; color: #fff; font-size: 11px; }

/* Bardo (pergaminho) */
.bard { width: 100%; max-width: 440px; padding: 24px; border-radius: 6px; color: #2a1d12; transform: rotate(-1.5deg);
  background: radial-gradient(circle at 20% 10%, #f8ecd0, #e9d4a8 70%, #d9bd86); box-shadow: 0 24px 60px #0009, inset 0 0 40px #a87a3a55; }
.bard-now { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px dashed #a07a46; }
.bard-now .disc { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle, #ec8a2c 0 18%, #1a120a 19% 100%); color: #f6dfb8; font-size: 0; animation: lp-spin 4s linear infinite; flex: none;
  box-shadow: inset 0 0 0 6px #2a1d12, inset 0 0 0 7px #4a3420; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
.bard-now small { display: block; color: #7a5a30; text-transform: uppercase; font-size: 11px; letter-spacing: .6px; }
.bard-now b { display: block; font-family: var(--f-title); font-size: 19px; margin: 2px 0 8px; }
.bard-now .bar { display: block; width: 220px; max-width: 100%; height: 5px; border-radius: 3px; background: #c9a978; } .bard-now .bar u { display: block; width: 46%; height: 100%; border-radius: 3px; background: #b9631c; }
.bard ol { margin: 14px 0; padding-left: 22px; font-family: var(--f-text); } .bard li { padding: 5px 0; }
.bard li span { display: block; } .bard li em { font-family: system-ui, sans-serif; font-size: 12px; color: #7a5a30; font-style: normal; }
.bard code { display: block; background: #2a1d12; color: #f6dfb8; padding: 8px 12px; border-radius: 6px; font-size: 13px; }

/* Quadro de cortiça */
.cork { position: relative; width: 100%; max-width: 460px; height: 330px; border-radius: 10px; border: 12px solid #5e3514;
  background: radial-gradient(#b07a45 1px, transparent 1.5px) 0 0 / 9px 9px, radial-gradient(#8a5a2e 1px, transparent 1.5px) 4px 5px / 11px 11px, #a06a38; box-shadow: 0 24px 60px #0009, inset 0 0 30px #0005; }
.note { position: absolute; width: 170px; padding: 18px 14px 12px; color: #2a1d12; font-size: 14px; line-height: 1.4; box-shadow: 0 8px 18px #0006; }
.note::before { content: ""; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a7a, #b8281c); box-shadow: 0 2px 3px #0007; }
.note b { display: block; font-family: var(--f-title); font-size: 16px; } .note small { display: block; margin-top: 6px; color: #6a4a2a; font-size: 12px; }
.note.n1 { top: 22px; left: 22px; background: #f6e7b0; transform: rotate(-4deg); }
.note.n2 { top: 40px; right: 22px; background: #f5d0a8; transform: rotate(3deg); }
.note.n3 { bottom: 22px; left: 30%; background: #dfe8c4; transform: rotate(-1deg); }
.note.n2::before { background: radial-gradient(circle at 35% 35%, #9ad0ff, #2a6ab8); } .note.n3::before { background: radial-gradient(circle at 35% 35%, #ffe37a, #c4961c); }

/* Cardápio */
.lp-section { max-width: 1120px; margin: 0 auto; padding: 104px 20px 0; scroll-margin-top: 60px; }
.menu { max-width: 860px; margin: 0 auto; padding: 44px 52px; color: #2a1d12; border-radius: 4px; position: relative;
  background: radial-gradient(circle at 30% 20%, #f8ecd0, #ead6ab 65%, #d6b981); box-shadow: 0 0 0 10px #4a2e16, 0 0 0 12px #2a1a0c, 0 30px 70px #000a, inset 0 0 50px #a87a3a66; }
.menu h3 { text-align: center; margin: 0; font-size: calc(38px * var(--fs)); letter-spacing: 1px; }
.menu-sub { text-align: center; margin: 6px 0 30px; color: #7a5a30; font-style: italic; font-family: var(--f-text); }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.menu h4 { margin: 0 0 12px; font-size: 18px; color: #8a3f10; text-transform: uppercase; letter-spacing: 1.5px; border-bottom: 2px solid #8a3f10; padding-bottom: 6px; }
.menu p { display: flex; align-items: baseline; gap: 6px; margin: 0; padding: 7px 0; font-size: 15px; }
.menu p i { flex: 1; border-bottom: 2px dotted #a07a46; transform: translateY(-4px); min-width: 16px; }
.menu p em { font-family: var(--f-text); color: #8a3f10; white-space: nowrap; }

/* Segurança */
.lp-h { text-align: center; font-size: calc(40px * var(--fs)); margin: 0; letter-spacing: -.8px; }
.lp-sub { color: var(--muted); text-align: center; margin: 10px auto 34px; font-size: calc(16px * var(--fs)); }
.lp-sec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-sec article { padding: 24px 20px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.lp-sec span { font-size: 28px; } .lp-sec h4 { margin: 12px 0 6px; font-size: calc(16px * var(--fs)); } .lp-sec p { margin: 0; color: var(--muted); line-height: 1.55; font-size: calc(14px * var(--fs)); }

/* Placa final */
.lp-close { padding-bottom: 24px; }
.sign { position: relative; max-width: 760px; margin: 0 auto; text-align: center; padding: 48px 40px 36px; border-radius: 16px;
  background: repeating-linear-gradient(0deg, #5a3a1e 0 22px, #52341a 22px 24px), #5a3a1e; border: 4px solid #2e1c0c; box-shadow: inset 0 0 0 3px #7a5230, 0 30px 70px #000a; color: #f6dfb8; }
.sign::before, .sign::after { content: ""; position: absolute; top: -70px; width: 3px; height: 70px; background: #2e1c0c; } .sign::before { left: 18%; } .sign::after { right: 18%; }
.sign img { width: 64px; height: 64px; filter: drop-shadow(0 6px 14px #0008); }
.sign h3 { margin: 10px 0 10px; font-size: calc(40px * var(--fs)); }
.sign > p { color: #e8c99a; line-height: 1.6; max-width: 580px; margin: 0 auto 24px; }
.sign .lp-ghost { color: #f6dfb8; border-color: #e8c99a88; } .sign .muted { color: #d6b98a; } .lp-smart { max-width: 520px; margin: 10px auto 0 !important; line-height: 1.5; }

.lp-foot { max-width: 1120px; margin: 88px auto 0; padding: 32px 20px 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.lp-foot h5 { margin: 0 0 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.lp-foot a:not(.lp-logo) { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; } .lp-foot a:hover { color: var(--text); }
.lp-copy { grid-column: 1 / -1; }

/* Janela de login */
.lp-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lp-modal.open { opacity: 1; pointer-events: auto; }
.lp-backdrop { position: absolute; inset: 0; background: #0a0705cc; backdrop-filter: blur(4px); }
.lp-modal .auth-card { position: relative; width: 380px; max-width: 100%; box-sizing: border-box; box-shadow: var(--glow), 0 30px 80px #000c; transform: translateY(12px) scale(.98); transition: transform .2s; }
.lp-modal.open .auth-card { transform: none; }
.lp-x { position: absolute; top: 12px; right: 12px; }
.brand { display: flex; align-items: center; gap: 12px; } .brand img { width: 40px; height: 40px; }

/* App desktop: início próprio (boas-vindas, online, mesa, novidades) + login ao lado */
.app-only { display: none; }
#auth.in-desktop .lp-only { display: none !important; }
#auth.in-desktop { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: 100%; overflow: hidden; }
#auth.in-desktop .app-only { display: block; overflow-y: auto; padding: 34px 36px 40px; min-width: 0; }
#auth.in-desktop .lp-backdrop, #auth.in-desktop .lp-x { display: none; }
#auth.in-desktop .lp-modal { position: static; inset: auto; padding: 24px 28px; transition: none; opacity: 1; pointer-events: auto; z-index: 1; display: flex; flex-direction: column; justify-content: safe center; gap: 16px; overflow-y: auto; min-height: 0; }
#auth.in-desktop .lp-modal .auth-card { width: 100%; transform: none; }
.ah-hello h2 { font-family: var(--f-title); font-size: calc(38px * var(--fs)); margin: 6px 0 10px; color: var(--accent); }
.ah-hello p { margin: 0; max-width: 640px; color: var(--muted); line-height: 1.6; font-family: var(--f-text); font-size: calc(17px * var(--fs)); }
.ah-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.ah-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.ah-card h4 { margin: 0 0 10px; font-size: calc(12px * var(--fs)); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ah-card p { margin: 8px 0 0; line-height: 1.5; }
.ah-big { display: flex; align-items: baseline; gap: 10px; }
.ah-big b { font-family: var(--f-title); font-size: calc(54px * var(--fs)); line-height: 1; }
.ah-big span { color: var(--muted); }
.ah-big i { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); align-self: center; flex: none; }
.ah-big i.on { background: #5fd36a; animation: lp-pulse 2s ease-out infinite; }
.ah-mesa { display: grid; justify-items: center; text-align: center; }
.ah-mesa h4 { justify-self: start; }
.ah-mesa .v-table { transform: scale(.56); margin: -84px -84px; }
.ah-newslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ah-newslist > li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
.ah-newslist > li + li { padding-top: 12px; border-top: 1px solid var(--line); }
.ah-newslist time { font-family: var(--f-title); color: var(--link); font-size: calc(13px * var(--fs)); padding-top: 2px; white-space: nowrap; }
.ah-newslist h5 { margin: 0 0 4px; font-size: calc(15px * var(--fs)); }
.ah-newslist ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: calc(13px * var(--fs)); line-height: 1.5; }
@media (max-width: 900px) { #auth.in-desktop { grid-template-columns: 1fr; overflow-y: auto; } #auth.in-desktop .app-only { overflow: visible; } #auth.in-desktop .lp-modal { overflow: visible; } }
@media (prefers-reduced-motion: reduce) { .ah-big i.on { animation: none; } }

@media (max-width: 960px) {
  .lp-nav nav { display: none; } .lp-nav { justify-content: space-between; }
  .lp-hero { padding-top: 64px; } .lp-hero h2 { font-size: calc(42px * var(--fs)); } .lp-lantern { width: 44px; }
 
  .lp-row { grid-template-columns: 1fr; gap: 28px; padding-top: 72px; } .lp-row.rev .lp-row-text { order: 0; }
  .lp-row h3, .lp-h, .sign h3 { font-size: calc(30px * var(--fs)); }
  .lp-sec { grid-template-columns: 1fr 1fr; }
  .menu { padding: 32px 22px; } .menu-cols { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .lp-link { display: none; } .lp-hero h2 { font-size: calc(34px * var(--fs)); } .lp-lantern { display: none; }
  .v-table { transform: scale(.8); margin: -38px; } .lp-sec { grid-template-columns: 1fr; } .lp-foot { grid-template-columns: 1fr 1fr; } .lp-foot-brand { grid-column: 1 / -1; }
  .sign { padding: 36px 20px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  #auth { scroll-behavior: auto; } .lp-lantern, .lp-embers i, .lp-beam-track, .v-seat i, .bard-now .disc { animation: none !important; }
}
.menu p.menu-sub { display: block; padding: 0; }
.lp-modal #auth-error:empty { margin: 6px 0 0; min-height: 0; }
@media (max-width: 560px) { .note { width: 135px; font-size: 13px; padding: 16px 10px 10px; } .note.n3 { left: 20%; } }

/* Agora na casa */
.lp-now { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px auto 0; padding: 9px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); color: var(--muted); font-size: calc(14px * var(--fs)); }
.lp-now b { color: var(--text); } .lp-now em { font-style: normal; } .lp-now span { opacity: .5; }
.lp-now i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.lp-now i.on { background: #5fd36a; box-shadow: 0 0 0 0 #5fd36a88; animation: lp-pulse 2s ease-out infinite; }
@keyframes lp-pulse { to { box-shadow: 0 0 0 10px #5fd36a00; } }

/* Novidades da casa: linha do tempo */
.news { list-style: none; max-width: 760px; margin: 0 auto; padding: 0 0 0 4px; position: relative; }
.news::before { content: ""; position: absolute; left: 76px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.news > li { display: grid; grid-template-columns: 64px 1fr; gap: 34px; padding: 0 0 26px; position: relative; }
.news > li::before { content: ""; position: absolute; left: 66px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.news time { font-family: var(--f-text); color: var(--link); text-align: right; font-size: calc(14px * var(--fs)); padding-top: 2px; white-space: nowrap; }
.news > li > div { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.news h4 { margin: 0 0 6px; font-family: var(--f-title); font-size: calc(17px * var(--fs)); }
.news ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.55; font-size: calc(14px * var(--fs)); }
@media (max-width: 560px) { .news::before { left: 8px; } .news > li { grid-template-columns: 1fr; gap: 6px; padding-left: 28px; } .news > li::before { left: 3px; } .news time { text-align: left; } }
@media (prefers-reduced-motion: reduce) { .lp-now i.on { animation: none; } }

/* ---- Balcão: guia rápido dentro do "Bem-vindo" ---- */
.guide { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.guide-head { display: flex; align-items: center; gap: 8px; }
.guide-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.gtab { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); font-size: calc(13px * var(--fs)); cursor: pointer; }
.gtab:hover { color: var(--text); border-color: var(--muted); }
.gtab.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.guide.closed .gtab.active { color: var(--muted); background: var(--bg); border-color: var(--line); font-weight: 400; }
.guide.closed .guide-body { display: none; }
.guide-body { margin-top: 12px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.step { display: flex; gap: 10px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.step > b { display: grid; place-items: center; flex: none; width: calc(26px * var(--fs)); height: calc(26px * var(--fs)); border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, var(--bg3)); color: var(--accent); font-family: var(--f-title); }
.step h4 { margin: 2px 0 4px; font-size: calc(14px * var(--fs)); }
.step p { margin: 0; color: var(--muted); font-size: calc(13px * var(--fs)); line-height: 1.45; }
.step a { color: var(--link); } .step em { font-style: normal; color: var(--text); }
.ghint { margin: 0 0 12px; color: var(--muted); font-size: calc(13px * var(--fs)); }
.guide code, .tips code { background: var(--bg3); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: .92em; color: var(--link); }
.gcat + .gcat { margin-top: 12px; }
.gcat h4 { margin: 0 0 6px; font-size: calc(12px * var(--fs)); text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.gchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.gchip { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: baseline; text-align: left; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); cursor: pointer; transition: border-color .12s, background .12s; }
.gchip:hover { border-color: var(--accent2); background: var(--hover); }
.gchip code { background: none; border: 0; padding: 0; font-weight: 700; color: var(--accent); }
.gchip small { color: var(--muted); font-size: calc(11px * var(--fs)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gchip span { grid-column: 1 / -1; color: var(--muted); font-size: calc(12px * var(--fs)); margin-top: 2px; line-height: 1.35; }
.tips { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; }
.tips li { padding: 9px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: calc(13px * var(--fs)); line-height: 1.45; }
.tips em { font-style: normal; color: var(--text); }
kbd { display: inline-block; min-width: 1.4em; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--bg3); color: var(--text); font: inherit; font-size: .88em; text-align: center; }

/* ---- Balcão: novidades da casa ---- */
.hnews { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.hnews > li { display: grid; grid-template-columns: calc(58px * var(--fs)) 1fr; gap: 12px; }
.hnews > li.empty { display: block; color: var(--muted); }
.hnews time { font-family: var(--f-title); color: var(--link); font-size: calc(13px * var(--fs)); padding-top: 2px; white-space: nowrap; }
.hnews h4 { margin: 0 0 4px; font-size: calc(15px * var(--fs)); display: flex; align-items: center; gap: 6px; }
.hnews ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: calc(13px * var(--fs)); line-height: 1.5; }
.hnews > li + li { padding-top: 10px; border-top: 1px solid var(--line); }
.pill.new { background: var(--accent); color: var(--accent-ink); font-size: calc(10px * var(--fs)); text-transform: uppercase; letter-spacing: .5px; }
/* Painel da casa (admin) */
.modal-card.dash { max-width: 1040px; width: min(96vw, 1040px); }
.dash header { display: flex; align-items: center; gap: 12px; } .dash header .muted { margin-left: auto; }
.dash h3 { margin: 18px 0 8px; font-size: calc(15px * var(--fs)); }
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.dcard { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dcard.bad { border-color: #e5534b; }
.dcard h4 { margin: 0; font-size: calc(12px * var(--fs)); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dcard .big { font-family: var(--f-title); font-size: calc(28px * var(--fs)); line-height: 1.1; }
.meter { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: 4px; transition: width .4s; }
.meter i.ok, .spark .line { background: #5fd36a; } .meter i.warn { background: #e8b339; } .meter i.bad { background: #e5534b; }
.spark { width: 100%; height: 44px; margin-top: 6px; }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spark .fill { fill: color-mix(in srgb, var(--accent) 18%, transparent); stroke: none; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-top: 6px; }
.bars span { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; }
.dcols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.dtbl { width: 100%; border-collapse: collapse; font-size: calc(14px * var(--fs)); }
.dtbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: calc(12px * var(--fs)); }
.dtbl td, .dtbl th { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ok-t { color: #5fd36a; } .warn-t { color: #e8b339; } .bad-t { color: #e5534b; }
@media (max-width: 760px) { .dcols { grid-template-columns: 1fr; } }

/* ---- Chat no estilo Tolkien ---- */
.msg .body { font-family: var(--f-text); font-size: 1.12em; line-height: 1.45; letter-spacing: .1px; }
.msg .body code, .msg .body pre { font-family: ui-monospace, Consolas, monospace; font-size: .85em; }
.msg .meta b { font-family: var(--f-title); font-weight: 700; letter-spacing: .3px; }


/* ---- App desktop v3: selo de online no canto, mesa no lugar do cartão, login maior ---- */
#auth.in-desktop { position: relative; grid-template-columns: minmax(0, 1fr) 500px; }
#auth.in-desktop #ah-pill { display: flex; align-items: center; gap: 8px; position: absolute; top: 14px; right: 22px; z-index: 5; overflow: visible; padding: 8px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg2) 85%, transparent); border: 1px solid var(--line); font-size: calc(14px * var(--fs)); white-space: nowrap; }
#ah-pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
#ah-pill i.on { background: #5fd36a; animation: lp-pulse 2s ease-out infinite; }
#ah-pill b { font-family: var(--f-title); font-size: 1.25em; } #ah-pill span { color: var(--muted); }
#ah-pill small { color: var(--muted); } #ah-pill small:not(:empty)::before { content: "·"; margin-right: 8px; opacity: .6; }
.ah-mesa { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 28px; text-align: left; justify-items: start; }
.ah-mesa h4 { grid-column: 1 / -1; }
.ah-mesa .v-table { transform: scale(.78); margin: -42px; }
.ah-mesa p { font-size: calc(15px * var(--fs)); color: var(--muted); }
#auth.in-desktop .lp-modal { padding: 24px 36px; }
#auth.in-desktop .lp-modal .auth-card { padding: 38px 36px; border-radius: 20px; }
#auth.in-desktop .lp-modal .brand { font-size: 1.25em; } #auth.in-desktop .lp-modal .brand img { width: 52px; height: 52px; }
#auth.in-desktop .lp-modal .auth-card > .muted { font-size: calc(16px * var(--fs)); }
#auth.in-desktop .lp-modal .tab { padding: 14px 10px; font-size: calc(16px * var(--fs)); }
#auth.in-desktop .lp-modal .auth-form { gap: 14px; }
#auth.in-desktop .lp-modal .auth-form label { font-size: calc(15px * var(--fs)); }
#auth.in-desktop .lp-modal .auth-form input { padding: 14px 15px; font-size: calc(17px * var(--fs)); }
#auth.in-desktop .lp-modal .auth-form .btn { padding: 15px; font-size: calc(17px * var(--fs)); }
@media (max-width: 900px) { #auth.in-desktop { grid-template-columns: 1fr; } #ah-pill { position: static !important; margin: 10px 22px 0; } }
#ah-pill small { display: none !important; }

/* App desktop v4: cabeçalho centralizado com lanternas */
#auth.in-desktop { grid-template-rows: auto minmax(0, 1fr); }
#auth.in-desktop .ah-hero { display: block; grid-column: 1 / -1; padding: 26px 20px 20px; overflow: hidden; }
#auth.in-desktop .ah-hero h2 { font-size: calc(50px * var(--fs)); margin: 14px auto 10px; }
#auth.in-desktop .ah-hero .lp-lead { margin: 0 auto; max-width: 560px; color: var(--muted); font-size: calc(16px * var(--fs)); line-height: 1.5; }
#auth.in-desktop .ah-hero .lp-lantern { width: 52px; }
#auth.in-desktop .ah-hero .lp-lantern.l { left: max(24px, calc(50% - 400px)); } #auth.in-desktop .ah-hero .lp-lantern.r { right: max(24px, calc(50% - 400px)); }
#auth.in-desktop .app-only.app-home-pad, #auth.in-desktop #app-home { padding-top: 14px; }
#auth.in-desktop .lp-modal { padding: 12px 36px 20px; }
#auth.in-desktop .lp-modal .auth-card { padding: 30px 34px; }
@media (max-width: 900px) { #auth.in-desktop { grid-template-rows: none; } #auth.in-desktop .ah-hero .lp-lantern { display: none; } }
#auth.in-desktop .ah-hero .lp-lantern.l { left: max(24px, calc(50% - 330px)); } #auth.in-desktop .ah-hero .lp-lantern.r { right: max(24px, calc(50% - 330px)); }
#auth.in-desktop .ah-hero { padding: 22px 20px 14px; }
#auth.in-desktop .lp-modal { scrollbar-width: none; padding: 8px 36px 16px; }
#auth.in-desktop .lp-modal::-webkit-scrollbar { display: none; }
#auth.in-desktop .lp-modal .auth-card { padding: 26px 34px; }
#auth.in-desktop #app-home { scrollbar-width: thin; }
#auth.in-desktop .ah-hero .lp-lantern.l { left: max(24px, calc(50% - 440px)); } #auth.in-desktop .ah-hero .lp-lantern.r { right: max(260px, calc(50% - 440px)); }
@media (max-width: 1400px) { #auth.in-desktop .ah-hero h2 { font-size: calc(42px * var(--fs)); } #auth.in-desktop .ah-hero .lp-lantern.l { left: max(24px, calc(50% - 420px)); } #auth.in-desktop .ah-hero .lp-lantern.r { right: max(260px, calc(50% - 420px)); } }
@media (max-width: 1050px) { #auth.in-desktop .ah-hero .lp-lantern { display: none; } }
