/* UPSKINS — «Тайная лавка» (#secret-shop). Вёрстка из пакета UPSKINS_SECRET_SHOP_CORRECTED_v2 (dist/secret-shop.css + approved-layout-v2.css),
   пропорции — от утверждённого референса шириной 1086 px (--u). Все селекторы под #secretShopView / .ss-: общие шапка, лента, подвал и другие
   страницы не затрагиваются. Рамка — действующий компонент сайта (home/home-v12/assets/home-bronze-chamfer-v12-trim.png, slice 82, как на главной и в Маркете),
   без болтов и без копии файла. Фон сцены — только внутри секции лавки, плавное затемнение вниз.
   — agent: coder, model: sonnet */
#secretShopView{--u:clamp(.84px,.092081vw,1.4px);--ss-orange:#ff7b00;--ss-cream:#f5eedc;--ss-gold:#b38550;--ss-muted:#b3b2af;--ss-focus:#ffbd64;
  position:relative;color:var(--ss-cream);font-family:var(--font,Manrope,Arial,sans-serif);font-size:14px;line-height:1.4;background:#0a0f12;overflow-x:clip}
#secretShopView[hidden]{display:none}
#secretShopView *,#secretShopView *::before,#secretShopView *::after{box-sizing:border-box}
#secretShopView h1,#secretShopView h2,#secretShopView h3,#secretShopView p{margin:0;font-family:inherit}
#secretShopView button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0;-webkit-tap-highlight-color:transparent}
#secretShopView button:disabled{cursor:not-allowed;opacity:.5}
#secretShopView a{color:inherit}
#secretShopView img{max-width:100%;display:block}
#secretShopView :focus-visible{outline:2px solid var(--ss-focus);outline-offset:3px}

/* ---------- сцена: фон только внутри секции ---------- */
#secretShopView .ss-scene{position:relative;background-color:#0a0f12;background-image:linear-gradient(to bottom,transparent 65%,#0a0f12 96%),url('assets/treasury-background.webp');
  background-size:100% 100%,100% calc(1380 * var(--u));background-position:center top,center calc(-150 * var(--u));background-repeat:no-repeat}
#secretShopView .ss-scene::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#06101820,#050c1040,#06101820);pointer-events:none}
#secretShopView .ss-main{position:relative;max-width:1380px;width:90.5%;margin:0 auto;padding:calc(44 * var(--u)) 0 calc(42 * var(--u))}

/* ---------- рамка: один контур со скошенными углами ---------- */
#secretShopView .ss-bronze{position:relative;isolation:isolate;--ss-w:calc(13.5 * var(--u));--ss-c:calc(var(--ss-w) * .55)}
#secretShopView .ss-bronze::before{content:'';position:absolute;inset:0;z-index:-1;background:var(--ss-bg,#10151a);
  clip-path:polygon(var(--ss-c) 0,calc(100% - var(--ss-c)) 0,100% var(--ss-c),100% calc(100% - var(--ss-c)),calc(100% - var(--ss-c)) 100%,var(--ss-c) 100%,0 calc(100% - var(--ss-c)),0 var(--ss-c))}
#secretShopView .ss-bronze::after{content:'';position:absolute;inset:0;z-index:4;pointer-events:none;display:block;border:var(--ss-w) solid transparent;
  border-image-source:url('../home-v12/assets/home-bronze-chamfer-v12-trim.png');border-image-slice:82;border-image-width:var(--ss-w);border-image-outset:0;border-image-repeat:stretch}
#secretShopView .ss-card.ss-bronze{--ss-w:calc(9 * var(--u))}

/* ---------- хлебные крошки ---------- */
#secretShopView .ss-crumbs{display:flex;align-items:center;gap:calc(17 * var(--u));margin:0 calc(8 * var(--u)) calc(22 * var(--u));min-height:calc(20 * var(--u));font-size:max(11px,calc(13 * var(--u)));color:#e3d8c6}
#secretShopView .ss-crumbs a{color:#d5b37d;text-decoration:none}
#secretShopView .ss-crumbs a:hover{text-decoration:underline}

