.b-home, .b-page { width: 100%; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
.b-home { display: grid; grid-template-columns: minmax(0, 1fr) 30rem; gap: 24px; padding: 18px 28px 28px; align-items: start; }
.b-home.one { grid-template-columns: minmax(0, 1fr); padding: 6px 0 0; }
.b-page { padding: 8px 28px 32px; }
.b-left, .b-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.b-head { display: flex; align-items: center; gap: 14px; padding: 8px 0 14px; }
.b-head h1 { margin: 0; font-size: 30px; }
.b-sec { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.b-sec h3 { margin: 0; font-size: 18px; }
.b-link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 8px 4px; min-height: 36px; }
.b-chip { display: inline-flex; align-items: center; padding: 6px 12px 8px; background: var(--bg2); color: var(--accent); font-size: 13px; box-shadow: 0 0 0 3px var(--ink); }
.b-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding: 4px; }

.hero { position: relative; background: var(--bg2); padding: 22px 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; overflow: hidden; }
.hero-burst {
  position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-repeat: no-repeat; background-size: 1040px 640px; background-position: 50% 46%; image-rendering: pixelated;
}
.hero-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 240px; touch-action: pan-y; }
.hero-crate { display: grid; place-items: center; filter: drop-shadow(0 10px 0 rgba(0,0,0,.35)); animation: hero-bob 3.2s ease-in-out infinite; }
.hero-crate.locked { filter: grayscale(.8) brightness(.7); }
.hero-side { background: none; border: 0; padding: 0; opacity: .45; cursor: pointer; display: grid; place-items: center; min-width: 60px; transition: opacity .15s, transform .15s; }
.hero-side:hover { opacity: .8; }
.hero-arrow { min-width: 44px; min-height: 44px; flex: none; }
.hero-info { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hero-name { margin: 0; font-size: 26px; }
.hero-acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.hero-dots { position: relative; display: flex; gap: 8px; }
.hero-dots i { width: 10px; height: 10px; background: var(--line); box-shadow: 0 0 0 2px var(--ink); }
.hero-dots i.on { background: var(--accent); }
@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.b-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--bg2); }
.b-card .b-art { flex: none; display: grid; place-items: center; min-width: 80px; }
.b-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.b-txt h3 { margin: 0; font-size: 20px; }
.b-card.ready { background-image: linear-gradient(90deg, var(--accent) 0 8px, transparent 8px); }
.ring {
  --p: 0%;
  flex: none; width: 76px; height: 76px; display: grid; place-items: center; position: relative;
  background-size: 100% 100%; image-rendering: pixelated;
}
.ring .t { position: relative; font-size: 24px; line-height: 1; }

.pulls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 4px; }
.pull {
  display: grid; place-items: center; height: 64px; background: var(--bg2); border: 0; cursor: pointer; color: var(--fg);
  box-shadow: 0 0 0 3px var(--ink), inset 0 -5px 0 0 var(--rc), 0 0 14px -2px var(--rc);
}
.pulls-empty { padding: 18px; text-align: center; background: var(--bg2); box-shadow: 0 0 0 3px var(--ink); }
.live { display: flex; gap: 10px; overflow: hidden; padding: 4px; min-height: 40px; align-items: center; }
.live-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; background: var(--bg2); box-shadow: 0 0 0 2px var(--rc); font-size: 12px; }
.live-chip .t { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-height: 760px) { .hide-short { display: none !important; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; padding: 6px; }
.tiles.cats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.case-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px 20px; background: var(--bg2); color: var(--fg); border: 0; font: inherit; cursor: pointer; text-align: center; }
.case-card.bundle { cursor: default; }
.case-card.locked .cc-art { filter: grayscale(.8) brightness(.7); }
.cc-art { display: grid; place-items: center; min-height: 80px; }
.cc-name { font-size: 16px; }
.cc-sub { font-size: 13px; }
.cc-price { margin-top: 2px; }
.cat-sheet { display: flex; flex-direction: column; gap: 14px; padding: 8px; max-height: 80vh; overflow: auto; }
.cat-sheet h2 { margin: 0; }

.ladder, .ev-list, .want-list { display: flex; flex-direction: column; gap: 14px; padding: 4px; }
.ladder-row { display: grid; grid-template-columns: 64px 70px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg2); border: 0; box-shadow: 0 0 0 3px var(--ink); color: var(--fg); font: inherit; cursor: pointer; text-align: left; min-height: 56px; }
.ladder-lv { color: var(--accent); }
.ladder-art { display: grid; place-items: center; }
.ev-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; background: var(--bg2); }
.ev-art { display: grid; place-items: center; }

.mk-stock { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; padding: 4px; }
.mk-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; background: var(--bg2); box-shadow: 0 0 0 3px var(--ink); }
.mk-slot.sold { opacity: .45; }
.mk-empty { grid-column: 1 / -1; padding: 14px; background: var(--bg2); box-shadow: 0 0 0 3px var(--ink); }
.want { padding: 14px 16px; background: var(--bg2); display: flex; flex-direction: column; gap: 10px; }
.want.done { opacity: .6; }
.want-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.want-items { display: flex; gap: 14px; flex-wrap: wrap; }

body.phone .b-home { grid-template-columns: minmax(0, 1fr); padding: 8px 12px 16px; gap: 16px; }
body.phone .b-page { padding: 6px 12px 16px; }
body.phone .b-head h1 { font-size: 24px; }
body.phone .hero { padding: 16px 10px 16px; }
body.phone .hero-stage { min-height: 170px; gap: 4px; }
body.phone .hero-arrow { display: none; }
body.phone .hero-name { font-size: 21px; }
body.phone .pulls { gap: 8px; }
body.phone .pull { height: 52px; }
body.phone .tiles, body.phone .tiles.cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.phone .ladder-row { grid-template-columns: 52px 56px 1fr; }
body.phone .ladder-price { grid-column: 1 / -1; }
body.phone .mk-stock { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.phone .b-card { padding: 12px; gap: 12px; }
.screen-home, .screen-free, .screen-events, .screen-spotlight, .screen-categories, .screen-bundles, .screen-market, .screen-auction { overflow-y: auto; }
.upg-mid canvas.ring { width: 280px; height: 280px; background: none; image-rendering: pixelated; }
