/* Casino navigation and the player's own head. */
.pill-header{min-height:66px}.pill-header nav{gap:30px}.casino-nav-wrap{position:relative}.casino-chevron{display:inline-block;margin-left:1px;color:#7f768e;font-family:Arial,sans-serif;font-size:17px;line-height:1;transition:transform .22s,color .22s}#casino-trigger[aria-expanded=true] .casino-chevron{transform:rotate(180deg);color:#ddd3ec}.casino-dropdown{position:absolute;top:calc(100% + 13px);left:0;min-width:210px;padding:6px;background:#171320;border:1px solid #ffffff0b;border-radius:7px;box-shadow:0 14px 35px #0005;z-index:20;animation:dropdown-enter .18s ease both}.pill-header nav .casino-dropdown a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:4px;color:#cdbfdd;font-size:12px}.pill-header nav .casino-dropdown a:hover{background:#ffffff06}.casino-dropdown small{display:block;color:#746480;font-size:8px;margin-top:8px}.casino-dropdown b{font-weight:400;font-size:14px;margin-left:auto;color:#80718e}.header-account{position:absolute;right:20px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:12px}.header-stars{color:#baa988;font-size:10px;white-space:nowrap;display:flex;gap:7px;align-items:center}.header-stars>span{color:#dec38b;font-size:17px}.header-stars strong{font-weight:400}.text-sign-in{font-family:Minecraft,monospace;background:none;border:0;color:#a397b1;font-size:11px;padding:9px 6px;cursor:pointer}.text-sign-in:hover{color:#f0e7fa}.profile-head-button{border:0;background:none;padding:0;width:45px;height:45px;display:grid;place-items:center;cursor:pointer}.profile-head-button img{width:45px;height:45px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 4px 5px #0003);transition:filter .2s}.profile-head-button:hover img{filter:drop-shadow(0 3px 6px #9b83bb33)}
/* MINES: a Minecraft board with separate, local-only demo stars. */
.mines-page{max-width:1080px;margin:auto;padding:140px 25px 70px;min-height:88vh}.mines-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:34px}.mines-heading h1{font-family:Minecraft,monospace;font-size:43px;font-weight:400;letter-spacing:1px;margin:14px 0 15px;color:#e0d7eb}.mines-heading h1>span{color:#95c2c8}.mines-heading p{font-size:10px;color:#8d819a;line-height:1.9}.demo-pill{font-size:8px;color:#867791;padding:8px 11px;border:1px solid #ffffff09;border-radius:4px;line-height:1.8;max-width:220px}.mines-layout{display:grid;grid-template-columns:290px 1fr;gap:24px;align-items:start}.mines-controls{background:#15121eea;border:1px solid #ffffff08;border-radius:9px;padding:24px;box-shadow:0 12px 40px #0002}.wallet-label{font-size:9px;color:#80718f}.wallet-amount{display:block;font-weight:400;font-size:25px;color:#e0d3bc;margin:13px 0 26px}.wallet-amount>span:first-child{color:#d1b87c;font-size:23px}.mines-controls>label{font-size:10px;color:#9d8aac;display:flex;justify-content:space-between;margin:21px 0 11px}.mines-controls>label>span{color:#b8a175}.stake-input{display:flex;align-items:center;border:2px solid #08060d;box-shadow:inset 1px 1px #08050c,inset -1px -1px #65516f;padding:9px 8px 9px 11px;background:#100d17;gap:4px}.stake-input input{width:100%;min-width:0;background:none;border:0;outline:none;color:#d8c9e6;font-size:13px;appearance:textfield}.stake-input input::-webkit-inner-spin-button,.stake-input input::-webkit-outer-spin-button{appearance:none;margin:0}.stake-input button{background:#201a2b;border:1px solid #ffffff07;color:#8c769d;font-size:10px;padding:6px;cursor:pointer;min-width:29px}.stake-input button:hover:not(:disabled){background:#30253d;color:#ceb4df}.mine-count-row{display:flex;justify-content:space-between;align-items:center;background:#100d18;border:1px solid #ffffff08;padding:5px}.mine-count-row button{background:#251d30;color:#ab93be;border:0;width:33px;height:30px;font-family:Minecraft,monospace;font-size:17px}.mine-count-row button:hover:not(:disabled){background:#3a2a49;color:#eddbfa}.mine-count-row output{font-size:13px;color:#d7c8e1}.mines-odds{display:flex;justify-content:space-between;align-items:center;margin:23px 0;color:#746080;font-size:8px;gap:10px}.mines-odds strong{font-weight:400;font-size:13px;color:#adc6bb}.mines-controls>.minecraft-button{width:100%;font-size:11px;padding:12px 13px}.mines-controls #mines-cashout{background:#608f41;border-color:#24341a;box-shadow:inset 2px 2px #a0c47d,inset -2px -3px #3d6028,0 3px #0a1008}.mines-controls #mines-refill{display:block;margin:14px auto 0;font-family:Minecraft,monospace;font-size:8px;line-height:1.8}.mines-status{font-size:9px;line-height:2;color:#85708f;margin-top:19px;min-height:54px}.mines-board-wrap{position:relative;border:1px solid #ffffff09;background:#151320df;border-radius:10px;padding:24px;box-shadow:0 15px 50px #0002}.round-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px;color:#867391;font-size:9px}.round-bar strong{font-size:19px;font-weight:400;color:#c4d6ca}.round-bar>span:last-child{color:#b5a078}.mines-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.mine-tile{display:grid;place-items:center;aspect-ratio:1;min-width:0;background:#292439;border:2px solid #0b0812;box-shadow:inset 2px 2px #4b4059,inset -3px -3px #1b1426,0 3px #07050d;cursor:pointer;position:relative;border-radius:3px;transition:background .18s,box-shadow .18s,translate .18s}.mine-tile:not(:disabled):hover{background:#3d3150;box-shadow:inset 2px 2px #6a567a,inset -3px -3px #24192e,0 3px #07050d;translate:0 -2px}.mine-tile:disabled{opacity:1;cursor:default}.tile-spark{display:block;width:5px;height:5px;border:1px solid #665473;background:#3a2d47;box-shadow:1px 1px #100b18}.mine-tile img{width:43%;height:43%;image-rendering:pixelated;filter:drop-shadow(2px 3px #0003);animation:gem-appear .24s cubic-bezier(.2,.8,.3,1) both}.mine-tile.is-diamond{background:#223a36;border-color:#0c1d19;box-shadow:inset 2px 2px #436859,inset -2px -2px #14251e}.mine-tile.is-mine{background:#39242c;border-color:#211017;box-shadow:inset 2px 2px #654048,inset -2px -2px #201016}.mine-tile.is-lost img{filter:drop-shadow(2px 3px #0004)}.mine-tile.is-revealed{opacity:.5}.mines-board.is-guest{opacity:.4;filter:blur(1px)}.mines-login-gate{position:absolute;inset:65px 16px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#14111c9e;backdrop-filter:blur(3px);border-radius:5px}.mines-login-gate>img{margin-bottom:19px;filter:drop-shadow(0 7px 6px #0003)}.mines-login-gate h2{font-size:21px;font-weight:400;color:#e0d1ec;margin-bottom:15px}.mines-login-gate p{font-size:10px;line-height:2;color:#93809f;margin-bottom:22px}.mines-login-gate .minecraft-button{font-size:11px}.mines-footnote{font-size:8px;color:#65546f;line-height:2;margin-top:23px;text-align:center}.mines-controls button:disabled{opacity:.4;cursor:default}.mines-controls input:disabled{color:#786485}.account-dialog{width:calc(100% - 32px);max-width:420px;max-height:90vh;overflow:auto;padding:0;background:#14121e;color:#d4c5df;border:0;border-radius:10px;box-shadow:0 24px 100px #0008;scrollbar-width:none}.account-dialog::backdrop{background:#060914bb;backdrop-filter:blur(5px)}.account-dialog-bar{display:flex;justify-content:space-between;align-items:center;padding:19px 23px;border-bottom:1px solid #ffffff07}.account-dialog-bar>span{font-size:9px;color:#7b6a89}.account-dialog-bar button{border:0;background:none;color:#8b7899;font-size:19px;padding:2px;line-height:1;cursor:pointer}.account-dialog-bar button:hover{color:#e6d4f4}#account-login-view,#account-profile-view{padding:30px 29px;text-align:center}.account-login-emblem{display:block;margin:0 auto 23px;filter:drop-shadow(0 7px 6px #0004)}.account-dialog h2{font-size:22px;font-weight:400;line-height:1.7;margin-bottom:12px;color:#e0d1ed}.account-dialog p{font-size:10px;color:#8e7a9b;line-height:2;margin-bottom:25px}.account-dialog small{display:block;font-size:8px;line-height:2;color:#695477;margin-top:22px}#account-login-form{position:relative;text-align:left}#account-login-form>label{font-size:9px;color:#a18bb1}.account-name-input{display:flex;align-items:center;gap:12px;padding:13px 12px;background:#100d17;border:2px solid #08050d;box-shadow:inset 1px 1px #08060d,inset -1px -1px #665374;margin-top:10px}.account-name-input:focus-within{box-shadow:inset 1px 1px #08050c,inset -1px -1px #a18ab5}.account-name-input input{width:100%;min-width:0;border:0;outline:none;background:none;color:#ddcceb;font-size:11px}.account-name-input input::placeholder{color:#635070}.account-name-input img{width:26px;height:26px}.account-suggestions{position:absolute;top:86px;left:0;right:0;background:#1c1727;border:2px solid #08050f;box-shadow:inset 1px 1px #50405f,0 12px 25px #0006;z-index:2;animation:dropdown-enter .2s ease both}.account-suggestions button{width:100%;border:0;border-bottom:1px solid #ffffff06;background:none;color:#c6afd8;padding:10px;display:flex;align-items:center;gap:12px;font-size:9px;text-align:left;cursor:pointer}.account-suggestions button:hover,.account-suggestions button[aria-selected=true]{background:#34263f}.account-suggestions img{width:24px;height:24px}.account-dialog .account-login-error{min-height:0;margin:10px 0 0;font-size:8px;color:#c5929c}.account-login-error:empty{display:none}#account-login-form>.minecraft-button{margin-top:20px;width:100%;font-size:11px}#account-profile-view{padding-top:24px}.profile-large-head{display:block;margin:0 auto 17px;width:155px;height:155px;image-rendering:auto;object-fit:contain;filter:drop-shadow(0 12px 9px #0004)}#profile-nickname{font-size:22px;overflow-wrap:anywhere}.profile-demo-label{font-size:8px;color:#7d668c}.profile-wallet{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #ffffff08;border-bottom:1px solid #ffffff08;padding:20px 0;margin:25px 0;color:#806c8f;font-size:9px}.profile-wallet strong{font-size:19px;font-weight:400;color:#d3bd8f}#profile-play{width:100%;font-size:10px}.profile-sign-out{display:block;margin:23px auto 0;background:none;border:0;color:#8d729c;font-size:9px;padding:5px;cursor:pointer}.profile-sign-out:hover{color:#e5c8f6}@keyframes dropdown-enter{from{opacity:0;translate:0 -5px}to{opacity:1;translate:0 0}}@keyframes gem-appear{from{opacity:.2;scale:.7}to{opacity:1;scale:1}}
@media(max-width:800px){.header-account{right:12px;gap:8px}.header-stars{font-size:9px}.profile-head-button,.profile-head-button img{width:38px;height:38px}.pill-header nav{gap:19px}.pill-header nav a{font-size:12px;padding:10px 12px}.mines-layout{grid-template-columns:250px 1fr;gap:18px}.mines-controls{padding:21px}.mines-board-wrap{padding:18px}.mines-board{gap:8px}.round-bar{font-size:8px}.round-bar strong{font-size:16px}.mines-heading{align-items:flex-start}.demo-pill{max-width:155px;font-size:7px}.mines-heading h1{font-size:38px}}
@media(max-width:600px){.pill-header{min-height:98px;align-items:flex-start;padding-top:9px}.pill-header nav{gap:24px}.pill-header nav a{font-size:12px;padding:9px 11px}.header-account{top:56px;right:16px;transform:none;height:31px}.text-sign-in{font-size:10px;padding:7px}.header-stars{font-size:9px}.profile-head-button,.profile-head-button img{width:34px;height:34px}.casino-dropdown{left:-45px;min-width:190px;top:calc(100% + 9px)}.pill-header nav .casino-dropdown a{font-size:11px;padding:12px}.mines-page{padding:143px 16px 43px}.mines-heading{display:block;margin-bottom:25px}.mines-heading h1{font-size:36px;margin-top:13px}.mines-heading p{font-size:9px;max-width:300px;line-height:2}.demo-pill{display:inline-block;margin-top:18px;font-size:7px;max-width:none}.mines-layout{grid-template-columns:1fr;gap:20px}.mines-controls{padding:21px;order:2}.mines-board-wrap{padding:16px;order:1;border-radius:7px}.mines-board{gap:8px}.round-bar{margin-bottom:18px;font-size:8px}.round-bar strong{font-size:17px}.mines-login-gate{inset:58px 13px 13px}.mines-login-gate h2{font-size:19px}.mines-login-gate p{font-size:9px}.mines-login-gate>img{width:36px;height:36px;margin-bottom:14px}.mines-login-gate p{margin-bottom:15px}.wallet-amount{font-size:24px;margin-bottom:22px}.mines-status{min-height:32px}.mines-footnote{font-size:7px;margin-top:22px}.account-dialog{max-width:390px}#account-login-view,#account-profile-view{padding:27px 23px}.account-dialog h2{font-size:21px}.account-dialog p{font-size:9px}.account-dialog small{font-size:7px}.profile-large-head{width:140px;height:140px}}
@media(prefers-reduced-motion:reduce){.casino-dropdown,.account-suggestions,.mine-tile img{animation:none}.casino-chevron,.mine-tile{transition:none}}

/* A shared translucent game surface; the footer stays over the world. */
body{display:flex;flex-direction:column;min-height:100vh;min-height:100svh}
body>main{flex:1 0 auto;width:100%}
body>footer{flex:0 0 auto;margin-top:auto;background:transparent;border:0;box-shadow:none}
.header-stars,.header-stars>span,.wallet-amount,.wallet-amount>span:first-child,.profile-wallet strong,.round-bar>span:last-child,.mines-controls>label>span{color:#55d9ff}
.mines-controls,.mines-board-wrap,.demo-pill{background:transparent;border:0;box-shadow:none;border-radius:0}
.mines-layout{padding:24px;background:rgba(16,14,25,.72);border:1px solid #ffffff0a;border-radius:10px;backdrop-filter:blur(4px)}
.mines-controls{padding:12px 12px 0 0}
.mines-board-wrap{padding:12px 0 0}
.mines-heading h1{color:#f0ebf5}.mines-heading p,.mines-status{color:#b0a7be}.wallet-label,.mines-controls>label,.round-bar{color:#b4a9bf}.mines-odds{color:#a49aaf}
.demo-pill{padding-right:0;color:#a397b1}



.mine-tile{transition:background .15s,border-color .15s,box-shadow .15s;translate:none}
.mine-tile:not(:disabled):hover{translate:none}
.mine-tile img{width:46%;height:46%;animation:none}
.mine-tile .covered-diamond{filter:grayscale(1) brightness(.18) drop-shadow(0 1px 0 #8f839e50);opacity:.95}


.mine-tile.is-revealed{opacity:.32}
.mine-tile.is-opening{animation:cell-reveal .2s ease-out both}
.mine-tile.is-opening img{animation:diamond-reveal .2s cubic-bezier(.16,.8,.3,1) both}
.mines-login-gate{background:transparent;backdrop-filter:none}
@keyframes cell-reveal{0%{transform:scale(.94);border-color:#b6a9cd}55%{transform:scale(1.025)}100%{transform:scale(1)}}
@keyframes diamond-reveal{0%{opacity:0;transform:scale(.45) rotateY(90deg)}50%{opacity:.8}100%{opacity:1;transform:scale(1) rotateY(0)}}
@media(max-width:600px){.mines-layout{padding:16px}.mines-controls{padding:16px 0}.mines-board-wrap{padding:8px 0}.mines-login-gate{inset:50px 0 0}.mines-page{min-height:0}}
@media(prefers-reduced-motion:reduce){.mine-tile.is-opening,.mine-tile.is-opening img{animation:none}}


/* Larger flat item art and a true two-sided card reveal. */
.mine-tile img{width:62%;height:62%;filter:none}
.mine-tile .covered-diamond{filter:brightness(0);opacity:1}
.mine-tile.is-lost img{filter:none}
.mine-tile.is-opening{animation:card-flip .5s ease-in-out both}
.mine-tile.is-opening img{animation:card-face .5s linear both}
.mine-tile.is-opening:after{content:'';position:absolute;inset:19%;background:url('assets/diamond.png') center/contain no-repeat;image-rendering:pixelated;filter:brightness(0);animation:card-cover .5s linear both;pointer-events:none}
@keyframes card-flip{0%{transform:perspective(650px) rotateY(0)}49.9%{transform:perspective(650px) rotateY(90deg)}50%{transform:perspective(650px) rotateY(-90deg)}100%{transform:perspective(650px) rotateY(0)}}
@keyframes card-face{0%,49.9%{opacity:0}50%,100%{opacity:1}}
@keyframes card-cover{0%,49.9%{opacity:1}50%,100%{opacity:0}}
.currency-star{display:inline-block;vertical-align:middle;object-fit:contain;image-rendering:pixelated;filter:none;flex-shrink:0}
.header-stars,.wallet-amount,.profile-wallet strong,.round-bar>span:last-child,.mines-controls>label>span{color:#ACEDFF}
.header-stars{font-size:14px;line-height:1;gap:9px;align-items:center;height:45px}
.header-stars>.currency-star{width:22px;height:22px;order:2}
.wallet-amount>.currency-star{width:28px;height:28px;margin-right:4px}
.profile-wallet .currency-star{width:22px;height:22px}
.header-account{gap:15px;align-items:center}
.casino-chevron{font-size:0;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);position:relative;top:-2px;margin-left:5px;color:inherit;transition:transform .2s,top .2s}
#casino-trigger[aria-expanded=true] .casino-chevron{transform:rotate(225deg);top:2px;color:inherit}
#account-code-view{padding:30px 29px;text-align:center}
#account-code-form{text-align:left}
#account-code-form>label{font-size:9px;color:#a18bb1}
#account-code-form>.minecraft-button{margin-top:20px;width:100%;font-size:11px}
#account-code{font-size:11px;letter-spacing:.5px;text-transform:uppercase}
#account-code-view p strong{color:#ACEDFF;font-weight:400}
#account-code-view p b{color:#ddd1e7;font-weight:400}
.account-stage-enter{animation:account-next .26s cubic-bezier(.2,.8,.3,1) both}
@keyframes account-next{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:800px){.header-stars{font-size:12px}.header-stars>.currency-star{width:20px;height:20px}}
@media(max-width:600px){.header-stars{font-size:12px;height:34px}.header-account{gap:10px}#account-code-view{padding:27px 23px}}
@media(prefers-reduced-motion:reduce){.mine-tile.is-opening,.mine-tile.is-opening img,.mine-tile.is-opening:after,.account-stage-enter{animation:none}.mine-tile.is-opening:after{display:none}}

/* Stone dialogs without light divider lines. */
.account-dialog,.purchase-modal{image-rendering:pixelated;background:linear-gradient(#101010ce,#101010ce),url('assets/terrain/stone.png');background-size:auto,112px 112px;border:0;border-image:none}
.account-dialog-bar,.modal-titlebar,.profile-wallet,.purchase-modal .purchase-product,.purchase-modal .purchase-product ul,.purchase-modal .payment-total{border:0;box-shadow:none;background-color:transparent}
.account-name-input,.account-name-input:focus-within,.purchase-modal .input-shell,.purchase-modal .input-shell:focus-within{border:2px solid #100a11;box-shadow:none;background:#100a13a6}
.account-suggestions,.purchase-modal .suggestions{border-color:#100a11;box-shadow:0 10px 24px #0005}
.account-suggestions button,.purchase-modal .suggestions button{border-bottom:0}
.purchase-modal .minecraft-button,.purchase-modal .minecraft-button:hover{border-color:#100a11;box-shadow:inset 1px 1px #65435444,inset -2px -2px #09060e,0 2px #09060e}
.purchase-modal .payment-options label,.purchase-modal .payment-options label:has(input:checked){border-color:#100a11;box-shadow:none}
@media(max-width:600px){.account-dialog,.purchase-modal{background-size:auto,96px 96px}}



/* Keep the game surface quiet and the shared balance beside the stake. */
.mines-layout{border:0;box-shadow:none}
.mines-controls>label:first-child{margin-top:0}
.mines-controls>label>.stake-title{color:#b4a9bf}
.stake-wallet{display:inline-flex;align-items:center;gap:7px;color:#ACEDFF;font-size:11px;line-height:18px}
.stake-wallet .currency-star{width:18px;height:18px}
.round-bar{justify-content:flex-end}
#mines-cashout{gap:8px}
#mines-cashout .cashout-stars{color:#ACEDFF}
#mines-cashout .currency-star{width:20px;height:20px;filter:none}
.mine-tile.is-pending .covered-diamond{opacity:.5}

/* Square Minecraft particles stay outside the board so cards never shift. */
.mines-fx-layer{position:fixed;width:0;height:0;overflow:visible;pointer-events:none;z-index:1000}
.mines-fx-layer i{position:absolute;display:block;left:0;top:0;width:var(--size);height:var(--size);animation:mines-pixel-burst var(--life) cubic-bezier(.12,.65,.3,1) forwards;image-rendering:pixelated}
.mines-fx-layer.firework i{box-shadow:0 0 0 1px #ffffff18}
@keyframes mines-pixel-burst{0%{opacity:1;transform:translate(0,0) scale(1)}70%{opacity:1}100%{opacity:0;transform:translate(var(--dx),calc(var(--dy) + 32px)) scale(.25)}}
.pixel-shockwave{position:absolute;width:72px;height:72px;left:-36px;top:-36px;border:7px solid #fff0c8;clip-path:polygon(20% 0,80% 0,80% 10%,90% 10%,90% 20%,100% 20%,100% 80%,90% 80%,90% 90%,80% 90%,80% 100%,20% 100%,20% 90%,10% 90%,10% 80%,0 80%,0 20%,10% 20%,10% 10%,20% 10%);animation:mines-shockwave .42s ease-out forwards}
@keyframes mines-shockwave{from{opacity:.95;transform:scale(.3)}to{opacity:0;transform:scale(1.6)}}
.mine-tile.is-crater{background:#241b22;border-color:#130d13;box-shadow:inset 2px 2px #473038,inset -2px -2px #120c12;opacity:1}
.mine-tile.is-crater:not(.is-opening)>img{opacity:0}
.crater-art{display:block;position:absolute;left:50%;top:50%;width:64%;height:64%;transform:translate(-50%,-50%);background:#38292c;clip-path:polygon(25% 0,62.5% 0,62.5% 12.5%,87.5% 12.5%,87.5% 25%,100% 25%,100% 62.5%,87.5% 62.5%,87.5% 87.5%,62.5% 87.5%,62.5% 100%,25% 100%,25% 87.5%,12.5% 87.5%,12.5% 62.5%,0 62.5%,0 25%,12.5% 25%,12.5% 12.5%,25% 12.5%);pointer-events:none}
.crater-art:before{content:'';position:absolute;inset:10%;background:#020103;clip-path:inherit}
.crater-art:after{content:'';position:absolute;left:31%;top:19%;width:10%;height:10%;background:#514047;box-shadow:19px 13px #160f15,-6px 25px #26191f}
.mine-tile.is-crater.is-opening .crater-art{opacity:0}
.mines-controls.has-win>.minecraft-button{animation:mines-win-button .65s ease-out}
@keyframes mines-win-button{0%,100%{filter:brightness(1)}30%{filter:brightness(1.45)}60%{filter:brightness(1.12)}}
@media(prefers-reduced-motion:reduce){.mines-fx-layer{display:none}.mines-controls.has-win>.minecraft-button{animation:none}}

/* Closed cards change their dark frame to white on hover. */
.mine-tile.is-covered:not(:disabled):hover{border-color:#fff}

/* Original Minecraft 1.21.11 explosion sprites, rendered as flat particles. */
.vanilla-explosion-puff{position:absolute;display:block;width:var(--puff-size);height:var(--puff-size);left:var(--puff-x);top:var(--puff-y);transform:translate(-50%,-50%);background-position:center;background-size:contain;background-repeat:no-repeat;image-rendering:pixelated;opacity:0;filter:brightness(var(--puff-shade));animation:vanilla-explosion-frames .64s steps(1,end) var(--puff-delay) forwards}
.vanilla-explosion-flash{position:absolute;display:block;width:var(--flash-size);height:var(--flash-size);left:0;top:0;transform:translate(-50%,-50%);background:url('assets/particles/flash.png') center/contain no-repeat;image-rendering:pixelated;animation:vanilla-explosion-flash .16s ease-out forwards}
@keyframes vanilla-explosion-flash{from{opacity:.9}to{opacity:0}}
.mine-tile.is-exploding{animation:mine-impact .16s ease-out}
@keyframes mine-impact{0%{filter:brightness(1.7)}100%{filter:brightness(1)}}
.mine-tile.is-crater.is-revealed{opacity:.48}
@keyframes vanilla-explosion-frames{0%{background-image:url("assets/particles/explosion_0.png");opacity:1}6.25%{background-image:url("assets/particles/explosion_1.png");opacity:1}12.5%{background-image:url("assets/particles/explosion_2.png");opacity:1}18.75%{background-image:url("assets/particles/explosion_3.png");opacity:1}25%{background-image:url("assets/particles/explosion_4.png");opacity:1}31.25%{background-image:url("assets/particles/explosion_5.png");opacity:1}37.5%{background-image:url("assets/particles/explosion_6.png");opacity:1}43.75%{background-image:url("assets/particles/explosion_7.png");opacity:1}50%{background-image:url("assets/particles/explosion_8.png");opacity:1}56.25%{background-image:url("assets/particles/explosion_9.png");opacity:1}62.5%{background-image:url("assets/particles/explosion_10.png");opacity:1}68.75%{background-image:url("assets/particles/explosion_11.png");opacity:1}75%{background-image:url("assets/particles/explosion_12.png");opacity:1}81.25%{background-image:url("assets/particles/explosion_13.png");opacity:1}87.5%{background-image:url("assets/particles/explosion_14.png");opacity:1}93.75%{background-image:url("assets/particles/explosion_15.png");opacity:1}100%{background-image:url("assets/particles/explosion_15.png");opacity:0}}
@media(prefers-reduced-motion:reduce){.mine-tile.is-exploding{animation:none}}

/* Neutral stone popup palette. Preserve product-rank and currency accents. */
.account-dialog,.purchase-modal{color:#e5e5e5}
.account-dialog h2,.account-dialog #account-code-view p b,.purchase-modal .checkout-panel h2{color:#f0f0f0}
.account-dialog p,.account-dialog small,.account-dialog-bar>span,.account-dialog-bar button,.account-dialog label,.profile-sign-out,.profile-demo-label,.profile-wallet,.modal-titlebar>span,.modal-titlebar button,.purchase-modal .checkout-panel p,.purchase-modal .checkout-panel label,.purchase-modal .purchase-kind,.purchase-modal .purchase-product ul{color:#b0b0b0}
.account-dialog small,.account-dialog-bar>span,.modal-titlebar>span{color:#929292}
.account-name-input,.account-name-input:focus-within,.purchase-modal .input-shell,.purchase-modal .input-shell:focus-within{background:#101010a6;border-color:#0b0b0b}
.account-name-input input,.purchase-modal .input-shell input,.account-suggestions button,.purchase-modal .suggestions button,.purchase-modal .minecraft-button{color:#ededed}
.account-name-input input::placeholder,.purchase-modal .input-shell input::placeholder{color:#888}
.account-suggestions,.purchase-modal .suggestions{background:#1c1c1c;border-color:#0b0b0b}
.account-suggestions button:hover,.account-suggestions button[aria-selected=true],.purchase-modal .suggestions button:hover,.purchase-modal .suggestions button.selected{background:#303030;color:#fff}
.account-dialog-bar button:hover,.modal-titlebar button:hover,.profile-sign-out:hover{color:#fff}

#account-login-form>label,#account-code-form>label{color:#b0b0b0}

/* Compact pixel-corner casino navigation. */
.casino-dropdown{left:50%;translate:-50% 0;top:calc(100% + 10px);min-width:200px;width:200px;padding:5px;background:#17151d;border:0;border-radius:0;box-shadow:none;clip-path:polygon(0 8px,4px 8px,4px 4px,8px 4px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 4px) calc(100% - 8px),calc(100% - 4px) calc(100% - 4px),calc(100% - 8px) calc(100% - 4px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 8px),0 calc(100% - 8px))}
.casino-dropdown::before,.casino-dropdown::after,.casino-chevron{display:none!important}
.pill-header nav .casino-dropdown a,.casino-dropdown .casino-coming-soon{display:flex;align-items:center;gap:12px;width:100%;height:44px;min-height:0;padding:5px 13px;border:0;border-radius:0;background:transparent;color:#e0e0e0;font-family:Minecraft,monospace;font-size:11px;line-height:1;text-align:left;letter-spacing:0;box-shadow:none;transition:background-color .18s,color .18s}
.pill-header nav .casino-dropdown a:hover{background:#ffffff08;color:#fff}
.casino-dropdown img{display:block;width:32px;height:32px;object-fit:contain;flex-shrink:0;filter:none}
.casino-dropdown .casino-coming-soon{cursor:default;color:#a0a0a0}
@media(max-width:600px){.casino-dropdown{left:50%;min-width:190px;width:190px}.pill-header nav .casino-dropdown a,.casino-dropdown .casino-coming-soon{padding:5px 12px;font-size:11px}}

/* Stone dropdown centered directly below Casino; restored toggle arrow. */
.casino-nav-wrap{display:block;position:relative}
.casino-dropdown{left:50%;top:calc(100% + 4px);translate:0 0;transform:translateX(-50%);background:linear-gradient(#101010ce,#101010ce),url('assets/terrain/stone.png');background-size:auto,112px 112px;image-rendering:pixelated}
#casino-trigger .casino-chevron{display:inline-block!important;flex-shrink:0;color:inherit}
@media(max-width:600px){.casino-dropdown{left:50%;top:calc(100% + 4px);background-size:auto,96px 96px}}

/* Match purchase opening and green Minecraft continue actions. */
.account-dialog[open]{animation:menu-frame-in .22s steps(4,end) both}
html:has(.account-dialog[open]){overflow:hidden}
.account-dialog .pixel-build-tile,.purchase-modal .pixel-build-tile{background:#181818}
#account-login-form>.minecraft-button,#account-code-form>.minecraft-button,.purchase-modal #player-form>.minecraft-button{background:#568c36;border:2px solid #243b18;box-shadow:inset 2px 2px #91b96e,inset -2px -3px #355b22,0 2px #111a0c;color:#f4f4f4;text-shadow:1px 1px #263e1b;transition:background-color .2s,box-shadow .2s,transform .2s}
#account-login-form>.minecraft-button:hover,#account-code-form>.minecraft-button:hover,.purchase-modal #player-form>.minecraft-button:hover{background:#659f42;border-color:#304d20;box-shadow:inset 2px 2px #a3cb80,inset -2px -3px #406a2a,0 2px #111a0c;color:#fff;transform:translateY(-1px)}
@media(prefers-reduced-motion:reduce){.account-dialog[open]{animation:none}}

.mine-tile .covered-question{width:62%;height:62%;filter:none;opacity:1;image-rendering:pixelated}
.mine-tile.is-pending .covered-question{opacity:.5}

/* Closer cells over translucent Minecraft netherite. */
.mines-board{gap:6px}
.mines-layout{position:relative;isolation:isolate;background:rgba(16,16,16,.58);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.mines-layout::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:url('assets/terrain/netherite_block.png') repeat;background-size:112px 112px;image-rendering:pixelated;opacity:.22}
@media(max-width:800px){.mines-board{gap:5px}}
@media(max-width:600px){.mines-board{gap:5px}.mines-layout::before{background-size:96px 96px}}

/* Opened gold cells retain the normal tile palette. */
.mine-tile.is-diamond{background:#292439;border-color:#0b0812;box-shadow:inset 2px 2px #4b4059,inset -3px -3px #1b1426,0 3px #07050d}
.mine-tile.is-opening:after{background-image:url('assets/pixel-question.png');filter:none}

/* Match the Casino dropdown surface. */
.mines-layout{background:linear-gradient(#101010ce,#101010ce),url('assets/terrain/stone.png');background-size:auto,112px 112px;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);border-radius:0;clip-path:polygon(0 8px,4px 8px,4px 4px,8px 4px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 4px) calc(100% - 8px),calc(100% - 4px) calc(100% - 4px),calc(100% - 8px) calc(100% - 4px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 8px),0 calc(100% - 8px));image-rendering:pixelated}
.mines-layout::before{display:none}
@media(max-width:600px){.mines-layout{background-size:auto,96px 96px}}

/* Keep only the dropdown pixel corners; restore the plain translucent game surface. */
.mines-layout{background:rgba(16,14,25,.72);background-image:none}

/* Larger 24px stepped corners on the MINES panel. */
.mines-layout{clip-path:polygon(0 24px,12px 24px,12px 12px,24px 12px,24px 0,calc(100% - 24px) 0,calc(100% - 24px) 12px,calc(100% - 12px) 12px,calc(100% - 12px) 24px,100% 24px,100% calc(100% - 24px),calc(100% - 12px) calc(100% - 24px),calc(100% - 12px) calc(100% - 12px),calc(100% - 24px) calc(100% - 12px),calc(100% - 24px) 100%,24px 100%,24px calc(100% - 12px),12px calc(100% - 12px),12px calc(100% - 24px),0 calc(100% - 24px))}

/* Vanilla Minecraft firework particle sprites, tinted like the game. */
.mines-fx-layer.firework i{box-shadow:none;mask-image:url('assets/particles/spark_7.png');mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-image:url('assets/particles/spark_7.png');-webkit-mask-size:100% 100%;-webkit-mask-repeat:no-repeat;animation:mines-firework-flight var(--life) cubic-bezier(.12,.65,.3,1) forwards,minecraft-firework-sprite var(--life) steps(1,end) forwards}
@keyframes mines-firework-flight{0%{opacity:1;transform:translate(0,0)}55%{opacity:1}68%{opacity:.45}74%{opacity:1}82%{opacity:.4}88%{opacity:.85}100%{opacity:0;transform:translate(var(--dx),calc(var(--dy) + 52px))}}
@keyframes minecraft-firework-sprite{0.0%{mask-image:url('assets/particles/spark_7.png');-webkit-mask-image:url('assets/particles/spark_7.png')}12.5%{mask-image:url('assets/particles/spark_6.png');-webkit-mask-image:url('assets/particles/spark_6.png')}25.0%{mask-image:url('assets/particles/spark_5.png');-webkit-mask-image:url('assets/particles/spark_5.png')}37.5%{mask-image:url('assets/particles/spark_4.png');-webkit-mask-image:url('assets/particles/spark_4.png')}50.0%{mask-image:url('assets/particles/spark_3.png');-webkit-mask-image:url('assets/particles/spark_3.png')}62.5%{mask-image:url('assets/particles/spark_2.png');-webkit-mask-image:url('assets/particles/spark_2.png')}75.0%{mask-image:url('assets/particles/spark_1.png');-webkit-mask-image:url('assets/particles/spark_1.png')}87.5%{mask-image:url('assets/particles/spark_0.png');-webkit-mask-image:url('assets/particles/spark_0.png')}100%{mask-image:url('assets/particles/spark_0.png');-webkit-mask-image:url('assets/particles/spark_0.png')}}

/* Fixed pixel chevron; keep the existing inline footprint. */
#casino-trigger .casino-chevron,#casino-trigger[aria-expanded=true] .casino-chevron{width:7px;height:7px;border:0;transform:none;top:-2px;margin-left:5px;transition:none;color:inherit}
#casino-trigger .casino-chevron::before{content:"";position:absolute;left:-1px;top:1px;width:2px;height:2px;background:currentColor;box-shadow:2px 2px currentColor,4px 4px currentColor,6px 2px currentColor,8px 0 currentColor}

.modal-titlebar,.account-dialog-bar{justify-content:flex-end}

/* Shared compact corners: six small pixel steps on every menu. */
.account-dialog,.purchase-modal,.casino-dropdown,.mines-layout,.account-suggestions,.purchase-modal .suggestions{border-radius:0;clip-path:polygon(0px 12px,2px 12px,2px 10px,4px 10px,4px 8px,6px 8px,6px 6px,8px 6px,8px 4px,10px 4px,10px 2px,12px 2px,12px 0px,calc(100% - 12px) 0px,calc(100% - 12px) 2px,calc(100% - 10px) 2px,calc(100% - 10px) 4px,calc(100% - 8px) 4px,calc(100% - 8px) 6px,calc(100% - 6px) 6px,calc(100% - 6px) 8px,calc(100% - 4px) 8px,calc(100% - 4px) 10px,calc(100% - 2px) 10px,calc(100% - 2px) 12px,calc(100% - 0px) 12px,calc(100% - 0px) calc(100% - 12px),calc(100% - 2px) calc(100% - 12px),calc(100% - 2px) calc(100% - 10px),calc(100% - 4px) calc(100% - 10px),calc(100% - 4px) calc(100% - 8px),calc(100% - 6px) calc(100% - 8px),calc(100% - 6px) calc(100% - 6px),calc(100% - 8px) calc(100% - 6px),calc(100% - 8px) calc(100% - 4px),calc(100% - 10px) calc(100% - 4px),calc(100% - 10px) calc(100% - 2px),calc(100% - 12px) calc(100% - 2px),calc(100% - 12px) calc(100% - 0px),12px calc(100% - 0px),12px calc(100% - 2px),10px calc(100% - 2px),10px calc(100% - 4px),8px calc(100% - 4px),8px calc(100% - 6px),6px calc(100% - 6px),6px calc(100% - 8px),4px calc(100% - 8px),4px calc(100% - 10px),2px calc(100% - 10px),2px calc(100% - 12px),0px calc(100% - 12px))}

/* Large shared corners, matching the earlier MINES panel. */
.account-dialog,.purchase-modal,.casino-dropdown,.mines-layout,.account-suggestions,.purchase-modal .suggestions{border-radius:0;clip-path:polygon(0 24px,12px 24px,12px 12px,24px 12px,24px 0,calc(100% - 24px) 0,calc(100% - 24px) 12px,calc(100% - 12px) 12px,calc(100% - 12px) 24px,100% 24px,100% calc(100% - 24px),calc(100% - 12px) calc(100% - 24px),calc(100% - 12px) calc(100% - 12px),calc(100% - 24px) calc(100% - 12px),calc(100% - 24px) 100%,24px 100%,24px calc(100% - 12px),12px calc(100% - 12px),12px calc(100% - 24px),0 calc(100% - 24px))}

/* Center the login and checkout content; close controls never gain a hover fill. */
.account-dialog{margin:auto}
#account-login-view{text-align:center;padding-top:20px;padding-bottom:32px}
.purchase-modal #player-stage>h2,.purchase-modal #player-stage>p{text-align:center}
.purchase-modal #player-form>.minecraft-button{display:block;margin-left:auto;margin-right:auto}
.modal-titlebar button,.modal-titlebar button:hover,.modal-titlebar button:active,.account-dialog-bar button,.account-dialog-bar button:hover,.account-dialog-bar button:active{background:transparent;box-shadow:none}

/* Shared game-currency picker beside the player head. */
button.header-stars{border:0;background:transparent;padding:0;font-family:inherit;cursor:pointer}
.balance-chevron{position:relative;display:inline-block;width:10px;height:8px;margin-left:3px}
.balance-chevron:before{content:"";position:absolute;left:0;top:1px;width:2px;height:2px;background:currentColor;box-shadow:2px 2px currentColor,4px 4px currentColor,6px 2px currentColor,8px 0 currentColor}
.currency-dropdown{position:absolute;right:52px;top:calc(100% + 10px);z-index:30;width:250px;padding:12px;background:linear-gradient(#101010ce,#101010ce),url('assets/terrain/stone.png');background-size:auto,112px 112px;image-rendering:pixelated;clip-path:polygon(0 24px,12px 24px,12px 12px,24px 12px,24px 0,calc(100% - 24px) 0,calc(100% - 24px) 12px,calc(100% - 12px) 12px,calc(100% - 12px) 24px,100% 24px,100% calc(100% - 24px),calc(100% - 12px) calc(100% - 24px),calc(100% - 12px) calc(100% - 12px),calc(100% - 24px) calc(100% - 12px),calc(100% - 24px) 100%,24px 100%,24px calc(100% - 12px),12px calc(100% - 12px),12px calc(100% - 24px),0 calc(100% - 24px));animation:dropdown-enter .18s ease both}
.currency-dropdown button{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:#ddd;font-family:inherit;font-size:10px;padding:12px 7px;text-align:left;cursor:pointer}
.currency-dropdown button strong{margin-left:auto;font-size:10px;font-weight:400}
.currency-dropdown button img{width:22px;height:22px;object-fit:contain;image-rendering:pixelated}
.currency-dropdown button[aria-pressed=true]{color:#fff;background:#ffffff08}
.currency-dropdown button:hover:not(:disabled){background:#ffffff10}
.currency-dropdown button:disabled{cursor:default;opacity:.6}
.currency-dropdown small{display:block;color:#aaa;font-size:7px;line-height:1.8;padding:5px 7px 10px}
body[data-game-currency=coins] .header-stars,body[data-game-currency=coins] .profile-wallet strong,body[data-game-currency=coins] .stake-balance,body[data-game-currency=coins] .cashout-stars,body[data-game-currency=coins] #mines-cashout{color:#ffd76b}
@media(max-width:600px){.currency-dropdown{right:0;width:240px}}

.cases-page{max-width:1080px;margin:auto;padding:140px 25px 70px;min-height:88vh}
.cases-surface{padding:36px 26px;background:rgba(16,14,25,.72);backdrop-filter:blur(4px);text-align:center;clip-path:polygon(0 24px,12px 24px,12px 12px,24px 12px,24px 0,calc(100% - 24px) 0,calc(100% - 24px) 12px,calc(100% - 12px) 12px,calc(100% - 12px) 24px,100% 24px,100% calc(100% - 24px),calc(100% - 12px) calc(100% - 24px),calc(100% - 12px) calc(100% - 12px),calc(100% - 24px) calc(100% - 12px),calc(100% - 24px) 100%,24px 100%,24px calc(100% - 12px),12px calc(100% - 12px),12px calc(100% - 24px),0 calc(100% - 24px))}
.case-head{object-fit:contain;image-rendering:pixelated;display:block;margin:0 auto 12px}
.case-intro h1{font-size:27px;font-weight:400;margin:10px 0 18px;color:#eee}
.case-intro p{display:flex;gap:9px;align-items:center;justify-content:center;font-size:12px;color:#ccc}
.case-intro p img{image-rendering:pixelated;object-fit:contain}
.case-reel-window{position:relative;overflow:hidden;margin:34px auto 28px;background:#090a12a6;border:2px solid #08070d;padding:16px 0;max-width:770px}
.case-reel{display:flex;gap:12px;position:relative;justify-content:flex-start;width:max-content;min-width:100%;padding:0 12px}
.case-reward-tile{flex:0 0 126px;width:126px;height:126px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;background:#272333;border:2px solid #09070d;box-shadow:inset 2px 2px #474052,inset -3px -3px #191420;color:#ACEDFF;font-size:10px}
.case-reward-tile img{width:50px;height:50px;image-rendering:pixelated;object-fit:contain}
.case-reel-marker{position:absolute;top:0;bottom:0;left:50%;width:2px;background:#fff7;z-index:2;pointer-events:none}
.case-reel-marker:before,.case-reel-marker:after{content:'';position:absolute;left:-5px;width:12px;height:8px;background:#ededed;clip-path:polygon(0 0,100% 0,100% 25%,75% 25%,75% 50%,58% 50%,58% 100%,42% 100%,42% 50%,25% 50%,25% 25%,0 25%)}
.case-reel-marker:before{top:0}.case-reel-marker:after{bottom:0;transform:rotate(180deg)}
.case-reward-won{border-color:#ACEDFF;filter:brightness(1.2)}
.case-actions .minecraft-button{background:#568c36;border:2px solid #243b18;box-shadow:inset 2px 2px #91b96e,inset -2px -3px #355b22,0 2px #111a0c;color:#fff;font-size:12px;padding:13px 20px}
.case-actions .minecraft-button:disabled{opacity:.6;cursor:default}
.case-actions p{color:#aaa;font-size:9px;line-height:2;margin:22px 0 0;min-height:36px}
.case-is-opening{animation:case-chest-rattle .3s steps(3,end) infinite}
@keyframes case-chest-rattle{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
@media(max-width:600px){.cases-page{padding:143px 16px 43px}.cases-surface{padding:28px 16px}.case-intro h1{font-size:22px}.case-head{width:110px;height:110px}.case-reward-tile{flex-basis:96px;width:96px;height:112px}.case-intro p{font-size:10px}.case-reel-window{margin-top:26px}}
@media(prefers-reduced-motion:reduce){.case-is-opening{animation:none}}

body[data-game-currency=coins] #mines-balance,body[data-game-currency=coins] .balance-chevron{color:#ffd76b}

body[data-game-currency=coins] #mines-cashout .cashout-stars{color:#ffd76b}
