/* Truco Online · Lobby v2 (05/11/2026) — restyle do lobby (LobbyPago, classes .lp-*) sem rebuild do app.
   Carregado DEPOIS do CSS do bundle; todas as regras usam #root .lp para vencer a especificidade.
   Modelo: cards claros e legíveis (estilo PlayTruco) com a paleta própria do site. */

#root .lp{
  --l2-bg:#121221;--l2-bg2:#0F0F1C;--l2-sf:#181829;--l2-sf2:#1E1E33;--l2-sf3:#262640;
  --l2-line:#2A2A44;--l2-line2:#3A3A5C;
  --l2-text:#F0F1F9;--l2-muted:#A0A2C2;--l2-dim:#6E7090;
  --l2-pink:#F52AB6;--l2-pink2:#FF5FCB;--l2-violet:#7C3AED;--l2-cyan:#22D3EE;--l2-green:#19C56D;--l2-green2:#0B8F4D;--l2-gold:#F5C542;
  --l2-ink:#171A2E;--l2-ink2:#4B5068;
  --l2-font:"Nunito Variable","Nunito",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --l2-pad:clamp(16px,2.2vw,32px);
  font-family:var(--l2-font);background:var(--l2-bg);color:var(--l2-text);
  position:relative;isolation:isolate;
}
#root .lp::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%221200%22 height=%221200%22 viewBox=%220 0 1200 1200%22%3E%3Cg fill=%22%23ffffff%22 fill-opacity=%220.065%22%3E%3Cpath transform=%22translate(40 60) rotate(-14 170 170) scale(3.4)%22 d=%22M50 6C40 26 16 38 16 58c0 12 10 20 20 18 5-1 9-4 11-8-1 9-5 15-11 20h28c-6-5-10-11-11-20 2 4 6 7 11 8 10 2 20-6 20-18C84 38 60 26 50 6z%22/%3E%3Cpath transform=%22translate(720 30) rotate(12 140 140) scale(2.8)%22 d=%22M50 90C30 72 8 56 8 34 8 20 18 10 30 10c8 0 15 4 20 11 5-7 12-11 20-11 12 0 22 10 22 24 0 22-22 38-42 56z%22/%3E%3Cpath transform=%22translate(640 620) rotate(-7 180 180) scale(3.6)%22 d=%22M50 8a16 16 0 0 0-9 29A16 16 0 1 0 45 64c-1 9-5 16-11 22h32c-6-6-10-13-11-22a16 16 0 1 0 4-27A16 16 0 0 0 50 8z%22/%3E%3Cpath transform=%22translate(110 700) rotate(10 130 130) scale(2.6)%22 d=%22M50 4C60 22 74 38 92 50 74 62 60 78 50 96 40 78 26 62 8 50 26 38 40 22 50 4z%22/%3E%3C/g%3E%3C/svg%3E");background-size:1200px 1200px;background-position:center top}
@media (max-width:760px){#root .lp::before{background-size:720px 720px}}
/* ---------- barra da carteira (Saque · Depósito · Saldo) ---------- */
#root .lp-top{position:sticky;top:60px;z-index:30;height:58px;min-height:0;gap:0;justify-content:flex-end;
  padding:0 max(var(--l2-pad),calc((100% - 1900px)/2 + 32px));
  background:rgba(15,15,28,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--l2-line)}
#root .lp-top-r{display:flex;margin-left:auto;gap:10px;width:auto}
#root .lp-btn{height:38px;padding:0 16px;border-radius:10px;font-family:var(--l2-font);font-size:13.5px;font-weight:800;letter-spacing:0;gap:8px;line-height:1;
  transition:background .15s,border-color .15s,filter .15s,transform .1s}
#root .lp-btn .lp-btn-ic{width:16px;height:16px}
#root .lp-btn--ghost{order:1;background:transparent;border:1px solid var(--l2-line2);color:var(--l2-text)}
#root .lp-btn--ghost:hover{background:var(--l2-sf2);border-color:#4A4A72;filter:none}
#root .lp-btn--dep{order:2;background:linear-gradient(135deg,var(--l2-pink),var(--l2-pink2));border:1px solid transparent;color:#fff;box-shadow:0 6px 16px rgba(245,42,182,.25)}
#root .lp-btn--dep:hover{filter:brightness(1.06)}
#root .lp-saldo{order:0;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;height:38px;padding:0 14px 0 12px;border-radius:10px;background:var(--l2-sf);border:1px solid var(--l2-line2);box-shadow:none}
#root .lp-saldo span{font-size:11px;letter-spacing:.06em;color:var(--l2-muted);font-weight:800}
#root .lp-saldo b{font-family:var(--l2-font);font-size:15px;font-weight:800;letter-spacing:0;color:var(--l2-gold);line-height:1}
#root .lp-saldo small{display:none}

