/* Truco Online · Chaveamento do Torneio Rápido — 16/11/2026 */
html.tqc-lock, html.tqc-lock body { overflow: hidden; }
.tqc { position: fixed; inset: 0; z-index: 9996; display: flex; align-items: center; justify-content: center; padding: 18px; background: radial-gradient(900px 500px at 50% 0%, rgba(124, 58, 237, .35), transparent 60%), rgba(6, 4, 20, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: tqc-fade .25s ease both; font-family: Nunito, system-ui, sans-serif; color: #F0F1F9; }
@keyframes tqc-fade { from { opacity: 0; } }
.tqc-panel { width: min(1180px, 100%); max-height: calc(100vh - 36px); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1.5px solid transparent;
  background: linear-gradient(180deg, #1c1342, #120c2e) padding-box, linear-gradient(135deg, #fff3c4, #b57a12 30%, #ffe9a6 50%, #6b4204 75%, #f52ab6) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(245, 42, 182, .15); animation: tqc-pop .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tqc-pop { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.tqc-hd { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid rgba(178, 160, 255, .18); background: linear-gradient(90deg, rgba(245, 42, 182, .12), rgba(124, 58, 237, .06) 50%, transparent); }
.tqc-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #3a2200; background: linear-gradient(#fff3c4, #f2c14e 55%, #c98f1e); box-shadow: 0 6px 18px rgba(242, 193, 78, .35), inset 0 1px 0 #fff; }
.tqc-ic svg { width: 26px; height: 26px; }
.tqc-tt { min-width: 0; flex: 1; }
.tqc-tt h3 { margin: 0; font: 400 26px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .03em; }
.tqc-tt p { margin: 4px 0 0; font-size: 12.5px; color: #b9b6d6; font-weight: 700; }
.tqc-kpis { display: flex; gap: 8px; }
.tqc-kpis div { min-width: 86px; padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(178, 160, 255, .18); text-align: center; }
.tqc-kpis small { display: block; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #9c99bc; }
.tqc-kpis b { font: 400 22px/1.1 'Bebas Neue', Impact, sans-serif; letter-spacing: .03em; }
.tqc-kpis div:first-child b { color: #F7D774; }
.tqc-x { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(178, 160, 255, .25); background: rgba(255, 255, 255, .05); color: #fff; display: grid; place-items: center; cursor: pointer; }
.tqc-x svg { width: 18px; height: 18px; }
.tqc-x:hover { background: rgba(255, 255, 255, .12); }
.tqc-st { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 18px; font-size: 13.5px; border-bottom: 1px solid rgba(178, 160, 255, .12); }
.tqc-st b { font-weight: 900; }
.tqc-st span { color: #b9b6d6; font-weight: 700; }
.tqc-st.live { background: linear-gradient(90deg, rgba(239, 68, 68, .16), transparent 70%); }
.tqc-st.next { background: linear-gradient(90deg, rgba(34, 197, 94, .14), transparent 70%); }
.tqc-st.out { background: linear-gradient(90deg, rgba(148, 163, 184, .14), transparent 70%); }
.tqc-st.gold { background: linear-gradient(90deg, rgba(247, 215, 116, .25), transparent 70%); }
.tqc-st.gold b { color: #F7D774; }
.tqc-st.end { background: linear-gradient(90deg, rgba(124, 58, 237, .18), transparent 70%); }
.tqc-cta { margin-left: auto; border: 0; border-radius: 999px; padding: 9px 16px; font: 900 13px Nunito, sans-serif; color: #fff; cursor: pointer; background: linear-gradient(180deg, #ff5fcf, #F52AB6 55%, #c41592); box-shadow: 0 6px 18px rgba(245, 42, 182, .45); animation: tqc-call 2s ease-in-out infinite; }
@keyframes tqc-call { 50% { box-shadow: 0 6px 18px rgba(245, 42, 182, .45), 0 0 0 7px rgba(245, 42, 182, 0); transform: translateY(-1px); } }

/* ---------- chave ---------- */
.tqc-scroll { overflow: auto; padding: 18px 18px 8px; flex: 1; }
.tqc-br { --tqc-n: 4; --tqc-h: 104px; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 44px; min-width: max-content; }
.tqc-col h4 { margin: 0 0 12px; text-align: center; font: 900 11px/1 Nunito, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #9c99bc; padding: 7px 0; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(178, 160, 255, .14); }
.tqc-col.cur h4 { color: #fff; background: linear-gradient(90deg, rgba(245, 42, 182, .35), rgba(124, 58, 237, .3)); border-color: rgba(245, 42, 182, .5); }
.tqc-ms { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; height: calc(var(--tqc-n) * var(--tqc-h) + (var(--tqc-n) - 1) * 14px); }
.tqc-m { position: relative; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #241a52, #1a1340); border: 1px solid rgba(178, 160, 255, .2); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); transition: transform .2s, box-shadow .2s; animation: tqc-in .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tqc-in { from { opacity: 0; transform: translateX(-8px); } }
.tqc-m:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .45); }
.tqc-m.mine { border-color: rgba(245, 42, 182, .7); box-shadow: 0 0 0 1px rgba(245, 42, 182, .5), 0 10px 26px rgba(245, 42, 182, .2); }
.tqc-m.live { border-color: rgba(239, 68, 68, .65); }
.tqc-m.live::before { content: ''; position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .5); animation: tqc-blink 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes tqc-blink { 50% { box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0), 0 0 22px rgba(239, 68, 68, .25); } }
.tqc-p { display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 36px; border-bottom: 1px solid rgba(255, 255, 255, .06); transition: opacity .3s; }
.tqc-av { flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #3a2b7a; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
.tqc-av.l, .tqc-av.q { display: grid; place-items: center; font: 900 12px Nunito, sans-serif; color: #fff; }
.tqc-av.q { background: rgba(255, 255, 255, .06); color: #6f6c92; }
.tqc-nm { flex: 1; min-width: 0; font-weight: 800; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tqc-p.tbd .tqc-nm { color: #6f6c92; font-style: italic; font-weight: 700; }
.tqc-you { font-style: normal; font: 900 9.5px/1 Nunito, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #fff; padding: 3px 6px; border-radius: 6px; background: #F52AB6; }
.tqc-bot { font-style: normal; font: 800 9.5px/1 Nunito, sans-serif; color: #9c99bc; padding: 3px 5px; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.tqc-r { display: flex; align-items: center; gap: 6px; }
.tqc-sc { font: 400 18px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .03em; }
.tqc-ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #052e1a; background: linear-gradient(#8dffd2, #2fe0a0); }
.tqc-ok svg { width: 13px; height: 13px; }
.tqc-ko { font-style: normal; font: 900 9.5px/1 Nunito, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #fca5a5; padding: 3px 6px; border-radius: 6px; background: rgba(239, 68, 68, .14); }
.tqc-p.win { background: linear-gradient(90deg, rgba(47, 224, 160, .16), transparent 80%); }
.tqc-p.win .tqc-nm { color: #fff; }
.tqc-p.lose { opacity: .5; }
.tqc-p.lose .tqc-nm { text-decoration: line-through; text-decoration-color: rgba(252, 165, 165, .6); }
.tqc-p.me .tqc-nm { color: #ff9ee0; }
.tqc-mf { display: flex; justify-content: flex-end; padding: 5px 10px; }
.tqc-tag { font: 900 9.5px/1 Nunito, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8d8ab0; }
.tqc-tag.ok { color: #6ee7b7; }
.tqc-live { display: inline-flex; align-items: center; gap: 5px; font: 900 9.5px/1 Nunito, sans-serif; letter-spacing: .1em; color: #fca5a5; }
.tqc-live i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: tqc-dot 1.3s infinite; }
@keyframes tqc-dot { 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
/* linhas da chave */
.tqc-lines { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.tqc-lines path { fill: none; stroke: rgba(178, 160, 255, .25); stroke-width: 2; stroke-linejoin: round; }
.tqc-lines path.on { stroke: #F7D774; stroke-width: 2.5; filter: drop-shadow(0 0 4px rgba(247, 215, 116, .55)); stroke-dasharray: 600; stroke-dashoffset: 600; animation: tqc-draw .9s ease forwards; }
@keyframes tqc-draw { to { stroke-dashoffset: 0; } }
/* campeão */
.tqc-col.champ { min-width: 200px; }
.tqc-champ { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px 14px; border-radius: 18px; text-align: center; background: linear-gradient(180deg, rgba(247, 215, 116, .08), rgba(247, 215, 116, .02)); border: 1.5px dashed rgba(247, 215, 116, .35); }
.tqc-cup { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: rgba(247, 215, 116, .45); background: rgba(247, 215, 116, .08); }
.tqc-cup svg { width: 30px; height: 30px; }
.tqc-champ b { font: 400 22px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: .03em; }
.tqc-champ b.q { color: #6f6c92; }
.tqc-pz { font: 900 12px Nunito, sans-serif; color: #F7D774; padding: 4px 10px; border-radius: 999px; background: rgba(247, 215, 116, .1); border: 1px solid rgba(247, 215, 116, .35); }
.tqc-crown { position: absolute; top: -14px; color: #F7D774; filter: drop-shadow(0 2px 6px rgba(247, 215, 116, .6)); animation: tqc-crown 2.4s ease-in-out infinite; }
.tqc-crown svg { width: 28px; height: 28px; }
@keyframes tqc-crown { 50% { transform: translateY(-3px) rotate(-6deg); } }
.tqc-champ.on { border-style: solid; border-color: transparent; background: linear-gradient(180deg, #3b2a08, #1f1604) padding-box, linear-gradient(135deg, #fff3c4, #b57a12 40%, #ffe9a6 62%, #6b4204) border-box; box-shadow: 0 0 40px rgba(247, 215, 116, .3); animation: tqc-glow 2.4s ease-in-out infinite; }
.tqc-champ.on .tqc-cup { color: #3a2200; background: linear-gradient(#fff3c4, #f2c14e 55%, #c98f1e); box-shadow: 0 6px 18px rgba(242, 193, 78, .45); }
.tqc-champ.on b { color: #F7D774; }
.tqc-champ.me b { color: #fff; }
@keyframes tqc-glow { 50% { box-shadow: 0 0 60px rgba(247, 215, 116, .45); } }
.tqc-ft { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; padding: 10px 18px 14px; font-size: 11.5px; font-weight: 800; color: #9c99bc; border-top: 1px solid rgba(178, 160, 255, .12); }
.tqc-ft span { display: inline-flex; align-items: center; gap: 6px; }
.tqc-ft .lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.tqc-ft .lg.win { background: linear-gradient(#8dffd2, #2fe0a0); }
.tqc-ft .lg.lose { background: rgba(239, 68, 68, .45); }
.tqc-ft .lg.live { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, .7); }
.tqc-ft .lg.me { background: #F52AB6; }
/* botão flutuante */
.tqc-fab { position: fixed; left: 16px; bottom: 16px; z-index: 9989; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px; cursor: pointer; color: #fff; font-family: Nunito, system-ui, sans-serif; text-align: left;
  border: 1.5px solid transparent; background: linear-gradient(180deg, #2a1d5c, #1a1340) padding-box, linear-gradient(135deg, #fff3c4, #b57a12 40%, #ffe9a6 62%, #6b4204) border-box; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 24px rgba(247, 215, 116, .2); animation: tqc-pop .35s both; }
.tqc-fab > svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; color: #3a2200; background: linear-gradient(#fff3c4, #f2c14e 55%, #c98f1e); }
.tqc-fab span { display: flex; flex-direction: column; line-height: 1.15; }
.tqc-fab b { font-size: 13px; font-weight: 900; }
.tqc-fab small { font-size: 11px; font-weight: 800; color: #F7D774; }
.tqc-fab:hover { transform: translateY(-2px); }
.tqc-fab.on-table { top: 70px; bottom: auto; left: auto; right: 14px; padding: 6px 12px 6px 6px; }
@media (max-width: 999.98px) { html.la-on .tqc-fab:not(.on-table) { bottom: 96px; } }
@media (max-width: 640px) {
  .tqc { padding: 0; }
  .tqc-panel { max-height: 100vh; height: 100%; border-radius: 0; }
  .tqc-kpis { display: none; }
  .tqc-br { grid-auto-columns: 200px; gap: 30px; }
  .tqc-st { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .tqc *, .tqc, .tqc-fab { animation: none !important; } .tqc-lines path.on { stroke-dashoffset: 0; } }
/* ---------- v3: duplas ---------- */
.tqc-br.duo { --tqc-h: 128px; grid-auto-columns: minmax(236px, 1fr); }
.tqc-p.duo { min-height: 46px; }
.tqc-avs { flex: none; display: flex; }
.tqc-avs .tqc-av { width: 24px; height: 24px; }
.tqc-avs .tqc-av + .tqc-av { margin-left: -9px; box-shadow: 0 0 0 2px #1d1546; }
.tqc-nm2 { display: flex; flex-direction: column; line-height: 1.2; }
.tqc-nm2 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tqc-nm2 span + span { font-size: 12.5px; }
.tqc-champ.duo b { font-size: 20px; }
.tqc-pz2 { font: 800 11px Nunito, sans-serif; color: #c9b98a; }
.tqc-note { margin: 0 0 12px; font: 800 11.5px Nunito, sans-serif; color: #9c99bc; }
/* ---------- v3: chave embutida (aba Torneios / página do torneio) ---------- */
.tqc-inline { position: relative; margin: 6px 0 4px; border-radius: 18px; overflow: hidden; color: #F0F1F9; font-family: Nunito, system-ui, sans-serif; text-align: left;
  border: 1px solid rgba(178, 160, 255, .2); background: linear-gradient(180deg, #1c1342, #120c2e); box-shadow: 0 14px 36px rgba(0, 0, 0, .35); }
.tqc-inline .tqc-scroll { overflow-x: auto; overflow-y: visible; }
/* a lista é redesenhada a cada atualização: sem animação de entrada repetida */
.tqc-inline .tqc-m { animation: none; }
.tqc-inline .tqc-lines path.on { animation: none; stroke-dashoffset: 0; }
@media (max-width: 640px) { .tqc-inline { border-radius: 14px; } .tqc-br.duo { grid-auto-columns: 214px; } }
/* dentro da página/aba de torneios (.tp zera padding/margin): repõe o espaçamento da chave */
.tp .tqc-inline .tqc-st { padding: 11px 18px; }
.tp .tqc-inline .tqc-scroll { padding: 18px 18px 10px; }
.tp .tqc-inline .tqc-note { margin: 0 0 12px; }
.tp .tqc-inline .tqc-p { padding: 8px 10px; }
.tp .tqc-inline .tqc-mf { padding: 5px 10px; }
.tp .tqc-inline .tqc-ft { padding: 10px 18px 14px; }
.tp .tqc-inline .tqc-champ { padding: 18px 14px 14px; }
.tp .tqc-inline .tqc-you, .tp .tqc-inline .tqc-ko { padding: 3px 6px; }
.tp .tqc-inline .tqc-bot { padding: 3px 5px; }
.tp .tqc-inline .tqc-pz { padding: 4px 10px; }
.tp .tqc-inline .tqc-cta { padding: 9px 16px; }
.tp .panel > .tqc-inline { margin: 0; border-radius: 0 0 14px 14px; border-width: 1px 0 0; box-shadow: none; }