/* ---------- баннер ---------- */
#secretShopView .ss-hero{--ss-bg:linear-gradient(90deg,#0a0e12eb,#0a0e1285 52%,#0a0e1230);height:calc(253 * var(--u));display:block}
#secretShopView .ss-hero-copy{position:relative;z-index:2;padding:calc(38 * var(--u)) 0 0 calc(45 * var(--u))}
#secretShopView .ss-hero h1{font-size:calc(50 * var(--u));line-height:1.08;letter-spacing:calc(-1 * var(--u));font-weight:850;white-space:nowrap}
#secretShopView .ss-hero h1 em{color:var(--ss-orange);font-style:normal}
#secretShopView .ss-sub{font-size:calc(21 * var(--u));margin-top:calc(10 * var(--u));line-height:1.35;color:#d8d5cd}
#secretShopView .ss-wallet{display:inline-flex;align-items:center;gap:calc(14 * var(--u));height:calc(68 * var(--u));min-width:calc(250 * var(--u));padding:calc(11 * var(--u)) calc(20 * var(--u));margin-top:calc(26 * var(--u));
  border:1px solid #a9753c;border-radius:calc(8 * var(--u));background:#11151ab5;box-shadow:inset 0 0 14px #8c63291a}
#secretShopView .ss-wallet>img{width:calc(42 * var(--u));height:calc(42 * var(--u))}
#secretShopView .ss-wallet div>span{display:block;font-size:calc(11 * var(--u));color:#bea983;margin-bottom:calc(4 * var(--u))}
#secretShopView .ss-wallet strong{font-size:calc(24 * var(--u));line-height:1.1;font-weight:800}
#secretShopView .ss-hero-art{position:absolute;right:0;bottom:0;width:49%;height:100%;z-index:1}
#secretShopView .ss-hero-art img{width:100%;height:100%;max-width:none;object-fit:contain;object-position:right bottom}

/* ---------- вкладки ---------- */
#secretShopView .ss-toolbar{display:flex;align-items:stretch;height:calc(65 * var(--u));margin:calc(22 * var(--u)) 0 calc(22 * var(--u));border-bottom:1px solid #826038}
#secretShopView .ss-tabs{display:flex;gap:calc(6 * var(--u))}
#secretShopView .ss-tabs button,#secretShopView .ss-anchor{padding:calc(23 * var(--u)) calc(25 * var(--u)) calc(16 * var(--u));font-size:max(14px,calc(17 * var(--u)));font-weight:700;line-height:1.3;white-space:nowrap;text-decoration:none;border-bottom:3px solid transparent}
#secretShopView .ss-tabs button[aria-selected=true]{color:var(--ss-orange);border-color:var(--ss-orange);border-bottom-width:4px}
#secretShopView .ss-anchor:hover,#secretShopView .ss-tabs button:hover{color:var(--ss-orange)}

/* ---------- заголовки разделов ---------- */
#secretShopView .ss-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 calc(4 * var(--u)) calc(20 * var(--u))}
#secretShopView .ss-heading h2{font-size:max(22px,calc(33 * var(--u)));line-height:1.2;font-weight:750;letter-spacing:calc(-.5 * var(--u))}
#secretShopView .ss-heading p{font-size:max(13px,calc(16.5 * var(--u)));margin-top:calc(7 * var(--u));line-height:1.5;color:#c9c7bf}
#secretShopView .ss-rotation{font-size:12px;text-align:right;color:#bdac92;line-height:1.7;white-space:nowrap}
#secretShopView .ss-rotation strong{font-size:19px;color:var(--ss-cream);font-variant-numeric:tabular-nums}

