/* VALBLOX case pages: case.html (one case) and cases.html (the list), on top of styles.css and cases.css. Only these
   two pages load this file, and every rule here is scoped to a co- class, so the battle pages never see it.

   Layout and item presentation follow ase.gg's case opening (brand/_refs/ase-gg, read only: case-opening-stage,
   case-reel*, item-rarity-backdrop, case-opening-controls, case-items-grid, case-card; the reel geometry is its
   styles/globals.css reel section). No boxes on the reel: each item floats on a rarity emblem with a soft rarity
   bloom behind it. The dress is VALBLOX's own: the emblem is a winged Norse round shield (build_cases.py CO_DEFS),
   the panel is a chamfered plate, its corner brackets are cut twice, the pointer is a bronze swallowtail arrowhead,
   the buttons are the site's own (the gold primary for Open). Sizes come from one container, the .co section
   (case.js reads the same widths). */

.co-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- an item on its emblem
   --a: the art box. The emblem is ase.gg's plate box (7/6 of the art wide, 140:96), the bloom a soft rarity light
   wider than it, unscaled behind the art; the render is drawn 8% over the box (--ak, as on the battle lanes: these
   renders leave more air round the item). Everything is centred with margins, so transforms stay free for motion. */
.co-art, .co-slot { --ak: 1.08; --pw: calc(var(--a) * 7 / 6); --ph: calc(var(--pw) / 1.4583); }
.co-art { position: relative; display: block; flex: none; width: var(--a); height: var(--a); }
.co-plate {
  position: absolute; left: 50%; top: 50%; width: var(--pw); height: var(--ph); margin: calc(var(--ph) / -2) 0 0 calc(var(--pw) / -2);
  overflow: visible; color: var(--r); opacity: var(--po, .3); pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .5) 100%); mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .5) 100%);
}
.co-plate__sil { opacity: .3; }
.r-common { --po: .3; }
.r-uncommon { --po: .32; }
.r-rare { --po: .32; }
.r-epic { --po: .34; }
.r-legendary { --po: .3; }
.co-bloom {
  position: absolute; left: 50%; top: 50%; width: calc(var(--pw) + 72px); height: calc(var(--ph) + 72px);
  margin: calc(var(--ph) / -2 - 36px) 0 0 calc(var(--pw) / -2 - 36px); pointer-events: none;
  background: radial-gradient(closest-side at 50% 44%, rgba(var(--r-rgb), .3) 0%, rgba(var(--r-rgb), .11) 52%, rgba(var(--r-rgb), 0) 100%);
}
.co-art__img, .co-img {
  position: absolute; left: 50%; top: 50%; width: calc(var(--a) * var(--ak)); height: calc(var(--a) * var(--ak)); max-width: none;
  margin: calc(var(--a) * var(--ak) / -2) 0 0 calc(var(--a) * var(--ak) / -2); object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .05)) drop-shadow(0 12px 12px rgba(0, 0, 0, .2));
}

/* ---------------------------------------------------------------- case.html: the header row
   ase.gg's case-opening-header: Back to Cases | the case's name | the toggles (Sound, Fairness; Fast is a switch in
   the controls) */
.co { container: co / inline-size; }
.co-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; min-height: 44px; }
.co-back {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0;
  font-size: 14px; letter-spacing: 1.1px; color: var(--muted); text-transform: uppercase; white-space: nowrap; transition: color .3s ease-out;
}
.co-back .ic { width: 18px; height: 18px; transition: transform .3s ease-out; }
.co-back:hover { color: var(--lilac-light); }
.co-back:hover .ic { transform: translateX(-2px); }
.co-back:focus-visible { outline: 2px solid var(--lilac-light); outline-offset: 4px; color: var(--lilac-light); }
.co-title {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0;
  font-size: 22px; line-height: 28px; letter-spacing: 1.2px; color: var(--white); text-transform: uppercase;
}
.co-title__art { width: 46px; height: 46px; flex: none; margin: -8px 0; }
.co-title__img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(4, 7, 12, .45)); }
.co-title__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-acts { justify-self: end; display: flex; gap: 8px; }
.co-act { width: 36px; height: 36px; padding: 0 0 3px; --c: 7px; --n: 3px; }
.co-act .ic { width: 18px; height: 18px; }
html.sfx-muted .co-act--sfx { color: var(--gray-link); }

/* ---------------------------------------------------------------- case.html: the reel panel
   ase.gg's reel geometry, by the .co section's width. One pack: one horizontal row, trimmed so the art and its
   caption fill it (192/232/268/288/300 px tall, pitch 108/120/140/164/164, art 84/92/108/120/128: the renders keep
   ~12% air, so 128 reads as ase.gg's 120), neighbours at full strength under a vignette that fades the row's ends
   and leaves the lifted winner clear (a taller ellipse than the panel). 2-4 packs: vertical
   lanes side by side (300/328/364, art 86/92/96 on a pitch of art x 1.25, neighbours at half, the far ones gone),
   pointers left and right, hairline dividers. Under 700 px (with 520 px of height) the lanes stack as rows (112 px
   each, 88 for 3-4 packs; 132 / 104 from 520 px). Under 520 px of height everything shrinks to 176 px.
   case.js reads --co-axis and measures the slots; the engine (cases-kit.js ReelSpin) moves the tracks. */
