:root {
  --bg: #160e06;
  --panel: rgba(26, 16, 8, 0.82);
  --panel-solid: #20140c;
  --line: rgba(255, 146, 61, 0.18);
  --text: #f6efe8;
  --muted: #a8927e;
  --cyan: #ff8c3a;
  --cyan-2: #e56b14;
  --cyan-dim: rgba(255, 140, 58, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

button, input { font-family: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 650;
  font-size: 14px;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, #ffb056, #e56b14);
  color: #2a1406;
  box-shadow: 0 8px 24px rgba(229, 107, 20, 0.32);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-soft {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-block { width: 100%; }
.btn.danger {
  background: #e35d5d;
  color: #fff;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.field { display: grid; gap: 8px; }
.field > span,
.panel-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}
.field-row, .join-row, .code-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.join-row .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.field-row, input {
  background: rgba(16, 10, 4, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.field-row { padding: 0 12px; }
.field-icon { color: var(--muted); }
input {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}
.field-row input {
  border: 0;
  background: transparent;
  padding: 12px 8px;
}
input:focus { border-color: rgba(255, 140, 58, 0.55); }
.counter { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* HOME */
body.home { overflow: auto; }
.home-bg {
  position: fixed;
  inset: 0;
  background:
    url("/fundo.png")
    center / cover no-repeat;
  filter: saturate(0.95) brightness(0.72);
  transform: scale(1.04);
}
.home-vignette {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 20% 40%, rgba(120, 52, 8, 0.22), transparent 55%),
    linear-gradient(90deg, rgba(14, 8, 4, 0.42) 0%, rgba(14, 8, 4, 0.22) 48%, rgba(14, 8, 4, 0.38) 100%);
}
.home-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 12px;
  margin: 0 0 18px;
}
.brand-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.brand-sub {
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
  text-transform: lowercase;
}
.home-copy h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
  background-image: linear-gradient(106deg, #ffffff 8%, #ffd4a8 44%, #ff8c3a 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-copy h1 em {
  font-style: normal;
  color: inherit;
}
.lead {
  max-width: 440px;
  color: #ddd5c5;
  line-height: 1.55;
  margin: 0 0 28px;
}
.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: #ece4d5;
}
.bullets li { display: flex; gap: 10px; align-items: center; }
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  height: auto;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff4ea;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 176, 86, 0.38);
  background: linear-gradient(168deg, rgba(255, 140, 58, 0.32), rgba(255, 140, 58, 0.12) 46%, rgba(255, 140, 58, 0.05));
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.35);
}
.glass:hover { filter: brightness(1.08); }
.glass-alt {
  border-color: rgba(255, 214, 170, 0.32);
  background: linear-gradient(168deg, rgba(255, 196, 120, 0.26), rgba(229, 107, 20, 0.1) 50%, rgba(255, 140, 58, 0.04));
}
.glass-out {
  font-size: 12px;
  opacity: 0.75;
}
.city-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex: none;
}
.home-credit {
  color: #ffb056;
  font-weight: 650;
}
.auth-card .btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  text-decoration: none;
}
.discord-status {
  margin: -6px 0 16px;
  color: #ffd4a8;
  font-size: 13px;
}
.discord-status a { color: #ffb056; }
.auth-result {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.auth-result .auth-card { width: min(440px, 100%); }
.auth-result .btn { display: inline-flex; justify-content: center; text-decoration: none; }
.btn-discord {
  background: linear-gradient(180deg, #ffb056, #e56b14);
  color: #2a1406;
  box-shadow: 0 8px 24px rgba(229, 107, 20, 0.32);
}
.btn-discord:hover { filter: brightness(1.08); }
.chip-discord {
  text-decoration: none;
  background: linear-gradient(180deg, #ffb056, #e56b14);
  border-color: transparent;
  color: #2a1406;
}
.ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: 13px;
}

.auth-card {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.auth-card h2 { margin: 0; font-size: 22px; }
.entry-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(420px, 100%);
  justify-self: end;
}
.entry-card .hint { margin: 0; }
.entry-card .btn-discord {
  margin: 0;
  background: transparent;
  color: #ffd7b0;
  border: 1px solid rgba(255, 176, 86, 0.45);
  box-shadow: none;
}
.entry-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(16, 10, 4, 0.35);
}
.entry-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.entry-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.entry-card .or { margin: 0; }
.entry-card .btn-block { min-height: 44px; }
.server-dock {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 5;
  width: min(280px, calc(100vw - 36px));
  max-height: min(560px, calc(100vh - 90px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(26, 16, 8, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
body.home.has-servers .home-wrap { padding-left: 320px; }
.my-rooms-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb056;
}
#my-room-list { overflow: auto; min-height: 0; }
.my-rooms-empty { margin: 0; color: var(--muted); font-size: 13px; }
.my-room {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name del" "code del";
  align-items: center;
  gap: 2px 8px;
  margin-bottom: 8px;
  padding: 10px 10px 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 140, 58, 0.08);
  color: #fff;
  text-align: left;
}
.my-room strong { grid-area: name; font-size: 14px; }
.my-room .my-room-code { grid-area: code; color: #cbb8a8; font-size: 12px; letter-spacing: 0.06em; }
.my-room-open, .my-room-del {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.my-room-open { display: contents; }
.my-room-del {
  grid-area: del;
  color: #ffb3a0;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
}
.my-room-del:hover { background: rgba(227, 93, 93, 0.16); }
.hint { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.or {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  margin: 16px 0;
  position: relative;
}
.or::before, .or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--line);
}
.or::before { left: 0; }
.or::after { right: 0; }
.home-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0;
  padding: 72px 48px 36px;
  background: linear-gradient(180deg, rgba(14, 8, 4, 0) 0%, rgba(14, 8, 4, 0.55) 22%, rgba(14, 8, 4, 0.82) 100%);
  color: #e7ddd4;
}
.foot-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 820px;
}
.foot-rules h2 { margin: 0 0 6px; font-size: 15px; color: #fff; }
.foot-rules p { margin: 0; color: #cbb8a8; font-size: 14px; line-height: 1.45; }
.foot-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand strong { font-size: 14px; color: #fff; }
.foot-credit { margin: 0; font-size: 14px; color: #e7ddd4; white-space: nowrap; }

/* ROOM */
body.room {
  height: 100vh;
  display: grid;
  grid-template-rows: 48px 1fr;
  background: #120e0b;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #1c1408;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.pill, .chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text);
}
.chip-ok { color: #8ef0c8; }
.chip-live { min-width: 36px; text-align: center; }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ee0a0;
  display: inline-block;
  margin-right: 6px;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 240px;
  min-height: 0;
}
.sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: #16110d;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}
.channel-col { padding-bottom: 8px; }
.chat-col {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #1e1814;
  overflow: hidden;
}
.chat-col > .channel-head {
  flex: 0 0 48px;
}
.chat-col > .stage {
  flex: 0 0 40%;
  min-height: 120px;
  max-height: 40%;
  overflow: hidden;
}
.chat-col > .chat-log {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
}
.chat-col > .composer {
  flex: 0 0 auto;
}
.channel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #1e1814;
}
.channel-head .hash { color: #a8927e; font-size: 22px; font-weight: 500; }
.channel-topic {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}
.member-col {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: #16110d;
  padding: 16px 10px;
  min-height: 0;
  overflow: auto;
}
.voice-box {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: #120e0b;
}
.panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.panel.grow { flex: 1; min-height: 0; overflow: auto; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.code-row strong {
  font-size: 20px;
  letter-spacing: 0.08em;
  flex: 1;
}
.members { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.member {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 6px;
}
.member:hover { background: rgba(255, 255, 255, 0.04); }
.avatar-wrap { position: relative; width: 32px; height: 32px; flex: none; }
.status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #1e1814;
  background: #3ddc84;
}
.member-off { opacity: 0.72; }
.member-off .status-dot { background: #6b5c52; }
.member-name .presence {
  display: block;
  color: #7dcea0;
  font-size: 11px;
  font-weight: 500;
}
.member-off .presence { color: #8d7b6e; }
.roster-label {
  list-style: none;
  margin: 10px 0 2px;
  color: #8d7b6e;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffb056, #c85a10);
  color: #2a1406;
  font-weight: 800;
  font-size: 12px;
  object-fit: cover;
  flex: none;
}
.profile-float {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(26, 16, 8, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.profile-float img,
.profile-chip img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-float-copy {
  display: grid;
  line-height: 1.15;
}
.profile-float-copy strong { font-size: 14px; }
.profile-float-copy span { color: var(--muted); font-size: 12px; }
.profile-float a {
  color: #ffb056;
  font-size: 12px;
  text-decoration: none;
  margin-left: 6px;
}
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  font-size: 12px;
}
.profile-chip img {
  width: 28px;
  height: 28px;
}
.you {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
}
.member-name { flex: 1; min-width: 0; }
.member-actions { margin-left: auto; display: flex; gap: 4px; }
.kick-btn, .mod-btn {
  width: 28px;
  height: 28px;
  font-size: 12px;
  color: #ffb3a0;
}
.kick-btn:hover, .mod-btn:hover { background: rgba(227, 93, 93, 0.16); }
.chat-log {
  overflow: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 8px 8px;
}
.msg {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 6px;
}
.msg:hover { background: rgba(255, 255, 255, 0.035); }
.msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffb056, #c85a10);
  color: #2a1406;
  font-weight: 800;
  margin-top: 2px;
}
.msg-head { display: flex; align-items: baseline; gap: 8px; }
.msg-tools { margin-left: auto; position: relative; }
.msg-more {
  width: 28px;
  height: 22px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #cbb8a8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.msg-more:hover, .msg-menu:not(.hidden) + .msg-more, .msg:hover .msg-more { background: #2a221c; color: #fff; }
.msg-menu {
  position: absolute;
  right: 0;
  top: 26px;
  z-index: 6;
  min-width: 180px;
  padding: 6px;
  border-radius: 8px;
  background: #241c17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.msg-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #f3ebe4;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.msg-menu button:hover { background: rgba(255, 140, 58, 0.14); }
.msg-menu-danger { color: #ffb3a0; }
.msg-reacts-picker {
  display: flex;
  gap: 4px;
  padding: 4px 6px 8px;
}
.msg-reacts-picker button { width: auto; font-size: 18px; padding: 4px; }
.msg-reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; min-height: 0; }
.msg-reactions:empty { display: none; }
.react-chip {
  border: 1px solid rgba(255, 176, 86, 0.35);
  background: rgba(255, 140, 58, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 13px;
}
.react-chip.mine { background: rgba(255, 140, 58, 0.32); }
.msg-head strong { font-size: 15px; color: #fff; }
.msg-head time { color: #8d7b6e; font-size: 12px; }
.msg-body p { margin: 2px 0 0; color: #e7ddd4; font-size: 15px; line-height: 1.35; }
img.msg-media { cursor: zoom-in; }
.photo-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: rgba(10, 6, 3, 0.88);
}
.photo-view img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
}
.photo-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #2a221c;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.msg-media {
  display: block;
  max-width: min(420px, 100%);
  max-height: 320px;
  margin-top: 8px;
  border-radius: 8px;
  background: #120e0b;
}
.composer {
  align-items: center;
}
.composer-plus {
  width: 36px;
  height: 36px;
  margin-left: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ffb056;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.composer-plus:hover { background: rgba(255, 140, 58, 0.14); }
.composer-plus:disabled { opacity: 0.45; cursor: wait; }
.msg-system .msg-head strong { color: #ffb056; }
.composer {
  margin: 0 16px 16px;
  display: flex;
  background: #2a221c;
  border-radius: 8px;
  border: 0;
}
.composer input {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 12px 14px;
  flex: 1;
  min-width: 0;
}
.ban-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ban-list li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.fine-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(14, 8, 4, 0.72);
  padding: 24px;
}
.fine-gate .auth-card { width: min(420px, 100%); }
.kick-btn:hover { background: rgba(227, 93, 93, 0.16); }
.host-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.gate-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(227, 93, 93, 0.14);
  border: 1px solid rgba(227, 93, 93, 0.35);
  color: #ffc4b8;
  font-size: 13px;
}
.admin-panel .join-row { margin-top: 4px; }
.tiny { color: var(--muted); font-size: 12px; margin: 0 0 10px; }
.field.compact input { padding: 10px 12px; }

.stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(800px 400px at 50% 30%, rgba(120, 52, 8, 0.2), transparent 60%);
}
.empty { text-align: center; max-width: 420px; padding: 24px; }
.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 22px;
}
.empty h3 { margin: 0 0 8px; }
.empty p { margin: 0 0 18px; color: var(--muted); }
.empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.tiles {
  width: 100%;
  height: 100%;
  padding: 12px;
  display: grid;
  gap: 12px;
  align-content: center;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  overflow: hidden;
}
.tile {
  position: relative;
  background: #0f0a05;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 0;
}
.tile video, .tile iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  background: #000;
  border: 0;
  display: block;
}
.tile-name {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.tile-stop {
  position: absolute;
  right: 10px;
  top: 10px;
}
.tile-fs-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.15s;
}
.tile:hover .tile-fs-btn { opacity: 1; }
/* Quando em fullscreen, o vídeo ocupa a tela toda */
video:fullscreen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

.dock {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: #1c1408;
}
.dock-btn { width: 44px; height: 44px; border-radius: 12px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #332812;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 20;
}

.nick-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(14, 8, 4, 0.72);
  padding: 24px;
}
.nick-gate .auth-card { width: min(420px, 100%); }

@media (max-width: 900px) {
  .home-wrap { grid-template-columns: 1fr; padding-top: 72px; }
  body.home.has-servers { overflow: auto; }
  body.home.has-servers .home-wrap { padding-left: 24px; }
  .home-foot { padding: 40px 16px 28px; }
  .foot-rules, .foot-bar { display: flex; flex-direction: column; align-items: flex-start; }
  .server-dock {
    top: auto;
    bottom: 48px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: 32vh;
  }
  .layout { grid-template-columns: 1fr; }
  .sidebar, .member-col { max-height: 34vh; }
  .chat-col { flex-direction: column; }
  .chat-col > .stage { flex: 0 0 200px; max-height: 200px; }
}

/* Marquee cidades parceiras */
.stores-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.stores-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-scroll 18s linear infinite;
}
.stores-track:hover {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header de categoria do chat */
.chat-section-head {
  flex: 0 0 40px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #1a1410;
}

/* ── Overlay de castigo ── */
.punish-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 5, 2, 0.82);
  backdrop-filter: blur(6px);
}
.punish-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid rgba(227, 93, 93, 0.35);
  border-radius: 22px;
  padding: 32px 24px 28px;
  box-shadow: 0 0 60px rgba(227, 93, 93, 0.18), var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.punish-icon {
  font-size: 42px;
  line-height: 1;
  animation: punish-pulse 1.4s ease-in-out infinite;
}
@keyframes punish-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.1); opacity: 0.7; }
}
.punish-card h2 {
  margin: 0;
  font-size: 22px;
  color: #ffb3a0;
}
.punish-reason {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.punish-timer {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ff6b6b;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(255, 107, 107, 0.5);
}
.punish-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ── Badges de cargo ── */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 5px;
}
.role-mod {
  background: rgba(100, 160, 255, 0.18);
  border: 1px solid rgba(100, 160, 255, 0.45);
  color: #90c4ff;
}
.role-vip {
  background: rgba(255, 200, 60, 0.16);
  border: 1px solid rgba(255, 200, 60, 0.45);
  color: #ffd966;
}
.role-none {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #a8927e;
}

/* ── Modal de setar cargo ── */
.role-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
}
.role-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.role-option:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); }
.role-option[data-role="mod"]:hover { border-color: rgba(100,160,255,0.5); background: rgba(100,160,255,0.08); }
.role-option[data-role="vip"]:hover { border-color: rgba(255,200,60,0.5); background: rgba(255,200,60,0.08); }
.role-option-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

/* ── Menu de contexto estilo Discord ── */
.ctx-menu {
  position: fixed;
  z-index: 100;
  min-width: 200px;
  padding: 6px;
  border-radius: 8px;
  background: #1e1510;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  animation: ctx-pop 0.08s ease;
}
@keyframes ctx-pop {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.ctx-header {
  padding: 8px 10px 6px;
}
.ctx-name {
  font-size: 12px;
  font-weight: 700;
  color: #a8927e;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ctx-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 4px 0;
}
.ctx-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #e7ddd4;
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.08s;
}
.ctx-item:hover { background: rgba(255,140,58,0.14); color: #fff; }
.ctx-item-danger { color: #ff8080; }
.ctx-item-danger:hover { background: rgba(227,93,93,0.18); color: #ffb3a0; }
.ctx-item-role:hover { background: rgba(100,160,255,0.14); color: #90c4ff; }

/* ── Card de perfil estilo Discord ── */
.profile-popup {
  position: fixed;
  z-index: 110;
  width: 240px;
  border-radius: 12px;
  background: #1a1108;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: ctx-pop 0.1s ease;
}
.pp-banner {
  height: 52px;
  background: linear-gradient(135deg, #3a1f08 0%, #1e1006 100%);
}
.pp-body {
  padding: 0 14px 14px;
}
.pp-avatar-wrap {
  margin-top: -28px;
  margin-bottom: 8px;
}
.pp-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid #1a1108;
  object-fit: cover;
  background: linear-gradient(180deg, #ffb056, #c85a10);
  display: grid;
  place-items: center;
  color: #2a1406;
  font-weight: 800;
  font-size: 18px;
}
.pp-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.pp-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.pp-role { line-height: 1; }
.pp-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 10px 0;
}
.pp-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #a8927e;
}
.pp-since {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}
.pp-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.pp-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s;
}
.pp-btn:hover { background: rgba(255,255,255,0.1); }
.pp-btn-kick { color: #ff8080; border-color: rgba(227,93,93,0.3); }
.pp-btn-kick:hover { background: rgba(227,93,93,0.18); }
.pp-btn-role { color: #90c4ff; border-color: rgba(100,160,255,0.3); }
.pp-btn-role:hover { background: rgba(100,160,255,0.14); }
.pp-btn-punish { color: #ffd966; border-color: rgba(255,200,60,0.3); }
.pp-btn-punish:hover { background: rgba(255,200,60,0.12); }