/* ---------- сетка и карточки ---------- */
#secretShopView .ss-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:calc(10 * var(--u))}
#secretShopView .ss-card{--ss-bg:linear-gradient(120deg,#0e1418f7,#10161af0);height:calc(220 * var(--u));display:grid;grid-template-rows:calc(116 * var(--u)) calc(25 * var(--u)) calc(27 * var(--u)) calc(30 * var(--u));
  padding:calc(12 * var(--u)) calc(18 * var(--u)) calc(8 * var(--u));min-width:0;transition:filter .18s}
#secretShopView .ss-card:hover{filter:brightness(1.12)}
#secretShopView .ss-card.skin{height:calc(247 * var(--u));grid-template-rows:calc(116 * var(--u)) calc(25 * var(--u)) calc(27 * var(--u)) calc(27 * var(--u)) calc(30 * var(--u))}
#secretShopView .ss-card.prize{height:calc(260 * var(--u));grid-template-rows:calc(125 * var(--u)) calc(26 * var(--u)) calc(22 * var(--u)) calc(33 * var(--u)) calc(32 * var(--u));padding:calc(12 * var(--u)) calc(16 * var(--u)) calc(10 * var(--u))}
#secretShopView .ss-img{width:100%;height:100%;max-width:none;object-fit:contain;filter:drop-shadow(0 6px 6px #0008)}
#secretShopView .ss-card.prize .ss-img{height:calc(117 * var(--u));align-self:center}
#secretShopView .ss-sprite{overflow:hidden;mix-blend-mode:lighten;filter:none}
#secretShopView .ss-card h3{font-size:max(13px,calc(17 * var(--u)));line-height:1.2;align-self:center;letter-spacing:-.15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#ede9df;font-weight:700}
#secretShopView .ss-meta{align-self:center;font-size:max(10px,calc(10.5 * var(--u)));color:#b6ae9f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#secretShopView .ss-price{display:flex;align-items:center;gap:calc(8 * var(--u));font-size:max(16px,calc(20 * var(--u)));font-weight:700;line-height:1.2}
#secretShopView .ss-price img{width:calc(20 * var(--u));height:calc(20 * var(--u));min-width:16px;min-height:16px}
#secretShopView .ss-open{display:flex;align-items:center;gap:calc(8 * var(--u));width:100%;height:100%;padding:0;text-align:left;color:#fb992f;border-top:1px solid #443c30;font-size:max(12px,calc(14 * var(--u)));font-weight:700}
#secretShopView .ss-open::after{content:'›';font-size:1.5em;font-weight:400;line-height:1}
#secretShopView .ss-open:hover{color:#ffb45a}
#secretShopView .ss-card.is-sold .ss-img{opacity:.45;filter:grayscale(.7)}
#secretShopView .ss-card.is-sold .ss-open{color:#a79985}

/* ---------- состояния: загрузка, пусто, ошибка ---------- */
#secretShopView .ss-skel .ss-sk{background:linear-gradient(90deg,#1c2229,#262e37,#1c2229);background-size:200% 100%;border-radius:3px}
#secretShopView .ss-skel .ss-sk.img{height:calc(100 * var(--u));margin-top:calc(4 * var(--u))}
#secretShopView .ss-skel .ss-sk.line{height:calc(14 * var(--u));width:70%;align-self:center}
#secretShopView .ss-skel .ss-sk.line.s{width:40%}
#secretShopView .ss-state{grid-column:1/-1;text-align:center;padding:calc(34 * var(--u)) 16px;color:#d8d3c7;border:1px dashed #6d5235;border-radius:4px;background:#0f1418cc}
#secretShopView .ss-state b{display:block;font-size:max(15px,calc(19 * var(--u)));margin-bottom:6px}
#secretShopView .ss-state button{margin-top:14px}

