#case-hub[hidden]{display:none}.case-hub{padding:28px;max-width:1500px;margin:auto;color:#eef5fb}.hub-heading{display:flex;gap:22px;align-items:center;margin-bottom:26px}.hub-heading>div{flex:1}.hub-heading h1{font-size:34px;margin:8px 0}.hub-heading p{font-size:12px;color:#abc3d5}.hub-heading .eyebrow{color:#96cecb;font-size:10px;letter-spacing:2px}.hub-heading button{font-size:12px}.hub-tabs{display:flex;gap:8px;background:#132941e8;border:1px solid #87b3ca30;border-radius:12px;padding:7px;margin-bottom:16px}.hub-tabs button{flex:1;background:transparent;color:#a9c2d5;border:1px solid transparent;border-radius:8px;padding:13px;font-weight:750;cursor:pointer}.hub-tabs button.selected{background:#2a696b66;border-color:#7cdcc881;color:#d1f6eb}.hub-tabs span{margin-left:10px;font-size:10px;opacity:.7}.hub-filters{display:flex;gap:14px;margin:18px 0 24px}.hub-filters input{flex:1}.hub-filters input,.hub-filters select,.case-builder-dialog input,.hub-seed input{background:#10263beb;border:1px solid #98b9d04d;color:#e5eff8;border-radius:8px;padding:13px;min-width:0}.hub-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:17px}.hub-case-card{background:linear-gradient(140deg,#23455bdf,#152d45ed);border:1px solid #a5c9d536;border-radius:13px;display:flex;align-items:center;flex-direction:column;padding:15px 10px 19px;color:#e8f3fa;cursor:pointer;transition:transform .16s,border-color .16s}.hub-case-card:hover{transform:translateY(-4px);border-color:var(--case-accent)}.hub-case-card>strong{font-size:14px;margin:12px 0 7px;text-align:center}.hub-case-card>small{font-size:10px;color:#a2bacb}.hub-case-price{font-size:13px;border-radius:6px;padding:6px 10px;background:#65c4a91b;color:#a0ecd4;border:1px solid #78cdbd32}.hub-case-art{position:relative;width:100%;height:132px;display:grid;place-items:center;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--case-accent) 25%,transparent),transparent 68%);isolation:isolate}.hub-chest{width:94px;height:94px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 12px 9px #0007)}.hub-case-gems{position:absolute;display:flex;align-items:center;justify-content:center;gap:3px;bottom:21px;left:8px;right:8px}.hub-case-gems img{height:40px;width:40px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 2px 3px #000b)}.hub-empty{grid-column:1/-1;color:#9eb8cb;text-align:center;padding:40px}.hub-back{margin-bottom:18px}.hub-opening,.hub-contents,.hub-my-cases{background:linear-gradient(135deg,#193e56f2,#152c43f2);border:1px solid #94bbd344;border-radius:14px;overflow:hidden;margin-bottom:20px}.hub-detail-heading{display:flex;align-items:center;gap:12px;padding:14px 28px;border-bottom:1px solid #a7d0dc20}.hub-detail-heading .hub-case-art{width:120px;flex-shrink:0}.hub-detail-heading h2{font-size:27px;margin:9px 0}.hub-detail-heading p,.hub-contents p{font-size:12px;color:#b1c7d7;line-height:1.8}.hub-reels{padding:22px;display:grid;gap:12px;background:#0e223452}.hub-reel{height:155px;position:relative;overflow:hidden;border:1px solid #9dbdd23b;border-radius:10px;background:#11283b;contain:layout paint}.hub-reel-marker{position:absolute;left:50%;top:0;bottom:0;width:2px;background:#c39af0;box-shadow:0 0 12px #c39af075;z-index:2}.hub-reel-marker:before{content:'';position:absolute;top:0;left:-6px;border-left:7px solid transparent;border-right:7px solid transparent;border-top:10px solid #e1c8ff}.hub-reel-strip{display:flex;width:max-content;height:100%;will-change:transform}.hub-reel-tile{width:128px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid #a6c7d118;gap:6px}.hub-reel-tile img{width:67px;height:67px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 4px 5px #0008)}.hub-reel-tile small{font-size:9px;color:#b5ccdb;max-width:118px;text-align:center}.hub-reel-tile b{font-size:12px;color:#a4e9d3}.hub-open-controls{text-align:center;padding:24px;display:flex;align-items:center;flex-direction:column;gap:13px}.hub-quantity{display:flex;gap:6px;background:#0d233682;padding:5px;border-radius:9px}.hub-quantity button{border:1px solid transparent;background:transparent;color:#abc6d6;width:43px;height:37px;border-radius:6px;font-weight:800;cursor:pointer}.hub-quantity button.selected{background:#3cbdb199;color:#effff8;border-color:#8bdfd2}.hub-open-button{min-width:270px;font-size:15px;padding:16px 24px}.hub-open-controls>p{color:#bfdaea;font-size:13px}.hub-seed{max-width:620px;font-size:11px;color:#99b5cc}.hub-seed input{margin:12px 0;width:100%}.hub-contents{padding:24px}.hub-contents h3{font-size:17px;margin:0 0 20px}.hub-content-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.hub-loot{background:#729bb914;border:1px solid #9bbaca2a;border-radius:10px;padding:14px 10px;display:flex;align-items:center;flex-direction:column;gap:8px;text-align:center}.hub-loot img{width:70px;height:70px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 4px 6px #0008)}.hub-loot strong{font-size:11px}.hub-loot b{color:#a5e9d4;font-size:12px}.hub-loot small{font-size:10px;color:#b6a4d5}.hub-contents details{margin-top:24px;font-size:11px;color:#9ebbd0}.creator-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0}.creator-stats section{border:1px solid #a0c2d43b;background:#1a3d54ec;border-radius:12px;padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:14px}.creator-stats small{color:#9fbcd0;font-size:9px;letter-spacing:1px}.creator-stats strong{font-size:32px;color:#b6f2dc}.creator-stats p{font-size:11px;color:#a7c0d0;line-height:1.7}.hub-my-cases{padding:24px}.hub-my-cases>div{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #a7c7d526;padding:15px 0}.hub-my-cases span{display:grid;gap:6px}.hub-my-cases small,.hub-my-cases p{font-size:12px;color:#9eb8c9}.case-builder-dialog{width:min(1180px,96vw);max-height:92dvh;border:1px solid #b2a3d863;border-radius:17px;background:#172e43;color:#eef5fb;padding:24px;overflow:auto}.case-builder-dialog::backdrop{background:#071322b8;backdrop-filter:blur(5px)}.builder-top{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.builder-top h2{font-size:24px;margin:8px 0}.case-builder-grid{display:grid;grid-template-columns:minmax(230px,1fr) minmax(300px,1.6fr) minmax(210px,.8fr);gap:22px}.builder-items>input{width:100%;margin-bottom:12px}.builder-items>div{height:530px;overflow:auto;display:grid;gap:8px;align-content:start;padding-right:6px}.builder-items button{display:flex;align-items:center;gap:11px;text-align:left;color:#dceaf4;background:#31526740;border:1px solid #a0c2d63b;border-radius:9px;padding:9px;cursor:pointer}.builder-items button.selected{border-color:#b19add;background:#9d79d526}.builder-items img{width:42px;height:42px;image-rendering:pixelated;object-fit:contain}.builder-items span{font-size:11px;flex:1}.builder-items b{display:block;color:#a6e4ca;font-size:10px;margin-top:5px}.builder-items em{font-style:normal;color:#c5a7e8}.builder-settings>label{display:grid;gap:8px;font-size:10px;color:#aac5d7;margin-bottom:17px}.builder-settings input[type=color]{height:42px;width:70px;padding:4px}.builder-settings h3{font-size:15px;margin:24px 0 9px}.builder-settings p{font-size:10px;color:#9bb5c6}.builder-selected{display:grid;gap:8px;margin-top:15px;max-height:400px;overflow:auto}.builder-selected>div{display:flex;align-items:center;gap:8px;padding:11px 8px;background:#7397af16;border:1px solid #b9cddd24;border-radius:8px}.builder-selected img{width:35px;height:35px;object-fit:contain;image-rendering:pixelated}.builder-selected span{flex:1;min-width:0}.builder-selected strong{font-size:10px}.builder-selected small{display:block;font-size:9px;color:#9fd5c8;margin-top:4px}.builder-selected input{width:72px;padding:7px;font-size:11px}.builder-selected b{font-size:10px;color:#d3bbea;width:45px;text-align:right}.builder-selected button{background:none;border:0;color:#c3d4df;font-size:20px;cursor:pointer}.builder-preview{background:#0c213639;border:1px solid #a9c6db24;border-radius:12px;padding:20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px}.builder-preview .hub-case-art{height:150px}.builder-preview h3{font-size:17px;overflow-wrap:anywhere}.builder-preview small{font-size:9px;color:#a8c2d3}.builder-preview>strong{font-size:28px;color:#b9f1d8}.builder-preview p{font-size:11px;color:#a9c2d2;line-height:1.8}.builder-preview .primary{margin-top:auto;width:100%}.case-builder-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;max-height:300px;overflow:auto}.case-hub button:focus-visible,.case-builder-dialog button:focus-visible{outline:2px solid #c5a1ed;outline-offset:3px}@media(min-width:1500px){.hub-gallery{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:1050px){.hub-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.case-builder-grid{grid-template-columns:1fr 1.6fr}.builder-preview{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.builder-preview .hub-case-art{grid-row:1/5}.builder-items>div{height:460px}}@media(max-width:700px){.case-hub{padding:18px 12px}.hub-heading{flex-wrap:wrap;gap:12px}.hub-heading>div{order:2;flex-basis:100%}.hub-heading h1{font-size:29px}.hub-heading>.primary{margin-left:auto}.hub-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hub-tabs button{padding:10px 5px;font-size:10px}.hub-tabs span{display:none}.hub-filters{gap:8px}.hub-filters input{width:50%}.hub-case-card>strong{font-size:12px}.hub-detail-heading{padding:12px;gap:6px}.hub-detail-heading .hub-case-art{width:90px}.hub-detail-heading h2{font-size:20px}.hub-detail-heading .eyebrow{font-size:8px}.hub-reels{padding:10px}.hub-reel{height:142px}.hub-open-controls{padding:20px 12px}.creator-stats{grid-template-columns:1fr}.case-builder-dialog{padding:16px}.case-builder-grid{grid-template-columns:1fr}.builder-items>div{height:210px;grid-template-columns:1fr 1fr}.builder-items button{padding:6px;gap:5px}.builder-items img{width:30px;height:30px}.builder-items span{font-size:9px}.builder-preview{grid-column:auto}.builder-selected input{width:65px}.hub-open-button{min-width:230px}.hub-content-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}}@media(prefers-reduced-motion:reduce){.hub-case-card{transition:none}.hub-reel-strip{transition:none!important}}

