/* Tournament (#/challenge/tournament): setup, pass-the-phone curtain, bracket, champion. Classes: tn-* */
.tn-names { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.tn-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tn-pass { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px 16px; margin: 12px 0; border: 1px solid var(--gold-dim); background: radial-gradient(420px 260px at 50% 0%, color-mix(in srgb, var(--c1, #d4af37) 30%, transparent), transparent 70%), var(--bg2); }
.tn-pass-k { font-family: var(--display); letter-spacing: .24em; font-size: 13px; color: var(--gold); }
.tn-pass-n { margin: 0; font-family: var(--display); font-size: clamp(36px, 10vw, 64px); letter-spacing: .04em; color: var(--gold2); overflow-wrap: anywhere; }
.tn-pass .btn-big { max-width: 100%; white-space: normal; }
.tn-locked { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tn-locked li { border: 1px solid var(--line2); padding: 4px 10px; display: flex; gap: 8px; align-items: baseline; }
.tn-dots { display: flex; gap: 6px; margin: 4px 0 10px; }
.tn-dots i { flex: 1; height: 6px; background: var(--bg4); }
.tn-dots i.done { background: var(--gold-dim); }
.tn-dots i.on { background: var(--gold2); }
.tn-me { margin-bottom: 10px; }
.tn-acts { margin: 8px 0 14px; }
.tn-bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.tn-col { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; }
.tn-col-k { font-family: var(--display); letter-spacing: .2em; font-size: 12px; color: var(--gold); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.tn-col-k small { color: var(--muted); letter-spacing: .12em; }
.tn-col-b { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; flex: 1; }
.tn-match { border: 1px solid var(--line2); background: var(--bg2); display: flex; flex-direction: column; }
.tn-match.live { border-color: var(--gold-dim); box-shadow: inset 0 0 0 1px var(--gold-dim); }
.tn-slot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-left: 4px solid var(--c1, var(--line2)); min-height: 46px; }
.tn-slot + .tn-slot { border-top: 1px solid var(--line); }
.tn-slot.tbd { color: var(--muted); border-left-color: var(--line); }
.tn-slot.lost { opacity: .5; }
.tn-slot.won .tn-nm b, .tn-slot.won .tn-w { color: var(--gold2); }
.tn-seed { font-family: var(--display); font-size: 12px; color: var(--muted); width: 14px; text-align: center; flex: none; }
.tn-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.tn-nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.tn-nm small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-w { font-family: var(--display); font-size: 22px; min-width: 18px; text-align: right; }
.tn-match-a { display: flex; gap: 6px; padding: 6px 10px; border-top: 1px solid var(--line); align-items: center; }
.tn-match-a .btn { min-height: 38px; }
.tn-rosters { margin-top: 18px; display: grid; gap: 6px; }
.tn-roster { border: 1px solid var(--line); border-left: 4px solid var(--c1, var(--line2)); background: var(--bg2); }
.tn-roster summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; min-height: 44px; }
.tn-roster summary small { margin-left: auto; color: var(--muted); }
.tn-roster ul { list-style: none; margin: 0; padding: 0 12px 10px; display: grid; gap: 2px; }
.tn-roster li { display: flex; gap: 8px; align-items: baseline; }
.tn-roster li b { margin-left: auto; }
.tn-champ { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 14px; margin: 10px 0; border: 1px solid var(--gold); background: radial-gradient(520px 320px at 50% 0%, color-mix(in srgb, var(--c1, #d4af37) 35%, transparent), transparent 70%), var(--bg2); }
.tn-champ-k { font-family: var(--display); letter-spacing: .4em; color: var(--gold); font-size: 16px; }
.tn-champ-n { margin: 0; font-family: var(--display); font-size: clamp(40px, 12vw, 86px); letter-spacing: .04em; color: var(--gold2); overflow-wrap: anywhere; line-height: 1; }
.tn-champ-five { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; width: min(100%, 460px); }
.tn-champ-five li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--bg3); border: 1px solid var(--line); text-align: left; }
.tn-champ-five li b:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-champ-five small { color: var(--muted); }
.tn-path { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 3px; width: min(100%, 460px); }
.tn-path li { display: flex; gap: 10px; justify-content: space-between; font-size: 14px; color: var(--text2); border-bottom: 1px solid var(--line); padding: 4px 0; }
.tn-path li span { font-family: var(--display); letter-spacing: .12em; color: var(--muted); font-size: 12px; }
.tn-path strong { font-family: var(--display); color: var(--gold2); }
@media (max-width: 640px) {
  .tn-bracket { grid-auto-columns: 86%; }
}
@media (min-width: 900px) {
  .tn-bracket { overflow-x: visible; }
}
.mm-grid .mt-tn { grid-column: 1 / -1; min-height: 78px; border-color: var(--gold-dim); background: linear-gradient(90deg, #17130a 0%, #050505 100%); }
.mm-grid .mt-tn .mt-l { font-size: clamp(22px, 3vw, 30px); color: var(--gold2); }

.tn-noR .tn-ovr, .tn-noR .ch-ovr { display: none !important; }
.tn-hk { margin-top: 12px; }
.tn-ai { display: inline-block; font-style: normal; font-size: 9px; letter-spacing: .12em; padding: 1px 5px; margin-left: 5px; border: 1px solid var(--gold-dim); color: var(--gold); border-radius: 3px; vertical-align: middle; }
.tn-cpu { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 20px 12px; }
.tn-cpu-t { font-family: var(--display); letter-spacing: .08em; margin: 0; }
.tn-dotsa i { font-style: normal; animation: tn-blink 1.2s infinite; }
.tn-dotsa i:nth-child(2) { animation-delay: .2s; }
.tn-dotsa i:nth-child(3) { animation-delay: .4s; }
@keyframes tn-blink { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }
.tn-cpu-l { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; text-align: left; }
.tn-cpu-c { padding: 10px; border: 1px solid var(--gold-dim); border-left: 4px solid var(--c1, #d4af37); background: var(--bg2); opacity: 0; animation: tn-cpuin .4s ease forwards; animation-delay: var(--d, 0s); }
@keyframes tn-cpuin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tn-cpu-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tn-cpu-c ol { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.tn-cpu-c ol li { margin: 3px 0; }

.tn-seats { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.tn-seat { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line, #333); border-radius: 6px; }
.tn-seat.on { background: rgba(255,255,255,.04); }
.tn-seat.me { border-color: var(--gold, #d4af37); }
.tn-seat b { flex: 1; }
.tn-seat small { color: var(--gold, #d4af37); letter-spacing: .1em; font-size: 10px; }
.tn-live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; flex: none; }
.tn-live.off { background: #888; }
.tn-pips { display: inline-flex; gap: 3px; }
.tn-pips u { width: 12px; height: 6px; background: #444; border-radius: 2px; }
.tn-pips u.on { background: var(--gold, #d4af37); }

.tn-pill { position: fixed; left: 8px; bottom: 56px; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(0,0,0,.88); border: 1px solid var(--gold-dim, #7a6a2a); border-radius: 8px; font-size: 11px; letter-spacing: .08em; max-width: calc(100vw - 16px); flex-wrap: wrap; }
.tn-pill select { background: #111; color: inherit; border: 1px solid #444; border-radius: 4px; padding: 3px; font: inherit; }

/* sign in card */
.pf-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.pf-row .field { flex: 1 1 160px; margin: 0; }
.pf-who { flex: 1; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