/* ---------- техника ---------- */
#secretShopView .ss-tech{margin-top:calc(42 * var(--u));scroll-margin-top:24px}
#secretShopView .ss-tech .ss-heading{padding-top:calc(20 * var(--u));border-top:1px solid #6d5235}
#secretShopView .ss-tech .ss-card.prize h3{font-size:max(13px,calc(16.5 * var(--u)))}
#secretShopView .ss-summary{--ss-bg:#382b16c0;--ss-w:calc(9 * var(--u));display:flex;align-items:center;gap:calc(15 * var(--u));margin-top:calc(20 * var(--u));padding:calc(15 * var(--u)) calc(22 * var(--u))}
#secretShopView .ss-summary>img{width:calc(42 * var(--u));height:calc(42 * var(--u));min-width:28px;min-height:28px}
#secretShopView .ss-summary strong{color:#d5a15a;font-size:max(15px,calc(19 * var(--u)))}
#secretShopView .ss-summary p{color:#d0c9bc;font-size:max(11px,calc(13 * var(--u)));margin-top:calc(6 * var(--u));line-height:1.5}

/* ---------- полоса пояснений ---------- */
#secretShopView .ss-band{--ss-bg:#11171bed;--ss-w:calc(9 * var(--u));display:grid;grid-template-columns:repeat(3,1fr);min-height:calc(60 * var(--u));margin-top:calc(30 * var(--u));padding:calc(12 * var(--u))}
#secretShopView .ss-band>div{display:flex;align-items:center;justify-content:center;gap:calc(20 * var(--u));padding:0 calc(12 * var(--u));font-size:max(12px,calc(14 * var(--u)))}
#secretShopView .ss-band>div+div{border-left:1px solid #4b4236}
#secretShopView .ss-band img,#secretShopView .ss-band svg{width:calc(29 * var(--u));height:calc(29 * var(--u));min-width:22px;min-height:22px;flex-shrink:0}
#secretShopView .ss-band svg{fill:none;stroke:#b89158;stroke-width:1.5;stroke-linejoin:round}

