/* V99 / Matchday: scoped visual skin; all original wallet events are retained. */
@font-face{font-family:'MG Matchday';src:url('/assets/matchday-bold.ttf') format('truetype');font-weight:800;font-style:normal;font-display:swap}
html#metagol-game:not(.match-live) body .scoreHud.fifaMiniHud,html#metagol-game:not(.match-live) body .statusHud{display:none!important}
html#metagol-game body .walletSubTabs button,
html#metagol-game body .walletSummaryActions button{
  --action:#8eacdf;--action-dark:#142543;
  color:#f7faff!important;background:linear-gradient(145deg,#1c304f,#0a1528)!important;
  border:1px solid #7185a440!important;border-bottom:3px solid var(--action)!important;
  border-radius:4px!important;box-shadow:inset 0 1px #ffffff20,0 4px 0 #030814!important;
  font-family:'MG Matchday','Arial Narrow',sans-serif!important;font-style:normal!important;
  letter-spacing:.065em!important;text-transform:uppercase;transition:filter .16s,transform .16s;
}
html#metagol-game body .walletSubTabs button[data-wallet-section="deposit"],
html#metagol-game body .walletSummaryActions button[data-wallet-section="deposit"]{--action:#48adff;--action-dark:#123577;background:linear-gradient(125deg,#214fbe,#0e2555)!important;border-color:#4792f3!important}
html#metagol-game body .walletSubTabs button[data-wallet-section="exchange"],
html#metagol-game body .walletSummaryActions button[data-wallet-section="exchange"]{--action:#c7a5ff;--action-dark:#36225e;background:linear-gradient(125deg,#6741ad,#251b46)!important;border-color:#9871d5!important}
html#metagol-game body .walletSubTabs button[data-wallet-section="withdraw"],
html#metagol-game body .walletSummaryActions button[data-wallet-section="withdraw"]{--action:#ffbe68;--action-dark:#633016;background:linear-gradient(125deg,#a74813,#4d2314)!important;border-color:#ed9450!important}
html#metagol-game body .walletSubTabs button.active{filter:brightness(1.22);box-shadow:inset 0 -3px var(--action),inset 0 1px #ffffff60,0 4px 0 #030814!important}
html#metagol-game body .walletSubTabs{gap:8px!important;padding:10px 0 12px!important}
html#metagol-game body .walletSubTabs button{min-height:40px!important;font-size:12px!important;padding:8px 5px!important}
html#metagol-game body .walletSummaryActions{gap:10px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
html#metagol-game body .walletSummaryActions button{position:relative;min-height:70px!important;gap:10px!important;padding:12px 16px 12px 12px!important;overflow:hidden;isolation:isolate;text-align:left}
html#metagol-game body .walletSummaryActions button::after{content:"";position:absolute;right:-6px;top:0;width:18px;height:100%;background:#ffffff0c;transform:skewX(-16deg);pointer-events:none}
html#metagol-game body .walletSummaryActions button i{display:grid!important;place-items:center!important;width:35px!important;height:39px!important;flex:0 0 35px!important;border:1px solid var(--action)!important;background:var(--action-dark)!important;color:#fff!important;border-radius:3px!important;transform:skewX(-7deg);font:700 23px Arial,sans-serif!important;box-shadow:inset 0 -3px #0004!important}
html#metagol-game body .walletSummaryActions button small{display:block;font:700 9px Arial,sans-serif!important;letter-spacing:.12em!important;color:#edf3ffb3!important;margin:0 0 4px!important}
html#metagol-game body .walletSummaryActions button b{display:block;font:800 15px/1.1 'MG Matchday','Arial Narrow',sans-serif!important;letter-spacing:.035em!important;color:#fff!important;white-space:nowrap}
html#metagol-game body .walletSummaryActions button:hover,html#metagol-game body .walletSubTabs button:hover{filter:brightness(1.18)}
html#metagol-game body .walletSummaryActions button:active,html#metagol-game body .walletSubTabs button:active{transform:translateY(2px)}
html#metagol-game body .walletSummaryActions button:focus-visible,html#metagol-game body .walletSubTabs button:focus-visible{outline:3px solid #fff!important;outline-offset:3px}
html#metagol-game body #copyDepositBtn,html#metagol-game body #verifyDepositBtn{background:linear-gradient(120deg,#2867e5,#1245a7)!important;border-color:#5d9fff!important;color:#fff!important;border-radius:4px!important}
html#metagol-game body #requestWithdrawalBtn{background:linear-gradient(120deg,#ee983c,#c75e21)!important;color:#211007!important;border-color:#ffce80!important;border-radius:4px!important}
html#metagol-game body #mgExchangeBtn{background:linear-gradient(120deg,#9770ef,#5934b4)!important;border-color:#c5aaff!important;color:#fff!important;border-radius:4px!important}

