/* The live store's own styles (style.css + refresh.css, every .sf- / .cart- rule), carried onto the v2 pages by
   extract_store_css.py so assets/js/store.js runs here unchanged. The old site's colour names are mapped onto
   v2's below, scoped to the store, so nothing outside it moves. */
#store-app, .cart-veil, .sf-toast {
  --bg: var(--ground); --card: var(--raise); --hover: var(--raise-2); --line: rgba(255,255,255,.09);
  --fg: var(--ink); --muted: var(--mute); --faint: color-mix(in srgb, var(--mute) 70%, var(--ground));
  --accent: var(--zest); --zest-lo: var(--zest); --zest-glow: color-mix(in srgb, var(--zest) 16%, transparent);
  --gold-line: color-mix(in srgb, var(--gold) 32%, transparent); --gap: 16px; --rf-line2: rgba(255,255,255,.11);
}
@keyframes sfToastIn { from { opacity: 0; transform: translate(-50%, 22px) scale(0.85); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes sfTickPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes sfTickDraw { to { stroke-dashoffset: 0; } }
.sf-hero {position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 18px; padding: 0;
  border-bottom: 1px solid var(--line);}
.sf-hero h1 {font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.045em; line-height: 0.95; margin: 0 0 26px;}
.sf-hero-figure {width: clamp(260px, 30vw, 380px); height: calc(clamp(84px, 8vw, 112px) * 1.6 + 48px); flex: none; align-self: flex-end;}
.sf-pile {position: relative; width: 100%; height: 100%;}
.sf-pile-card {--w: clamp(84px, 8vw, 112px);
  
  position: absolute; left: 50%; bottom: 40px; width: var(--w); aspect-ratio: 10 / 16;
  margin-left: calc(var(--w) / -2);
  border-radius: 10px; overflow: hidden; background: #111112;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.85), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
  transform-origin: 50% 118%;
  transform: translateX(calc(var(--k) * 30%)) translateY(calc(var(--a) * 7px)) rotate(calc(var(--k) * 7deg));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);}
.sf-pile-card img {width: 100%; height: 100%; object-fit: cover; display: block;}
.sf-pile:hover .sf-pile-card {transform: translateX(calc(var(--k) * 42%)) translateY(calc(var(--a) * 9px)) rotate(calc(var(--k) * 9deg));}
.sf-pile .sf-pile-card:hover {transform: translateX(calc(var(--k) * 42%)) translateY(calc(var(--a) * 9px - 14px)) rotate(calc(var(--k) * 9deg));
  box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(47, 194, 74, 0.5);}
@media (prefers-reduced-motion: reduce) {
.sf-pile-card {transition: none;}
}
@media (max-width: 700px) {
.sf-hero {flex-direction: column; align-items: stretch; gap: 0; overflow: hidden;}
.sf-hero-figure {order: -1; width: 100%; height: 200px;}
.sf-hero h1 {margin: 6px 0 20px;}
}
.sf-bar {display: flex; align-items: center; gap: 12px; margin-bottom: 18px; position: relative; z-index: 30;}
.sf-filter {position: relative;}
.sf-filter-btn {display: inline-flex; align-items: center; gap: 10px; min-width: 220px;
  padding: 10px 14px 10px 12px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--fg);
  font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);}
.sf-filter-btn > svg:first-child {flex: none; color: var(--zest);}
.sf-filter-val {flex: 1; text-align: left;}
.sf-filter-btn em, .sf-filter-opt em {font-style: normal; font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums;}
.sf-filter-btn:hover, .sf-filter-btn:focus-visible {border-color: var(--zest-lo); outline: 0;}
.sf-filter.open .sf-filter-btn {border-color: var(--zest-lo); box-shadow: 0 0 0 3px var(--zest-glow);}
.sf-filter-chev {flex: none; color: var(--faint); margin-left: 2px; transition: transform 200ms var(--ease), color 200ms var(--ease);}
.sf-filter.open .sf-filter-chev {transform: rotate(180deg); color: var(--zest);}
.sf-filter-list {position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%; z-index: 40;
  display: grid; padding: 6px; max-height: min(420px, 70vh); overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.85);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-6px) scale(0.985); transform-origin: top; visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s linear 160ms;}