/* ---------- окно ---------- */
#secretShopView .ss-modal{color:var(--ss-cream);background:#13181f;border:1px solid #997547;border-radius:7px;padding:32px;max-width:760px;width:calc(100% - 32px);max-height:90vh;overflow:auto;box-shadow:0 20px 100px #000b}
#secretShopView .ss-modal::backdrop{background:#020609dc;backdrop-filter:blur(5px)}
#secretShopView .ss-modal-close{position:absolute;right:12px;top:6px;font-size:30px;line-height:1;color:#aaa;padding:8px}
#secretShopView .ss-modal h2{font-size:26px;padding-right:24px;margin-bottom:16px;line-height:1.2}
#secretShopView .ss-modal h2:focus{outline:none}
#secretShopView .ss-modal h3{font-size:19px;margin:22px 0 12px}
#secretShopView .ss-modal p{font-size:15px;line-height:1.6;color:#c8c4ba;margin:10px 0}
#secretShopView .ss-top{display:grid;grid-template-columns:190px 1fr;gap:25px;align-items:center}
#secretShopView .ss-top .ss-img{height:160px}
#secretShopView .ss-top .ss-price{font-size:24px;margin-top:6px}
#secretShopView .ss-top .ss-price img{width:24px;height:24px}
#secretShopView .ss-muted{font-size:13px!important;color:#aaa!important}
#secretShopView .ss-drops{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
#secretShopView .ss-drop{background:#0d1219;border:1px solid #3f3a35;border-radius:4px;padding:12px;font-size:13px}
#secretShopView .ss-drop img{height:67px;width:100%;object-fit:contain;margin-bottom:12px}
#secretShopView .ss-drop strong{display:block;color:#ffae53;margin-top:9px;font-size:17px}
#secretShopView .ss-sum{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#0b1017;border:1px solid #383632;padding:16px;margin:20px 0;font-size:14px}
#secretShopView .ss-sum b{display:block;font-size:20px;margin-top:7px}
#secretShopView .ss-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:22px}
#secretShopView .ss-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:3px;padding:12px 24px;font-weight:700;text-decoration:none;border:1px solid transparent;min-height:44px}
#secretShopView .ss-btn.primary{background:var(--ss-orange);color:#111}
#secretShopView .ss-btn.primary:hover:not(:disabled){background:#ff941f}
#secretShopView .ss-btn.secondary{border-color:#685540;background:transparent;color:var(--ss-cream)}
#secretShopView .ss-btn.secondary:hover{background:#2a241b}
#secretShopView .ss-notice{padding:12px 14px;background:#d79b2510;border-left:2px solid #b3813c;font-size:13px!important}
#secretShopView .ss-notice.warn{background:#ff7b0018;border-color:#ff7b00}
#secretShopView .ss-ok{color:#b3cf91}
#secretShopView .ss-bad{color:#f0a08a}
#secretShopView .ss-reveal{display:grid;grid-template-columns:190px 1fr;gap:25px;align-items:center;padding:18px;border:1px solid #6d5235;border-radius:6px;background:radial-gradient(ellipse at 30% 50%,#ffb45a22,transparent 65%),#0b1017}
#secretShopView .ss-reveal .ss-img{height:130px}
@media (prefers-reduced-motion:no-preference){
  #secretShopView .ss-skel .ss-sk{animation:ssPulse 1.3s linear infinite}
  #secretShopView .ss-reveal .ss-img{animation:ssReveal .7s cubic-bezier(.2,.8,.2,1) both}
  #secretShopView .ss-reveal{animation:ssGlow 1.2s ease-out both}
}
@keyframes ssPulse{to{background-position:-200% 0}}
@keyframes ssReveal{from{opacity:0;transform:scale(.6) rotate(-4deg)}to{opacity:1;transform:none}}
@keyframes ssGlow{from{box-shadow:0 0 0 #ffb45a00}40%{box-shadow:0 0 38px #ffb45a66}to{box-shadow:0 0 0 #ffb45a00}}

/* ---------- планшет ---------- */
@media(max-width:1000px) and (min-width:901px){#secretShopView .ss-card h3{font-size:14px}}
@media(max-width:900px){
  #secretShopView{--u:1px}
  #secretShopView .ss-main{width:93%;padding-top:28px}
  #secretShopView .ss-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #secretShopView .ss-hero{height:260px}
  #secretShopView .ss-hero-copy{padding:30px 0 0 26px}
  #secretShopView .ss-hero h1{font-size:39px}
  #secretShopView .ss-sub{font-size:16px}
  #secretShopView .ss-wallet{min-width:205px;height:61px;margin-top:20px;padding:10px 15px}
  #secretShopView .ss-wallet strong{font-size:20px}
  #secretShopView .ss-wallet>img{width:34px;height:34px}
  #secretShopView .ss-hero-art{width:46%}
  #secretShopView .ss-tabs button,#secretShopView .ss-anchor{font-size:15px;padding:21px 20px 16px}
  #secretShopView .ss-heading h2{font-size:29px}
  #secretShopView .ss-heading p{font-size:14px}
  #secretShopView .ss-card h3{font-size:15px}
  #secretShopView .ss-price{font-size:19px}
  #secretShopView .ss-open{font-size:13px}
  #secretShopView .ss-meta{font-size:11px}
  #secretShopView .ss-band>div{gap:10px;font-size:12px}
}
/* ---------- телефон ---------- */
@media(max-width:600px){
  #secretShopView .ss-main{width:94%;padding:22px 0 25px}
  #secretShopView .ss-crumbs{font-size:11px;margin:0 3px 15px}
  #secretShopView .ss-hero{height:330px}
  #secretShopView .ss-hero-copy{padding:25px 21px 0}
  #secretShopView .ss-hero h1{font-size:34px;letter-spacing:-1.1px}
  #secretShopView .ss-sub{font-size:13px;margin-top:9px}
  #secretShopView .ss-wallet{min-width:173px;height:53px;margin-top:20px;padding:9px 11px;gap:9px}
  #secretShopView .ss-wallet>img{width:29px;height:29px}
  #secretShopView .ss-wallet div>span{font-size:10px}
  #secretShopView .ss-wallet strong{font-size:17px}
  #secretShopView .ss-hero-art{width:90%;height:165px;right:-3px}
  #secretShopView .ss-toolbar{height:55px;margin-bottom:21px}
  #secretShopView .ss-tabs{gap:0}
  #secretShopView .ss-tabs button,#secretShopView .ss-anchor{font-size:14px;padding:18px 12px 14px}
  #secretShopView .ss-anchor{margin-left:auto}
  #secretShopView .ss-tabs button[aria-selected=true]{border-bottom-width:3px}
  #secretShopView .ss-heading{display:block;margin:0 3px 17px}
  #secretShopView .ss-heading h2{font-size:25px;letter-spacing:-.6px;line-height:1.16}
  #secretShopView .ss-heading p{font-size:13px;line-height:1.45;margin-top:9px}
  #secretShopView .ss-rotation{text-align:left;margin-top:10px}
  #secretShopView .ss-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  #secretShopView .ss-card{height:204px;grid-template-rows:105px 24px 26px 29px;padding:11px 11px 9px}
  #secretShopView .ss-card h3{font-size:13px;letter-spacing:-.1px}
  #secretShopView .ss-price{font-size:18px;gap:7px}
  #secretShopView .ss-price img{width:18px;height:18px}
  #secretShopView .ss-open{font-size:12px}
  #secretShopView .ss-card.skin{height:226px;grid-template-rows:105px 24px 22px 26px 29px}
  #secretShopView .ss-meta{font-size:10px}
  #secretShopView .ss-tech{margin-top:30px}
  #secretShopView .ss-tech .ss-heading{padding-top:25px}
  #secretShopView .ss-card.prize{height:234px;grid-template-rows:108px 24px 22px 30px 29px;padding:11px}
  #secretShopView .ss-tech .ss-card.prize h3{font-size:13px}
  #secretShopView .ss-card.prize .ss-img{height:101px}
  #secretShopView .ss-summary{gap:12px;margin-top:17px;padding:14px 12px}
  #secretShopView .ss-summary>img{width:32px;height:32px}
  #secretShopView .ss-summary strong{font-size:16px}
  #secretShopView .ss-summary p{font-size:11px;line-height:1.45}
  #secretShopView .ss-band{grid-template-columns:1fr;margin-top:24px;padding:8px 15px}
  #secretShopView .ss-band>div{justify-content:flex-start;padding:10px 0;gap:12px;font-size:12px}
  #secretShopView .ss-band>div+div{border-left:0;border-top:1px solid #443c2f}
  #secretShopView .ss-band img,#secretShopView .ss-band svg{width:25px;height:25px}
  #secretShopView .ss-modal{padding:25px 18px}
  #secretShopView .ss-modal h2{font-size:23px}
  #secretShopView .ss-top,#secretShopView .ss-reveal{grid-template-columns:110px 1fr;gap:14px}
  #secretShopView .ss-top .ss-img{height:105px}
  #secretShopView .ss-reveal .ss-img{height:90px}
  #secretShopView .ss-drops{grid-template-columns:1fr}
  #secretShopView .ss-drop{display:grid;grid-template-columns:65px 1fr 50px;gap:12px;align-items:center}
  #secretShopView .ss-drop img{margin:0;height:46px}
  #secretShopView .ss-drop strong{margin:0}
  #secretShopView .ss-sum{font-size:12px}
  #secretShopView .ss-sum b{font-size:16px}
  #secretShopView .ss-btn{padding:12px 17px}
  #secretShopView .ss-actions{gap:9px}
}
@media(prefers-reduced-motion:reduce){#secretShopView *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* 27.11.2026 (main): картинки скинов из пакета — непрозрачные (фон #1a1e24); вырезка фона съедала тёмные детали оружия, поэтому скин показывается плиткой того же цвета */
#secretShopView img[src*="/skins/"]{border-radius:6px;background:#1a1e24}
