/* LASTDRIB — correio do lobby. Base 1366×768, escalada via --ml-zoom */
.ml-root {
  position: fixed; inset: 0; z-index: 64; display: grid; place-items: center;
  background: rgba(4, 4, 8, 0.72); backdrop-filter: blur(6px); animation: mlFade 0.2s both;
  font-family: var(--ld-body, Inter, 'Segoe UI', sans-serif); color: #f1f1f4;
}
.ml-root.hidden { display: none; }
.ml-root button { font-family: inherit; color: inherit; cursor: pointer; }
@keyframes mlFade { from { opacity: 0; } }
.ml-ico, .ml-cur { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
.ml-cur { width: 13px; height: 13px; margin: -2px 2px 0 0; }

.ml-panel {
  position: relative; zoom: var(--ml-zoom, 1); width: 860px; height: 620px; display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 194, 26, 0.28);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 170, 30, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(20, 20, 26, 0.98), rgba(10, 10, 14, 0.99));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: mlIn 0.3s cubic-bezier(.2, .9, .3, 1.2) both;
}
@keyframes mlIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } }

/* topo */
.ml-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; }
.ml-title { display: flex; align-items: center; gap: 12px; }
.ml-title-ico {
  width: 44px; height: 44px; padding: 11px; border-radius: 12px; color: #1a0f00;
  background: linear-gradient(180deg, #ffe066, #ffb21e); box-shadow: 0 6px 20px rgba(255, 170, 20, 0.35);
}
.ml-title h2 { margin: 0; font: italic 700 36px/0.9 var(--ld-head, Teko, sans-serif); letter-spacing: 1px; }
.ml-title small { font-size: 11px; color: #8d8f9a; font-weight: 600; }
.ml-head-acts { display: flex; align-items: center; gap: 10px; }
.ml-link { background: none; border: 0; padding: 6px 8px; font-size: 12px; font-weight: 700; color: #ffc21a !important; }
.ml-link:hover { text-decoration: underline; }
.ml-x {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06); font-size: 15px;
}
.ml-x:hover { background: rgba(255, 255, 255, 0.14); }

/* amigos online */
.ml-frs { flex: none; padding: 0 22px 12px; }
.ml-frs h4 {
  margin: 0 0 8px; font: 600 15px/1 var(--ld-head, Teko, sans-serif); letter-spacing: 1.5px; color: #8d8f9a;
}
.ml-frs-n { display: inline-block; min-width: 20px; padding: 2px 6px 0; margin-left: 4px; border-radius: 9px; text-align: center; background: rgba(62, 230, 107, 0.15); color: #3ee66b; }
.ml-frs-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ml-fr {
  flex: none; display: flex; align-items: center; gap: 9px; padding: 7px 8px 7px 7px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); animation: mlIn 0.3s both;
}
.ml-av {
  position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(180deg, #2c2d34, #1c1d22); color: #ffd54a; font-weight: 900; font-size: 15px;
}
.ml-av i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #121216; background: #3ee66b; }
.ml-fr.lobby .ml-av i { animation: mlOn 1.6s ease-in-out infinite; }
.ml-fr.match .ml-av i { background: #ffb02e; }
@keyframes mlOn { 50% { box-shadow: 0 0 0 4px rgba(62, 230, 107, 0.25); } }
.ml-fr-txt b { display: block; font-size: 13px; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-fr-txt small { font-size: 10px; font-weight: 600; color: #3ee66b; }
.ml-fr.match .ml-fr-txt small { color: #ffb02e; }
.ml-nofr { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); color: #8d8f9a; font-size: 13px; }

/* abas */
.ml-tabs { flex: none; display: flex; gap: 6px; padding: 8px 22px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.ml-tabs button {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 3px 14px 0; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: transparent;
  font: 600 16px/1 var(--ld-head, Teko, sans-serif); letter-spacing: 1px; color: #a9abb6 !important;
}
.ml-tabs button:hover { border-color: rgba(255, 194, 26, 0.45); }
.ml-tabs button.on { background: #ffc21a; border-color: #ffc21a; color: #1a0f00 !important; }
.ml-tabs i {
  min-width: 18px; height: 18px; padding: 2px 5px 0; border-radius: 9px; font-style: normal; font-size: 13px; line-height: 16px;
  background: #ff3b3b; color: #fff;
}

/* lista */
.ml-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 14px 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; }
.ml-row {
  --tc: #3b82f6;
  position: relative; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px;
  margin-bottom: 8px; padding: 12px 40px 12px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s, border-color 0.15s, opacity 0.2s, transform 0.2s;
  animation: mlRow 0.35s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes mlRow { from { opacity: 0; transform: translateX(-14px); } }
.ml-row:hover { background: rgba(255, 255, 255, 0.06); }
.ml-row.out { opacity: 0; transform: translateX(30px); }
.ml-row.new { border-color: color-mix(in srgb, var(--tc) 45%, transparent); background: color-mix(in srgb, var(--tc) 7%, rgba(255, 255, 255, 0.03)); }
.ml-row.new::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tc); box-shadow: 0 0 10px var(--tc); }
.ml-row.has-gift { border-color: rgba(255, 194, 26, 0.5); background: linear-gradient(90deg, rgba(255, 194, 26, 0.1), rgba(255, 255, 255, 0.03) 60%); }

.ml-badge {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 35%, transparent);
}
.ml-badge .ml-ico { width: 20px; height: 20px; }
.ml-row.has-gift .ml-badge { animation: mlWiggle 2.4s ease-in-out infinite; }
@keyframes mlWiggle { 0%, 80%, 100% { transform: none; } 84% { transform: rotate(-10deg); } 88% { transform: rotate(10deg); } 92% { transform: rotate(-6deg); } }

.ml-txt { min-width: 0; }
.ml-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: #8d8f9a; margin-bottom: 2px; }
.ml-meta span { color: var(--tc); }
.ml-meta em {
  padding: 2px 6px 1px; border-radius: 3px; font: 700 12px/1 var(--ld-head, Teko, sans-serif); letter-spacing: 1px; font-style: normal;
  background: var(--tc); color: #0b0b0e;
}
.ml-txt b { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.ml-txt p { margin: 3px 0 0; font-size: 13px; line-height: 1.4; color: #b4b6c0; }

.ml-acts { display: flex; align-items: center; gap: 6px; }
.ml-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 4px 14px 0; border-radius: 7px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.07);
  font: 700 17px/1 var(--ld-head, Teko, sans-serif); letter-spacing: 1px;
}
.ml-btn:hover { background: rgba(255, 255, 255, 0.13); }
.ml-btn.gold { border: 0; color: #1a0f00 !important; background: linear-gradient(180deg, #ffe066, #ffb21e 60%, #ff9a00); box-shadow: 0 4px 16px rgba(255, 160, 20, 0.35); }
.ml-btn.gold:hover { filter: brightness(1.08); }
.ml-btn:disabled { opacity: 0.55; cursor: default; filter: grayscale(0.6); }
.ml-btn.sm { height: 28px; padding: 3px 10px 0; font-size: 15px; }
.ml-row.has-gift .ml-btn.gold { animation: mlGlow 1.6s ease-in-out infinite; }
@keyframes mlGlow { 50% { box-shadow: 0 4px 26px rgba(255, 180, 20, 0.75); } }
.ml-done { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #3ee66b; }
.ml-done .ml-ico { width: 14px; height: 14px; }
.ml-muted { font-size: 12px; color: #6d6f7a; font-weight: 600; }
.ml-del {
  position: absolute; right: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: transparent; color: #6d6f7a !important; font-size: 12px; opacity: 0; transition: opacity 0.15s, background 0.15s;
}
.ml-row:hover .ml-del { opacity: 1; }
.ml-del:hover { background: rgba(255, 80, 80, 0.15); color: #ff6b6b !important; }

.ml-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #8d8f9a; text-align: center; }
.ml-empty b { font-size: 16px; color: #d0d1d8; }
.ml-empty span { font-size: 13px; }
.ml-empty-ico { width: 54px; height: 54px; opacity: 0.35; margin-bottom: 6px; }

.ml-toast {
  position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 8px; background: rgba(24, 24, 30, 0.98); border: 1px solid rgba(255, 194, 26, 0.5);
  font-size: 13px; font-weight: 600; transition: opacity 0.2s, transform 0.2s;
}
.ml-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* "+300" subindo ao coletar */
.ml-fly {
  position: fixed; z-index: 9000; transform: translate(-50%, 0); pointer-events: none; white-space: nowrap;
  font: 700 30px/1 var(--ld-head, Teko, sans-serif); color: #ffd54a; text-shadow: 0 0 14px rgba(255, 170, 20, 0.8), 0 2px 4px #000;
  animation: mlFly 1.4s cubic-bezier(.2, .8, .3, 1) both;
}
.ml-fly .ml-cur { width: 22px; height: 22px; }
@keyframes mlFly { 0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6); } 20% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -90px) scale(1); } }

/* aviso de mensagem nova (lobby) */
.ml-pop {
  --tc: #3b82f6;
  position: fixed; right: 22px; bottom: 96px; z-index: 7800; display: flex; align-items: center; gap: 12px;
  max-width: 340px; padding: 10px 16px 10px 10px; border-radius: 12px; text-align: left; cursor: pointer;
  background: rgba(16, 16, 20, 0.97); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 24px color-mix(in srgb, var(--tc) 22%, transparent);
  color: #fff; font-family: var(--ld-body, Inter, 'Segoe UI', sans-serif);
  animation: mlPop 0.4s cubic-bezier(.2, .9, .3, 1.3) both;
}
.ml-pop.out { animation: mlPopOut 0.4s ease-in both; }
.ml-pop small { display: block; font: 600 13px/1 var(--ld-head, Teko, sans-serif); letter-spacing: 1.5px; color: var(--tc); }
.ml-pop b { display: block; font-size: 13px; margin-top: 2px; }
@keyframes mlPop { from { opacity: 0; transform: translateX(40px); } }
@keyframes mlPopOut { to { opacity: 0; transform: translateX(40px); } }

/* contador no ícone do lobby */
.badge-dot.ml-num {
  top: -3px; right: -5px; width: auto; height: 16px; min-width: 16px; padding: 0 4px; border-radius: 8px;
  font: 800 10px/16px system-ui, sans-serif; font-style: normal; color: #fff; text-align: center;
}