.sf-filter.open .sf-filter-list {opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s;}
.sf-filter-opt {display: flex; align-items: center; gap: 10px; text-align: left; white-space: nowrap;
  padding: 9px 12px 9px 10px; cursor: pointer; border-radius: 8px;
  background: none; border: 0; color: var(--muted);
  font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  transition: background 130ms var(--ease), color 130ms var(--ease);}
.sf-filter-opt span {flex: 1;}
.sf-filter-opt svg {flex: none; opacity: 0.8;}
.sf-filter-opt:hover, .sf-filter-opt:focus-visible {background: var(--hover); color: var(--fg); outline: 0;}
.sf-filter-opt.on {color: var(--zest);}
.sf-filter-opt.on svg {opacity: 1;}
body.no-motion .sf-filter-list, body.no-motion .sf-filter-chev {transition: none;}
@media (prefers-reduced-motion: reduce) {
.sf-filter-list, .sf-filter-chev {transition: none;}
}
.sf-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px;}
.sf-bar .sf-filter[hidden] {display: none;}
.sf-groups {display: block;}
.sf-group + .sf-group {margin-top: 44px;}
.sf-group-h {display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -0.02em; color: var(--fg);}
.sf-group-h svg {width: 22px; height: 22px; color: var(--zest); flex: none;}
.sf-group-h em, .sf-sub-h em {font-style: normal; font-size: 13px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums;}
.sf-sub + .sf-sub {margin-top: 26px;}
.sf-sub-h {display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px;
  font-family: var(--display); font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: var(--muted);
  text-transform: none;}
@media (max-width: 720px) {
.sf-group + .sf-group {margin-top: 32px;}
.sf-bar {flex-wrap: wrap;}
}
.sf-card {display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);}
.sf-card:hover {border-color: #424245; transform: translateY(-2px);}
.sf-media {display: block; aspect-ratio: 10 / 16; background: #111112;
  border-bottom: 1px solid var(--line);}
.sf-media img {width: 100%; height: 100%; display: block; object-fit: cover; image-rendering: auto;}
.sf-body {padding: 12px 12px 12px 14px; display: flex; flex-direction: column; gap: 2px;}
.sf-name {font-family: var(--display); font-weight: 650; font-size: 17.5px; letter-spacing: -0.02em;
  color: var(--fg); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.sf-name:hover {color: var(--zest);}
.sf-type {font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);}
.sf-row {display: flex; align-items: center; justify-content: space-between; margin-top: 10px;}
.sf-price {font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--fg);}
.sf-price.big {font-size: 34px; margin: 18px 0 16px;}
.sf-cart {width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: #fff; border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);}
.sf-cart:hover {transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(47, 194, 74, 0.7);}
.sf-cart:active {transform: translateY(0) scale(0.96);}
.sf-cart.on {background: transparent; color: var(--zest); border-color: var(--zest);}
.sf-empty {grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--muted);}
.sf-empty b {display: block; color: var(--fg); font-family: var(--display); font-size: 18px; margin-bottom: 4px;}
.sf-rail {--per: 6; --gap: 16px;}
.sf-item .sf-rail {margin-top: 52px;}
.sf-rail-h {display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);}
.sf-rail-h h2 {margin: 0; font-family: var(--display); font-size: clamp(20px, 2vw, 26px); font-weight: 700;
  letter-spacing: -0.02em; color: var(--fg);}
.sf-rail-nav {margin-left: auto; display: flex; gap: 8px;}
.sf-rail-btn {width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  background: var(--card); color: var(--fg); border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);}
.sf-rail-btn:hover:not(:disabled) {border-color: var(--zest); color: var(--zest);}
.sf-rail-btn:disabled {opacity: 0.35; cursor: default;}
.sf-rail.fits .sf-rail-nav {visibility: hidden;}
.sf-rail-track {display: grid; grid-auto-flow: column; gap: var(--gap);
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px 0 6px;}
.sf-rail-track::-webkit-scrollbar {display: none;}
.sf-rail-track > .sf-card {scroll-snap-align: start;}
@media (max-width: 1240px) {
.sf-rail {--per: 5;}
}
@media (max-width: 1020px) {
.sf-rail {--per: 4;}
}
@media (max-width: 760px) {
.sf-rail {--per: 3; --gap: 12px;}
}
@media (max-width: 520px) {
.sf-rail {--per: 2; --gap: 10px;}
}
body.no-motion .sf-rail-track {scroll-behavior: auto;}
.store-page .btn, .cart-panel .btn {font-family: var(--display); font-weight: 650; letter-spacing: -0.01em;}
.sf-item[hidden], #sf-list[hidden] {display: none;}
.sf-back {display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  padding: 6px 14px 6px 11px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--fg); text-decoration: none;
  font-family: var(--display); font-weight: 650; font-size: 13.5px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);}
