/* Match previews and tournament discoveries share the public light/dark palette. */
.tl-tournament-explore{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tl-tournament-explore a{display:grid;gap:6px;padding:20px;border:1px solid var(--tl-line);border-radius:8px;background:var(--tl-surface);color:var(--tl-text);text-decoration:none}
.tl-tournament-explore a strong{font-size:1rem;color:var(--tl-accent)}
.tl-tournament-explore a span{font-size:.8rem;color:var(--tl-muted);line-height:1.5}
.tl-tournament-explore a:hover{border-color:var(--tl-accent)}
.tl-match .tl-match-preview-button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;margin-top:3px;padding:5px 0;border:0;border-radius:0;background:transparent;color:var(--tl-accent);font:inherit;font-size:.78rem;font-weight:500;cursor:pointer}
.tl-match .tl-match-preview-button:hover{border-color:var(--tl-accent)}
.tl-match-preview{color:var(--tl-text);padding:4px 0}
.tl-match-preview .tl-caption{font-size:.8rem;line-height:1.5}
.tl-preview-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.tl-preview-player{min-width:0;padding:12px;border:0;border-radius:0;background:transparent;overflow-wrap:anywhere}
.tl-preview-player h3{font-size:1rem;line-height:1.4;margin:10px 0 16px}
.tl-preview-portrait{display:flex;align-items:center;justify-content:center;width:52px;height:52px;object-fit:cover;border-radius:50%;background:var(--tl-line);color:var(--tl-accent);font-size:1.05rem;font-weight:600}
.tl-preview-portrait img{width:100%;height:100%;border-radius:inherit;object-fit:cover}
.tl-preview-stats{margin:0;display:grid;gap:10px}
.tl-preview-stats>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.tl-preview-stats dt{font-size:.72rem;color:var(--tl-muted);line-height:1.4}
.tl-preview-stats dd{margin:0;font-size:1.1rem;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.tl-preview-h2h{border-top:1px solid var(--tl-line);padding-top:16px;margin-top:18px;line-height:1.6}
.tl-preview-h2h h3{font-size:1rem;margin:0 0 8px}
.tl-preview-h2h p{margin:8px 0;font-size:.85rem}
.tl-preview-h2h-list{list-style:none;padding:0;margin:12px 0;display:grid;gap:9px;font-size:.83rem}
.tl-preview-h2h-list li{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-top:1px solid var(--tl-line)}
.tl-close-matches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0;padding:0;list-style:none}
.tl-close-match{min-width:0;padding:20px;border:1px solid var(--tl-line);border-radius:8px;background:var(--tl-surface)}
.tl-close-phase{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 16px;font-size:.73rem;line-height:1.5;color:var(--tl-muted)}
.tl-close-pairing{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;font-size:.9rem;line-height:1.4;overflow-wrap:anywhere}
.tl-close-pairing>span:last-child{text-align:right}
.tl-close-pairing>span:last-child .tl-close-avg{justify-content:end}
.tl-close-match h3{font-size:1rem;line-height:1.5;margin:12px 0;overflow-wrap:anywhere}
.tl-close-match .tl-caption{font-size:.75rem}
.tl-close-score{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid var(--tl-line);border-radius:9px;background:var(--tl-panel);color:var(--tl-accent);font:inherit;font-size:1.15rem;font-weight:600;cursor:pointer;font-variant-numeric:tabular-nums}
.tl-close-avg{display:flex;gap:6px 14px;flex-wrap:wrap;margin:12px 0 0;color:var(--tl-muted);font-size:.77rem;line-height:1.6;font-variant-numeric:tabular-nums}
.tl-recordbook-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}
.tl-recordbook-card{min-width:0;padding:16px;border:1px solid var(--tl-line);border-radius:8px;background:var(--tl-surface)}
.tl-recordbook-card h3{margin:0 0 14px;font-size:.95rem;line-height:1.4}
.tl-recordbook-value{margin:0 0 20px;font-size:clamp(1.9rem,4vw,2.7rem);font-weight:600;letter-spacing:-.035em;line-height:1.15;color:var(--tl-accent);font-variant-numeric:tabular-nums}
.tl-recordbook-value small{font-size:.75rem;letter-spacing:normal;font-weight:500}
.tl-recordbook-holders{list-style:none;margin:0;padding:0;display:grid;gap:18px}
.tl-recordbook-holder{display:grid;gap:5px;overflow-wrap:anywhere}
.tl-recordbook-holder+.tl-recordbook-holder{padding-top:16px;border-top:1px solid var(--tl-line)}
.tl-recordbook-name{font-size:.9rem;font-weight:500;}
.tl-recordbook-opponent,.tl-recordbook-phase,.tl-recordbook-evidence{font-size:.73rem;color:var(--tl-muted);line-height:1.5}
.tl-recordbook-open{justify-self:start;min-height:44px;margin-top:5px;padding:8px 12px;background:var(--tl-panel);border:1px solid var(--tl-line);border-radius:8px;font:inherit;font-size:.75rem;font-weight:600;color:var(--tl-accent);cursor:pointer}
.tl-recordbook-empty,.tl-recordbook-note{font-size:.8rem;line-height:1.6;color:var(--tl-muted)}
.tl-round-review-branch{margin-top:22px}
.tl-round-review-note{font-size:.83rem;line-height:1.6;color:var(--tl-muted)}
.tl-round-review-branch>h3{font-size:1rem;margin:0 0 12px}
.tl-round-review-round{margin:10px 0;border:1px solid var(--tl-line);border-radius:8px;background:var(--tl-surface);overflow:hidden}
.tl-round-review-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:60px;padding:16px 20px;cursor:pointer;list-style:none}
.tl-round-review-summary::-webkit-details-marker{display:none}
.tl-round-review-title{display:flex;align-items:center;gap:10px;font-size:.93rem;font-weight:600}
.tl-round-review-title::before{content:'›';font-size:1.4rem;color:var(--tl-accent);line-height:1;transition:transform .15s ease}
.tl-round-review-round[open]>.tl-round-review-summary .tl-round-review-title::before{transform:rotate(90deg)}
.tl-round-review-progress{color:var(--tl-muted);font-size:.73rem;text-align:right;line-height:1.4}
.tl-round-review-matches{border-top:1px solid var(--tl-line);padding:0 20px}
.tl-round-review-match{padding:18px 0}
.tl-round-review-match+.tl-round-review-match{border-top:1px solid var(--tl-line)}
.tl-round-review-pairing{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
.tl-round-review-player{display:flex;flex-direction:column;align-items:start;gap:5px;min-width:0;font-size:.88rem;line-height:1.4;overflow-wrap:anywhere}
.tl-round-review-player:last-child{text-align:right;align-items:end}
.tl-round-review-player.is-winner{color:var(--tl-accent)}
.tl-round-review-avg{font-size:.7rem;font-weight:500;color:var(--tl-muted);font-variant-numeric:tabular-nums}
.tl-round-review-result{display:inline-flex;justify-content:center;align-items:center;min-width:65px;max-width:160px;min-height:44px;padding:8px 12px;border:1px solid var(--tl-line);border-radius:8px;background:var(--tl-panel);color:var(--tl-accent);font:inherit;font-size:.87rem;font-weight:600;text-decoration:none;text-align:center;cursor:pointer;font-variant-numeric:tabular-nums}
.tl-round-review-advance{margin:12px 0 0;font-size:.75rem;line-height:1.5;color:var(--tl-muted);overflow-wrap:anywhere}
.tl-round-review-advance a{color:var(--tl-accent);text-underline-offset:3px}
.tl-tournament-explore a:focus-visible,.tl-match-preview-button:focus-visible,.tl-close-score:focus-visible,.tl-recordbook-open:focus-visible,.tl-round-review-summary:focus-visible,.tl-round-review-result:focus-visible{outline:2px solid var(--tl-accent);outline-offset:3px}
@media(max-width:700px){
  .tl-tournament-explore{grid-template-columns:1fr;gap:9px}
  .tl-tournament-explore a{padding:16px}
  .tl-preview-players{gap:9px}
  .tl-preview-player{padding:12px;
  border:0;
  border-radius:0;
  background:transparent;}
  .tl-preview-player h3{font-size:.88rem;min-height:2.8em}
  .tl-preview-stats>div{align-items:start;flex-direction:column;gap:2px}
  .tl-preview-stats dd{font-size:1.25rem}
  .tl-close-matches,.tl-recordbook-grid{grid-template-columns:1fr}
  .tl-close-pairing{font-size:.8rem;gap:8px}
  .tl-close-score{padding:8px 10px;font-size:1rem}
  .tl-recordbook-card{padding:16px;}
  .tl-recordbook-value{font-size:2.5rem}
  .tl-round-review-summary{padding:14px}
  .tl-round-review-title{font-size:.85rem}
  .tl-round-review-matches{padding:0 14px}
  .tl-round-review-pairing{gap:8px}
  .tl-round-review-player{font-size:.8rem}
  .tl-round-review-result{min-width:52px;max-width:100px;padding:8px;font-size:.78rem}
}
@media(prefers-reduced-motion:reduce){.tl-round-review-title::before{transition:none}}
