#rallyGame.rally-fullscreen{position:fixed;inset:0;margin:auto;padding:0;width:min(600px,100%);max-width:600px;height:100dvh;max-height:100dvh;overflow:hidden;box-sizing:border-box;display:flex;flex-direction:column;border-radius:16px}
#rallyGame.rally-fullscreen:not([open]),#rallyGame[hidden]{display:none!important}
#rallyGame>.game-sheet-toolbar{flex:none;position:relative;top:0;margin:0;padding:6px 14px}
#rallyGame>.rally-play-view{min-height:0;flex:1;overflow:hidden;padding:10px 14px calc(10px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:stretch;gap:0}
#rallyGame .rally-heading{flex:none;padding:0;margin:0 0 8px}
#rallyGame .rally-heading h3{font-size:20px;margin:2px 0}#rallyGame .rally-heading small{font-size:8px}#rallyGame .arcade-game-brand>img{width:28px;height:28px}
#rallyGame .rally-stats{flex:none;display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin:0 0 8px}
#rallyGame .rally-stats>span{min-height:42px;height:42px;padding:8px;flex-direction:row;align-items:center;justify-content:space-between;font-size:10px;gap:4px}#rallyGame .rally-stats b{font-size:23px}
#rallyGame .rally-top-board{padding:5px;border:1px solid #b9ff2135;border-radius:12px;background:#b9ff2110;color:#e4f4cf;font-size:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}#rallyGame .rally-top-board>span:first-child{font-size:17px}
#rallyGame .rally-court-wrap{flex:none;max-width:none;aspect-ratio:360 / 400;margin:0 auto 8px;border-radius:12px}#rallyGame #rallyCourt{width:100%;height:100%;margin:0;max-width:none;touch-action:none}
#rallyGame .rally-below-controls{flex:none;margin:0}#rallyGame .rally-below-controls button{width:100%;min-height:42px;padding:10px}
#rallyGame .rally-footer{flex:none;margin:0}#rallyGame .rally-footer p{font-size:11px;line-height:1.4;margin:6px 0 0;max-height:40px;overflow:auto}
#rallyGame .battle-attempt-banner{flex:none;margin:0 0 8px;padding:8px}#rallyGame #rallyExpand{display:none!important}
body.rally-modal-open,body.rally-modal-open .screen-wrap{overflow:hidden!important;overscroll-behavior:none}
.rally-tools-dialog{width:min(490px,calc(100% - 24px));max-height:85dvh;overflow:auto;background:#18211a;color:#f2f6ee;border:1px solid #556747;border-radius:18px;padding:18px}.rally-tools-dialog::backdrop{background:#000b}.rally-tools-dialog>button{display:block;margin-left:auto;background:#293723;color:#e4f2d7;border:0;border-radius:50%;width:36px;height:36px;font-size:24px}.rally-tools-dialog summary{padding:12px 0;cursor:pointer;color:#caff83}.rally-tools-dialog p,.rally-tools-dialog li{font-size:12px;line-height:1.6}
@media(max-width:600px){#rallyGame.rally-fullscreen{width:100%;max-width:none;border-radius:0;border-inline:0;padding-top:env(safe-area-inset-top)}#rallyGame>.game-sheet-toolbar{border-radius:0}}
#rallyGame .rally-top-board>span{display:inline;min-height:0;height:auto;padding:0;margin:0;border:0;background:transparent;letter-spacing:0;line-height:1.2}
#rallyGame .rally-top-board{height:42px;min-height:42px}
/* Keep team activation accessible without shrinking the playing court. */
#rallyGame .battle-attempt-banner,#smashGame .battle-attempt-banner{display:block;padding:0;margin:0 0 6px;border:0;background:transparent;flex:none}
#rallyGame .battle-attempt-banner>small,#rallyGame .battle-attempt-copy,#smashGame .battle-attempt-banner>small,#smashGame .battle-attempt-copy{display:none}
#rallyGame .battle-attempt-use,#smashGame .battle-attempt-use{padding:7px 10px!important;min-height:32px;height:32px;font-size:11px!important}
