/* The LOOT picker (DoubloonWeb.LootSheet + the /shows fund sheet,
   ShowsWall.fund_sheet): the one way to buy LOOT, on every page. Moved out
   of shows_j.css so any page can load it: the J palette and type are set on
   .sjf itself, so the sheet looks the same over /shows, the site pages,
   /profile and /x. */

.sjf{
  --j-bg: #07070f;
  --j-bg-rgb: 7, 7, 15;
  --j-surface: #0f0f1e;
  --j-surface-2: #17172c;
  --j-line: rgba(242, 237, 228, 0.13);
  --j-line-2: rgba(242, 237, 228, 0.26);
  --j-text: #f2ede4;
  --j-text-rgb: 242, 237, 228;
  --j-gold: #f5c518;
  --j-gold-bright: #f8d44f;
  --j-on-gold: #1a1300;
  --j-green: #21e458;
  --j-green-rgb: 33, 228, 88;
  --j-red: #ff5a4f;
  --j-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --j-font: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--j-text);
  font-family: var(--j-font);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}
.sjf :where(*, *::before, *::after){ box-sizing: border-box; }
.sjf :where(h1, h2, p, ul){ margin: 0; padding: 0; }
.sjf :where(button, input){ font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; }
.sjf :where(button){ background: none; border: 0; padding: 0; cursor: pointer; }
.sjf :where(a){ color: inherit; text-decoration: none; }
.sjf :where(img){ display: block; max-width: none; }
.sjf :where(svg){ display: block; flex: none; }
.sjf[x-cloak], .sjf [x-cloak]{ display: none !important; }
.sjf :focus-visible{ outline: 3px solid var(--j-text); outline-offset: 3px; }

/* ── The fund sheet (ShowsWall.fund_sheet) ──────────────────────────────
   Produce this opens it, in the Now playing look: the sheet takes the
   show's colour from a blurred copy of its art; the art sits as a card,
   the LOOT going in rides on glass across its foot with the place it
   earns; /x's bar under it previews the fill. One scrubber below: over
   the balance when spending, snapping from pack to pack when buying (the
   end of its gold run turns green for the pack's bonus). Phones: a bottom
   sheet. 768+: a centred card. */
html.sjf-lock{ overflow: hidden; }

