:root {
  --root:       #1b1411;
  --coffee:     #282625;
  --espresso:   #3a2e28;
  --cocoa:      #483935;
  --walnut:     #57453b;
  --sepia:      #67554a;
  --tobacco:    #776659;
  --taupe:      #877669;
  --mushroom:   #978678;
  --driftwood:  #a79787;
  --stone:      #b7a897;
  --linen:      #c8b9a4;
  --parchment:  #d8cab4;
  --vellum:     #e8dcc4;
  --cream:      #f3ead8;
  --dried-blood:#5a2820;
  --brick:      #7a3a2a;
  --rust:       #9c4a3a;
  --tangerine:  #b86a48;
  --ochre:      #c98a55;
  --bg-base:             #000000;
  --bg-atmosphere:       radial-gradient(ellipse at 30% 20%, #4a1424 0%, #2a0a14 35%, #140509 70%, #050203 100%);
  --accent:              var(--rust);
  --accent-soft:         rgba(156, 74, 58, 0.32);
  --accent-glow:         var(--tangerine);
  --avatar-glow:         rgba(255, 192, 213, 0.65);
  --chrome-panel:        rgba(40, 38, 37, 0.72);
  --chrome-panel-solid:  var(--coffee);
  --chrome-border:       rgba(151, 134, 120, 0.35);
  --chrome-border-hover: rgba(200, 185, 164, 0.65);
  --chrome-text:         var(--cream);
  --chrome-text-muted:   var(--driftwood);
  --bg-deep:             var(--root);
  --bg-dark:             var(--coffee);
  --bg-mid:              var(--espresso);
  --bg-water:            var(--cocoa);
  --water-top:           var(--cocoa);
  --water-mid:           var(--espresso);
  --water-bot:           var(--coffee);
  --panel-bg:            var(--chrome-panel);
  --panel-bg-solid:      var(--chrome-panel-solid);
  --panel-border:        var(--chrome-border);
  --panel-border-hover:  var(--chrome-border-hover);
  --text-bright:         var(--chrome-text);
  --text-mid:            var(--chrome-text-muted);
  --text-dim:            rgba(167, 151, 135, 0.55);
  --accent-blue:         var(--accent);
  --accent-cyan:         var(--accent-glow);
  --accent-pink:         var(--accent-glow);
  --ok:   #9bb07a;
  --warn: var(--ochre);
  --err:  var(--brick);
  --gold: var(--ochre);
  --font: 'Quicksand', 'Segoe UI', sans-serif;
  --font-title: 'Cormorant Garamond', 'Cinzel', serif;
  --font-display: 'Cinzel', serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --font-code: ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 4px;
  --radius-lg: 10px;
  --scale: clamp(1, tan(atan2(100vw, 1600px)), 1.6);
  --ui: max(1.15, var(--scale));
  --vn-surface:  rgba(216, 202, 180, 0.65);
  --vn-fill:     rgba(216, 202, 180, 0.8);
  --vn-plate:    rgba(216, 202, 180, 0.94);
  --vn-glass:    rgba(216, 202, 180, 0.16);
  --vn-rule:     rgba(103, 85, 74, 0.4);
  --vn-ink:      var(--espresso);
  --vn-ink-soft: var(--sepia);
  --vn-name-ink: var(--accent);
  --vn-line:     #292726;
}
* { scrollbar-width: none !important; }
*::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
*::-webkit-scrollbar-thumb { background: transparent !important; }
*::-webkit-scrollbar-track { background: transparent !important; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  font-size: calc(13px * var(--ui));
  color: var(--text-bright);
  background: var(--bg-base);
}
#app { width: 100%; height: 100%; position: relative; overflow: hidden; overflow: clip; }
button { font-family: inherit; color: inherit; }
.bg-base { position: absolute; inset: 0; z-index: 0; background: #000; }
.vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
}
.main-interface:is([data-page="shop"], [data-page="home"], [data-page="works"], [data-page="checkout"], [data-page="orders"], [data-page="returns"], [data-page="legal"]) {
  background: #000 var(--rx-plaid-low) repeat;
  background-size: 1536px auto;
}
#app.rx-bg-high .main-interface:is([data-page="shop"], [data-page="home"], [data-page="works"], [data-page="checkout"], [data-page="orders"], [data-page="returns"], [data-page="legal"]) { background-image: var(--rx-plaid-high); }
.splash {
  --splash: var(--rx-splash-low);
  --splash-size: max(1920px, 100vw) auto;
  display: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--splash);
  background-size: var(--splash-size);
  background-position: center top;
  background-repeat: no-repeat;
  mask-image: var(--splash);
  mask-size: var(--splash-size);
  mask-position: center top;
  mask-repeat: no-repeat;
  mask-mode: luminance;
  mix-blend-mode: screen;
}
.splash::before,
.splash::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.splash::before {
  inset: -10%;
  background: linear-gradient(115deg, #ff9ad5 0%, #9ae7ff 22%, #c9a2ff 44%, #9dffcb 66%, #ffe29a 84%, #ff9ad5 100%);
  mix-blend-mode: color;
  opacity: 0.85;
  animation: holo-shift 14s ease-in-out infinite alternate;
  will-change: transform, filter;
}
.splash::after {
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
@keyframes holo-shift {
  from { transform: translate3d(-6%, -3%, 0); filter: hue-rotate(0deg); }
  to { transform: translate3d(6%, 3%, 0); filter: hue-rotate(70deg); }
}
@media (prefers-reduced-motion: reduce) {
  .splash::before { animation: none; }
}
.main-interface:is([data-page="shop"], [data-page="home"], [data-page="works"], [data-page="checkout"], [data-page="orders"], [data-page="returns"], [data-page="legal"]) .splash { display: block; }
#app.rx-bg-high .splash { --splash: var(--rx-splash-high); }
.main-interface:is([data-page="shop"], [data-page="home"], [data-page="works"], [data-page="checkout"], [data-page="orders"], [data-page="returns"], [data-page="legal"])::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg-atmosphere);
  opacity: 0.4;
}
.scene { position: absolute; inset: 0; transition: opacity 0.8s ease; }
.scene.hidden { opacity: 0; pointer-events: none; }
@keyframes blink { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.main-interface[data-page="home"] .stage { padding: 0; }
.front {
  --front-menu-w: min(calc(480px * var(--scale)), 38vw);
  --front-edge: 48px;
  --front-top: 100px;
  --front-bottom: calc(var(--vn-h) + 64px);
  --front-title-size: clamp(64px, 8.9vw, 128px);
  position: absolute;
  inset: 0;
}
.front::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.front::before { background: radial-gradient(ellipse 46% 62% at 32% 54%, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0) 100%); }
.front-tagline {
  position: absolute;
  left: 0; right: 0; top: 88px;
  z-index: 6;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: calc(11px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(243, 234, 216, 0.78);
  pointer-events: none;
}
.front-stage {
  position: absolute;
  left: 0;
  top: var(--front-top);
  right: calc(var(--front-menu-w) + var(--front-edge) + 24px);
  bottom: var(--front-bottom);
  z-index: 2;
  container: front-stage / size;
}
.front-look {
  position: absolute;
  inset: 0;
  animation: front-look-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes front-look-in {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: none; }
}
.front-title {
  position: absolute;
  left: 56px;
  top: calc(var(--front-top) + 8px);
  z-index: 1;
  max-width: calc(100% - var(--front-menu-w) - var(--front-edge) - 104px);
  margin: 0;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 500;
  font-size: var(--front-title-size);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  text-wrap: balance;
  pointer-events: none;
  animation: front-look-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.front-set {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(150cqh, calc((100cqw + 8px) / 0.8), max(100cqw, min(calc((100cqh - var(--front-menu-drop, 100cqh) - 16px) / 0.2867), calc(100cqw + 24px + var(--front-menu-w)))));
  aspect-ratio: 3 / 2;
  container-type: inline-size;
  pointer-events: none;
}
.front-piece {
  position: absolute;
  display: block;
  aspect-ratio: 3 / 4;
}
.front-piece img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  -webkit-user-drag: none;
  user-select: none;
}
.front-piece--top { left: 10%; top: 12%; height: 72%; z-index: 2; }
.front-piece--bottom { left: 36%; top: 5%; height: 95%; z-index: 1; }
.front-piece--acc { left: 76%; top: 57%; height: 43%; z-index: 3; }
.front-piece.is-sold img { opacity: 0.45; }
.front-piece.is-sold::before,
.front-piece.is-sold::after {
  content: "";
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.6));
}
.front-piece.is-sold::after { inset: 0; z-index: 2; background: var(--rx-chains) center / cover no-repeat; opacity: 0.5; }
.front-piece.is-sold::before { inset: 27.5% 8%; z-index: 3; background: var(--rx-sold) center / contain no-repeat; }
.front-tag {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 4;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: clamp(14px, 2.4cqw, 34px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.85), 0 0 22px rgba(0, 0, 0, 0.6);
}
.front-piece.is-sold .front-tag {
  top: 88%;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.front-hit {
  position: absolute;
  inset: 0 calc(-24px - var(--front-menu-w)) 0 0;
  z-index: 4;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.front-hit:focus-visible { outline: 2px dashed rgba(243, 234, 216, 0.7); outline-offset: -10px; }
.front-menu {
  position: absolute;
  right: var(--front-edge);
  top: 124px;
  z-index: 8;
  width: var(--front-menu-w);
  max-height: calc(100% - 124px - var(--vn-h) - 72px);
  display: flex;
  flex-direction: column;
  gap: calc(14px * var(--scale));
  padding: calc(20px * var(--scale)) calc(26px * var(--scale)) calc(24px * var(--scale));
  background-color: var(--vn-plate);
  background-clip: padding-box;
  border: 15px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  color: var(--vn-ink);
  box-shadow: var(--lofi-shadow-lg);
  transition: box-shadow 0.2s ease;
}
.front-menu.is-pinned { box-shadow: 7px 7px 0 var(--rust); }
.front-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.front-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: calc(13px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--sepia);
}
.front-arrows { display: flex; flex: 0 0 auto; gap: calc(8px * var(--scale)); }
.front-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(44px * var(--scale));
  height: calc(44px * var(--scale));
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--espresso);
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(58, 46, 40, 0.35);
}
.front-arrow svg { width: calc(18px * var(--scale)); height: calc(18px * var(--scale)); }
.front-arrow:hover { background-color: rgba(58, 46, 40, 0.12); }
.front-rows {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-top: 1px dashed var(--vn-rule);
  border-bottom: 1px dashed var(--vn-rule);
  animation: front-rows-in 0.9s ease both;
}
@keyframes front-rows-in { from { opacity: 0; } to { opacity: 1; } }
.front-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: calc(5px * var(--scale));
  align-items: center;
  padding: calc(14px * var(--scale)) 0;
}
.front-row + .front-row { border-top: 1px dashed var(--vn-rule); }
.front-row-name {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font-family: var(--font-title);
  font-size: calc(24px * var(--scale));
  font-weight: 600;
  line-height: 1.15;
  text-wrap: pretty;
  cursor: pointer;
}
.front-row-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.front-row-meta { min-width: 0; font-size: calc(13px * var(--ui)); color: var(--walnut); }
.front-row-end { display: flex; align-items: center; justify-content: flex-end; }
.front-sold {
  padding: 0 8px;
  border: 3px double #b01a16;
  color: #b01a16;
  font-family: var(--font-display);
  font-size: calc(11px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  transform: rotate(-4deg);
}
.front-buy {
  display: flex;
  align-items: center;
  min-height: calc(44px * var(--scale));
  margin: 0;
  padding: 0 calc(16px * var(--scale));
  border: 0;
  background: var(--rust);
  color: var(--cream);
  font-family: var(--font);
  font-size: calc(14px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(58, 46, 40, 0.55);
}
.front-buy:hover { background: var(--brick); }
.front-held {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: calc(44px * var(--scale));
  font-size: calc(14px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.front-hint {
  margin: 0;
  font-family: var(--font-title);
  font-style: italic;
  font-size: calc(19px * var(--ui));
  line-height: 1.3;
  color: var(--walnut);
}
.front-bars {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--front-bars, 6), minmax(0, 1fr));
  gap: 6px;
}
.front-bar {
  position: relative;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.front-bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 7px;
  height: 2px;
  background: rgba(58, 46, 40, 0.28);
}
.front-bar.is-on::before { top: 6px; height: 4px; }
.front-bar.is-on::after {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 100%;
  height: 4px;
  background: var(--espresso);
}
.front-bars.is-playing .front-bar.is-on::after { animation: front-bar-fill var(--front-turn, 6.24s) linear both; }
@keyframes front-bar-fill { from { width: 0; } to { width: 100%; } }
.front-deck { display: none; }
@media (min-width: 961px) and (max-aspect-ratio: 1 / 1) and (min-height: 1250px) {
  .front {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--front-menu-w);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 32px;
    row-gap: 28px;
    padding: calc(var(--front-top) + 8px) var(--front-edge) var(--front-bottom);
  }
  .front::before { background: radial-gradient(ellipse 60% 44% at 58% 70%, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0) 100%); }
  .front-title { position: relative; left: auto; top: auto; grid-column: 1; grid-row: 1; max-width: none; }
  .front-menu { position: relative; right: auto; top: auto; grid-column: 2; grid-row: 1; max-height: none; margin-top: 16px; }
  .front-stage {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    padding-left: max(0px, calc(16vw - var(--front-edge)));
  }
  .front-set { left: auto; right: 0; width: min(100cqw, 150cqh); }
  .front-hit { inset: 0; }
  @container front-stage (max-aspect-ratio: 29 / 20) {
    .front-set { width: min(100cqw, calc(100cqh * 1.19)); aspect-ratio: 1.19; }
    .front-piece--top { left: 0; top: 0; height: 73.5%; }
    .front-piece--bottom { left: 28.2%; top: 1.5%; height: 97%; }
    .front-piece--acc { left: 72.3%; top: 56%; height: 44%; }
  }
  @container front-stage (max-aspect-ratio: 7 / 10) {
    .front-set { width: min(100cqw, calc(100cqh * 0.526)); aspect-ratio: 0.526; }
    .front-piece--top { left: 9.8%; top: 0; height: 43.1%; }
    .front-piece--bottom { left: 0; top: 41%; height: 56.8%; }
    .front-piece--acc { left: 63.3%; top: 74.3%; height: 25.7%; }
  }
}
.vn-offer { display: none; }
.main-interface[data-page="home"] .vn-text,
.main-interface[data-page="home"] .vn-cursor { display: none; }
.main-interface[data-page="home"] .vn-offer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.42em;
  align-self: stretch;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding-right: 168px;
  overflow: hidden;
  color: var(--vn-ink);
  font-family: var(--font);
  font-size: var(--vn-font);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: calc(1em + var(--vn-leading));
  text-decoration: none;
  outline: none;
  transition: opacity 0.2s ease;
}
.main-interface[data-page="home"] .vn-offer-label { flex: 0 0 auto; white-space: nowrap; }
.main-interface[data-page="home"] .vn-box.hidden .vn-offer { opacity: 0; }
.main-interface[data-page="home"] .vn-offer-lead {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.46em;
  letter-spacing: 0;
  color: var(--vn-name-ink);
  text-shadow: var(--lofi-soft), 0 0 10px var(--accent-glow), 0 0 2px var(--accent-glow);
  animation: sparkle-lead 2.6s ease-in-out infinite;
}
.main-interface[data-page="home"] .vn-box {
  background-image: linear-gradient(90deg, rgba(201, 138, 85, 0.22), rgba(201, 138, 85, 0)), var(--rx-etch-ink);
  background-size: auto, var(--lofi-etch);
  transition: background 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease, transform 0.3s ease;
}
.main-interface[data-page="home"] .vn-box:hover,
.main-interface[data-page="home"] .vn-box:focus-within {
  background-color: #000;
  background-image: linear-gradient(90deg, rgba(185, 58, 58, 0.85) 0%, #2a0a0a 70%, #000 100%);
  box-shadow: inset 0 0 0 1px var(--rust), 0 0 24px rgba(185, 58, 58, 0.5);
}
.main-interface[data-page="home"] .vn-box:hover .vn-offer,
.main-interface[data-page="home"] .vn-box:focus-within .vn-offer { color: #fff; }
.main-interface[data-page="home"] .vn-box:hover .vn-offer-label,
.main-interface[data-page="home"] .vn-box:focus-within .vn-offer-label { text-shadow: var(--lofi-soft), 0 0 12px rgba(230, 181, 168, 0.7); }
.main-interface:is([data-page="home"], [data-page="works"]) #hdr-filter { display: none; }
.front-flyer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 0 56px;
}
.front-flyer-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  -webkit-user-drag: none;
  user-select: none;
}
a.front-hit { display: block; }
.front-flyer-body {
  padding: calc(14px * var(--scale)) 0;
  font-size: calc(17px * var(--ui));
  line-height: 1.6;
  white-space: normal;
}
.front-flyer-go,
.front-buy--view {
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.front-flyer-go { align-self: flex-start; }
.front-works-body { margin: 0; }
.main-interface[data-mode="small"] .front {
  --front-gutter: 16px;
  --front-title-size: clamp(44px, 12.5vw, 72px);
  inset: var(--hdr-clear) 0 calc(var(--vn-h) + 128px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px var(--front-gutter) 18px;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 8px, #000 calc(100% - 18px), transparent);
}
.main-interface[data-mode="small"] .front::before { background: radial-gradient(ellipse 70% 36% at 50% 30%, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%); }
.main-interface[data-mode="small"] .front-tagline { display: none; }
.main-interface[data-mode="small"] .front-title {
  position: relative;
  left: auto;
  top: auto;
  flex: 0 0 auto;
  max-width: 100%;
  margin-bottom: calc(var(--front-title-size) * -0.3);
}
.main-interface[data-mode="small"] .front-stage {
  position: relative;
  inset: auto;
  flex: 1 1 0;
  min-height: clamp(150px, 40vw, 300px);
}
.main-interface[data-mode="small"] .front-set { left: 50%; width: min(100cqw, 150cqh); transform: translateX(-50%); }
.main-interface[data-mode="small"] .front-hit { inset: 0; }
@container front-stage (max-aspect-ratio: 29 / 20) {
  .main-interface[data-mode="small"] .front-set { width: min(100cqw, calc(100cqh * 1.19)); aspect-ratio: 1.19; }
  .main-interface[data-mode="small"] .front-piece--top { left: 0; top: 0; height: 73.5%; }
  .main-interface[data-mode="small"] .front-piece--bottom { left: 28.2%; top: 1.5%; height: 97%; }
  .main-interface[data-mode="small"] .front-piece--acc { left: 72.3%; top: 56%; height: 44%; }
}
@container front-stage (max-aspect-ratio: 7 / 10) {
  .main-interface[data-mode="small"] .front-set { width: min(100cqw, calc(100cqh * 0.526)); aspect-ratio: 0.526; }
  .main-interface[data-mode="small"] .front-piece--top { left: 9.8%; top: 0; height: 43.1%; }
  .main-interface[data-mode="small"] .front-piece--bottom { left: 0; top: 41%; height: 56.8%; }
  .main-interface[data-mode="small"] .front-piece--acc { left: 63.3%; top: 74.3%; height: 25.7%; }
}
.main-interface[data-mode="small"] .front-deck {
  position: relative;
  z-index: 8;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.front-deck-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}
.front-deck .front-count { font-size: calc(12px * var(--ui)); gap: 7px; color: var(--cream); }
.front-deck .front-arrows { gap: 8px; }
.front-deck .front-arrow {
  width: 44px;
  height: 44px;
  border-color: rgba(243, 234, 216, 0.8);
  background-color: rgba(12, 4, 8, 0.5);
  color: var(--cream);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}
.front-deck .front-arrow svg { width: 18px; height: 18px; }
.front-deck .front-arrow:hover { background-color: rgba(58, 46, 40, 0.9); }
.main-interface[data-mode="small"] .front-menu {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: auto;
  max-height: none;
  gap: 8px;
  padding: 4px 14px 10px;
  border-width: 9px;
  box-shadow: var(--lofi-shadow);
}
.main-interface[data-mode="small"] .front-menu.is-pinned { box-shadow: 5px 5px 0 var(--rust); }
.main-interface[data-mode="small"] .front-head,
.main-interface[data-mode="small"] .front-menu > .front-hint { display: none; }
.main-interface[data-mode="small"] .front-rows { border: 0; overflow: visible; }
.main-interface[data-mode="small"] .front-row { column-gap: 12px; row-gap: 2px; padding: 8px 0; }
.main-interface[data-mode="small"] .front-row-name {
  grid-column: 1;
  min-width: 0;
  font-size: calc(16px * var(--ui));
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main-interface[data-mode="small"] .front-row-end { grid-column: 2; grid-row: 1 / 3; }
.main-interface[data-mode="small"] .front-row-meta {
  font-size: calc(11px * var(--ui));
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main-interface[data-mode="small"] .front-sold { padding: 0 6px; font-size: calc(9px * var(--ui)); }
.main-interface[data-mode="small"] .front-buy { min-height: 44px; padding: 0 12px; font-size: calc(12px * var(--ui)); letter-spacing: 0.04em; }
.main-interface[data-mode="small"] .front-held { min-height: 44px; gap: 5px; font-size: calc(12px * var(--ui)); }
.main-interface[data-mode="small"] .front-bars { gap: 5px; }
.main-interface[data-mode="small"] .front-bar { height: 12px; pointer-events: none; }
.main-interface[data-mode="small"] .front-bar::before { top: 5px; }
.main-interface[data-mode="small"] .front-bar.is-on::before,
.main-interface[data-mode="small"] .front-bar.is-on::after { top: 4px; }
@media (max-width: 600px) {
  .main-interface[data-mode="small"] .front { gap: 10px; }
  .main-interface[data-mode="small"] .front-tag { font-size: clamp(12px, 2.4cqw, 34px); }
  .main-interface[data-mode="small"] .front-row { row-gap: 0; padding: 4px 0; }
  .main-interface[data-mode="small"] .front-row-meta { display: none; }
  .main-interface[data-mode="small"] .front-row-end { grid-row: 1; min-height: 40px; }
  .main-interface[data-mode="small"] .front-row-name { font-size: calc(15px * var(--ui)); }
  .main-interface[data-mode="small"] .front-buy,
  .main-interface[data-mode="small"] .front-held { min-height: 40px; }
}
.main-interface[data-page="home"][data-mode="small"] .vn-offer { padding-right: 34px; }
.main-interface[data-mode="small"] .vn-offer .choice-sparkles i:nth-child(n+3) { display: none; }
.main-interface[data-mode="small"] .vn-offer .choice-sparkles i:nth-child(1) { right: 2px; top: 4px; font-size: 16px; }
.main-interface[data-mode="small"] .vn-offer .choice-sparkles i:nth-child(2) { right: 16px; top: auto; bottom: 6px; font-size: 11px; }
.main-interface[data-mode="small"] .front-flyer { padding: 0; justify-content: center; }
.main-interface[data-mode="small"] .front-flyer-body { padding: 8px 0; font-size: calc(14px * var(--ui)); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .front-look,
  .front-rows,
  .main-interface[data-page="home"] .vn-offer-lead { animation: none; }
}
.main-interface { display: flex; flex-direction: column; height: 100%; position: relative; z-index: 5; background: #000; }
.header.header--floating {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: auto;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 24px;
  gap: 18px;
  z-index: 100;
  pointer-events: none;
}
.header--floating > .header-left,
.header--floating > .header-right {
  display: flex; align-items: center; gap: 14px;
  flex: 1;
  pointer-events: auto;
}
.header--floating > .header-left  { justify-content: flex-start; }
.header--floating > .header-right { justify-content: flex-end; align-self: flex-start; margin-top: 9px; position: relative; }
.header--floating > .header-center {
  flex: 0 0 auto;
  display: flex; align-items: center;
  pointer-events: auto;
}
.logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-text {
  font-family: 'Helvetica Neue', 'Inter', system-ui, sans-serif;
  font-size: calc(18px * var(--ui));
  font-weight: 400;
  font-style: normal;
  color: var(--text-bright);
  letter-spacing: 0.01em;
  text-transform: lowercase !important;
}
.logo-img {
  height: 75px;
  width: auto;
  display: block;
  cursor: pointer;
}
.logo-strobe {
  position: relative;
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
}
.logo-strobe .logo-img {
  position: relative;
  animation: logo-flicker 1.37s steps(1, end) infinite;
}
.logo-ghost,
.logo-flash,
.logo-core,
.logo-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.logo-ghost,
.logo-core,
.logo-sheen {
  -webkit-mask: var(--rx-logo) center / contain no-repeat;
  mask: var(--rx-logo) center / contain no-repeat;
}
.logo-ghost { opacity: 0; mix-blend-mode: screen; }
.logo-ghost--ice { background: #9ae7ff; animation: logo-ghost-ice 0.83s steps(1, end) infinite; }
.logo-ghost--rose { background: #ff9ad5; animation: logo-ghost-rose 1.07s steps(1, end) infinite; }
.logo-flash {
  opacity: 0;
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 12px rgba(154, 231, 255, 0.9));
  animation: logo-strobe 1.6s steps(1, end) infinite;
}
.logo-core { background: #fff; }
.logo-sheen {
  mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, 0.95) 48%, rgba(190, 235, 255, 0.95) 52%, transparent 62%) no-repeat;
  background-size: 280% 100%;
  animation: logo-sheen 1.15s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
.logo-etch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: var(--rx-logo) center / contain no-repeat;
  mask: var(--rx-logo) center / contain no-repeat;
  background: var(--rx-etch-ink) 0 0 / 128px 128px repeat;
  image-rendering: pixelated;
  opacity: 0;
  animation: logo-etch 1.91s steps(1, end) infinite;
}
@keyframes logo-flicker {
  0% { filter: brightness(1); }
  7% { filter: brightness(1.35); }
  9% { filter: brightness(0.7); }
  13% { filter: brightness(1.2); }
  29% { filter: brightness(0.85); }
  33% { filter: brightness(1.4); }
  36% { filter: brightness(1); }
  58% { filter: brightness(0.65); }
  61% { filter: brightness(1.3); }
  64% { filter: brightness(1); }
  82% { filter: brightness(1.45); }
  85% { filter: brightness(0.8); }
  88%, 100% { filter: brightness(1); }
}
@keyframes logo-strobe {
  0% { opacity: 1; }
  3% { opacity: 0; }
  6% { opacity: 1; }
  9% { opacity: 0; }
  12% { opacity: 0.9; }
  15% { opacity: 0; }
  33% { opacity: 1; }
  37% { opacity: 0; }
  50% { opacity: 0.8; }
  53% { opacity: 0; }
  56% { opacity: 1; }
  59% { opacity: 0; }
  62% { opacity: 1; }
  65% { opacity: 0; }
  68% { opacity: 0.9; }
  72% { opacity: 0; }
  86% { opacity: 1; }
  90%, 100% { opacity: 0; }
}
@keyframes logo-ghost-ice {
  0% { transform: translate(-3px, 0); opacity: 0.55; }
  12% { transform: translate(2px, -1px); opacity: 0; }
  25% { transform: translate(-1px, 1px); opacity: 0.7; }
  37% { transform: translate(4px, 0); opacity: 0.3; }
  50% { transform: translate(0, 0); opacity: 0; }
  62% { transform: translate(-4px, -1px); opacity: 0.65; }
  75% { transform: translate(1px, 1px); opacity: 0; }
  87% { transform: translate(-2px, 0); opacity: 0.5; }
  100% { transform: translate(-3px, 0); opacity: 0.55; }
}
@keyframes logo-ghost-rose {
  0% { transform: translate(3px, 1px); opacity: 0.5; }
  14% { transform: translate(-2px, 0); opacity: 0; }
  28% { transform: translate(4px, -1px); opacity: 0.6; }
  42% { transform: translate(1px, 1px); opacity: 0.25; }
  57% { transform: translate(-3px, 0); opacity: 0.55; }
  71% { transform: translate(2px, -1px); opacity: 0; }
  85% { transform: translate(-1px, 1px); opacity: 0.45; }
  100% { transform: translate(3px, 1px); opacity: 0.5; }
}
@keyframes logo-sheen {
  0% { background-position: 100% 0; }
  36%, 100% { background-position: 0% 0; }
}
@keyframes logo-etch {
  0% { opacity: 0.85; background-position: 0 0; }
  5% { opacity: 0; }
  19% { opacity: 1; background-position: 37px 11px; }
  23% { opacity: 0; }
  47% { opacity: 0.7; background-position: -23px 41px; }
  50% { opacity: 0.15; }
  53% { opacity: 1; background-position: 61px -17px; }
  57% { opacity: 0; }
  78% { opacity: 0.9; background-position: -45px -29px; }
  82%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-strobe .logo-img { animation: none; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35)); }
  .logo-ghost,
  .logo-flash,
  .logo-sheen,
  .logo-etch { display: none; }
}
.rx-tabs { display: flex; align-items: center; gap: 14px; }
.rx-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 16px;
  background-color: rgba(40, 38, 37, 0.9);
  background-clip: padding-box;
  border: 9px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: calc(14px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.rx-tab:hover { background-color: rgba(58, 46, 40, 0.96); color: #fff; }
.rx-tab.is-lit,
.rx-tab.is-lit:hover { background-color: var(--parchment); color: var(--rust); }
.nav { display: flex; gap: 2px; margin-left: 16px; }
.nav-btn {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-mid);
  font-family: var(--font);
  font-size: calc(12px * var(--ui)); font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer; transition: all 0.2s;
}
.nav-btn:hover { background: rgba(230, 181, 168,0.08); color: var(--text-bright); }
.nav-btn.active { background: rgba(230, 181, 168,0.15); border-color: var(--panel-border); color: var(--text-bright); }
.main-interface { --hdr-clear: 92px; }
.main-interface[data-mode="small"] { --hdr-clear: 108px; }
.main-content { flex: 1; display: flex; position: relative; overflow: hidden; padding-top: var(--hdr-clear); }
.main-interface[data-mode="small"] .logo-img { height: 46px; }
.main-interface[data-mode="small"] .rx-tabs {
  position: absolute;
  left: 0; right: 0; top: 58px;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
}
.main-interface[data-mode="small"] .rx-tab { gap: 7px; padding: 3px 14px; font-size: calc(12px * var(--ui)); pointer-events: auto; }
.main-interface:is([data-page="shop"], [data-page="home"], [data-page="works"], [data-page="checkout"], [data-page="orders"], [data-page="returns"], [data-page="legal"]) .main-content { padding-top: 0; }
.main-interface:is([data-page="shop"], [data-page="home"], [data-page="works"], [data-page="checkout"], [data-page="orders"], [data-page="returns"], [data-page="legal"]) .main-content::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12%;
  pointer-events: none;
  z-index: 50;
  background: linear-gradient(var(--rx-fade, rgba(0, 0, 0, 0.82)), transparent);
}
.hdr-ctrl {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 6px;
  background: transparent; border: none;
  color: #fff;
  font-family: var(--font); font-size: calc(12px * var(--ui)); font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer; position: relative;
  opacity: 0.82; transition: opacity 0.15s, color 0.15s;
}
.hdr-ctrl:hover { opacity: 1; }
.hdr-ctrl.active { color: var(--accent-pink); opacity: 1; }
.hdr-icon { padding: 0 7px; gap: 4px; }
.hdr-icon svg { display: block; }
.hdr-select { padding: 0; }
.hdr-select select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: none; outline: none;
  color: #fff; font: inherit; letter-spacing: inherit; font-weight: 600;
  cursor: pointer; padding: 0 22px 0 6px;
}
.hdr-select select option { background: #1a0a10; color: #fff; }
.hdr-chevron {
  display: inline-flex; align-items: center; justify-content: center;
  width: 12px; height: 12px; color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.hdr-chevron svg { display: block; width: 100%; height: 100%; }
.hdr-select .hdr-chevron { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }
.hdr-controls { display: flex; align-items: center; gap: 14px; }
.hdr-burger { display: none; }
.hdr-ctrl-label { display: none; }
.hdr-ctrl.has-filters {
  color: var(--accent-pink);
  opacity: 1;
  border-radius: var(--radius);
  box-shadow: 0 0 8px var(--accent-glow), inset 0 0 0 1px var(--accent-soft);
}
.hdr-ctrl.has-filters svg { filter: drop-shadow(0 0 3px var(--accent-glow)); }
.main-interface[data-mode="small"] .hdr-burger { display: inline-flex; }
.main-interface[data-mode="small"] .hdr-controls {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 172px;
  padding: 8px;
  background: var(--chrome-panel-solid);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 200;
}
.main-interface[data-mode="small"] .header-right[data-burger="open"] .hdr-controls {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.main-interface[data-mode="small"] .hdr-controls .hdr-ctrl {
  width: 100%;
  height: 36px;
  justify-content: flex-start;
  padding: 0 10px;
  border-radius: var(--radius);
  opacity: 1;
}
.main-interface[data-mode="small"] .hdr-controls .hdr-ctrl:hover { background: rgba(230, 181, 168, 0.10); }
.main-interface[data-mode="small"] .hdr-controls .hdr-ctrl-label { display: inline; letter-spacing: 0.06em; }
.main-interface[data-mode="small"] .hdr-controls .hdr-select { width: 100%; }
.main-interface[data-mode="small"] .hdr-controls .hdr-select select { width: 100%; padding-left: 10px; }
.main-interface[data-mode="small"] .hdr-controls .hdr-select .hdr-chevron { right: 8px; }
.avatar-area {
  position: absolute; left: -2%; bottom: 0;
  width: 18%; height: calc((100% - 52px) * 0.35);
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none; overflow: visible;
  z-index: 50;
  transition: opacity 0.4s ease, transform 0.5s ease, filter 0.4s ease;
}
.avatar-area.side-right { left: auto; right: 0; }
.avatar-area.mode-small {
  width: 140px;
  height: 170px;
  left: 16px;
  bottom: 160px;
  opacity: 1;
  pointer-events: auto;
}
.avatar-area.mode-small .avatar-img {
  height: 100%;
  width: auto;
  object-position: bottom center;
  filter: none;
}
.avatar-area.dimmed { opacity: 0.35; filter: saturate(0.6) blur(1px); }
.avatar-img {
  height: 98%;
  width: auto;
  object-position: bottom center;
  filter: none;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.5s ease;
}
.stage {
  flex: 1; position: relative;
  display: flex; flex-direction: column;
  padding: 18px 24px 0;
  overflow: hidden;
}
.stage-content {
  flex: 1;
  position: relative;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.stage-content.scoped { pointer-events: none; }
.main-interface[data-scope="on"]::after {
  content: ""; position: absolute; inset: 72px 0 0 0;
  z-index: 4; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.6) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(74, 20, 36, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(40, 10, 20, 0.3) 0%, transparent 60%);
  animation: fog-drift 18s ease-in-out infinite alternate;
}
@keyframes fog-drift {
  0%   { background-position: 0% 0%, 0% 0%, 0% 0%; }
  100% { background-position: 5% 8%, -8% 4%, 6% -6%; }
}
.shop-col {
  position: absolute; top: 0; left: 14%; right: 6%; bottom: 0;
  width: auto;
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto;
  padding-bottom: calc(var(--vn-h) + 96px);
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 181, 168,0.3) transparent;
}
.main-interface[data-mode="small"] .shop-col,
.main-interface[data-mode="small"] .checkout,
.main-interface[data-mode="small"] .returns,
.main-interface[data-mode="small"] .admin {
  width: 100%;
  left: 0;
  right: 0;
}
.main-interface[data-page="shop"] .stage { padding-top: 0; }
.main-interface[data-page="shop"] .shop-col { padding-top: 110px; }
.shop-col::-webkit-scrollbar { width: 6px; }
.shop-col::-webkit-scrollbar-thumb { background: rgba(230, 181, 168,0.3); border-radius: 3px; }
.shop-title-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 4px;
}
.page-title {
  font-family: var(--font-title);
  font-size: calc(20px * var(--scale)); font-weight: 500;
  color: var(--text-bright);
  letter-spacing: 0.18em;
}
.page-subtle {
  font-size: calc(11px * var(--ui));
  color: var(--text-dim);
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}
.filter-chip {
  padding: 5px 11px;
  background: rgba(20,40,70,0.4);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  color: var(--text-mid);
  font-size: calc(11px * var(--ui));
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.04em;
}
.filter-chip:hover { background: rgba(230, 181, 168,0.12); color: var(--text-bright); }
.filter-chip.active {
  background: rgba(230, 181, 168,0.22);
  border-color: var(--accent-cyan);
  color: var(--text-bright);
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: max-content;
  gap: 24px 10px;
  align-content: start;
  align-items: start;
}
.main-interface[data-mode="small"] .shop-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  min-width: 0;
  width: 100%;
}
.card:hover {
  box-shadow: none;
}
.card[draggable="true"] { cursor: grab; }
.card[draggable="true"]:active { cursor: grabbing; }
.card[draggable="true"] .card-img { -webkit-user-drag: none; user-drag: none; }
.card.arch-drag-source { opacity: 0.4; }
.card.arch-drag-over {
  outline: 2px dashed var(--accent-cyan);
  outline-offset: 4px;
}
.card-media {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  min-height: 0;
  position: relative;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
  border-radius: 0;
  box-sizing: border-box;
}
.card-media > * { max-width: 100%; max-height: 100%; }
.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
  transition: opacity 0.28s ease;
}
.card-img-2 {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.card:hover .card-img-2 { opacity: 1; }
.card:has(.card-img-2):hover .card-img:not(.card-img-2) { opacity: 0; }
.card-media::after { content: none; }
.card-tags {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.card-tag {
  background: rgba(0,0,0,0.78);
  border: 1px solid var(--panel-border);
  padding: 4px 9px;
  border-radius: 2px;
  font-size: calc(9px * var(--ui));
  letter-spacing: 0.24em;
  font-weight: 600;
}
.shop-loading {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: calc(11px * var(--ui));
  letter-spacing: 0.2em;
}
.card-tag.hiddenflag { color: #c4884a; border-color: rgba(196, 136, 74, 0.5); }
.card-tag.testflag { color: #e6b5a8; border-color: rgba(230, 181, 168, 0.6); }
.card.adm-hidden { opacity: 0.55; }
.card.adm-hidden:hover { opacity: 0.85; }
.card.sold .card-img:not(.card-img-2),
.card.sold .card-info,
.scope-product-imgbox.sold .scope-product-img { opacity: 0.45; }
.card.sold:hover .card-img-2,
.card.sold:hover .card-info { opacity: 0.7; }
.scope-product-imgbox.sold { position: relative; }
.card.sold .card-media::before,
.card.sold .card-media::after,
.scope-product-imgbox.sold::before,
.scope-product-imgbox.sold::after {
  content: "";
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.6));
}
.card.sold .card-media::after,
.scope-product-imgbox.sold::after {
  inset: 0;
  z-index: 2;
  background: var(--rx-chains) center / cover no-repeat;
  opacity: 0.5;
}
.card.sold .card-media::before,
.scope-product-imgbox.sold::before {
  inset: 27.5% 8%;
  z-index: 3;
  background: var(--rx-sold) center / contain no-repeat;
}
#scope-add.sold { background: #c8201c; border-color: #c8201c; color: #fff4ee; }
.card-info {
  padding: 8px 4px 12px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.card-price {
  font-weight: 700;
  font-size: calc(13px * var(--ui));
  font-family: var(--font-mono);
  color: var(--text-bright);
  font-variant-numeric: tabular-nums;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-name {
  font-size: calc(12px * var(--ui));
  color: var(--text-mid);
  font-family: var(--font);
  line-height: 1.3;
  height: 1.3em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}
.card-brand {
  font-size: calc(10.5px * var(--ui));
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-family: var(--font);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  margin-top: 1px;
}
.card-name-ja {
  font-size: calc(11px * var(--ui));
  color: var(--text-mid);
  opacity: 0.7;
  font-family: var(--font);
  line-height: 1.3;
  height: 1.3em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}
.scope {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}
.scope.active { pointer-events: auto; }
.main-interface { --scope-fog: 0.75; }
.scope-backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%),
    var(--bg-atmosphere);
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: pointer;
}
.scope.active .scope-backdrop { opacity: var(--scope-fog); animation: scopeBackdropIn 0.4s ease both; }
@keyframes scopeBackdropIn { from { opacity: 0; } to { opacity: var(--scope-fog); } }
.scope-reticle {
  position: absolute;
  top: 50%; left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%) scale(0.96);
  pointer-events: none;
  border: none;
  border-radius: var(--radius-lg);
  opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease;
}
.scope-reticle::before, .scope-reticle::after {
  content: ""; position: absolute;
  background: rgba(230, 181, 168,0.3);
}
.scope-reticle::before {
  left: 50%; top: -14px; bottom: -14px; width: 1px; transform: translateX(-50%);
}
.scope-reticle::after {
  top: 50%; left: -14px; right: -14px; height: 1px; transform: translateY(-50%);
}
.scope-corners {
  position: absolute; inset: -1px;
  pointer-events: none;
}
.scope-corners i {
  position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--accent-cyan);
}
.scope-corners i.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.scope-corners i.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.scope-corners i.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.scope-corners i.br { bottom: 0; right: 0; border-left: none; border-top: none; }
.scope.active .scope-reticle { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.scope-window {
  position: absolute;
  top: 50%; left: 50%;
  width: min(82vw, 1380px);
  height: min(72vh, 820px);
  max-height: calc(100vh - 200px);
  transform: translate(-50%, calc(-50% - 70px + 2vh));
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,0.6));
  opacity: 0;
  transition: opacity 0.35s ease 0.1s;
}
.scope-window > .scope-media,
.scope-window > .scope-body {
  background: var(--panel-bg-solid);
  border: 1px solid var(--panel-border-hover);
  overflow: hidden;
}
.scope.active .scope-window { opacity: 1; animation: scopeWindowIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes scopeWindowIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% - 70px + 2vh)) scale(0.985); filter: blur(2px); }
  to   { opacity: 1; transform: translate(-50%, calc(-50% - 70px + 2vh)) scale(1);     filter: blur(0); }
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding: 8px 0 32px;
}
.brand-card {
  text-align: left;
  padding: 22px 20px;
  background: rgba(20,8,12,0.55);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  color: var(--text-bright);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font);
}
.brand-card:hover {
  background: rgba(40,16,22,0.7);
  border-color: var(--panel-border-hover);
  transform: translateY(-1px);
}
.brand-card-name {
  font-family: var(--font-title);
  font-size: calc(22px * var(--scale)); font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-bright);
}
.brand-card-count {
  font-family: var(--font-mono);
  font-size: calc(11px * var(--ui));
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.scope-window.scope-window--single {
  grid-template-columns: 1fr;
}
.main-interface {
  --scope-top: calc(var(--hdr-clear) + 8px);
  --scope-bottom: calc(var(--vn-h) + 14px + 46px + 10px);
}
.scope.scope-product .scope-window {
  top: var(--scope-top);
  bottom: var(--scope-bottom);
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 1560px);
  height: auto;
  max-height: none;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.scope.scope-product.active .scope-window { animation-name: scopeProductIn; }
@keyframes scopeProductIn {
  from { opacity: 0; transform: translateX(-50%) scale(0.985); filter: blur(2px); }
  to   { opacity: 1; transform: translateX(-50%) scale(1);     filter: blur(0); }
}
.scope-media {
  background: linear-gradient(180deg, #15304f, #091527);
  position: relative;
  display: flex; flex-direction: column;
}
.scope-hero {
  flex: 1;
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(230, 181, 168,0.03) 0 10px, rgba(230, 181, 168,0.07) 10px 20px),
    linear-gradient(180deg, var(--water-top), var(--water-bot));
  display: flex; align-items: center; justify-content: center;
  color: rgba(200,220,240,0.4);
  font-family: var(--font-mono);
  font-size: calc(11px * var(--ui)); letter-spacing: 0.15em;
  overflow: hidden;
}
.scope-hero.has-img { background: #000; }
.scope-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.scope-body {
  display: flex; flex-direction: column;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}
.scope-head {
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--panel-border);
  display: flex; align-items: start; justify-content: space-between;
}
.scope-name {
  font-family: var(--font-title);
  font-size: calc(22px * var(--scale)); font-weight: 500;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  text-wrap: pretty;
  line-height: 1.15;
}
.scope-close {
  display: none;
  position: absolute; top: 10px; right: 12px;
  width: 28px; height: 28px;
  background: var(--chrome-panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: var(--text-mid);
  cursor: pointer;
  z-index: 5;
}
.scope-close:hover { color: var(--text-bright); border-color: var(--panel-border-hover); }
.scope-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 22px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 181, 168,0.3) transparent;
}
.scope-scroll::-webkit-scrollbar { width: 6px; }
.scope-scroll::-webkit-scrollbar-thumb { background: rgba(230, 181, 168,0.3); border-radius: 3px; }
.scope-section { margin-bottom: 16px; }
.scope-section h4 {
  font-size: calc(10px * var(--ui)); font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--panel-border);
}
.size-btn {
  min-width: 44px; padding: 8px 10px;
  background: rgba(20,40,70,0.4);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  color: var(--text-mid);
  font-family: var(--font);
  font-size: calc(12px * var(--ui)); font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.size-btn:hover { background: rgba(230, 181, 168,0.1); color: var(--text-bright); }
.size-btn.active {
  background: rgba(196, 216, 154,0.18);
  border-color: var(--ok);
  color: var(--ok);
}
.measure-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono); font-size: calc(22px * var(--scale));
}
.measure-table th, .measure-table td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(230, 181, 168,0.08);
  text-align: left;
}
.measure-table th { color: var(--text-dim); font-weight: 500; letter-spacing: 0.1em; }
.measure-table td { color: var(--text-bright); }
.measure-table tr:last-child td { border-bottom: none; }
.spec-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 11px;
  font-size: calc(11px * var(--ui));
}
.spec-grid .k { color: var(--text-dim); letter-spacing: 0.04em; }
.spec-grid .v { color: var(--text-bright); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.scope-cta {
  padding: 14px 22px;
  border-top: 1px solid var(--panel-border);
  display: flex; gap: 8px;
  background: rgba(5,11,20,0.5);
}
.btn {
  flex: 1;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: calc(12px * var(--ui)); font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.btn.primary {
  background: linear-gradient(135deg, var(--ok) 0%, #4f9a72 100%);
  color: #07140d;
  border-color: var(--ok);
}
.btn.primary:hover { filter: brightness(1.1); box-shadow: 0 0 22px rgba(196, 216, 154,0.35); }
.btn.ghost {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--text-mid);
}
.btn.ghost:hover { color: var(--text-bright); border-color: var(--panel-border-hover); }
.btn.wide { flex: 2; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; box-shadow: none; }
.scope.scope-product .scope-window {
  background: transparent;
  border: none;
}
.scope.scope-product .scope-window > .scope-media {
  background: transparent !important;
  border: none !important;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  position: relative;
}
.scope-product-stage {
  flex: 1;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
}
.scope-product-imgbox {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scope-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}
.scope-product-empty {
  font-family: var(--font-mono);
  font-size: calc(13px * var(--ui));
  letter-spacing: 0.2em;
  color: rgba(255, 248, 236, 0.7);
  text-align: center;
  padding: 24px;
  border: 1px dashed rgba(255, 248, 236, 0.35);
  border-radius: 4px;
}
.scope-product-chev {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 58%;
  min-height: 96px;
  padding: 0;
  border: none;
  background: none;
  color: rgba(255, 248, 236, 0.6);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease, transform 0.12s ease, opacity 0.2s ease;
}
.scope-product-chev svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}
.scope-product-chev:hover:not([disabled]) { color: rgba(255, 248, 236, 0.98); }
.scope-product-chev:active:not([disabled]) { transform: scale(0.9); }
.scope-product-chev[disabled] { opacity: 0; pointer-events: none; }
.scope-product-segs {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  width: min(60%, 280px);
  margin: 10px auto 0;
}
.scope-product-seg {
  flex: 1 1 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 248, 236, 0.22);
  transition: background 0.2s ease;
}
.scope-product-seg.is-active {
  background: rgba(255, 248, 236, 0.92);
}
.scope-product-summon { display: none; }
.main-interface[data-mode="small"] .scope.scope-product .scope-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: var(--scope-top); left: 0; bottom: calc(var(--vn-h) + 26px + 8px);
  transform: none;
  width: 100%;
  height: auto;
  max-height: none;
  gap: 18px;
  padding: 0 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: none;
}
.main-interface[data-mode="small"] .scope.scope-product .scope-window > .scope-media {
  order: 1;
  flex: 0 0 auto;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.main-interface[data-mode="small"] .scope.scope-product .scope-window > .scope-body {
  order: 2;
  flex: 0 0 auto;
  overflow: visible;
}
.main-interface[data-mode="small"] .scope.scope-product .scope-product-stage { flex: 1 1 auto; min-height: 0; }
.main-interface[data-mode="small"] .scope.scope-product .scope-product-imgbox { height: 100%; }
.main-interface[data-mode="small"] .scope.scope-product .scope-product-img { width: 100%; height: 100%; object-fit: contain; }
.main-interface[data-mode="small"] .scope.scope-product .scope-product-chev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 42%;
  min-height: 80px;
  width: 30px;
  z-index: 2;
}
.main-interface[data-mode="small"] .scope.scope-product .scope-product-chev:active:not([disabled]) { transform: translateY(-50%) scale(0.9); }
.main-interface[data-mode="small"] .scope.scope-product .scope-product-chev:first-of-type { left: 2px; }
.main-interface[data-mode="small"] .scope.scope-product .scope-product-chev:last-of-type { right: 2px; }
.main-interface[data-mode="small"] .scope.scope-product .scope-product-segs { margin: 10px auto 0; }
.main-interface[data-mode="small"] .scope-product-summon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  margin: 12px auto 0;
  padding: 7px 16px;
  background: var(--parchment);
  background-clip: padding-box;
  border: 9px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  color: var(--vn-ink);
  font-family: var(--font);
  font-size: calc(11px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.main-interface[data-mode="small"] .scope-product-summon svg { width: 12px; height: 12px; }
.main-interface[data-mode="small"] .scope.scope-product .scope-window > .scope-body { margin-bottom: 100px; }
.main-interface[data-mode="small"] .scope-product-plate { padding: 18px 18px 14px; scroll-margin-top: 0; scroll-margin-bottom: 100px; }
.main-interface[data-mode="small"] .scope-product-cta { justify-content: flex-end; }
.main-interface[data-mode="small"] .scope-product-cta .btn.ghost { flex: 0 0 auto; }
.main-interface[data-mode="small"] .scope-product-cta .btn.wide { flex: 0 1 54%; }
.scope.scope-product .scope-window > .scope-body {
  position: relative;
  background: transparent;
  border: none;
  color: var(--vn-ink);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.scope.scope-product .scope-window > .scope-body::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: -5px;
  border-style: solid;
  border-width: 14px;
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='160'%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0.35' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0.60'/%3E%3Cstop offset='0.55' stop-color='%23ced2d8' stop-opacity='0.60'/%3E%3Cstop offset='1' stop-color='%23969ba4' stop-opacity='0.60'/%3E%3C/linearGradient%3E%3Cpath d='M 1 148 L 1 12 Q 1 1 12 1 L 388 1 Q 399 1 399 12 L 399 148 Q 399 159 388 159 L 12 159 Q 1 159 1 148 Z' fill='url(%23a)' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-image-slice: 14 fill;
  border-image-repeat: stretch;
  border-image-width: 14px;
}
.scope-product-plate {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--vn-plate);
  background-clip: padding-box;
  border: 15px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  border-radius: var(--radius-lg);
  padding: 22px 26px 16px;
  scroll-margin-top: var(--scope-top);
}
.scope-product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--vn-rule);
  margin-bottom: 18px;
}
.scope-product-name {
  font-size: calc(33px * var(--scale));
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--vn-ink);
}
.scope-product-price {
  font-family: var(--font-mono);
  font-size: calc(26px * var(--scale));
  font-variant-numeric: tabular-nums;
  color: var(--vn-ink-soft);
  white-space: nowrap;
}
.scope-product-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 4px;
}
.scope-product-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px dashed var(--vn-rule);
  padding-bottom: 10px;
}
.scope-product-k {
  font-family: var(--font-mono);
  font-size: calc(14px * var(--ui));
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vn-ink-soft);
  flex: 0 0 110px;
}
.scope-product-v {
  font-size: calc(20px * var(--scale));
  font-weight: 500;
  color: var(--vn-ink);
  flex: 1;
  text-align: right;
}
.scope-product-desc {
  font-size: calc(17px * var(--ui));
  line-height: 1.6;
  color: var(--vn-ink);
  margin-top: 4px;
  white-space: pre-wrap;
}
.scope-product-cta {
  margin-top: 20px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--vn-rule);
  background: transparent;
  display: flex;
  gap: 12px;
}
.scope.scope-product .scope-product-cta .btn.ghost {
  background: transparent;
  border: 1px solid var(--vn-ink-soft);
  color: var(--vn-ink-soft);
}
.scope.scope-product .scope-product-cta .btn.ghost:hover {
  background: var(--vn-glass);
  color: var(--vn-ink);
}
.scope.scope-product .scope-close {
  color: var(--cream);
  font-size: calc(28px * var(--scale));
}
@media (max-width: 960px) {
  .scope-product-name { font-size: calc(26px * var(--scale)); }
  .scope-product-price { font-size: calc(21px * var(--scale)); }
  .scope-product-k { flex-basis: 86px; font-size: calc(12px * var(--ui)); }
  .scope-product-v { font-size: calc(17px * var(--ui)); }
  .scope-product-desc { font-size: calc(15px * var(--ui)); }
}
@media (max-width: 640px) {
  .scope.active .scope-window { animation: none; }
  .scope-window {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 0; left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-height: 100%;
    gap: 12px;
    padding: 92px 10px 150px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .scope-window > .scope-body { order: 1; flex: 0 0 auto; overflow: visible; min-height: 0; }
  .scope-window > .scope-media { order: 2; flex: 0 0 auto; height: 56vh; min-height: 220px; }
  .scope-body { overflow: visible; }
  .scope-head { position: static; }
  .scope-scroll { overflow: visible; flex: 0 0 auto; }
}
.scope-product-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.scope-product-name-ja {
  font-size: calc(18px * var(--ui));
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--vn-ink-soft);
}
.scope-window.scope-window--filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(380px, calc(100vw - 32px));
  height: auto;
  max-height: calc(100% - var(--hdr-clear) - var(--vn-h) - 90px);
  filter: none;
}
.ff-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  background-color: var(--coffee);
  border: 1px solid var(--tangerine);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: calc(11px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.18em;
  box-shadow: var(--lofi-shadow);
}
.ff-head svg { flex: 0 0 auto; }
.ff-title { flex: 1 1 auto; }
.ff-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--driftwood);
  font-size: calc(20px * var(--scale));
  line-height: 1;
  cursor: pointer;
}
.ff-x:hover { color: var(--cream); }
.ff-panel {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--coffee);
  border: 1px solid var(--panel-border);
  color: var(--cream);
}
.ff-scroll {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 12px 4px;
}
.ff-section { display: flex; flex-direction: column; gap: 6px; }
.ff-label {
  padding: 2px 0 4px;
  border-bottom: 1px solid var(--panel-border);
  font-family: var(--font-display);
  font-size: calc(9px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--driftwood);
}
.ff-search,
.ff-range input {
  width: 100%;
  padding: 7px 10px;
  background: rgba(20, 40, 70, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: 0;
  outline: none;
  color: var(--cream);
  font-family: var(--font);
  font-size: calc(11px * var(--ui));
}
.ff-search:focus,
.ff-range input:focus { border-color: var(--tangerine); background: rgba(20, 40, 70, 0.6); }
.ff-search::placeholder,
.ff-range input::placeholder { color: rgba(167, 151, 135, 0.85); }
.ff-range {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: calc(10px * var(--ui));
  color: var(--driftwood);
}
.ff-range input { flex: 1 1 0; min-width: 0; padding: 4px 6px; font-family: var(--font-mono); font-size: calc(10px * var(--ui)); }
.ff-dash { color: var(--text-dim); }
.ff-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ff-chip {
  padding: 4px 9px;
  background: rgba(20, 40, 70, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  color: var(--driftwood);
  font-family: var(--font);
  font-size: calc(10px * var(--ui));
  letter-spacing: 0.04em;
  text-transform: lowercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ff-chip:hover { background: rgba(230, 181, 168, 0.12); color: var(--cream); }
.ff-chip.active { background: rgba(230, 181, 168, 0.22); border-color: var(--tangerine); color: var(--cream); }
.ff-empty { font-size: calc(10px * var(--ui)); font-style: italic; color: var(--text-dim); }
.ff-foot { flex: 0 0 auto; display: flex; gap: 8px; padding: 10px 12px 12px; }
.ff-clear,
.ff-apply {
  margin: 0;
  padding: 7px 10px;
  font-family: var(--font-display);
  font-size: calc(10px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: pointer;
}
.ff-clear { flex: 1 1 0; background: transparent; border: 1px solid var(--panel-border); color: var(--driftwood); }
.ff-clear:hover { color: var(--cream); border-color: var(--tangerine); }
.ff-apply { flex: 2 1 0; background: var(--rust); border: 1px solid var(--rust); color: var(--cream); font-weight: 700; box-shadow: 3px 3px 0 rgba(12, 4, 8, 0.55); }
.ff-apply:hover { background: var(--brick); border-color: var(--brick); }
.main-interface[data-mode="small"] .scope-window.scope-window--filter {
  top: calc(var(--hdr-clear) + 8px);
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(420px, calc(100% - 20px));
  height: auto;
  max-height: calc(100% - var(--hdr-clear) - var(--vn-h) - 150px);
  padding: 0;
  overflow: visible;
  transform: translateX(-50%);
}
.main-interface[data-mode="small"] .scope.active .scope-window--filter { animation: ffDrop 0.3s ease both; }
@keyframes ffDrop {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translateX(-50%); }
}
.main-interface[data-mode="small"] .ff-chip { padding: 6px 11px; font-size: calc(12px * var(--ui)); }
.main-interface[data-mode="small"] .ff-search,
.main-interface[data-mode="small"] .ff-range input { font-size: calc(16px * var(--ui)); }
.main-interface[data-mode="small"] .ff-clear,
.main-interface[data-mode="small"] .ff-apply { min-height: 44px; font-size: calc(11px * var(--ui)); }
.main-interface {
  --vn-lines: 2;
  --vn-font: 18px;
  --vn-box-lh: 27px;
  --vn-leading: 3px;
  --vn-border: 15px;
  --vn-pad-top: 11px;
  --vn-pad-bottom: 15px;
  --vn-text-h: calc(var(--vn-lines) * var(--vn-box-lh));
  --vn-h: calc(var(--vn-text-h) + var(--vn-pad-top) + var(--vn-pad-bottom) + 2 * var(--vn-border));
}
.main-interface[data-mode="small"] {
  --vn-font: 15px;
  --vn-box-lh: 24px;
}
.vn-dock {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: transparent;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  padding: 12px 24px 14px 9%;
  gap: 14px;
  pointer-events: none;
  transition: padding-left 0.3s ease;
}
.vn-shell {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}
.avatar-area.mode-small::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: -8px;
  border-style: solid;
  border-width: 14px;
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='160'%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0.35' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0.60'/%3E%3Cstop offset='0.55' stop-color='%23ced2d8' stop-opacity='0.60'/%3E%3Cstop offset='1' stop-color='%23969ba4' stop-opacity='0.60'/%3E%3C/linearGradient%3E%3Cpath d='M 1 148 L 1 12 Q 1 1 12 1 L 388 1 Q 399 1 399 12 L 399 148 Q 399 159 388 159 L 12 159 Q 1 159 1 148 Z' fill='url(%23a)' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-image-slice: 14 fill;
  border-image-repeat: stretch;
  border-image-width: 14px;
}
.vn-shell::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  left: -5px;
  right: -5px;
  top: -46px;
  bottom: -5px;
  border-style: solid;
  border-width: 57px 14px 14px 190px;
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='160'%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0.35' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0.60'/%3E%3Cstop offset='0.55' stop-color='%23ced2d8' stop-opacity='0.60'/%3E%3Cstop offset='1' stop-color='%23969ba4' stop-opacity='0.60'/%3E%3C/linearGradient%3E%3Cpath d='M 1 149 L 1 53 Q 1 43 11 43 L 24 43 Q 32 43 32 35 L 32 13 Q 32 1 44 1 L 156 1 Q 168 1 168 13 L 168 31 Q 168 43 180 43 L 387 43 Q 399 43 399 55 L 399 147 Q 399 159 387 159 L 13 159 Q 1 159 1 147 Z' fill='url(%23a)' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-image-slice: 57 14 14 190 fill;
  border-image-repeat: stretch;
  border-image-width: 57px 14px 14px 190px;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.vn-shell:has(.vn-box.hidden)::before { opacity: 0; }
.vn-controls::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  left: -5px;
  right: -5px;
  top: -5px;
  bottom: -5px;
  border-style: solid;
  border-width: 14px;
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='160'%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0.35' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0.60'/%3E%3Cstop offset='0.55' stop-color='%23ced2d8' stop-opacity='0.60'/%3E%3Cstop offset='1' stop-color='%23969ba4' stop-opacity='0.60'/%3E%3C/linearGradient%3E%3Cpath d='M 1 148 L 1 12 Q 1 1 12 1 L 388 1 Q 399 1 399 12 L 399 148 Q 399 159 388 159 L 12 159 Q 1 159 1 148 Z' fill='url(%23a)' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-image-slice: 14 fill;
  border-image-repeat: stretch;
  border-image-width: 14px;
}
.main-interface[data-mode="small"] .vn-dock {
  --sm-gutter: clamp(18px, 4vw, 24px);
  padding-left: var(--sm-gutter);
  padding-right: var(--sm-gutter);
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
.main-interface[data-mode="small"] .vn-shell::before {
  left: -2px;
  right: -5px;
  top: -126px;
  bottom: -5px;
  border-width: 137px 14px 14px 152px;
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='260'%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0.35' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0.60'/%3E%3Cstop offset='0.55' stop-color='%23ced2d8' stop-opacity='0.60'/%3E%3Cstop offset='1' stop-color='%23969ba4' stop-opacity='0.60'/%3E%3C/linearGradient%3E%3Cpath d='M 1 247 L 1 33 Q 1 23 11 23 L 78 23 Q 88 23 88 33 L 88 108 Q 88 116 90.5 116 Q 93 116 93 108 L 93 71 Q 93 61 103 61 L 123 61 Q 133 61 133 71 L 133 110 Q 133 122 145 122 L 387 122 Q 399 122 399 134 L 399 247 Q 399 259 387 259 L 13 259 Q 1 259 1 247 Z' fill='url(%23a)' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-image-slice: 137 14 14 152 fill;
  border-image-width: 137px 14px 14px 152px;
}
.vn-box {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: var(--vn-h);
  min-height: 0;
  max-height: var(--vn-h);
  padding: var(--vn-pad-top) 24px var(--vn-pad-bottom);
  background: var(--vn-fill);
  background-clip: padding-box;
  border: var(--vn-border) solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  border-image-outset: 0 2px 2px;
  border-radius: var(--radius-lg);
  box-shadow:
    0 10px 36px rgba(0,0,0,0.5);
  pointer-events: auto;
  cursor: pointer;
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.3s ease;
}
.vn-box.hidden { opacity: 0; transform: scaleY(0.2); pointer-events: none; }
.vn-box.vn-cut,
.vn-box.vn-cut *,
.vn-shell:has(.vn-box.vn-cut)::before { transition: none !important; }
.vn-box.has-portrait.hidden {
  opacity: 1;
  transform: none;
  background: transparent;
  border-color: transparent;
  border-image: none;
  box-shadow: none;
}
.vn-box.has-portrait.hidden .vn-text,
.vn-box.has-portrait.hidden .vn-cursor { opacity: 0; transition: opacity 0.2s ease; }
.vn-box.has-portrait.hidden .vn-cursor { display: none; }
.vn-box.has-portrait.hidden .vn-name { opacity: 0; transition: opacity 0.18s ease; }
.vn-box.has-portrait.hidden .vn-head { transform: translateY(calc(var(--vn-h) + 10px)); }
.vn-portrait {
  position: static;
  flex: 0 0 auto;
  width: 100px;
  height: 140px;
  background: var(--vn-surface);
  background-clip: padding-box;
  border: 14px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  border-radius: 6px;
  overflow: hidden;
  display: none;
  pointer-events: auto;
  cursor: pointer;
}
.vn-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: scale(1.6); transform-origin: top center; }
.vn-box.has-portrait { padding-left: 24px; }
.vn-box.has-portrait .vn-portrait { display: block; }
.vn-head {
  position: absolute;
  bottom: 100%;
  left: 16px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin: 0;
  z-index: 5;
  transition: transform 0.35s ease;
}
.vn-name {
  display: inline-block;
  flex: 0 0 auto;
  padding: 5px 16px;
  background: var(--parchment);
  background-clip: padding-box;
  border: 9px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  border-radius: 5px 5px 0 0;
  font-family: var(--font-title);
  font-size: 22px; font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--vn-name-ink);
  margin: 0;
}
.vn-box.has-portrait .vn-head { bottom: calc(100% + 2px); left: -12px; }
.vn-box.has-portrait .vn-name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  border-radius: 5px;
  padding: 10px 5px;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.vn-text {
  font-size: var(--vn-font);
  letter-spacing: 0.01em;
  color: var(--vn-ink);
  font-weight: 400;
  text-wrap: pretty;
  align-self: stretch;
  flex: 0 0 auto;
  height: var(--vn-text-h);
  min-height: 0;
  overflow: visible;
}
.vn-lines { line-height: calc(1em + var(--vn-leading)); }
.vn-cursor {
  position: absolute;
  right: 10px; bottom: 3px;
  font-size: 10px;
  line-height: 1;
  color: var(--accent);
  animation: blink 1.3s ease-in-out infinite;
}
.vn-box.vn-typing .vn-cursor { opacity: 0; animation: none; }
.main-interface[data-page="shop"] .shop-col {
  padding-right: 24px;
}
.vn-controls {
  display: flex; flex-direction: column;
  gap: 4px;
  position: relative;
  pointer-events: auto;
  flex: 0 0 auto;
  width: 80px;
  height: var(--vn-h);
  align-self: flex-start;
}
.vn-ctrl {
  flex: 1 1 0;
  min-height: 0;
  padding: 7px 10px;
  background: var(--parchment);
  background-clip: padding-box;
  border: 9px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  border-radius: var(--radius);
  color: var(--vn-ink);
  font-family: var(--font);
  font-size: min(calc(10px * var(--ui)), 12px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase;
}
.vn-ctrl:hover { background: rgba(156, 74, 58,0.10); color: var(--vn-ink); border-color: var(--panel-border-hover); }
.vn-ctrl.active { background: rgba(156, 74, 58,0.16); color: var(--accent); border-color: var(--accent); }
.vn-ctrl .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--vn-ink-soft); }
.vn-ctrl.active .dot { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.vn-ctrl svg { flex: 0 0 auto; }
.vn-ctrl.is-hidden { display: none; }
.main-interface[data-mode="full"] .vn-controls { width: 160px; }
.main-interface[data-mode="small"] .vn-controls { width: 38px; gap: 6px; }
.main-interface[data-mode="small"] .vn-ctrl { padding: 6px 0; border-width: 5px; }
.main-interface[data-mode="small"] .vn-ctrl svg { width: 15px; height: 15px; }
.main-interface[data-mode="small"] .vn-portrait { width: 80px; height: 112px; border-width: 6px; }
.main-interface[data-mode="small"] .vn-box.has-portrait .vn-name { font-size: 16px; padding: 7px 5px; line-height: 1; white-space: nowrap; border-width: 5px; }
.main-interface[data-mode="small"] .vn-shell { margin-left: -16px; }
.main-interface[data-mode="small"] .vn-ctrl { justify-content: center; padding-left: 0; padding-right: 0; gap: 0; }
.main-interface[data-mode="small"] .vn-ctrl span { display: none; }
.choices {
  position: absolute;
  left: 180px; right: 0;
  top: 104px;
  bottom: calc(var(--vn-h) + 40px);
  overflow-y: auto;
  z-index: 9998;
  display: flex; flex-direction: column; gap: 14px;
  pointer-events: none;
  padding: 0 40px 0 0;
}
.main-interface[data-mode="small"] .choices {
  left: 0; right: 0;
  top: calc(var(--hdr-clear) + 8px);
  bottom: calc(var(--vn-h) + 125px);
  padding: 0 12px;
}
.choices.visible { pointer-events: auto; }
.choices-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 5px;
}
.choices-panel::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 0;
  border-style: solid;
  border-width: 14px;
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='160'%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0.35' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0.60'/%3E%3Cstop offset='0.55' stop-color='%23ced2d8' stop-opacity='0.60'/%3E%3Cstop offset='1' stop-color='%23969ba4' stop-opacity='0.60'/%3E%3C/linearGradient%3E%3Cpath d='M 1 148 L 1 12 Q 1 1 12 1 L 388 1 Q 399 1 399 12 L 399 148 Q 399 159 388 159 L 12 159 Q 1 159 1 148 Z' fill='url(%23a)' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-image-slice: 14 fill;
  border-image-repeat: stretch;
  border-image-width: 14px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.choices.visible .choices-panel::before { opacity: 1; }
