
#shopPanel.shop-tabbed .tab-head { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 0; } 
#shopPanel.shop-tabbed .tab-head h2 { margin: 0; white-space: nowrap; }
#shopPanel.shop-tabbed .spot-head,
#shopPanel.shop-tabbed .spot-progress { display: none; }
#shopPanel.shop-tabbed .spotlight { background: none; border: 0; padding: 0; }
.shop-tabs { flex: 1; display: flex; gap: 4px; height: 44px; max-width: 250px; margin: 0 5px 0 auto; min-width: 0; } 
.shop-tabs[hidden] { display: none; }
.shop-tab {
  flex: 1; min-width: 0; height: 44px; position: relative; cursor: pointer;
  border: 1px solid rgba(255,255,255,.10); border-radius: 10px; background: rgba(255,255,255,.035); color: #b4bedc;
  font-family: inherit; font-weight: 700; font-size: 13px; line-height: 1;
  transition: background-color var(--t-quick) var(--e-standard), color var(--t-quick) var(--e-standard), transform var(--t-instant) var(--e-standard);
}
.shop-tab:hover { color: #eef3ff; background: rgba(255,255,255,.06); }
.shop-tab:active { transform: scale(0.96); }
.shop-tab[aria-selected="true"] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #eef3ff; }
.shop-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 4px; height: 2px; border-radius: 2px; background: #ffcf5a; }

#shopPanel.shop-tabbed .spot-page.active { animation: shopTabIn var(--t-base) var(--e-enter); }
@keyframes shopTabIn { from { opacity: 0; transform: translateX(var(--lean, 6px)); } to { opacity: 1; transform: none; } }
@keyframes shopTabFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #shopPanel.shop-tabbed .spot-page.active { animation: shopTabFade var(--t-quick) linear; }
}

#shopPanel.shop-fill .shop-dash,
#shopPanel.shop-fill .shop-grid,
#shopPanel.shop-fill .spotlight,
#shopPanel.shop-fill .spot-pages { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#shopPanel.shop-fill .spot-page.active { flex: 1 1 auto; min-height: 0; height: auto; display: flex; flex-direction: column; gap: 6px; }
#shopPanel.shop-fill .spot-page.active > .shop-block { height: auto; min-height: 0; flex: 0 0 auto; }
#shopPanel.shop-fill .spot-page.active > .bundle-block { flex: 1 1 auto; }
#shopPanel.shop-fill .bundle-block > .shop-block-head { margin-bottom: 2px; }
#shopPanel.shop-fill #betaSection { flex: 1 1 auto; display: flex; flex-direction: column; }