.sjf{ --j-gold-rgb: 245, 197, 24; font-weight: 400; }
.sjf .sjf-scrim{ position: fixed; inset: 0; z-index: 9998; background: rgba(3, 3, 8, 0.74); animation: sjf-fade 0.24s ease-out; }
.sjf .sjf-defs{ position: absolute; }
.sjf .sjf-panel{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  max-height: calc(100svh - 16px); overflow-y: auto; overscroll-behavior: contain;
  padding: 52px 24px calc(10px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0; background: #0b0b16;
  box-shadow: 0 -1px 0 rgba(var(--j-text-rgb), 0.14), 0 -30px 80px rgba(0, 0, 0, 0.6);
  animation: sjf-up 0.36s var(--j-ease);
}
@keyframes sjf-fade { from { opacity: 0; } }
@keyframes sjf-up { from { transform: translateY(40px); opacity: 0; } }
.sjf .sjf-panel > :not(.sjf-ambient){ position: relative; z-index: 1; }
.sjf .sjf-ambient{ position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sjf .sjf-ambient::before{ content: ''; position: absolute; inset: -80px; background: var(--art, none) center / cover no-repeat; filter: blur(70px) saturate(1.5) brightness(0.72); }
.sjf .sjf-ambient::after{ content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--j-bg-rgb), 0.05), rgba(var(--j-bg-rgb), 0.45) 55%, rgba(var(--j-bg-rgb), 0.72)); }
.sjf .sjf-grab{ position: absolute !important; left: 50%; top: 7px; width: 36px; height: 4px; margin-left: -18px; border-radius: 999px; background: rgba(var(--j-text-rgb), 0.3); }
.sjf .sjf-close{
  position: absolute !important; top: 8px; right: 8px; z-index: 3 !important;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(var(--j-bg-rgb), 0.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.sjf .sjf-close svg{ width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* the head: Produce <show>, and "?" for what LOOT is */
.sjf .sjf-panel{ padding-top: 16px; }
.sjf .sjf-panel .sjf-close{ top: 16px; right: 16px; }
.sjf .sjf-head{ display: flex; align-items: center; gap: 4px; min-height: 36px; margin-bottom: 14px; padding-right: 40px; }
.sjf .sjf-h{ min-width: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sjf .sjf-help{ flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.sjf .sjf-help > span{ display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(var(--j-text-rgb), 0.6); font-size: 14px; font-weight: 600; line-height: 1; }
.sjf .sjf-help[aria-expanded='true'] > span{ background: var(--j-text); color: var(--j-surface); }
/* the "?" tour: a dim layer with a spotlight hole, one line per step */
.sjf .sjf-tour{ position: absolute !important; inset: 0; z-index: 10 !important; }
.sjf .sjf-tour-hole{ position: absolute; box-shadow: 0 0 0 9999px rgba(3, 3, 8, 0.72), inset 0 0 0 1.5px rgba(var(--j-gold-rgb), 0.85), 0 0 24px rgba(var(--j-gold-rgb), 0.35); transition: top 0.3s var(--j-ease), left 0.3s var(--j-ease), width 0.3s var(--j-ease), height 0.3s var(--j-ease); pointer-events: none; }
.sjf .sjf-tour-card{
  position: absolute; left: 16px; right: 16px; padding: 14px 14px 12px 16px; border-radius: 16px;
  background: rgba(15, 15, 30, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 0.5px rgba(var(--j-text-rgb), 0.25), 0 16px 40px rgba(0, 0, 0, 0.55);
  transition: top 0.3s var(--j-ease);
}
.sjf .sjf-tour-text{ display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.35; }
.sjf .sjf-tour-mark{ flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(var(--j-gold-rgb), 0.16); }
.sjf .sjf-tour-mark .sjf-mark{ width: 12px; height: 15px; }
.sjf .sjf-tour-row{ display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.sjf .sjf-tour-dots{ display: flex; gap: 5px; margin-right: auto; }
.sjf .sjf-tour-dots i{ width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--j-text-rgb), 0.3); transition: background 0.2s, width 0.2s; }
.sjf .sjf-tour-dots i.is-on{ width: 16px; border-radius: 3px; background: var(--j-gold); }
.sjf .sjf-tour-skip{ min-height: 36px; padding: 0 8px; font-size: 15px; color: rgba(var(--j-text-rgb), 0.75); }
.sjf .sjf-tour-next{ min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--j-gold); color: var(--j-on-gold); font-size: 15px; font-weight: 600; }


/* the art, and what's going in */
.sjf .sjf-cover{ aspect-ratio: 16 / 9; border-radius: 16px; background: var(--j-surface-2); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.85), 0 0 0 0.5px rgba(var(--j-text-rgb), 0.2); }
.sjf .sjf-cover img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.sjf .sjf-glass{
  position: absolute; left: 50%; bottom: 0; z-index: 2; transform: translate(-50%, 50%);
  --gap: 8px; display: inline-flex; align-items: center; gap: var(--gap); width: max-content; height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(var(--j-bg-rgb), 0.48);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 0.5px rgba(var(--j-text-rgb), 0.28), 0 8px 24px rgba(0, 0, 0, 0.35);
  color: var(--j-gold); white-space: nowrap;
}
.sjf .sjf-glass .sjf-mark{ width: 11px; height: 14px; fill: var(--j-gold); }
.sjf .sjf-glass b{ font-size: 21px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sjf .sjf-check{ width: 18px; height: 18px; fill: none; stroke: var(--j-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sjf .sjf-badge{ display: inline-flex; align-items: center; gap: 3px; height: 28px; margin-right: -8px; padding: 0 9px 0 8px; border-radius: 999px; background: rgba(var(--j-green-rgb), 0.16); color: var(--j-green); font-size: 14px; font-weight: 600; }
/* buying: the pack's bonus, part of the total (not on top of it), as a
   second compartment of the capsule, with "Includes Bonus" in a pill on the
   capsule's top edge, over the bonus. It folds in and out with the pack: the
   grid's one column eases 0fr <-> 1fr, so the capsule resizes with it, and
   its margin cancels the gap folded; the pill fades and settles with it.
   The pill and the number share one cell, so the compartment is as wide as
   the wider of them: the pill stays centred over the bonus, inside the
   capsule's end. Only the sides clip while it folds (the pill rides above). */
.sjf .sjf-inc{ --div: 12px; display: inline-grid; grid-template-columns: 0fr; align-self: stretch; margin-left: calc(-1 * var(--gap)); opacity: 0; transition: grid-template-columns 0.34s cubic-bezier(0.3, 0.7, 0.2, 1), margin 0.34s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.22s ease; }
.sjf .sjf-inc.is-on{ grid-template-columns: 1fr; margin-left: 4px; opacity: 1; }
.sjf .sjf-inc-clip{ min-width: 0; overflow-x: clip; }
.sjf .sjf-inc-body{ position: relative; display: grid; place-items: center; width: max-content; height: 100%; padding-left: var(--div); }
.sjf .sjf-inc-body > *{ grid-area: 1 / 1; }
.sjf .sjf-inc-body::before{ content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 22px; transform: translateY(-50%); background: rgba(var(--j-text-rgb), 0.22); }
.sjf .sjf-inc-num{ display: inline-flex; align-items: center; gap: 4px; color: var(--j-green); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1); }
.sjf .sjf-inc-num.is-pop{ transform: scale(1.1); }
.sjf .sjf-inc-unit{ margin-left: 1px; font-size: 0.62em; font-weight: 700; letter-spacing: 0.02em; }
.sjf .sjf-glass .sjf-inc .sjf-mark, .sjf .sjf-cover.is-bare .sjf-glass .sjf-inc .sjf-mark{ width: 10px; height: 13px; fill: currentColor; }
.sjf .sjf-inc-pill{ align-self: start; z-index: 1; display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; background: #0f2818; box-shadow: inset 0 0 0 0.5px rgba(var(--j-green-rgb), 0.5), 0 4px 14px rgba(0, 0, 0, 0.35); color: var(--j-green); font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; transform: translateY(-50%); transition: transform 0.34s cubic-bezier(0.3, 0.7, 0.2, 1); }
.sjf .sjf-inc:not(.is-on) .sjf-inc-pill{ transform: translateY(-25%) scale(0.9); }
.sjf .sjf-glass{ transition: transform 0.34s cubic-bezier(0.3, 0.7, 0.2, 1); }
.sjf .sjf-cup{ width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sjf .sjf-mark{ width: 12px; height: 15px; fill: var(--j-gold); }
/* /x's bar, a touch thicker */
.sjf .sjf-fund{ height: 8px; margin-top: 38px; border-radius: 4px; background: rgba(var(--j-text-rgb), 0.12); overflow: hidden; }
.sjf .sjf-fund i, .sjf .sjf-fund u{ position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; }
.sjf .sjf-fund i{ width: var(--p); background: linear-gradient(90deg, #14a83e, var(--j-green)); box-shadow: 0 0 12px rgba(var(--j-green-rgb), 0.55); }
.sjf .sjf-fund u{ width: var(--q); background: repeating-linear-gradient(-55deg, rgba(94, 239, 134, 0.85) 0 5px, rgba(94, 239, 134, 0.38) 5px 10px); transition: width 0.15s linear; }
/* tipping: full, in the yellow of the show page's tip bar */
.sjf .sjf-fund.is-tip i{ background: linear-gradient(90deg, #c9a447, var(--j-gold)); box-shadow: 0 0 12px rgba(var(--j-gold-rgb), 0.45); }

/* the scrubber: thickens under the thumb */
.sjf .sjf-slider{ position: relative; height: 44px; margin-top: 18px; }
.sjf .sjf-track{ position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 5px; background: rgba(var(--j-text-rgb), 0.16); overflow: hidden; transition: height 0.15s var(--j-ease), margin 0.15s var(--j-ease); }
.sjf .sjf-track-fill{ position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); background: linear-gradient(90deg, rgba(var(--j-gold-rgb), 0.5), var(--j-gold)); }
/* buying: the end of the gold run is the pack's bonus, in green */
.sjf .sjf-slider.is-packs .sjf-track-fill{ background: linear-gradient(90deg, rgba(var(--j-gold-rgb), 0.5), var(--j-gold) calc((1 - var(--g)) * 100%), var(--j-green) calc((1 - var(--g)) * 100%)); transition: width 0.18s var(--j-ease); }
.sjf .sjf-stop{ position: absolute; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: rgba(var(--j-text-rgb), 0.45); pointer-events: none; }
.sjf .sjf-thumb{ position: absolute; top: 50%; left: var(--v); width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--j-text); box-shadow: 0 0 0 6px rgba(var(--j-gold-rgb), 0.14), 0 4px 14px rgba(0, 0, 0, 0.5); pointer-events: none; transition: width 0.15s var(--j-ease), height 0.15s var(--j-ease), margin 0.15s var(--j-ease), box-shadow 0.15s var(--j-ease); }
.sjf .sjf-slider.is-packs .sjf-thumb{ transition: left 0.18s var(--j-ease), width 0.15s var(--j-ease), height 0.15s var(--j-ease), margin 0.15s var(--j-ease); }
.sjf .sjf-slider:has(.sjf-range:active) .sjf-track{ height: 10px; margin-top: -5px; }
.sjf .sjf-slider:has(.sjf-range:active) .sjf-thumb{ width: 30px; height: 30px; margin: -15px 0 0 -15px; box-shadow: 0 0 0 10px rgba(var(--j-gold-rgb), 0.16), 0 4px 14px rgba(0, 0, 0, 0.5); }
/* the nudge to slide, until the slider is touched */
.sjf .sjf-chev{ position: absolute; left: var(--v); top: 50%; display: none; gap: 3px; margin: -6px 0 0 24px; pointer-events: none; }
.sjf .sjf-chev i{ width: 7px; height: 7px; border-top: 2px solid var(--j-gold); border-right: 2px solid var(--j-gold); transform: rotate(45deg); opacity: 0.2; animation: sjf-chev 1.4s ease-in-out infinite; }
.sjf .sjf-chev i:nth-child(2){ animation-delay: 0.15s; }
.sjf .sjf-chev i:nth-child(3){ animation-delay: 0.3s; }
.sjf .sjf-slider.is-hint .sjf-chev{ display: flex; }
.sjf .sjf-slider.is-hint .sjf-thumb{ animation: sjf-nudge 2.4s var(--j-ease) 0.6s infinite; }
@keyframes sjf-chev { 0%, 100% { opacity: 0.2; } 40% { opacity: 1; } }
@keyframes sjf-nudge {
  0%, 60%, 100% { transform: translateX(0); box-shadow: 0 0 0 6px rgba(var(--j-gold-rgb), 0.14), 0 4px 14px rgba(0, 0, 0, 0.5); }
  20% { transform: translateX(14px); box-shadow: 0 0 0 12px rgba(var(--j-gold-rgb), 0.22), 0 4px 14px rgba(0, 0, 0, 0.5); }
  35% { transform: translateX(0); }
}
.sjf .sjf-tick{ position: absolute; left: var(--t); top: -2px; transform: translateX(-50%); color: var(--j-green); pointer-events: none; }
.sjf .sjf-tick .sjf-cup{ width: 14px; height: 14px; }
.sjf .sjf-range{ position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sjf .sjf-slider:has(.sjf-range:focus-visible) .sjf-thumb{ outline: 3px solid var(--j-text); outline-offset: 3px; }

.sjf .sjf-name{ display: block; width: 100%; height: 48px; margin-top: 10px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(var(--j-bg-rgb), 0.4); box-shadow: inset 0 0 0 0.5px rgba(var(--j-text-rgb), 0.3); color: var(--j-text); font: inherit; font-size: 16px; }
.sjf .sjf-name::placeholder{ color: rgba(var(--j-text-rgb), 0.6); }
.sjf .sjf-name:focus{ outline: none; box-shadow: inset 0 0 0 1.5px var(--j-gold); }
.sjf .sjf-err{ margin-top: 10px; color: var(--j-red); font-size: 15px; text-align: center; }
.sjf .sjf-form{ margin: 0; }
.sjf .sjf-cta{
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 14px;
  border-radius: 999px; background: var(--j-gold); color: var(--j-on-gold); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums;
  box-shadow: 0 10px 30px -14px rgba(var(--j-gold-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.sjf .sjf-cta{ color: var(--j-on-gold); }
.sjf .sjf-cta:hover{ background: var(--j-gold-bright); }
.sjf .sjf-cta:disabled{ opacity: 0.5; cursor: default; }

/* the foot: the balance counting down (+ opens into Get More LOOT at
   zero), or Stripe and a way back to spending */
.sjf .sjf-foot{ display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; margin-top: 6px; }
.sjf .sjf-foot-bal, .sjf .sjf-trust{ display: inline-flex; align-items: center; gap: 5px; color: rgba(var(--j-text-rgb), 0.75); font-size: 15px; font-variant-numeric: tabular-nums; }
.sjf .sjf-foot-bal .sjf-mark{ width: 10px; height: 13px; }
.sjf .sjf-trust svg{ width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sjf .sjf-plus{
  display: inline-flex; align-items: center; height: 28px; max-width: 28px; padding: 0; border-radius: 999px; overflow: hidden;
  color: var(--j-gold); box-shadow: inset 0 0 0 1px rgba(var(--j-gold-rgb), 0.55);
  transition: max-width 0.35s var(--j-ease), background 0.2s ease, color 0.2s ease;
}
.sjf .sjf-plus-i{ flex: none; width: 28px; text-align: center; font-size: 16px; line-height: 1; }
.sjf .sjf-plus-t{ padding-right: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 0.2s ease; }
.sjf .sjf-plus.is-out{ max-width: 200px; background: var(--j-gold); color: var(--j-on-gold); box-shadow: 0 6px 18px -8px rgba(var(--j-gold-rgb), 0.8); }
.sjf .sjf-plus.is-out .sjf-plus-i{ width: 24px; padding-left: 4px; }
.sjf .sjf-plus.is-out .sjf-plus-t{ opacity: 1; }
.sjf .sjf-more{ color: var(--j-gold); font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--j-gold-rgb), 0.45); }

/* buying signed out: back to the packs, and the account fields */
.sjf .sjf-back{ flex: none; width: 36px; height: 36px; margin-left: -8px; display: grid; place-items: center; border-radius: 50%; }
.sjf .sjf-back svg{ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sjf .sjf-account{ margin-top: 12px; }
.sjf .sjf-account .sjf-name{ margin-top: 8px; }

/* the Every show switch: the pack and the membership in one checkout */
.sjf .sjf-member{ display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px; border-radius: 16px; background: rgba(var(--j-bg-rgb), 0.4); box-shadow: inset 0 0 0 0.5px rgba(var(--j-text-rgb), 0.22); cursor: pointer; transition: box-shadow 0.2s ease, background 0.2s ease; }
.sjf .sjf-member.is-on{ background: rgba(var(--j-gold-rgb), 0.08); box-shadow: inset 0 0 0 1.5px rgba(var(--j-gold-rgb), 0.9); }
.sjf .sjf-member-box{ position: absolute; width: 1px; height: 1px; opacity: 0; }
.sjf .sjf-member:has(.sjf-member-box:focus-visible){ outline: 3px solid var(--j-text); outline-offset: 3px; }
.sjf .sjf-member-i{ flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(var(--j-gold-rgb), 0.16); }
.sjf .sjf-tv{ width: 20px; height: 20px; fill: none; stroke: var(--j-gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sjf .sjf-tv .sjf-tv-play{ fill: var(--j-gold); stroke: none; }
.sjf .sjf-member-t{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sjf .sjf-member-t b{ display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.sjf .sjf-member-t small{ font-size: 14px; color: rgba(var(--j-text-rgb), 0.7); font-variant-numeric: tabular-nums; }
.sjf .sjf-member-wk{ display: inline-flex; align-items: center; gap: 3px; color: var(--j-gold); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sjf .sjf-member-wk .sjf-mark{ width: 9px; height: 12px; }
.sjf .sjf-member-plus{ color: rgba(var(--j-text-rgb), 0.5); font-weight: 500; }
.sjf .sjf-switch{ flex: none; position: relative; width: 51px; height: 31px; border-radius: 999px; background: rgba(var(--j-text-rgb), 0.22); transition: background 0.2s ease; }
.sjf .sjf-switch::after{ content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); transition: transform 0.2s var(--j-ease); }
.sjf .sjf-member.is-on .sjf-switch{ background: var(--j-gold); }
.sjf .sjf-member.is-on .sjf-switch::after{ transform: translateX(20px); }

/* back from a purchase: the LOOT bought glows on the glass and the foot
   spins until it lands; the slider and button rest meanwhile. Then the
   balance counts up with what landed beside it. */
.sjf .sjf-glass.is-landing b{ animation: sjf-glow 1.6s ease-in-out infinite; }
@keyframes sjf-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.sjf .sjf-spend .is-landing{ opacity: 0.45; pointer-events: none; transition: opacity 0.3s ease; }
.sjf .sjf-spin{ width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(var(--j-gold-rgb), 0.25); border-top-color: var(--j-gold); animation: sjf-turn 0.8s linear infinite; }
@keyframes sjf-turn { to { transform: rotate(360deg); } }
.sjf .sjf-landed{ display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(var(--j-green-rgb), 0.16); color: var(--j-green); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; animation: sjf-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes sjf-pop { from { transform: scale(0.6); opacity: 0; } }
.sjf .sjf-note{ margin-top: 2px; color: rgba(var(--j-text-rgb), 0.75); font-size: 14px; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .sjf .sjf-glass.is-landing b, .sjf .sjf-spin, .sjf .sjf-landed{ animation: none; }
  .sjf .sjf-glass, .sjf .sjf-inc, .sjf .sjf-inc-num, .sjf .sjf-inc-pill{ transition: none; }
}

/* No show behind it (DoubloonWeb.LootSheet: the header's +, /profile, /x):
   a gold glow in the card's place, the LOOT on glass at its centre. */
.sjf .sjf-cover.is-bare{
  aspect-ratio: 16 / 7;
  background:
    radial-gradient(120% 95% at 50% 100%, rgba(var(--j-gold-rgb), 0.34), rgba(var(--j-gold-rgb), 0.07) 55%, transparent 78%),
    var(--j-surface-2);
}
.sjf .sjf-cover.is-bare .sjf-glass{ bottom: 50%; height: 56px; padding: 0 20px; }
.sjf .sjf-cover.is-bare .sjf-glass b{ font-size: 28px; }
.sjf .sjf-cover.is-bare .sjf-glass .sjf-mark{ width: 14px; height: 18px; }
.sjf .sjf-cover.is-bare .sjf-inc{ --div: 16px; }
.sjf .sjf-cover.is-bare .sjf-inc.is-on{ margin-left: 8px; }
.sjf .sjf-cover.is-bare .sjf-inc-body::before{ height: 30px; }
.sjf .sjf-cover.is-bare .sjf-inc-num{ font-size: 23px; }
.sjf .sjf-cover.is-bare .sjf-inc-pill{ height: 20px; padding: 0 9px; font-size: 11px; }
.sjf .sjf-cover.is-bare .sjf-glass .sjf-inc .sjf-mark{ width: 12px; height: 15px; }
/* the pill and the capsule centred in the card together */
.sjf .sjf-cover.is-bare .sjf-glass:has(.sjf-inc.is-on){ transform: translate(-50%, calc(50% + 5px)); }
.lsf .sjf-cover.is-bare + .sjf-buy{ margin-top: 6px; }
/* phones: the biggest pack and its bonus fit the bare card with room */
@media (max-width: 420px){
  .sjf .sjf-cover.is-bare .sjf-glass{ --gap: 7px; height: 52px; padding: 0 16px; }
  .sjf .sjf-cover.is-bare .sjf-glass b{ font-size: 24px; }
  .sjf .sjf-cover.is-bare .sjf-glass .sjf-mark{ width: 12px; height: 16px; }
  .sjf .sjf-cover.is-bare .sjf-inc{ --div: 13px; }
  .sjf .sjf-cover.is-bare .sjf-inc.is-on{ margin-left: 6px; }
  .sjf .sjf-cover.is-bare .sjf-inc-body::before{ height: 26px; }
  .sjf .sjf-cover.is-bare .sjf-inc-num{ font-size: 20px; }
  .sjf .sjf-cover.is-bare .sjf-glass .sjf-inc .sjf-mark{ width: 11px; height: 14px; }
}
@media (max-width: 380px){
  .sjf .sjf-cover.is-bare .sjf-glass{ padding: 0 14px; }
  .sjf .sjf-cover.is-bare .sjf-glass b{ font-size: 22px; }
  .sjf .sjf-cover.is-bare .sjf-inc-num{ font-size: 19px; }
}
.lsf .sjf-note{ display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 6px; }

/* 768+: a centred card */
@media (min-width: 768px) {
  .sjf .sjf-panel{
    left: 50%; right: auto; top: 50%; bottom: auto; width: 420px;
    max-height: calc(100vh - 48px); padding: 18px 24px 16px;
    transform: translate(-50%, -50%); border-radius: 24px;
    box-shadow: inset 0 0 0 0.5px rgba(var(--j-text-rgb), 0.2), 0 40px 120px rgba(0, 0, 0, 0.7);
    animation-name: sjf-in;
  }
  @keyframes sjf-in { from { transform: translate(-50%, calc(-50% + 16px)); opacity: 0; } }
  .sjf .sjf-grab{ display: none; }
}