/* Scoreboard: names, score and clock are distinct rows; no overlapping timer. */
html#metagol-game body .scoreHud.fifaMiniHud{
  position:absolute!important;left:50%!important;top:max(8px,env(safe-area-inset-top))!important;
  transform:translateX(-50%)!important;width:360px!important;max-width:calc(100vw - 210px)!important;
  height:auto!important;min-height:0!important;padding:0!important;overflow:visible!important;
  display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;
  background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  filter:drop-shadow(0 5px 8px #0009);pointer-events:none!important;
}
html#metagol-game body .scoreHudMeta{position:static!important;display:block!important;margin:0 34px!important;padding:4px 6px!important;height:auto!important;transform:none!important;border:1px solid #4c5d74!important;border-bottom:0!important;background:#111b2bf5!important;color:#ccdbed!important;text-align:center!important;font:700 8px/1 Arial,sans-serif!important;letter-spacing:.20em!important}
html#metagol-game body .scoreBar{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 106px minmax(0,1fr)!important;align-items:stretch!important;width:100%!important;height:46px!important;min-height:0!important;margin:0!important;padding:0!important;gap:0!important;background:linear-gradient(180deg,#253750,#0d1727)!important;border:1px solid #7b8da5!important;border-radius:4px!important;overflow:visible!important;box-shadow:inset 0 1px #ffffff18!important;clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% 100%,0 100%,0 7px)!important}
html#metagol-game body .teamMini{position:relative!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:5px!important;min-width:0!important;width:auto!important;padding:4px 8px!important;margin:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html#metagol-game body .teamMiniHome{border-bottom:3px solid #52a8ff!important}
html#metagol-game body .teamMiniAway{border-bottom:3px solid #ff7c45!important}
html#metagol-game body .teamCode{display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font:800 14px/1 Arial,sans-serif!important;letter-spacing:.02em!important;color:#fff!important;text-shadow:0 2px 2px #0008!important}
html#metagol-game body .flagStub{display:none!important}
html#metagol-game body .scoreMiniCore{display:flex!important;align-items:center!important;justify-content:center!important;background:linear-gradient(155deg,#f9cf67,#e9a72d)!important;border:0!important;border-left:2px solid #ffe5a9!important;border-right:2px solid #ad711b!important;margin:0!important;padding:0!important;min-width:0!important;transform:skewX(-7deg)}
html#metagol-game body #score{font:900 30px/1 'Arial Black',Arial,sans-serif!important;font-variant-numeric:tabular-nums;color:#171b28!important;letter-spacing:.02em!important;text-shadow:none!important;white-space:nowrap!important;transform:skewX(7deg)}
html#metagol-game body #clockWrap{position:static!important;align-self:center!important;display:grid!important;place-items:center!important;left:auto!important;top:auto!important;bottom:auto!important;transform:none!important;margin:0!important;padding:4px 18px!important;width:auto!important;min-width:70px!important;height:auto!important;min-height:0!important;border:1px solid #7c8da5!important;border-top:0!important;border-radius:0 0 5px 5px!important;background:#101c2ff5!important;box-shadow:0 3px 0 #0004!important}
html#metagol-game body #clock{font:800 12px/1.15 Arial,sans-serif!important;font-variant-numeric:tabular-nums;color:#fff!important;letter-spacing:.12em!important}
html#metagol-game body .statusHud{top:96px!important;left:50%!important;transform:translateX(-50%)!important;max-width:300px!important;min-height:0!important;padding:3px 8px!important;border:1px solid #7f96ba40!important;background:#081526d9!important;box-shadow:none!important;border-radius:3px!important}
html#metagol-game body #status{font:700 8px/1.2 Arial,sans-serif!important;color:#d4dfef!important}
html#metagol-game body .statusHud .stamina{width:56px!important;height:3px!important}
html#metagol-game body .statusHud .stamina i{background:linear-gradient(90deg,#3c83ef,#a5d4ff)!important}