#shopPanel.shop-tabbed .beta-band { display: flex; flex-direction: column; gap: 5px; padding: 2px 0 0; flex: 1 1 auto; min-height: 0; }
#shopPanel.shop-tabbed .beta-item {
  flex: 1 1 0; min-height: 50px; max-height: 84px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 1fr 1fr;
  grid-template-areas: "art name gems" "art stock price";
  align-items: center; column-gap: 10px; row-gap: 1px; padding: 4px 12px 4px 6px; text-align: left;
}
#shopPanel.shop-tabbed .beta-item:hover:not(:disabled) { transform: none; }
#shopPanel.shop-tabbed .beta-item:active:not(:disabled) { transform: scale(0.98); }
#shopPanel.shop-tabbed .beta-art { grid-area: art; width: 44px; margin: 0; }
#shopPanel.shop-tabbed .beta-name { grid-area: name; align-self: end; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#shopPanel.shop-tabbed .beta-stock { grid-area: stock; align-self: start; }
#shopPanel.shop-tabbed .beta-gems { grid-area: gems; align-self: end; justify-self: end; font-size: 14px; white-space: nowrap; }
#shopPanel.shop-tabbed .beta-price { grid-area: price; align-self: start; justify-self: end; font-size: 13px; opacity: 1; color: #c9d1ea; }
@media (min-height: 640px) { #shopPanel.shop-tabbed .beta-art { width: 60px; } }

.bundle-block .shop-timer:empty { display: none; }
.bc-slot { position: relative; height: 356px; width: 100%; max-width: 460px; }
#shopPanel.shop-fill .bc-slot { flex: 1 1 auto; height: auto; max-width: none; min-height: 250px; }
#shopPanel.shop-fill .spot-page.active > .bundle-block { min-height: auto; }
.bc-msg { margin: 6px 0 0; font-size: 12px; color: #9fb0d8; }
.bc-msg:empty { display: none; }
.bc-msg.error { color: #ff9d9d; }
.bc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bcard s, .bc-amt { font-variant-numeric: tabular-nums; }

.bcard {
  position: absolute; inset: 0; container: bcard / size;
  --pad: 14px; --gap: 8px; --flipw: 150px; --row: 30px; --fs: 14px; --fs-s: 13px;
  background: #171b2e; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; color: #eef3ff; text-align: left;
}
.bc-face {
  position: absolute; inset: 0; padding: var(--pad);
  display: flex; flex-direction: column; min-height: 0;
  overflow: hidden; 
opacity: 0; transform: translateY(4px);
  transition: opacity var(--t-instant) var(--e-exit), transform var(--t-instant) var(--e-exit);
}
.bcard[data-face="front"] .bc-front, .bcard[data-face="back"] .bc-back {
  opacity: 1; transform: none;
  transition: opacity var(--t-quick) var(--e-enter) calc(var(--t-base) - var(--t-quick)),
              transform var(--t-quick) var(--e-enter) calc(var(--t-base) - var(--t-quick));
}
.bcard.no-fade .bc-face { transition: none !important; }

.bc-hero {
  flex: 1 1 auto; min-height: 0; border-radius: 12px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 28% 38%, var(--h1, #6a4cff), transparent 60%),
              radial-gradient(circle at 78% 62%, var(--h2, #ff7ab8), transparent 55%), #24294a;
  display: flex; flex-direction: column; justify-content: space-between; padding: 10px;
}
.bc-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bc-hero::after { 
content: ""; position: absolute; inset: auto 0 0 0; height: 60%;
  background: linear-gradient(to top, rgba(10,12,24,0.78), transparent); pointer-events: none;
}
.bc-hero-top, .bc-hero-name { position: relative; z-index: 1; }
.bc-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.bc-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px;
  border: 1px solid #ffcf5a; color: #ffcf5a; background: rgba(20,16,4,0.7);
  font-size: 12px; font-weight: 700; white-space: nowrap; }
.bc-chip.no { border-color: rgba(255,255,255,0.28); color: #c3cbe4; text-decoration: line-through; background: rgba(10,12,24,0.7); }
.bc-minis { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.bc-disc { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); position: relative; flex: none; background: var(--c, #555b7a); }
.bc-disc > .bc-art { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.bc-disc > .bc-art img { width: 100%; height: 100%; object-fit: contain; }
.bc-disc.own { border-color: #fff; }
.bc-disc.own::after { 
content: "\2713"; position: absolute; right: -5px; bottom: -4px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; color: #10142a; font-size: 10px; font-weight: 900; line-height: 14px; text-align: center;
}
.bc-hero-name h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.15; color: #fff; }
.bc-sub { margin: 2px 0 0; font-size: var(--fs-s); color: #d4dbf2; }
.bc-price { margin: 10px 0 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bc-amt { font-size: 22px; font-weight: 800; }
.bc-gem { font-size: 15px; margin-left: -4px; }
.bc-was { color: #9aa4c2; font-size: var(--fs); }
.bc-save { color: #7cffa6; font-weight: 700; font-size: var(--fs-s); }
.bc-says { margin: 4px 0 0; font-size: var(--fs-s); color: #b4bedc; line-height: 1.35; text-wrap: pretty; }
.bc-says b { color: #eef3ff; font-weight: 700; }
#shopPanel .bcard .bc-price { color: #eef3ff; }
#shopPanel .bcard .bc-sub { color: #d4dbf2; }
#shopPanel .bcard .bc-says, #shopPanel .bcard .bc-note { color: #b4bedc; }
#shopPanel .bcard .bc-saving { color: #7cffa6; }

.bc-rhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.bc-rhead h3 { margin: 0; font-size: 17px; font-weight: 800; color: #fff; }
.bc-colh { font-size: 11px; color: #9aa4c2; text-transform: uppercase; letter-spacing: 0.06em; }
.bc-rows { list-style: none; margin: 0; padding: 0; }
.bc-rows li { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: var(--row);
  border-bottom: 1px solid rgba(255,255,255,0.07); font-size: var(--fs); }
.bc-pname { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-rows .bc-disc { width: 14px; height: 14px; border-width: 1px; }
.bc-rows .bc-disc.own::after { display: none; }
.bc-rows s { color: #9aa4c2; }
.bc-have { color: #b4bedc; font-size: var(--fs-s); }
.bc-only { color: #ffcf5a; font-size: var(--fs-s); font-weight: 700; white-space: nowrap; }
.bc-rows li.bc-trow { color: #ffcf5a; }
.bc-rows li.bc-trow.no { color: #b4bedc; }
.bc-rows li.bc-trow.no .bc-only { color: #b4bedc; font-weight: 400; }
.bc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-weight: 800; font-size: 16px; }
.bc-total .bc-amt { font-size: 20px; }
.bc-saving { margin: 0; font-size: var(--fs-s); color: #7cffa6; text-align: right; }
.bc-note { margin: 10px 0 0; font-size: var(--fs-s); color: #b4bedc; }
.bc-tmark { width: 14px; height: 14px; flex: none; border-radius: 4px; border: 2px solid currentColor; transform: rotate(45deg) scale(0.8); }

.bc-bar { margin-top: auto; padding-top: var(--gap); }
.bc-flip {
  width: var(--flipw); min-height: 44px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.04);
  color: #eef3ff; font-family: inherit; font-weight: 700; font-size: 13px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-quick) var(--e-standard), border-color var(--t-quick) var(--e-standard), transform var(--t-instant) var(--e-standard);
}
.bc-flip:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.36); }
.bc-flip:active { transform: scale(0.965); }
.bc-short { display: none; }
.bc-ico { width: 16px; height: 16px; flex: none; transform: scaleX(-1); transition: transform var(--t-instant) var(--e-exit); }
.bcard[data-face="front"] .bc-front .bc-ico, .bcard[data-face="back"] .bc-back .bc-ico {
  transform: none; transition: transform var(--t-base) var(--e-enter);
}
.bc-buy, .bc-go {
  position: absolute; right: var(--pad); bottom: var(--pad); left: calc(var(--pad) + var(--flipw) + var(--gap));
  min-height: 44px; border: none; border-radius: 10px; background: #2f66c9; color: #fff;
  font-family: inherit; font-weight: 800; font-size: 15px; line-height: 1.1; cursor: pointer; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background-color var(--t-quick) var(--e-standard), transform var(--t-instant) var(--e-standard);
}
.bc-buy:hover { background: #3a75dd; }
.bc-buy:active, .bc-go:active { transform: scale(0.965); }
.bc-buy:disabled { opacity: .6; cursor: default; transform: none; }
.bc-go { background: transparent; border: 1px solid rgba(124,255,166,0.55); color: #7cffa6; }
.bc-go:hover { background: rgba(124,255,166,0.08); }

@container bcard (max-height: 300px) {
  .bc-face, .bc-buy, .bc-go { --pad: 10px; --gap: 6px; --flipw: 108px; --row: 22px; --fs: 13px; --fs-s: 12px; }
  .bc-long { display: none; }
  .bc-short { display: inline; }
  .bc-hero { padding: 8px; }
  .bc-hero-name h3 { font-size: 17px; }
  .bc-hero-top .bc-disc { width: 22px; height: 22px; }
  .bc-chip { height: 22px; font-size: 11px; padding: 0 8px; }
  .bc-price { margin-top: 6px; }
  .bc-amt { font-size: 19px; }
  .bc-rhead h3 { font-size: 15px; }
  .bc-total { margin-top: 5px; font-size: 14px; }
  .bc-total .bc-amt { font-size: 17px; }
  .bc-note { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-face, .bcard .bc-face, .bcard[data-face] .bc-face { transform: none !important; transition: opacity var(--t-quick) linear !important; }
  .bc-ico, .bcard[data-face] .bc-ico { transition: none !important; }
}

#dropsPage.active:has(> .bundle-block:not([hidden])) { display: flex; flex-direction: column; gap: 10px; }
#dropsPage:has(> .bundle-block:not([hidden])) > #betaSection { height: auto; flex: none; }
#dropsPage:has(> .bundle-block:not([hidden])) .beta-art { width: min(100%, 72px); }
#dropsPage > .bundle-block { height: auto; flex: 1 1 auto; min-height: 0; }
#dropsPage > .bundle-block .bc-slot { flex: 1 1 auto; height: auto; min-height: 250px; max-height: 380px; }
