:root{
  --paper:#fff;--ink:#0d0d0d;--shop-stage-scale:1;--shop-screen-y:0px;--shop-camera-y:0px;--shop-camera-scale:1;--shop-camera-blur:0px;--shop-floor-cloud:0;
  --menu-font:"Cinzel",Georgia,serif;--serif:"Cormorant Garamond",Georgia,serif;--fa:"Vazirmatn",Tahoma,sans-serif;--paper-ease:cubic-bezier(.16,.84,.24,1)
}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#fff;color:var(--ink)}
body{font-family:var(--serif);overscroll-behavior:none;touch-action:none;-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}
body[data-lang="fa"]{font-family:var(--fa)}
img{display:block;max-width:none;user-select:none;-webkit-user-drag:none}a,button{font:inherit;color:inherit}button{-webkit-tap-highlight-color:transparent}
.shop-viewport{position:fixed;inset:0;overflow:hidden;background:#fff;isolation:isolate}
.shop-stage{position:absolute;left:50%;bottom:var(--shop-screen-y);width:1672px;height:941px;transform:translateX(-50%) translate3d(0,var(--shop-camera-y),0) scale(calc(var(--shop-stage-scale) * var(--shop-camera-scale)));transform-origin:50% 100%;perspective:2400px;transform-style:preserve-3d;overflow:visible;filter:blur(var(--shop-camera-blur));will-change:transform,filter}
.shop-piece{position:absolute;left:calc(var(--x) + var(--edge-x,0px));top:calc(var(--y) + var(--edge-y,0px));width:calc(var(--w) + var(--edge-extra-w,0px));z-index:var(--z);transform-origin:50% 50%;transform:translate3d(calc(var(--pointer-x,0px) + var(--exit-x,0px)),calc(var(--depth-y,0px) + var(--pointer-y,0px)),0);will-change:transform;pointer-events:none}
.shop-piece>.motion{position:relative;width:100%;transform-origin:50% 50%;will-change:transform,clip-path}.shop-piece img{width:100%;height:auto}html.has-js .shop-piece>.motion{visibility:hidden}
.floor>.motion{transform-origin:50% 0}.main-gate>.motion{transform-origin:50% 100%}.top-character>.motion{transform-origin:50% 100%}
.shop-particles{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}.shop-particles span{position:absolute;width:1.3px;height:1.3px;border-radius:50%;background:rgba(0,0,0,.14);opacity:.17}.shop-particles span.is-near{width:2.2px;height:2.2px;opacity:.07;filter:blur(.4px)}

/* The gate is the architectural foreground frame; category objects live behind its openings.
   Stacking remains controlled by each layer's --z so Tune mode can edit it directly. */
.category-object,.category-label{pointer-events:auto;text-decoration:none;color:#111}
.category-object>.motion{transform-origin:50% 100%;transition:transform .5s var(--paper-ease)}
.category-object:hover>.motion,.category-object:focus-visible>.motion{transform:translateY(-5px) rotate(.25deg) scale(1.018)}
.category-label>.motion{min-height:48px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:3px 7px 2px;overflow:hidden;text-align:center}
.category-label span{font-family:var(--serif);font-weight:600;font-size:21px;line-height:1.05;white-space:nowrap;letter-spacing:.015em}
.category-label i{font-family:Georgia,serif;font-style:normal;font-size:10px;line-height:1;margin-top:5px}
body[data-lang="fa"] .category-label span{font-family:var(--fa);font-weight:400;font-size:17px;letter-spacing:0}
.category-label:after{content:"";position:absolute;left:25%;right:25%;bottom:4px;height:1px;background:#111;transform:scaleX(0);transition:transform .32s ease}.category-label:hover:after,.category-label:focus-visible:after{transform:scaleX(1)}
.brand-title{pointer-events:none}.brand-title>.motion{height:62px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}.brand-title span{font-family:var(--menu-font);font-size:42px;line-height:1;letter-spacing:.13em;font-weight:500;white-space:nowrap;transform:translateX(.06em)}body[data-lang="fa"] .brand-title span{font-family:var(--fa);font-size:34px;letter-spacing:0;font-weight:400}
.top-character.is-alive>.motion{animation:topCharacterRest 8.8s ease-in-out infinite}.top-character--right.is-alive>.motion{animation-delay:-4.1s}@keyframes topCharacterRest{0%,100%{rotate:0deg;translate:0 0}38%{rotate:.22deg;translate:0 -1px}67%{rotate:-.15deg;translate:0 .5px}}
.floor-guardians>.motion{transform-origin:50% 100%}.floor-guardians.is-alive>.motion{animation:guardiansRest 8s ease-in-out infinite}@keyframes guardiansRest{0%,100%{translate:0 0;rotate:0deg}50%{translate:0 -1.5px;rotate:.12deg}}
.category-object.is-alive>.motion{animation:objectBreath 11s ease-in-out infinite}.category-object:nth-of-type(3n).is-alive>.motion{animation-delay:-3.4s}.category-object:nth-of-type(4n).is-alive>.motion{animation-delay:-6.1s}@keyframes objectBreath{0%,100%{translate:0 0;rotate:0deg}48%{translate:0 -1.2px;rotate:.12deg}62%{translate:0 0;rotate:-.08deg}}

/* Same mechanical compact menu language as Landing, with utility icons. */
.shop-menu{position:fixed;z-index:1200;top:max(18px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));height:40px;direction:ltr;pointer-events:none}.shop-menu__toggle{position:absolute;right:0;top:0;width:38px;height:38px;border:1px solid rgba(12,12,11,.22);border-radius:50%;background:#fff;padding:4px;display:grid;place-items:center;cursor:pointer;pointer-events:auto;z-index:3;overflow:hidden;transition:transform .72s var(--paper-ease),border-color .3s ease}.shop-menu__toggle:hover{border-color:rgba(12,12,11,.6)}.shop-menu__toggle img{width:100%;height:100%;object-fit:contain;transition:transform .72s var(--paper-ease)}.shop-menu__chevron{position:absolute;right:2px;bottom:2px;width:7px;height:7px;border-right:1px solid #111;border-bottom:1px solid #111;transform:rotate(45deg) scale(.6);opacity:.55;transition:transform .6s var(--paper-ease)}
.shop-menu__rail{position:absolute;right:0;top:1px;height:36px;width:656px;padding:0 50px 0 14px;display:flex;align-items:center;justify-content:flex-end;gap:13px;background:#fff;border-top:1px solid rgba(12,12,11,.18);border-bottom:1px solid rgba(12,12,11,.18);box-shadow:0 2px 16px rgba(0,0,0,.025);clip-path:inset(0 0 0 100%);transform:translateX(20px);transition:clip-path .7s var(--paper-ease),transform .7s var(--paper-ease);pointer-events:none;white-space:nowrap}.shop-menu__rail>a:not(.shop-menu__utility){font-family:var(--menu-font);font-size:10px;letter-spacing:.18em;text-decoration:none;position:relative;line-height:1.1}body[data-lang="fa"] .shop-menu__rail>a:not(.shop-menu__utility){font-family:var(--fa);font-size:11px;letter-spacing:0}.shop-menu__rail>a:not(.shop-menu__utility):after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:1px;background:currentColor;transform:scaleX(0);transition:transform .25s ease}.shop-menu__rail>a:not(.shop-menu__utility):hover:after,.shop-menu__rail>a.is-current:after{transform:scaleX(1)}.shop-menu__dot{font-size:7px;opacity:.4}.shop-menu__divider{height:18px;width:1px;background:rgba(0,0,0,.25);margin:0 2px}.shop-menu__utility{width:27px;height:27px;border:0;background:#fff;padding:3px;display:grid;place-items:center;cursor:pointer;pointer-events:auto;text-decoration:none}.shop-menu__utility svg{width:19px;height:19px;fill:none;stroke:#111;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}.currency-glyph{font-family:var(--menu-font);font-size:17px;line-height:1}.shop-menu.is-open .shop-menu__rail{clip-path:inset(0 0 0 0);transform:translateX(0);pointer-events:auto}.shop-menu.is-open .shop-menu__toggle{transform:translateX(-606px)}.shop-menu.is-open .shop-menu__toggle img{transform:rotate(-6deg)}.shop-menu.is-open .shop-menu__chevron{transform:rotate(225deg) scale(.6)}

/* Lower-floor cloud: it only occupies the bottom of the viewport at the final crane-out. */
.shop-viewport::after{content:"";position:absolute;z-index:1140;left:-7vw;right:-7vw;bottom:-5vh;height:31vh;pointer-events:none;opacity:var(--shop-floor-cloud);transform:translate3d(0,calc((1 - var(--shop-floor-cloud))*28px),0);background:radial-gradient(ellipse at 13% 83%,rgba(255,255,255,.98) 0 18%,rgba(255,255,255,.72) 32%,rgba(255,255,255,0) 59%),radial-gradient(ellipse at 37% 92%,rgba(255,255,255,.98) 0 20%,rgba(255,255,255,.68) 36%,rgba(255,255,255,0) 63%),radial-gradient(ellipse at 64% 86%,rgba(255,255,255,.98) 0 18%,rgba(255,255,255,.70) 34%,rgba(255,255,255,0) 61%),radial-gradient(ellipse at 88% 94%,rgba(255,255,255,.98) 0 21%,rgba(255,255,255,.66) 38%,rgba(255,255,255,0) 65%),linear-gradient(to top,#fff 0 25%,rgba(255,255,255,.96) 43%,rgba(255,255,255,.58) 66%,rgba(255,255,255,0) 100%);filter:blur(5px);will-change:opacity,transform}

/* Tune mode */
body[data-tune="1"] .shop-menu,body[data-tune="1"] .shop-viewport::after{display:none!important}body[data-tune="1"] .shop-piece{pointer-events:none}body[data-tune="1"] .shop-piece.tune-selected{outline:1px dashed rgba(190,0,0,.9);outline-offset:4px;pointer-events:auto;cursor:move}body[data-tune="1"] [data-tune-part].tune-part-selected{outline:1px dashed rgba(0,75,190,.92)!important;outline-offset:3px;pointer-events:auto!important;cursor:move!important}body[data-tune="1"] .shop-piece.tune-selected:after{content:attr(data-piece);position:absolute;left:0;top:-22px;font:11px/1.2 monospace;background:#fff;border:1px solid #111;padding:2px 5px;white-space:nowrap;z-index:999}.tune-reference{position:absolute;inset:0;width:1672px;height:941px;object-fit:fill;z-index:200;pointer-events:none;opacity:.30;mix-blend-mode:multiply}.tune-panel{position:fixed;left:14px;top:14px;z-index:5000;width:305px;background:rgba(255,255,255,.98);border:1px solid #111;padding:10px 12px 12px;font:12px/1.35 monospace;box-shadow:0 8px 30px rgba(0,0,0,.10);touch-action:auto}.tune-panel__head{display:flex;align-items:center;gap:6px;cursor:move;user-select:none;margin:-2px 0 8px}.tune-panel__head h3{font:600 13px/1.2 var(--menu-font);letter-spacing:.08em;margin:0 auto 0 0}.tune-panel__icon{width:27px!important;min-width:27px;padding:4px!important}.tune-panel label{display:grid;grid-template-columns:44px 1fr;align-items:center;gap:6px;margin:5px 0}.tune-panel select,.tune-panel input,.tune-panel button{font:12px/1.2 monospace;background:#fff;border:1px solid #aaa;padding:5px 6px;color:#111}.tune-panel select{width:100%}.tune-panel__row{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:7px}.tune-panel__wide{display:grid;grid-template-columns:1fr;gap:6px;margin-top:7px}.tune-panel button{cursor:pointer}.tune-panel button:hover{border-color:#111}.tune-panel small,.tune-note{display:block;margin-top:8px;opacity:.72}.tune-panel.is-minimized{width:auto;padding:7px}.tune-panel.is-minimized .tune-panel__body{display:none}.tune-panel.is-minimized .tune-panel__head{margin:0}.tune-panel.is-minimized .tune-panel__head h3{font-size:10px;margin-right:8px}.tune-panel.is-minimized #tuneDock{display:none}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.shop-stage{filter:none!important}}
@media(max-width:980px){.shop-menu{top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right))}.shop-menu__rail{width:520px;gap:9px}.shop-menu.is-open .shop-menu__toggle{transform:translateX(-470px)}.tune-panel{width:265px;max-height:calc(100vh - 28px);overflow:auto}}


/* V1.5 category inventory count — text only, does not alter tuned X/Y/W/Z positions. */
.category-count{display:block;margin-top:2px;font-family:var(--menu-font);font-size:7px;line-height:1;letter-spacing:.12em;text-transform:uppercase;font-weight:400;opacity:.52;white-space:nowrap}
body[data-lang="fa"] .category-count{font-family:var(--fa);font-size:8px;letter-spacing:0;direction:rtl}
.category-label>.motion{justify-content:flex-start}
.category-label i{margin-top:3px}
