.tournamentDialog{width:min(700px,94vw);max-height:90dvh;overflow:auto;padding:22px;border:2px solid #53d7d0;background:#0c1424;color:#eff8ff}
.tournamentDialog::backdrop{background:#020713cf}.tournamentHeader{display:flex;gap:12px;align-items:center;justify-content:space-between}.tournamentHeader h2{margin:0}.tournamentHeader button{width:auto;flex:none}.tournamentFields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tournamentDialog input,.tournamentDialog select{max-width:100%;box-sizing:border-box}.tournamentDialog label{display:block;margin:12px 0}.tournamentDialog .tournamentCheck{display:flex;gap:12px;align-items:center}.tournamentCheck input{width:20px;height:20px;flex:none}.tournamentPath{font-family:monospace;font-size:clamp(16px,3vw,23px);color:#80e7bb;line-height:1.6;overflow-wrap:anywhere}.tournamentRow{padding:12px 0;border-bottom:1px solid #33435d}.tournamentRoom{padding:6px;border-left:3px solid #53d7d0}#tournamentError{color:#ffc699;white-space:pre-wrap}#tournamentBadge{position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:48;font-size:13px;max-width:55vw;background:#13253b;color:#bfffe6;border:1px solid #5bcda9;padding:9px 12px}.inMatch #tournamentBadge{bottom:auto;top:max(8px,env(safe-area-inset-top));font-size:11px;padding:5px 8px;max-width:42vw}.tournamentDialog details{margin:16px 0}.tournamentDialog summary{cursor:pointer}.tournamentDialog button{min-height:42px}.tournamentDialog button+button{margin:6px 0 0}.tournamentDialog p{line-height:1.45}#tournamentCurrent>button{display:block;width:100%}@media(max-width:400px){.tournamentDialog{padding:14px}.tournamentFields{gap:8px}.tournamentFields label{font-size:13px}}@media(max-height:460px){.tournamentDialog{max-height:94dvh;padding:12px}.tournamentHeader h2{font-size:22px}}
.inMatch #tournamentBadge{display:none}#matchCard.modal.tournamentResult{display:flex;align-items:center;justify-content:center}.tournamentDialog #tournamentCreate label{margin:8px 0}.tournamentDialog #tournamentCreate input,.tournamentDialog #tournamentCreate select{margin-top:4px}.tournamentDialog .tournamentCheck{margin:12px 0}
#matchCard.modal.tournamentResult{inset:0;transform:none;width:100%;height:100%;padding:12px}#matchCard.modal.tournamentResult .matchInner{width:min(620px,94vw)}