.choices.dismissing .choices-panel::before { opacity: 0; }
.choice {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  width: 100%;
  min-height: 85px;
  padding: 22px 32px;
  background: var(--vn-fill);
  background-clip: padding-box;
  border: 15px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  color: var(--vn-ink);
  font-family: var(--font);
  font-size: calc(26px * var(--scale));
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: transform 0.42s cubic-bezier(.2,.7,.2,1), opacity 0.32s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.choice {
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}
.choices.visible .choice {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.choice .lead {
  font-family: var(--font-mono);
  font-size: calc(15px * var(--ui));
  color: var(--accent);
  letter-spacing: 0.22em;
}
.choice-heading {
  padding: 8px 20px 0;
  font-family: var(--font-title);
  font-size: calc(12px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
}
.choice--sparkle {
  background: linear-gradient(90deg, rgba(201, 138, 85, 0.22), rgba(201, 138, 85, 0)) , var(--vn-fill);
  background-clip: padding-box, padding-box;
}
.choice--sparkle .lead {
  color: var(--vn-name-ink);
  text-shadow: 0 0 10px var(--accent-glow), 0 0 2px var(--accent-glow);
  animation: sparkle-lead 2.6s ease-in-out infinite;
}
.choice-sparkles { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.choice-sparkles i {
  position: absolute;
  font-style: normal;
  color: var(--vn-name-ink);
  text-shadow: 0 0 10px var(--accent-glow), 0 0 3px var(--accent-glow);
  opacity: 0;
  animation: sparkle 2.2s ease-in-out infinite;
}
.choice-sparkles i::before { content: '✦'; }
.choice-sparkles i:nth-child(1) { right: 34px; top: 12px; font-size: 22px; }
.choice-sparkles i:nth-child(2) { right: 84px; bottom: 12px; font-size: 14px; animation-delay: 0.7s; }
.choice-sparkles i:nth-child(3) { right: 62px; top: 44%; font-size: 10px; animation-delay: 1.4s; }
.choice-sparkles i:nth-child(4) { right: 150px; top: 16px; font-size: 12px; animation-delay: 1.1s; }
.choice-sparkles i:nth-child(5) { right: 20px; bottom: 16px; font-size: 16px; animation-delay: 0.35s; }
@keyframes sparkle {
  0%, 100% { opacity: 0.2; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.25) rotate(25deg); }
}
@keyframes sparkle-lead {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
.choices.visible .choice:nth-child(1) { transition-delay: 0.04s; }
.choices.visible .choice:nth-child(2) { transition-delay: 0.14s; }
.choices.visible .choice:nth-child(3) { transition-delay: 0.24s; }
.choices.visible .choice:nth-child(4) { transition-delay: 0.34s; }
.choices.dismissing .choice {
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(.5,.0,.75,.0), opacity 0.22s ease;
}
.choices.dismissing .choice:nth-child(1) { transition-delay: 0s; }
.choices.dismissing .choice:nth-child(2) { transition-delay: 0.05s; }
.choices.dismissing .choice:nth-child(3) { transition-delay: 0.10s; }
.choices.dismissing .choice:nth-child(4) { transition-delay: 0.15s; }
.choice:hover,
.choice:focus,
.choice:focus-visible {
  background: linear-gradient(90deg, rgba(185,58,58,0.85) 0%, #2a0a0a 70%, #000 100%) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  opacity: 1 !important;
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px rgba(185,58,58,0.5) !important;
  text-shadow: 0 0 12px rgba(230,181,168,0.7) !important;
  outline: none;
}
.choices-backdrop {
  position: absolute; inset: 0;
  z-index: 1;
  background: transparent;
  cursor: pointer;
}
.alert-layer {
  position: fixed; inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.alert-layer.visible { opacity: 1; }
.price-alert-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.62);
}
.price-alert-wrap {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 48px));
  padding: 0 24px;
}
.price-alert {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 32px;
  background: var(--vn-surface);
  background-clip: padding-box;
  border: 15px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  border-radius: var(--radius-lg);
  color: var(--vn-ink);
  font-family: var(--font);
  transform: translateX(-24px);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(.2,.7,.2,1), opacity 0.32s ease;
}
.alert-layer.visible .price-alert {
  transform: translateX(0);
  opacity: 1;
}
.price-alert-kicker {
  font-family: var(--font-mono);
  font-size: calc(13px * var(--ui));
  letter-spacing: 0.22em;
  color: var(--accent);
}
.price-alert-name {
  font-size: calc(24px * var(--scale));
  line-height: 1.3;
  word-break: break-word;
}
.price-alert-prices {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: calc(26px * var(--scale));
}
.price-alert-prices .was {
  color: var(--vn-ink-soft);
  text-decoration: line-through;
}
.price-alert-prices .arrow { color: var(--vn-ink-soft); font-size: calc(20px * var(--scale)); }
.price-alert-up .now { color: var(--accent); }
.price-alert-down .now { color: var(--vn-ink); }
.price-alert-ok {
  align-self: flex-end;
  min-width: 120px;
  padding: 12px 28px;
  background: var(--vellum);
  border: 1px solid var(--accent);
  border-left: 3px solid var(--accent);
  color: var(--vn-ink);
  font-family: var(--font);
  font-size: calc(18px * var(--ui));
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.price-alert-ok:hover,
.price-alert-ok:focus,
.price-alert-ok:focus-visible {
  background: linear-gradient(90deg, rgba(185,58,58,0.85) 0%, #2a0a0a 70%, #000 100%);
  border-color: var(--accent);
  border-left-width: 5px;
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px rgba(185,58,58,0.5);
  text-shadow: 0 0 12px rgba(230,181,168,0.7);
  outline: none;
}
.price-alert-message {
  font-size: calc(15px * var(--ui));
  line-height: 1.6;
  color: var(--vn-ink-soft);
  white-space: pre-wrap;
}
.price-alert-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.price-alert-btn {
  min-width: 120px;
  padding: 12px 28px;
  background: var(--vellum);
  border: 1px solid var(--accent);
  border-left: 3px solid var(--accent);
  color: var(--vn-ink);
  font-family: var(--font);
  font-size: calc(18px * var(--ui));
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.price-alert-btn:hover,
.price-alert-btn:focus,
.price-alert-btn:focus-visible {
  background: linear-gradient(90deg, rgba(185,58,58,0.85) 0%, #2a0a0a 70%, #000 100%);
  border-color: var(--accent);
  border-left-width: 5px;
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px rgba(185,58,58,0.5);
  text-shadow: 0 0 12px rgba(230,181,168,0.7);
  outline: none;
}
.price-alert-btn--cancel {
  border-left-color: var(--vn-line);
  color: var(--vn-ink-soft);
}
.price-alert-btn--cancel:hover,
.price-alert-btn--cancel:focus,
.price-alert-btn--cancel:focus-visible {
  background: linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.62) 100%);
  border-color: var(--panel-border-hover);
  border-left-color: var(--panel-border-hover);
  box-shadow: none;
  color: var(--text-bright);
  text-shadow: none;
}
.main-interface[data-mode="small"] .avatar-area,
.avatar-area.mode-small { display: none !important; }
@media (max-width: 960px) {
  .main-interface[data-drawer="open"] .choices,
  .main-interface[data-account="open"] .choices { display: none; }
}
.main-interface[data-drawer="open"] .vn-dock,
.main-interface[data-drawer="open"] .choices,
.main-interface[data-account="open"] .vn-dock,
.main-interface[data-account="open"] .choices {
  right: min(440px, 92vw);
  transition: right 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.vn-dock, .choices {
  transition: right 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer-backdrop {
  position: absolute; inset: 0; z-index: 109;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  width: min(440px, 92vw);
  background-color: var(--vn-plate);
  background-image: var(--rx-etch-ink);
  background-size: var(--lofi-etch);
  background-clip: padding-box;
  border-left: 15px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  color: var(--vn-ink);
  box-shadow: -7px 0 0 rgba(12, 4, 8, 0.5);
  transform: translateX(calc(100% + 12px));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px dashed var(--vn-rule);
}
.drawer-title {
  font-family: var(--font-display);
  font-size: calc(13px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sepia);
}
.drawer-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--espresso);
  box-shadow: 2px 2px 0 rgba(58, 46, 40, 0.3);
  color: var(--espresso);
  cursor: pointer;
}
.drawer-close:hover { background: rgba(58, 46, 40, 0.1); }
.drawer-close:focus-visible { outline: 2px dashed var(--espresso); outline-offset: 3px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 22px; }
.drawer-foot { padding: 14px 22px 22px; border-top: 1px dashed var(--vn-rule); }
.drawer-foot .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: calc(14px * var(--ui));
  color: var(--walnut);
}
.drawer-foot .row > span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--espresso);
}
.drawer-foot .row > span.row-note:last-child {
  font-family: var(--font);
  font-style: italic;
  font-weight: 500;
  color: var(--walnut);
}
.drawer-foot .row.total { margin-top: 8px; padding-top: 12px; border-top: 1.5px solid var(--espresso); }
.drawer-foot .row.total > span:first-child {
  font-family: var(--font-display);
  font-size: calc(13px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--espresso);
}
.drawer-foot .row.total > span:last-child { font-size: calc(19px * var(--ui)); font-weight: 700; }
.drawer-foot #drawer-checkout { width: 100%; margin-top: 16px; }
.cart-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--vn-rule);
}
.cart-line .thumb {
  display: block;
  width: 64px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(243, 234, 216, 0.7);
  border: 1.5px solid var(--espresso);
  box-shadow: 2px 2px 0 rgba(58, 46, 40, 0.28);
}
.cart-line .thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cart-line .meta { min-width: 0; }
.cart-line .meta .brand {
  font-family: var(--font-display);
  font-size: calc(11px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sepia);
}
.cart-line .meta .name {
  margin: 3px 0 6px;
  font-family: var(--font-title);
  font-size: calc(19px * var(--ui));
  font-weight: 600;
  line-height: 1.12;
  color: var(--espresso);
  overflow-wrap: anywhere;
}
.cart-line .price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--espresso);
  white-space: nowrap;
}
.cart-line .rm {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rust);
  font-family: var(--font);
  font-size: calc(12px * var(--ui));
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cart-line .rm:hover { color: var(--brick); }
.cart-line--gone .thumb,
.cart-line--gone .brand,
.cart-line--gone .name,
.cart-line--gone .price { opacity: 0.55; }
.cart-line--gone .thumb img { filter: grayscale(1); }
.cart-gone-tag { margin: 0 0 6px; font-size: calc(12px * var(--ui)); font-weight: 600; line-height: 1.4; color: #8a1f18; }
.cart-warn { margin-bottom: 10px; font-size: calc(12px * var(--ui)); font-weight: 600; line-height: 1.5; color: #8a1f18; }
.empty-state {
  padding: 56px 8px;
  font-family: var(--font-title);
  font-style: italic;
  font-size: calc(20px * var(--ui));
  line-height: 1.45;
  text-align: center;
  color: var(--walnut);
}
.account-foot { display: flex; flex-direction: column; gap: 12px; }
.account-foot .till-btn { width: 100%; }
.account-body-note { padding: 18px 0; font-size: calc(14px * var(--ui)); line-height: 1.55; color: var(--walnut); }
.account-body-note .account-email { font-weight: 600; color: var(--espresso); overflow-wrap: anywhere; }
:root:lang(ja) :is(.cart-line .meta .name, .empty-state, .drawer-foot .row > span.row-note:last-child) { font-style: normal; font-variant-numeric: lining-nums; }
.main-interface:is([data-page="checkout"], [data-page="orders"], [data-page="returns"]) .stage { padding: 0; }
.main-interface:is([data-page="checkout"], [data-page="orders"], [data-page="returns"]) #hdr-filter { display: none; }
.shop-col.shop-col--till,
.shop-col.shop-col--ledger {
  left: 0;
  right: 0;
  gap: 0;
  padding: calc(var(--hdr-clear) + 34px) 6% calc(var(--vn-h) + 120px) 14%;
  -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--hdr-clear) - 28px), #000 calc(var(--hdr-clear) + 6px));
  mask-image: linear-gradient(to bottom, transparent calc(var(--hdr-clear) - 28px), #000 calc(var(--hdr-clear) + 6px));
}
.till {
  width: 100%;
  max-width: calc(1180px * var(--scale));
  margin: 0 auto;
}
.till-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: calc(30px * var(--scale));
}
.till-title {
  margin: 0;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 5.4vw, calc(84px * var(--scale)));
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.till-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.till-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 16px 4px 12px;
  background-color: rgba(40, 38, 37, 0.9);
  background-clip: padding-box;
  border: 9px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  color: rgba(243, 234, 216, 0.62);
  font-family: var(--font-display);
  font-size: calc(13px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.till-step.is-done { color: var(--cream); }
.till-step.is-on { background-color: var(--parchment); color: var(--rust); }
.till-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: 0;
}
.till-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
  gap: calc(34px * var(--scale));
  align-items: start;
}
.till-win {
  position: relative;
  min-width: 0;
  padding: calc(26px * var(--scale)) calc(30px * var(--scale)) calc(28px * var(--scale));
  background-color: var(--vn-plate);
  background-image: var(--rx-etch-ink);
  background-size: var(--lofi-etch);
  background-clip: padding-box;
  border: 15px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  color: var(--vn-ink);
  box-shadow: var(--lofi-shadow-lg);
}
.till-win > :first-child { margin-top: 0; }
.till-sec + .till-sec { margin-top: calc(28px * var(--scale)); }
.till-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--vn-rule);
  font-family: var(--font-display);
  font-size: calc(12px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sepia);
}
.till-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.till-field-l {
  font-family: var(--font-display);
  font-size: calc(11px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--walnut);
}
.till-field-h { font-size: calc(12px * var(--ui)); color: var(--walnut); }
.till-input {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  background: var(--cream);
  border: 1.5px solid var(--espresso);
  border-radius: 0;
  box-shadow: 3px 3px 0 rgba(58, 46, 40, 0.28);
  color: var(--espresso);
  font-family: var(--font);
  font-size: calc(15px * var(--ui));
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.till-input::placeholder { color: var(--taupe); opacity: 1; }
.till-input:focus { border-color: var(--rust); box-shadow: 3px 3px 0 rgba(156, 74, 58, 0.45); }
.till-input--mono { font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.till-input--mono::placeholder { text-transform: none; }
.till-mount { min-height: 64px; }
.till-loading {
  margin: 0;
  padding: 12px 0;
  font-family: var(--font-title);
  font-style: italic;
  font-size: calc(18px * var(--ui));
  line-height: 1.35;
  color: var(--walnut);
}
.till-note {
  margin: 14px 0 0;
  font-size: calc(13px * var(--ui));
  line-height: 1.5;
  color: var(--walnut);
}
.till-note--live:empty { display: none; }
.till-error {
  display: none;
  margin: 18px 0 0;
  padding: 10px 14px;
  border-left: 4px solid #a3231c;
  background: rgba(163, 35, 28, 0.08);
  color: #8a1f18;
  font-size: calc(13px * var(--ui));
  font-weight: 600;
  line-height: 1.45;
}
.till-error.is-on { display: block; }
.till-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.till-actions--center { justify-content: center; }
.till-main .till-actions .till-btn { flex: 1 1 100%; }
.till-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  margin: 0;
  padding: 0 calc(24px * var(--scale));
  border: 0;
  background: var(--rust);
  color: var(--cream);
  font-family: var(--font);
  font-size: calc(15px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(58, 46, 40, 0.55);
  transition: background-color 0.15s ease, transform 0.08s ease, box-shadow 0.08s ease;
}
.till-btn:hover { background: var(--brick); }
.till-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(58, 46, 40, 0.55); }
.till-btn:focus-visible { outline: 2px dashed var(--espresso); outline-offset: 3px; }
.till-btn:disabled { background: var(--taupe); color: var(--vellum); cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 rgba(58, 46, 40, 0.3); }
.till-btn--ghost {
  background: transparent;
  color: var(--espresso);
  box-shadow: inset 0 0 0 1.5px var(--espresso), 3px 3px 0 rgba(58, 46, 40, 0.3);
}
.till-btn--ghost:hover { background: rgba(58, 46, 40, 0.1); }
.till-btn--ghost:active { box-shadow: inset 0 0 0 1.5px var(--espresso), 1px 1px 0 rgba(58, 46, 40, 0.3); }
.till-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rust);
  font-family: var(--font);
  font-size: calc(13px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.till-link:hover { color: var(--brick); }
.till-link--inline { font-size: inherit; letter-spacing: 0; white-space: nowrap; }
.till-terms {
  margin: calc(22px * var(--scale)) 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--vn-rule);
}
.till-term {
  display: grid;
  grid-template-columns: minmax(96px, 22%) minmax(0, 1fr);
  gap: 2px 16px;
  padding: 5px 0;
}
.till-term dt {
  padding-top: 2px;
  font-family: var(--font-display);
  font-size: calc(11px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sepia);
}
.till-term dd {
  margin: 0;
  font-size: calc(13px * var(--ui));
  line-height: 1.55;
  color: var(--walnut);
}
.till-terms--lead { margin: 0 0 18px; padding: 0 0 12px; border-top: 0; border-bottom: 1px dashed var(--vn-rule); }
.till-note--minimum { margin: 0 0 12px; }
.till-recap-lines {
  margin: 0;
  font-size: calc(14px * var(--ui));
  line-height: 1.65;
  color: var(--espresso);
  overflow-wrap: anywhere;
}
.till-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.till-method {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  background: rgba(243, 234, 216, 0.55);
  border: 1.5px solid var(--espresso);
  box-shadow: 3px 3px 0 rgba(58, 46, 40, 0.28);
  color: var(--espresso);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.till-method:hover { background: var(--cream); }
.till-method:focus-visible { outline: 2px dashed var(--espresso); outline-offset: 3px; }
.till-method.is-on { background: var(--cream); border-color: var(--rust); box-shadow: 3px 3px 0 rgba(156, 74, 58, 0.45); }
.till-method-dot {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--espresso);
  background: var(--cream);
}
.till-method.is-on .till-method-dot { border-color: var(--rust); }
.till-method.is-on .till-method-dot::after { content: ""; width: 8px; height: 8px; background: var(--rust); }
.till-method-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.till-method-l {
  font-family: var(--font-display);
  font-size: calc(14px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.till-method.is-on .till-method-l { color: var(--rust); }
.till-method-s { font-size: calc(12px * var(--ui)); line-height: 1.35; color: var(--walnut); }
.till-pane { min-height: 90px; }
.till-pane--paypal { padding-top: 2px; }
.till-secure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 0;
  font-size: calc(12px * var(--ui));
  line-height: 1.45;
  color: var(--walnut);
}
.till-secure svg { flex: 0 0 auto; margin-top: 1px; }
.till-main.is-busy { pointer-events: none; }
.till-main.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(216, 202, 180, 0.55);
  animation: blink 1.4s ease-in-out infinite;
}
.till-summary { position: sticky; top: 0; }
.till-items { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.till-item {
  display: grid;
  grid-template-columns: calc(64px * var(--scale)) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}
.till-item + .till-item { border-top: 1px dashed var(--vn-rule); }
.till-item:first-child { padding-top: 2px; }
.till-thumb {
  display: block;
  width: calc(64px * var(--scale));
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(243, 234, 216, 0.7);
  border: 1.5px solid var(--espresso);
  box-shadow: 2px 2px 0 rgba(58, 46, 40, 0.28);
}
.till-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.till-item-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.till-item-brand {
  font-family: var(--font-display);
  font-size: calc(11px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sepia);
}
.till-item-name {
  font-family: var(--font-title);
  font-size: calc(21px * var(--ui));
  font-weight: 600;
  line-height: 1.1;
  color: var(--espresso);
  overflow-wrap: anywhere;
}
.till-item-meta { font-size: calc(12px * var(--ui)); font-style: italic; color: var(--walnut); }
.till-item-price {
  font-family: var(--font-mono);
  font-size: calc(15px * var(--ui));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.till-item.is-link { cursor: pointer; }
.till-item.is-link:hover .till-item-name,
.till-item.is-link:focus-visible .till-item-name { text-decoration: underline; text-underline-offset: 3px; }
.till-item.is-link:focus-visible { outline: 2px dashed var(--espresso); outline-offset: 2px; }
.till-sums { margin: 14px 0 0; padding-top: 10px; border-top: 1px dashed var(--vn-rule); }
.till-sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: calc(14px * var(--ui));
}
.till-sum dt { color: var(--walnut); }
.till-sum dd { margin: 0; font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.till-sum--total { margin-top: 8px; padding-top: 12px; border-top: 1.5px solid var(--espresso); }
.till-sum--total dt {
  font-family: var(--font-display);
  font-size: calc(13px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--espresso);
}
.till-sum--total dd { font-size: calc(21px * var(--ui)); font-weight: 700; }
.till-muted { font-family: var(--font); font-size: calc(13px * var(--ui)); font-style: italic; font-weight: 500; color: var(--walnut); }
.till-approx { margin: 8px 0 0; text-align: right; font-size: calc(12px * var(--ui)); color: var(--walnut); }
.till-hold {
  margin: 0 0 calc(26px * var(--scale));
  padding: 14px 16px;
  background: rgba(243, 234, 216, 0.55);
  border: 1.5px solid var(--espresso);
  box-shadow: 3px 3px 0 rgba(58, 46, 40, 0.28);
}
.till-hold-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.till-hold-l {
  font-family: var(--font-display);
  font-size: calc(12px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia);
}
.till-hold-t {
  font-family: var(--font-mono);
  font-size: calc(21px * var(--ui));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--espresso);
}
.till-hold-bar {
  position: relative;
  display: block;
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  background: rgba(58, 46, 40, 0.18);
}
.till-hold-bar i {
  position: absolute;
  inset: 0;
  background: var(--rust);
  transform-origin: left center;
  transition: transform 1s linear;
}
.till-hold-lapsed {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 0;
  font-size: calc(13px * var(--ui));
  font-weight: 600;
  color: #8a1f18;
}
.till-hold.is-lapsed .till-hold-lapsed { display: flex; }
.till-hold.is-lapsed .till-hold-t { color: #8a1f18; }
.till-done {
  max-width: calc(660px * var(--scale));
  margin: 0 auto;
  padding: calc(40px * var(--scale)) calc(38px * var(--scale)) calc(38px * var(--scale));
  text-align: center;
}
.till-stamp {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 24px;
  border: 5px double currentColor;
  color: #b01a16;
  font-family: var(--font-display);
  font-size: calc(26px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  transform: rotate(-6deg);
  animation: till-stamp-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.2) both;
}
.till-done--pending .till-stamp { color: #9a5d1f; animation: till-stamp-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.2) both, blink 2.4s ease-in-out 0.5s infinite; }
.till-done--fail .till-stamp { color: var(--sepia); }
@keyframes till-stamp-in {
  from { opacity: 0; transform: rotate(-6deg) scale(1.6); }
  to { opacity: 1; transform: rotate(-6deg) scale(1); }
}
.till-done-title {
  margin: 0 0 16px;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 600;
  font-size: calc(44px * var(--scale));
  line-height: 1;
  color: var(--espresso);
}
.till-done-num {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px;
  padding: 8px 16px;
  border: 1.5px dashed var(--sepia);
}
.till-done-num span {
  font-family: var(--font-display);
  font-size: calc(11px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia);
}
.till-done-num b { font-family: var(--font-mono); font-size: calc(17px * var(--ui)); letter-spacing: 0.06em; color: var(--espresso); }
.till-done-body {
  max-width: 470px;
  margin: 0 auto;
  font-size: calc(15px * var(--ui));
  line-height: 1.6;
  color: var(--walnut);
}
.till-admin { margin: 14px 0 0; font-family: var(--font-mono); font-size: calc(11px * var(--ui)); color: var(--taupe); }
.till-done .till-actions { margin-top: 28px; }
.main-interface[data-mode="small"] .shop-col.shop-col--till,
.main-interface[data-mode="small"] .shop-col.shop-col--ledger {
  padding: calc(var(--hdr-clear) + 16px) 16px calc(var(--vn-h) + 160px);
}
.main-interface[data-mode="small"] .till-head { margin-bottom: 20px; }
.main-interface[data-mode="small"] .till-title { font-size: clamp(40px, 11vw, 60px); }
.main-interface[data-mode="small"] .till-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.main-interface[data-mode="small"] .till-summary { position: static; order: -1; }
.main-interface[data-mode="small"] .till-win {
  padding: 18px 16px 20px;
  border-width: 9px;
  box-shadow: var(--lofi-shadow);
}
.main-interface[data-mode="small"] .till-step { min-height: 40px; padding: 2px 12px 2px 8px; font-size: calc(11px * var(--ui)); }
.main-interface[data-mode="small"] .till-item { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; }
.main-interface[data-mode="small"] .till-thumb { width: 52px; }
.main-interface[data-mode="small"] .till-item-name { font-size: calc(18px * var(--ui)); }
.main-interface[data-mode="small"] .till-done { padding: 28px 18px 24px; }
.main-interface[data-mode="small"] .till-done-title { font-size: calc(34px * var(--ui)); }
.main-interface[data-mode="small"] .till-stamp { font-size: calc(20px * var(--ui)); padding: 6px 16px; border-width: 4px; }
@media (max-width: 600px) {
  .till-steps { gap: 8px; }
  .till-step:not(.is-on) .till-step-l { display: none; }
  .till-step:not(.is-on) { padding-right: 8px; }
  .till-methods { grid-template-columns: minmax(0, 1fr); }
  .till-method { min-height: 58px; }
  .till-done .till-actions .till-btn { flex: 1 1 100%; }
  .till-term { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
:root:lang(ja) :is(.till-title, .till-done-title, .till-loading, .till-item-name, .till-item-meta, .till-muted) { font-style: normal; font-variant-numeric: lining-nums; }
:root:lang(ja) .till-term dt { letter-spacing: 0.06em; }
@media (prefers-reduced-motion: reduce) {
  .till-stamp,
  .till-done--pending .till-stamp,
  .till-main.is-busy::after { animation: none; }
  .till-hold-bar i { transition: none; }
}
.ledger {
  width: 100%;
  max-width: calc(1180px * var(--scale));
  margin: 0 auto;
}
.ledger-sub {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-style: italic;
  font-size: calc(22px * var(--ui));
  line-height: 1.2;
  color: rgba(243, 234, 216, 0.88);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}
.ledger-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: calc(34px * var(--scale));
  align-items: start;
}
.ledger-main { min-width: 0; }
.ledger-side { display: flex; flex-direction: column; gap: calc(30px * var(--scale)); min-width: 0; }
.ledger:not(.has-order) .ledger-grid { grid-template-columns: minmax(0, 1fr); }
.ledger:not(.has-order) .ledger-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.ledger-detail-id .till-label,
.ledger-parcel .till-label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
}
.ledger-find .till-field + .till-field { margin-top: 14px; }
.ledger-find .till-actions .till-btn,
.ledger-account .till-actions .till-btn { flex: 1 1 100%; }
.ledger-account .till-note { margin-top: 0; }
.ledger-account .till-actions { margin-top: 16px; }
.ledger-who {
  margin: -6px 0 14px;
  font-size: calc(12px * var(--ui));
  color: var(--walnut);
  overflow-wrap: anywhere;
}
.ledger-yours .till-note { margin-top: 0; }
.ledger-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(460px * var(--scale));
  margin: 0;
  padding: 0 6px 6px 0;
  overflow-y: auto;
  list-style: none;
}
.ledger-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  background: rgba(243, 234, 216, 0.55);
  border: 1.5px solid var(--espresso);
  box-shadow: 3px 3px 0 rgba(58, 46, 40, 0.28);
  color: var(--espresso);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ledger-row:hover { background: var(--cream); }
.ledger-row:focus-visible { outline: 2px dashed var(--espresso); outline-offset: 3px; }
.ledger-row.is-open { background: var(--cream); border-color: var(--rust); box-shadow: 3px 3px 0 rgba(156, 74, 58, 0.45); }
.ledger-row-top,
.ledger-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ledger-row-num {
  font-family: var(--font-mono);
  font-size: calc(14px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.05em;
}
.ledger-row-what {
  font-family: var(--font-title);
  font-size: calc(19px * var(--ui));
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.ledger-row-foot { font-size: calc(12px * var(--ui)); color: var(--walnut); }
.ledger-row-total {
  font-family: var(--font-mono);
  font-size: calc(13px * var(--ui));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--espresso);
}
.ledger-chip {
  flex: 0 0 auto;
  padding: 1px 8px;
  border: 1.5px solid currentColor;
  font-family: var(--font-display);
  font-size: calc(10px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}
.ledger-state--processing { color: #93561a; }
.ledger-state--shipped { color: var(--rust); }
.ledger-state--delivered { color: #46632a; }
.ledger-state--returned { color: var(--sepia); }
.ledger-state--cancelled,
.ledger-state--refunded { color: #b01a16; }
.ledger-detail { padding: calc(30px * var(--scale)) calc(34px * var(--scale)) calc(32px * var(--scale)); }
.ledger-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--espresso);
  box-shadow: 2px 2px 0 rgba(58, 46, 40, 0.3);
  color: var(--espresso);
  cursor: pointer;
}
.ledger-close:hover { background: rgba(58, 46, 40, 0.1); }
.ledger-close:focus-visible { outline: 2px dashed var(--espresso); outline-offset: 3px; }
.ledger-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 22px;
  padding-right: 60px;
}
.ledger-detail-id { min-width: 0; }
.ledger-num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: calc(26px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--espresso);
  overflow-wrap: anywhere;
}
.ledger-meta { margin: 6px 0 0; font-size: calc(13px * var(--ui)); line-height: 1.45; color: var(--walnut); }
.ledger-stamp {
  flex: 0 0 auto;
  margin: 8px 0 0;
  padding: 5px 16px;
  border: 4px double currentColor;
  font-family: var(--font-display);
  font-size: calc(17px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-5deg);
}
.ledger-notice {
  margin: 0 0 22px;
  padding: 12px 14px;
  border-left: 4px solid var(--rust);
  background: rgba(156, 74, 58, 0.08);
  font-size: calc(14px * var(--ui));
  line-height: 1.5;
  color: var(--espresso);
}
.ledger-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.ledger-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.ledger-step::before {
  content: "";
  position: absolute;
  top: 16px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: rgba(58, 46, 40, 0.22);
}
.ledger-step:first-child::before { display: none; }
.ledger-step.is-done::before { background: var(--espresso); }
.ledger-step-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--cream);
  border: 1.5px solid var(--espresso);
  box-shadow: 2px 2px 0 rgba(58, 46, 40, 0.3);
  color: var(--cream);
}
.ledger-step.is-done .ledger-step-mark { background: var(--espresso); }
.ledger-step.is-now .ledger-step-mark { background: var(--rust); border-color: var(--rust); }
.ledger-step-l {
  font-family: var(--font-display);
  font-size: calc(11px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso);
}
.ledger-step:not(.is-done) .ledger-step-l { color: var(--taupe); }
.ledger-step-d { font-family: var(--font-mono); font-size: calc(12px * var(--ui)); color: var(--walnut); }
.ledger-parcel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  margin: 0 0 24px;
  padding: 16px 18px;
  background: rgba(243, 234, 216, 0.6);
  border: 1.5px solid var(--espresso);
  box-shadow: 3px 3px 0 rgba(58, 46, 40, 0.28);
}
.ledger-parcel-text { display: flex; flex-direction: column; min-width: 0; }
.ledger-parcel-no {
  font-family: var(--font-mono);
  font-size: calc(19px * var(--ui));
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--espresso);
  overflow-wrap: anywhere;
}
.ledger-parcel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ledger-parcel .till-btn { min-height: 44px; padding: 0 18px; font-size: calc(14px * var(--ui)); }
.ledger-wait {
  margin: 0 0 24px;
  font-family: var(--font-title);
  font-style: italic;
  font-size: calc(19px * var(--ui));
  line-height: 1.4;
  color: var(--walnut);
}
.ledger-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: calc(30px * var(--scale));
}
.ledger-block { min-width: 0; }
.ledger-actions { margin-top: 26px; }
.main-interface[data-mode="small"] .ledger-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.main-interface[data-mode="small"] .ledger-side { gap: 22px; }
.main-interface[data-mode="small"] .ledger:not(.has-order) .ledger-side { grid-template-columns: minmax(0, 1fr); }
.main-interface[data-mode="small"] .ledger-sub { font-size: calc(18px * var(--ui)); }
.main-interface[data-mode="small"] .ledger-detail-head { flex-direction: column; gap: 10px; }
.main-interface[data-mode="small"] .ledger-stamp { margin: 0; font-size: calc(14px * var(--ui)); }
.main-interface[data-mode="small"] .ledger-num { font-size: calc(21px * var(--ui)); }
.main-interface[data-mode="small"] .ledger-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.main-interface[data-mode="small"] .ledger-list { max-height: none; overflow: visible; padding: 0; }
:root:lang(ja) :is(.ledger-sub, .ledger-wait, .ledger-row-what) { font-style: normal; font-variant-numeric: lining-nums; }
@media (max-width: 600px) {
  .ledger-parcel-actions { width: 100%; }
  .ledger-parcel-actions .till-btn { flex: 1 1 0; }
  .ledger-actions .till-btn { flex: 1 1 100%; }
  .ledger-step-l { font-size: calc(10px * var(--ui)); letter-spacing: 0.1em; }
}
.scope-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--hdr-clear) + 8px) 16px calc(var(--vn-h) + 44px);
}
.scope-letter .ledger-letter {
  width: min(calc(640px * var(--scale)), 100%);
  max-height: 100%;
  overflow-y: auto;
  animation: letter-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes letter-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.ledger-letter { padding: calc(28px * var(--scale)) calc(32px * var(--scale)) calc(30px * var(--scale)); }
.ledger-letter-title {
  margin: 0 0 12px;
  padding-right: 56px;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 600;
  font-size: calc(40px * var(--scale));
  line-height: 1;
  color: var(--espresso);
}
.ledger-letter-intro {
  margin: 0 0 22px;
  font-size: calc(14px * var(--ui));
  line-height: 1.55;
  color: var(--walnut);
}
.ledger-letter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ledger-letter > .till-field,
.ledger-letter-row + .till-field { margin-top: 16px; }
.ledger-letter .till-actions { justify-content: flex-end; }
.ledger-letter--page { max-width: calc(720px * var(--scale)); }
.till-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233a2e28' stroke-width='3' stroke-linecap='square'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.till-textarea {
  min-height: 132px;
  line-height: 1.5;
  resize: vertical;
}
:root:lang(ja) .ledger-letter-title { font-style: normal; font-variant-numeric: lining-nums; }
.main-interface[data-mode="small"] .scope-letter { align-items: flex-start; padding: calc(var(--hdr-clear) + 4px) 16px calc(var(--vn-h) + 150px); }
.main-interface[data-mode="small"] .ledger-letter { padding: 18px 16px 20px; border-width: 9px; box-shadow: var(--lofi-shadow); }
.main-interface[data-mode="small"] .ledger-letter-title { font-size: calc(30px * var(--ui)); }
@media (max-width: 600px) {
  .ledger-letter-row { grid-template-columns: minmax(0, 1fr); }
  .ledger-letter .till-actions .till-btn { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scope-letter .ledger-letter { animation: none; }
}
.contact-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}
.contact-card h3 {
  font-family: var(--font-title);
  font-size: calc(14px * var(--ui)); letter-spacing: 0.2em;
  margin-bottom: 12px; text-transform: uppercase;
}
.modal-backdrop {
  position: absolute; inset: 0; z-index: 90;
  background: rgba(5,11,20,0.65);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex; align-items: center; justify-content: center;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(440px, 92vw);
  background: var(--panel-bg-solid);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  transform: scale(0.94);
  transition: transform 0.25s ease;
}
.modal-backdrop.open .modal { transform: scale(1); }
.modal h2 {
  font-family: var(--font-title);
  font-size: calc(18px * var(--ui)); letter-spacing: 0.2em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.modal p { color: var(--text-mid); line-height: 1.6; margin-bottom: 16px; font-size: calc(13px * var(--ui)); }
.modal .field { display: flex; flex-direction: column; min-width: 0; }
.modal .field label {
  font-size: calc(10px * var(--ui)); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 5px;
}
.modal .field input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: rgba(20,40,70,0.4);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-family: var(--font);
  font-size: calc(13px * var(--ui));
  outline: none;
  transition: border-color 0.15s;
}
.modal .field input:focus { border-color: var(--accent-cyan); }
.toast {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 18px;
  background: var(--vn-surface);
  background-clip: padding-box;
  border: 11px solid var(--vn-line);
  border-image: var(--lace-border) 15 stretch;
  border-radius: var(--radius);
  color: var(--vn-ink);
  font-size: calc(12px * var(--ui));
  letter-spacing: 0.1em;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(230, 181, 168,0.3);
  transition: opacity 0.25s, transform 0.3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(6px); }
