.mg-page{padding-block:26px 60px}.mg-heading{margin:18px 0 24px}.mg-heading h1{color:#f0f3f1;font:800 clamp(3rem,7vw,5rem)/.93 var(--head);letter-spacing:-.018em;margin:0}.mg-heading p{color:#aeb8bf;margin:11px 0 0}.mg-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:0;padding:0;list-style:none;display:grid}.mg-grid li{min-width:0}.mg-catalog-tile{height:100%;min-height:211px;color:inherit;background:#191f25;border:1px solid #303a42;border-radius:8px;display:grid;overflow:hidden}.mg-catalog-tile:hover,.mg-catalog-tile:focus-visible{border-color:var(--mg-accent)}.mg-catalog-tile>div{padding:13px 16px 16px}.mg-catalog-tile h2{font:770 1.65rem/1.1 var(--head);margin:0}.mg-catalog-tile p{color:#adb8be;margin:5px 0 0;font-size:.91rem}.mg-thumbnail{min-height:134px;color:var(--mg-accent);isolation:isolate;background:radial-gradient(ellipse at 51% 82%, color-mix(in srgb,var(--mg-accent) 19%,#192024),#171c22 69%);place-items:center;display:grid;position:relative}.mg-thumbnail:before,.mg-scene:before{content:"";opacity:.38;z-index:-1;background:repeating-linear-gradient(135deg,#9aa5ad17 0 1px,#0000 1px 25px);position:absolute;inset:0}.mg-thumbnail>svg:first-child{width:68px;height:68px;transition:transform .2s;transform:rotate(-10deg)}.mg-catalog-tile:hover .mg-thumbnail>svg:first-child{transform:rotate(-5deg)translateY(-3px)}.mg-card-arrow{width:17px;position:absolute;top:12px;right:12px}[data-game=mines]{--mg-accent:#c7f940}[data-game=crash]{--mg-accent:#7ee6bd}[data-game=dice]{--mg-accent:#b4ccff}[data-game=coinflip]{--mg-accent:#f1c578}[data-game=higher-lower]{--mg-accent:#d2bcff}[data-game=wheel]{--mg-accent:#f0ca7b}.mg-play,.mg-bottom{grid-template-columns:minmax(0,1fr) minmax(275px,.44fr);align-items:start;gap:16px;display:grid}.mg-stage,.mg-controls,.mg-bottom>section{background:#191e25;border:1px solid #323942;border-radius:8px;min-width:0}.mg-stage{overflow:hidden}.mg-skip{margin:0 12px 10px}.mg-stage-top{color:#bcc5ca;justify-content:space-between;align-items:center;gap:10px;min-height:46px;padding:7px 14px;font-weight:700;display:flex}.mg-stage:is([data-status=won],[data-status=active]) .mg-stage-top{color:var(--mg-accent)}.mg-stage[data-status=lost] .mg-stage-top{color:#feb494}.mg-sound{color:#c1cbd1;cursor:pointer;background:#232a32;border:1px solid #3b444c;border-radius:5px;place-items:center;width:39px;height:37px;display:grid}.mg-sound:hover{color:var(--mg-accent)}.mg-scene{isolation:isolate;background:radial-gradient(ellipse at 52% 65%,color-mix(in srgb,var(--mg-accent) 13%,#182026),#121820 70%);place-items:center;min-height:clamp(260px,34vw,460px);padding:12px;display:grid;position:relative;overflow:hidden}.mg-result{font-variant-numeric:tabular-nums;border-top:1px solid #303944;justify-content:space-between;align-items:center;gap:8px;min-height:54px;padding:10px 15px;display:flex}.mg-result>strong{align-items:center;gap:8px;display:flex}.mg-result>span{overflow-wrap:anywhere;min-width:0}.mg-result[data-result=won]{color:#d5fa8d;background:#202b1d}.mg-result[data-result=lost]{color:#ffab95;background:#2e2528}.mg-stage[data-feedback=won] .mg-result>span[aria-hidden]{animation:.52s cubic-bezier(.17,.76,.38,1) mg-payout}.mg-stage[data-feedback=won] .mg-scene:after{content:"";pointer-events:none;background:radial-gradient(at 50% 60%,#c7f94052,#0000 59%);animation:.65s ease-out both mg-victory;position:absolute;inset:0}.mg-stage[data-feedback=lost] .mg-scene:after{content:"";pointer-events:none;background:radial-gradient(#130d18c7,#7433224c);animation:.48s ease-out both mg-defeat;position:absolute;inset:0}.mg-controls,.mg-bottom>section{padding:16px}.mg-controls h2,.mg-bottom h2{font:750 1.45rem/1.05 var(--head);margin:0 0 10px}.mg-controls fieldset{border:0;min-inline-size:0;margin:10px 0 0;padding:0}.mg-controls legend,.mg-field,.mg-ledger dt{color:#aeb8c1;font-size:.88rem}.mg-field{gap:5px;display:grid}.mg-controls input{color:#fff;font:inherit;background:#10161c;border:1px solid #38424d;border-radius:5px;width:100%;min-width:0;padding:9px}.mg-options{flex-wrap:wrap;gap:5px;display:flex}.mg-options button,.mg-colors button{color:#dce2e5;min-height:40px;font:inherit;cursor:pointer;background:#222a32;border:1px solid #3b4650;border-radius:5px;justify-content:center;align-items:center;gap:4px;font-weight:700;display:inline-flex}.mg-options button{flex:1 0 25px;padding:4px 6px}.mg-options button[aria-pressed=true],.mg-colors button[aria-pressed=true]{border-color:var(--mg-accent);color:var(--mg-accent);background:#252f30}.mg-controls button:disabled{opacity:.55;cursor:default}.mg-colors{gap:5px;display:grid}.mg-colors>div{align-items:stretch;gap:4px;display:flex}.mg-colors button{flex:1;justify-content:flex-start;padding:4px 6px}.mg-colors small{white-space:nowrap;margin-left:auto}.mg-colors i{border:1px solid #9e9e9e;border-radius:50%;flex:none;width:12px;height:12px}.mg-colors input{width:64px}.mg-ledger{margin:12px 0}.mg-ledger>div{border-top:1px solid #303942;justify-content:space-between;align-items:baseline;gap:6px;padding:8px 0;display:flex}.mg-ledger dd{color:#eff3ec;text-align:right;margin:0;font-weight:700}.mg-action{justify-content:center;width:100%;min-height:45px}.mg-action+.mg-action{margin-top:6px}.mg-error{color:#ffd0ad;font-size:.9rem}.mg-bottom{margin-top:16px}.mg-bottom p{color:#bac4c9;margin:0;line-height:1.55}.mg-history{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.mg-history li{border:1px solid #3a4650;border-radius:5px;grid-template-columns:1fr auto;column-gap:8px;min-width:97px;padding:6px 8px;font-size:.8rem;display:grid}.mg-history li>span:last-child{grid-column:1/-1;font-weight:700}.mg-history [data-status=won]{color:#c7f940}.mg-history [data-status=lost]{color:#ffa794}.mg-board{grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(4px,1.2vw,8px);width:min(100%,390px);display:grid}.mg-board button{aspect-ratio:1;color:#9eacb5;cursor:pointer;background:#26313a;border:1px solid #435461;border-bottom:3px solid #111b23;border-radius:6px;place-items:center;padding:3px;display:grid}.mg-board button:not(:disabled):hover{background:#343f41;border-color:#c7f940}.mg-board button>span{background:#71818a;border-radius:1px;width:7px;height:7px;transform:rotate(45deg)}.mg-board button[data-kind=safe]{color:#b6f582;background:#263e2e}.mg-board button[data-kind=mine]{color:#ffac93;background:#3c2932}.mg-board[data-animate=true] button:is([data-kind=safe],[data-kind=mine]){animation:.28s ease-out mg-reveal}.mg-board button[data-hit=true]{outline:2px solid #ff9876}.mg-board button[data-checking=true]{outline:2px solid #aab7be;animation:.18s ease-out both mg-check}.mg-flight{width:min(100%,630px);color:var(--mg-accent);text-align:center;padding:16px 0 0}.mg-flight strong{font:800 clamp(2.4rem,8vw,5rem)/.97 var(--head);font-variant-numeric:tabular-nums;display:block}.mg-flight svg{width:100%;height:auto;max-height:220px;display:block}.mg-stage[data-status=lost] .mg-flight{color:#ff947d}.mg-crash-blast{opacity:0;transform-origin:50%;transform-box:fill-box}.mg-stage[data-feedback=lost] .mg-crash-blast{animation:.45s ease-out both mg-blast}.mg-die-space{--edge:clamp(86px,15vw,147px);--half:calc(var(--edge)/2);width:var(--edge);aspect-ratio:1;perspective:550px;isolation:isolate;position:relative;transform:rotate(-8deg)}.mg-die-space:before{content:"";z-index:-1;background:radial-gradient(#070c1394,#0000 67%);height:27%;position:absolute;inset:auto -24% -34%}.mg-die{width:100%;height:100%;transform-style:preserve-3d;transform:rotateX(16deg) rotateY(-21deg) rotateX(var(--die-x)) rotateY(var(--die-y));position:relative}.mg-die-face{backface-visibility:hidden;background:linear-gradient(145deg,#edf6fa,#a4b9cf);border:1px solid #f4f8f7;border-radius:11%;grid-template-columns:repeat(3,1fr);gap:6%;padding:13%;display:grid;position:absolute;inset:0}.mg-die-face[data-side="1"]{transform:translateZ(var(--half))}.mg-die-face[data-side="2"]{transform:rotateX(90deg) translateZ(var(--half))}.mg-die-face[data-side="3"]{transform:rotateY(90deg) translateZ(var(--half))}.mg-die-face[data-side="4"]{transform:rotateY(-90deg) translateZ(var(--half))}.mg-die-face[data-side="5"]{transform:rotateX(-90deg) translateZ(var(--half))}.mg-die-face[data-side="6"]{transform:rotateY(180deg) translateZ(var(--half))}.mg-die-face:is([data-side="2"],[data-side="4"],[data-side="6"]){background:linear-gradient(145deg,#d5e4f2,#839db6);border-color:#cadbe8}.mg-die i[data-on=true]{aspect-ratio:1;background:#203446;border-radius:50%;place-self:center;width:70%;box-shadow:inset 0 2px 4px #101820}.mg-die[data-animate=true]{animation:1.45s linear mg-dice}.mg-coin-scene{grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;width:min(100%,600px);display:grid}.mg-duelist{color:#c0c8ce;text-align:center;justify-items:center;gap:4px;display:grid}.mg-duelist svg{color:var(--mg-accent)}.mg-coin-space{aspect-ratio:1;perspective:600px;width:clamp(92px,15vw,155px)}.mg-coin{width:100%;height:100%;transform-style:preserve-3d;transform:rotateY(var(--coin-face));position:relative}.mg-coin:before{content:"";background:#8a6029;border-radius:50%;position:absolute;inset:0}.mg-coin-face{color:#4a341e;backface-visibility:hidden;background:linear-gradient(135deg,#ffe29c,#b8853c);border:4px double #f7dea3;border-radius:50%;align-content:center;justify-items:center;gap:2px;display:grid;position:absolute;inset:0;box-shadow:inset 0 0 0 2px #83592375}.mg-coin-face[data-side=heads]{transform:translateZ(4px)}.mg-coin-face[data-side=tails]{transform:rotateY(180deg)translateZ(4px)}.mg-coin svg{width:43%;height:auto}.mg-coin[data-animate=true]{animation:1.6s cubic-bezier(.21,.62,.3,1) mg-coin}.mg-stage[data-revealing=true] .mg-coin-face strong{visibility:hidden}.mg-number-stack{justify-items:center;gap:12px;display:grid}.mg-number-card{aspect-ratio:3/4;width:clamp(105px,16vw,166px);color:var(--mg-accent);font:800 clamp(2.8rem,9vw,6rem)/1 var(--head);background:linear-gradient(135deg,#393350,#23203a);border:1px solid #9b8ac9;border-radius:10px;place-items:center;display:grid;box-shadow:8px 9px #151724}.mg-number-card[data-animate=true]{animation:.44s cubic-bezier(.18,.72,.32,1) mg-number}.mg-number-card[data-checking=true]{animation:.22s ease-out both mg-check}.mg-number-run{gap:6px;min-height:28px;display:flex}.mg-number-run span{color:#d4c8f3;background:#29243f;border-radius:3px;padding:2px 8px}.mg-wheel-shell{place-items:center;gap:9px;padding:10px 0;display:grid;position:relative}.mg-wheel{aspect-ratio:1;border:4px solid #5d5353;border-radius:50%;place-items:center;width:clamp(174px,26vw,342px);transition:transform 4.8s cubic-bezier(.52,0,.15,1);display:grid;box-shadow:0 7px #24242b,0 14px 35px #05070a}.mg-wheel>span{aspect-ratio:1;color:#ffe3a0;width:31%;font:800 2rem var(--head);background:#22232a;border:2px solid #8d795c;border-radius:50%;place-items:center;display:grid}.mg-wheel-pin{z-index:1;clip-path:polygon(0 0,100% 0,50% 100%);background:#ffe0a4;width:22px;height:25px;position:absolute;top:0}.mg-wheel-color{color:var(--mg-accent)}.mg-stage[data-revealing=true] .mg-wheel-color{visibility:hidden}@keyframes mg-reveal{0%{opacity:.55;transform:translateY(7px)scale(.94)}}@keyframes mg-number{0%{opacity:.16;transform:perspective(480px)translateY(22px)rotateX(-28deg)scale(.93)}70%{opacity:1;transform:perspective(480px)translateY(-3px)rotateX(3deg)}to{opacity:1;transform:perspective(480px)translateY(0)rotateX(0)}}@keyframes mg-payout{0%{opacity:.45;transform:translateY(6px)scale(.88)}70%{transform:scale(1.05)}}@keyframes mg-victory{18%{opacity:1}0%,to{opacity:0}}@keyframes mg-defeat{20%{opacity:.73}0%,to{opacity:0}}@keyframes mg-check{50%{opacity:.7;transform:scale(.96)}}@keyframes mg-blast{0%{opacity:1;transform:scale(.55)}to{opacity:0;transform:scale(1.6)}}@keyframes mg-dice{0%{transform:translate(-52px,-32px) rotateX(16deg) rotateY(-21deg) rotateX(calc(var(--die-x) - 720deg)) rotateY(calc(var(--die-y) - 560deg))}52%{transform:translate(13px,17px) rotateX(16deg) rotateY(-21deg) rotateX(calc(var(--die-x) - 115deg)) rotateY(calc(var(--die-y) - 62deg))}75%{transform:translate(4px,-9px) rotateX(16deg) rotateY(-21deg) rotateX(calc(var(--die-x) - 16deg)) rotateY(calc(var(--die-y) - 28deg))}to{transform:translate(0) rotateX(16deg) rotateY(-21deg) rotateX(var(--die-x)) rotateY(var(--die-y))}}@keyframes mg-coin{0%{transform:translateY(-52px) rotateY(calc(var(--coin-face) - 1080deg))}to{transform:translateY(0) rotateY(var(--coin-face))}}@media (max-width:850px){.mg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:720px){.mg-play,.mg-bottom{grid-template-columns:minmax(0,1fr)}}@media (max-width:430px){.mg-grid{gap:8px}.mg-catalog-tile>div{padding:8px}.mg-thumbnail{min-height:85px}.mg-thumbnail>svg:first-child{width:45px;height:45px}.mg-catalog-tile{min-height:155px}}@media (prefers-reduced-motion:reduce){.mg-page *{transition:none!important;animation:none!important}.mg-stage[data-feedback] .mg-scene:after{display:none}}
