:root{--msbg-black:#090909;--msbg-red:#d71920;--msbg-gold:#f2c400;--msbg-white:#fff;--msbg-gray:#171717}.msbg-wrap,.msbg-hub{max-width:1050px;margin:24px auto;font-family:Arial,Helvetica,sans-serif;color:#fff}.msbg-wrap{background:#090909;border:4px solid #111;box-shadow:0 14px 40px rgba(0,0,0,.25);overflow:hidden}.msbg-masthead,.msbg-hub-hero{display:flex;align-items:center;gap:18px;padding:22px;background:linear-gradient(115deg,#090909 0 58%,#d71920 58% 72%,#f2c400 72% 87%,#fff 87%);border-bottom:5px solid #f2c400}.msbg-brandmark,.msbg-hub-logo{display:grid;place-items:center;flex:0 0 88px;height:88px;background:#fff;color:#090909;font-weight:900;font-size:28px;border:5px solid #f2c400;box-shadow:7px 7px 0 #d71920}.msbg-kicker,.msbg-hub-hero p{font-size:12px;letter-spacing:2px;font-weight:800;margin:0 0 3px}.msbg-masthead h1,.msbg-hub-hero h1{color:#fff;margin:0;font-size:clamp(26px,5vw,48px);line-height:1}.msbg-masthead p{margin:5px 0 0}.msbg-scorebar{display:grid;grid-template-columns:repeat(3,1fr) auto;gap:8px;align-items:center;padding:12px;background:#171717;border-bottom:1px solid #333}.msbg-scorebar>div{text-align:center;border-right:1px solid #444}.msbg-scorebar small{display:block;color:#f2c400;font-weight:800;font-size:11px}.msbg-scorebar strong{font-size:25px}.msbg-btn{appearance:none;border:0;background:#d71920;color:#fff;font-weight:900;padding:13px 20px;cursor:pointer;text-transform:uppercase}.msbg-btn:hover{background:#f2c400;color:#090909}.msbg-stage{position:relative;background:#101010;aspect-ratio:16/10;max-height:680px}.msbg-stage canvas{display:block;width:100%;height:100%;touch-action:none}.msbg-overlay{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:rgba(0,0,0,.52);pointer-events:none}.msbg-overlay strong{font-size:clamp(30px,8vw,72px);text-shadow:4px 4px #d71920}.msbg-overlay span{color:#f2c400;font-weight:800}.msbg-stage.playing .msbg-overlay{display:none}.msbg-controls{display:flex;justify-content:center;gap:8px;padding:12px;background:#171717}.msbg-controls button{width:56px;height:50px;border:2px solid #555;background:#242424;color:#fff;font-size:20px;font-weight:900;touch-action:none}.msbg-controls .msbg-action{width:96px;background:#d71920;border-color:#f2c400;font-size:13px}.msbg-help{text-align:center;margin:0;padding:8px 12px;background:#f2c400;color:#090909;font-weight:700}.msbg-aftergame,.msbg-leaderboard{padding:20px;background:#111;border-top:1px solid #333}.msbg-aftergame h2,.msbg-leaderboard h2{color:#f2c400;margin-top:0}.msbg-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.msbg-form-grid label{font-weight:700}.msbg-form-grid input{width:100%;box-sizing:border-box;margin-top:5px;padding:11px;border:1px solid #555;background:#fff;color:#111}.msbg-check{display:block;margin:12px 0}.msbg-section-title{display:flex;justify-content:space-between;align-items:center}.msbg-section-title button{background:none;border:1px solid #777;color:#fff;padding:6px 10px}.msbg-leaderboard ol{margin:0;padding-left:32px}.msbg-leaderboard li{padding:9px;border-bottom:1px solid #2d2d2d}.msbg-leaderboard li strong{float:right;color:#f2c400}.msbg-hub{color:#111}.msbg-hub-hero{color:#fff}.msbg-game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.msbg-game-tile{display:flex;gap:18px;align-items:center;padding:24px;background:#111;color:#fff!important;text-decoration:none!important;border-bottom:7px solid #d71920;transition:.2s}.msbg-game-tile:hover{transform:translateY(-3px);border-color:#f2c400}.msbg-tile-icon{font-size:64px}.msbg-game-tile h2{color:#f2c400;margin:0}.msbg-game-tile p{margin:8px 0}.msbg-game-tile strong{color:#fff}@media(max-width:700px){.msbg-masthead,.msbg-hub-hero{padding:15px;background:linear-gradient(115deg,#090909 0 75%,#d71920 75% 85%,#f2c400 85% 94%,#fff 94%)}.msbg-brandmark,.msbg-hub-logo{flex-basis:62px;height:62px;font-size:20px}.msbg-scorebar{grid-template-columns:repeat(3,1fr)}.msbg-scorebar .msbg-start{grid-column:1/-1}.msbg-game-grid,.msbg-form-grid{grid-template-columns:1fr}.msbg-controls button{width:48px}.msbg-stage{aspect-ratio:4/5}}

/* 1.1 responsive game upgrade */
.msbg-stage{aspect-ratio:360/700;max-width:520px;margin:0 auto;max-height:none;border-left:1px solid #333;border-right:1px solid #333}
.msbg-stage canvas{width:100%;height:100%;object-fit:contain;touch-action:none;-webkit-user-select:none;user-select:none}
.msbg-controls{position:sticky;bottom:0;z-index:8;flex-wrap:wrap;padding:10px max(10px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
.msbg-controls button{min-width:52px;min-height:52px;border-radius:12px;-webkit-tap-highlight-color:transparent}
.msbg-controls button:active{transform:scale(.96);background:#444}
.msbg-controls .msbg-action{min-width:105px}
@media (min-width:900px){
 .msbg-wrap{max-width:1180px}
 .msbg-stage{max-width:560px}
 .msbg-controls{position:static}
}
@media (max-width:700px){
 .msbg-wrap{margin:0;border-left:0;border-right:0}
 .msbg-masthead{gap:10px;padding:12px}
 .msbg-masthead h1{font-size:25px}
 .msbg-masthead p{font-size:12px}
 .msbg-scorebar{position:relative;z-index:6;padding:8px}
 .msbg-scorebar strong{font-size:20px}
 .msbg-stage{width:min(100%,430px);aspect-ratio:360/700}
 .msbg-controls{gap:6px}
 .msbg-controls button{width:50px;height:52px}
 .msbg-help{font-size:12px;line-height:1.35}
}
@media (max-width:390px){
 .msbg-brandmark{display:none}
 .msbg-masthead{min-height:76px}
 .msbg-controls button{width:46px;min-width:46px}
 .msbg-controls .msbg-action{width:88px;min-width:88px}
}
@media (orientation:landscape) and (max-height:600px){
 .msbg-wrap{display:grid;grid-template-columns:minmax(280px,45vh) 1fr;grid-template-areas:'stage head' 'stage score' 'stage controls' 'stage help' 'stage board';align-items:start;max-width:1050px;margin:0 auto}
 .msbg-masthead{grid-area:head;padding:10px}.msbg-brandmark{flex-basis:50px;height:50px;font-size:17px}
 .msbg-scorebar{grid-area:score}.msbg-stage{grid-area:stage;height:100vh;width:auto;max-width:none;aspect-ratio:360/700}
 .msbg-controls{grid-area:controls;position:static}.msbg-help{grid-area:help}.msbg-leaderboard{grid-area:board;max-height:38vh;overflow:auto}.msbg-aftergame{grid-column:2}
}

/* 1.2.0: canonical Extended Arcade Edition layout and mobile safeguards */
.msbg-wrap[data-msbg-game="hoops"] .msbg-masthead h1::after{
  content:" EXTENDED ARCADE EDITION";
  display:block;
  margin-top:3px;
  color:#ffcd00;
  font-size:.48em;
  letter-spacing:.06em;
}
.msbg-wrap[data-msbg-game="hoops"] .msbg-stage{border-color:#ffcd00}
.msbg-wrap[data-msbg-game="hoops"] canvas{aspect-ratio:18/35;max-height:min(76vh,760px)}
@media (max-width:600px){
  .msbg-wrap{width:100%;margin-inline:auto;border-radius:0}
  .msbg-masthead{padding:12px 12px 10px;gap:10px}
  .msbg-masthead h1{font-size:clamp(1.15rem,5vw,1.55rem)}
  .msbg-scorebar{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px}
  .msbg-scorebar .msbg-btn{grid-column:1/-1;min-height:48px}
  .msbg-stage canvas{width:100%;height:auto;touch-action:none}
  .msbg-controls button{min-height:58px;font-size:1rem}
}
@media (orientation:landscape) and (max-height:600px){
  .msbg-wrap[data-msbg-game="hoops"]{display:grid;grid-template-columns:minmax(300px,52%) 1fr;align-items:start}
  .msbg-wrap[data-msbg-game="hoops"] .msbg-masthead,
  .msbg-wrap[data-msbg-game="hoops"] .msbg-scorebar,
  .msbg-wrap[data-msbg-game="hoops"] .msbg-controls,
  .msbg-wrap[data-msbg-game="hoops"] .msbg-help,
  .msbg-wrap[data-msbg-game="hoops"] .msbg-aftergame,
  .msbg-wrap[data-msbg-game="hoops"] .msbg-leaderboard{grid-column:2}
  .msbg-wrap[data-msbg-game="hoops"] .msbg-stage{grid-column:1;grid-row:1/8}
  .msbg-wrap[data-msbg-game="hoops"] canvas{max-height:94vh}
}

/* 1.2.2 viewport and canvas repair */
.msbg-wrap{position:relative;width:100%;max-width:1100px;box-sizing:border-box}
.msbg-stage{position:relative;width:min(100%,560px);height:auto;aspect-ratio:360/700;max-width:560px;max-height:none;margin:0 auto;overflow:hidden;background:#050505}
.msbg-stage canvas{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;object-fit:fill!important}
.msbg-exit-game{display:none;position:absolute;right:10px;top:10px;z-index:1000001;border:2px solid #ffcd00;background:#d71920;color:#fff;font-weight:900;padding:8px 12px;border-radius:8px}
.msbg-wrap.msbg-game-mode{position:fixed!important;inset:0!important;z-index:999999!important;width:100vw!important;max-width:none!important;height:100dvh!important;margin:0!important;border:0!important;display:flex!important;flex-direction:column!important;background:#090909!important;overflow:hidden!important}
.msbg-wrap.msbg-game-mode .msbg-exit-game{display:block}
.msbg-wrap.msbg-game-mode .msbg-masthead{flex:0 0 auto;padding:8px 70px 8px 10px;min-height:0}
.msbg-wrap.msbg-game-mode .msbg-brandmark{width:48px;flex-basis:48px;height:48px;font-size:16px}
.msbg-wrap.msbg-game-mode .msbg-masthead h1{font-size:clamp(18px,4vw,30px)}
.msbg-wrap.msbg-game-mode .msbg-masthead p{display:none}
.msbg-wrap.msbg-game-mode .msbg-scorebar{flex:0 0 auto;padding:6px}
.msbg-wrap.msbg-game-mode .msbg-stage{flex:1 1 auto;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;margin:0!important;border:0!important}
.msbg-wrap.msbg-game-mode .msbg-controls{position:static!important;flex:0 0 auto;padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:6px}
.msbg-wrap.msbg-game-mode .msbg-help,.msbg-wrap.msbg-game-mode .msbg-leaderboard,.msbg-wrap.msbg-game-mode .msbg-aftergame{display:none!important}
.msbg-wrap.msbg-game-mode .msbg-controls button{height:54px;min-height:54px;flex:1 1 52px;max-width:110px}
.msbg-wrap.msbg-game-mode .msbg-controls .msbg-action{flex:1.7 1 105px;max-width:180px}
body.msbg-body-game-mode{overflow:hidden!important;touch-action:none!important}
@media(max-width:700px){
 .msbg-stage{width:100%;max-width:none}
 .msbg-wrap.msbg-game-mode .msbg-masthead{display:none}
 .msbg-wrap.msbg-game-mode .msbg-scorebar{grid-template-columns:repeat(3,1fr) auto}
 .msbg-wrap.msbg-game-mode .msbg-scorebar .msbg-start{grid-column:auto;padding:8px 10px;min-height:42px}
 .msbg-wrap.msbg-game-mode .msbg-scorebar strong{font-size:18px}
 .msbg-wrap.msbg-game-mode .msbg-scorebar small{font-size:9px}
}
@media(orientation:landscape) and (max-height:650px){
 .msbg-wrap.msbg-game-mode{display:grid!important;grid-template-columns:minmax(260px,55vw) 1fr!important;grid-template-rows:auto 1fr auto!important;grid-template-areas:'stage score' 'stage blank' 'stage controls'!important}
 .msbg-wrap.msbg-game-mode .msbg-masthead{display:none!important}
 .msbg-wrap.msbg-game-mode .msbg-scorebar{grid-area:score}
 .msbg-wrap.msbg-game-mode .msbg-stage{grid-area:stage;height:100dvh!important}
 .msbg-wrap.msbg-game-mode .msbg-controls{grid-area:controls;align-self:end}
}

/* 1.3.0 original Maryland Hoops responsive embed */
.msbg-hoops-embed{width:100%;max-width:1180px;margin:0 auto;background:#080d15;color:#fff;border:2px solid #ffcd00;box-sizing:border-box;overflow:hidden}
.msbg-hoops-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#071a33;border-bottom:4px solid #e31837}
.msbg-hoops-toolbar strong{display:block;color:#fff;font-size:20px;text-transform:uppercase}
.msbg-hoops-toolbar span{display:block;color:#ffcd00;font-size:12px;font-weight:800;text-transform:uppercase}
.msbg-hoops-fullscreen{border:2px solid #ffcd00;background:#e31837;color:#fff;padding:10px 14px;font-weight:900;text-transform:uppercase;cursor:pointer;border-radius:8px}
.msbg-hoops-frame-wrap{display:grid;place-items:center;width:100%;min-height:calc(100dvh - 190px);background:#020814;padding:8px;box-sizing:border-box}
.msbg-hoops-frame{display:block;width:min(100%,560px);height:min(calc(100dvh - 205px),1089px);aspect-ratio:360/700;border:0;background:#020814}
.msbg-hoops-note{margin:0;padding:10px 14px;background:#ffcd00;color:#111;font-weight:800;text-align:center}
.msbg-hoops-embed:fullscreen{width:100vw;max-width:none;height:100dvh;border:0;display:flex;flex-direction:column}
.msbg-hoops-embed:fullscreen .msbg-hoops-toolbar{flex:0 0 auto}
.msbg-hoops-embed:fullscreen .msbg-hoops-frame-wrap{flex:1 1 auto;min-height:0;padding:0}
.msbg-hoops-embed:fullscreen .msbg-hoops-frame{width:min(100vw,calc(100dvh*360/700));height:100dvh;max-height:none}
.msbg-hoops-embed:fullscreen .msbg-hoops-note{display:none}
@media(max-width:600px){.msbg-hoops-embed{border-left:0;border-right:0}.msbg-hoops-toolbar{padding:8px 10px}.msbg-hoops-toolbar strong{font-size:16px}.msbg-hoops-toolbar span{font-size:10px}.msbg-hoops-fullscreen{padding:8px 10px;font-size:12px}.msbg-hoops-frame-wrap{padding:0;min-height:calc(100dvh - 155px)}.msbg-hoops-frame{width:100%;height:calc(100dvh - 155px);max-height:none}.msbg-hoops-note{font-size:12px;padding:8px}}
@media(orientation:landscape) and (max-height:650px){.msbg-hoops-toolbar,.msbg-hoops-note{display:none}.msbg-hoops-frame-wrap{min-height:100dvh;padding:0}.msbg-hoops-frame{height:100dvh;width:calc(100dvh*360/700)}}
