.box-content { --bc-well:#171732; --bc-muted:#abadcc; min-width:0; max-width:1180px; color:#fff; }
.bc-heading,.bc-nav,.bc-tier-head { display:flex; align-items:center; gap:12px; }
.bc-heading { padding-bottom:12px; border-bottom:1px solid #ffffff18; }
.bc-heading h1 { font-size:clamp(19px,2vw,28px); letter-spacing:-.035em; }
.bc-back,.bc-arrow { flex:none; display:grid; place-content:center; color:#fff; background:#21213b; border:1px solid #ffffff19; }
.bc-back { width:40px; height:40px; border-radius:50%; font-size:27px; }
.bc-pack-art { height:46px; width:46px; object-fit:contain; }
.bc-nav { margin-block:20px 16px; flex-wrap:wrap; gap:8px; }
.bc-nav h2 { margin-right:auto; font-size:clamp(20px,2vw,27px); }
.bc-link,.bc-many,.bc-resume,.bc-mode { border-radius:10px; padding:8px 12px; font-size:14px; font-weight:800; }
.bc-link,.bc-many { background:var(--bc-well); border:1px solid #ffffff1c; }
.bc-shelf { min-width:0; margin-bottom:24px; }
.bc-tier-head { gap:8px; margin-bottom:8px; }
.bc-tier-head h2 { margin-right:auto; font-size:18px; color:var(--bc-tier,#fff); }
.bc-range,.bc-rate { display:none; }
.bc-arrow { padding:0; width:36px; height:36px; border-radius:10px; font-size:23px; }
.bc-arrow:disabled { opacity:.4; cursor:default; }
.bc-shelf .items { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:176px; gap:12px; padding:3px 3px 5px; margin-inline:-3px; overflow-x:auto; scrollbar-width:none; overscroll-behavior-x:contain; cursor:grab; user-select:none; }
.bc-shelf .items:active { cursor:grabbing; }
.bc-many { display:grid; place-items:center; border-radius:16px; }
.box-content [data-tier=grail] { --bc-tier:#ffd23c; --bc-art:url('/art/rewards/grail-background.webp'); }
.box-content [data-tier=legendary] { --bc-tier:#ff5a48; --bc-art:url('/art/box-content/legendary.webp'); }
.box-content [data-tier=epic] { --bc-tier:#ab6eff; --bc-art:url('/art/box-content/epic.webp'); }
.box-content [data-tier=rare] { --bc-tier:#4f8cff; --bc-art:url('/art/box-content/rare.webp'); }
.box-content [data-tier=uncommon] { --bc-tier:#2fd07a; --bc-art:url('/art/box-content/uncommon.webp'); }
.box-content [data-tier=common] { --bc-tier:#9ca3af; --bc-art:url('/art/box-content/common.webp'); }
.box-content .item { isolation:isolate; padding:12px; border:0; border-radius:16px; background:var(--bc-well); text-align:center; }
.bc-shelf .item { min-height:253px; }
.box-content .item::before,.box-content .item::after { position:absolute; z-index:-1; inset:0; content:""; pointer-events:none; }
.box-content .item::before { background:var(--bc-art) center/cover; transform:rotate(180deg); filter:saturate(1.3); }
.box-content .item::after { background:linear-gradient(to bottom,transparent 50%,#0008); }
.box-content .art-well { height:auto; aspect-ratio:1; border:0; background:none; }
.box-content .art-well::before,.box-content .item .arrow,.bc-shelf .meta { display:none; }
.box-content .item-art { padding:0; width:auto; max-width:100%; height:92%; object-fit:contain; transform:none; filter:drop-shadow(0 12px 14px #000a); }
.box-content .item-copy { padding:0; margin-top:12px; }
.box-content .item h3 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:14px; line-height:18px; letter-spacing:normal; min-height:36px; margin:0; }
.box-content .item p { margin:6px 0 0; font-size:15px; font-weight:800; color:#fff; }
.bc-grid .items { grid-template-columns:repeat(auto-fill,minmax(min(160px,100%),1fr)); gap:12px; }
.bc-grid .meta { color:#fffd; }
.bc-count,.bc-note,.bc-message { color:var(--bc-muted); font-size:14px; margin-block:16px; }
.box-content > .model-form .controls { display:flex; align-items:end; flex-wrap:wrap; gap:12px; }
.box-content > .model-form label { flex:1 1 175px; margin:0; }
.bc-dock { position:sticky; z-index:2; bottom:10px; display:flex; justify-content:center; align-items:center; gap:12px; width:fit-content; max-width:100%; margin:24px auto 0; border:1px solid #ffffff24; padding:8px; border-radius:18px; background:#171732f5; box-shadow:0 4px 20px #0006; }
.bc-modes { display:flex; gap:2px; border-radius:12px; padding:3px; background:#0d0d21; }
.bc-mode { white-space:nowrap; text-align:center; flex:1; color:#c8c8dc; }
.bc-mode[aria-current] { color:#fff; background:#3b3455; }
.bc-dock .model-form { margin:0; }
.bc-dock .actions,.bc-dock .button { width:100%; }
.bc-dock .button,.bc-resume { border:0; border-radius:11px; min-height:44px; justify-content:center; color:#241b10; background:linear-gradient(115deg,#f0cf77,#fddc7a 52%,#f0cf77); font-weight:800; }
.bc-status,.bc-resume { text-align:center; padding:8px 12px; }
.bc-empty { position:relative; min-height:calc(100dvh - var(--mast) - 140px); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:24px; text-align:center; }
.bc-empty h1 { color:#ffffffbf; font-size:16px; font-weight:600; }
.bc-empty p { color:#ffffff80; font-size:14px; }
.bc-empty .bc-back { position:absolute; left:0; top:0; }
@media(max-width:760px) {
  .bc-nav { gap:6px; }
  .bc-nav h2 { font-size:18px; }
  .bc-link { font-size:12px; padding:8px; }
  .bc-tier-head h2 { margin-right:0; }
  .bc-range { margin-right:auto; }
  .bc-range,.bc-rate { display:block; font-size:13px; color:var(--bc-muted); }
  .bc-rate { color:#fff; }
  .bc-shelf { padding-bottom:14px; margin-bottom:16px; border-bottom:1px solid #ffffff19; }
  .bc-shelf .items { grid-auto-columns:148px; scroll-snap-type:x proximity; }
  .bc-shelf .item { text-align:left; min-height:201px; scroll-snap-align:start; }
  .bc-shelf .item-copy { margin-top:8px; }
  .bc-shelf .item h3 { -webkit-line-clamp:1; min-height:0; font-size:15px; line-height:20px; }
  .bc-shelf .item p { margin-top:2px; color:#ffffffb3; }
  .bc-dock { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; width:100%; bottom:calc(59px + env(safe-area-inset-bottom)); }
  .bc-mode { padding:6px 8px; }
}
@media(max-width:760px) and (pointer:coarse) { .bc-arrow { display:none; } }