/* ---------- cabeçalho da página ---------- */
#root .lp-wrap{padding:22px var(--l2-pad) 48px;max-width:1900px;margin:0 auto}
#root .lp-head{gap:14px;margin:0 0 10px}
#root .lp-head h1{font-family:var(--l2-font);font-size:28px;font-weight:800;letter-spacing:-.3px;line-height:1.1}
#root .lp-seg{background:var(--l2-sf);border:1px solid var(--l2-line2);padding:3px;border-radius:10px}
#root .lp-seg button{padding:7px 16px;border-radius:8px;font-family:var(--l2-font);font-size:13px;font-weight:800}
#root .lp-seg button[aria-pressed=true]{background:var(--l2-pink);color:#fff;box-shadow:0 3px 10px rgba(245,42,182,.3)}
#root .lp-live{gap:8px;padding:7px 14px;border-radius:10px;background:rgba(25,197,109,.08);border:1px solid rgba(25,197,109,.28)}
#root .lp-live b{font-family:var(--l2-font);font-size:15px;font-weight:800;letter-spacing:0}
#root .lp-live span{font-size:12.5px;font-weight:700}
#root .lp-pulse{width:7px;height:7px;box-shadow:0 0 0 3px rgba(25,197,109,.18)}
#root .lp-subrow{margin-bottom:16px;row-gap:8px}
#root .lp-sub{font-size:13.5px;gap:8px;color:var(--l2-muted);font-weight:600}
#root .lp-chip{border-radius:8px;padding:5px 10px;font-size:12px;font-weight:700;background:var(--l2-sf);border:1px solid var(--l2-line);color:var(--l2-muted)}
#root .lp .lp-chip--link{color:var(--l2-text);border-color:var(--l2-line2);background:var(--l2-sf2);transition:border-color .15s,color .15s,background .15s}
#root .lp .lp-chip--link:hover{border-color:var(--l2-pink);color:var(--l2-pink2);background:rgba(245,42,182,.08)}
#root .lp .lp-chip--link[href="/criar"]{border-color:rgba(34,211,238,.45);color:var(--l2-cyan);background:rgba(34,211,238,.08)}
#root .lp .lp-chip--link[href="/criar"]:hover{border-color:var(--l2-cyan);background:rgba(34,211,238,.16);color:#A5F3FC}
#root .lp-chip-ic{color:var(--l2-dim)}
#root .lp .lp-chip--link .lp-chip-ic{color:currentColor}
#root .lp-wbar .lp-btn{height:34px;padding:0 12px;font-size:12.5px;color:var(--l2-muted)}
#root .lp-wbar .lp-btn:hover{color:var(--l2-text)}

/* ---------- título de cada modalidade ---------- */
#root .lp-rowhead{gap:12px;margin:24px 0 10px}
#root .lp-rowhead h2{font-family:var(--l2-font);font-size:15px;font-weight:800;letter-spacing:.08em;color:var(--l2-text)}
#root .lp-tag{font-size:11px;font-weight:800;padding:3px 9px;border-radius:7px;letter-spacing:.04em;background:var(--l2-sf);color:var(--l2-muted);border:1px solid var(--l2-line2)}
#root .lp-rowhead .lp-rule{background:var(--l2-line)}

/* ---------- fileira de mesas (rolagem horizontal, estilo PlayTruco) ---------- */
#root .lp .lp-row{display:flex;gap:12px;overflow-x:auto;overflow-y:visible;overscroll-behavior-x:contain;scroll-snap-type:x proximity;
  padding:8px 4px 14px;margin:-8px -4px 0}