.sf-back span {font-size: 15px; line-height: 1;}
.sf-back:hover {border-color: var(--zest); background: rgba(47, 194, 74, 0.1);}
.sf-item-grid {display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start;}
.sf-stage-col {display: flex; flex-direction: column; gap: 12px;}
.sf-stage-wrap {position: relative;}
/* "Drag to turn · scroll to zoom" inside the viewer, bottom left, only while the pointer is on it (his ask 04-11) */
.sf-stage {position: relative;}
.sf-stage .sv-hint {position: absolute; left: 16px; bottom: 14px; right: auto; margin: 0; text-align: left;
  font: 500 13px/1 var(--text); letter-spacing: 0; text-transform: none; color: var(--mute);
  pointer-events: none; opacity: 0; transition: opacity 0.2s var(--ease);}
.sf-stage:hover .sv-hint {opacity: 1;}
.sf-stage .sv-note.on + .sv-hint {display: none;}
.sf-stage {height: min(620px, 72vh); border: 1px solid var(--line); border-radius: var(--radius);}
.sf-flat {position: absolute; inset: 0; margin: auto; height: 78%; width: auto; max-width: 90%;
  image-rendering: auto; border-radius: 6px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);}
.sf-flat[hidden] {display: none;}
/* the piece alone (2D on a wings / hat / necklace... page): no frame, centred, a soft shadow under it */
.sf-flat.sf-flat-solo {height: auto; width: auto; max-width: 70%; max-height: 64%; border-radius: 0; box-shadow: none;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));}
.sf-try {position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; align-items: center; height: 32px; padding: 0 4px 0 0; border-radius: 8px;
  background: rgba(10, 10, 11, 0.86); border: 1px solid rgba(255, 255, 255, 0.10); color: #808089;
  backdrop-filter: blur(8px);
  transition: border-color 120ms, box-shadow 120ms;}
.sf-try[hidden] {display: none;}
.sf-try.open, .sf-try:focus-within {border-color: rgba(47, 194, 74, 0.6); box-shadow: 0 0 0 3px rgba(47, 194, 74, 0.12);}
.sf-try-btn {display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 10px;
  border: 0; background: transparent; color: #A3A3AC; cursor: pointer;
  font-family: var(--display); font-size: 12.5px; font-weight: 500;}
