/* ---------- Torneios ---------- */
.tr-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.tr-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.tr-card-body { display: grid; gap: 4px; min-width: 0; align-content: start; }
.tr-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tr-card-top strong { font-family: var(--font-display); font-size: 1.05rem; }
.tr-card-icon { width: 56px; height: 76px; border-radius: var(--r-sm); display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #f59e0b, #b45309); }
.tr-card-icon.is-lg { width: 96px; height: 132px; border-radius: var(--r-md); }
.tr-card-icon svg { width: 50%; height: 50%; }
.tr-status { font-size: .75rem; font-weight: 700; }
.tr-status.is-running { background: color-mix(in srgb, var(--success, #16a34a) 15%, transparent); color: var(--success, #15803d); border-color: transparent; }
.tr-status.is-signup { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.tr-champ { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #b45309; margin: 0; }
.tr-champ svg { width: 16px; height: 16px; }
.tr-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.tr-head .cover-lg { width: 96px; height: 132px; }
.tr-head-text { display: grid; gap: 4px; justify-items: start; }
.tr-head-text h1, .tr-head-text p { margin: 0; }
.tr-head-text svg { width: 15px; height: 15px; vertical-align: -2px; }
.tr-desc { white-space: pre-line; color: var(--text-2); max-width: 70ch; }
.tr-head-actions { display: grid; gap: 8px; justify-items: stretch; min-width: 200px; }
.tr-head-actions .btn { justify-content: center; }
.tr-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tr-format { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); cursor: pointer; color: inherit; font: inherit; }
.tr-format small { color: var(--text-2); line-height: 1.35; }
.tr-format.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
.tr-players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.tr-players li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tr-player { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tr-player a { color: inherit; text-decoration: none; }
.tr-player a:hover { text-decoration: underline; }
.tr-player.is-dropped { opacity: .55; text-decoration: line-through; }
.tr-pick { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; max-height: 260px; overflow: auto; }
.tr-round { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tr-match { display: grid; gap: 6px; align-content: start; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid transparent; }
.tr-match.is-mine { border-color: var(--primary); }
.tr-match.is-bye { opacity: .75; }
.tr-match-players { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tr-match-players li { display: flex; align-items: center; gap: 8px; font-size: .9rem; min-height: 24px; }
.tr-match-players li.is-winner { font-weight: 700; }
.tr-place { width: 24px; font-weight: 800; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tr-score-v { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-2); }
.tr-crown { width: 16px; height: 16px; color: #d97706; }
.tr-match .btn { justify-self: start; }
.tr-report { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-report li { display: grid; grid-template-columns: auto minmax(0, 1fr) 90px; gap: 10px; align-items: center; }
.tr-report select { width: 72px; }
.tr-winner { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; grid-column: 1 / 3; }
.tr-winner.on { border-color: #d97706; background: color-mix(in srgb, #f59e0b 10%, transparent); }
.tr-winner svg { width: 16px; height: 16px; color: #d97706; margin-left: auto; }
.tr-standings { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tr-standings th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.tr-standings td { padding: 8px; border-bottom: 1px solid var(--border); }
.tr-standings tr.is-me td { background: var(--primary-soft); }
.tr-standings tr.is-first td { font-weight: 600; }
.tr-rank { width: 36px; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tr-rank svg { width: 18px; height: 18px; color: #d97706; }
.tr-bracket-box { overflow-x: auto; }
.tr-bracket-group + .tr-bracket-group { margin-top: 16px; }
.tr-bracket-group h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin: 0 0 8px; }
.tr-bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px; }
.tr-col { display: grid; grid-template-rows: auto 1fr; gap: 8px; }
.tr-col-title { font-weight: 700; color: var(--text-2); }
.tr-col-matches { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.tr-match.is-compact { padding: 8px 10px; }
@media (max-width: 760px) {
  .tr-head { grid-template-columns: auto minmax(0, 1fr); }
  .tr-head .cover-lg, .tr-card-icon.is-lg { width: 64px; height: 88px; }
  .tr-head-actions { grid-column: 1 / -1; min-width: 0; }
  .tr-formats { grid-template-columns: minmax(0, 1fr); }
  .tr-standings th:nth-child(4), .tr-standings td:nth-child(4), .tr-standings th:nth-child(5), .tr-standings td:nth-child(5) { display: none; }
}
