/* Le règlement, les tableaux et les cartes de parcours utilisent les composants WLS de wls.css. */
.tournoi-vues{display:block;min-width:0}
.tournoi-vues .wtable{max-width:100%}
.tournoi-classement .swiss-standings{table-layout:auto}
.tournoi-vues .lb :is(td,th){padding:.5rem .75rem;border-color:currentColor;border-bottom-color:var(--bd);font-size:inherit;text-align:center}
.tournoi-vues .lb th{font-weight:700;color:#fff}
.tournoi-vues .lb .a{text-align:right}.tournoi-vues .lb .left{text-align:left}
.tournoi-vues .lb .s{padding-inline:1rem}
.tournoi-vues .lb :is(tr:focus-within,tr.mine-r){box-shadow:inset 3px 0 var(--ev);background:color-mix(in srgb,var(--ev) 9%,transparent)}
.tournoi-vues .lb tr:focus-within{outline:1px solid var(--ev);outline-offset:-1px}
.tournoi-vues .lb .st .status.long{white-space:normal}
.tournoi-vues .lb .st .status:before{flex-shrink:0}
.tournoi-vues .mt td.n{overflow-wrap:anywhere;white-space:normal}
.tournoi-vues .mt .tc{justify-content:center}
.tournoi-vues .mt .tc .who.tbd{color:var(--muted)}
.tournoi-vues .mt .tc>.who:where(:has(>.pl:nth-of-type(2):last-of-type)){
  display:grid;
  width:min(100%,232px);
  grid-template-columns:minmax(0,1fr) 8px minmax(0,1fr);
  gap:4px;
  text-align:left;
}
.tournoi-vues .mt .tc>.who:has(>.pl:nth-of-type(2):last-of-type)>.sep{text-align:center}
.tournoi-vues .tc .cup-player,.tournoi-vues .duo .pl{flex-shrink:1;min-width:0}
.tournoi-vues .tc .cup-player{font-weight:400}
.tournoi-vues .tc .cup-player .av{width:26px;height:26px}
.tournoi-vues .mt .mobile-match-state{display:none}
.tournoi-vues .mt .status{max-width:100%;white-space:normal}
.tournoi-vues .mt .status::before{flex:none}
.tournoi-vues .seg button{white-space:nowrap}
#teams-view .lb-empty-participants td{text-align:center;white-space:normal}
#teams-view .tools{flex-wrap:wrap;min-width:0;max-width:100%}
.teams-reserves{margin-top:24px;scroll-margin-top:68px}
.teams-reserves h2{margin:0 0 8px;font-size:1.1rem;font-weight:500}
.tournoi-vues .tc.f1 .cup-player .av{width:16px;height:16px}.tournoi-vues .tc.f2 .cup-player .av{width:14px;height:14px}
.tournoi-vues .tc:has(.pl:nth-of-type(3)) .who{flex-wrap:wrap;justify-content:center}
.tournoi-vues .duo.multi-duo{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:6px}
.tournoi-vues .mg-head h3{font-size:1.1rem;font-weight:500;line-height:1.5}
.tournoi-vues .toolbar p,.tournoi-vues .rtoc p,.tournoi-parcours p{line-height:1.5}
#cup-app .tournoi-vues .lbs :is(input,select){border:1px solid #818181;border-radius:0;height:32px;background-color:#0c0c0c;color:#fff}
#cup-app .tournoi-vues .lbs input{width:250px;padding:0 10px;line-height:1.5}
#cup-app .tournoi-vues .lbs select{padding:0 26px 0 10px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23fff'/%3E%3C/svg%3E");background-position:right 9px center;background-repeat:no-repeat;background-size:9px}
#cup-app .tournoi-vues .lbs :is(input,select):is(:hover,:focus-visible){border-color:var(--ev)}
.tournoi-parcours{--modal-width:500px}
.tournoi-parcours .mem-t b{min-width:0;overflow-wrap:anywhere}
.parcours-body{text-align:center}
.parcours-body>*{min-width:0}
.tournoi-parcours .mem{width:160px;max-width:100%;border:1px solid #4a4548}
.tournoi-parcours .mem-t .crown-i{width:14px;height:14px;color:var(--gold)}
.tournoi-parcours .row .who{max-width:100%}
.tournoi-vues .rule h3{margin-bottom:.5rem;font-size:1rem;font-weight:500;line-height:1.5}
.tournoi-vues .rule>h3>strong{font-weight:inherit;overflow-wrap:anywhere}
.tournoi-vues .rule p{line-height:1.6}
.rule-copy{margin-inline-start:38px}
.rule-copy .cup-markdown{overflow-x:auto}
.rule-copy .cup-markdown p{padding:0}
.rule-copy .cup-markdown h3{display:block}
.rule-copy .cup-markdown ul{padding-inline-start:1.4em}
.rule-copy .cup-markdown li::before{content:none}
.rfacts div,.rtoc button span{overflow-wrap:anywhere}
#cup-app .rule-map{display:inline-flex;align-items:center;gap:6px;color:var(--ev)}
.rule-map .icon{width:14px;height:14px}
.rulebook-actions{display:flex;justify-content:flex-end;margin-bottom:16px}
.rulebook-workspace{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);align-items:start;gap:16px}
.rulebook-editor,.rulebook-preview{min-width:0;padding:16px;border:1px solid var(--bd);background:#0c0c0c}
.rulebook-editor h2,.rulebook-preview>h2{font-size:16px;font-weight:600}
.rulebook-preview>h2{margin-bottom:12px;scroll-margin-top:68px}
.rulebook-preview .rules{display:block}
.rulebook-preview .rbody{min-width:0;border-left:0}
.rulebook-preview .rfacts{grid-template-columns:minmax(0,1fr);margin-bottom:0}
#cup-app .rulebook-editor :is(input:not([type=checkbox]),select,textarea){width:100%;font-size:14px}
#cup-app .rulebook-editor>p{margin:0}
.rulebook-help{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:12px}
.rulebook-editor .cup-actions{justify-content:flex-end}
#cup-app .rulebook-settings{color:var(--soft);font-size:13px;text-decoration:underline;text-underline-offset:.2em}
#cup-app .rulebook-preview-jump.cup-secondary{display:none}
@container page (max-width:900px){
  .rulebook-workspace{grid-template-columns:minmax(0,1fr)}
  #cup-app .rulebook-preview-jump.cup-secondary{display:inline-flex}
}
@container page (max-width:1040px){
  .tournoi-vues .toolbar,#matches-view .tools{flex-wrap:wrap}
  .tournoi-vues .mt th:nth-child(1){width:106px}
  .tournoi-vues .mt th:nth-child(3){width:68px}
  .tournoi-vues .mt th:nth-child(5){width:68px}
  .tournoi-vues .mt th:nth-child(6){width:116px}
  .tournoi-vues .mt .tc>.who:not(.tbd){
    display:grid;
    width:fit-content;
    max-width:min(100%,144px);
    grid-template-columns:minmax(0,max-content);
    gap:3px;
    text-align:left;
  }
  .tournoi-vues .mt .tc .cup-player{gap:4px}
  .tournoi-vues .mt .tc .cup-player .av{width:20px;height:20px}
  .tournoi-vues .mt .tc .cup-player .flag{width:13px}
  .tournoi-vues .mt .tc .who>.sep{display:none}
  .tournoi-vues .mt .tc .who b{min-width:0;white-space:normal;overflow-wrap:anywhere}
}
@container page (max-width:700px){
  #cup-app .tournoi-vues .lbs input{width:auto;flex:1}
  .rule-copy{margin-inline-start:0}
  .tournoi-vues .lb{font-size:13px}
  .tournoi-vues .mt .match-state-column{display:none}
  .tournoi-vues .mt th:nth-child(3){width:clamp(70px,22cqi,98px)}
  .tournoi-vues .mt .s a{display:grid;place-items:center;min-height:26px}
  .tournoi-vues .mt .mobile-match-state{display:block;font-size:10px;line-height:1.3}
  .tournoi-vues .mt .mobile-match-state::before{display:none}
  .tournoi-vues .rule .lb{font-size:13.5px}
  .tournoi-vues .rtoc{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 8px;border-bottom:1px solid var(--bd)}
  .tournoi-vues .rtoc p{grid-column:1/-1;padding-inline:8px}
  .tournoi-vues .rtoc button{align-items:baseline;text-align:left;padding:6px 8px;line-height:1.4}
  .tournoi-vues .lb :is(td,th){padding:.45rem .5rem}
  .tournoi-vues .lb .s{padding-inline:.5rem}
  #teams-view .lb{table-layout:fixed}
  #teams-view .lb .n{width:32px}
  #teams-view .lb .st{width:37%;white-space:normal}
  #teams-view .lb .st .status{white-space:normal}
  #teams-view .lb .st .status::before{align-self:flex-start;margin-top:.5em}
  #teams-view .duo,#teams-view .duo.multi-duo{display:inline-grid;width:min(100%,144px);grid-template-columns:minmax(0,1fr);gap:2px}
  #teams-view .duo .pl{justify-content:flex-start;gap:4px}
  #teams-view .duo .pl b{white-space:normal;overflow-wrap:anywhere}
  #teams-view .duo>i{display:none}
  .tournoi-parcours .row{padding-right:10px}
  .tournoi-parcours .score{min-width:34px;margin-right:-10px}
}
@container page (max-width:480px){
  #cup-app .tournoi-vues .lbs{display:grid;grid-template-columns:minmax(0,1fr) 32px;height:auto;gap:4px 0}
  #cup-app .tournoi-vues .lbs select{grid-column:1/-1}
  #cup-app .tournoi-vues .lbs :is(input,select,button){width:100%;min-width:0;height:32px;margin:0}
}
@container page (max-width:380px){
  #cup-app .tournoi-vues .lbs input::placeholder{font-size:12px}
}

.player-streams { --ev: var(--cup-brand-accent,#cb3c6d); --ev-text: var(--cup-brand-text,#fff); margin: .75rem 0; }
.stream-toolbar, .stream-body { display: flex; align-items: center; justify-content: space-between; }
.stream-toolbar { margin-bottom: .5rem; }
.player-streams .stream-btn, .stream-picker button {
  display: inline-block; padding: .375rem .75rem; border: 3px solid transparent;
  font: inherit; font-weight: 500; line-height: 1.5; text-decoration: none; cursor: pointer;
}
.stream-btn.event-btn { background: var(--ev,#cb3c6d); color: var(--ev-text,white); }
.stream-btn.event-btn:is(:hover,:focus-visible) { border-color: var(--ev,#cb3c6d); background: #151515; color: white; }
.stream-filter { position: relative; }
.stream-filter summary { display: flex; padding: .5rem; cursor: pointer; list-style: none; }
.stream-filter summary::-webkit-details-marker { display: none; }
.stream-filter summary svg { width: 30px; fill: white; }
.stream-filter[open] summary, .stream-filter summary:hover { background: #212121; }
.stream-filter > div { position: absolute; z-index: 3; width: max-content; padding: .25rem 0; background: #151515; border: 1px solid #5e5e5e; }
.stream-filter button { display: flex; gap: .5rem; align-items: center; width: 100%; padding: .5rem .75rem; border: 0; background: transparent; color: white; font: inherit; text-align: left; cursor: pointer; }
.stream-filter button:hover { background: #262626; }
.stream-filter button span { width: 1rem; }
.stream-link-account { display: flex; flex-direction: column; align-items: center; margin: 1rem auto; text-align: center; font-weight: 300; }
.stream-btn.twitch-btn { margin-top: .5rem; background: #4200a2; color: #fff; }
.stream-btn.twitch-btn:hover { background: transparent; border-color: #9146ff; }
.streams-grid { display: grid; gap: .75rem; margin-top: .75rem; grid-template-columns: minmax(0,1fr); }
.player-streams .stream-card { position: relative; display: flex; min-width: 0; flex-direction: column; color: inherit; text-decoration: none; border: 1px solid #5e5e5e; background: #0c0c0c; transition: transform .2s, border-color .2s, box-shadow .2s; }
.player-streams a.stream-card:is(:hover,:focus-visible) { z-index: 1; border-color: var(--ev,#cb3c6d); transform: scale(1.05); box-shadow: 0 8px 15px rgba(9,9,9,.5); }
.stream-preview { aspect-ratio: 595 / 320; background: #161616; }
.stream-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stream-preview img[hidden] { display: none; }
.stream-body { gap: .75rem; padding: .75rem; border-top: 1px solid #5e5e5e; }
.stream-body strong { display: block; font-weight: 600; margin-bottom: .25rem; overflow-wrap: anywhere; }
.stream-body strong i { display: inline-flex; width: .625em; height: .625em; margin-right: .75em; border-radius: 50%; background: #bd3232; box-shadow: 0 0 5px #bd3232; }
.stream-body small, .stream-options small { display: block; color: #afafaf; font-size: .75rem; }
.stream-body .twitch-icon { height: 1.5rem; width: 1.5rem; flex: none; fill: #9146ff; }
.stream-status { text-align: center; font-weight: 300; opacity: .75; }
.stream-picker[open] { position: fixed; inset: 0; margin: auto; width: min(500px,calc(100% - 3.5rem)); max-height: 90dvh; padding: 0; overflow: auto; background: #0c0c0c; color: white; border: 1px solid #5e5e5e; }
.stream-picker::backdrop { background: rgb(0 0 0 / 50%); }
.stream-picker header, .stream-picker footer, .stream-picker-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.stream-picker header { padding: 1rem; border-bottom: 1px solid #5e5e5e; }
.stream-picker h3 { margin: 0; }
.stream-picker footer { padding: .75rem; }
.stream-picker button { color: white; background: #292929; }
.stream-picker header button { background: transparent; font-size: 1.25rem; }
.stream-picker-body { padding: 1rem; }
.stream-picker-actions { justify-content: space-around; margin: .75rem 0; }
.stream-picker-actions button:first-child { background: #bd3232; }
.stream-picker-actions button:last-child { background: #2c7d49; }
.stream-picker button:disabled { opacity: .5; cursor: default; }
.stream-options { display: grid; gap: .5rem; }
.stream-picker label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.stream-service { justify-content: center; font-size: 1.125rem; font-weight: 600; }
#cup-app .stream-picker input[type=checkbox][role=switch] { appearance: none; flex: none; cursor: pointer; width: 46px; height: 26px; border: none; border-radius: 26px; background: #bd3232; position: relative; }
#cup-app .stream-picker input[type=checkbox][role=switch]::after { content: ''; position: absolute; top: 2px; left: 2px; height: calc(100% - 4px); aspect-ratio: 1; border-radius: 50%; background: white; }
#cup-app .stream-picker input[type=checkbox][role=switch]:checked { background: #2ea44f; }
#cup-app .stream-picker input[type=checkbox][role=switch]:checked::after { left: auto; right: 2px; }
.stream-skeleton .stream-preview, .stream-skeleton i, .skeleton-toolbar span { background: #444; }
.stream-skeleton i { width: 50%; height: 1rem; }
.stream-skeleton i:last-child { width: 1.5rem; }
.skeleton-toolbar { justify-content: flex-end; }
.skeleton-toolbar span { width: 10rem; height: 2.5rem; }
@media (min-width:768px) {
  .stream-link-account { width: 50%; }
  .streams-grid, .stream-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width:992px) { .streams-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (prefers-reduced-motion: reduce) { .player-streams a.stream-card { transition: none; } .player-streams a.stream-card:is(:hover,:focus-visible) { transform: none; } }
#cup-app .stream-picker input[type=checkbox][role=switch]::before { content: none; }
#cup-app .stream-picker .stream-service input[type=checkbox][role=switch] { background: #cb3c6d; }
.stream-service .active { color: #cb3c6d; }
.stream-filter button:disabled { opacity: .5; cursor: default; }
