/* The tile motion is restored from legacy frontend/src/v2/home/gameIcons.css. */
.sf-mines-art{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:4px;width:56px;height:56px;flex:none;box-sizing:border-box;background:#000;border-radius:10px;box-shadow:0 0 18px #fef20038}
.sf-mines-art-cell{border-radius:4px;background:#fef200;animation:sf-mine-cell 3.6s ease-in-out infinite}
.sf-mines-art-cell:nth-child(2){animation-delay:.45s}.sf-mines-art-cell:nth-child(3){animation-delay:.9s}.sf-mines-art-cell:nth-child(6){animation-delay:1.35s}.sf-mines-art-cell:nth-child(9){animation-delay:1.8s}.sf-mines-art-cell:nth-child(8){animation-delay:2.25s}.sf-mines-art-cell:nth-child(7){animation-delay:2.7s}.sf-mines-art-cell:nth-child(4){animation-delay:3.15s}
.sf-mines-art-cell.bomb{display:flex;align-items:center;justify-content:center;animation:none;background:#000}.sf-mines-art-cell.bomb svg{width:13px;height:13px;color:#fef200;animation:sf-mine-tick 1.2s ease-in-out infinite}
@keyframes sf-mine-cell{0%,30%,100%{opacity:1}10%{opacity:.35}}@keyframes sf-mine-tick{0%,100%{transform:rotate(-6deg) scale(1)}50%{transform:rotate(6deg) scale(1.08)}}
subo-mines-tile{display:block;min-width:0}.sf-mines-tile{gap:14px!important;background:radial-gradient(ellipse at 14% 65%,#fff0000c,transparent 65%),#0c0c0c}.sf-mines-tile .sf-cases-tile-copy p{color:#999}.sf-mines-tile p{display:flex;align-items:center;gap:4px}.sf-mines-tile p svg{width:17px;height:17px;flex:none}
.mn-game{position:fixed;z-index:300;top:0;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;width:100%;max-width:640px;height:var(--game-height,100dvh);padding:var(--game-safe-top,0px) var(--game-safe-right,0px) var(--game-safe-bottom,0px) var(--game-safe-left,0px);box-sizing:border-box;background:#080808;color:#fafafa;font:inherit;line-height:1.35;isolation:isolate;box-shadow:0 0 0 100vmax #000c}
.mn-game *{box-sizing:border-box}.mn-game button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}.mn-game button:disabled{cursor:default}.mn-game button:focus-visible,.mn-game a:focus-visible{outline:2px solid #fff000;outline-offset:3px}.mn-game h1,.mn-game p{margin:0}
.mn-header{flex:none;display:flex;align-items:center;gap:10px;min-height:60px;padding:10px 16px;border-bottom:1px solid #303030;background:#0b0b0b}.mn-title{display:flex;align-items:center;gap:10px;margin-right:auto}.mn-title h1{font-size:21px;font-weight:900;letter-spacing:-.6px}.mn-title .sf-mines-art{width:32px;height:32px;padding:3px;gap:2px;border-radius:6px;box-shadow:none}.mn-title .sf-mines-art-cell{border-radius:2px}.mn-title .bomb svg{width:9px;height:9px}
.mn-balance{padding:7px 11px;border:1px solid #343434;border-radius:24px;background:#161616;font-size:14px;font-weight:800}.mn-close{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #333333;border-radius:11px;background:#171717;font-size:24px!important;color:#ddd!important}
.mn-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:10px 14px 22px}.mn-money{display:inline-flex;align-items:center;vertical-align:middle;gap:4px;white-space:nowrap;font-variant-numeric:tabular-nums}.mn-money svg{width:19px;height:19px;flex:none}.mn-board-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;max-width:420px;margin:0 auto 8px;color:#adadad;font-size:12px}.mn-board-heading small{font-size:9px;letter-spacing:1px;color:#808080}
.mn-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;width:min(100%,420px,max(230px,calc(var(--game-height,100dvh) - 355px)));margin:0 auto 12px}
.mn-cell{position:relative;display:grid;place-items:center;aspect-ratio:1;min-width:0;padding:0;border:1px solid #343434;border-radius:13px;background:linear-gradient(155deg,#222222,#151515);box-shadow:inset 0 1px 0 #ffffff08;overflow:hidden;transition:background .16s,border-color .16s,transform .16s}.mn-cell:not(:disabled):active{transform:scale(.93)}.mn-cell img{width:72%;height:72%;object-fit:contain;pointer-events:none;user-select:none}.mn-cell.closed img{opacity:.16;filter:grayscale(.5) brightness(.7)}.mn-cell.pending{border-color:#fef200}.mn-cell.pending img{opacity:.45;animation:mn-pending .7s ease-in-out infinite}.mn-cell.gem{border-color:#fff00080;background:radial-gradient(ellipse at 50% 30%,#fff00024,#141414 80%)}.mn-cell.gem img{animation:mn-pop .4s cubic-bezier(.18,.8,.3,1.4);filter:drop-shadow(0 0 7px #fff00045)}.mn-cell.dim img{opacity:.3}.mn-cell.mine,.mn-cell.hit{border-color:#ef444460;background:#230f0e}.mn-cell.hit{border-color:#f55;animation:mn-shake .4s}.mn-cell.hit img{animation:mn-pop .4s;filter:drop-shadow(0 0 8px #ef444485)}
@keyframes mn-pop{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}@keyframes mn-pending{50%{opacity:.2;transform:scale(.88)}}@keyframes mn-shake{20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}}
.mn-bets,.mn-risk,.mn-history{max-width:510px;margin:0 auto 10px;background:#111111;border:1px solid #303030;border-radius:16px;padding:12px}.mn-section-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:11px;font-weight:750;color:#adadad}.mn-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.mn-presets button{display:flex;justify-content:center;align-items:center;min-height:40px;padding:8px 2px;border:1px solid #353535;border-radius:11px;background:#1b1b1b;font-size:12px;font-weight:800}.mn-presets button[aria-pressed=true]{border-color:#fff000;background:#fff000;color:#080808}.mn-presets .mn-money{gap:3px}.mn-presets .mn-money svg{width:16px;height:16px}
.mn-mine-picker{display:flex;align-items:center;justify-content:space-between;gap:8px}.mn-mine-picker>span{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:700}.mn-mine-picker>span>svg{width:17px;height:17px;color:#fff000}.mn-mine-picker small{font-size:10px;font-weight:400;color:#929292}.mn-mine-picker>div{display:flex;align-items:center;gap:13px}.mn-mine-picker button{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;border:1px solid #484848;background:#222222;font-size:21px}.mn-mine-picker button:disabled{opacity:.3}.mn-mine-picker b{min-width:22px;text-align:center;font-size:20px;color:#fff000}
.mn-actions{max-width:510px;margin:0 auto 12px;text-align:center}.mn-primary{width:100%;min-height:48px;display:flex;justify-content:center;align-items:center;gap:10px;border:0;border-radius:13px;background:#fff000;color:#0b0b0b!important;font-weight:850!important;font-size:15px!important;box-shadow:0 5px 18px #ffed0019}.mn-primary:disabled{background:#303030;color:#aaa!important;box-shadow:none}.mn-game .mn-muted{margin-top:7px;color:#999;font-size:11px}.mn-muted a{color:#fff000;text-decoration:underline}.mn-muted svg{width:14px;height:14px}.mn-limit{display:block;margin-top:5px;font-size:10px;color:#808080}
.mn-result{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px;max-width:510px;margin:0 auto 10px;padding:12px;border:1px solid currentColor;border-radius:14px;background:#111111}.mn-result>strong{font-size:15px}.mn-result>b{font-size:22px}.mn-result>small{flex-basis:100%;font-size:11px}.mn-result>small svg{width:15px;height:15px}.mn-game .win{color:#fff000}.mn-game .loss{color:#ff6767}
.mn-history{padding:0;overflow:hidden}.mn-history summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:13px;font-size:13px;font-weight:750}.mn-history summary:after{content:'⌄';color:#ccc}.mn-history summary span{margin-left:auto;font-size:10px;font-weight:400;color:#909090}.mn-history[open] summary:after{content:'⌃'}.mn-history-list{padding:0 10px 8px}.mn-history article{display:flex;align-items:center;gap:8px;padding:10px 0;border-top:1px solid #2b2b2b}.mn-history-bomb{display:grid;place-items:center;flex:none;width:28px;height:32px;background:#222222;border-radius:8px}.mn-history-bomb svg{width:17px;height:17px;color:#999}.mn-history article>div{flex:1;min-width:0}.mn-history article b{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:12px;font-weight:750}.mn-history article b>span:last-child{font-size:10px;color:#bbb}.mn-history article small{display:block;margin-top:3px;font-size:10px;color:#888}.mn-history article>strong{font-size:12px}.mn-history article .mn-money svg{width:15px;height:15px}.mn-error{max-width:510px;margin:0 auto 10px;padding:12px;border:1px solid #8c5140;border-radius:12px;background:#301e17;font-size:12px}.mn-error button{display:block;margin-top:8px;border:1px solid #b5a88d;border-radius:7px;background:#352b20;padding:6px 12px}
@media(max-width:360px){.mn-content{padding:8px 10px 18px}.mn-header{padding:8px 12px;min-height:54px}.mn-board{gap:5px}.mn-cell{border-radius:10px}.mn-bets,.mn-risk{padding:10px}.mn-presets{gap:4px}.mn-presets button{font-size:11px}.mn-presets .mn-money svg{width:13px;height:13px}.mn-mine-picker>span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.sf-mines-art *, .mn-game *{animation:none!important;transition:none!important}}
.mn-section-label small{font-size:10px;font-weight:400;color:#888}.mn-bet-input{display:flex;align-items:center;height:46px;margin-bottom:10px;border:1px solid #383838;border-radius:11px;background:#0b0b0b;overflow:hidden}.mn-bet-input>button{align-self:stretch;flex:0 0 46px;padding:0;border:0;border-radius:9px;background:#202020;color:#fff000;font-size:21px;font-weight:800}.mn-bet-input>button:disabled{opacity:.35}.mn-bet-input>div{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:0 10px}.mn-bet-input svg{width:21px;height:21px;flex:none}.mn-bet-input input{width:100%;min-width:0;padding:6px 0;border:0;outline:none;background:transparent;color:#fff;font-family:inherit;font-size:22px;font-weight:800;text-align:center;appearance:textfield;font-variant-numeric:tabular-nums}.mn-bet-input input::-webkit-inner-spin-button,.mn-bet-input input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.mn-bet-input:focus-within{border-color:#fff000}.mn-board{width:min(100%,420px,max(230px,calc(var(--game-height,100dvh) - 410px)))}