#root .lp .lp-row::-webkit-scrollbar{height:6px}
#root .lp .lp-row::-webkit-scrollbar-track{background:var(--l2-sf);border-radius:6px}
#root .lp .lp-row::-webkit-scrollbar-thumb{background:var(--l2-line2);border-radius:6px}
#root .lp .lp-row::-webkit-scrollbar-thumb:hover{background:#4A4A72}
@supports (scrollbar-width:thin) and (not selector(::-webkit-scrollbar)){#root .lp .lp-row{scrollbar-width:thin;scrollbar-color:var(--l2-line2) var(--l2-sf)}}
#root .lp .lp-row>*{flex:0 0 156px;scroll-snap-align:start}

/* ---------- card de mesa ---------- */
#root .lp .lp-card{min-height:0;height:auto;padding:16px 12px 12px;border-radius:12px;gap:0;justify-content:flex-start;
  border:1px solid rgba(255,255,255,.1);background:linear-gradient(180deg,#F0F2F8 0%,#D7DBE7 100%);color:var(--l2-ink);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 8px 20px -12px rgba(0,0,0,.6);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,border-color .18s ease;transform-origin:center}
#root .lp .lp-card::after{content:none;animation:none}
#root .lp .lp-card-stripe{display:none}
#root .lp .lp-card:hover:not(:disabled),#root .lp .lp-card:focus-visible{transform:translateY(-4px);filter:brightness(1.03);border-color:rgba(255,255,255,.3);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 18px 30px -14px rgba(0,0,0,.7)}
#root .lp .lp-card:focus-visible{outline:2px solid var(--l2-cyan);outline-offset:2px}
#root .lp .lp-card:disabled{opacity:.45}
/* escada de cores: cinza → verde (grátis) → lilás → dourado → ciano */
#root .lp .lp-card[data-tier=free]{background:linear-gradient(180deg,#EAFBF1 0%,#C6EDD6 100%);border-color:rgba(25,197,109,.35)}
#root .lp .lp-card[data-tier=high]{background:linear-gradient(180deg,#ECE3FF 0%,#CDBDF6 100%)}
#root .lp .lp-card[data-tier=vip]{background:linear-gradient(180deg,#FBEBBE 0%,#EBCB76 100%);border-color:rgba(255,255,255,.14)}
#root .lp .lp-card[data-tier=vip]:nth-last-child(-n+2){background:linear-gradient(180deg,#D6F7FB 0%,#93DEEA 100%)}
#root .lp .lp-card[data-tier=vip]:hover:not(:disabled){border-color:rgba(255,255,255,.35)}
#root .lp .lp-vip{top:10px;right:10px;background:rgba(23,26,46,.9);color:var(--l2-gold);border:0;font-size:9px;font-weight:900;letter-spacing:.1em;padding:3px 7px;border-radius:6px}
/* valor */
#root .lp .lp-card-val{display:block;width:100%;font-family:var(--l2-font);font-size:30px;font-weight:800;letter-spacing:-.5px;line-height:1;margin:6px 0 0;color:var(--l2-ink)}
#root .lp .lp-card-val small{font-size:14px;font-weight:800;color:var(--l2-ink2);margin-right:3px;letter-spacing:0;vertical-align:9px}
#root .lp .lp-card[data-tier=free] .lp-card-val,#root .lp .lp-card[data-tier=free] .lp-card-val small{color:#0B7A43}
#root .lp .lp-card[data-tier=free] .lp-card-val small{font-size:19px;letter-spacing:.04em;vertical-align:0;margin:0;line-height:30px}
#root .lp .lp-card-val::after{content:"Fila";display:block;margin-top:9px;font-size:11px;font-weight:700;letter-spacing:.02em;color:rgba(23,26,46,.52);
  background:linear-gradient(rgba(23,26,46,.16),rgba(23,26,46,.16)) left center/calc(50% - 22px) 1px no-repeat,
             linear-gradient(rgba(23,26,46,.16),rgba(23,26,46,.16)) right center/calc(50% - 22px) 1px no-repeat}
/* taxa */
#root .lp .lp-card-rake{font-size:11.5px;font-weight:700;color:var(--l2-ink2);margin:8px 0 0;padding:0;border:0;width:auto;line-height:1.3}
#root .lp .lp-card-rake b{color:var(--l2-ink)}
/* rodapé do card: fila + botão */
#root .lp .lp-card-foot{margin-top:auto;padding-top:12px;gap:9px;width:100%;border:0}
#root .lp .lp-q{background:rgba(23,26,46,.82);color:#fff;font-size:12.5px;font-weight:800;padding:5px 12px;border-radius:999px;gap:6px;line-height:1.1}
#root .lp .lp-q svg{width:13px;height:13px;opacity:.9}
#root .lp .lp-q[data-hot=true]{background:var(--l2-green2);color:#fff}
#root .lp .lp-wait{color:#BBF7D0;font-size:.85em;margin-left:3px}
#root .lp .lp-go{width:100%;height:32px;display:grid;place-items:center;padding:0;border-radius:8px;background:var(--l2-ink);color:#fff;border:0;
  font-size:12px;font-weight:800;letter-spacing:.06em;transition:background .15s,color .15s}
