/* Semantic aliases for existing Laravel widgets; all colors resolve to the C# palette. */
body.mg-theme-bso{--mg-ink:var(--bso-ink);--mg-soft:var(--bso-blue);--mg-card:var(--bso-blue);--mg-muted:var(--bso-blue);--mg-accent:var(--bso-gold);--club-border:var(--bso-ink);--manager-bg-0:var(--bso-blue);--manager-bg-1:var(--bso-blue);--manager-bg-2:var(--bso-blue);--manager-panel:var(--bso-blue);--manager-panel-2:var(--bso-blue);--manager-line:var(--bso-blue);--manager-line-strong:var(--bso-blue);--manager-text:var(--bso-white);--manager-muted:var(--bso-blue);--manager-accent:var(--bso-gold);--manager-accent-2:var(--bso-gold);--manager-warning:#d96b18;--manager-danger:var(--bso-red);--color-bg-app:var(--bso-blue);--color-bg-surface:var(--bso-blue);--color-bg-elevated:var(--bso-blue);--color-bg-subtle:var(--bso-blue);--color-text-primary:var(--bso-gold);--color-text-secondary:var(--bso-white);--color-text-muted:var(--bso-white);--color-border:var(--bso-ink);--color-border-strong:var(--bso-ink);--color-action-primary:var(--bso-gold);--color-action-primary-hover:var(--bso-gold);--color-action-secondary:var(--bso-blue);--color-action-danger:var(--bso-red);--color-action-danger-hover:var(--bso-red);--color-success:var(--bso-green);--color-warning:#d96b18;--color-danger:var(--bso-red);--color-info:var(--bso-blue);--bso-bg:var(--bso-blue);--bso-shell:var(--bso-blue);--bso-panel:var(--bso-blue);--bso-panel-raised:var(--bso-blue);--bso-border-soft:var(--bso-ink);--bso-border-strong:var(--bso-ink);--bso-text:var(--bso-white);--bso-text-secondary:var(--bso-white);--bso-text-muted:var(--bso-white);--bso-blue-light:var(--bso-blue);--bso-blue-dark:var(--bso-blue);--bso-gold-light:var(--bso-gold);--bso-gold-dark:var(--bso-gold);--bso-success-light:var(--bso-green);--bso-success-dark:var(--bso-green);--bso-danger-light:var(--bso-red);--bso-danger-dark:var(--bso-red);--bso-info:var(--bso-blue);--bso-gradient-blue:var(--bso-blue);--bso-gradient-gold:var(--bso-gold);--bso-gradient-success:var(--bso-green);--bso-gradient-danger:var(--bso-red);--bso-gradient-panel:var(--bso-blue);--bso-shadow:var(--bso-comic-shadow);--rd-shadow:var(--bso-comic-shadow);--bso-action-primary-hover:var(--bso-gold);--bso-action-secondary:var(--bso-blue);--bso-action-secondary-hover:var(--bso-blue);--bso-action-success-hover:var(--bso-green);--bso-action-danger-hover:var(--bso-red);--bso-action-disabled:var(--bso-blue);--bso-comic-shadow:var(--bso-comic-shadow)}
/* Laravel shell bindings for bso-client comic.css and header-status.css. */
body.mg-theme-bso {
  --bso-blue:#0c52ac;--bso-blue-light:#367ed0;--bso-blue-dark:#073879;
  --bso-gold:#ffc51a;--bso-ink:#071f46;--bso-white:#fff;--bso-green:#168334;--bso-red:#a01121;
  --bso-surface-blue:#0c52ac;--bso-surface-blue-muted:#073879;--bso-surface-gold:#ffc51a;
  --bso-surface-radius:24px;--bso-comic-shadow:0 6px 0 #071f46;
  --color-bg-page:#ffc51a;--color-bg-panel:#0c52ac;--color-bg-elevated:#073879;
  --color-text-primary:#fff;--color-text-secondary:#f2f7ff;--color-border:#071f46;
  --mg-chart-bg:#0c52ac;--mg-chart-grid:#80b3eb;--mg-chart-text:#fff;--mg-chart-primary:#ffc51a;
  --mg-chart-positive:#168334;--mg-chart-negative:#a01121;--mg-chart-warning:#d96b18;--mg-chart-selection:#fff;
  --rd-shell-width:min(1500px,100vw);--rd-shell-left:max(0px,calc((100vw - var(--rd-shell-width))/2));
  --mg-bottom-navigation-height:72px;
  font-family:"Comic Sans MS","Trebuchet MS",sans-serif;font-size:15px;line-height:1.5;
  color:#071f46;background:#ffc51a radial-gradient(circle,#efac00 1px,transparent 1.5px) 0 0/26px 26px;
}
body.mg-theme-bso *{box-sizing:border-box}
body.mg-theme-bso a{color:inherit}
body.mg-theme-bso :is(h1,h2,h3){font-family:inherit;font-weight:800;text-shadow:none;-webkit-text-stroke:0}
body.mg-theme-bso .mg-container{background:transparent;color:#071f46;max-width:1500px;padding:24px;min-width:0}
body.mg-theme-bso.mg-shell-manager:not(.mg-is-admin):not(.mg-is-minigame) .mg-container{width:100%;margin:0 auto;padding:28px 26px 170px}
body.mg-theme-bso :is(.mg-card,.mg-panel,.mg-game-panel,.mg-auth-card,.mg-compact-card,.mg-link-card,.mg-dashboard-card,.mg-responsive-dashboard-panel,.mg-dialog-frame,.mg-game-dialog__frame,.mg-player-hero,.mg-infra-hero,.mg-club-hero,.mg-dashboard-focus){border:3px solid #071f46;border-radius:24px;background:#0c52ac;color:#fff;box-shadow:0 6px 0 #071f46;padding:22px}
body.mg-theme-bso :is(.mg-card,.mg-panel,.mg-game-panel,.mg-dialog-frame) :is(p,label,small,.mg-note,.mg-muted){color:var(--bso-copy-color,#f2f7ff)}
body.mg-theme-bso :is(.mg-card,.mg-panel,.mg-game-panel) :is(h2,h3){color:var(--bso-copy-color,#fff)}
body.mg-theme-bso :is(.mg-surface-gold,.mg-highlight-card){background:#ffc51a;color:#071f46;border:3px solid #071f46;border-radius:24px;box-shadow:0 6px 0 #071f46}
body.mg-theme-bso :is(.mg-surface-gold,.mg-highlight-card) :is(p,label,small,h1,h2,h3,h4,.mg-note,.mg-muted,.mg-eyebrow){color:var(--bso-copy-color,#071f46)}
body.mg-theme-bso .mg-page-header{background:transparent;border:0;box-shadow:none;color:#071f46;padding:8px 0 18px}
body.mg-theme-bso .mg-page-header :is(h1,h2,p,small){color:#071f46}
body.mg-theme-bso :is(.mg-button,button:not(:where(.mg-tile,.mg-sudoku-cell,.mg-sudoku-symbol-button,.mg-sudoku-clear-button,.mg-tower-swap-peg,.mg-connect-cell)):not(.mg-tile),.mg-icon-button){font-family:inherit;font-weight:800;border:3px solid #071f46;border-radius:16px;background:#ffc51a;color:#071f46;box-shadow:0 4px 0 #071f46;min-height:44px}
body.mg-theme-bso :is(.mg-button,button:not(:where(.mg-tile,.mg-sudoku-cell,.mg-sudoku-symbol-button,.mg-sudoku-clear-button,.mg-tower-swap-peg,.mg-connect-cell))):hover{background:#ffc51a}
body.mg-theme-bso :is(.mg-button,button:not(:where(.mg-tile,.mg-sudoku-cell,.mg-sudoku-symbol-button,.mg-sudoku-clear-button,.mg-tower-swap-peg,.mg-connect-cell))):disabled{opacity:.55;box-shadow:none}
body.mg-theme-bso :is(input,select,textarea){font-family:inherit;background:#ffc51a;color:#071f46;border:2px solid #071f46;border-radius:13px;box-shadow:none;min-height:44px;padding:10px 12px}
body.mg-theme-bso input::placeholder,body.mg-theme-bso textarea::placeholder{color:#596f89}
body.mg-theme-bso :is(input[type=checkbox],input[type=radio]){appearance:auto;min-height:0;width:20px;height:20px;padding:0;accent-color:#ffc51a;box-shadow:none;border:0}
body.mg-theme-bso input[type=range]{padding:0;background:transparent;border:0;box-shadow:none}
body.mg-theme-bso :is(a,button:not(:where(.mg-tile,.mg-sudoku-cell,.mg-sudoku-symbol-button,.mg-sudoku-clear-button,.mg-tower-swap-peg,.mg-connect-cell)),input,select,textarea,summary):focus-visible{outline:3px solid #b54413;outline-offset:4px}
body.mg-theme-bso :is(.mg-table,table){color:inherit;border-collapse:separate;border-spacing:0}
body.mg-theme-bso :is(th,td){border-bottom:1px solid #80b3eb;padding:10px 12px}
body.mg-theme-bso th{background:#073879;color:#ffc51a}
body.mg-theme-bso :is(.mg-card,.mg-game-panel) tbody tr:hover{background:#073879}
body.mg-theme-bso :is(.mg-pill,.mg-badge){border:2px solid #071f46;border-radius:12px;background:#ffc51a;color:#071f46;font-weight:800;padding:3px 9px}
body.mg-theme-bso :is(.mg-error,.mg-alert-error){background:#a01121;color:white;border:2px solid #071f46;border-radius:13px;padding:12px}
body.mg-theme-bso :is(.mg-success,.mg-alert-success){background:#168334;color:white;border:2px solid #071f46;border-radius:13px;padding:12px}
body.mg-theme-bso :is(.mg-empty-state,.mg-note-box){border:2px dashed #80b3eb;background:#073879;color:white;border-radius:16px;padding:18px}
/* Original C# header proportions, retaining Laravel resource and menu behavior. */
body.mg-theme-bso .mg-responsive-header{position:sticky;top:0;left:0;right:auto;z-index:100;width:100%;min-height:90px;height:auto;display:flex;align-items:center;gap:22px;padding:10px max(26px,calc((100vw - 1448px)/2));background:#073879;color:#fff;border:0;border-bottom:4px solid #08224a;border-radius:0;box-shadow:0 4px 0 #ffc51a}
.bso-csharp-brand{display:block;flex:0 0 91px;filter:drop-shadow(0 3px 0 #061c42)}
.bso-csharp-brand img{display:block;width:91px;height:65px;object-fit:contain}
body.mg-theme-bso .mg-responsive-header-club{display:flex;flex:1;min-width:0;gap:12px;color:#fff;background:transparent;border:0;box-shadow:none}
body.mg-theme-bso .mg-responsive-header-crest{width:46px;height:56px;flex:none;background:transparent;border:0}
body.mg-theme-bso .mg-responsive-header-crest img{width:100%;height:100%;object-fit:contain}
body.mg-theme-bso .mg-responsive-header-club-copy{min-width:0}
body.mg-theme-bso .mg-responsive-header-club-copy strong{font-size:19px;line-height:1.3;color:#fff;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.mg-theme-bso .mg-responsive-header-club-copy :is(span,small){color:#ffda38;font-size:10px}
body.mg-theme-bso .mg-responsive-header-resources{display:flex;gap:9px;flex:none}
body.mg-theme-bso .mg-responsive-resource{display:flex;align-items:center;gap:9px;padding:8px 12px;min-height:54px;border:2px solid #061f49;border-radius:14px 14px 10px 10px;box-shadow:0 3px 0 #061f49;background:#ffcd25;color:#08224a}
body.mg-theme-bso .mg-responsive-resource strong{font-size:20px;color:#08224a}
body.mg-theme-bso .mg-responsive-header-actions{display:flex;align-items:center;gap:8px;flex:none}
body.mg-theme-bso :is(.mg-responsive-header-action,.mg-responsive-header-more>summary){display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;background:#ffc51a;color:#071f46;border:2px solid #071f46;border-radius:13px;box-shadow:0 3px 0 #071f46}
body.mg-theme-bso .mg-responsive-header svg{width:24px;height:24px}
body.mg-theme-bso .mg-action-menu-panel{background:#0c52ac;color:#fff;border:3px solid #071f46;border-radius:16px;box-shadow:0 5px 0 #071f46}
/* Public pages use the same C# identity. */
body.mg-theme-bso .mg-responsive-public-header{display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(1200px,calc(100% - 48px));margin:auto;padding:20px 0;background:transparent;border:0;border-bottom:3px solid #071f46;box-shadow:none}
body.mg-theme-bso .mg-responsive-public-brand img{width:auto;height:104px;object-fit:contain}
body.mg-theme-bso .mg-responsive-public-header nav{display:flex;align-items:center;gap:12px}
body.mg-theme-bso.mg-shell-public .mg-container{width:min(1200px,100%);margin:24px auto;padding:24px}
body.mg-theme-bso .mg-auth-card{max-width:520px;margin:24px auto;border-top-width:8px;padding:32px}
body.mg-theme-bso .mg-footer{background:transparent;color:#071f46;border:0;border-top:2px solid #b58124;box-shadow:none;width:min(1200px,calc(100% - 48px));margin:24px auto}
body.mg-theme-bso .mg-footer-brand img{width:100px;height:104px;object-fit:contain}
body.mg-theme-bso .mg-responsive-admin-brand img{max-height:90px;object-fit:contain}
/* C# compact gold dock with blue destination tiles. */
body.mg-theme-bso .mg-bottom-navigation{position:fixed;bottom:0;left:50%;right:auto;transform:translateX(-50%);width:min(1200px,calc(100vw - 24px));height:72px;min-height:72px;padding:6px 8px max(6px,env(safe-area-inset-bottom));display:flex;gap:6px;background:#ffc51a;border:3px solid #071f46;border-bottom:0;border-radius:18px 18px 0 0;box-shadow:none;z-index:150}
body.mg-theme-bso :is(.mg-bottom-navigation-entry,.mg-bottom-navigation-group>summary,.mg-bottom-navigation-more>summary){height:52px;min-height:44px;min-width:0;padding:5px 8px;gap:3px;font-size:10px;line-height:1.1;border:2px solid #071f46;border-radius:12px;box-shadow:0 3px 0 #071f46;background:#0c52ac;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column}
body.mg-theme-bso :is(.mg-bottom-navigation-entry.active,.mg-bottom-navigation-entry:hover,.mg-bottom-navigation-group[open]>summary){background:#ffc51a;color:#071f46}
body.mg-theme-bso .mg-bottom-navigation-track{min-width:0;flex:1;overflow-x:auto}
body.mg-theme-bso .mg-bottom-navigation :is(svg,.mg-ui-icon){width:24px;height:24px}
body.mg-theme-bso .mg-bottom-navigation-panel{background:#ffc51a;color:#071f46;border:3px solid #071f46;border-radius:22px;box-shadow:0 5px 0 #071f46}
body.mg-theme-bso .mg-secondary-action-bottom-row{bottom:78px}
body.mg-theme-bso :is(.mg-secondary-bottom-navigation,.mg-action-bottom-bar){background:#ffc51a;color:#071f46;border:2px solid #071f46;border-radius:14px}
body.mg-theme-bso :is(.mg-page-tabs,.mg-tabs){background:transparent;border:0;gap:6px}
body.mg-theme-bso :is(.mg-page-tabs,.mg-tabs) a{background:#0c52ac;color:#fff;border:3px solid #071f46;border-radius:16px 16px 0 0;padding:9px 15px;font-weight:800}
body.mg-theme-bso :is(.mg-page-tabs,.mg-tabs) a.active{background:#ffc51a;color:#071f46}
@media(max-width:760px){
 body.mg-theme-bso .mg-responsive-header{padding:8px 10px;gap:6px;flex-wrap:nowrap;min-height:76px}
 .bso-csharp-brand{flex-basis:60px}.bso-csharp-brand img{width:60px;height:55px}
 body.mg-theme-bso .mg-responsive-header-club{flex:1 1 0;min-width:110px}
 body.mg-theme-bso .mg-responsive-header-club-copy strong{font-size:14px;max-width:42vw}
 body.mg-theme-bso .mg-responsive-header-crest{display:none}
 body.mg-theme-bso .mg-responsive-header-actions{gap:5px}
 body.mg-theme-bso .mg-responsive-header-actions>.mg-responsive-header-action,body.mg-theme-bso .mg-logout-form-desktop{display:none}
 body.mg-theme-bso .mg-responsive-header-resources{order:0;flex:none;display:flex;justify-content:center;gap:4px}
 body.mg-theme-bso .mg-responsive-resource{flex:0 0 44px;width:44px;height:44px;justify-content:center;min-height:44px;padding:3px}
 body.mg-theme-bso .mg-responsive-resource strong{font-size:11px}
 body.mg-theme-bso.mg-shell-manager:not(.mg-is-admin):not(.mg-is-minigame) .mg-container{padding:22px 12px 160px;width:100%;margin:0}
 body.mg-theme-bso :is(.mg-card,.mg-panel,.mg-game-panel,.mg-auth-card,.mg-dialog-frame){padding:16px;border-radius:20px}
 body.mg-theme-bso .mg-bottom-navigation{width:calc(100vw - 8px);gap:4px;padding-inline:4px}
 body.mg-theme-bso :is(.mg-bottom-navigation-entry,.mg-bottom-navigation-group>summary,.mg-bottom-navigation-more>summary){padding:4px;max-width:100%;font-size:9px}
 body.mg-theme-bso .mg-responsive-public-header{width:calc(100% - 24px);gap:12px;padding:14px 0}
 body.mg-theme-bso .mg-responsive-public-brand img{height:76px}
 body.mg-theme-bso .mg-responsive-public-header nav{gap:6px;flex-wrap:wrap;justify-content:flex-end}
 body.mg-theme-bso.mg-shell-public .mg-container{padding:12px;margin:12px auto}
 body.mg-theme-bso .mg-responsive-public-header .mg-button{font-size:12px;padding:7px 10px}
}
@media(prefers-reduced-motion:reduce){body.mg-theme-bso *{scroll-behavior:auto;transition:none}}

/* Shared shell geometry; page layouts have their own lower-priority cascade layer. */
body.mg-theme-bso{margin:0;padding-top:0}
body.mg-theme-bso .mg-responsive-header-club-copy{display:block}
body.mg-theme-bso .mg-responsive-header-club-copy>small{display:block}
body.mg-theme-bso .mg-responsive-header-resources{width:auto;max-width:none;position:static}
body.mg-theme-bso .mg-responsive-resource{width:auto;height:auto;max-width:none;white-space:nowrap;text-decoration:none}
body.mg-theme-bso .mg-responsive-resource span{display:flex;align-items:center;flex:none;width:26px;height:26px}
body.mg-theme-bso .mg-responsive-resource strong{max-width:none;white-space:nowrap}
body.mg-theme-bso .mg-responsive-header :is(.mg-ui-icon,img:not(.bso-csharp-brand img)){max-width:100%;max-height:100%}
body.mg-theme-bso .mg-responsive-header-more{position:relative}
body.mg-theme-bso .mg-responsive-header-more>summary{list-style:none;cursor:pointer}
body.mg-theme-bso .mg-responsive-header-more>summary::-webkit-details-marker{display:none}
body.mg-theme-bso .mg-responsive-header-more>.mg-action-menu-panel{position:absolute;top:calc(100% + 8px);right:0;left:auto;width:min(300px,calc(100vw - 24px));max-height:70dvh;overflow:auto;display:grid;padding:10px;gap:6px}
body.mg-theme-bso .mg-responsive-header-more:not([open])>.mg-action-menu-panel{display:none}
body.mg-theme-bso .mg-action-menu-panel :is(a,button:not(:where(.mg-tile,.mg-sudoku-cell,.mg-sudoku-symbol-button,.mg-sudoku-clear-button,.mg-tower-swap-peg,.mg-connect-cell))){display:flex;align-items:center;gap:10px;min-height:44px;padding:8px;text-decoration:none}
body.mg-theme-bso .mg-action-menu-panel .mg-ui-icon{width:24px;height:24px;flex:none}
body.mg-theme-bso .mg-bottom-navigation-menu{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;min-width:0;width:100%;height:100%;align-items:start}
body.mg-theme-bso .mg-bottom-navigation-favorites{display:flex;min-width:0;gap:6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:5px}
body.mg-theme-bso .mg-bottom-navigation-entry{flex:0 0 52px;width:52px;position:relative;text-decoration:none;scroll-snap-align:start}
body.mg-theme-bso .mg-bottom-navigation-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.mg-theme-bso .mg-bottom-navigation-icon{display:flex;align-items:center;justify-content:center}
body.mg-theme-bso .mg-bottom-navigation-entry>b{position:absolute;right:2px;top:0;background:#a01121;color:white;padding:1px 4px;border-radius:6px}
body.mg-theme-bso .mg-bottom-navigation-category-panel{position:absolute;bottom:calc(100% + 10px);left:0;width:100%;max-height:70dvh;overflow:auto;background:#ffc51a;color:#071f46;border:3px solid #071f46;border-radius:22px;padding:16px}
body.mg-theme-bso .mg-bottom-navigation-category-panel[hidden]{display:none}
body.mg-theme-bso .mg-bottom-navigation-category-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
body.mg-theme-bso .mg-bottom-navigation-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
body.mg-theme-bso .mg-bottom-navigation-category-link{display:flex;align-items:center;gap:8px;padding:12px;background:#0c52ac;color:#fff;border:2px solid #071f46;border-radius:14px;text-decoration:none;min-height:48px}
body.mg-theme-bso .mg-mobile-career-progress-bar{display:block;height:4px;background:#367ed0;border-radius:2px;overflow:hidden}
body.mg-theme-bso .mg-mobile-career-progress-bar>b{display:block;height:100%;width:var(--progress,0%);background:#ffc51a}
@media(max-width:760px){
 body.mg-theme-bso .mg-bottom-navigation-entry{flex-basis:52px;width:52px}
 body.mg-theme-bso .mg-responsive-header-club-copy strong{max-width:none}
 body.mg-theme-bso .mg-responsive-header-resources{width:auto;flex:none;gap:4px}
 body.mg-theme-bso .mg-responsive-resource{display:grid;flex:0 0 44px;width:44px;height:44px;min-height:44px;grid-template-columns:1fr;grid-template-rows:22px 12px;place-items:center;align-content:center;justify-items:center;gap:2px;padding:2px}
 body.mg-theme-bso .mg-responsive-resource span{display:grid;width:22px;height:22px;place-items:center}
 body.mg-theme-bso .mg-responsive-resource :is(.mg-ui-icon,svg){width:22px;height:22px}
 body.mg-theme-bso .mg-responsive-resource strong{display:block;max-width:40px;overflow:hidden;font-size:11px;line-height:1;text-align:center;text-overflow:ellipsis;white-space:nowrap}
 body.mg-theme-bso .mg-responsive-header-club-copy>small{font-size:9px}
}

/* Semantic feedback and overlay states remain explicit with the C# palette. */
body.mg-theme-bso .mg-menu-art-icon{display:inline-block;width:24px;height:24px;background:currentColor;mask:var(--mg-menu-icon-image) center/contain no-repeat;-webkit-mask:var(--mg-menu-icon-image) center/contain no-repeat}
body.mg-theme-bso .mg-responsive-header-club{text-decoration:none}
body.mg-theme-bso :is(.mg-button.mg-danger,button:not(:where(.mg-tile,.mg-sudoku-cell,.mg-sudoku-symbol-button,.mg-sudoku-clear-button,.mg-tower-swap-peg,.mg-connect-cell)).mg-danger,.mg-danger-button,.mg-abort){background:#a01121;color:#fff}
body.mg-theme-bso :is(.mg-button.mg-success,button:not(:where(.mg-tile,.mg-sudoku-cell,.mg-sudoku-symbol-button,.mg-sudoku-clear-button,.mg-tower-swap-peg,.mg-connect-cell)).mg-success){background:#168334;color:#fff}
body.mg-theme-bso .mg-onboarding-offer-layer{background:rgba(7,31,70,.75)}
body.mg-theme-bso :is(dialog::backdrop,.mg-game-dialog__backdrop){background:rgba(7,31,70,.75)}
body.mg-theme-bso :is(.mg-surface-blue,.mg-onboarding-tooltip){background:#0c52ac;color:#fff;border:3px solid #071f46;border-radius:16px}
body.mg-theme-bso .mg-navigation-catalog :is(a,button:not(:where(.mg-tile,.mg-sudoku-cell,.mg-sudoku-symbol-button,.mg-sudoku-clear-button,.mg-tower-swap-peg,.mg-connect-cell))){background:#0c52ac;color:#fff;border:2px solid #071f46;border-radius:16px}
body.mg-theme-bso .mg-navigation-catalog :is(a,button:not(:where(.mg-tile,.mg-sudoku-cell,.mg-sudoku-symbol-button,.mg-sudoku-clear-button,.mg-tower-swap-peg,.mg-connect-cell))):hover{background:#ffc51a;color:#071f46}
body.mg-theme-bso .bso-selection-tabs>a{color:#fff}
body.mg-theme-bso .bso-selection-tabs>a[aria-current]{color:#071f46}

/* Game wrappers use the C# skin; puzzle cells and colored game pieces keep their own hit areas. */
body.mg-theme-bso :is(.mg-puzzle-stage,.mg-puzzle-panel,.mg-sudoku-stage,.mg-quiz-stage,.mg-goalkeeper-stage,.mg-tower-swap-stage,.mg-tower-swap-panel,.mg-puzzle-complete){background:#0c52ac;color:#fff;border:3px solid #071f46;border-radius:24px;box-shadow:0 6px 0 #071f46}
body.mg-theme-bso :is(.mg-sudoku-preview,.mg-quiz-preview,.mg-tower-swap-preview,.mg-goalkeeper-preview){background:#073879;color:#fff;border:2px solid #071f46;border-radius:20px}
body.mg-theme-bso :is(.mg-puzzle-stats,.mg-quiz-meta,.mg-sudoku-status,.mg-quiz-status){color:#fff}

body.mg-theme-bso progress,body.mg-theme-bso meter{accent-color:#ffc51a;height:18px;border-radius:8px;overflow:hidden}
body.mg-theme-bso progress::-webkit-progress-bar{background:#073879}
body.mg-theme-bso progress::-webkit-progress-value{background:#ffc51a}
body.mg-theme-bso progress::-moz-progress-bar{background:#ffc51a}
body.mg-theme-bso meter::-webkit-meter-optimum-value{background:#ffc51a}
body.mg-theme-bso .mg-heatmap-step.is-active{background:#ffc51a;color:#071f46;outline:2px solid #071f46}
body.mg-theme-bso.mg-debug main{max-width:1180px;margin:auto;padding:2rem}
body.mg-theme-bso.mg-debug section{background:#0c52ac;color:#fff;border:3px solid #071f46;border-radius:24px;padding:1rem;margin:1rem 0}
body.mg-theme-bso.mg-debug pre{white-space:pre-wrap;word-break:break-word;background:#073879;color:#fff;border-radius:12px;padding:1rem;overflow:auto}
body.mg-theme-bso.mg-debug dl{display:grid;grid-template-columns:minmax(8rem,16rem) 1fr;gap:.45rem 1rem}
body.mg-theme-bso.mg-debug dd{margin:0;overflow-wrap:anywhere}

/* Icons follow the nearest surface; never recolor logos, portraits or game artwork. */
body.mg-theme-bso{--bso-icon-color:#0c52ac;--bso-icon-filter:brightness(0) saturate(100%) invert(22%) sepia(95%) saturate(1774%) hue-rotate(199deg) brightness(91%) contrast(94%)}
body.mg-theme-bso :where(.mg-card,.mg-panel,.mg-game-panel,.mg-auth-card,.mg-compact-card,.mg-link-card,.mg-dashboard-card,.mg-dashboard-focus,.mg-responsive-header,.mg-dialog-frame,.mg-game-dialog__frame,.mg-action-menu-panel,.mg-empty-state,.mg-note-box,.mg-surface-blue,.mg-navigation-catalog a,.mg-bottom-navigation-entry,.mg-bottom-navigation-category-link,.mg-game-accordion,.mg-game-popover__panel,[popover],.mg-toast,.mg-alert){--bso-icon-color:#ffc51a;--bso-icon-filter:brightness(0) saturate(100%) invert(80%) sepia(94%) saturate(1090%) hue-rotate(343deg) brightness(104%) contrast(101%)}
body.mg-theme-bso :where(.mg-surface-gold,.mg-button,button,.mg-icon-button,.mg-responsive-resource,.mg-responsive-header-action,.mg-bottom-navigation-panel,.mg-game-popover>summary,.mg-warning,.mg-reset-warning){--bso-icon-color:#0c52ac;--bso-icon-filter:brightness(0) saturate(100%) invert(22%) sepia(95%) saturate(1774%) hue-rotate(199deg) brightness(91%) contrast(94%)}
body.mg-theme-bso :where(.mg-danger,.mg-success,.mg-error,.mg-alert-error,.mg-alert-success,.mg-toast.is-error,.mg-toast.is-success){--bso-icon-color:#ffc51a;--bso-icon-filter:brightness(0) saturate(100%) invert(80%) sepia(94%) saturate(1090%) hue-rotate(343deg) brightness(104%) contrast(101%)}
body.mg-theme-bso :where(.mg-bottom-navigation-entry.active,.mg-bottom-navigation-entry:hover,.mg-bottom-navigation-group[open]>summary){--bso-icon-color:#0c52ac;--bso-icon-filter:brightness(0) saturate(100%) invert(22%) sepia(95%) saturate(1774%) hue-rotate(199deg) brightness(91%) contrast(94%)}
body.mg-theme-bso .mg-ui-icon{color:var(--bso-icon-color)}
body.mg-theme-bso .mg-menu-art-icon{background-color:var(--bso-icon-color)}
body.mg-theme-bso img.mg-ui-icon{filter:var(--bso-icon-filter)}
/* Complete Laravel components missing from the original C# selectors. */
body.mg-theme-bso :is(.mg-game-accordion,.mg-game-popover__panel,[popover],.mg-toast,.mg-alert){background:#0c52ac;color:#fff;border:3px solid #071f46;border-radius:16px;padding:16px;box-shadow:0 4px 0 #071f46}
body.mg-theme-bso .mg-game-accordion>summary{color:#ffc51a}
body.mg-theme-bso .mg-game-accordion__body{padding-top:12px}
body.mg-theme-bso .mg-game-popover>summary{background:#ffc51a;color:#0c52ac;border:2px solid #071f46;border-radius:12px;padding:8px}
body.mg-theme-bso :is(.mg-warning,.mg-reset-warning){background:#d96b18;color:#071f46;border:3px solid #071f46;border-radius:14px;padding:14px}
body.mg-theme-bso .mg-reset-warning{border-color:#a01121}
body.mg-theme-bso :is(.mg-alert-success,.mg-toast.is-success){background:#168334;color:#fff}
body.mg-theme-bso :is(.mg-alert-error,.mg-toast.is-error){background:#a01121;color:#fff}
body.mg-theme-bso [popover]{max-width:min(480px,calc(100vw - 32px))}

/* Copy follows the closest surface, including gold controls nested in blue cards. */
body.mg-theme-bso .mg-responsive-header.bso-header-pinned{position:fixed;top:0;left:0;right:0;width:100%;transform:translateY(0);transition:transform .18s ease}
body.mg-theme-bso.mg-ui-mobile .mg-responsive-header.bso-header-hidden{transform:translateY(calc(-100% - 5px));pointer-events:none}
.bso-header-spacer{flex:none;width:100%;pointer-events:none}
@media(prefers-reduced-motion:reduce){body.mg-theme-bso .mg-responsive-header.bso-header-pinned{transition:none}}
body.mg-theme-bso{--bso-copy-color:#071f46}
body.mg-theme-bso :where(.mg-card,.mg-panel,.mg-game-panel,.mg-auth-card,.mg-compact-card,.mg-link-card,.mg-dashboard-card,.mg-responsive-dashboard-panel,.mg-dialog-frame,.mg-game-dialog__frame,.mg-player-hero,.mg-infra-hero,.mg-club-hero,.mg-dashboard-focus,.mg-responsive-header,.mg-surface-blue,.mg-game-accordion,.mg-game-popover__panel,[popover],.mg-toast,.mg-alert,.mg-empty-state,.mg-note-box,.mg-bottom-navigation-entry){--bso-copy-color:#f2f7ff}
body.mg-theme-bso :where(.mg-surface-gold,.mg-highlight-card,.mg-button,button,.mg-icon-button,.mg-responsive-resource,.mg-responsive-header-action,.mg-bottom-navigation-panel,.mg-warning,.mg-reset-warning,input,select,textarea){--bso-copy-color:#071f46}
body.mg-theme-bso :where(.mg-danger,.mg-success,.mg-error,.mg-alert-error,.mg-alert-success){--bso-copy-color:#f2f7ff}
body.mg-theme-bso :where(.mg-bottom-navigation-entry.active,.mg-bottom-navigation-entry:hover){--bso-copy-color:#071f46}

/* Native window thumb geometry keeps the painted and draggable area identical.
   A forced minimum thumb height is misleading on long preview pages. */
html:has(body.mg-theme-bso){scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#ffc51a #073879}
html:has(body.mg-theme-bso)::-webkit-scrollbar{width:20px;height:20px}
html:has(body.mg-theme-bso)::-webkit-scrollbar-track{background:#073879;border:0;border-radius:0}
html:has(body.mg-theme-bso)::-webkit-scrollbar-thumb{background:#ffc51a;border:0;border-radius:0;min-height:0}

/* Light copy and icons on orange warning surfaces. */
body.mg-theme-bso :is(.mg-warning,.mg-reset-warning){color:#fff;--bso-copy-color:#fff;--bso-icon-color:#fff;--bso-icon-filter:brightness(0) invert(1)}

/* Notifications stay below the persistent header (100) and navigation (150). */
body.mg-theme-bso .mg-toast-layer{z-index:50}

/* Equal borders for all notification states, without a heavier bottom shadow. */
body.mg-theme-bso :is(.mg-toast,.mg-alert,.mg-alert-error,.mg-alert-success),
body.mg-theme-bso :is(.mg-error,.mg-success,.mg-warning,.mg-reset-warning):not(button):not(a){border:3px solid #071f46;border-radius:16px;box-shadow:none}
