/* Truco Online · Torneio Rápido (camada sobre o lobby) — 16/11/2026 */
#trq-sec { display: none; }
main.lp-wrap.trq-on #trq-sec { display: block; }
main.lp-wrap.trq-on > section:not(#trq-sec), main.lp-wrap.trq-on > .lp-subrow { display: none !important; }
/* com o torneio ativo, Solo/Dupla aparecem soltos */
main.lp-wrap.trq-on .lp-seg button[aria-pressed="true"]:not([data-trq]) { background: transparent; color: var(--lp-mut, #9aa0b8); }
.lp-seg .trq-segbtn svg { color: #FBBF24; }
.lp-seg .trq-segbtn[aria-pressed="true"] svg { color: #fff; }

#trq-sec .trq-head h2 { display: inline-flex; align-items: center; gap: 8px; }
#trq-sec .trq-head h2 svg { color: #FBBF24; width: 18px; height: 18px; }
.trq-sub { color: var(--lp-mut, #9aa0b8); font-size: 13.5px; line-height: 1.5; margin: 6px 0 14px; max-width: 760px; }
.trq-sub b { color: var(--lp-txt, #F0F1F9); }
.trq-sub.is-test { color: #FBBF24; font-size: 12.5px; margin-top: -8px; }

.lp-card.trq-card { height: auto; min-height: 0; padding-bottom: 12px; }
.trq-card .trq-prize { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 8px auto 2px; padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(180deg, #F7D774, #D9A62E); color: #3a2a05; font-weight: 900; font-size: 13.5px; font-variant-numeric: tabular-nums; box-shadow: 0 2px 10px rgba(217, 166, 46, .25); }
.trq-card .trq-prog { display: flex; align-items: center; gap: 8px; align-self: stretch; width: 100%; box-sizing: border-box; padding: 0 2px; margin: 10px 0 8px; }
.trq-card .trq-bar { flex: 1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.trq-card .trq-bar i { display: block; height: 100%; width: 0; background: var(--lp-mag, #F52AB6); border-radius: 4px; transition: width .35s ease; }
.trq-card .trq-fill { flex: none; font-size: 11.5px; font-weight: 800; color: var(--lp-mut, #9aa0b8); font-variant-numeric: tabular-nums; }
.trq-card.is-mine { outline: 2px solid var(--lp-mag, #F52AB6); outline-offset: -2px; }
.trq-card.is-mine .lp-go { background: rgba(245, 42, 182, .14); color: var(--lp-mag, #F52AB6); }
.trq-card.is-mine .trq-bar i { animation: trq-pulse 1.6s ease-in-out infinite; }
@keyframes trq-pulse { 50% { opacity: .55; } }

/* pílula "na fila" */
.trq-pill { position: fixed; left: 16px; bottom: 16px; z-index: 9990; display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px;
  background: #1b1b30; color: #F0F1F9; border: 1px solid rgba(245, 42, 182, .45); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  font-family: Nunito, system-ui, sans-serif; cursor: pointer; max-width: calc(100vw - 32px); }
.trq-pill > svg { color: #FBBF24; flex: none; }
.trq-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: trq-ping 1.6s infinite; flex: none; }
@keyframes trq-ping { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.trq-pill-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.trq-pill-t b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trq-pill-t small { font-size: 11.5px; color: #9aa0b8; font-variant-numeric: tabular-nums; }
.trq-pill-x { border: 0; background: rgba(255, 255, 255, .08); color: #F0F1F9; font: 800 12px Nunito, system-ui, sans-serif; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.trq-pill-x:hover { background: rgba(255, 255, 255, .16); }

/* modal */
.trq-modal { position: fixed; inset: 0; z-index: 9995; background: rgba(8, 8, 18, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.trq-dlg { width: 100%; max-width: 380px; background: #17172a; color: #F0F1F9; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 22px 20px 18px; text-align: center; font-family: Nunito, system-ui, sans-serif; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.trq-dlg-ico { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 191, 36, .12); color: #FBBF24; }
.trq-dlg-ico svg { width: 22px; height: 22px; }
.trq-dlg h3 { margin: 0; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 28px; letter-spacing: .5px; font-weight: 400; }
.trq-dlg-sub { color: #9aa0b8; font-size: 13.5px; margin: 4px 0 14px; }
.trq-dl { margin: 0 0 12px; text-align: left; background: rgba(255, 255, 255, .03); border-radius: 12px; padding: 4px 14px; }
.trq-dl > div { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.trq-dl > div:last-child { border-bottom: 0; }
.trq-dl dt { color: #9aa0b8; }
.trq-dl dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.trq-dl .is-tot dd { color: #fff; }
.trq-dl .is-prize dd { color: #F7D774; }
.trq-dlg-note { font-size: 12.5px; color: #9aa0b8; margin: 0 0 16px; }
.trq-dlg-act { display: flex; gap: 10px; }
.trq-btn { flex: 1; border: 0; border-radius: 999px; padding: 12px 14px; font: 900 14px Nunito, system-ui, sans-serif; cursor: pointer; background: var(--lp-mag, #F52AB6); color: #fff; }
.trq-btn.is-ghost { background: rgba(255, 255, 255, .07); color: #F0F1F9; }

/* toast */
.trq-toast { position: fixed; left: 50%; top: 18px; z-index: 9999; transform: translate(-50%, -140%); transition: transform .25s ease; background: #1f1f36; color: #F0F1F9;
  padding: 11px 16px; border-radius: 12px; font: 700 14px Nunito, system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); border-left: 4px solid #9aa0b8; max-width: calc(100vw - 32px); }
.trq-toast.is-on { transform: translate(-50%, 0); }
.trq-toast.is-ok { border-left-color: #22c55e; }
.trq-toast.is-err { border-left-color: #ef4444; }

@media (max-width: 640px) {
  .lp-seg .trq-segbtn span { font-size: 12.5px; }
  .trq-pill { left: 10px; right: 10px; bottom: 10px; }
  .trq-pill-t { flex: 1; }
}

/* ---------- animações dos cartões (16/11/2026) ---------- */
#trq-sec.is-in .trq-card { animation: trq-in .5s cubic-bezier(.2, .8, .2, 1) both; }
#trq-sec.is-in .trq-card:nth-child(2) { animation-delay: .04s; } #trq-sec.is-in .trq-card:nth-child(3) { animation-delay: .08s; }
#trq-sec.is-in .trq-card:nth-child(4) { animation-delay: .12s; } #trq-sec.is-in .trq-card:nth-child(5) { animation-delay: .16s; }
#trq-sec.is-in .trq-card:nth-child(6) { animation-delay: .2s; } #trq-sec.is-in .trq-card:nth-child(7) { animation-delay: .24s; }
#trq-sec.is-in .trq-card:nth-child(8) { animation-delay: .28s; } #trq-sec.is-in .trq-card:nth-child(n+9) { animation-delay: .32s; }
@keyframes trq-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.lp-card.trq-card { position: relative; overflow: hidden; transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, border-color .22s; }
.lp-card.trq-card::after { content: ''; position: absolute; top: -40%; left: -80%; width: 55%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13), transparent); transform: rotate(16deg); pointer-events: none; transition: left .7s ease; }
.lp-card.trq-card:not(:disabled):hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(245, 42, 182, .35), 0 0 28px rgba(245, 42, 182, .18); }
.lp-card.trq-card:not(:disabled):hover::after { left: 130%; }
.lp-card.trq-card:not(:disabled):active { transform: translateY(-2px) scale(.98); }
/* botão ENTRAR: preenche em magenta no hover, com seta e brilho */
.trq-card .lp-go { position: relative; overflow: hidden; transition: background .2s, color .2s, box-shadow .2s, letter-spacing .2s; }
.trq-card:not(:disabled):hover .lp-go { background: linear-gradient(180deg, #ff5fcf, #F52AB6 55%, #c41592); color: #fff; box-shadow: 0 6px 18px rgba(245, 42, 182, .45), inset 0 1px 0 rgba(255, 255, 255, .35); letter-spacing: .08em; }
.trq-card .lp-go::after { content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); }
.trq-card:not(:disabled):hover .lp-go::after { animation: trq-go 1.1s ease-in-out infinite; }
@keyframes trq-go { to { left: 130%; } }
/* fila com gente: ENTRAR pulsa para chamar */
.trq-card.is-hot:not(:disabled) .lp-go { animation: trq-call 2.2s ease-in-out infinite; }
@keyframes trq-call { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 42, 182, .45); } 50% { box-shadow: 0 0 0 7px rgba(245, 42, 182, 0); } }
/* prêmio com reflexo dourado */
.trq-card .trq-prize { background-size: 220% 100%; background-image: linear-gradient(110deg, #D9A62E 0%, #F7D774 30%, #fff6cf 45%, #F7D774 60%, #D9A62E 100%); animation: trq-gold 3.4s linear infinite; }
@keyframes trq-gold { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.trq-card:not(:disabled):hover .trq-prize svg { animation: trq-bounce .6s ease; }
@keyframes trq-bounce { 40% { transform: translateY(-3px) rotate(-10deg); } }
/* barra da fila com listras andando */
.trq-card .trq-bar i { background-image: linear-gradient(135deg, rgba(255, 255, 255, .25) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .25) 50%, rgba(255, 255, 255, .25) 75%, transparent 75%); background-size: 10px 10px; background-color: var(--lp-mag, #F52AB6); animation: trq-stripe .8s linear infinite; }
@keyframes trq-stripe { to { background-position: 10px 0; } }
.trq-segbtn svg { transition: transform .3s; }
.lp-seg .trq-segbtn:hover svg { transform: rotate(-12deg) scale(1.2); }
.lp-seg .trq-segbtn[aria-pressed="true"] svg { animation: trq-zap 2.4s ease-in-out infinite; }
@keyframes trq-zap { 0%, 80%, 100% { transform: none; } 85% { transform: scale(1.3) rotate(-10deg); } 90% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .trq-card, .trq-card *, .trq-segbtn svg { animation: none !important; transition: none !important; } }

/* ---------- cartões no estilo do lobby oficial (lobby-v2, claros) — 16/11/2026 ---------- */
#root .lp main.lp-wrap.trq-on .lp-seg button[aria-pressed="true"]:not([data-trq]) { background: transparent !important; color: inherit !important; box-shadow: none !important; opacity: .75; }
#root .lp .lp-card.trq-card .trq-prog { margin: 10px 0 6px; }
#root .lp .lp-card.trq-card .trq-bar { background: rgba(20, 22, 48, .12); height: 6px; }
#root .lp .lp-card.trq-card .trq-fill { color: #4b5068; font-weight: 900; }
#root .lp .lp-card.trq-card .trq-prize { color: #3a2a05; margin: 6px auto 0; }
#root .lp .lp-card.trq-card[data-tier="vip"] .trq-fill { color: rgba(255, 255, 255, .8); }
#root .lp .lp-card.trq-card[data-tier="vip"] .trq-bar { background: rgba(255, 255, 255, .18); }
#root .lp .lp-card.trq-card.is-mine { outline: 3px solid #F52AB6; outline-offset: -3px; }
#root .lp .lp-card.trq-card:not(:disabled):hover { box-shadow: 0 16px 32px rgba(0, 0, 0, .45), 0 0 0 2px rgba(245, 42, 182, .55), 0 0 30px rgba(245, 42, 182, .25); }
#root .lp .lp-card.trq-card::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); }

#root .lp .lp-card.trq-card .lp-card-val::after { content: "Torneio" !important; }
/* 16/11/2026: selo de duplas no cartão */
.trq-card .trq-duo { position: relative; z-index: 2; width: max-content; margin: 6px auto 0; display: flex; align-items: center; gap: 4px; padding: 3px 7px 3px 6px; border-radius: 999px;
  font: 900 9.5px/1 Nunito, system-ui, sans-serif; letter-spacing: .08em; color: #fff; background: linear-gradient(180deg, #8b5cf6, #6d28d9); box-shadow: 0 3px 10px rgba(109, 40, 217, .45), inset 0 1px 0 rgba(255, 255, 255, .35); pointer-events: none; }
.trq-card .trq-duo svg { width: 12px; height: 12px; }
.trq-card:not(:disabled):hover .trq-duo { animation: trq-duo .6s ease; }
@keyframes trq-duo { 40% { transform: translateY(-2px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .trq-card .trq-duo { animation: none !important; } }
#la-tor-trq #trq-sec { display: block; }