.sf-try-btn:hover {color: #EDEDEF;}
.sf-try-btn svg {flex: none;}
.sf-try-label {display: inline-block; max-width: 180px; overflow: hidden; white-space: nowrap; opacity: 1;
  transition: max-width 260ms cubic-bezier(.2, .9, .25, 1), opacity 160ms;}
.sf-try input {width: 0; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; opacity: 0;
  color: #EDEDEF; font: inherit; font-family: var(--display); font-size: 12.5px;
  transition: width 260ms cubic-bezier(.2, .9, .25, 1), opacity 160ms;}
.sf-try.open .sf-try-label {max-width: 0; opacity: 0;}
.sf-try.open input {width: 190px; opacity: 1; padding-right: 8px;}
.sf-seg {position: absolute; top: 12px; right: 12px; z-index: 2;
  display: flex; gap: 3px; padding: 3px; border-radius: 10px;
  background: rgba(10, 10, 11, 0.86); border: 1px solid rgba(255, 255, 255, 0.07); backdrop-filter: blur(8px);}
.sf-seg .pill {position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: 7px;
  background: #1F1F20; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: left 220ms cubic-bezier(.2, .9, .25, 1), width 220ms cubic-bezier(.2, .9, .25, 1);}
.sf-seg button {position: relative; z-index: 1; height: 24px; padding: 0 11px; border-radius: 7px; border: 0;
  background: transparent; color: #808089; cursor: pointer; white-space: nowrap;
  font-family: var(--display); font-size: 12.5px; font-weight: 500; transition: color 120ms;}
.sf-seg button:hover {color: #A3A3AC;}
.sf-seg button.on {color: #EDEDEF; font-weight: 600;}
@media (prefers-reduced-motion: reduce) {
.sf-seg .pill, .sf-try input, .sf-try-label {transition: none;}
}
.sf-buyrow {display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 20px 0 4px;}
.sf-buyrow .sf-price.big {margin: 0;}
.sf-buyrow .btn {display: inline-flex; align-items: center; gap: 8px;}
.sf-skin {display: flex; flex-wrap: wrap; gap: 8px;}
.sf-skin > button, .sf-skin-name button {padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--display); font-weight: 600; font-size: 14px;}
.sf-skin > button.on {color: var(--fg); border-color: var(--zest); background: rgba(47, 194, 74, 0.1);}
.sf-skin-name {display: flex; gap: 8px; flex: 1; min-width: 220px;}
.sf-skin-name[hidden] {display: none;}
.sf-skin-name input {flex: 1; min-width: 0; padding: 9px 14px; border-radius: 999px; font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line);}
.sf-skin-name input:focus {outline: none; border-color: var(--zest-lo);}
.sf-info h1 {font-size: clamp(36px, 5vw, 56px); margin: 10px 0 6px;}
.sf-kicker {display: inline-flex; align-items: center; gap: 8px; color: var(--zest); font-weight: 600; font-size: 14px;}
.sf-desc {color: var(--muted); font-size: 16px; line-height: 1.6; margin: 16px 0 0; max-width: 520px;}
.sf-actions {display: flex; gap: 10px; flex-wrap: wrap;}
.sf-actions .btn {display: inline-flex; align-items: center; gap: 8px;}
.sf-fine {color: var(--faint); font-size: 13px; line-height: 1.6; margin-top: 18px; max-width: 520px;}
@media (max-width: 860px) {
.sf-item-grid {grid-template-columns: 1fr; gap: 22px;}
.sf-stage {height: 440px;}
.sf-hero {min-height: 0;}
.sf-hero-figure {height: 165px; width: 230px;}
.sf-pile-card {--w: 78px; bottom: 30px;}
}
@media (max-width: 700px) {
.sf-hero-figure {width: 100%; height: 165px;}
}
@media (max-width: 520px) {
.sf-grid {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;}
.sf-hero h1 {margin-bottom: 18px;}
}
@media (max-width: 700px) {
.sf-hero h1 {text-align: center;}
.sf-bar, .sf-filter {width: 100%;}
.sf-filter-btn {width: 100%; min-width: 0;}
}
.cart-veil {position: fixed; inset: 0; z-index: 130; display: flex; justify-content: flex-end;
  background: rgba(9, 9, 10, 0); pointer-events: none; transition: background 0.25s var(--ease);}
.cart-veil.on {background: rgba(9, 9, 10, 0.7); pointer-events: auto;}
.cart-panel {width: 420px; max-width: 100%; height: 100%; display: flex; flex-direction: column;
  background: var(--card); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform 0.3s var(--ease);}
.cart-veil.on .cart-panel {transform: none;}
.cart-panel header {display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line);}
.cart-panel h2 {font-size: 22px; margin: 0;}
.cart-x {background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer;}
.cart-list {flex: 1; overflow: auto; padding: 8px 22px;}
.cart-row {display: grid; grid-template-columns: 44px 1fr auto 28px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line);}
.cart-row img {width: 44px; height: 70px; object-fit: cover; border-radius: 6px; display: block; background: #111112;}
.cart-meta {display: flex; flex-direction: column; min-width: 0;}
.cart-meta b {font-family: var(--display); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.cart-meta span {font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);}
.cart-price {font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums;}
.cart-rm {background: none; border: 0; color: var(--faint); font-size: 22px; cursor: pointer;}
.cart-rm:hover {color: #ff6b6b;}
.cart-empty {padding: 48px 0; text-align: center; color: var(--muted); line-height: 1.7;}
.cart-panel footer {padding: 18px 22px 22px; border-top: 1px solid var(--line);}
.cart-total {display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px;}
.cart-total span {color: var(--muted);}
.cart-total b {font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums;}
.cart-panel footer .btn {width: 100%; justify-content: center;}
.cart-panel footer .btn[disabled] {opacity: 0.45; cursor: not-allowed;}
.cart-note {color: var(--faint); font-size: 12px; line-height: 1.55; margin: 12px 0 0;}
.cart-note a {color: var(--muted); text-decoration: underline; text-underline-offset: 2px;}
.cart-note a:hover {color: var(--zest);}
.sf-toast {position: fixed; left: 50%; bottom: 20px; z-index: 140; transform: translate(-50%, 16px) scale(0.92); opacity: 0;
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  padding: 7px 14px 7px 10px; border-radius: 999px; background: #222223; border: 1px solid var(--line);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.8);
  color: var(--fg); font-size: 13px; line-height: 1.3; white-space: nowrap; pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);}
.sf-toast:not(.add) {padding-left: 14px;}
.sf-toast-txt {min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted);}
.sf-toast-txt b {color: var(--fg); font-weight: 650;}
.sf-toast.on {opacity: 1; transform: translate(-50%, 0) scale(1);}
.sf-toast.on.add {animation: sfToastIn 0.46s cubic-bezier(0.2, 1.5, 0.4, 1) both; border-color: rgba(61, 214, 90, 0.35);}
.sf-toast-tick {flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--zest); color: #1B1B1C;}
.sf-toast.add .sf-toast-tick {animation: sfTickPop 0.42s 0.08s cubic-bezier(0.2, 1.6, 0.4, 1) both;}
.sf-toast.add .sf-toast-tick path {stroke-dasharray: 22; stroke-dashoffset: 22; animation: sfTickDraw 0.32s 0.22s ease-out forwards;}
.sf-add.is-in:hover {border-color: #ff6b6b; color: #ff8a8a;}
@media (prefers-reduced-motion: reduce) {
.cart-panel, .cart-veil, .sf-toast, .sf-card {transition: none;}
.sf-toast.on.add, .sf-toast.add .sf-toast-tick, .sf-toast.add .sf-toast-tick path, .nav-cart-n.bump, .nav-cart.bump svg {animation: none; stroke-dashoffset: 0;}
}
.pf-viewer.sv-stage, .sf-stage.sv-stage, .sf-stage {background: none !important; border: 0 !important; box-shadow: none !important;}
.sf-stage.sv-stage, .sf-stage {background:
    radial-gradient(90% 60% at 50% 30%, rgba(230, 230, 232, 0.07), rgba(230, 230, 232, 0) 65%),
    radial-gradient(40% 12% at 50% 88%, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 75%),
    #111112 !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);}
.sf-owned {display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px;
  background: rgba(47, 194, 74, 0.12); border: 1px solid rgba(47, 194, 74, 0.45); color: var(--zest);
  font-family: var(--display); font-weight: 700; font-size: 17px;}
/* Gold member price (his ask 29-09): the list price small, red and struck through, the Gold price green under it.
   These base rules lived only in style.css, which the redesign stopped loading - so both prices printed as one
   run of plain text ("$9.99$8.99"). */
.px-was {display: block; font-size: 0.62em; font-weight: 600; color: #E5484D;
  text-decoration: line-through; text-decoration-thickness: 1.5px; line-height: 1.1;}
.px-now {display: block; color: var(--zest); font-weight: 800; line-height: 1.05;}
.sf-price .px-was {font-size: 12.5px;}
.sf-price.big .px-was {font-size: 17px;}
.cart-price .px-was {font-size: 11.5px;}
.cr-cards .sf-row {min-height: 40px; flex-wrap: wrap; gap: 4px 10px;}
.sf-media {position: relative;}
.sf-partner {position: absolute; left: 10px; top: 10px; max-width: calc(100% - 20px); padding: 3px 9px;
  border-radius: 999px; border: 1px solid var(--gold-line); background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); line-height: 1.5; pointer-events: none;
  color: var(--gold); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.sf-partner-line {margin: 14px 0 0; max-width: 520px; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--gold-line); background: rgba(229, 174, 58, 0.06); color: var(--muted); font-size: 14.5px; line-height: 1.55;}
.sf-partner-line a {color: var(--gold); font-weight: 700; border-bottom: 1px solid var(--gold-line);}
.sf-partner-line a:hover {color: var(--gold-hi);}
html:not(#rf) .sf-hero {border-bottom: 0;}
html:not(#rf) .sf-hero::after {content: ""; position: absolute; left: 0; bottom: 0; width: 56%; height: 1px; background: var(--rf-line2);}
html:not(#rf) .sf-hero-figure {width: clamp(480px, 48vw, 720px); height: clamp(230px, 22vw, 300px); margin-bottom: clamp(-86px, -6vw, -60px);
  position: relative; z-index: 2;}
html:not(#rf) .sf-pile-card {--w: clamp(88px, 8.2vw, 118px); bottom: 34px;
  transform: translateX(calc(var(--k) * 54%)) translateY(calc(var(--a) * var(--a) * 3.2px)) rotate(calc(var(--k) * 5.5deg));
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.9);}
html:not(#rf) .sf-pile:hover .sf-pile-card {transform: translateX(calc(var(--k) * 58%)) translateY(calc(var(--a) * var(--a) * 3.6px)) rotate(calc(var(--k) * 6deg));}
html:not(#rf) .sf-pile .sf-pile-card:hover {transform: translateX(calc(var(--k) * 58%)) translateY(calc(var(--a) * var(--a) * 3.6px - 10px)) rotate(calc(var(--k) * 6deg));
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.35);}
html:not(#rf) .sf-pile-me {position: absolute; left: 50%; bottom: 0; height: 104%; width: auto; max-width: none; transform: translateX(-50%);
  z-index: 30; pointer-events: none; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.75));}