.co-reel {
  --co-axis: row; --co-h: 192px; --co-pitch: 108px; --co-art: 84px; --co-sw: var(--co-pitch); --co-in: 6px; --co-mi: 16px;
  --co-rx: 50%; --co-ry: 80%; --co-gap: 8px; --co-cols: 1; --co-rows: 1; --co-arm: max(40px, 14.5455cqw);
  position: relative; isolation: isolate; height: var(--co-h); margin-top: 20px; transition: height .25s ease-out;
}
.co-reel > .plate {
  --c: 12px; --n: 4px; --bt: rgba(var(--lo), .5); --bb: rgba(var(--hi), .2);
  --face: radial-gradient(46% 70% at 50% 50%, rgba(var(--cw-rgb), .05) 0%, rgba(var(--cw-rgb), 0) 100%),
          radial-gradient(80% 110% at 50% 50%, #19212D 0%, #11171F 100%);
}
@container co (width >= 520px) { .co-reel { --co-h: 232px; --co-pitch: 120px; --co-art: 92px; --co-mi: 22px; } }
@container co (width >= 700px) { .co-reel { --co-h: 268px; --co-pitch: 140px; --co-art: 108px; --co-in: 12px; --co-mi: 30px; } }
@container co (width >= 940px) { .co-reel { --co-h: 288px; --co-pitch: 164px; --co-art: 120px; --co-mi: 32px; } }
@container co (width >= 1040px) { .co-reel { --co-h: 300px; --co-art: 128px; --co-mi: 30px; } }
@media (max-height: 519.98px) { .co-reel { --co-h: 176px; --co-pitch: 88px; --co-art: 64px; --co-in: 6px; --co-mi: 12px; } }

.co-reel:not([data-n="1"]) {
  --co-axis: column; --co-h: 300px; --co-art: 86px; --co-pitch: calc(var(--co-art) * 1.25); --co-sw: 104px;
  --co-rx: 70.64%; --co-ry: 50%; --co-in: 12px; --co-mi: 8px; --co-cols: var(--co-n);
}
@container co (width >= 940px) { .co-reel:not([data-n="1"]) { --co-h: 328px; --co-art: 92px; --co-sw: 110px; --co-mi: 14px; } }
@container co (width >= 1040px) { .co-reel:not([data-n="1"]) { --co-h: 364px; --co-art: 96px; --co-sw: 116px; --co-mi: 16px; --co-rx: 72.21%; } }
@media (max-height: 519.98px) { .co-reel:not([data-n="1"]) { --co-h: 176px; --co-art: 52px; --co-sw: 64px; --co-in: 6px; } }

.co-lanes {
  position: absolute; inset: var(--co-in); display: grid;
  grid-template-columns: repeat(var(--co-cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--co-rows), minmax(0, 1fr));
}
.co-lane { position: relative; min-width: 0; min-height: 0; }
@media (prefers-reduced-motion: no-preference) { .co-lane { animation: co-fade .2s ease-out backwards; } }
@keyframes co-fade { from { opacity: 0; } }
.co-view {   /* the clip, and ase.gg's reel vignette as a mask: clear to half the radius, then fading into the panel */
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: radial-gradient(var(--co-rx) var(--co-ry) at 50% 50%, #000 50.2%, transparent 100%);
          mask-image: radial-gradient(var(--co-rx) var(--co-ry) at 50% 50%, #000 50.2%, transparent 100%);
}
/* a row: the track runs left to right through the middle; a column: bottom to top (slot 0 at the foot), so the
   track's top slot is its last */
.co-track { position: absolute; left: 0; top: 50%; height: var(--co-art); margin-top: calc(var(--co-art) / -2); display: flex; will-change: transform; }
.co-slot { --a: var(--co-art); position: relative; flex: none; width: var(--co-pitch); height: var(--co-art); display: flex; align-items: center; justify-content: center; }
.co-reel:not([data-n="1"]) .co-track { top: 0; right: 0; height: auto; margin-top: 0; flex-direction: column-reverse; align-items: center; }
.co-reel:not([data-n="1"]) .co-slot { --pw: calc(var(--a) * 1.2083); --ph: calc(var(--pw) / 1.45); width: var(--co-sw); height: var(--co-pitch); }
.co-item { position: relative; flex: none; width: var(--co-art); height: var(--co-art); will-change: transform; }
.co-reel[data-spinning="true"] .co-img { filter: none; }   /* a moving render keeps no shadow (ase.gg) */
.co-img--hype { width: calc(var(--a) * .92); height: calc(var(--a) * .92); margin: calc(var(--a) * -.46) 0 0 calc(var(--a) * -.46); filter: drop-shadow(0 6px 10px rgba(4, 7, 12, .5)); }

/* the dividers between lanes (ase.gg's case-reel-dividers): faint hairlines fading at both ends */
.co-reel:not([data-n="1"]) .co-lane + .co-lane::before {
  content: ""; position: absolute; z-index: 1; left: -.625px; top: 0; bottom: 0; width: 1.25px; pointer-events: none; opacity: .2;
  background: linear-gradient(rgba(var(--lilac-rgb), 0) 0%, var(--lilac) 25%, var(--lilac) 75%, rgba(var(--lilac-rgb), 0) 100%);
}

/* the corner brackets (ase.gg's case-reel-corners, cut twice as valblox's notch) */
.co-corner { position: absolute; z-index: 2; width: min(var(--co-arm), calc(50% - 10px)); height: min(var(--co-arm), calc(50% - 10px)); opacity: .3; pointer-events: none; }
.co-corner--tl { left: var(--co-in); top: var(--co-in); }
.co-corner--tr { right: var(--co-in); top: var(--co-in); transform: scaleX(-1); }
.co-corner--bl { left: var(--co-in); bottom: var(--co-in); transform: scaleY(-1); }
.co-corner--br { right: var(--co-in); bottom: var(--co-in); transform: scale(-1, -1); }

/* the pointer: two arrowheads, over and under the middle (a row), either side of it (columns) */
.co-mark { position: absolute; z-index: 3; left: 50%; width: 14px; height: 9px; margin-left: -7px; fill: var(--bz2); pointer-events: none; filter: drop-shadow(0 1px 1px rgba(4, 7, 12, .7)); }
.co-mark--a { top: var(--co-mi); }
.co-mark--b { bottom: var(--co-mi); transform: rotate(180deg); }
.co-reel:not([data-n="1"]) .co-mark { top: 50%; bottom: auto; margin: -4.5px 0 0; }
.co-reel:not([data-n="1"]) .co-mark--a { left: var(--co-mi); transform: rotate(-90deg); }
.co-reel:not([data-n="1"]) .co-mark--b { left: auto; right: var(--co-mi); transform: rotate(90deg); }

/* the caption under the won item (ase.gg's case-reel-caption): its name in its rarity's light (from 1040 px for one
   pack, 700 px for two or three, 940 px for four) and a value pill; the engine fades them in as the lane lands.
   --lift: how far the settled winner rose (case.js) */
.co-cap {
  position: absolute; z-index: 2; left: 0; right: 0; top: calc(50% + var(--co-art) / 2 + var(--co-gap) - var(--lift, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 4px; pointer-events: none;
}
.co-cap__name {
  display: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0;
  font-size: 12px; line-height: 16px; letter-spacing: .8px; color: var(--r-hi); text-transform: uppercase; text-shadow: 0 2px 0 rgba(4, 7, 12, .6);
}
.co-cap__price {
  display: flex; align-items: center; gap: 4px; max-width: 100%; height: 20px; padding: 0 8px 1px 7px; opacity: 0; transform-origin: 50% 50%;
  background: rgba(12, 17, 25, .92); box-shadow: inset 0 0 0 1px rgba(var(--r-rgb), .34);
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
}
.co-cap__price img { width: 12px; height: 13px; flex: none; }
.co-cap__price .num { font-size: 11px; letter-spacing: .3px; white-space: nowrap; }
@container co (width >= 700px) {
  .co-cap { gap: 6px; padding: 0 8px; }
  .co-cap__price { height: 24px; padding: 0 10px 1px 9px; }
  .co-cap__price img { width: 14px; height: 15px; }
  .co-cap__price .num { font-size: 12px; }
  .co-reel:is([data-n="2"], [data-n="3"]) .co-cap__name { display: block; }
}
@container co (width >= 940px) {
  .co-cap__name { font-size: 14px; line-height: 18px; }
  .co-cap__price { height: 28px; gap: 6px; padding: 0 12px 1px; }
  .co-cap__price img { width: 18px; height: 19px; }
  .co-cap__price .num { font-size: 14px; }
  .co-reel[data-n="4"] .co-cap__name { display: block; }
}
@container co (width >= 1040px) { .co-reel[data-n="1"] .co-cap__name { display: block; } }

/* stacked rows (2-4 packs under a 700 px page with 520 px of height: ase.gg's [data-reel-stack]); 3-4 packs dense */
@media (min-height: 520px) {
  @container co (width < 700px) {
    .co-reel:not([data-n="1"]) {
      --co-axis: row; --co-rowh: 112px; --co-art: 72px; --co-pitch: 88px; --co-rx: 50%; --co-ry: 50%; --co-in: 6px; --co-gap: 4px; --co-mi: 2px;
      --co-cols: 1; --co-rows: var(--co-n); --co-h: calc(var(--co-rowh) * var(--co-n) + var(--co-in) * 2);
    }
    .co-reel:is([data-n="3"], [data-n="4"]) { --co-rowh: 88px; --co-art: 56px; --co-pitch: 68px; }
    .co-reel:not([data-n="1"]) .co-track { top: 50%; right: auto; height: var(--co-art); margin-top: calc(var(--co-art) / -2); flex-direction: row; align-items: stretch; }
    .co-reel:not([data-n="1"]) .co-slot { --pw: calc(var(--a) * 7 / 6); --ph: calc(var(--pw) / 1.4583); width: var(--co-pitch); height: var(--co-art); }
    .co-reel:not([data-n="1"]) .co-lane + .co-lane::before {
      left: 0; right: 0; top: -.625px; bottom: auto; width: auto; height: 1.25px;
      background: linear-gradient(90deg, rgba(var(--lilac-rgb), 0) 0%, var(--lilac) 25%, var(--lilac) 75%, rgba(var(--lilac-rgb), 0) 100%);
    }
    .co-reel:not([data-n="1"]) :is(.co-mark, .co-corner) { display: none; }   /* as ase.gg's stacked opening: the lift and caption mark the result */
  }
  @container co (520px <= width < 700px) {
    .co-reel:not([data-n="1"]) { --co-rowh: 132px; --co-art: 88px; --co-pitch: 108px; }
    .co-reel:is([data-n="3"], [data-n="4"]) { --co-rowh: 104px; --co-art: 68px; --co-pitch: 84px; }
  }
}

/* ---------------------------------------------------------------- case.html: the controls (ase.gg's
   case-opening-controls): the packs (1-4, and Add pack) left; Demo snug beside Open with the total in the middle,
   the two one group; the Fast switch right. The side columns never go narrower than what they hold, so nothing
   slides under Open; a page too narrow for one row takes two (or three) below. */
.co-ctl { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 12px; margin-top: 20px; }
.co-qty { justify-self: start; display: flex; align-items: center; gap: 8px; min-width: 0; }
.co-seg {   /* a well cut into the stone, the counts set in it */
  display: flex; gap: 4px; height: 44px; padding: 4px;
  background: linear-gradient(180deg, #151B25 0%, #1A212C 100%); box-shadow: inset 0 2px 0 rgba(5, 8, 12, .5), inset 0 -1px 0 rgba(var(--hi), .34);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
.co-seg__b {
  width: 40px; height: 36px; padding: 0 0 3px; --c: 6px; --n: 2px;
  font-family: "Skranji", sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .5px;
  --rim: transparent; --bt: transparent; --bb: transparent; --face: transparent;
}
.co-seg__b:hover:not(:disabled) { color: var(--chat-name); --face: rgba(var(--hi), .22); }
.co-seg__b[aria-pressed="true"] {
  color: var(--lilac-light); --rim: rgba(var(--lilac-rgb), .75); --bt: rgba(var(--hi), .36); --bb: rgba(var(--lo), .56);
  --face: linear-gradient(rgba(var(--lilac-rgb), .2) 0%, rgba(var(--lilac-rgb), .04) 100%), var(--raised);
  --glow: inset 0 0 14px rgba(var(--lilac-rgb), .22); text-shadow: 0 0 10px rgba(var(--lilac-rgb), .45);
}
.co-seg__b:disabled { filter: none; opacity: .55; }
.co-add { height: 44px; padding: 0 14px 4px 12px; gap: 6px; font-size: 13px; --c: 8px; }
.co-add .ic { width: 16px; height: 16px; }
/* Open, the page's one main action: the site's lit bronze (the nameplate metal of the race steps, keno tags and
   rewards medallions: --bz0..--bz3, lit from the top, a bright top band and a dark bronze foot) with the lettering
   engraved in it (deep brown, lit lower lip), and the total set in a dark recessed well so the coin and the amount
   keep their own gold. Still, never pulsing. While a round runs (disabled) it goes back to the unlit stone gold,
   dimmed: clearly off. */
.co-go { justify-self: center; display: flex; gap: 6px; min-width: 0; }
.co-open {
  flex: 1 1 auto; min-width: 250px; height: 52px; padding: 0 9px 5px 26px; gap: 14px;
  font-size: 18px; letter-spacing: 1.4px; --c: 12px; --n: 5px;
}
.co-open.btn--gold {
  color: #3A2509; text-shadow: 0 1px 0 rgba(253, 228, 196, .6);
  --rim: #4A3312; --bt: rgba(253, 228, 196, .9); --bb: #7A5420;
  --face: radial-gradient(60% 90% at 50% 0%, rgba(255, 244, 228, .42) 0%, rgba(255, 244, 228, 0) 100%),
          linear-gradient(180deg, var(--bz1) 0%, var(--bz2) 50%, var(--bz3) 100%);
  --glow: inset 0 -3px 6px rgba(100, 71, 26, .28);
  filter: drop-shadow(0 6px 14px rgba(var(--gold-rgb), .16));
}
.co-open.btn--gold:hover { filter: brightness(1.07) drop-shadow(0 6px 16px rgba(var(--gold-rgb), .24)); }
.co-open.btn--gold:not(:disabled):active { filter: brightness(.95) drop-shadow(0 3px 8px rgba(var(--gold-rgb), .16)); }
.co-open.btn--gold:focus-visible { outline: 2px solid var(--bz0); outline-offset: 3px; --rim: #4A3312; --glow: inset 0 -3px 6px rgba(100, 71, 26, .28); }
.co-open.btn--gold:disabled {
  color: var(--gold); text-shadow: none; filter: saturate(.45) brightness(.7);
  --rim: #2A2114; --bt: rgba(var(--gold-hi), .36); --bb: rgba(var(--gold-lo), .56); --glow: none;
  --face: linear-gradient(rgba(var(--gold-rgb), .24) 0%, rgba(var(--gold-rgb), 0) 100%), linear-gradient(var(--acc-a) 0%, var(--acc-b) 100%);
}
.co-open__pay {   /* the well: dark, cut in (shadowed top wall, lit lower lip), chamfered like the button */
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 1px 10px; text-shadow: none;
  background: linear-gradient(180deg, #1E1810 0%, #2B2216 100%);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, .45), inset 0 -1px 0 rgba(253, 228, 196, .4);
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}
.co-open__pay img { width: 20px; height: 21px; }
.co-open__pay .num { font-size: 18px; color: var(--bz1); }
.co-open__pay.is-free .num { color: var(--green); }
.co-open__pay .vb-was { font-size: 14px !important; color: rgba(253, 228, 196, .55) !important; }   /* Borrow: the full price struck through */
.co-open__pay.is-borrowed .num:not(.vb-was) { color: var(--lilac-lighter); }
.co-open:disabled .co-open__pay { background: rgba(10, 14, 20, .55); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .35); }
/* Demo: the secondary half of the group, as tall as Open and snug against it; pressed, it lights frost as the
   packs do */
.co-demo { flex: none; height: 52px; padding: 0 18px 5px; }
.co-demo[aria-pressed="true"] {
  color: var(--lilac-light); --rim: rgba(var(--lilac-rgb), .75);
  --face: linear-gradient(rgba(var(--lilac-rgb), .2) 0%, rgba(var(--lilac-rgb), .04) 100%), var(--raised);
  --glow: inset 0 0 14px rgba(var(--lilac-rgb), .22);
}
.co.is-busy .co-ctl .btn { pointer-events: none; }
/* Fast: the battle builder's switch (.ctog, cases.css: the recessed bay, the iron track and its knob, frost when on)
   on one line with the bolt and the word; muted while off, as Demo is. It stays live through a round: the next
   open plays at the new pace. */
.co-fast { justify-self: end; min-height: 44px; gap: 8px; padding: 0 12px 1px 9px; }
.co-fast .ctog__ic { width: 20px; height: 20px; }
.co-fast .ctog__ic .ic { width: 17px; height: 17px; }
.co-fast .ctog__txt { flex: none; }
.co-fast .ctog__txt span { color: var(--muted); }
.co-fast[aria-checked="true"] .ctog__txt span { color: var(--lilac-light); }
.co-fast:hover .ctog__txt span { color: var(--lilac-lighter); }

/* under the controls: what the last open added, and errors (an empty demo wallet gets its refill in the error) */
.co-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 42px; margin-top: 12px; }   /* room for the note: the items never jump */
.co-note { display: block; max-width: 100%; font-family: "Skranji", sans-serif; font-size: 13px; line-height: 18px; letter-spacing: .5px; text-align: center; color: var(--green); }   /* one line of text that wraps as text */
.co-note[hidden] { display: none; }
.co-note img { display: inline-block; width: 16px; height: 17px; margin: 0 3px 0 1px; vertical-align: -3px; }
.co-note .num { font-size: 13px; color: var(--green); }
.co-note.is-demo, .co-note.is-demo .num { color: var(--gold); }
.co-foot .merr { margin-top: 0; text-align: center; }
.co-refill { padding: 0; border: 0; background: none; color: var(--gold); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }   /* as the battle room's inline Refill */
.co-refill:focus-visible { outline: 2px solid var(--lilac-light); outline-offset: 2px; }

/* ---------------------------------------------------------------- case.html: the case's items (ase.gg's
   case-items-grid / case-item-card): 2 / 3 / 4 / 5 / 6 a row by the page's width; a hover lifts a card and washes it
   in its rarity */
.co-items { margin-top: 32px; }
.co-items__t { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: 18px; line-height: 24px; letter-spacing: 1px; color: var(--white); text-transform: uppercase; }
.co-items__t span { font-family: "Skranji", sans-serif; font-size: 13px; letter-spacing: .5px; color: var(--muted); text-transform: none; }
.co-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
@container co (width >= 520px) { .co-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container co (width >= 700px) { .co-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container co (width >= 940px) { .co-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } }
@container co (width >= 1040px) { .co-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.co-icard { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 11px 12px 14px; transition: transform .3s ease-out, filter .3s ease-out; }
/* the card's frame: its own 10px chamfer with the controls' 2px trim (the light tier's 6px / 1px cap read as soft,
   uneven corners at this size); the wash is cut to the same corners */
.co-icard > .plate { --c: 10px; --n: 4px; --cap-c: 10px; --cap-n: 2px; --bt: rgba(var(--hi), .24); --bb: rgba(var(--lo), .56); --face: linear-gradient(180deg, var(--card-b) 0%, var(--card) 100%); }
.co-icard__wash {
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  position: absolute; inset: 1px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s ease-out;
  background: radial-gradient(68% 44% at 50% 38%, rgba(var(--r-rgb), .14) 0%, rgba(var(--r-rgb), 0) 100%);
}
.co-icard__odds { position: relative; font-family: "Skranji", sans-serif; font-weight: 700; font-size: 14px; line-height: 16px; letter-spacing: .4px; color: var(--muted); transition: color .3s ease-out; }
.co-icard .co-art { --a: 76px; margin: 12px auto 4px; }
@container co (width >= 700px) { .co-icard .co-art { --a: 88px; } }
.co-icard .co-plate, .co-icard .co-art__img { transition: transform .3s ease-out, filter .3s ease-out; }
.co-icard__name {
  position: relative; margin-top: 12px; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  font-size: 14px; line-height: 18px; letter-spacing: .8px; color: var(--white); text-transform: uppercase;
}
.co-icard__val { position: relative; display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.co-icard__val img { width: 16px; height: 17px; }
.co-icard__val .num { font-size: 15px; color: var(--gold); }
.co-icard:hover { transform: translateY(-4px); filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .22)); }
.co-icard:hover .co-icard__wash { opacity: 1; }
.co-icard:hover .co-icard__odds { color: var(--r-hi); }
.co-icard:hover .co-plate { transform: scale(1.04); filter: brightness(1.25); }
.co-icard:hover .co-art__img { transform: translateY(-4%) scale(1.04); }
.co-items__note { margin-top: 14px; text-align: center; font-family: "Skranji", sans-serif; font-size: 13px; letter-spacing: .4px; color: var(--muted); opacity: .8; }

/* ---------------------------------------------------------------- case.html: narrow pages */
@container co (width < 860px) {   /* two rows: the packs and Fast, then Demo and Open across the page */
  .co-ctl { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .co-qty { grid-column: 1; grid-row: 1; }
  .co-tools, .co-fast { grid-column: 2; grid-row: 1; }
  .co-go { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .co-open { min-width: 0; }
}
@container co (width < 700px) {
  .co-reel { margin-top: 16px; }
  .co-ctl { margin-top: 16px; }
  .co-items { margin-top: 26px; }
}
@container co (width < 520px) {
  .co-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .co-back { padding: 10px 2px; }
  .co-back span { display: none; }
  .co-title { font-size: 18px; line-height: 24px; gap: 8px; }
  .co-title__art { width: 38px; height: 38px; margin: -6px 0; }
  .co-acts { gap: 6px; }
  .co-act { width: 34px; height: 34px; }
}
@container co (width < 520px) {   /* three rows: the packs, then Demo and Open, then Fast at the right under Open */
  .co-qty { grid-column: 1 / -1; }
  .co-tools, .co-fast { grid-column: 1 / -1; grid-row: 3; }
}
@container co (width < 400px) {   /* the packs fill their row */
  .co-qty { justify-self: stretch; }
  .co-seg { flex: 1; min-width: 0; }
  .co-seg__b { flex: 1 1 0; width: auto; min-width: 0; }
  .co-open { padding: 0 8px 5px 16px; gap: 10px; font-size: 16px; }
  .co-open__pay { padding: 0 9px 1px 8px; gap: 6px; }
  .co-open__pay .num { font-size: 16px; }
  .co-demo { padding: 0 14px 5px; }
}
@container co (width < 340px) {
  .co-add { width: 44px; padding: 0 0 4px; }
  .co-add span { display: none; }
  .co-title__art { display: none; }
}

/* ---------------------------------------------------------------- cases.html: the cards (ase.gg's case-card)
   the case art as the hero over a soft shadow; on hover or focus the case sinks and fades and its top item rises
   in its place on its emblem (case-top-item-reveal: emblem from 55%, item from 40% with a small turn, on an
   overshoot); the name, the risk bar (three tiers, a marker at the case's risk) and the price */
.co-cgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
@container cpage (width >= 540px) { .co-cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; } }
@container cpage (width >= 760px) { .co-cgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; } }
@container cpage (width >= 1560px) { .co-cgrid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.co-case[hidden] { display: none; }
.co-case__a {
  position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%; padding: 14px 6% 14px;
  filter: drop-shadow(0 8px 10px rgba(4, 7, 12, .3)); transition: transform .3s ease-out, filter .3s ease-out;
}
.co-case .plate {
  --c: 14px; --n: 5px; --bt: rgba(var(--hi), .24); --bb: rgba(var(--lo), .56);
  --face: radial-gradient(90% 66% at 50% -5%, rgba(var(--cw-rgb), .22) 0%, rgba(var(--cw-rgb), 0) 100%),
          radial-gradient(195% 142% at 50% -5%, rgba(var(--cw-glow-rgb), .06) 0% 49%, rgba(var(--cw-glow-rgb), 0) 100%),
          linear-gradient(180deg, var(--card-b) 0%, var(--card) 100%);
}
/* the backdrop (ase.gg's palms under a top glow; ours a fjord, build_cases.py CO_RIDGE): a soft glow in the case's
   tint behind the art, the fjord walls and a bank of pines dark against it, fading out at the case's foot; every
   other card mirrored. --px (cases.js, a fine pointer, motion allowed) slides it a few pixels against the tilt. */
.co-case__bg {
  position: absolute; left: 1px; right: 1px; top: 1px; aspect-ratio: 240 / 150; pointer-events: none; overflow: hidden;
  background: radial-gradient(56% 50% at 50% 50%, rgba(var(--cw-rgb), .17) 0%, rgba(var(--cw-rgb), .05) 60%, rgba(var(--cw-rgb), 0) 100%);
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%, 0 5px);
  -webkit-mask-image: linear-gradient(#000 52%, transparent 97%); mask-image: linear-gradient(#000 52%, transparent 97%);
}
.co-case__ridge {
  position: absolute; left: -4%; top: 0; width: 108%; height: 100%; display: block;
  translate: calc(var(--px, 0) * -6px) 0; transition: translate .4s ease-out;
}
.co-case:nth-child(even) .co-case__ridge { transform: scaleX(-1); }
.co-case__far { fill: #0C1118; opacity: .3; }
.co-case__near { fill: #090D13; opacity: .52; }
.co-case__art { position: relative; width: 82%; margin: 0 auto; aspect-ratio: 1; container-type: inline-size; }
.co-case__shadow {
  position: absolute; left: 2%; right: 2%; top: 64%; height: 30%; pointer-events: none; transition: opacity .3s ease-out;
  background: radial-gradient(closest-side, rgba(4, 7, 12, .6) 0%, rgba(4, 7, 12, .25) 55%, rgba(4, 7, 12, 0) 100%);
}
.co-case__img {
  position: relative; display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 70%;
  transition: translate .3s cubic-bezier(.22, 1, .36, 1) 80ms, scale .3s cubic-bezier(.22, 1, .36, 1) 80ms, opacity .2s ease-out 80ms;
}
.co-case__top { position: absolute; inset: 0; pointer-events: none; }
.co-case__top .co-art { --a: 80cqi; position: absolute; left: 50%; top: 50%; margin: calc(var(--a) / -2) 0 0 calc(var(--a) / -2); }
.co-case__top .co-plate, .co-case__top .co-bloom { scale: .55; opacity: 0; transition: scale .18s ease-out, opacity .18s ease-out; }
.co-case__top .co-plate { opacity: 0; }
.co-case__top .co-art__img {
  translate: 0 18%; scale: .4; rotate: -14deg; opacity: 0;
  transition: translate .22s ease-in, scale .22s ease-in, rotate .22s ease-in, opacity .16s ease-in;
}
.co-case__name {
  margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
  font-size: 18px; line-height: 24px; letter-spacing: 1px; color: var(--white); text-transform: uppercase;
}
.co-risk { position: relative; display: flex; gap: 10px; align-items: center; height: 8px; margin: 12px 4% 0; }
.co-risk__seg { flex: 1; height: 2px; background: rgba(var(--lilac-rgb), .16); }
.co-risk--low .co-risk__seg:nth-child(1) { background: var(--green); }
.co-risk--medium .co-risk__seg:nth-child(2) { background: var(--lilac); }
.co-risk--high .co-risk__seg:nth-child(3) { background: var(--salmon); }
.co-risk__mark { position: absolute; top: 0; left: calc(var(--risk) * (100% - 2px)); width: 2px; height: 8px; background: var(--white); box-shadow: 0 0 0 2px rgba(17, 23, 31, .55); }
.co-case__price {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; margin: 12px 4% 0; padding-bottom: 2px;
  background: linear-gradient(180deg, #171D27, #1B232F); box-shadow: inset 0 2px 0 rgba(5, 8, 12, .55), inset 0 -1px 0 rgba(var(--hi), .4);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: box-shadow .3s ease-out;
}
.co-case__price img { width: 16px; height: 17px; }
.co-case__price .num { font-size: 16px; color: var(--gold); }
.co-case__a:hover, .co-case__a:focus-visible { transform: translateY(-6px) scale(1.03); filter: drop-shadow(0 12px 14px rgba(4, 7, 12, .36)); outline: none; }
/* with a fine pointer the art leans toward it, at most ~3 degrees (--tx / --ty from cases.js); only the art, so the
   card's lettering stays flat and sharp */
.co-case__art { transition: transform .3s ease-out; }
.co-case__a.is-lean .co-case__art { transform: perspective(700px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); }
.co-case__a:active { transform: translateY(-4px) scale(1.01); }
.co-case__a:focus-visible .plate { --rim: var(--lilac); }
.co-case__a:hover .co-case__price, .co-case__a:focus-visible .co-case__price {
  box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .55), inset 0 0 16px rgba(var(--gold-rgb), .16);
}
@media (hover: hover) {
  .co-case__a:hover .co-case__img { translate: 0 8%; scale: .7; opacity: 0; transition: translate .36s cubic-bezier(.22, 1, .36, 1), scale .36s cubic-bezier(.22, 1, .36, 1), opacity .24s ease-out 60ms; }
  .co-case__a:hover .co-case__shadow { opacity: .35; }
  .co-case__a:hover .co-case__top .co-plate { scale: 1; opacity: var(--po, .3); transition: scale .46s cubic-bezier(.22, 1, .36, 1) .12s, opacity .46s cubic-bezier(.22, 1, .36, 1) .12s; }
  .co-case__a:hover .co-case__top .co-bloom { scale: 1; opacity: 1; transition: scale .46s cubic-bezier(.22, 1, .36, 1) .12s, opacity .46s cubic-bezier(.22, 1, .36, 1) .12s; }
  .co-case__a:hover .co-case__top .co-art__img {
    translate: 0 0; scale: .84; rotate: 0deg; opacity: 1;
    transition: translate .56s cubic-bezier(.34, 1.56, .64, 1) 60ms, scale .56s cubic-bezier(.34, 1.56, .64, 1) 60ms, rotate .56s cubic-bezier(.34, 1.56, .64, 1) 60ms, opacity .2s ease-out 60ms;
  }
}
.co-case__a:focus-visible .co-case__img { translate: 0 8%; scale: .7; opacity: 0; }
.co-case__a:focus-visible .co-case__shadow { opacity: .35; }
.co-case__a:focus-visible .co-case__top .co-plate { scale: 1; opacity: var(--po, .3); }
.co-case__a:focus-visible .co-case__top .co-bloom { scale: 1; opacity: 1; }
.co-case__a:focus-visible .co-case__top .co-art__img { translate: 0 0; scale: .84; rotate: 0deg; opacity: 1; }
@container cpage (width < 540px) {
  .co-case__a { padding: 10px 6% 10px; }
  .co-case__art { width: 90%; }
  .co-case__name { font-size: 15px; line-height: 20px; margin-top: 6px; }
  .co-risk { margin-top: 9px; gap: 6px; }
  .co-case__price { height: 34px; margin-top: 9px; }
  .co-case__price .num { font-size: 15px; }
}

/* the big-drops ribbon on the list: each drop's art on its emblem, no box */
.drop__art .co-art { --a: 52px; }

/* ---------------------------------------------------------------- reduced motion: no moves, only short fades */
@media (prefers-reduced-motion: reduce) {
  .co-reel, .co-back .ic, .co-icard, .co-icard .co-plate, .co-icard .co-art__img, .co-case__a, .co-case__ridge, .co-case__art { transition: none; }
  .co-case__ridge { translate: none; }
  .co-case__a.is-lean .co-case__art { transform: none; }
  .co-icard:hover, .co-case__a:hover, .co-case__a:focus-visible, .co-case__a:active { transform: none; }
  .co-icard:hover .co-plate, .co-icard:hover .co-art__img { transform: none; }
  .co-case__img, .co-case__top .co-plate, .co-case__top .co-bloom, .co-case__top .co-art__img {
    translate: none !important; scale: none !important; rotate: none !important; transition: opacity .16s ease-out !important;
  }
}

/* ---------------------------------------------------------------- Borrow (the kit's K.borrowUI): a small chip left
   of the Fast switch (case.html, in .co-tools) and left of the battle builder's Fast chip. The chip sits in the Fast
   switch's recessed bay (.ctog::before): the percent glyph, "Borrow" and the percent in a small cut-in well (frost
   once it is on). It opens a small card under it: "Borrow" with a number field, the upgrader's groove (frost up to a
   bronze stud), the ends, "You pay X coins · drops pay 63%" and the fine print. The card fades and settles 4px; no
   glow, no pulse. */
.co-tools { justify-self: end; display: flex; align-items: center; gap: 8px; min-width: 0; }
.vborrow { position: relative; flex: none; }
.vborrow__chip {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 9px 1px 9px; border: 0;
  background: none; color: var(--muted); cursor: pointer; font: inherit; white-space: nowrap;
}
/* the bay built like .plate (styles.css) and .ctog (cases.css): ::before the rim octagon (--wr), ::after the face
   inset by the rim width (--ww) with its cut pulled in by ww * 0.4142, so the rim runs on along every chamfer */
.vborrow__chip { --wr: var(--rim-iron); --ww: 1px; }
.vborrow__chip::before, .vborrow__chip::after { content: ""; position: absolute; pointer-events: none; }
.vborrow__chip::before {
  inset: 0; z-index: -2; background: linear-gradient(var(--wr) 0 0), linear-gradient(180deg, #19202B, #1D2531);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.vborrow__chip::after {
  --wc: calc(6px - var(--ww) * 0.4142);
  inset: var(--ww); z-index: -1; background: linear-gradient(180deg, #19202B, #1D2531);
  box-shadow: inset 0 1px 0 rgba(5, 8, 12, .5), inset 0 -1px 0 rgba(var(--hi), .34);
  clip-path: polygon(var(--wc) 0, calc(100% - var(--wc)) 0, 100% var(--wc), 100% calc(100% - var(--wc)),
                     calc(100% - var(--wc)) 100%, var(--wc) 100%, 0 calc(100% - var(--wc)), 0 var(--wc));
}
.vborrow__ic { width: 20px; height: 20px; flex: none; display: grid; place-items: center; color: var(--muted); }
.vborrow__ic .ic { width: 16px; height: 16px; }
.vborrow__lbl { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.vborrow__pct {
  --sr: var(--rim-iron); --sf: var(--track); --ss: inset 0 1px 0 rgba(0, 0, 0, .35);
  position: relative; isolation: isolate;
  display: inline-grid; place-items: center; min-width: 38px; height: 24px; padding: 0 6px 1px; font-weight: 400; font-size: 14px; letter-spacing: .3px; color: var(--muted);
}
.vborrow__pct::before, .vborrow__pct::after { content: ""; position: absolute; pointer-events: none; }
.vborrow__pct::before {   /* the well's rim octagon (cut 5px), the face 1px in with its cut pulled in to match */
  inset: 0; z-index: -2; background: var(--sr);
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
}
.vborrow__pct::after {
  inset: 1px; z-index: -1; background: var(--sf); box-shadow: var(--ss);
  clip-path: polygon(4.586px 0, calc(100% - 4.586px) 0, 100% 4.586px, 100% calc(100% - 4.586px), calc(100% - 4.586px) 100%, 4.586px 100%, 0 calc(100% - 4.586px), 0 4.586px);
}
.vborrow__chev { width: 14px; height: 14px; margin-left: -2px; color: var(--muted); transition: transform .2s ease-out; }
.vborrow__chip:hover .vborrow__lbl { color: var(--lilac-lighter); }
.vborrow__chip:focus-visible { outline: none; }
.vborrow__chip:focus-visible { --wr: var(--lilac); --ww: 2px; }
.vborrow.is-on .vborrow__ic, .vborrow.is-on .vborrow__chev { color: var(--lilac); }
.vborrow.is-on .vborrow__lbl { color: var(--lilac-light); }
.vborrow.is-on .vborrow__pct { color: var(--lilac-lighter); --sr: rgba(var(--lilac-rgb), .6); --sf: linear-gradient(rgba(var(--lilac-rgb), .3) 0 0), #1B222E; --ss: none; }
.vborrow.is-on .vborrow__chip,
.vborrow.is-open .vborrow__chip { --wr: rgba(var(--lilac-rgb), .55); --ww: 1px; }
.vborrow.is-open .vborrow__chev { transform: rotate(180deg); }
.vborrow.is-off .vborrow__chip { cursor: default; opacity: .6; }

/* the card: the case page's dark field plate, chamfered, lifted off the page with a soft shadow */
.vborrow__pop {
  --dx: 0px;
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 264px; display: grid; gap: 6px; padding: 11px 13px 12px;
  background: linear-gradient(180deg, #1C2430, #19202A); filter: drop-shadow(0 10px 18px rgba(4, 7, 12, .5));
  box-shadow: inset 0 0 0 1px var(--rim-iron), inset 0 1px 0 rgba(var(--hi), .3);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  opacity: 0; visibility: hidden; transform: translate(var(--dx), -4px);
  transition: opacity .18s ease-out, transform .22s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .22s;
}
.vborrow.is-open .vborrow__pop { opacity: 1; visibility: visible; transform: translate(var(--dx), 0); transition: opacity .18s ease-out, transform .22s cubic-bezier(.22, 1, .36, 1), visibility 0s; }
.co-tools .vborrow__pop { left: auto; right: 0; }   /* the case page: the chip stands at the right, the card opens leftwards */
.vborrow__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vborrow__name { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--lilac-light); cursor: pointer; }
.vborrow__field {
  position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 9px 0 4px;
  background: var(--track); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .35), inset 0 0 0 1px var(--rim-iron);
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
}
.vborrow__field:focus-within { box-shadow: inset 0 2px 0 rgba(0, 0, 0, .35), inset 0 0 0 1px var(--lilac); }
.vborrow__num {
  width: 34px; height: 28px; padding: 0 2px; border: 0; background: none; color: var(--lilac-lighter); font-size: 15px; text-align: right;
  -moz-appearance: textfield; appearance: textfield;
}
.vborrow__num::-webkit-outer-spin-button, .vborrow__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vborrow__num:focus { outline: none; }
.vborrow__field i { font-style: normal; font-size: 14px; color: var(--muted); }
.vborrow__range {
  --p: 0%;
  display: block; width: 100%; height: 22px; margin: 0; padding: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.vborrow__range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #61B9DE 0, var(--lilac) var(--p), #10151D var(--p), #10151D 100%);
  box-shadow: inset 0 2px 0 rgba(5, 8, 12, .5), 0 1px 0 rgba(var(--hi), .55);
}
.vborrow__range::-moz-range-track { height: 6px; border-radius: 3px; background: #10151D; box-shadow: inset 0 2px 0 rgba(5, 8, 12, .5), 0 1px 0 rgba(var(--hi), .55); }
.vborrow__range::-moz-range-progress { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #61B9DE, var(--lilac)); }
.vborrow__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%;
  background: #EAB771; border: 2px solid #64471A; box-shadow: inset 0 2px 0 #F4CD9A, inset 0 -2px 0 #C6944C, 0 2px 0 rgba(4, 7, 12, .45);
}
.vborrow__range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: #EAB771; border: 2px solid #64471A;
  box-shadow: inset 0 2px 0 #F4CD9A, inset 0 -2px 0 #C6944C, 0 2px 0 rgba(4, 7, 12, .45);
}
.vborrow__range:focus-visible { outline: none; }
.vborrow__range:focus-visible::-webkit-slider-thumb { box-shadow: inset 0 2px 0 #F4CD9A, inset 0 -2px 0 #C6944C, 0 0 0 3px rgba(var(--lilac-rgb), .6); }
.vborrow__range:focus-visible::-moz-range-thumb { box-shadow: inset 0 2px 0 #F4CD9A, inset 0 -2px 0 #C6944C, 0 0 0 3px rgba(var(--lilac-rgb), .6); }
.vborrow__range:disabled { cursor: default; filter: saturate(.4) brightness(.75); }
.vborrow__ends { display: flex; justify-content: space-between; margin-top: -4px; font-family: "Skranji", sans-serif; font-size: 11px; letter-spacing: .4px; color: var(--muted); opacity: .75; }
.vborrow.is-capped .vborrow__cap { color: var(--gold); opacity: 1; }
.vborrow__txt > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.vborrow__txt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; margin: 2px 0 0; font-family: "Skranji", sans-serif; font-size: 13px; line-height: 18px; letter-spacing: .3px; color: var(--muted); }
.vborrow__txt img { width: 16px; height: 17px; margin-right: -2px; }
.vborrow__txt .num { font-size: 14px; color: var(--gold); }
.vborrow.is-on .vborrow__txt > span:last-child .num { color: var(--lilac-light); }
.vborrow__dot { color: var(--gray-link); }
.vborrow__fine { margin: 0; font-family: "Skranji", sans-serif; font-size: 11px; line-height: 15px; letter-spacing: .3px; color: var(--muted); opacity: .75; }
@media (prefers-reduced-motion: reduce) {
  .vborrow__pop, .vborrow.is-open .vborrow__pop { transform: translate(var(--dx), 0); transition: opacity .12s linear, visibility 0s linear .12s; }
  .vborrow.is-open .vborrow__pop { transition: opacity .12s linear, visibility 0s; }
  .vborrow__chev { transition: none; }
}

/* a value paid at the borrow: the full value struck through and muted, what it pays now beside it in frost */
.vb-was { position: relative; color: var(--muted) !important; font-size: .86em !important; opacity: .8; text-decoration: line-through; text-decoration-color: rgba(var(--hi), .7); text-decoration-thickness: 1.5px; }
.co-icard__val.is-borrowed .num:not(.vb-was) { color: var(--lilac-light); }