/* Referee notices are game events, not generic account popups. */
html#metagol-game body #cardNotice[data-event]{--card-accent:#f5c842;position:absolute!important;left:50%!important;top:23%!important;bottom:auto!important;transform:translateX(-50%)!important;display:none!important;grid-template-columns:48px minmax(0,1fr)!important;gap:15px!important;align-items:center!important;width:300px!important;max-width:calc(100vw - 40px)!important;min-height:78px!important;box-sizing:border-box!important;padding:18px!important;background:linear-gradient(115deg,#20293a,#09111ef5)!important;border:1px solid #8998b754!important;border-left:4px solid var(--card-accent)!important;border-radius:4px!important;box-shadow:0 10px 30px #0008,inset 0 1px #ffffff14!important;pointer-events:none!important}
html#metagol-game body #cardNotice[data-event].show{display:grid!important;animation:mg99-event-in .22s ease-out}
html#metagol-game body #cardNotice[data-event="red"]{--card-accent:#ff514a}
html#metagol-game body #cardNotice[data-event="offside"],html#metagol-game body #cardNotice[data-event="foul"]{--card-accent:#83b7ff}
html#metagol-game body #cardNotice[data-event] .card{position:relative!important;display:block!important;width:32px!important;height:46px!important;margin:0!important;border-radius:3px!important;transform:rotate(-9deg)!important;background:linear-gradient(140deg,#fff5ae,var(--card-accent) 55%,#d79714)!important;border:1px solid #fff8!important;box-shadow:4px 4px 0 #0005!important}
html#metagol-game body #cardNotice[data-event] .card::after{content:"MG";position:absolute;bottom:4px;right:3px;color:#0006;font:900 8px Arial,sans-serif}
html#metagol-game body #cardNotice[data-event="red"] .card{background:linear-gradient(140deg,#ffb4a3,#f24b42 55%,#a32133)!important}
html#metagol-game body #cardNotice[data-event="offside"] .card,html#metagol-game body #cardNotice[data-event="foul"] .card{height:34px!important;background:linear-gradient(135deg,#fbd85b 25%,#ea8028 25% 50%,#fbd85b 50% 75%,#ea8028 75%)!important;border-radius:1px!important;transform:rotate(-5deg)!important;border-left:4px solid #d3dfef!important}
html#metagol-game body #cardNotice[data-event] #cardTitle{display:block!important;margin:0 0 5px!important;color:var(--card-accent)!important;font:800 21px/1.05 'MG Matchday','Arial Narrow',sans-serif!important;letter-spacing:.04em!important;text-shadow:none!important}
html#metagol-game body #cardNotice[data-event] #cardText{display:block!important;color:#edf2fa!important;font:700 12px/1.3 Arial,sans-serif!important;overflow-wrap:anywhere!important;letter-spacing:0!important}
@keyframes mg99-event-in{from{opacity:0;translate:0 -10px}to{opacity:1;translate:0 0}}
@media(max-height:500px){
 html#metagol-game body .scoreHud.fifaMiniHud{width:300px!important;top:max(5px,env(safe-area-inset-top))!important;max-width:calc(100vw - 185px)!important}
 html#metagol-game body .scoreHudMeta{font-size:7px!important;padding:3px 4px!important}
 html#metagol-game body .scoreBar{height:36px!important;grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr)!important}
 html#metagol-game body .teamCode{font-size:12px!important}
 html#metagol-game body #score{font-size:26px!important}
 html#metagol-game body #clockWrap{padding:3px 13px!important;min-width:60px!important}
 html#metagol-game body #clock{font-size:10px!important}
 html#metagol-game body .statusHud{top:76px!important;padding:2px 7px!important}
 html#metagol-game body .walletSummaryActions button{min-height:58px!important;padding:8px!important;gap:7px!important}
 html#metagol-game body .walletSummaryActions button b{font-size:12px!important}
 html#metagol-game body .walletSummaryActions button small{font-size:8px!important}
 html#metagol-game body .walletSummaryActions button i{width:29px!important;height:33px!important;flex-basis:29px!important}
 html#metagol-game body .walletSubTabs{padding:5px 0 9px!important;gap:5px!important}
 html#metagol-game body .walletSubTabs button{font-size:10px!important;min-height:34px!important;padding:5px 4px!important}
 html#metagol-game body #cardNotice[data-event]{top:27%!important;width:268px!important;min-height:66px!important;padding:13px!important;gap:9px!important;grid-template-columns:38px minmax(0,1fr)!important}
 html#metagol-game body #cardNotice[data-event] #cardTitle{font-size:18px!important}
 html#metagol-game body #cardNotice[data-event] #cardText{font-size:11px!important}
}
@media(max-width:740px){html#metagol-game body .walletSummaryActions button b{font-size:10px!important}html#metagol-game body .walletSummaryActions button i{width:25px!important;flex-basis:25px!important}html#metagol-game body .walletSummaryActions{gap:6px!important}}
@media(prefers-reduced-motion:reduce){html#metagol-game body #cardNotice[data-event].show{animation:none!important}html#metagol-game body .walletSummaryActions button,html#metagol-game body .walletSubTabs button{transition:none!important}}
html#metagol-game body .scoreBar>.teamMini,html#metagol-game body .scoreBar>.scoreMiniCore{height:100%!important;box-sizing:border-box!important;min-height:0!important;align-self:stretch!important}
html#metagol-game body #status{margin:0!important;padding:0!important;background:none!important;border:0!important;height:auto!important}
html#metagol-game body .statusHud{display:flex!important;align-items:center!important;gap:8px!important;height:auto!important}
html#metagol-game:not(.match-live) body .statusHud{display:none!important}
html#metagol-game body .walletSummaryHero{grid-template-columns:minmax(175px,.65fr) minmax(0,1.35fr)!important}
html#metagol-game body .walletSummaryActions button div{min-width:0}
html#metagol-game body .walletSummaryActions button small{white-space:nowrap!important}
html#metagol-game body #cardNotice[data-event]{clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%)}