.hub-my-cases .creator-case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:0;padding:12px 0;align-items:stretch}.creator-case-card{border:1px solid #a5c9d536;border-radius:12px;background:#102c4070;padding:16px;min-width:0}.creator-case-card h3{font-size:16px;overflow-wrap:anywhere;margin:8px 0 18px}.creator-case-card dl{margin:0 0 18px;display:grid;gap:10px}.creator-case-card dl>div{display:flex;justify-content:space-between;gap:12px}.creator-case-card dt{font-size:11px;color:#abc2d4}.creator-case-card dd{margin:0;font-size:12px;font-weight:750;color:#b5ecd9}.creator-case-card>button{width:100%;font-size:11px}.hub-my-cases h2>small{float:right;font-size:13px}.creator-limit-note{line-height:1.7}@media(max-width:1000px){.hub-my-cases .creator-case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.hub-my-cases .creator-case-grid{grid-template-columns:1fr}}

/* Tint the chest texture itself, keeping its pixel detail and shading. */
.hub-chest-wrap{position:relative;display:block;width:94px;height:94px;isolation:isolate;filter:drop-shadow(0 12px 9px #0007)}.hub-chest-wrap .hub-chest{width:100%;height:100%;filter:grayscale(1) brightness(1.16)}.hub-chest-wrap:after{content:'';position:absolute;inset:0;background:var(--case-accent);mix-blend-mode:color;mask:url('/assets/minecraft-chest.png') center/contain no-repeat;-webkit-mask:url('/assets/minecraft-chest.png') center/contain no-repeat;pointer-events:none}
.hub-my-cases .creator-case-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.creator-case-card{padding:12px}.creator-case-card .hub-case-art{height:82px}.creator-case-card .hub-chest-wrap{width:64px;height:64px}.creator-case-card .hub-case-gems{bottom:8px;gap:1px}.creator-case-card .hub-case-gems img{width:28px;height:28px}.creator-case-card h3{font-size:13px;margin:5px 0 12px}.creator-case-card dl{gap:7px;margin-bottom:12px}.creator-case-card dt{font-size:10px}.creator-case-card dd{font-size:11px}.creator-case-card>button{font-size:10px;padding:7px 8px;min-height:32px}@media(min-width:1500px){.hub-my-cases .creator-case-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1000px){.hub-my-cases .creator-case-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.hub-my-cases .creator-case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.hub-my-cases .creator-case-grid{grid-template-columns:1fr}}

.hub-chest-wrap{filter:brightness(var(--case-brightness,1)) drop-shadow(0 12px 9px #0007)}.builder-settings input[type=range]{width:100%;padding:0;accent-color:#a48cda}.builder-settings output{color:#d2c1ef;font-size:11px}