.fx-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
}
.fx-petal {
  position: absolute;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  will-change: transform, opacity;
}
.fx-petal.is-live { animation: fx-petal 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes fx-petal {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.4) rotate(0deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--fx-dx)), calc(-50% + var(--fx-dy))) scale(1) rotate(90deg); }
}
@media (max-width: 960px) {
  .header-search { display: none; }
  .main-interface[data-mode="small"] .stage { padding-left: 0; padding-right: 0; }
  .shop-col:not(.shop-col--till, .shop-col--ledger) {
    left: 0 !important; right: 0 !important;
    padding: 0 16px 300px !important;
  }
  .main-interface[data-page="shop"] .shop-col { padding-top: 110px !important; }
}
@media (max-width: 640px) {
  .main-interface[data-drawer="open"] .vn-dock,
  .main-interface[data-account="open"] .vn-dock { display: none; }
  .vn-box.has-portrait { padding-left: 24px; }
  .toast { border-width: 6px; }
  .choice {
    grid-template-columns: 64px 1fr;
    min-height: 56px;
    padding: 13px 18px;
    font-size: calc(18px * var(--ui));
    line-height: 1.3;
    border-width: 8px;
  }
  .choice .lead { font-size: calc(11px * var(--ui)); letter-spacing: 0.16em; }
  .scope-product-name { font-size: calc(16px * var(--ui)); }
  .scope-product-name-ja { font-size: calc(12px * var(--ui)); }
  .scope-product-price { font-size: calc(14px * var(--ui)); }
  .scope-product-k { flex-basis: 70px; font-size: calc(10px * var(--ui)); }
  .scope-product-v { font-size: calc(12px * var(--ui)); }
  .scope-product-desc { font-size: calc(11px * var(--ui)); }
  .scope-name { font-size: calc(16px * var(--ui)); }
  .scope-scroll { padding: 12px 16px 10px; }
}
.vn-controls {
  margin-left: auto;
}
body:not(.rockchan-on) .avatar-area,
body:not(.rockchan-on) .vn-box,
body:not(.rockchan-on) .choices,
body:not(.rockchan-on) #choices-backdrop {
  display: none !important;
}
body:not(.rockchan-on) #vn-chat {
  visibility: hidden !important;
  pointer-events: none !important;
}
.main-interface[data-page="admin"] #vn-cart-btn {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.gate-active { overflow: hidden; }
#gate-root { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
#gate-root:empty { display: none; }
.gate {
  position: absolute; inset: 0; pointer-events: auto;
  display: flex; align-items: flex-start; justify-content: center;
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font);
  font-size: max(16px, calc(100vw / 63));
  color: var(--cream);
  background-color: #1a0c10;
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgba(120, 60, 48, 0.28), transparent 60%),
    var(--rx-plaid-low);
  background-size: auto, 22.5em;
  background-position: center top, center;
  isolation: isolate;
}
.gate-veil {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(130% 120% at 50% 42%, transparent 38%, rgba(12, 6, 8, 0.55) 100%),
    linear-gradient(180deg, rgba(12, 6, 8, 0.35), transparent 22%, transparent 70%, rgba(12, 6, 8, 0.5));
}
.gate-petals { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.gate-petal {
  position: absolute; top: -10vh; width: 0.6875em; height: 0.8125em;
  background: linear-gradient(150deg, var(--cream), var(--ochre));
  border-radius: 100% 0 100% 0;
  opacity: 0.45; filter: drop-shadow(0 0.0625em 0.0625em rgba(0, 0, 0, 0.2));
  animation-name: gate-fall; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes gate-fall {
  0%   { transform: translateY(-12vh) translateX(0) rotate(0deg) scale(var(--gp, 1)); opacity: 0; }
  10%  { opacity: 0.5; }
  50%  { transform: translateY(52vh) translateX(1.625em) rotate(220deg) scale(var(--gp, 1)); }
  90%  { opacity: 0.45; }
  100% { transform: translateY(118vh) translateX(-0.75em) rotate(460deg) scale(var(--gp, 1)); opacity: 0; }
}
.gate-stage {
  position: relative; z-index: 3;
  width: 100%; max-width: 67.5em; min-height: 100%;
  display: flex; align-items: flex-end; justify-content: center; gap: 0.5em;
  padding: 2.5em 1.75em 0;
}
.gate-card {
  position: relative; flex: 0 1 28.75em; max-width: 28.75em; align-self: center;
  background: linear-gradient(180deg, var(--cream), var(--vellum));
  border: 0.0625em solid rgba(156, 74, 58, 0.4);
  border-radius: 0.625em;
  padding: 2.375em 2.5em 2.125em;
  box-shadow: 0 1.5em 3.75em rgba(0, 0, 0, 0.5), inset 0 0 0 0.0625em rgba(255, 255, 255, 0.35);
  z-index: 4;
}
.gate-card::after {
  content: ""; position: absolute; inset: 0.5em; pointer-events: none;
  border: 0.0625em solid rgba(201, 138, 85, 0.4); border-radius: 0.375em;
}
.gate-logo { display: block; width: 12.25em; max-width: 70%; height: auto; margin: 0 0 1.125em; filter: drop-shadow(0 0.125em 0.625em rgba(156, 74, 58, 0.35)); }
.gate-kicker {
  font-family: var(--font-display); font-size: 0.6875em; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--dried-blood);
}
.gate-title { font-family: var(--font-title); font-weight: 600; font-size: 2.625em; line-height: 1.05; color: var(--espresso); margin: 0.55em 0 0.6em; }
.gate-blurb { font-size: 0.9375em; line-height: 1.6; color: var(--sepia); margin: 0 0 1.375em; max-width: 38ch; }
.gate-face { color: var(--rust); white-space: nowrap; }
.gate-form { display: flex; gap: 0.5em; }
.gate-input {
  flex: 1 1 auto; min-width: 0;
  background: rgba(255, 255, 255, 0.62); color: var(--espresso);
  border: 0.0625em solid rgba(103, 85, 74, 0.35); border-radius: 0.25em;
  padding: 0.75em 0.875em; font-family: var(--font); font-size: max(16px, 0.9375em);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.gate-input::placeholder { color: rgba(103, 85, 74, 0.55); }
.gate-input:focus { outline: none; border-color: var(--rust); background: #fff; box-shadow: 0 0 0 0.1875em rgba(156, 74, 58, 0.16); }
.gate-input:disabled { opacity: 0.6; }
.gate-btn {
  flex: 0 0 auto; cursor: pointer; white-space: nowrap;
  background: var(--rust); color: var(--cream);
  border: 0.0625em solid var(--rust); border-radius: 0.25em;
  padding: 0.75em 1.25em; font-family: var(--font); font-size: 0.875em; font-weight: 700; letter-spacing: 0.06em;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.gate-btn:hover { background: var(--brick); box-shadow: 0 0.375em 1.125em rgba(122, 58, 42, 0.4); transform: translateY(-0.0625em); }
.gate-btn:active { transform: translateY(0); }
.gate-btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.gate-msg { min-height: 1.125em; margin-top: 0.625em; font-size: 0.8125em; color: var(--sepia); }
.gate-msg[data-tone="err"] { color: var(--rust); }
.gate-msg[data-tone="ok"] { color: #5f7a3f; }
.gate-done { display: flex; align-items: flex-start; gap: 0.75em; margin-top: 0.25em; animation: gate-rise 0.4s ease both; }
.gate-done-mark { font-size: 1.875em; line-height: 1; color: var(--rust); }
.gate-done p { margin: 0.125em 0 0; font-size: 0.9375em; line-height: 1.55; color: var(--espresso); }
@keyframes gate-rise { from { opacity: 0; transform: translateY(0.5em); } to { opacity: 1; transform: none; } }
.gate-rock { position: relative; flex: 0 0 auto; align-self: flex-end; display: flex; align-items: flex-end; justify-content: center; }
.gate-rock-halo {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  width: 78%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(201, 138, 85, 0.42), rgba(156, 74, 58, 0.18) 45%, transparent 70%);
  filter: blur(0.875em);
}
.gate-rock-img {
  position: relative; display: block; height: min(96vh, 65em); width: auto; max-width: 52vw;
  filter: drop-shadow(0 1.125em 1.875em rgba(0, 0, 0, 0.55));
  animation: gate-sway 7s ease-in-out infinite;
}
@keyframes gate-sway { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(0.4375em); } }
.gate-rock-name {
  position: absolute; right: -0.125em; top: 40%;
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--font-title); font-size: 1.125em; letter-spacing: 0.1em;
  color: var(--ochre); opacity: 0.6;
}
.gate-admin {
  position: fixed; left: 50%; top: 1em; transform: translateX(-50%); z-index: 10002;
  display: flex; align-items: center; gap: 0.875em;
  background: linear-gradient(180deg, var(--cream), var(--vellum));
  border: 0.0625em solid rgba(156, 74, 58, 0.4); border-radius: 999px;
  padding: 0.5em 0.5em 0.5em 1.125em; box-shadow: 0 0.875em 2.25em rgba(0, 0, 0, 0.5);
  animation: gate-drop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.gate-admin[hidden] { display: none; }
.gate-admin-hi { font-size: 0.8125em; color: var(--espresso); letter-spacing: 0.02em; }
.gate-admin .gate-btn { padding: 0.5625em 1em; border-radius: 999px; }
@keyframes gate-drop { from { opacity: 0; transform: translateX(-50%) translateY(-0.875em); } to { opacity: 1; transform: translateX(-50%); } }
@media (max-width: 900px) {
  .gate-stage { flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 1.5em 1.25em 2em; }
  .gate-rock { align-self: center; order: -1; margin-bottom: -2.5em; }
  .gate-rock-img { height: min(40vh, 23.75em); max-width: 80vw; }
  .gate-rock-name { display: none; }
  .gate-card { flex: 0 0 auto; width: 100%; max-width: 27.5em; padding: 1.875em 1.625em 1.625em; }
}
@media (max-width: 560px) {
  .gate-stage { padding: 0.75em 0.875em 1.25em; }
  .gate-rock { margin-bottom: -2.75em; }
  .gate-rock-img { height: min(33vh, 15.5em); }
  .gate-rock-halo { width: 92%; }
  .gate-card { padding: 1.375em 1.25em 1.125em; border-radius: 0.5em; }
  .gate-card::after { inset: 0.375em; }
  .gate-logo { width: 9.5em; margin-bottom: 0.875em; }
  .gate-kicker { font-size: min(0.625em, 2.75vw); letter-spacing: 0.2em; white-space: nowrap; }
  .gate-kicker-rule { display: none; }
  .gate-title { font-size: 1.875em; margin: 0.45em 0 0.5em; }
  .gate-blurb { font-size: 0.875em; line-height: 1.55; margin-bottom: 1em; }
  .gate-form { flex-direction: column; }
  .gate-btn { width: 100%; }
  .gate-msg { margin-top: 0.375em; }
  .gate-admin { left: 0.75em; right: 0.75em; transform: none; justify-content: center; }
  @keyframes gate-drop { from { opacity: 0; transform: translateY(-0.875em); } to { opacity: 1; transform: none; } }
}
@media (max-width: 560px) and (max-height: 600px) {
  .gate-rock-img { height: min(28vh, 12em); }
  .gate-rock { margin-bottom: -2em; }
}
:root {
  --lofi-etch: 128px 128px;
  --lofi-soft: 0 0 1.1px currentColor;
  --lofi-shadow: 5px 5px 0 rgba(12, 4, 8, 0.55);
  --lofi-shadow-lg: 7px 7px 0 rgba(12, 4, 8, 0.5);
}
.vn-box,
.vn-portrait,
.vn-name,
.vn-ctrl,
.choice,
.price-alert,
.scope-product-summon,
.scope-product-plate,
.ff-head,
.ff-panel,
.modal,
.gate-card,
.gate-input,
.gate-btn,
.gate-admin,
.btn,
.hdr-ctrl {
  border-radius: 0;
}
.vn-box,
.vn-ctrl,
.choice,
.price-alert,
.scope-product-plate,
.front-menu {
  background-image: var(--rx-etch-ink);
  background-size: var(--lofi-etch);
}
.ff-panel,
.modal {
  background-image: var(--rx-etch-light);
  background-size: var(--lofi-etch);
}
:is(.vn-box, .vn-ctrl, .choice, .price-alert, .scope-product-summon, .scope-product-plate, .front-menu, .ff-panel, .modal, .gate-card, .card-info),
:is(.vn-box, .vn-ctrl, .choice, .price-alert, .scope-product-summon, .scope-product-plate, .front-menu, .ff-panel, .modal, .gate-card, .card-info) * {
  -webkit-text-fill-color: transparent;
  text-shadow: var(--lofi-soft);
}
:is(.vn-box, .vn-ctrl, .choice, .price-alert, .scope-product-summon, .scope-product-plate, .front-menu, .ff-panel, .modal, .gate-card, .card-info) :is(input, textarea, select),
.vn-name,
.gate-kicker,
.gate-kicker * {
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}
.choice--sparkle .lead { text-shadow: var(--lofi-soft), 0 0 10px var(--accent-glow), 0 0 2px var(--accent-glow); }
.choice-sparkles i { text-shadow: var(--lofi-soft), 0 0 10px var(--accent-glow), 0 0 3px var(--accent-glow); }
.choice:is(:hover, :focus, :focus-visible) { text-shadow: var(--lofi-soft), 0 0 12px rgba(230, 181, 168, 0.7) !important; }
.price-alert-ok:is(:hover, :focus, :focus-visible),
.price-alert-btn:is(:hover, :focus, :focus-visible) { text-shadow: var(--lofi-soft), 0 0 12px rgba(230, 181, 168, 0.7); }
.price-alert-btn--cancel:is(:hover, :focus, :focus-visible) { text-shadow: var(--lofi-soft); }
.vn-box { box-shadow: var(--lofi-shadow-lg); }
.ff-panel { box-shadow: var(--lofi-shadow), inset 0 0 0 1px rgba(230, 181, 168, 0.06); }
.modal,
.gate-admin { box-shadow: var(--lofi-shadow); }
.gate-card {
  background: var(--rx-etch-ink), linear-gradient(180deg, var(--cream), var(--vellum));
  background-size: var(--lofi-etch), auto;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.gate-btn:hover { box-shadow: 3px 3px 0 rgba(122, 58, 42, 0.55); transform: translate(-1px, -1px); }
.gate-input:focus { box-shadow: 3px 3px 0 rgba(156, 74, 58, 0.25); }
.main-interface[data-page="legal"] .stage { padding: 0; }
.main-interface[data-page="legal"] #hdr-filter { display: none; }
.legal {
  width: 100%;
  max-width: calc(940px * var(--scale));
  margin: 0 auto;
}
.legal-head { margin-bottom: calc(22px * var(--scale)); }
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 calc(30px * var(--scale));
}
.legal-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 16px;
  background-color: rgba(40, 38, 37, 0.9);
  background-clip: padding-box;
  border: 9px solid var(--vn-line);
  border-image: var(--lace-border) 22 15 round;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: calc(13px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.legal-tab:hover { background-color: var(--parchment); color: var(--rust); }
.legal-tab:focus-visible { outline: 2px dashed var(--cream); outline-offset: 3px; }
.legal-win { padding: calc(34px * var(--scale)) calc(38px * var(--scale)) calc(30px * var(--scale)); }
.legal-win + .legal-win { margin-top: calc(30px * var(--scale)); }
.legal-kicker {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: calc(12px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--sepia);
}
.legal-h {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 600;
  font-size: calc(38px * var(--scale));
  line-height: 1.05;
  color: var(--espresso);
}
.legal-lead {
  margin: 0 0 18px;
  font-size: calc(15px * var(--ui));
  line-height: 1.6;
  color: var(--walnut);
}
.legal-rows { margin: 0; }
.legal-row {
  display: grid;
  grid-template-columns: minmax(150px, 30%) minmax(0, 1fr);
  gap: 6px 26px;
  padding: 15px 0;
  border-top: 1px dashed var(--vn-rule);
}
.legal-row:last-child { border-bottom: 1px dashed var(--vn-rule); }
.legal-row dt {
  padding-top: 3px;
  font-family: var(--font-display);
  font-size: calc(12px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--walnut);
}
.legal-row dd {
  margin: 0;
  font-size: calc(15px * var(--ui));
  line-height: 1.7;
  color: var(--espresso);
  overflow-wrap: anywhere;
}
.legal-note { font-size: calc(13px * var(--ui)); color: var(--walnut); }
.legal-link {
  color: var(--rust);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-link:hover { color: var(--brick); }
.site-foot {
  width: 100%;
  max-width: calc(940px * var(--scale));
  margin: calc(56px * var(--scale)) auto 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(243, 234, 216, 0.22);
  text-align: center;
}
.site-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 4px;
}
.site-foot-links a {
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: calc(12px * var(--ui));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(243, 234, 216, 0.86);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}
.site-foot-links a + a::before {
  content: '·';
  display: inline-block;
  margin: 0 14px;
  color: rgba(243, 234, 216, 0.45);
}
.site-foot-links a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.site-foot-links a:focus-visible { outline: 2px dashed var(--cream); outline-offset: 3px; }
.site-foot-note {
  margin: 10px 0 0;
  font-size: calc(12px * var(--ui));
  letter-spacing: 0.06em;
  color: rgba(243, 234, 216, 0.55);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}
.site-foot--float {
  display: none;
  position: absolute;
  right: 28px;
  bottom: calc(var(--vn-h) + 44px);
  z-index: 30;
  width: auto;
  max-width: 60%;
  margin: 0;
  padding: 0;
  border: 0;
}
.main-interface[data-page="home"]:not([data-mode="small"]) .site-foot--float { display: block; }
.main-interface:is([data-drawer="open"], [data-account="open"], [data-scope="on"]) .site-foot--float { visibility: hidden; }
.site-foot--float .site-foot-links { justify-content: flex-end; }
.site-foot--float .site-foot-links a { font-size: calc(11px * var(--ui)); }
.account-foot .site-foot-links { margin-top: 4px; }
.account-foot .site-foot-links a {
  font-size: calc(11px * var(--ui));
  letter-spacing: 0.12em;
  color: var(--walnut);
  text-shadow: none;
}
.account-foot .site-foot-links a + a::before { margin: 0 10px; color: var(--vn-rule); }
.account-foot .site-foot-links a:hover { color: var(--rust); }
.main-interface[data-mode="small"] .legal-tabs { gap: 8px; margin-bottom: 22px; }
.main-interface[data-mode="small"] .legal-tab { min-height: 40px; padding: 2px 12px; font-size: 11px; letter-spacing: 0.1em; white-space: normal; }
.main-interface[data-mode="small"] .legal-win { padding: 24px 18px 22px; }
.main-interface[data-mode="small"] .legal-win + .legal-win { margin-top: 22px; }
.main-interface[data-mode="small"] .legal-h { font-size: 30px; }
.main-interface[data-mode="small"] .legal-row { grid-template-columns: 1fr; gap: 4px; padding: 13px 0; }
.main-interface[data-mode="small"] .legal-row dd { font-size: 14px; }
.main-interface[data-mode="small"] .site-foot { margin-top: 40px; }
.main-interface[data-mode="small"] .site-foot-links { column-gap: 22px; }
.main-interface[data-mode="small"] .site-foot-links a + a::before { content: none; }
:root:lang(ja) .legal-h { font-style: normal; font-variant-numeric: lining-nums; }
:root:lang(ja) :is(.legal-tab, .legal-row dt, .site-foot-links a) { letter-spacing: 0.06em; }
.site-foot,
.account-foot .site-foot-links { display: none !important; }
@property --rx-fade {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(0, 0, 0, 0.82);
}
:root {
  --works-paper: #faf9f6;
  --works-ink: #0b0b0c;
  --works-ink-soft: #3c3a37;
  --works-ink-dim: #77736d;
  --works-rule: rgba(11, 11, 12, 0.16);
  --works-turn: 0.9s;
  --works-ease: cubic-bezier(0.45, 0.05, 0.25, 1);
}
.works-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear var(--works-turn);
}
.works-veil::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 160%;
  background: linear-gradient(to top, var(--works-paper) 0%, var(--works-paper) 62.5%, rgba(250, 249, 246, 0) 75%);
  opacity: 0;
  transform: translateY(37.5%);
  transition: transform var(--works-turn) var(--works-ease), opacity var(--works-turn) ease;
}
.main-interface[data-page="works"] .works-veil { visibility: visible; transition: visibility 0s; }
.main-interface[data-page="works"] .works-veil::before { opacity: 1; transform: translateY(-37.5%); }
.main-interface { transition: --rx-fade var(--works-turn) ease; }
.main-interface[data-page="works"] { --rx-fade: rgba(250, 249, 246, 0.94); }
.logo-strobe { transition: filter var(--works-turn) ease; }
.main-interface[data-page="works"] .logo-strobe { filter: invert(1) hue-rotate(180deg); }
.main-interface .hdr-ctrl,
.main-interface .hdr-select select { transition: opacity 0.15s, color 0.6s ease; }
.main-interface[data-page="works"]:not([data-mode="small"]) .hdr-ctrl,
.main-interface[data-page="works"]:not([data-mode="small"]) .hdr-select select,
.main-interface[data-page="works"] .hdr-burger { color: var(--works-ink); }
.main-interface[data-page="works"]:not([data-mode="small"]) .hdr-chevron { color: rgba(11, 11, 12, 0.5); }
.main-interface[data-page="works"] :is(.nav-btn, .nav-divider) { color: var(--works-ink-soft); }
.main-interface[data-page="works"] .stage { padding-top: 0; }
.main-interface[data-page="works"] .shop-col { padding-top: 110px; }
.works-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.works-page--arrive { animation: works-rise var(--works-turn) var(--works-ease) both; }
@keyframes works-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.works-col .card-price { color: var(--works-ink); }
.works-col .card-brand { color: var(--works-ink-dim); }
.works-col .card-name { color: var(--works-ink-soft); }
.works-col .card-img { filter: drop-shadow(0 12px 20px rgba(11, 11, 12, 0.18)); }
.work-card.is-out .card-img:not(.card-img-2),
.work-card.is-out .card-info { opacity: 0.45; }
.card-tag.works-flag {
  background: var(--works-ink);
  border-color: var(--works-ink);
  color: var(--works-paper);
}
.card-tag.works-flag--out {
  background: #e7e5e0;
  border-color: rgba(11, 11, 12, 0.3);
  color: var(--works-ink-soft);
}
.works-col .site-foot { border-top-color: var(--works-rule); }
.works-col .site-foot-links a { color: var(--works-ink-soft); text-shadow: none; }
.works-col .site-foot-links a + a::before { color: rgba(11, 11, 12, 0.35); }
.works-col .site-foot-links a:hover { color: var(--works-ink); }
.works-col .site-foot-links a:focus-visible { outline-color: var(--works-ink); }
.works-col .site-foot-note { color: var(--works-ink-dim); text-shadow: none; }
.work-rows { display: contents; }
.scope-product-row--options { flex-wrap: wrap; align-items: baseline; }
.scope-options {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.size-btn.work-option {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 52px;
  min-height: 44px;
  padding: 6px 12px;
  background: transparent;
  border: 1.5px solid var(--vn-ink);
  border-radius: 0;
  color: var(--vn-ink);
  font-size: calc(15px * var(--ui));
  line-height: 1.2;
  box-shadow: 3px 3px 0 rgba(58, 46, 40, 0.28);
}
.size-btn.work-option i {
  font-style: normal;
  font-size: calc(10px * var(--ui));
  letter-spacing: 0.06em;
  color: var(--vn-ink-soft);
}
.size-btn.work-option:hover:not(:disabled) { background: rgba(58, 46, 40, 0.08); }
.size-btn.work-option.is-on {
  background: var(--works-ink);
  border-color: var(--works-ink);
  color: var(--works-paper);
}
.size-btn.work-option.is-on i { color: rgba(250, 249, 246, 0.75); }
.size-btn.work-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  text-decoration: line-through;
}
.scope-product-row--qty { align-items: center; }
.work-qty,
.cart-qty {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  border: 1.5px solid var(--vn-ink);
  box-shadow: 3px 3px 0 rgba(58, 46, 40, 0.28);
}
.work-qty-btn,
.cart-qty-btn {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vn-ink);
  font-size: calc(18px * var(--ui));
  line-height: 1;
  cursor: pointer;
}
.work-qty-btn:hover:not(:disabled),
.cart-qty-btn:hover:not(:disabled) { background: rgba(58, 46, 40, 0.1); }
.work-qty-btn:disabled,
.cart-qty-btn:disabled { opacity: 0.35; cursor: default; }
.work-qty-n,
.cart-qty-n {
  min-width: 36px;
  font-size: calc(17px * var(--ui));
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--vn-ink);
}
.cart-option {
  font-size: calc(12px * var(--ui));
  letter-spacing: 0.04em;
  color: var(--vn-ink-soft);
}
.cart-qty { margin: 6px 0 2px; box-shadow: 2px 2px 0 rgba(58, 46, 40, 0.24); }
.cart-qty-btn { width: 36px; height: 34px; font-size: calc(16px * var(--ui)); }
.cart-qty-n { min-width: 30px; font-size: calc(14px * var(--ui)); }
@media (max-width: 960px) {
  .main-interface[data-page="works"] .shop-col { padding-top: 110px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .works-veil::before,
  .logo-strobe,
  .main-interface { transition: none; }
  .works-page--arrive { animation: none; }
}