/* Keep the whole page scrollable while the quick setup remains easy to scan. */
#quickMatchMode{display:grid;gap:12px;padding:18px;border:1px solid #98ac96;border-radius:12px;background:#dbe3cb;color:#203e35}#quickMatchMode label{font-size:17px;font-weight:700}#quickMatchMode p{margin:0;font-size:16px;line-height:1.5;color:#34513f}#quickMatchMode [hidden],#singleForm>[hidden]{display:none!important}
#quickMatchScreen>h2,#quickMatchScreen>.quick-match-actions,#singleForm{width:100%;max-width:660px;margin-left:auto;margin-right:auto}
#quickMatchScreen>.quick-match-actions{display:flex;gap:12px;margin-bottom:22px}
#quickMatchScreen>.quick-match-actions>button{flex:1;min-height:46px;margin:0}
#quickMatchScreen>.quick-match-actions>button[type="submit"]{background:#edb954;color:#202a2c}
#singleVenuePreview,#quickVenuePreview{width:min(100%,360px);height:auto;max-height:none;object-fit:contain;justify-self:center;margin:4px auto 12px}
#quickVenuePreview[hidden],#singleVenuePreview[hidden]{display:none}
.quick-special-disclosure{min-width:0;width:100%;margin-top:8px;border:1px solid #9faa8d;border-radius:12px;background:#f5ecd4;color:#24483e}
.quick-special-disclosure>summary{padding:16px 18px;font-size:18px;font-weight:700;cursor:pointer}
.quick-special-disclosure>summary:focus-visible{outline:3px solid #a66a24;outline-offset:3px}
.quick-special-disclosure>.quick-special-options{margin:0;border:0;background:none}
.quick-special-disclosure>.quick-special-options>legend{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.quick-special-disclosure>.quick-special-options>p:first-of-type{margin-top:0}
@media(max-width:600px){#quickMatchScreen>.quick-match-actions{gap:10px;margin-bottom:18px}.quick-special-disclosure>summary{padding:14px}}
.duel-book,#duelNames{box-sizing:border-box;background:#243e39;color:#fff0ce;border:2px solid #ab9065;border-radius:10px}
#quickMatchScreen>.duel-book{width:min(100%,660px);margin:0 auto 16px;text-align:left}
.duel-book summary{cursor:pointer;padding:12px 16px;font-weight:700;color:#f6d799}
.duel-book>div{padding:0 16px 16px}.duel-book>div>details{border-top:1px solid #60796b}
#quickMatchScreen .duel-book :is(p,h3,li){color:#ece6cf}.duel-book ul{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;padding:0}
.duel-book ol{margin:0;padding:0 16px 8px;list-style:none}.duel-book ol li{padding:8px 0;display:grid;gap:3px;border-top:1px solid #50695d}.duel-book small{color:#c1d3c6}
#duelNames{width:min(94vw,420px);max-height:90dvh;padding:22px}#duelNames::backdrop{background:#0b201edb}
#duelNames form{display:grid;gap:7px;text-align:left}#duelNames h2,#duelNames p{color:inherit;margin:0 0 8px}#duelNames label{font-weight:700}
#duelNames input{width:100%;min-height:42px;padding:5px 8px;margin:0 0 8px;color:#203a32;background:#fff7df}
.duel-actions{display:flex;gap:10px}.duel-actions button{flex:1;min-height:44px}#duelNames [role=alert]{color:#ffbd94}
#duelNames.party-dialog{width:min(880px,94vw);padding:clamp(14px,2vw,25px);background:#183e37;color:#fff2cf;overflow:auto}
.party-dialog .party-court{height:92px;position:relative;border:2px solid #e0cf98;border-radius:4px;background:repeating-linear-gradient(90deg,#315a49 0 12.5%,#365f4d 12.5% 25%);overflow:hidden}
#duelNames.party-dialog .party-court{position:sticky;top:0;z-index:1}
.party-court::after{content:"";position:absolute;inset:0 auto 0 50%;border-left:2px dashed #e6dcb8}
.party-court i{position:absolute;display:grid;place-items:center;transform:translate(-50%,-50%);font:700 13px sans-serif;width:17px;height:26px;background:#f5c267;color:#292718;border-radius:4px 8px 8px 4px}
.party-court i[data-team=right]{background:#aad5e3;border-radius:8px 4px 4px 8px}
.party-court i.lit,.party-seat.lit{outline:3px solid #fff2a5}
.party-teams{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.party-team{min-width:0}.party-team h3{color:#f5c267;margin:.4em 0}.party-team:nth-child(2) h3{color:#aad5e3}
.party-seat{padding:10px 12px;margin:6px 0 10px;background:#244b42;border:1px solid #719485;border-radius:8px;display:grid;gap:6px}
.party-seat label{display:grid;gap:3px}.party-seat summary{cursor:pointer;color:#ffdb90;font-weight:bold;padding:5px 0}
#duelNames.party-dialog :is(input,select,button){box-sizing:border-box;max-width:100%;min-height:33px;margin:0;font:inherit;padding:4px 9px}
.party-seat select{width:100%}.party-seat button{border:1px solid #b49c6a;border-radius:5px;color:#f9f0cd;background:#24443b;overflow-wrap:anywhere}
.party-binding{display:grid;grid-template-columns:minmax(90px,1fr) minmax(85px,1fr);align-items:center;gap:6px;margin:4px 0}
.party-actions{position:sticky;bottom:0;background:#183e37;display:flex;justify-content:end;gap:10px;padding:9px 0 2px}
.party-actions button[type=submit]{background:#efbe64;color:#172d26;font-weight:bold}
.party-status:empty{display:none}.party-status{position:sticky;bottom:45px;background:#213b34;padding:4px}
@media(min-width:720px){
  .party-seat{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:10px}
  .party-seat>label{min-width:0}
  .party-seat>button,.party-seat>details{grid-column:1/-1}
}
@media(max-width:580px){.party-teams{grid-template-columns:1fr}.party-dialog .party-court{height:70px}}
