.cases-page,.upgrade-page{max-width:1240px;margin:auto;padding:145px 28px 75px;min-height:88vh}
.casino-page-heading{text-align:center;margin:8px 0 52px}.casino-page-heading h1{font-size:36px;font-weight:400;color:#eee;margin-bottom:18px}.casino-page-heading p{color:#a4a1ad;font-size:10px;line-height:2}
.case-catalog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:50px 24px}.case-product{text-align:center;min-width:0}.case-product-head{display:block;width:154px;height:154px;object-fit:contain;margin:0 auto 20px;image-rendering:pixelated}.case-product h2{font-size:17px;font-weight:400;color:#ecebf0;margin:0 0 14px;line-height:1.5}.casino-price{display:inline-flex;gap:7px;align-items:center;justify-content:center;color:#ddd;font-size:11px}.casino-price img{width:21px;height:21px;image-rendering:pixelated;object-fit:contain}.casino-price.coins{color:#ffd76b}.casino-price.stars{color:#ACEDFF}.case-product-actions{display:flex;gap:9px;justify-content:center;margin:17px 0 12px}.case-product-actions button{min-height:37px;padding:9px 12px;font-size:10px;cursor:pointer}.case-product-actions .case-buy{background:#568c36;border:2px solid #243b18;box-shadow:inset 2px 2px #91b96e,inset -2px -3px #355b22,0 2px #111a0c;color:#fff}.case-product-actions .case-open{background:#626268;border:2px solid #202024;box-shadow:inset 2px 2px #939399,inset -2px -3px #39393f,0 2px #111;color:#fff}.case-product-actions button:disabled{opacity:.36;cursor:default}.case-stock{display:block;color:#8b8796;font-size:8px}.case-product-actions button:hover:not(:disabled){filter:brightness(1.12)}#case-catalog-status{font-size:10px;line-height:2;text-align:center;min-height:24px;color:#c5bfca;margin-top:30px}
.case-opening-dialog{max-width:980px;width:calc(100% - 38px);padding-bottom:24px;overflow:visible}.case-opening-dialog .case-intro{padding:8px 25px 0;text-align:center}.case-opening-dialog .case-intro h2{font-size:24px;font-weight:400;color:#eee}.case-opening-dialog .case-head{width:104px;height:104px}.case-opening-dialog .case-reel-window{max-width:none;margin:24px 24px 20px}.case-opening-dialog .case-actions{padding:0 24px;text-align:center}.case-opening-dialog .case-actions p{min-height:34px;margin:15px 0;font-size:12px;color:#eee}.case-opening-dialog .case-actions .casino-price{font-size:13px}.case-opening-dialog #case-result-actions{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}.case-opening-dialog #case-result-actions>span{color:#bdb8c3;font-size:10px;line-height:2}.case-opening-dialog #case-result-actions button{display:inline-flex;align-items:center;gap:5px}.case-odds{margin:22px 28px 0;color:#a9a4b2;font-size:9px;line-height:2}.case-odds summary{cursor:pointer;text-align:center}.case-odds>div{max-height:240px;overflow:auto;margin-top:15px;padding:0 4px}.case-odds-row{display:flex;align-items:center;gap:12px;padding:8px 0;flex-wrap:wrap}.case-odds-row>img{width:25px;height:25px;image-rendering:pixelated;object-fit:contain}.case-odds-row>span{flex:1}.case-odds-row>strong{font-weight:400;color:#ddd}.case-odds-row .casino-price{font-size:8px}.case-odds-row .casino-price img{width:17px;height:17px}
.economy-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:10px;text-align:center}.economy-item>img{width:62px;height:62px;object-fit:contain;image-rendering:pixelated}.economy-item-name{font-size:9px;line-height:1.65;color:var(--item-color,#ddd);overflow-wrap:anywhere}.economy-item-amount{font-size:9px;color:#c8c5cd}.case-reward-tile.economy-item{gap:10px;flex:0 0 140px;width:140px;height:148px;padding:8px}.case-reward-tile.economy-item>img{width:65px;height:65px}.case-reel-marker{background:transparent}.case-reel{gap:12px}.case-reward-won{border-color:#ACEDFF;box-shadow:inset 2px 2px #77b8c8,inset -2px -3px #1b2830}
.upgrade-surface{display:grid;grid-template-columns:1fr 270px 1fr;align-items:center;gap:25px;padding:38px 30px;background:#100e19b8;backdrop-filter:blur(4px)}.upgrade-selection{text-align:center;min-width:0}.upgrade-selection>span{font-size:10px;color:#a5a0ae}.upgrade-selection>p{font-size:10px;line-height:2;color:#7e788b;margin-top:28px}.upgrade-selection .economy-item{margin:25px 0 18px}.upgrade-selection .economy-item>img{width:122px;height:122px}.upgrade-selection .economy-item-name{font-size:14px}.upgrade-wheel-wrap{text-align:center}.upgrade-wheel{position:relative;width:230px;height:230px;margin:0 auto 24px;border-radius:50%;background:conic-gradient(from 0deg,#75bb55 0deg var(--win-angle,0deg),#2c2837 var(--win-angle,0deg) 360deg);box-shadow:0 0 0 5px #08070e,inset 0 0 0 4px #77717e33}.upgrade-wheel:before{content:'';position:absolute;inset:17px;border-radius:50%;background:repeating-conic-gradient(#a4a0ac55 0deg 1deg,transparent 1deg 9deg),#18151f}.upgrade-wheel:after{content:'';position:absolute;inset:28px;border-radius:50%;background:#18151f}.upgrade-chance{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;z-index:2}.upgrade-chance strong{font-size:27px;font-weight:400;color:#eee}.upgrade-chance>span{font-size:9px;color:#a9a3b2}.upgrade-needle{position:absolute;inset:0;z-index:4}.upgrade-needle:before{content:'';position:absolute;left:calc(50% - 5px);top:-4px;width:10px;height:24px;background:#f4f2ef;clip-path:polygon(0 0,100% 0,100% 60%,75% 60%,75% 80%,60% 80%,60% 100%,40% 100%,40% 80%,25% 80%,25% 60%,0 60%)}#upgrade-go{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:12px 25px}#upgrade-go:disabled{opacity:.4;cursor:default}#upgrade-status{grid-column:1/-1;min-height:26px;text-align:center;font-size:10px;line-height:2;color:#c0bac8}
.upgrade-lists{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:40px}.upgrade-lists h2{font-size:17px;font-weight:400;line-height:1.6;color:#e2dee7;margin:0 0 18px}.inventory-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.inventory-heading h2{margin:0}.inventory-heading h2>span{font-size:10px;color:#8f899a;margin-left:8px}.text-action{font-family:inherit;font-size:9px;background:transparent;border:0;color:#c2bacd;padding:7px;cursor:pointer}.text-action:hover:not(:disabled){color:#fff;text-decoration:underline}.text-action:disabled{opacity:.4;cursor:default}.inventory-hint,#upgrade-currency-hint{font-size:8px;line-height:2;color:#9a94a3;margin:15px 0 20px}.casino-item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.inventory-entry,.upgrade-target{padding:15px 9px;background:#1a1722c7;border:2px solid #09070f;min-height:164px}.inventory-entry.selected,.upgrade-target.selected{border-color:#b8adca}.inventory-entry .casino-price{margin-top:10px;font-size:8px}.inventory-entry .casino-price img,.upgrade-target>.casino-price img{width:17px;height:17px}.inventory-entry-actions{display:flex;flex-wrap:wrap;justify-content:center;margin-top:9px}.inventory-entry-actions .text-action{font-size:8px;padding:5px}.upgrade-target{width:100%;font-family:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}.upgrade-target>.casino-price{font-size:9px}.upgrade-target:hover:not(:disabled){background:#272130}.inventory-empty{grid-column:1/-1;font-size:10px;color:#9b94a5;line-height:2}.target-controls{display:flex;gap:9px}.target-controls input,.target-controls select{width:100%;min-width:0;background:#100e17;border:2px solid #08060e;color:#cfc9d8;font-family:inherit;font-size:9px;padding:10px}.target-controls select{max-width:150px}#upgrade-more{display:block;margin:18px auto}
.upgrade-surface{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))}
.firework-rocket{position:fixed;width:4px;height:10px;background:#fff2b7;box-shadow:0 5px #efbc55,0 10px #e87d3577;pointer-events:none;z-index:1000;animation:firework-rocket-flight .52s cubic-bezier(.2,.5,.4,1) forwards}.firework-rocket:after{content:'';position:absolute;top:14px;left:1px;width:2px;height:22px;background:repeating-linear-gradient(#ffdd86 0 2px,transparent 2px 6px)}@keyframes firework-rocket-flight{from{transform:translateY(0);opacity:1}to{transform:translateY(-125px);opacity:.85}}
@media(max-width:900px){.case-catalog{grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 18px}.upgrade-surface{grid-template-columns:1fr 210px 1fr;gap:15px;padding:30px 18px}.upgrade-wheel{width:190px;height:190px}.upgrade-selection .economy-item>img{width:90px;height:90px}.casino-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.cases-page,.upgrade-page{padding:145px 16px 45px}.case-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 12px}.case-product-head{width:120px;height:120px}.case-product h2{font-size:13px}.case-product-actions{gap:6px}.case-product-actions button{font-size:8px;padding:8px}.casino-page-heading{margin-bottom:35px}.casino-page-heading h1{font-size:29px}.casino-page-heading p{font-size:9px}.case-opening-dialog .case-reel-window{margin-left:14px;margin-right:14px}.case-reward-tile.economy-item{flex-basis:116px;width:116px;height:140px}.case-opening-dialog .case-intro h2{font-size:19px}.upgrade-surface{grid-template-columns:1fr 1fr;gap:18px}.upgrade-wheel-wrap{grid-column:1/-1;grid-row:2}.upgrade-selection .economy-item>img{width:82px;height:82px}.upgrade-selection .economy-item-name{font-size:11px}.upgrade-lists{grid-template-columns:1fr;gap:35px}.casino-item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.target-controls select{max-width:130px}.inventory-entry-actions .text-action{font-size:7px}.case-odds-row{font-size:8px}.case-odds-row .casino-price{font-size:7px}.case-odds{margin-left:20px;margin-right:20px}.case-opening-dialog{max-height:90vh;overflow:auto}}
@media(prefers-reduced-motion:reduce){.firework-rocket{display:none}}

/* Case opening uses the same plain translucent surface as MINES. */
#case-opening-dialog{background:rgba(16,14,25,.72);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
/* Cases share the shop's overworld hero and Nether catalogue. */
#cases-page{max-width:none;margin:0;padding:0;min-height:100vh}#cases-page .case-catalog{margin-top:43px}#cases-page .world-title p{font-size:24px;color:#e5eef3}#cases-list{scroll-margin-top:20px}
.profile-page{max-width:1200px;margin:auto;padding:150px 28px 75px;min-height:88vh}#profile-content{display:grid;grid-template-columns:260px minmax(0,1fr);gap:50px;align-items:start}.profile-summary{text-align:center;position:sticky;top:35px}.profile-summary .profile-large-head{display:block;width:170px;height:170px;margin:0 auto 22px}.profile-summary h1{font-size:26px;font-weight:400;margin-bottom:15px;overflow-wrap:anywhere}.profile-summary .profile-demo-label{font-size:8px;line-height:2;display:block}.profile-summary .profile-wallet{padding:22px 0;display:grid;gap:14px;font-size:10px}.profile-summary .profile-wallet strong{font-size:19px;display:flex;align-items:center;justify-content:center;gap:8px}.profile-summary .minecraft-button{font-size:10px;display:block;margin:10px auto}.profile-sign-out{background:none;border:0;font-size:9px;padding:15px;cursor:pointer}.profile-inventory h2{font-size:20px;font-weight:400}.profile-inventory .casino-item-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.profile-inventory .inventory-hint{margin-top:20px}.profile-guest{text-align:center;padding:55px 10px}.profile-guest h1{font-size:30px;font-weight:400}.profile-guest p{font-size:11px;line-height:2;margin:25px 0;color:#aaa}.profile-guest .minecraft-button{font-size:12px}#profile-inventory-status{font-size:10px;color:#b9d4ac;line-height:2;margin:0 0 18px}.profile-page .text-action{color:#c7bfcf}.profile-page .text-action:hover{color:#fff}
@media(max-width:900px){#profile-content{grid-template-columns:220px minmax(0,1fr);gap:24px}.profile-inventory .casino-item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){#cases-page{padding:0}#cases-page .case-catalog{margin-top:34px}.profile-page{padding:145px 16px 45px}#profile-content{grid-template-columns:1fr;gap:36px}.profile-summary{position:static}.profile-summary .profile-large-head{width:140px;height:140px}.profile-summary .profile-wallet{padding:18px 0}.profile-inventory .casino-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-inventory h2{font-size:16px}}
/* Item tiers, stepped corners and direct selection. */
.inventory-entry,.upgrade-target,.case-reward-tile{--rarity-color:#a9abb3;border-color:color-mix(in srgb,var(--rarity-color) 45%,#111);border-radius:0;clip-path:polygon(0 12px,6px 12px,6px 6px,12px 6px,12px 0,calc(100% - 12px) 0,calc(100% - 12px) 6px,calc(100% - 6px) 6px,calc(100% - 6px) 12px,100% 12px,100% calc(100% - 12px),calc(100% - 6px) calc(100% - 12px),calc(100% - 6px) calc(100% - 6px),calc(100% - 12px) calc(100% - 6px),calc(100% - 12px) 100%,12px 100%,12px calc(100% - 6px),6px calc(100% - 6px),6px calc(100% - 12px),0 calc(100% - 12px));background:linear-gradient(0deg,color-mix(in srgb,var(--rarity-color) 14%,transparent),transparent 70%),#181520e8;box-shadow:inset 0 -3px var(--rarity-color)}.item-rarity{font-size:7px;line-height:1.4;color:var(--rarity-color);letter-spacing:.3px}.inventory-entry[role=button]{cursor:pointer}.inventory-entry[role=button]:hover,.upgrade-target:hover:not(:disabled){background:linear-gradient(0deg,color-mix(in srgb,var(--rarity-color) 24%,transparent),transparent 80%),#211c2a}.inventory-entry.selected,.upgrade-target.selected{border-color:#fff;box-shadow:inset 0 -4px #fff}.inventory-hint a{text-decoration:underline}.case-reward-tile.economy-item{height:174px;gap:8px}.case-reward-won{border-color:#fff;box-shadow:inset 0 -4px var(--rarity-color)}.upgrade-selection .item-rarity{font-size:9px}
.upgrade-wheel,.upgrade-wheel:before,.upgrade-wheel:after{border-radius:0;clip-path:polygon(0 35%,5% 35%,5% 25%,10% 25%,10% 20%,15% 20%,15% 15%,20% 15%,20% 10%,25% 10%,25% 5%,35% 5%,35% 0,65% 0,65% 5%,75% 5%,75% 10%,80% 10%,80% 15%,85% 15%,85% 20%,90% 20%,90% 25%,95% 25%,95% 35%,100% 35%,100% 65%,95% 65%,95% 75%,90% 75%,90% 80%,85% 80%,85% 85%,80% 85%,80% 90%,75% 90%,75% 95%,65% 95%,65% 100%,35% 100%,35% 95%,25% 95%,25% 90%,20% 90%,20% 85%,15% 85%,15% 80%,10% 80%,10% 75%,5% 75%,5% 65%,0 65%)}.upgrade-wheel{box-shadow:none}.upgrade-wheel:before{background:repeating-conic-gradient(#aaa3b955 0deg 1deg,transparent 1deg 9deg),#25202d}.upgrade-wheel:after{background:#15121c}
/* The reel retains its panel; the surrounding case dialog has no surface. */
#case-opening-dialog{background:transparent;background-image:none;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;border:0;clip-path:none;max-height:92vh;overflow:auto;scrollbar-width:none}#case-opening-dialog::-webkit-scrollbar{display:none}#case-opening-dialog .case-intro h2,#case-opening-dialog .case-result-name{text-shadow:2px 2px #090710}.case-opening-dialog .case-reel-window{background:#12101bea;border-color:#07060b;padding:12px 0;clip-path:polygon(0 12px,6px 12px,6px 6px,12px 6px,12px 0,calc(100% - 12px) 0,calc(100% - 12px) 6px,calc(100% - 6px) 6px,calc(100% - 6px) 12px,100% 12px,100% calc(100% - 12px),calc(100% - 12px) calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,12px calc(100% - 6px),6px calc(100% - 6px),6px calc(100% - 12px),0 calc(100% - 12px))}.case-result-row{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;width:100%;font-size:11px}.case-result-name{width:100%;color:#e9e4ed;font-size:12px;margin-bottom:4px}#case-result-actions .minecraft-button,#case-result-actions .minecraft-button:hover,#case-result-actions .minecraft-button:active{transition:none!important;animation:none!important;transform:none!important;filter:none!important;background:#568c36;box-shadow:inset 2px 2px #91b96e,inset -2px -3px #355b22,0 2px #111a0c}#case-result-actions .minecraft-button:focus-visible{outline:2px solid #fff}.case-open-group{position:relative;display:grid;justify-items:stretch}.case-product-actions{align-items:end;margin-top:48px}.case-count-picker{position:absolute;bottom:calc(100% + 9px);left:0;right:0;display:grid;gap:6px;color:#aca4ba;font-size:7px;white-space:nowrap}.case-count-picker input{appearance:none;-webkit-appearance:none;display:block;width:100%;height:5px;background:#332e3f;border:0;border-radius:0;cursor:pointer;margin:0}.case-count-picker input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:10px;height:13px;background:#b8aecd;border:2px solid #0e0a14;border-radius:0}.case-count-picker input::-moz-range-thumb{width:8px;height:11px;background:#b8aecd;border:2px solid #0e0a14;border-radius:0}.multi-opening .case-head{width:56px;height:56px}.multi-opening .case-intro h2{font-size:18px;margin:8px 0}.multi-opening .case-reel-window{margin-top:10px;margin-bottom:10px;padding:8px 0}.multi-opening .case-reward-tile.economy-item{height:132px;gap:5px}.multi-opening .case-reward-tile.economy-item>img{width:48px;height:48px}.multi-opening .economy-item-name{font-size:8px}
@media(max-width:600px){.case-result-row{gap:9px}.case-result-row .minecraft-button{font-size:9px!important;padding:10px!important}.case-opening-dialog .case-head{width:70px;height:70px}.case-reward-tile.economy-item{height:166px}.multi-opening .case-reward-tile.economy-item{height:126px}.case-product-actions{margin-top:45px}.item-rarity{font-size:6px}.case-count-picker{font-size:6px}}

/* Flat wheel face; the rotating pointer is outside the clipped silhouette. */
.upgrade-wheel{clip-path:none;background:transparent;box-shadow:none;isolation:isolate}.upgrade-wheel:before,.upgrade-wheel:after{content:none}.upgrade-wheel-face{position:absolute;inset:0;background:conic-gradient(from 0deg,#75bb55 0deg var(--win-angle,0deg),#2c2837 var(--win-angle,0deg) 360deg);clip-path:polygon(0 35%,5% 35%,5% 25%,10% 25%,10% 20%,15% 20%,15% 15%,20% 15%,20% 10%,25% 10%,25% 5%,35% 5%,35% 0,65% 0,65% 5%,75% 5%,75% 10%,80% 10%,80% 15%,85% 15%,85% 20%,90% 20%,90% 25%,95% 25%,95% 35%,100% 35%,100% 65%,95% 65%,95% 75%,90% 75%,90% 80%,85% 80%,85% 85%,80% 85%,80% 90%,75% 90%,75% 95%,65% 95%,65% 100%,35% 100%,35% 95%,25% 95%,25% 90%,20% 90%,20% 85%,15% 85%,15% 80%,10% 80%,10% 75%,5% 75%,5% 65%,0 65%);pointer-events:none}.upgrade-wheel-face:after{content:'';position:absolute;inset:17px;background:#15121c;clip-path:polygon(0 35%,5% 35%,5% 25%,10% 25%,10% 20%,15% 20%,15% 15%,20% 15%,20% 10%,25% 10%,25% 5%,35% 5%,35% 0,65% 0,65% 5%,75% 5%,75% 10%,80% 10%,80% 15%,85% 15%,85% 20%,90% 20%,90% 25%,95% 25%,95% 35%,100% 35%,100% 65%,95% 65%,95% 75%,90% 75%,90% 80%,85% 80%,85% 85%,80% 85%,80% 90%,75% 90%,75% 95%,65% 95%,65% 100%,35% 100%,35% 95%,25% 95%,25% 90%,20% 90%,20% 85%,15% 85%,15% 80%,10% 80%,10% 75%,5% 75%,5% 65%,0 65%)}.upgrade-needle{z-index:5;pointer-events:none}.upgrade-needle:before{top:-21px;left:calc(50% - 7px);width:14px;height:19px;background:#f4f2ef;clip-path:polygon(0 0,100% 0,100% 42%,85% 42%,85% 63%,70% 63%,70% 80%,60% 80%,60% 100%,40% 100%,40% 80%,30% 80%,30% 63%,15% 63%,15% 42%,0 42%)}
.inventory-entry,.upgrade-target,.case-reward-tile{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));background:#1b1724;border:0;border-bottom:3px solid var(--rarity-color,#a9abb3);box-shadow:none}.inventory-entry[role=button]:hover,.upgrade-target:hover:not(:disabled){background:#25202f}.inventory-entry.selected,.upgrade-target.selected,.case-reward-won{border-color:#f2eef8;box-shadow:none;background:#292333}
.case-reward-won{animation:case-reward-flash .7s ease-out}.case-reward-won>img{animation:case-item-reveal .55s cubic-bezier(.2,.8,.3,1)}@keyframes case-reward-flash{0%{background:#62516d}100%{background:#292333}}@keyframes case-item-reveal{0%{transform:scale(.92)}45%{transform:scale(1.15)}100%{transform:scale(1)}}.upgrade-wheel.is-spinning .upgrade-chance{animation:upgrade-anticipation .85s ease-in-out infinite}.upgrade-wheel[data-result=won] .upgrade-wheel-face{animation:upgrade-win-flash .85s ease-out}.upgrade-wheel[data-result=lost] .upgrade-wheel-face{animation:upgrade-loss-flash .6s ease-out}.upgrade-wheel[data-result=won] .upgrade-chance strong{color:#a8e487}.upgrade-wheel[data-result=lost] .upgrade-chance strong{color:#eaa0a7}@keyframes upgrade-anticipation{50%{opacity:.6}}@keyframes upgrade-win-flash{0%,45%{filter:brightness(1.65)}100%{filter:brightness(1)}}@keyframes upgrade-loss-flash{0%{filter:sepia(.6) saturate(2) hue-rotate(300deg)}100%{filter:none}}@media(prefers-reduced-motion:reduce){.case-reward-won,.case-reward-won>img,.upgrade-wheel.is-spinning .upgrade-chance,.upgrade-wheel[data-result] .upgrade-wheel-face{animation:none}}

#profile-content,.profile-guest{background:linear-gradient(#101010ce,#101010ce),url(assets/terrain/stone.png);background-size:auto,112px 112px;padding:36px;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))}.profile-inventory .inventory-command{font-size:11px;color:#555;margin-left:5px}.profile-inventory .inventory-heading{margin-bottom:24px}.profile-summary .profile-sign-out{display:inline-block;margin:16px auto 0;padding:11px 25px;background:#8b3636;border:2px solid #3b1515;box-shadow:inset 2px 2px #bd6666,inset -2px -3px #582121;color:#fff}.profile-summary .profile-sign-out:hover{background:#a33e3e}@media(max-width:600px){#profile-content,.profile-guest{padding:30px 20px}.profile-inventory .inventory-heading{align-items:start}.profile-inventory .inventory-command{display:block;margin:6px 0;font-size:9px}}
/* Profile uses the MINES surface, with the running skin on the right. */
#profile-content,.profile-guest{background:rgba(16,14,25,.72);background-image:none;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}#profile-content{grid-template-columns:minmax(0,1fr) 250px;gap:36px}.profile-summary{grid-column:2;grid-row:1}.profile-inventory{grid-column:1;grid-row:1}#profile-full-skin{display:block;width:200px;height:250px;max-width:100%;margin:0 auto 16px;image-rendering:pixelated;pointer-events:none}.profile-rank{display:flex;align-items:center;justify-content:center;gap:7px;margin-bottom:10px;font-size:14px}.profile-rank img{width:24px;height:24px;image-rendering:pixelated}.profile-summary .profile-wallet{display:grid;gap:22px}.profile-wallet>div{display:grid;gap:11px}.profile-wallet>div>span{font-size:9px;color:#aaa}.profile-wallet .profile-star-balance{color:#ACEDFF!important}.profile-wallet .profile-coin-balance{color:#ffd76b!important}.profile-head-button img,.profile-head-button:hover img{filter:none;transition:none}.profile-inventory .casino-item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:700px){#profile-content{grid-template-columns:1fr}.profile-summary{grid-column:1;grid-row:1;position:static}.profile-inventory{grid-column:1;grid-row:2}.profile-summary .profile-wallet{grid-template-columns:1fr 1fr;gap:15px}.profile-inventory .casino-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact, shared inventory tiles and matching upgrade list rows. */
#casino-inventory,#upgrade-targets,#profile-inventory{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;align-items:start}
#casino-inventory>.inventory-entry,#upgrade-targets>.upgrade-target,#profile-inventory>.inventory-entry{min-height:0;height:152px;padding:12px 8px;gap:8px;box-sizing:border-box}
#casino-inventory .economy-item>img,#casino-inventory>.economy-item>img,#upgrade-targets .economy-item>img,#profile-inventory>.economy-item>img{width:50px;height:50px}
#casino-inventory .economy-item-name,#upgrade-targets .economy-item-name,#profile-inventory .economy-item-name{font-size:8px;line-height:1.5;min-height:24px;display:flex;align-items:center;justify-content:center}
#casino-inventory .casino-price,#upgrade-targets>.casino-price,#profile-inventory .casino-price{font-size:8px;margin-top:0}
#casino-inventory .inventory-entry-actions:empty{display:none}
#profile-inventory>.inventory-entry{height:176px}
.upgrade-lists>section{display:grid;grid-template-rows:44px 42px auto auto;gap:12px;align-content:start;min-width:0}
.upgrade-lists>section>h2,.upgrade-lists .inventory-heading{grid-row:1;margin:0;align-self:center;min-height:44px}
.upgrade-lists .target-controls{grid-row:2;align-self:stretch}
#casino-inventory,#upgrade-targets{grid-row:3}
#upgrade-more{grid-row:4}
.upgrade-surface{align-items:start}
.upgrade-selection{padding-top:8px}
.upgrade-selection>.economy-item{min-height:188px}
.upgrade-selection>p{min-height:188px;display:flex;align-items:center;justify-content:center;margin:25px 0 18px}
.upgrade-wheel-wrap{padding-top:24px}
.upgrade-presets{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:18px}
.upgrade-preset{font:inherit;font-size:9px;color:#d8d3df;background:#24202e;border:2px solid #09070f;padding:8px 9px;cursor:pointer;box-shadow:inset 0 2px #393342}
.upgrade-preset:hover:not(:disabled){background:#342d40;color:#fff}.upgrade-preset:disabled{opacity:.35;cursor:default}
@media(max-width:600px){#casino-inventory,#upgrade-targets,#profile-inventory{grid-template-columns:repeat(2,minmax(0,1fr))}.upgrade-selection>.economy-item,.upgrade-selection>p{min-height:145px}.upgrade-lists>section{grid-template-rows:44px 60px auto auto}.upgrade-lists .target-controls{flex-direction:column}.target-controls input,.target-controls select{font-size:8px;padding:6px;max-width:none}}

.upgrade-topup{display:grid;grid-template-columns:1fr auto;gap:12px 8px;text-align:left;margin:20px auto 0;max-width:260px}.upgrade-topup-caption{font-size:9px;align-self:center;color:#b9b3c2}.upgrade-topup .casino-price{font-size:10px}.upgrade-topup input{grid-column:1/-1;width:100%;height:10px;appearance:none;background:#09070f;border:2px solid #393342;border-radius:0;cursor:pointer;margin:0}.upgrade-topup input::-webkit-slider-thumb{appearance:none;width:14px;height:20px;background:#d2cbd9;border:3px solid #706579;border-radius:0}.upgrade-topup input::-moz-range-thumb{width:10px;height:16px;background:#d2cbd9;border:3px solid #706579;border-radius:0}.upgrade-topup input:disabled{opacity:.35;cursor:default}

.case-odds h3{font-size:11px;font-weight:400;text-align:center;color:#ded9e4;margin:0 0 14px}.case-odds>div{max-height:230px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#d9d5df transparent;scrollbar-width:thin}.case-odds-row{min-height:44px}.case-odds-row>img{width:32px;height:32px}.case-opening-dialog{max-height:92vh;overflow-y:auto;overscroll-behavior:contain}
html,.case-opening-dialog{scrollbar-color:#d9d5df transparent;scrollbar-width:thin}
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:transparent}::-webkit-scrollbar-thumb{background:#d9d5df;background-clip:padding-box;border:2px solid transparent;border-radius:0}::-webkit-scrollbar-thumb:hover{background-color:#fff}::-webkit-scrollbar-button{display:none;width:0;height:0}
@supports selector(::-webkit-scrollbar){html,.case-opening-dialog,.case-odds>div{scrollbar-color:auto;scrollbar-width:auto}.case-odds>div::-webkit-scrollbar{width:10px}.case-odds>div::-webkit-scrollbar-track{background:transparent}.case-odds>div::-webkit-scrollbar-thumb{background:#dedbe3;border:2px solid transparent;background-clip:padding-box;border-radius:0}.case-odds>div::-webkit-scrollbar-button{display:none;height:0;width:0}}

.upgrade-enchantments{list-style:none;text-align:left;padding:0;margin:18px auto 0;max-width:280px;display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;color:#c8c1d0;font-size:8px;line-height:1.7}.upgrade-enchantments li{min-width:0}.upgrade-enchantments li:before{content:'· ';color:#e9b766}@media(max-width:600px){.upgrade-enchantments{grid-template-columns:1fr;font-size:7px;gap:3px}}

/* Chromatic rarity is reserved for native star prices strictly above 100. */
[data-rarity="chromatic"]{--rarity-color:#c99cff!important}
.economy-item[data-rarity="chromatic"] .item-rarity,.economy-item[data-rarity="chromatic"] .economy-item-name{color:#f1b8ff;background:linear-gradient(100deg,#ff899c,#ffd880,#9ee891,#7edfff,#ba9bff,#ff9edc,#ff899c);background-size:220% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:chromatic-shift 7s linear infinite}
.upgrade-target[data-rarity="chromatic"],.inventory-entry[data-rarity="chromatic"],.case-reward-tile[data-rarity="chromatic"]{border-bottom:3px solid transparent;border-image:linear-gradient(90deg,#ff899c,#ffd880,#9ee891,#7edfff,#ba9bff,#ff9edc) 1;background-color:#241d30}
@keyframes chromatic-shift{to{background-position:220% 0}}
@media(prefers-reduced-motion:reduce){.economy-item[data-rarity="chromatic"] .item-rarity,.economy-item[data-rarity="chromatic"] .economy-item-name{animation:none}}
