/* v11 — финальные правки книги, лавки и рабочего сундука */
body.v6.page-book .story-strip>.panel.parchment{
  background:
    radial-gradient(circle at 18% 8%, rgba(255,221,146,.13), transparent 38%),
    linear-gradient(135deg, rgba(9,9,13,.86), rgba(22,16,18,.68));
  color:#fff8df;
  border-color:rgba(232,191,112,.34);
  box-shadow:0 28px 84px rgba(0,0,0,.48), inset 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter:blur(14px);
  overflow:hidden;
}
body.v6.page-book .story-strip>.panel.parchment::before{
  content:"";position:absolute;inset:-20%;pointer-events:none;opacity:.18;
  background:url('../decor/seal-2.webp') right 24px top 18px/180px auto no-repeat;
}
body.v6.page-book .story-strip>.panel.parchment h2,
body.v6.page-book .story-strip>.panel.parchment h3{color:#fffdf2;text-shadow:0 0 26px rgba(255,230,168,.18)}
body.v6.page-book .story-strip>.panel.parchment p,
body.v6.page-book .story-strip>.panel.parchment li{color:#f1e5c8}
body.v6.page-book .story-strip>.panel.parchment .badge{
  color:#ffe3a6;background:rgba(255,212,126,.10);border-color:rgba(255,220,139,.38);text-shadow:0 0 12px rgba(255,207,116,.24)
}
body.v6.page-book .story-strip>.panel.parchment .btn{background:linear-gradient(135deg,rgba(80,61,35,.92),rgba(42,12,19,.84));color:#fff6df}
body.v6 .category-bar{gap:14px;align-items:center}
body.v6 .chip-v6{
  min-height:56px;padding:9px 18px 9px 10px;border-radius:999px;
  background:linear-gradient(180deg,rgba(24,23,28,.94),rgba(9,9,12,.86));
  border-color:rgba(226,181,95,.42);box-shadow:0 12px 38px rgba(0,0,0,.32), inset 0 0 0 1px rgba(255,255,255,.025);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
body.v6 .chip-v6 img{width:42px!important;height:42px!important;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px rgba(238,197,110,.28),0 0 20px rgba(215,159,69,.16);transition:transform .22s ease, filter .22s ease}
body.v6 .chip-v6 span{font-size:15px;color:#fff6dc;font-weight:700;letter-spacing:.01em}
body.v6 .chip-v6:hover,body.v6 .chip-v6.active{transform:translateY(-2px);border-color:rgba(255,221,142,.82);background:linear-gradient(135deg,rgba(67,52,30,.92),rgba(29,20,21,.86));box-shadow:0 0 0 1px rgba(255,219,144,.18),0 0 32px rgba(226,169,67,.22),0 18px 48px rgba(0,0,0,.44)}
body.v6 .chip-v6:hover img,body.v6 .chip-v6.active img{transform:scale(1.09) rotate(-2deg);filter:drop-shadow(0 0 10px rgba(255,205,105,.65))}
body.v6 .chip-v6.active{position:relative;overflow:hidden}
body.v6 .chip-v6.active::after{content:"";position:absolute;inset:-40%;background:linear-gradient(110deg,transparent 35%,rgba(255,229,165,.20) 48%,transparent 62%);animation:v11ChipShimmer 2.6s ease-in-out infinite;pointer-events:none}
@keyframes v11ChipShimmer{0%{transform:translateX(-35%)}65%,100%{transform:translateX(35%)}}
body.v6.page-cart .panel,body.v6.page-cart .parchment{background:transparent!important}
body.v6.page-cart #cart-content>.panel{display:none!important}
body.v6.page-cart .v11-chest-stage{position:relative;min-height:650px;border-radius:34px;overflow:hidden;border:1px solid rgba(231,197,127,.34);box-shadow:0 28px 90px rgba(0,0,0,.55);background:#09070a}
body.v6.page-cart .v11-chest-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;filter:saturate(.98) contrast(1.06)}
body.v6.page-cart .v11-chest-fade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.05),rgba(0,0,0,.18) 42%,rgba(0,0,0,.72)),radial-gradient(circle at 68% 18%,rgba(255,195,91,.15),transparent 28%);pointer-events:none}
body.v6.page-cart .v11-chest-panel{position:relative;z-index:2;margin-left:auto;margin-right:5%;top:64px;width:min(560px,48%);padding:34px 34px 30px;border-radius:28px;background:linear-gradient(135deg,rgba(10,9,12,.68),rgba(24,16,13,.46));border:1px solid rgba(255,210,125,.30);box-shadow:0 24px 70px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.045);backdrop-filter:blur(11px)}
body.v6.page-cart .v11-badge{display:inline-flex;border:1px solid rgba(255,219,142,.42);border-radius:999px;padding:7px 13px;color:#ffe0a0;background:rgba(255,213,129,.10);text-transform:uppercase;letter-spacing:.10em;font-size:12px;font-weight:800}
body.v6.page-cart .v11-chest-title{font-size:clamp(44px,4.5vw,74px);line-height:1.02;margin:16px 0 12px;color:#ffe5a8;text-shadow:0 0 16px rgba(255,193,89,.55),0 0 42px rgba(255,170,55,.25);animation:v11TitleAssemble 1.15s cubic-bezier(.2,.8,.2,1) both}
body.v6.page-cart .v11-chest-sub{font-size:18px;line-height:1.58;color:#f4deb3;margin:0 0 18px;animation:v11FadeUp .9s ease .16s both}.v11-cart-list{display:grid;gap:12px;margin:20px 0}.v11-cart-row{display:grid;grid-template-columns:60px 1fr auto;gap:14px;align-items:center;padding:12px;border:1px solid rgba(255,211,125,.20);border-radius:18px;background:linear-gradient(90deg,rgba(255,221,142,.08),rgba(0,0,0,.18));animation:v11FadeUp .52s ease both}.v11-cart-row img{width:60px;height:60px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,218,142,.35);box-shadow:0 0 20px rgba(239,183,80,.18)}.v11-cart-title{color:#fff8e8;font-weight:800;font-size:17px}.v11-cart-meta{color:#e6c892;font-size:14px}.v11-cart-controls{display:flex;align-items:center;gap:6px;justify-content:flex-end}.v11-cart-controls button{width:30px;height:30px;border-radius:50%;border:1px solid rgba(255,216,139,.42);background:rgba(0,0,0,.25);color:#fff1c7;font-weight:900;cursor:pointer}.v11-cart-controls strong{color:#ffe2a3;min-width:18px;text-align:center}.v11-cart-total{border-top:1px solid rgba(255,217,143,.20);padding-top:16px;margin-top:6px}.v11-cart-total h3{margin:0 0 14px;color:#fff5db;font-size:28px}.v11-empty .v11-chest-panel{width:min(600px,52%)}
@keyframes v11TitleAssemble{0%{opacity:0;letter-spacing:.17em;filter:blur(9px);transform:translateY(16px)}65%{opacity:1;filter:blur(1px)}100%{letter-spacing:.02em;filter:blur(0);transform:none}}
@keyframes v11FadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:900px){body.v6.page-cart .v11-chest-stage{min-height:720px}body.v6.page-cart .v11-chest-panel{width:auto;margin:22px;top:22px}.v11-cart-row{grid-template-columns:54px 1fr}.v11-cart-controls{grid-column:2;justify-content:flex-start}.v11-chest-fade{background:linear-gradient(0deg,rgba(0,0,0,.78),rgba(0,0,0,.24))!important}}
@media(max-width:640px){body.v6 .category-bar{gap:10px}body.v6 .chip-v6{min-height:58px;padding:8px 13px 8px 8px}body.v6 .chip-v6 img{width:40px!important;height:40px!important}body.v6.page-cart .v11-chest-panel{padding:24px 18px;border-radius:22px}.v11-cart-row{grid-template-columns:48px 1fr}.v11-cart-row img{width:48px;height:48px}.v11-cart-title{font-size:15px}.v11-cart-meta{font-size:13px}}


/* v15 — текстовая полировка, доступность и мягкая анимация */
.header{position:sticky;top:0;z-index:80;will-change:transform;}
.menu a[aria-current="page"]{background:rgba(212,170,99,.18);color:#fff;opacity:1;box-shadow:inset 0 0 0 1px rgba(243,217,157,.18)}
.hotspot{transition:transform .34s cubic-bezier(.2,.8,.2,1), background .34s ease, box-shadow .34s ease, border-color .34s ease;will-change:transform;}
.hotspot:hover,.hotspot:focus-visible{transform:translate3d(0,-3px,0) scale(1.025);}
.hotspot.is-active,.hotspot[aria-pressed="true"]{outline:2px solid rgba(255,216,139,.75);border-color:rgba(255,231,170,.95)!important;box-shadow:0 0 32px rgba(255,216,139,.22)}
.product-card .card-img img,.card-img img{will-change:transform;transform:translateZ(0);}
.product-card:hover .card-img img{transform:scale(1.04);}
#toast{will-change:transform,opacity;}
.cosmic-ring,.cosmic-runes,.cosmic-leya,.water-card:before,.chest-big,.v11-chest-title{will-change:transform,opacity,filter;}
.form-status{min-height:1.2em;margin-top:12px;color:#fff6d8;background:rgba(255,255,255,.06);border:1px solid rgba(255,216,139,.22);border-radius:16px;padding:10px 12px}
.skeleton-line{position:relative;overflow:hidden;border-radius:16px;padding:14px 16px;background:rgba(255,255,255,.06);color:#fff6d8}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(1px,1px,1px,1px)!important;white-space:nowrap!important}
@media (prefers-reduced-motion: reduce){.hotspot:hover,.hotspot:focus-visible,.product-card:hover .card-img img{transform:none!important}}


/* v23 assets polish */
body.v6 .chip-v6{gap:12px;padding:12px 18px}
body.v6 .chip-v6 img{width:54px!important;height:54px!important;object-fit:contain!important;object-position:center!important;border-radius:50%;background:radial-gradient(circle at 30% 25%,rgba(255,235,180,.16),rgba(0,0,0,.18));padding:5px;box-shadow:0 0 0 1px rgba(238,197,110,.28),0 0 24px rgba(215,159,69,.20)!important}
body.v6 .icon-btn img{object-fit:contain!important;object-position:center!important;background:radial-gradient(circle at 30% 25%,rgba(255,235,180,.12),rgba(0,0,0,.12));padding:2px}
body.v6 .product-card .card-img{display:grid;place-items:center;background:#0b0a0c}
body.v6 .product-card .card-img img{object-fit:contain!important;object-position:center center!important;background:#0b0a0c;padding:8px;transform:none!important}
body.v6 .product-card:hover .card-img img{transform:scale(1.02)!important}
body.v6 .seal-icon img,body.v6 .house-node-v4 img{object-fit:contain!important;object-position:center center!important;padding:4px}
body.v6 .v4-divider{height:68px;background-size:auto 60px!important;opacity:.82}
@media(max-width:760px){body.v6 .chip-v6 img{width:48px!important;height:48px!important;padding:4px}}

/* v24 generated divider + Veles icon fit */
body.v6 .section::before{
  height:118px!important;
  width:min(1180px,94vw)!important;
  margin:-42px auto 18px!important;
  background:url('../decor/divider-2.webp') center/contain no-repeat!important;
  opacity:.72!important;
}
body.v6 .section.compact::before{height:96px!important;margin:-30px auto 12px!important;opacity:.62!important}
body.v6 .v4-divider{
  height:128px!important;
  margin:20px auto 24px!important;
  width:min(1180px,94vw)!important;
  background:url('../decor/divider-2.webp') center/contain no-repeat!important;
  opacity:.84!important;
  filter:drop-shadow(0 0 18px rgba(212,170,99,.22))!important;
}
body.v6 .house-node-v4[data-house="veles"] img,
body.v6 .house-card-v4[data-house="veles"] img.house-icon,
body.v6 .room-veles .seal-icon img{
  object-fit:cover!important;
  padding:0!important;
  border-radius:18px!important;
  transform:scale(1.08)!important;
  background:#05070a!important;
}
@media(max-width:760px){
  body.v6 .section::before{height:76px!important;margin:-20px auto 10px!important;width:96vw!important;opacity:.58!important}
  body.v6 .section.compact::before{height:68px!important;margin:-14px auto 8px!important}
  body.v6 .v4-divider{height:82px!important;margin:12px auto 16px!important;width:96vw!important}
}


/* v25 final overrides */
body.v6 .v4-divider{width:min(860px,84vw)!important;height:72px!important;background:url('../decor/divider-v25.webp') center center/contain no-repeat!important;opacity:.76!important}
@media(max-width:760px){body.v6 .v4-divider{width:min(560px,92vw)!important;height:48px!important;margin:16px auto 14px!important}}


/* v26 houses cards image fill */
body.v6.page-houses .house-circle-v4{align-items:stretch;gap:18px!important}
body.v6.page-houses .house-card-v4{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;padding:24px 24px 26px!important;min-height:286px!important}
body.v6.page-houses .house-card-v4 .house-icon{
  width:110px!important;
  height:110px!important;
  min-width:110px!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center center!important;
  padding:0!important;
  margin:0 0 18px 0!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,rgba(12,10,14,.92),rgba(18,14,12,.86))!important;
  box-shadow:inset 0 0 0 1px rgba(243,217,157,.14), 0 12px 28px rgba(0,0,0,.28)!important;
}
body.v6.page-houses .house-card-v4 h3{margin:0 0 10px!important;line-height:1.02!important;min-height:0!important}
body.v6.page-houses .house-card-v4 p{margin:0!important;line-height:1.45!important;max-width:18ch!important}
body.v6.page-houses .house-card-v4 .badge{margin-top:auto!important;display:inline-flex!important}
@media(max-width:1040px){
  body.v6.page-houses .house-card-v4 .house-icon{width:104px!important;height:104px!important;min-width:104px!important}
}
@media(max-width:640px){
  body.v6.page-houses .house-card-v4{min-height:0!important;padding:18px!important}
  body.v6.page-houses .house-card-v4 .house-icon{width:92px!important;height:92px!important;min-width:92px!important;border-radius:18px!important;margin-bottom:14px!important}
}


/* v27 logo uncrop fix */
body.v6 .logo, body.v6 .header .logo, body.v6 footer .logo{align-items:center!important}
body.v6 .logo-mark{
  overflow:hidden!important;
  display:grid!important;
  place-items:center!important;
  padding:3px!important;
}
body.v6 .logo-mark img,
body.v6 .header .logo-mark img,
body.v6 footer .logo-mark img,
body.v6 .logo-mark img[style]{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
  border-radius:50%!important;
  display:block!important;
  padding:0!important;
  margin:0!important;
}
body.v6 .header .logo-mark{width:52px!important;height:52px!important;min-width:52px!important}
body.v6 footer .logo-mark{width:52px!important;height:52px!important;min-width:52px!important}
@media(max-width:760px){body.v6 .header .logo-mark{width:42px!important;height:42px!important;min-width:42px!important}}


/* v28 social icons clarity */
body.v6 .icon-btn.social-telegram-btn img{width:24px!important;height:24px!important;object-fit:contain!important;border-radius:0!important;background:none!important;filter:drop-shadow(0 0 10px rgba(243,217,157,.28))!important}
.contact-dock{right:16px!important;bottom:18px!important;gap:9px!important}
.contact-dock a{width:56px!important;height:56px!important;background:linear-gradient(180deg,rgba(15,12,16,.94),rgba(10,8,12,.90))!important;border:1px solid rgba(243,217,157,.56)!important;box-shadow:0 14px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04)!important;overflow:hidden;position:relative}
.contact-dock a::before{content:"";position:absolute;inset:5px;border-radius:999px;background:radial-gradient(circle at 35% 28%,rgba(243,217,157,.12),rgba(0,0,0,0) 55%);pointer-events:none}
.contact-dock a:hover{transform:translateY(-3px) scale(1.03)!important;border-color:rgba(243,217,157,.84)!important;box-shadow:0 20px 44px rgba(212,170,99,.18), inset 0 1px 0 rgba(255,255,255,.05)!important}
.contact-dock a img{width:25px!important;height:25px!important;display:block;object-fit:contain!important;object-position:center center!important;filter:drop-shadow(0 0 9px rgba(243,217,157,.26))!important}
.contact-dock a[title="Rutube"] img{width:27px!important;height:27px!important}
.contact-dock a[title="VK"] img{width:26px!important;height:26px!important}
@media(max-width:1500px){.contact-dock a{width:52px!important;height:52px!important}.contact-dock a img{width:23px!important;height:23px!important}}


/* v31 cart stability: no irritating text re-animation on quantity changes */
body.v6.page-cart.cart-no-animate .v11-chest-stage,
body.v6.page-cart.cart-no-animate .v11-chest-panel,
body.v6.page-cart.cart-no-animate .v11-chest-sub,
body.v6.page-cart.cart-no-animate .v11-chest-title,
body.v6.page-cart.cart-no-animate .v11-cart-row,
body.v6.page-cart.cart-no-animate .reveal{animation:none!important;transition:none!important;transform:none!important;opacity:1!important}
body.v6.page-cart .v11-cart-controls button .rune-glow-overlay,
body.v6.page-cart .v11-cart-controls button::before,
body.v6.page-cart .v11-cart-controls button::after{display:none!important}

/* v32 unified cart: no repeated text animation on cart controls */
body.page-cart .cart-static-stage,
body.page-cart .v11-cart-row,
body.page-cart .v11-chest-panel,
body.page-cart .v11-chest-title,
body.page-cart .v11-chest-sub,
body.page-cart .v11-cart-total{
  animation:none!important;
  transition:none!important;
}
body.page-cart .v11-cart-controls button,
body.page-cart [data-cart-clear]{
  animation:none!important;
}
