/* Selected tabs must keep contrast after the shared button rule is applied. */
#online-mode520 button[aria-pressed="true"],.cup-roster520 button[aria-pressed="true"]{color:#fff;background:#255464;border-color:#ffc278;font-weight:800}
#online-mode520 button[aria-pressed="true"]{box-shadow:inset 0 -3px 0 #ffc278}
.cup-roster520 button[aria-pressed="true"] small{color:#e2f4fa}
#online-mode520 button{line-height:1.4}#online-mode520 button:not([aria-pressed="true"]){color:#daedf5}
#room-wait521,.cup-wait521{padding:12px;border:1px solid #52778b;border-radius:12px;background:#102e42;color:#ffe1a0;margin:14px 0;line-height:1.5;font-size:14px}
#room-wait521 button,.cup-wait521 button{display:block;margin-top:8px;color:#092638;background:#ffe18a;border-color:#ffe18a;padding:9px 14px;font-weight:700}
.cup-wait521 .cup-next-ready521{width:100%;color:#0a2d35;background:#a7e7cf;border-color:#a7e7cf}
.cup-wait521 .cup-next-ready521[aria-pressed=true]{color:#a7f5d2;background:#123f36}
.cup-title521{display:flex;gap:14px;align-items:center;margin-top:14px}.cup-title521>img{width:80px;height:100px;object-fit:contain;flex:none}.cup-title521 h2{margin:0;color:#ffe295;overflow-wrap:anywhere}.cup-title521 small{color:#b7d7e7}
.cup-next521{margin:12px 0;padding:12px;border:1px solid #809c70;border-radius:12px;background:#173c45}.cup-next521 button{margin:6px 0}.cup-next521 p{font-size:13px}
#cup-title-input521{width:100%}.cup-input-hint521{font-size:12px;color:#b7d7e7}
body:not(.match-open) .online-wrap{overflow-y:auto!important;touch-action:pan-y!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding-bottom:max(28px,env(safe-area-inset-bottom))}
#cup-dashboard520,#cup-dashboard520 section,#cup-dashboard520 table,#cup-dashboard520 button,#cup-dashboard520 img{touch-action:pan-y}
#cup-dashboard520 .cup-seats520 article[data-ready=true]{border-color:#71ddb0;background:#123d35}
@media(max-width:360px){.cup-title521>img{width:62px;height:84px}.cup-title521{gap:10px}}
