/* VALBLOX case drops modal (assets/js/case-drops.js): one case's contents, on top of styles.css, cases.css (the
   stepper), case-open.css (the co-icard item cards, as case.html's "In this case") and vb-modal.css (the frame).
   A native <dialog> wearing vb-modal's frame (it opens over the case picker, which vb-modal keeps one at a time): the
   head carries the case's art where vb-modal has its icon tile, the body scrolls on its own, the footer holds the
   stepper and the case page link. Phones (600px and under): the whole screen, as every vb-modal. */

dialog.cdx { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; background: none; color: inherit; overflow: hidden; }
dialog.cdx:not([open]) { display: none; }
dialog.cdx::backdrop { background: transparent; }   /* the frame's own scrim dims the page (and the picker under it) */
.cdx { --vbm-w: 820px; }
.cdx__head { gap: 14px; }
.cdx__art { width: 58px; height: 58px; flex: none; margin: -8px -2px -8px -4px; }
.cdx__img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(4, 7, 12, .45)); }
.cdx__sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; }
.cdx__price { display: inline-flex; align-items: center; gap: 5px; }
.cdx__price img { width: 15px; height: 16px; }
.cdx__price .num { font-size: 15px; color: var(--gold); }
.cdx__dot { opacity: .6; }
/* VBDrops.show (rewards.html's reward cases): words in place of the price, no footer */
.cdx__tag { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; }
.cdx__tag[hidden], .cdx__price[hidden], .cdx__foot[hidden], .cdx__link[hidden] { display: none; }
@container co (width >= 700px) { .cdx__grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* the rarity tokens, = cases.css, for a page that shows these cards without loading cases.css (rewards.html) */
.cdx .r-common { --r: #8997A6; --r-rgb: 137, 151, 166; --r-hi: #B3BFCC; }
.cdx .r-uncommon { --r: #56C78D; --r-rgb: 86, 199, 141; --r-hi: #98E1B6; }
.cdx .r-rare { --r: #6DB3FA; --r-rgb: 109, 179, 250; --r-hi: #A9D2FE; }
.cdx .r-epic { --r: #B09DFC; --r-rgb: 176, 157, 252; --r-hi: #CEC5FE; }
.cdx .r-legendary { --r: #EAB771; --r-rgb: 234, 183, 113; --r-hi: #F4CD9A; }
.cdx__body { padding: 20px 26px 22px; outline: none; }
.cdx__body:focus-visible { box-shadow: inset 0 0 0 2px rgba(var(--lilac-rgb), .6); }
.cdx__in { container: co / inline-size; }
.cdx__grid { gap: 12px 10px; }
.cdx__note { margin-top: 16px; }
.cdx__foot {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 22px 16px 26px;
  box-shadow: inset 0 2px 0 var(--rule), inset 0 3px 0 rgba(var(--hi), .3);
}
.cdx__qty { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cdx__qty[hidden] { display: none; }
.cdx__qty[hidden] + .cdx__link { margin-left: auto; }
.cdx__qlbl { font-family: "Skranji", sans-serif; font-size: 14px; letter-spacing: .4px; color: var(--muted); white-space: nowrap; }
.cdx__step { width: 150px; margin: 0; }
.cdx__qty.is-on .pstep__n { color: var(--lilac-lighter); }
.cdx__link { gap: 8px; }
.cdx__link .ic { width: 16px; height: 16px; transform: scaleX(-1); }

@media (max-width: 600px) {
  .cdx__art { width: 46px; height: 46px; margin: -6px 0; }
  .cdx__body { padding: 16px 16px 20px; }
  .cdx__foot { flex-wrap: nowrap; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .cdx__qty { gap: 10px; }
  .cdx__step { width: 132px; }
  .cdx__link { width: 40px; padding: 0 0 3px; }   /* the arrow alone (its label names the case page) */
  .cdx__link span { display: none; }
}