#root .lp .lp-card:hover:not(:disabled) .lp-go,#root .lp .lp-card[data-tier=vip]:hover:not(:disabled) .lp-go{background:var(--l2-pink);color:#fff}
#root .lp .lp-card[data-joined=true]{border-color:var(--l2-green);box-shadow:0 0 0 2px rgba(25,197,109,.55),0 8px 20px -12px rgba(0,0,0,.6)}
#root .lp .lp-card[data-joined=true] .lp-go{background:var(--l2-green2);color:#fff}
#root .lp-bump{animation:none}

/* ---------- avisos / fila ---------- */
#root .lp-notice{border-radius:12px;padding:12px 16px;margin:0 0 18px}
#root .lp-notice b{font-family:var(--l2-font);font-size:15px;font-weight:800;letter-spacing:0}
#root .lp-notice button{border-radius:10px;font-family:var(--l2-font)}
#root .lp-err{border-radius:10px}

/* ---------- selos de confiança ---------- */
#root .lp-foots{margin-top:28px;padding:14px 18px;border-radius:12px;gap:22px;background:var(--l2-sf);border:1px solid var(--l2-line)}
#root .lp-foots>div{font-size:12.5px;font-weight:700}
#root .lp-ic{border-radius:8px;background:rgba(25,197,109,.1);color:var(--l2-green)}
#root .lp-18 b{width:28px;height:28px;font-size:10.5px}

/* ---------- responsivo ---------- */
@media (max-width:1100px){
  #root .lp-top-r{gap:8px}
}
@media (max-width:760px){
  #root .lp-top{position:static;height:auto;padding:10px 12px 12px}
  #root .lp-top-r{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-left:0}
  #root .lp-saldo{grid-column:1/-1;justify-content:space-between;height:46px;padding:0 14px}
  #root .lp-saldo b{font-size:18px}
  #root .lp-btn{width:100%;height:42px;padding:0 12px;font-size:14px;gap:6px}
  #root .lp-wrap{padding:16px 12px 32px}
  #root .lp-head{gap:10px}
  #root .lp-head h1{font-size:24px}
  #root .lp-live{margin-left:0;padding:6px 12px}
  #root .lp-sub .lp-chip:not(.lp-chip--link){display:none}
  #root .lp-subrow>.lp-wbar{margin-left:0}
  #root .lp-rowhead{margin:20px 0 10px}
  #root .lp-rowhead h2{font-size:14px}
  #root .lp .lp-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:visible;padding:4px 0 0;margin:0;scroll-snap-type:none}
  #root .lp .lp-row>*{flex:none}
  #root .lp .lp-card{padding:12px 8px 9px;border-radius:10px}
  #root .lp .lp-card:hover:not(:disabled){transform:none}
  #root .lp .lp-card-val{font-size:24px;margin-top:4px}
  #root .lp .lp-card-val small{font-size:12px;vertical-align:7px}
  #root .lp .lp-card[data-tier=free] .lp-card-val small{font-size:15px;line-height:24px}
  #root .lp .lp-card-val::after{margin-top:7px;font-size:10px;background-size:calc(50% - 18px) 1px,calc(50% - 18px) 1px}
  #root .lp .lp-card-rake{font-size:10px;margin-top:6px}
  #root .lp .lp-card-foot{padding-top:9px;gap:7px}
  #root .lp .lp-q{font-size:11px;padding:4px 9px}
  #root .lp .lp-wait{display:block;margin:2px 0 0;font-size:9px}
  #root .lp .lp-go{height:28px;font-size:11px}
  #root .lp .lp-vip{top:7px;right:7px;font-size:8px;padding:2px 5px}
  #root .lp-foots{gap:12px;padding:12px 14px}
}
@media (max-width:420px){
  #root .lp-btn{padding:0 10px}
  #root .lp .lp-card-rake{font-size:9.5px}
}
@media (max-width:340px){
  #root .lp .lp-row{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){
  #root .lp .lp-card,#root .lp .lp-go,#root .lp-btn{transition:none}
  #root .lp .lp-card:hover:not(:disabled){transform:none}
}

