dialog.crate-showcase{width:min(1180px,calc(100vw - 32px));max-width:none;max-height:94dvh;padding:30px 34px 20px;color:#eeeeda;border:1px solid #c1a45d;border-radius:4px;outline:1px solid #796b3e;outline-offset:5px;background:linear-gradient(90deg,#06130dc9,#06130df5 75%),url('/assets/crate-vault-backdrop.webp') center/cover;box-shadow:0 28px 100px #000b;font-family:Arial,Helvetica,sans-serif}
dialog.crate-showcase::backdrop{background:#020c09a6;backdrop-filter:blur(6px)}
.crate-showcase .shop-top{display:flex;align-items:center;gap:24px;margin-bottom:8px}
.crate-showcase .shop-top h2{margin:0 auto 0 0;font-family:Georgia,serif;font-size:23px;color:#e7cf85;letter-spacing:2px}
.crate-showcase .shop-top h2:before{content:'♛';font-size:34px;margin-right:18px}
.crate-showcase .shop-top button{width:44px;height:44px;padding:0;border:1px solid #67704d;border-radius:10px;background:#15251b;color:#eddfae;font:30px Arial}
.showcase-wallet{display:flex;align-items:center;gap:7px;border:1px solid #756d43;border-radius:18px;padding:10px 18px;font-size:18px;white-space:nowrap}
.crate-hero{display:grid;grid-template-columns:56% 44%;align-items:center;min-height:340px}
.crate-stage{position:relative;display:grid;place-items:center;min-width:0;height:350px;background:url('/assets/crate-vault-backdrop.webp') 38% 67%/155% auto;mask-image:radial-gradient(ellipse 65% 66% at 50% 53%,#000 45%,transparent 80%)}
.showcase-art{width:78%;height:285px;object-fit:contain;filter:drop-shadow(0 0 25px color-mix(in srgb,var(--rarity) 45%,transparent));position:relative;z-index:1}
.crate-hero-copy{padding:20px 18px 20px 20px}
.showcase-eyebrow{font-size:12px;letter-spacing:4px;color:#e9cf79;margin:0 0 5px}
.crate-hero h3{font: bold clamp(32px,4vw,56px)/1.1 Georgia,serif;color:var(--rarity);margin:0 0 14px}
.showcase-description{font:18px/1.5 Georgia,serif;color:#d7ded9;margin:0 0 14px}
.showcase-owned{display:table;border:1px solid #b4b282;border-radius:16px;padding:8px 18px;color:var(--rarity);margin:0 0 20px;font-size:16px}
.crate-showcase .showcase-action,.crate-showcase .chest-grid .crate-open{background:linear-gradient(135deg,#a162cf,#6c30a7);border:1px solid #d2a1f0;color:white;border-radius:12px;padding:16px;font-size:18px;font-weight:600;width:100%}
.crate-showcase .showcase-action.showcase-buy,.crate-showcase .chest-grid article>button:last-child{background:linear-gradient(135deg,#ffce70,#efa634);border:1px solid #eac576;color:#251b06}
.crate-showcase button:disabled{opacity:.5;cursor:default}
.crate-showcase .showcase-odds,.crate-showcase .chest-grid .crate-preview{background:none;border:0;color:#ead99a;text-decoration:underline;text-underline-offset:5px;padding:15px 4px;font:15px Georgia,serif;cursor:pointer}
.showcase-odds{width:100%}
.crate-showcase .chest-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:6px 0 18px}
.crate-showcase .chest-grid article{display:flex;flex-direction:column;align-items:stretch;min-width:0;border:1px solid #566147;border-top:2px solid var(--rarity);border-radius:16px;background:linear-gradient(#1c3125c9,#071810e6);padding:10px;box-sizing:border-box}
.crate-showcase .chest-grid article.crate-selected{border-color:var(--rarity);box-shadow:0 0 18px color-mix(in srgb,var(--rarity) 25%,transparent),inset 0 0 12px #78c9f015}
.crate-showcase .chest-grid .crate-select{background:none;border:0;padding:0;color:var(--rarity);cursor:pointer}
.crate-showcase .chest-icon{margin:0;height:112px;display:grid;place-items:center}
.crate-showcase .chest-icon img{height:108px;width:100%;object-fit:contain;max-width:100%;filter:drop-shadow(0 5px 10px #0007)}
.crate-showcase .chest-grid strong{font: bold 19px/1.2 Georgia,serif;min-height:24px;margin:6px 0 0;color:var(--rarity)}
.crate-showcase .chest-grid .crate-owned{order:1;font-size:13px;margin:8px 0 0;color:var(--rarity)}
.crate-showcase .chest-grid .crate-preview{order:2;margin-top:auto;font-size:13px;padding:13px 0}
.crate-showcase .chest-grid .crate-open,.crate-showcase .chest-grid article>button:last-child{order:3;min-height:48px;padding:12px 5px;font:600 13px Arial,Helvetica,sans-serif;border-radius:10px}
.crate-showcase .shop-note{text-align:center;font-size:14px;color:#c7d1c7;margin:8px 0}
.crate-showcase [hidden]{display:none!important}
.crate-showcase button:focus-visible{outline:2px solid #f5de91;outline-offset:3px}
dialog.crate-showcase .chest-grid button.crate-select:not(.crate-preview){background:transparent;border:0;color:var(--rarity);margin:0;min-height:0;border-radius:0}
dialog.crate-showcase .chest-grid button.crate-select:not(.crate-preview):disabled{background:transparent;border:0;color:var(--rarity)}
@media(max-width:700px){dialog.crate-showcase{padding:20px 14px;width:calc(100vw - 28px)}.crate-showcase .shop-top{gap:10px}.crate-showcase .shop-top h2{font-size:14px;letter-spacing:1px}.crate-showcase .shop-top h2:before{display:none}.showcase-wallet{font-size:13px;padding:8px}.crate-hero{grid-template-columns:1fr;min-height:0}.crate-stage{height:210px}.showcase-art{height:190px}.crate-hero-copy{padding:0 8px 20px}.crate-hero h3{font-size:32px}.showcase-description{font-size:16px}.showcase-owned{margin-bottom:12px}.crate-showcase .chest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.crate-showcase .chest-grid article:last-child{grid-column:1/-1}.crate-showcase .chest-grid strong{font-size:17px}.crate-showcase .chest-icon{height:100px}}
/* Reference composition: a lit platform anchored independently of chest dimensions. */
dialog.crate-showcase{position:relative;border:0;outline:0;border-radius:0;padding:34px 38px 24px;background:linear-gradient(90deg,#04120a55,#03110be0 70%),url('/assets/crate-vault-scene-v2.webp') center/cover}
dialog.crate-showcase:before{content:'';position:absolute;inset:0;background:url('/assets/crate-showcase-frame.svg') center/100% 100% no-repeat;pointer-events:none;z-index:3}
dialog.crate-showcase::backdrop{background:linear-gradient(#00100a44,#00100a55),url('/assets/crate-vault-scene-v2.webp') center/cover;backdrop-filter:blur(3px)}
.crate-showcase .shop-top{margin:0 0 8px;min-height:52px}
.crate-showcase .shop-top h2{display:flex;align-items:center;gap:18px;font-weight:500;font-size:24px;letter-spacing:2px}
.crate-showcase .shop-top h2:before{display:none}
.crate-showcase .shop-top h2 svg{width:44px;height:38px;flex:none}
.crate-showcase .shop-top button{width:46px;height:48px}
.crate-hero{grid-template-columns:59% 41%;min-height:368px}
.crate-stage{height:auto;aspect-ratio:12/7;background:url('/assets/crate-pedestal-v2.webp') center/100% 100% no-repeat;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 92%,transparent);overflow:visible;display:block}
.showcase-art{position:absolute;left:50%;bottom:24%;transform:translateX(-50%);width:65%;height:72%;max-width:none;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 10px 5px #0009) drop-shadow(0 0 20px color-mix(in srgb,var(--rarity) 25%,transparent))}
.crate-hero-copy{padding:12px 12px 14px 18px}
.crate-hero h3{color:#f1efdc;font-size:clamp(34px,4.2vw,60px);font-weight:500;white-space:nowrap;letter-spacing:-1px;margin-bottom:10px}
.crate-hero h3 span{color:var(--rarity)}
.showcase-description{font-size:19px;line-height:1.4;margin-bottom:14px}
.showcase-owned{display:flex;width:max-content;align-items:center;gap:10px;border-radius:15px;padding:9px 17px;font-family:Arial,Helvetica,sans-serif;font-weight:500;margin:0 0 20px}
.showcase-crate-icon{display:inline-block;vertical-align:middle;width:23px;height:23px;flex:none;color:#e6dba2}
.crate-showcase .showcase-action{min-height:64px;font-size:21px;font-weight:500;box-shadow:inset 0 1px 0 #ffffff55}
.crate-showcase .showcase-odds{display:flex;align-items:center;justify-content:center;gap:12px;font-size:17px;padding:18px 0 4px}
.showcase-odds svg{width:22px;height:22px;flex:none}
.crate-showcase .chest-grid{gap:10px;margin-top:0;margin-bottom:20px}
.crate-showcase .chest-grid article{padding:12px 10px 14px;min-height:292px}
.crate-showcase .chest-icon{height:122px}
.crate-showcase .chest-icon img{height:118px}
.crate-showcase .chest-grid strong{font-weight:500;font-size:21px;margin-top:6px;min-height:26px;white-space:nowrap}
.crate-showcase .chest-grid .crate-owned{display:flex;align-items:center;justify-content:center;gap:7px;align-self:center;border:1px solid #697153;border-radius:16px;padding:4px 12px;font-size:13px;line-height:1.2;margin:7px 0 0;white-space:nowrap}
.crate-showcase .crate-owned .showcase-crate-icon{width:19px;height:19px}
.crate-showcase .chest-grid .crate-preview{font-size:14px;padding:12px 0}
.crate-showcase .chest-grid .crate-open,.crate-showcase .chest-grid article>button:last-child{font-size:16px;font-weight:500;min-height:56px;margin:0;padding:10px 4px}
.crate-price{display:flex;align-items:center;justify-content:center;gap:6px}
.crate-showcase .chest-grid button small,.showcase-action small{display:block;font:13px/1.25 Arial,Helvetica,sans-serif;min-height:0;margin:4px 0 0;color:inherit}
.crate-showcase .shop-note{font-size:16px;margin:8px 0;color:#d0d7d2}
.crate-showcase .showcase-wallet .currency-icon{width:28px;height:28px}
@media(max-width:1000px) and (min-width:701px){.crate-showcase .chest-grid strong{font-size:16px}.crate-showcase .chest-grid .crate-preview{font-size:12px}.crate-showcase .chest-grid .crate-open,.crate-showcase .chest-grid article>button:last-child{font-size:13px}.crate-hero h3{font-size:44px}.showcase-description{font-size:17px}}
@media(max-width:700px){dialog.crate-showcase{padding:24px 15px 20px}.crate-showcase .shop-top h2{font-size:13px;letter-spacing:1px;gap:8px}.crate-showcase .shop-top h2 svg{width:25px;height:25px}.crate-showcase .shop-top button{width:36px;height:36px}.crate-hero{grid-template-columns:1fr;min-height:0}.crate-stage{width:100%;height:auto;aspect-ratio:12/7}.showcase-art{height:72%;width:65%}.crate-hero-copy{padding:4px 5px 18px}.crate-hero h3{font-size:36px}.showcase-description{font-size:16px}.crate-showcase .chest-grid strong{font-size:18px}.crate-showcase .chest-grid article{min-height:270px}.crate-showcase .chest-grid .crate-open,.crate-showcase .chest-grid article>button:last-child{font-size:14px}}
dialog.crate-showcase{background:linear-gradient(90deg,#04120ad9,#03110bf5 70%),url('/assets/crate-vault-scene-v2.webp') center/cover}
.crate-stage{background:none;mask-image:none}
.crate-stage:before{content:'';position:absolute;inset:0;background:url('/assets/crate-pedestal-v2.webp') center/100% 100% no-repeat;mask-image:radial-gradient(ellipse 72% 88% at 50% 56%,#000 48%,transparent 82%);pointer-events:none}
/* Keep the decorative frame outside the scrolling content. */
dialog.crate-showcase{padding:14px;overflow:hidden;background:#071a13;max-height:94dvh}
dialog.crate-showcase::backdrop{background:#00100a99;backdrop-filter:blur(4px)}
.crate-scroll{max-height:calc(94dvh - 28px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#7c784b #11271c;padding:20px 24px 18px;scroll-padding:16px}
.crate-showcase .shop-top{position:sticky;top:-20px;z-index:2;background:#071a13f5;padding:8px 0 12px}
.crate-showcase .showcase-description{font:17px/1.5 Arial,Helvetica,sans-serif;color:#d2ddd7}
.crate-showcase .showcase-eyebrow{font:600 12px/1.5 Arial,Helvetica,sans-serif;letter-spacing:3px}
.crate-showcase .chest-grid .crate-preview{font:14px/1.4 Arial,Helvetica,sans-serif}
.crate-showcase .showcase-odds{font:15px/1.4 Arial,Helvetica,sans-serif}
.crate-showcase .crate-opening{padding:22px 0 6px;border-color:#5d6844;margin-top:20px}
.crate-showcase .crate-opening-title{font:600 22px/1.3 Arial,Helvetica,sans-serif;letter-spacing:0;color:#efdfaa;margin:0 0 16px}
.crate-showcase .crate-reveal-status{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;min-height:0;font:15px/1.5 Arial,Helvetica,sans-serif;color:#d4dfd6}
.crate-odds-chip{border:1px solid #526047;background:#172d21;padding:6px 10px;border-radius:7px;color:#dfdfc1;font-size:13px}
.crate-showcase .crate-reel{height:180px;background:#05150e;border-color:#64704b}
.crate-showcase .crate-reward{height:158px;font-family:Arial,Helvetica,sans-serif}
.crate-showcase .crate-reward strong{font:600 13px/1.3 Arial,Helvetica,sans-serif;min-height:34px;display:flex;align-items:center;justify-content:center;padding:2px 6px}
.crate-showcase .crate-reward small{font:10px/1.4 Arial,Helvetica,sans-serif;letter-spacing:.5px}
.crate-showcase .crate-reward img,.crate-showcase .crate-reward canvas{width:140px;height:96px;object-fit:contain;padding:8px}
.crate-showcase .crate-reward img.currency-icon{width:140px;height:96px;padding:12px}
.crate-showcase .crate-reel.is-preview{height:auto;max-height:340px;overflow:auto;scrollbar-width:thin}
.crate-showcase .crate-reel.is-preview:before,.crate-showcase .crate-reel.is-preview:after{display:none}
.crate-showcase .is-preview .crate-track{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px}
.crate-showcase .is-preview .crate-reward{width:100%;height:182px;position:relative}
.crate-showcase .is-preview .crate-reward img,.crate-showcase .is-preview .crate-reward canvas{margin:auto}
.crate-chance{display:block;margin:8px 0 0;font:600 13px/1.2 Arial,Helvetica,sans-serif;color:#f4d881}
.crate-showcase .crate-opening summary{font:600 15px/1.5 Arial,Helvetica,sans-serif;padding:12px 0;color:#d5dfc9}
.crate-showcase .crate-opening ul{padding:8px 0;list-style:none;gap:0 24px;font:14px/1.5 Arial,Helvetica,sans-serif;max-height:300px;overflow:auto;scrollbar-width:thin}
.crate-showcase .crate-opening li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #294232;padding:8px 0}
.crate-showcase .crate-opening li strong{font-variant-numeric:tabular-nums;font-size:13px;color:#ecd38d;white-space:nowrap}
.crate-showcase .crate-prize{display:flex;align-items:center;gap:22px;margin:18px 0 6px;padding:20px 24px;border:1px solid #b6a45f;border-radius:14px;background:linear-gradient(120deg,#293b22,#10261b);box-shadow:inset 0 1px 0 #d4bb6330}
.crate-prize>img,.crate-prize>canvas{width:96px;height:96px;object-fit:contain;flex:none}
.crate-prize small{font:600 11px/1.5 Arial,Helvetica,sans-serif;letter-spacing:2px;color:#c8c795}
.crate-prize strong{display:block;font:600 30px/1.3 Arial,Helvetica,sans-serif;color:#f6df8c;margin:4px 0}
.crate-prize p{font:15px/1.4 Arial,Helvetica,sans-serif;color:#d1dfcf;margin:4px 0 0}
.crate-opening[data-phase=checking] .crate-reveal-status:before{content:'';display:inline-block;width:15px;height:15px;border:2px solid #796f46;border-top-color:#f5d27b;border-radius:50%;animation:crate-confirm .7s linear infinite;margin:3px 2px 0 0}
@keyframes crate-confirm{to{transform:rotate(360deg)}}
@media(max-width:700px){dialog.crate-showcase{padding:10px}.crate-scroll{max-height:calc(94dvh - 20px);padding:10px 8px 16px}.crate-showcase .shop-top{top:-10px}.crate-showcase .crate-opening-title{font-size:19px}.crate-showcase .crate-opening ul{grid-template-columns:1fr}.crate-showcase .crate-prize{padding:14px;gap:12px}.crate-prize>img,.crate-prize>canvas{width:65px;height:65px}.crate-prize strong{font-size:23px}.crate-prize small{font-size:9px;letter-spacing:1px}.crate-prize p{font-size:13px}}
@media(prefers-reduced-motion:reduce){.crate-opening[data-phase=checking] .crate-reveal-status:before{animation:none}}
.crate-showcase .shop-top{background:#071a13;box-shadow:0 8px 12px #071a13}
dialog.crate-showcase .crate-opening{scroll-margin-top:90px}
dialog.crate-showcase{clip-path:polygon(20px 0,calc(100% - 20px) 0,100% 20px,100% calc(100% - 20px),calc(100% - 20px) 100%,20px 100%,0 calc(100% - 20px),0 20px)}
.crate-showcase .is-preview .crate-reward{height:208px;display:grid;grid-template-rows:96px minmax(34px,1fr) 28px 24px;align-items:center;padding:0 4px 6px}
.crate-showcase .is-preview .crate-reward strong{margin:0;padding:0 4px;min-height:0}
.crate-showcase .is-preview .crate-reward small{display:block;min-height:0;line-height:14px}
.crate-showcase .is-preview .crate-chance{margin:0;align-self:center;line-height:20px}