@media (max-width: 700px) {
html:not(#rf) .sf-hero::after {width: 100%;}
html:not(#rf) .sf-hero-figure {width: 100%; height: 210px; margin-bottom: 0;}
html:not(#rf) .sf-pile-card {--w: 70px;}
}
html:not(#rf) .sf-hero-figure {width: clamp(440px, 46vw, 700px); height: auto; margin-bottom: clamp(-64px, -4vw, -36px);}
html:not(#rf) .sf-heap {display: block; width: 100%; height: auto; pointer-events: none; user-select: none;}
@media (max-width: 700px) {
html:not(#rf) .sf-hero-figure {width: 100%; height: auto; margin-bottom: 0;}
}
html:not(#rf) .sf-hero-figure {width: clamp(280px, 26vw, 420px); margin-bottom: clamp(-56px, -3.4vw, -30px);}
html:not(#rf) .sf-currency {display: none;}
@media (max-width: 1080px) {
html:not(#rf) .sf-currency {display: inline-flex; margin-left: auto; order: 99;}
}
html:not(#rf) .sf-group-h .sf-currency {margin-left: auto; align-self: center; font-size: 13px; font-weight: 400; letter-spacing: 0;}
html:not(#rf) .sf-group-h .sf-currency .cur-btn {padding: 7px 12px; min-width: 0; gap: 10px; border-radius: 9px;}
@media (max-width: 700px) {
html:not(#rf) .sf-hero-figure {align-self: center; margin-left: auto; margin-right: auto;}
}
html:not(#rf) .sf-group-h .sf-currency select {left: 0; right: auto; width: 100%; min-width: 0; max-width: 100%;}
@media (min-width: 701px) {
html:not(#rf) .sf-hero-figure {margin-right: clamp(28px, 3.4vw, 64px);}
}

/* ---- v2 overrides: the old .btn family, the bar, the cart button, Back ---- */
#store-app .btn, .cart-panel .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; font: 700 var(--fs-body)/1 var(--text); cursor: pointer; text-decoration: none; }
#store-app .btn-primary, .cart-panel .btn-primary { background: var(--zest); color: var(--zest-ink); }
#store-app .btn-primary:hover, .cart-panel .btn-primary:hover { background: var(--zest-hi); }
#store-app .btn-ghost { background: var(--raise-3); color: var(--ink); }
.cart-panel .btn-primary:disabled { opacity: .45; cursor: default; }
body:has(#sf-item:not([hidden])) #st-hero { display: none; }
body:has(#sf-item:not([hidden])) #shop { padding-top: 40px; }
#store-app .sf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
#store-app .st-search { flex: 1 1 260px; min-height: 52px; }
#store-app .sf-currency { display: flex; }
.st-cart { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0;
  border-radius: 999px; background: var(--raise-2); color: var(--ink); font: 700 var(--fs-small)/1 var(--text); cursor: pointer; }
.st-cart:hover { background: var(--raise-3); }
.st-cart .nav-cart-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--zest); color: var(--zest-ink);
  font: 800 12px/22px var(--text); text-align: center; }
#store-app .sf-back { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px 0 16px; margin-bottom: 24px;
  border-radius: 999px; background: var(--raise-2); color: var(--ink); font: 700 var(--fs-small)/1 var(--text); text-decoration: none; }
#store-app .sf-back:hover { background: var(--raise-3); color: var(--zest); }
#store-app .sf-back span { font-size: 20px; line-height: 1; }

/* ---- 03-11 eve: the store on the site's own type (his "fonts are all off from the old page") --------
   The carried-over store CSS had its own dozen sizes and an uppercase tracked type label. Everything below
   puts it on v2's six sizes and two faces: Montserrat for names and prices, Figtree for the rest. */
#store-app, .cart-panel { font: 400 var(--fs-body)/1.55 var(--text); }
.sf-group-h, .sf-rail-h h2, .sf-all-h { font: 800 var(--fs-h3)/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.sf-group-h em, .sf-sub-h em { font: 600 var(--fs-small)/1 var(--text); color: var(--mute); }
.sf-name { font: 700 var(--fs-body)/1.3 var(--display); letter-spacing: -0.015em; }
.sf-type, .cart-meta span { font: 500 15px/1.3 var(--text); letter-spacing: 0; text-transform: none; color: var(--mute); }
.sf-price { font: 700 var(--fs-body)/1 var(--display); }
.sf-price.big { font-size: var(--fs-h2); letter-spacing: -0.035em; }
.sf-price .px-was, .sf-price.big .px-was { font-size: var(--fs-small); }
.sf-filter-btn, .sf-filter-opt, .sf-back, .sf-seg button, .sf-skin-name button { font: 600 var(--fs-small)/1 var(--text); letter-spacing: 0; }
.sf-filter-btn em, .sf-filter-opt em { font-size: 14px; color: var(--mute); }
.sf-info h1 { font: 800 var(--fs-h2)/1.04 var(--display); letter-spacing: -0.035em; color: var(--ink); white-space: normal; }
.sf-kicker { font: 600 var(--fs-small)/1.3 var(--text); }
.sf-desc { font-size: var(--fs-body); line-height: 1.55; color: var(--mute); }
.sf-fine, .cart-note { font-size: 15px; color: var(--mute); }
.sf-skin-name input { font: 500 var(--fs-small)/1.2 var(--text); }
.sf-partner-line { font-size: var(--fs-small); }
.sf-partner, .sf-gold-tag { letter-spacing: 0; text-transform: none; font: 700 14px/1 var(--text); }
.cart-meta b { font: 700 var(--fs-body)/1.3 var(--display); }
.cart-total b { font: 800 var(--fs-h3)/1 var(--display); }
.cart-panel h2 { font: 800 var(--fs-h3)/1.2 var(--display); }

/* the category row: a tile per type with a real piece from it */
.sf-typerow { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; margin-bottom: clamp(36px, 4vw, 56px); }
.sf-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 10px 14px; border: 0; border-radius: var(--radius); background: var(--raise); color: var(--ink); cursor: pointer; transition: background 0.2s, transform 0.2s var(--ease); }
.sf-tile:hover { background: var(--raise-2); transform: translateY(-2px); }
.sf-tile.on { background: var(--raise-2); box-shadow: inset 0 0 0 2px var(--zest); }
.sf-tile-pic { width: 100%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-sm); background: var(--raise-2); }
.sf-tile-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.sf-tile-all { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.sf-tile-all img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.sf-tile b { font: 700 var(--fs-small)/1.2 var(--display); text-align: center; }
.sf-tile em { font: 600 14px/1 var(--text); font-style: normal; color: var(--mute); font-variant-numeric: tabular-nums; }
.sf-all-h { margin: clamp(40px, 4vw, 64px) 0 18px; }
#sf-rec .sf-rail + .sf-rail { margin-top: clamp(32px, 3vw, 48px); }
@media (max-width: 1100px) { .sf-typerow { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sf-typerow { grid-template-columns: repeat(3, minmax(0, 1fr)); }  }

/* the shop's own controls on the site's v2 parts (his note 03-11 eve: the store still wore the old site's
   bordered dropdowns, green outline icons and small type): pills on the raised surface, like Search and Cart */
#store-app .sf-filter-btn { min-width: 0; min-height: 52px; padding: 0 18px 0 22px; gap: 12px; border: 0; border-radius: 999px; background: var(--raise-2); color: var(--ink); box-shadow: none; font: 600 var(--fs-small)/1 var(--text); }
#store-app .sf-filter-btn:hover, #store-app .sf-filter-btn:focus-visible { background: var(--raise-3); }
#store-app .sf-filter.open .sf-filter-btn { background: var(--raise-3); box-shadow: 0 0 0 2px var(--zest); }
#store-app .sf-filter-list { top: calc(100% + 8px); padding: 8px; border: 0; border-radius: var(--radius); background: var(--raise); }
#store-app .sf-filter-opt { padding: 12px 14px; border-radius: var(--radius-sm); font: 600 var(--fs-small)/1 var(--text); }
#store-app .sf-filter-opt:hover, #store-app .sf-filter-opt:focus-visible { background: var(--raise-2); }
#store-app .sf-group-h { gap: 12px; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--raise-2); font: 800 var(--fs-h3)/1.2 var(--display); letter-spacing: -0.02em; }
#store-app .sf-group + .sf-group { margin-top: clamp(40px, 4vw, 64px); }
#store-app .st-search { background: var(--raise-2); }

/* CAPES (his ask 03-11 eve, after Lunar's): the cape stands on an angle as a slab with a dark edge, on the
   stage's dark lit panel, a soft shadow on the floor under it */
.sf-card[data-id^="cloak_"] .sf-media { display: grid; place-items: center; perspective: 900px; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 30%, rgba(230, 230, 232, 0.08), rgba(230, 230, 232, 0) 65%), #111112; }
.sf-card[data-id^="cloak_"] .sf-media::after { content: ""; position: absolute; left: 22%; right: 18%; bottom: 7%; height: 9%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); pointer-events: none; }
.sf-card[data-id^="cloak_"] .sf-media img { position: relative; z-index: 1; width: auto; height: 74%; max-width: 70%; object-fit: contain; border-radius: 2px;
  transform: rotateY(-36deg) rotateX(4deg); transform-origin: 50% 50%;
  box-shadow: 1px 0 0 #3a3a3e, 2px 0 0 #333337, 3px 0 0 #2c2c30, 4px 0 0 #26262a, 5px 0 0 #202024, 6px 0 0 #1b1b1e,
    24px 30px 40px -18px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s var(--ease); }
.sf-card[data-id^="cloak_"]:hover .sf-media img { transform: rotateY(-18deg) rotateX(3deg) translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .sf-card[data-id^="cloak_"] .sf-media img { transition: none; } }

/* everything else stands on a blurred scene (store.js keys the baked backdrop out) */
.sf-media.sf-scenic { background-size: cover; background-position: center; }
.sf-media.sf-scenic img { opacity: 0; transition: opacity 0.35s var(--ease); }
.sf-media.sf-scenic.is-keyed img { opacity: 1; }

/* the add button: the site's round icon button, a bag in place of the old trolley */
#store-app .sf-cart { width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--raise-2); color: var(--ink); box-shadow: none; transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
#store-app .sf-cart:hover { background: var(--zest); color: var(--zest-ink); transform: none; box-shadow: none; }
#store-app .sf-cart.on { background: var(--zest); color: var(--zest-ink); border: 0; }
#store-app .sf-back svg { flex: none; }

/* the bar rides under the nav the whole way down, so Cart and the currency are always in reach
   (his note 04-11: he could not find either) */
#store-app .sf-bar { position: sticky; top: var(--sf-nav-h, 72px); z-index: 30; margin: 0 0 28px; padding: 12px 0; background: var(--ground); }
#store-app .sf-bar .sf-currency { display: inline-flex; margin-left: 0; order: 0; }

/* the offline cut-outs are framed chest-up: the figure stands on the card's bottom edge */
.sf-media.sf-scenic { display: flex; align-items: flex-end; justify-content: center; }
.sf-media.sf-scenic img { width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: center bottom; }
/* category tiles: the piece alone on the plain tile, with a soft shadow */
.sf-tile-pic .sf-tile-piece { width: 78%; height: 78%; object-fit: contain; object-position: center; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); }
/* the All tile's pile fills more of its tile than a single piece does */
.sf-tile-pic .sf-tile-pile { width: 94%; height: 94%; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)); }

/* 05-11 his call: under the item title, the type as a pill with its icon, and the designer's credit beside it */
.sf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sf-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 15px 0 12px; border-radius: 999px;
  background: var(--raise-2); color: var(--ink); font: 600 var(--fs-small)/1 var(--text); }
.sf-pill svg { flex: none; width: 18px; height: 18px; color: var(--zest); }
.sf-pill-head { flex: none; width: 20px; height: 20px; border-radius: 3px; image-rendering: pixelated; }
