/* lobby-mobile.css — 11/11/2026
   Lobby no celular no estilo PlayTruco: topo fixo (nav + saldo + filtros), só os cartões rolam.
   Ativado pela classe html.lpm (posta pelo /lobby-mobile.js só na rota /lobby). */

/* botão de torneios: só existe no celular */
.lpm-tour{display:none}

@media (max-width:760px){
  html.lpm, html.lpm body{overflow:hidden;overscroll-behavior:none}

  /* o lobby vira um painel fixo abaixo da nav do site */
  html.lpm #root .lp{position:fixed;top:var(--lpm-top,60px);left:0;right:0;bottom:0;
    display:flex;flex-direction:column;overflow:hidden;z-index:30;background:#121221}

  /* saldo + saque + depósito numa linha só */
  html.lpm #root .lp-top{flex:none;padding:8px 12px;border-bottom:1px solid rgba(255,255,255,.06)}
  html.lpm #root .lp-top-r{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;width:100%}
  html.lpm #root .lp-saldo{order:-1;grid-column:auto;height:40px;padding:0 12px;min-width:0}
  html.lpm #root .lp-saldo b{font-size:17px;white-space:nowrap}
  html.lpm #root .lp-btn{width:auto;height:40px;padding:0 12px;font-size:13px;white-space:nowrap}

  /* área rolável: só ela se move */
  html.lpm #root .lp-wrap{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
    -webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:0 12px 28px}

  /* cabeçalho do lobby preso no topo da área rolável */
  html.lpm #root .lp-head{position:sticky;top:0;z-index:8;background:#121221;
    display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0 6px;margin:0}
  html.lpm #root .lp-head h1{display:none}
  html.lpm #root .lp-head .lp-seg{order:1;flex:none}
  html.lpm #root .lp-head .lpm-tour{order:2;margin-left:auto}
  html.lpm #root .lp-head .lp-live{order:3;margin:0;padding:4px 10px;font-size:12px}

  html.lpm #root .lp-subrow{position:sticky;top:var(--lpm-h1,60px);z-index:8;background:#121221;
    display:flex;align-items:center;gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;
    padding:2px 0 10px;margin:0;box-shadow:0 10px 12px -10px rgba(0,0,0,.6)}
  html.lpm #root .lp-subrow::-webkit-scrollbar{display:none}
  /* some o texto "Entre numa fila…", ficam só os atalhos */
  html.lpm #root .lp-sub{font-size:0;line-height:0;margin:0;gap:6px;flex:none;display:flex}
  html.lpm #root .lp-sub > *{font-size:12px;line-height:1.2}
  html.lpm #root .lp-sub .lp-chip{height:30px;padding:0 10px;white-space:nowrap}
  /* "Jogo responsável" foi para o menu hambúrguer (lobby-mobile.js) */
  html.lpm #root .lp-subrow > .lp-wbar{display:none}

  html.lpm #root .lp-rowhead{margin:14px 0 8px}
  html.lpm #root .lp-rowhead:first-of-type{margin-top:8px}

  /* ---------- botão "Novidade · Torneios" ---------- */
  .lpm-tour{display:flex;align-items:center;gap:8px;position:relative;overflow:hidden;
    height:42px;padding:0 12px 0 5px;border-radius:12px;text-decoration:none;
    background:linear-gradient(135deg,#2b1240 0%,#1b1530 55%,#14142a 100%);
    border:1px solid rgba(245,42,182,.6);
    box-shadow:0 0 0 1px rgba(255,211,107,.12) inset,0 6px 18px -6px rgba(245,42,182,.55);
    -webkit-tap-highlight-color:transparent;transition:transform .15s ease}
  .lpm-tour:active{transform:scale(.97)}
  .lpm-tour-ico{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:9px;
    background:linear-gradient(160deg,#ffe08a 0%,#f5b301 55%,#c98400 100%);
    box-shadow:0 2px 8px rgba(245,179,1,.45), inset 0 1px 0 rgba(255,255,255,.55)}
  .lpm-tour-ico svg{width:19px;height:19px}
  .lpm-tour-txt{display:flex;flex-direction:column;line-height:1;text-align:left}
  .lpm-tour-tag{font:800 9px/1 "Nunito Variable",Nunito,system-ui,sans-serif;letter-spacing:.9px;
    text-transform:uppercase;color:#ff5fcf}
  .lpm-tour-tit{font:400 19px/1 "Bebas Neue","Bebas Neue Variable",Impact,sans-serif;letter-spacing:.6px;
    color:#f0f1f9;margin-top:3px}
  .lpm-tour-dot{position:absolute;top:6px;right:6px;width:7px;height:7px;border-radius:50%;
    background:#ff2d95;box-shadow:0 0 0 0 rgba(255,45,149,.7);animation:lpm-pulse 1.8s infinite}
  .lpm-tour::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:45%;
    background:linear-gradient(100deg,transparent,rgba(255,255,255,.18),transparent);
    transform:skewX(-18deg);animation:lpm-shine 3.6s ease-in-out infinite}
  @keyframes lpm-shine{0%,62%{left:-60%}100%{left:130%}}
  @keyframes lpm-pulse{0%{box-shadow:0 0 0 0 rgba(255,45,149,.7)}70%{box-shadow:0 0 0 7px rgba(255,45,149,0)}100%{box-shadow:0 0 0 0 rgba(255,45,149,0)}}
}

@media (max-width:360px){
  html.lpm #root .lp-btn{padding:0 9px;font-size:12px}
  .lpm-tour-tit{font-size:17px}
}
@media (prefers-reduced-motion:reduce){
  .lpm-tour::after,.lpm-tour-dot{animation:none}
}

/* lpm-v3 (11/11/2026): Mesas criadas, Criar mesa e Jogo responsável ficam no menu hambúrguer no celular */
@media (max-width:760px){
  /* faixa: some o texto de instrução e o "Jogo responsável" (estão no menu); ficam KYC/login e o aviso de fila */
  html.lpm #root .lp-subrow{display:block !important;position:static;padding:0;margin:0;box-shadow:none;background:none;overflow:visible}
  html.lpm #root .lp-subrow > .lp-sub{display:none}
  html.lpm #root .lp-subrow > .lp-wbar{display:flex !important;flex-wrap:wrap;gap:6px;margin:0 0 8px}
  html.lpm #root .lp-subrow > .lp-wbar:empty{display:none !important}
  html.lpm #root .lp-subrow > .lp-wbar .lp-btn--ghost{display:none}
  html.lpm #root .lp-subrow > .lp-wbar .lp-btn{height:34px;font-size:12.5px;padding:0 12px}
  html.lpm #root .lp-subrow > .lp-wbar .lp-chip{font-size:12px}
  html.lpm #root .lp-head{padding-bottom:10px;box-shadow:0 10px 12px -10px rgba(0,0,0,.6)}
}

/* 11/11/2026 — brilho passando só nos números dos cartões do lobby (PC e celular).
   Gradiente 260% da largura: posição sempre entre 0% e 100% para nunca deixar parte do texto sem cor. */
#root .lp .lp-card-val{
  background-image:linear-gradient(105deg,var(--l2-ink,#171a2e) 0%,var(--l2-ink,#171a2e) 40%,#F52AB6 46.5%,#ffd36b 50%,#F52AB6 53.5%,var(--l2-ink,#171a2e) 60%,var(--l2-ink,#171a2e) 100%);
  background-size:260% 100%;background-position:0% 0;background-repeat:no-repeat;
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  animation:lp-num-shine 6.5s ease-in-out infinite}
#root .lp .lp-card-val small{-webkit-text-fill-color:transparent}
#root .lp .lp-card-val::after{-webkit-text-fill-color:rgba(23,26,46,.52)}
#root .lp .lp-card[data-tier=free] .lp-card-val{
  background-image:linear-gradient(105deg,#0B7A43 0%,#0B7A43 40%,#14c06a 46.5%,#ffd36b 50%,#14c06a 53.5%,#0B7A43 60%,#0B7A43 100%)}
#root .lp .lp-card:nth-child(3n+2) .lp-card-val{animation-delay:.5s}
#root .lp .lp-card:nth-child(3n) .lp-card-val{animation-delay:1s}
@keyframes lp-num-shine{0%{background-position:100% 0}35%,100%{background-position:0% 0}}
@media (prefers-reduced-motion:reduce){#root .lp .lp-card-val{animation:none}}

/* 11/11/2026 — "Procurando adversário": cartão flutuante de matchmaking (PC e celular) */
#root .lp .lp-notice{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);
  z-index:70;width:min(440px,calc(100vw - 24px));margin:0;box-sizing:border-box;
  display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"spin title time" "spin sub sub" "btn btn btn";
  column-gap:12px;row-gap:3px;align-items:center;padding:14px 16px 14px 14px;border-radius:16px;
  background:linear-gradient(160deg,rgba(38,22,62,.97) 0%,rgba(20,20,38,.97) 60%);
  border:1px solid rgba(245,42,182,.45);color:#F0F1F9;text-align:left;
  box-shadow:0 22px 44px -14px rgba(0,0,0,.75),0 0 0 1px rgba(255,255,255,.04) inset,0 0 26px -10px rgba(245,42,182,.55);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);animation:lpn-in .32s cubic-bezier(.2,.9,.3,1.15) both}
#root .lp .lp-notice .lp-spin{grid-area:spin;display:block;width:40px;height:40px;margin:0;border-radius:50%;box-sizing:border-box;
  border:3px solid rgba(245,42,182,.16);border-top-color:#F52AB6;border-right-color:#ffd36b;background:none;
  animation:lpn-rot .9s linear infinite}
#root .lp .lp-notice b{grid-area:title;margin:0;font:400 21px/1 "Bebas Neue","Bebas Neue Variable",Impact,sans-serif;letter-spacing:.9px;color:#F0F1F9;white-space:nowrap}
#root .lp .lp-notice time{grid-area:time;margin:0;font:800 17px/1 "Nunito Variable",Nunito,system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#ffd36b;
  padding:4px 8px;border-radius:8px;background:rgba(255,211,107,.1)}
#root .lp .lp-notice small{grid-area:sub;display:block;margin:0;font:600 12px/1.35 "Nunito Variable",Nunito,system-ui,sans-serif;color:rgba(240,241,249,.66)}
#root .lp .lp-notice button{grid-area:btn;margin:12px 0 0;width:100%;height:42px;border-radius:11px;cursor:pointer;
  border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#F0F1F9;
  font:800 14px/1 "Nunito Variable",Nunito,system-ui,sans-serif;letter-spacing:.2px;transition:background .15s,border-color .15s}
#root .lp .lp-notice button:hover,#root .lp .lp-notice button:focus-visible{background:rgba(245,42,182,.16);border-color:#F52AB6;outline:none}
@keyframes lpn-rot{to{transform:rotate(360deg)}}
@keyframes lpn-in{from{opacity:0;transform:translate(-50%,18px) scale(.97)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@media (prefers-reduced-motion:reduce){#root .lp .lp-notice,#root .lp .lp-notice .lp-spin{animation:none}}

/* lpn-camada (11/11/2026): o aviso fixo ficava preso na camada do .lp e o rodapé do site passava por cima ao rolar.
   Enquanto a busca está ativa, a camada do lobby sobe acima do rodapé e o cartão fica 100% opaco. */
#root .lp:has(.lp-notice){position:relative;z-index:80}
html.lpm #root .lp:has(.lp-notice){position:fixed}
#root .lp .lp-notice{z-index:90;background:linear-gradient(160deg,#26163e 0%,#141426 60%)}

/* seo-home-fora (11/11/2026): ao navegar da home para outra tela pelo app (sem recarregar), o texto da home e o rodapé
   estático (fora do #root) ficavam na página e eram pintados por cima do lobby. Fora de "/" eles não aparecem. */
html[data-rota]:not([data-rota="/"]) #seo-home-content,
html[data-rota]:not([data-rota="/"]) #seo-home-footer{display:none !important}
/* no lobby do celular nada de rodapé atrás do painel fixo, e o painel acima de qualquer camada da página */
html.lpm #seo-home-content, html.lpm #seo-home-footer, html.lpm #root footer{display:none !important}
@media (max-width:760px){ html.lpm #root .lp{z-index:35} }
