/* Secondary menus scroll within the iframe, rather than disappearing below it. */
.modal-backdrop:not(.live-match-backdrop):not(:has(.modal-result)):not(:has(.modal-preview)){padding:max(12px,var(--safe-t,0px)) max(12px,var(--safe-r,0px)) max(12px,var(--safe-b,0px)) max(12px,var(--safe-l,0px));align-items:center}
.modal:not(.live-match-modal):not(.modal-result):not(.modal-preview):not(.modal-daily-rewards):not(.modal-interview){min-height:0;max-height:calc(100dvh - max(12px,var(--safe-t,0px)) - max(12px,var(--safe-b,0px)));overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:24px;scroll-padding-top:40px}
.slot-label{min-width:0;min-height:44px;padding:12px 14px;border:1px solid #46687d;border-radius:10px;background:#0b2234;color:#d9eaf4;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.save-slots{min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.save-slot,.slot-info,.slot-info>span,.slot-bottom{min-width:0}
.slot-info b,.slot-info small{overflow-wrap:anywhere}
input[name="name"][readonly]{cursor:default;color:#d7e6ee;caret-color:transparent}
.modal-settings .mobile-help{display:flex;width:100%;margin-bottom:12px}
.modal.modal-settings,.modal.modal-slots{display:flex;flex-direction:column;overflow:hidden;scrollbar-gutter:auto;padding:20px}
.modal-menu-header{display:flex;align-items:center;justify-content:space-between;gap:14px;flex:none;padding:0 0 16px}
.modal-menu-header h2{min-width:0;margin:0;font-family:var(--display);font-size:32px;line-height:1.1;text-transform:uppercase;font-style:italic;font-weight:900;overflow-wrap:anywhere}
.modal-menu-header>.modal-close{position:static;float:none;flex:none;margin:0;background:#1a3448}
.modal-menu-body{flex:0 1 auto;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 5px 4px 0}
.modal-menu-body>p:first-child{margin:0 0 20px}
@media(max-width:550px){.modal.modal-settings,.modal.modal-slots{padding:16px 12px}.modal-menu-header h2{font-size:27px}}
@media(max-width:550px){
 .save-slots{grid-template-columns:minmax(0,1fr)}
 .modal-slots{padding:20px 14px 24px}
 .save-slot{padding:14px}
 .slot-bottom{gap:8px;flex-wrap:wrap}
}
/* Long club names must not force the narrow broadcast column wider or taller. */
@media(min-width:560px) and (max-width:1100px) and (max-height:600px){
 .live-match-modal .live-score{grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr);gap:4px;min-width:0;width:100%;max-height:80px}
 .live-match-modal .live-score>div{min-width:0;max-width:100%}
 .live-match-modal .live-score>div>b{display:block;min-width:0;max-width:100%;width:100%;min-height:0;font-size:9px!important;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .live-match-modal .live-score-center strong{font-size:27px!important;letter-spacing:0}
}