/* 09/11/2026 — contador de jogadores maior (padrão PlayTruco) */
.lp .lp-card .lp-q{font-size:18px;font-weight:800;padding:6px 15px;gap:7px;min-height:34px;line-height:1;align-items:center}
.lp .lp-card .lp-q svg{width:17px;height:17px}
.lp .lp-card .lp-q .lp-bump{font-size:18px;font-weight:800;line-height:1}
.lp .lp-card .lp-q .lp-wait{font-size:12px}
.lp .lp-card .lp-q:not(:has(.lp-bump)){visibility:hidden}

/* 09/11/2026 — contador de jogadores no tamanho PlayTruco (número + avatar maiores) */
.lp .lp-card .lp-q{font-size:18px;font-weight:800;padding:7px 16px;gap:8px;min-height:38px;line-height:1;align-items:center}
.lp .lp-card .lp-q > svg{width:20px !important;height:20px !important;flex:none}
.lp .lp-card .lp-q .lp-bump{font-size:22px;font-weight:800;line-height:1}
.lp .lp-card .lp-q .lp-wait{font-size:12px}
.lp .lp-card .lp-q:not(:has(.lp-bump)){visibility:hidden}

/* 09/11/2026 — 8 cards ocupam a largura da linha */
@media (min-width: 1024px){.lp .lp-row > .lp-card{flex:1 1 0 !important;width:auto !important;min-width:150px !important;max-width:none !important}}

/* 09/11/2026 — alinhamento vertical do número com o ícone no contador */
.lp .lp-card .lp-q{display:inline-flex !important;align-items:center !important;justify-content:center;line-height:1 !important}
.lp .lp-card .lp-q > svg{display:block}
.lp .lp-card .lp-q .lp-bump{display:block;line-height:20px !important;height:20px;font-variant-numeric:tabular-nums;transform:translateY(-1px)}

/* 09/11/2026 — contador no mobile: alinhamento + "+N na fila" em 2ª linha */
@media (max-width: 600px){
  .lp .lp-card .lp-q{flex-wrap:wrap;row-gap:1px;column-gap:6px;border-radius:14px;padding:5px 12px;min-height:0}
  .lp .lp-card .lp-q > svg{width:17px !important;height:17px !important}
  .lp .lp-card .lp-q .lp-bump{font-size:19px;height:19px;line-height:19px !important}
  .lp .lp-card .lp-q .lp-bump:not(.lp-wait){transform:translateY(1px)}
  .lp .lp-card .lp-q .lp-wait{flex-basis:100%;text-align:center;font-size:10px;line-height:12px;height:auto;transform:none;opacity:.9}
}

/* 09/11/2026 — contador no mobile: alinhamento + "+N na fila" em 2ª linha */
@media (max-width: 600px){
  .lp .lp-card .lp-q{flex-wrap:wrap;row-gap:1px;column-gap:6px;border-radius:14px;padding:5px 12px;min-height:0}
  .lp .lp-card .lp-q > svg{width:17px !important;height:17px !important}
  .lp .lp-card .lp-q .lp-bump{font-size:19px;height:19px;line-height:19px !important}
  .lp .lp-card .lp-q .lp-bump:not(.lp-wait){transform:none}
  .lp .lp-card .lp-q .lp-wait{flex-basis:100%;text-align:center;font-size:10px;line-height:12px;height:auto;transform:none;opacity:.9}
}

/* 09/11/2026 — contador no mobile: número centrado com o avatar + "+N na fila" em 2ª linha */
@media (max-width: 600px){
  .lp .lp-card .lp-q{flex-wrap:wrap;row-gap:1px;column-gap:6px;border-radius:14px;padding:5px 12px;min-height:0}
  .lp .lp-card .lp-q > svg{width:17px !important;height:17px !important}
  .lp .lp-card .lp-q .lp-bump{font-size:19px;height:19px;line-height:19px !important}
  .lp .lp-card .lp-q .lp-bump:not(.lp-wait){transform:translateY(-0.5px)}
  .lp .lp-card .lp-q .lp-wait{flex-basis:100%;text-align:center;font-size:10px;line-height:12px;height:auto;transform:none;opacity:.9}
}

/* 09/11/2026 — selo VIP não sobrepõe o valor no mobile */
@media (max-width: 600px){
  .lp .lp-card .lp-vip{top:3px !important;right:4px !important;font-size:7px !important;padding:1px 4px !important;line-height:11px !important}
  .lp .lp-card:has(.lp-vip) .lp-card-val{margin-top:7px}
}
