/* Matchmaking: one clear team choice, then optional match stakes. */
.matchmaking-setup-dialog { max-width:min(1200px,calc(100vw - 28px)); }
.matchmaking-setup-dialog .modal-body { padding:clamp(20px,3vw,40px); }
.matchmaking-setup-dialog .game-pacing { margin:0 0 26px; border:0; padding:0; }
.matchmaking-setup-dialog .game-pacing legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.matchmaking-setup-dialog .pacing-options { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.matchmaking-setup-dialog .pacing-option { display:flex; align-items:center; gap:14px; padding:18px 22px; min-height:90px; border-radius:16px; background:#112433; border:1px solid #497185; cursor:pointer; }
.matchmaking-setup-dialog .pacing-option:has(input:checked) { border-color:#85f9f0; background:linear-gradient(120deg,#174450,#152737); box-shadow:inset 0 0 0 1px #85f9f055; }
.matchmaking-setup-dialog .pacing-option input { width:22px; height:22px; accent-color:#85f9f0; flex-shrink:0; }
.matchmaking-setup-dialog .pacing-option strong { display:block; font-size:clamp(16px,1.8vw,21px); letter-spacing:.04em; }
.matchmaking-setup-dialog .pacing-option small { display:block; font-size:15px; margin-top:5px; color:#b5ced8; }
.matchmaking-setup-dialog .pacing-time-limit { max-width:380px; margin-top:16px; }
.matchmaking-lineup-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.matchmaking-lineup-choice { display:flex; gap:20px; align-items:center; width:100%; min-height:138px; padding:24px 28px; text-align:left; border:1px solid #528497; border-radius:18px; background:linear-gradient(115deg,#15333e,#142233); color:#ebf8ff; cursor:pointer; touch-action:manipulation; transition:border-color .16s,background .16s,box-shadow .16s; }
.matchmaking-lineup-choice.is-franchise { grid-column:1 / -1; min-height:164px; }
.matchmaking-lineup-choice.is-selected { border-color:#85f9f0; background:linear-gradient(115deg,#85f9f0,#35bed5); color:#062d39; box-shadow:0 10px 34px #35bed520; }
.matchmaking-lineup-choice:hover { border-color:#85f9f0; box-shadow:0 0 0 2px #85f9f030; }
.matchmaking-lineup-choice:focus-visible { outline:3px solid #ffe396; outline-offset:4px; }
.matchmaking-choice-icon { font-size:38px; flex-shrink:0; }
.matchmaking-lineup-choice strong { display:block; font-size:clamp(21px,2.5vw,30px); letter-spacing:.015em; }
.matchmaking-lineup-choice.is-franchise strong { font-size:clamp(28px,3vw,38px); }
.matchmaking-lineup-choice small { display:block; margin-top:8px; font-size:17px; line-height:1.4; opacity:.85; }
.matchmaking-choice-arrow { margin-left:auto; font-size:32px; }
.matchmaking-selection-summary { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:19px 3px 23px; color:#c6dfe8; }
.matchmaking-selection-summary .eyebrow { color:#78d9df; font-size:12px; }
.matchmaking-selection-summary > strong { font-size:17px; }
.matchmaking-selection-summary .btn { margin-left:auto; }
.matchmaking-options { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
.matchmaking-options .ranked-match-toggle,.matchmaking-options .wager-settings { margin:0; width:100%; min-height:88px; border:1px solid #486371; border-radius:15px; padding:19px 22px; background:#152735; box-sizing:border-box; }
.matchmaking-options .ranked-match-toggle { display:flex; align-items:center; }
.matchmaking-options .ranked-match-toggle small { display:none; }
.matchmaking-options .wager-toggle { min-height:47px; }
.matchmaking-options .checkline input { height:24px; width:24px; accent-color:#85f9f0; }
.matchmaking-options .checkline strong { font-size:21px; }
.matchmaking-options .wager-details { margin-top:15px; }
.matchmaking-footnote { display:flex; align-items:start; justify-content:space-between; gap:18px; margin-top:25px; color:#9bb7c4; font-size:14px; }
.matchmaking-customize { text-align:right; }
.matchmaking-customize summary { cursor:pointer; padding:0 0 10px 12px; color:#bad3df; }
.matchmaking-customize p { max-width:280px; margin:8px 0 12px; }
.matchmaking-setup-dialog .modal-foot .huge { min-width:230px; }
/* Friend matches start with the opponent, with customization one step away. */
.friend-setup-dialog { max-width:min(1100px,calc(100vw - 28px)); }
.friend-setup-dialog .modal-body { padding:clamp(20px,3vw,38px); }
.friend-setup-dialog .friend-setup { margin:0; padding:0; border:0; background:none; }
.friend-picker-heading { margin-bottom:20px; }
.friend-picker-heading h3 { margin:8px 0 0; font-size:clamp(30px,3vw,42px); }
.friend-setup-dialog .search-bar { display:flex; gap:14px; align-items:end; margin-bottom:25px; }
.friend-setup-dialog .search-bar .field { flex:1; }
.friend-setup-dialog .search-bar input { min-height:58px; font-size:18px; }
.friend-setup-dialog .search-bar .btn { min-height:58px; padding-inline:25px; font-size:17px; }
.friend-setup-dialog #friend-picker { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.friend-setup-dialog .friend-row { margin:0; display:flex; flex-wrap:wrap; align-items:center; gap:8px; border:1px solid #436b80; border-radius:17px; padding:10px; background:linear-gradient(120deg,#143440,#142435); }
.friend-setup-dialog .friend-row.selected { border-color:#85f9f0; box-shadow:inset 0 0 0 1px #85f9f055; }
.friend-setup-dialog .friend-row > button[data-action="select-friend"] { display:flex; align-items:center; gap:16px; width:100%; min-height:100px; padding:12px; text-align:left; color:#effaff; background:none; border:0; border-radius:11px; cursor:pointer; touch-action:manipulation; }
.friend-setup-dialog .friend-row > button[data-action="select-friend"]:focus-visible { outline:3px solid #85f9f0; outline-offset:2px; }
.friend-setup-dialog .friend-row > button[disabled] { opacity:.6; cursor:default; }
.friend-setup-dialog .friend-avatar { display:grid; place-items:center; flex:0 0 66px; width:66px; height:66px; overflow:hidden; border:2px solid #76d7df; border-radius:50%; background:#11202e; color:#85f9f0; font-size:28px; }
.friend-setup-dialog .friend-avatar img { width:100%; height:100%; object-fit:cover; }
.friend-setup-dialog .friend-row strong { display:block; font-size:21px; line-height:1.25; }
.friend-setup-dialog .friend-row small { display:block; color:#adc8d5; margin-top:6px; font-size:14px; }
.friend-setup-dialog .friend-row b { margin-left:auto; color:#85f9f0; font-size:25px; }
.friend-setup-dialog .friend-row > .btn,.friend-setup-dialog .friend-row > .tag { margin:0 12px 8px 93px; }
.friend-empty { grid-column:1 / -1; padding:30px; border:1px dashed #426879; border-radius:16px; text-align:center; color:#afc8d3; }
.friend-match-preview { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px; margin-top:24px; border-radius:17px; border:1px solid #85f9f088; background:#173542; }
.friend-match-preview span { flex:1; }
.friend-match-preview span:last-child { text-align:right; }
.friend-match-preview small { display:block; color:#85f9f0; letter-spacing:.09em; font-size:11px; margin-bottom:8px; }
.friend-match-preview strong { font-size:22px; }
.friend-match-preview > b { color:#ffe098; font-size:20px; }
.friend-setup-footer { display:flex; justify-content:space-between; align-items:start; gap:20px; margin-top:24px; color:#b6ccd7; font-size:14px; }
.friend-setup-footer p { margin:0; }
.friend-advanced-lineup { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin-bottom:20px; }
.friend-advanced-lineup > strong { margin-right:auto; }
.gameday-primary-grid [data-id="matchmaking"] h3 { font-size:clamp(25px,3.1vw,42px); }
@media(max-width:680px) {
 .friend-setup-dialog #friend-picker { grid-template-columns:1fr; }
 .friend-setup-dialog .search-bar { flex-direction:column; align-items:stretch; }
 .friend-setup-dialog .friend-row > button[data-action="select-friend"] { min-height:86px; }
 .friend-match-preview { gap:12px; padding:20px 15px; }
 .friend-match-preview strong { font-size:18px; }
 .friend-setup-footer { font-size:12px; }
}
@media(max-width:640px) {
 .matchmaking-setup-dialog .modal-body { padding:18px; }
 .matchmaking-lineup-grid,.matchmaking-options { gap:10px; }
 .matchmaking-lineup-choice { flex-wrap:wrap; gap:9px; padding:18px 15px; min-height:150px; }
 .matchmaking-lineup-choice.is-franchise { min-height:130px; flex-wrap:nowrap; }
 .matchmaking-lineup-choice strong { font-size:20px; }
 .matchmaking-lineup-choice small { font-size:14px; }
 .matchmaking-choice-icon { font-size:25px; }
 .matchmaking-choice-arrow { font-size:23px; }
 .matchmaking-setup-dialog .pacing-option { padding:14px 10px; gap:8px; }
 .matchmaking-setup-dialog .pacing-option strong { font-size:14px; }
 .matchmaking-setup-dialog .pacing-option small { font-size:12px; }
 .matchmaking-options .ranked-match-toggle,.matchmaking-options .wager-settings { padding:14px 12px; }
 .matchmaking-options .checkline strong { font-size:17px; }
 .matchmaking-footnote { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .matchmaking-lineup-choice { transition:none; } }

/* Distinct modes retain their visual identity whether selected or waiting. */
.matchmaking-lineup-choice[data-id="dream"]{position:relative;overflow:hidden;background:linear-gradient(115deg,#8d651e,#e8c465 48%,#f8e4a4 64%,#b78b31);color:#302207;border-color:#ffe5a0;box-shadow:inset 0 1px #fff5cfbb,0 0 24px #e0b54b26}
.matchmaking-lineup-choice[data-id="dream"] small{color:#46340e}
.matchmaking-lineup-choice[data-id="dream"] .matchmaking-choice-icon,.matchmaking-lineup-choice[data-id="dream"] .matchmaking-choice-arrow{color:#382704}
.matchmaking-lineup-choice[data-id="dream"].is-selected{border-color:#fff7d8;box-shadow:inset 0 0 0 2px #fff1b6,0 0 28px #eac36155}
.matchmaking-lineup-choice[data-id="random"]{background:radial-gradient(ellipse at 75% 0,#8c45c35c,transparent 70%),linear-gradient(115deg,#28133e,#452065 62%,#241137);color:#fff4ff;border-color:#aa77d5;box-shadow:inset 0 1px #e6beff55,0 0 24px #9c51de20}
.matchmaking-lineup-choice[data-id="random"] small{color:#e7d1f7}
.matchmaking-lineup-choice[data-id="random"] .matchmaking-choice-icon,.matchmaking-lineup-choice[data-id="random"] .matchmaking-choice-arrow{color:#e4b7ff}
.matchmaking-lineup-choice[data-id="random"].is-selected{border-color:#e6b7ff;box-shadow:inset 0 0 0 2px #d69bff77,0 0 28px #ad63ed44}
.matchmaking-lineup-choice[data-id="dream"]:hover,.matchmaking-lineup-choice[data-id="random"]:hover{filter:brightness(1.08)}
