/* =====================================================================
   ПОДПОЛЬНЫЙ РЫНОК — оружие и патроны.
   Сырой кирпич, трубы и капли, качающаяся лампа, граффити баллончиком,
   меловой прайс, ящики с соломой, футляры и коробки патронов.
   ===================================================================== */
.pm {
  position: relative; min-height: calc(100vh - var(--hdr)); padding-bottom: 80px; isolation: isolate;
  color: #e8e2cf;
  --pn-bg: rgba(14,12,10,.94); --pn-line: rgba(198,226,102,.22); --pn-ink: #e8e2cf; --pn-muted: #8e8a78;
  --pn-accent: #d6ef7a; --pn-on: rgba(198,226,102,.07); --pn-font: var(--f-sten); --pn-r: 2px;
  --acid: #c6e266; --chalk: #ece8d6;
}
.pm > :not(.pm-bg):not(.pnav) { position: relative; z-index: 1; }

/* ---------- стена ---------- */
.pm-bg, .iv-market::before { background: #0d0a09; }
.pm-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pm-bricks, .iv-market::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='44'%3E%3Crect width='96' height='44' fill='%23120d0b'/%3E%3Crect x='1' y='1' width='46' height='20' rx='1.5' fill='%233b2721'/%3E%3Crect x='49' y='1' width='46' height='20' rx='1.5' fill='%2334221c'/%3E%3Crect x='-23' y='23' width='46' height='20' rx='1.5' fill='%2331201a'/%3E%3Crect x='25' y='23' width='46' height='20' rx='1.5' fill='%233d2922'/%3E%3Crect x='73' y='23' width='46' height='20' rx='1.5' fill='%2331201a'/%3E%3C/svg%3E"),
    #120d0b;
}
.pm-bricks { position: absolute; inset: 0; }
.pm-damp {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 30% 22% at 12% 70%, rgba(90,120,60,.22), transparent 70%),
    radial-gradient(ellipse 24% 30% at 88% 40%, rgba(70,100,50,.18), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.15) 30%, rgba(0,0,0,.25) 70%, rgba(0,0,0,.8)),
    radial-gradient(ellipse 80% 70% at 50% 35%, transparent 40%, rgba(0,0,0,.75));
}
.pm-pipes { position: absolute; left: 0; right: 0; top: 0; height: 60px; }
.pm-pipes i { position: absolute; left: -2%; right: -2%; height: 16px; border-radius: 8px; background: linear-gradient(180deg, #4a4a44, #22221f 55%, #121210); box-shadow: 0 6px 12px rgba(0,0,0,.6); }
.pm-pipes i:first-child { top: 14px; }
.pm-pipes i:last-child { top: 38px; height: 11px; opacity: .8; background: linear-gradient(180deg, #5a3a26, #2a1a10); }
.pm-pipes i::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: 0; right: 0; background: linear-gradient(90deg, transparent 0 calc(100% - 14px), #2c2c28 0) 0 0 / 220px 100%; }
.pm-light { position: absolute; left: 50%; top: 0; width: 0; height: 100%; transform-origin: 0 0; animation: pmSwing 6s ease-in-out infinite; }
@keyframes pmSwing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.pm-lamp { position: absolute; left: -40px; top: 40px; width: 80px; height: 150px; }
.pm-lamp svg { width: 100%; height: 100%; }
.mlamp-glass, .mlamp-flame { animation: fmFlicker 3.4s linear infinite; }
.pm-cone {
  position: absolute; left: -45vw; top: 150px; width: 90vw; height: 95vh;
  background: radial-gradient(ellipse 45% 80% at 50% 0%, rgba(230,245,150,.17), rgba(200,230,110,.05) 55%, transparent 75%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen; animation: fmFlicker 3.4s linear infinite;
}
.pm-drip { position: absolute; top: 46px; width: 3px; height: 9px; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; background: rgba(200,220,210,.55); animation: pmDrip 3.2s ease-in infinite; }
.pm-drip.d1 { left: 14%; } .pm-drip.d2 { left: 63%; animation-delay: -1.3s; animation-duration: 4.1s; } .pm-drip.d3 { left: 86%; animation-delay: -2.4s; }
@keyframes pmDrip { 0%, 30% { transform: translateY(0) scaleY(.4); opacity: 0; } 35% { opacity: .9; transform: translateY(0) scaleY(1); } 100% { transform: translateY(100vh); opacity: .7; } }
.pm-steam { position: absolute; bottom: -40px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(200,210,190,.16), transparent 65%); filter: blur(12px); animation: pmSteam 7s ease-out infinite; }
.pm-steam.s1 { left: 6%; } .pm-steam.s2 { right: 4%; animation-delay: -3.5s; }
@keyframes pmSteam { 0% { transform: translateY(40px) scale(.5); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-260px) scale(1.5); opacity: 0; } }
.pm-rat { position: fixed; left: -110px; bottom: 6px; width: 90px; height: 34px; z-index: 2; opacity: .9; }
.pm-rat svg { width: 100%; height: 100%; }
.pm-rat.run { animation: pmRat 5.5s linear forwards; }
.pm-rat.run.back { animation-name: pmRatBack; }
.pm-rat.run .mrat-legs { animation: pmLegs .15s steps(2) infinite; }
@keyframes pmRat { 0% { transform: translateX(0); } 40% { transform: translateX(45vw); } 48% { transform: translateX(45vw); } 100% { transform: translateX(calc(100vw + 220px)); } }
@keyframes pmRatBack { 0% { transform: translateX(calc(100vw + 220px)) scaleX(-1); } 45% { transform: translateX(55vw) scaleX(-1); } 52% { transform: translateX(55vw) scaleX(-1); } 100% { transform: translateX(0) scaleX(-1); } }
@keyframes pmLegs { 50% { transform: translateX(2px); } }

/* ---------- шапка ---------- */
.pm-head { display: grid; grid-template-columns: 190px minmax(0, 1fr) 300px; align-items: center; gap: 36px; padding-top: 70px; padding-bottom: 10px; }
.pm-poster {
  position: relative; padding: 18px 14px 16px; text-align: center; color: #2a2016;
  background: radial-gradient(ellipse at 40% 30%, #e6dbbc, #cbbd96 75%, #b5a47a);
  clip-path: polygon(0 2%, 8% 0, 22% 3%, 40% 0, 58% 2%, 74% 0, 92% 3%, 100% 0, 98% 30%, 100% 62%, 97% 100%, 78% 97%, 60% 100%, 40% 96%, 20% 100%, 4% 97%, 0 70%, 3% 40%);
  transform: rotate(-4deg); filter: drop-shadow(0 12px 18px rgba(0,0,0,.6));
}
.pm-poster::before { content: ""; position: absolute; left: 50%; top: 6px; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9cdd2, #3a3d42); }
.pm-poster b { display: block; margin-top: 6px; font: 700 21px var(--f-sten); letter-spacing: .06em; text-transform: uppercase; }
.pm-face { display: block; width: 90px; height: 96px; margin: 10px auto 8px; background: radial-gradient(circle at 50% 34%, #3a3024 0 22%, transparent 23%), radial-gradient(ellipse 60% 40% at 50% 100%, #3a3024 0 98%, transparent 100%), #d2c6a2; border: 2px solid #3a3024; }
.pm-poster span { display: block; font: 13px/1.25 var(--f-shop2); font-style: italic; }
.pm-poster em { display: block; margin-top: 8px; font: 700 14px var(--f-sten); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #6a1a10; }
/* плакат можно «перевесить» на своего персонажа */
.pm-wanted { position: relative; z-index: 5; }
button.pm-poster { display: block; width: 100%; border: 0; margin: 0; font: inherit; cursor: pointer; transition: transform .3s cubic-bezier(.3,1.4,.5,1), filter .3s; }
button.pm-poster:hover { transform: rotate(-2deg) scale(1.03); filter: drop-shadow(0 18px 24px rgba(0,0,0,.7)); }
button.pm-poster:focus-visible { outline: 2px dashed #d6ef7a; outline-offset: 6px; }
.pm-poster.pin { animation: pmPin .6s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pmPin { 0% { transform: rotate(-12deg) scale(1.12) translateY(-14px); } 60% { transform: rotate(-2deg) scale(.98); } 100% { transform: rotate(-4deg); } }
.pm-face { position: relative; overflow: hidden; }
.pm-face.has-photo { background: #d8cca8; }
.pm-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: sepia(.6) grayscale(.35) contrast(1.15) brightness(.97); mix-blend-mode: multiply; }
.pm-face.has-photo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(60,40,20,.35)); pointer-events: none; }
.pm-wname { display: block; margin: -2px 0 6px; font: 700 17px/1.05 var(--f-sten); letter-spacing: .04em; text-transform: uppercase; color: #2a2016; overflow-wrap: anywhere; }
.pm-poster-tip { display: block; height: 0; overflow: hidden; margin-top: 0; font: italic 12px/1.2 var(--f-shop2); color: #6a5a3a; opacity: 0; transition: opacity .25s, height .25s, margin .25s; }
button.pm-poster:hover .pm-poster-tip, button.pm-poster:focus-visible .pm-poster-tip { height: 16px; margin-top: 6px; opacity: 1; }
.pm-wpick { position: absolute; left: calc(100% + 18px); top: -6px; width: 330px; max-height: min(560px, 76vh); overflow-y: auto; padding: 16px 14px 14px; border-radius: 6px; z-index: 40;
  background: linear-gradient(180deg, rgba(26,25,22,.98), rgba(14,13,11,.98)); border: 1px solid #3a372e; box-shadow: 0 30px 60px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.04); color: #e8e2cf; text-align: left; }
.pm-wpick[hidden] { display: none; }
.pm-wpick::before { content: ''; position: absolute; left: -8px; top: 60px; width: 14px; height: 14px; transform: rotate(45deg); background: #1a1916; border-left: 1px solid #3a372e; border-bottom: 1px solid #3a372e; }
.pm-wpick-h { margin: 0 26px 10px 2px; font: 700 26px/1 var(--f-chalk); letter-spacing: .04em; color: var(--chalk, #ece8d6); }
.pm-wpick-sub { margin: 12px 2px 6px; font: 700 12px/1 var(--f-sten); letter-spacing: .14em; text-transform: uppercase; color: #a9a58e; }
.pm-wx { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #3a372e; background: transparent; color: #a9a58e; font-size: 18px; line-height: 1; cursor: pointer; }
.pm-wx:hover { color: #fff; border-color: #6a675a; }
.pm-wopt { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 6px; padding: 7px 8px; border-radius: 4px; border: 1px solid #2c2a24; background: rgba(255,255,255,.02); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.pm-wopt:hover:not([disabled]), .pm-wopt:focus-visible { background: rgba(214,239,122,.07); border-color: #5a6a2a; outline: none; }
.pm-wopt[disabled] { opacity: .5; cursor: not-allowed; }
.pm-wopt.busy { opacity: .6; pointer-events: none; }
.pm-wopt > span:last-child { min-width: 0; flex: 1; }
.pm-wopt b { display: block; font: 600 15px/1.2 var(--f-shop2, Georgia, serif); color: #f0eadb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-wopt small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: #a9a58e; }
.pm-wthumb { flex: none; position: relative; width: 40px; height: 48px; overflow: hidden; border: 1px solid #4a463a;
  background: radial-gradient(circle at 50% 36%, #5a5446 0 22%, transparent 23%), radial-gradient(ellipse 62% 40% at 50% 104%, #5a5446 0 98%, transparent 100%), #2a2822; }
.pm-wthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.pm-wthumb.is-file { background: linear-gradient(135deg, transparent 0 70%, #6a675a 70% 72%, transparent 72%), linear-gradient(180deg, transparent 30%, #5a5446 30% 33%, transparent 33% 45%, #5a5446 45% 48%, transparent 48% 60%, #5a5446 60% 63%, transparent 63%), #d8cca8; }
.pm-wcast { max-height: 230px; overflow-y: auto; margin: 0 -2px; padding: 0 2px; scrollbar-width: thin; scrollbar-color: #4a463a transparent; }
.pm-wnone { margin: 4px 2px 8px; font-size: 13.5px; font-style: italic; color: #8a8672; }
.pm-wmsg { margin: 8px 2px 0; padding: 7px 10px; border-left: 2px solid #c0503a; background: rgba(192,80,58,.1); font-size: 13.5px; color: #f0c8b8; }
.pm-wclear { display: block; margin: 10px auto 0; padding: 6px 12px; border: 0; background: none; color: #e08a6a; font: italic 14px var(--f-shop2, Georgia, serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pm-wclear[hidden] { display: none; }
.pm-spray { text-align: center; }
.pm-title {
  position: relative; margin: 0; line-height: .95;
  font: 700 clamp(46px, 6.6vw, 100px) var(--f-sten); letter-spacing: .03em; text-transform: uppercase;
  color: var(--chalk); filter: url(#ip-rough);
  text-shadow: 0 0 2px rgba(236,232,214,.9), 0 0 14px rgba(236,232,214,.22), 0 0 30px rgba(236,232,214,.08);
}
.pm-title span { position: relative; display: inline-block; }
.pm-title span:last-child { display: block; color: var(--acid); text-shadow: 0 0 2px rgba(198,226,102,.95), 0 0 18px rgba(198,226,102,.35), 0 0 40px rgba(198,226,102,.12); }
.pm-title span::after {
  content: ""; position: absolute; left: 18%; top: 86%; width: 3px; height: 34px; border-radius: 2px;
  background: linear-gradient(currentColor, transparent); color: inherit;
  box-shadow: 110px -4px 0 0 rgba(236,232,214,.6), 260px 2px 0 -.5px rgba(236,232,214,.5);
  transform-origin: top; animation: pmDripGrow 2.5s .3s ease-out both;
}
.pm-title span:last-child::after { left: 30%; height: 44px; box-shadow: 140px 0 0 0 rgba(198,226,102,.55); background: linear-gradient(var(--acid), transparent); }
@keyframes pmDripGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pm-motto { margin: 22px 0 0; font: 700 32px var(--f-chalk); letter-spacing: .06em; color: var(--chalk); opacity: .85; filter: url(#ip-chalk); }
.pm-board {
  position: relative; padding: 16px 22px 18px; transform: rotate(1.6deg);
  background:
    radial-gradient(ellipse 40% 30% at 30% 40%, rgba(255,255,255,.06), transparent 70%),
    radial-gradient(ellipse 30% 26% at 75% 70%, rgba(255,255,255,.05), transparent 70%),
    linear-gradient(160deg, #26302b, #1a211d);
  border: 11px solid #5a3a20; border-image: linear-gradient(160deg, #7a5230, #3a2412) 1;
  box-shadow: 0 20px 36px rgba(0,0,0,.65), inset 0 0 30px rgba(0,0,0,.5);
  color: var(--chalk); font-family: var(--f-chalk);
}
.pm-board-h { margin: 0 0 6px; font-size: 38px; font-weight: 700; text-align: center; letter-spacing: .14em; filter: url(#ip-chalk); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.pm-board ul { margin: 0; padding: 0; list-style: none; filter: url(#ip-chalk); }
.pm-board li { display: flex; align-items: baseline; gap: 6px; font-size: 24px; font-weight: 700; line-height: 1.25; }
.pm-board li i { flex: 1; border-bottom: 2px dotted rgba(236,232,214,.4); transform: translateY(-5px); }
.pm-board li b { color: var(--acid); }
.pm-board-f { margin: 8px 0 0; font-size: 22px; font-weight: 700; text-align: right; filter: url(#ip-chalk); }
.pm-board-f b { font-size: 30px; color: #ffd36a; }
.pm-chalk-stub { position: absolute; left: 22%; bottom: -16px; width: 34px; height: 9px; border-radius: 3px; background: linear-gradient(#f7f3e6, #cfc9b4); box-shadow: 0 2px 2px rgba(0,0,0,.5); }

/* ---------- вкладки мелом и шёпот ---------- */
.pm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 34px; }
.pm-tabs { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pm-tab { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 18px; border: 0; background: none; cursor: pointer; color: rgba(236,232,214,.75); font: 700 30px var(--f-chalk); letter-spacing: .04em; transition: color .25s ease; }
.pm-tab span, .pm-tab small { filter: url(#ip-chalk); }
.pm-tab small { font: 500 12px var(--font-mono); color: rgba(236,232,214,.5); }
.pm-tab:hover { color: var(--chalk); }
.pm-tab.on { color: #fff; }
.chalk-circle { position: absolute; inset: -4px -6px; width: calc(100% + 12px); height: calc(100% + 8px); color: var(--acid); pointer-events: none; opacity: 0; overflow: visible; }
.chalk-circle path { stroke-dasharray: 100; stroke-dashoffset: 100; filter: url(#ip-chalk); }
.pm-tab.on .chalk-circle { opacity: .95; }
.pm-tab.on .chalk-circle path { animation: pmChalk .7s .05s ease-out forwards; }
@keyframes pmChalk { to { stroke-dashoffset: 0; } }
.pm-whisper { flex: 1 1 240px; max-width: 360px; margin-left: auto; transform: rotate(-1deg); }
.pm-whisper input {
  width: 100%; height: 50px; padding: 2px 18px 0; border: 0; outline: none; color: #241c12;
  background: radial-gradient(ellipse at 30% 30%, #ece2c6, #d2c39c);
  font: 600 23px var(--f-note);
  clip-path: polygon(0 4%, 6% 0, 18% 5%, 32% 0, 50% 4%, 66% 0, 82% 5%, 100% 1%, 99% 96%, 84% 100%, 66% 95%, 48% 100%, 30% 95%, 14% 100%, 1% 96%);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.5));
}
.pm-whisper input::placeholder { color: rgba(36,28,18,.5); }
.pm-whisper input:focus { background: radial-gradient(ellipse at 30% 30%, #f3ead2, #dccca4); }
.pm-add { padding: 10px 16px; border: 2px solid #c8b680; cursor: pointer; background: linear-gradient(180deg, #7a5a35, #4a331c); color: #f3e6c8; font: 700 13px var(--f-sten); letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 8px 14px rgba(0,0,0,.5); }
.pm-add[hidden] { display: none; }

/* ---------- товар ---------- */
.mk-sec { margin-top: 46px; }
.mk-sec:first-child { margin-top: 30px; }
.mk-plank { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-bottom: 4px; }
.mk-plank b {
  position: relative; padding: 9px 30px; transform: rotate(-1.2deg);
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.12) 0 1px, transparent 1px 7px), linear-gradient(180deg, #7a5a35, #4a331c);
  color: #f3e6c8; font: 700 18px var(--f-sten); letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 0 8px 14px rgba(0,0,0,.55); text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
.mk-plank b::before, .mk-plank b::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9cdd2, #2a2c30); }
.mk-plank b::before { left: 9px; } .mk-plank b::after { right: 9px; }
.mk-plank span { font: 700 25px var(--f-chalk); color: rgba(236,232,214,.75); filter: url(#ip-chalk); }
.mk-plank em { margin-left: auto; font: 700 28px var(--f-chalk); font-style: normal; color: var(--acid); filter: url(#ip-chalk); }
.mk-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 34px 26px; padding: 20px 4px 6px; }
.mk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; outline: none; animation: shIn .7s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
.mk:focus-visible .mk-label { box-shadow: 0 0 0 3px var(--acid); }
/* ящик */
.mk-crate { position: relative; width: 100%; aspect-ratio: 4 / 3.3; perspective: 500px; transition: transform .4s var(--ease); }
.mk-inside { position: absolute; left: 6%; right: 6%; top: 8%; bottom: 36%; overflow: hidden; background: #160f08; box-shadow: inset 0 10px 18px rgba(0,0,0,.9), inset 0 0 0 4px #2a1a0e; }
.mk-inside img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(.15) contrast(1.05) brightness(.92); }
.mk-ico { position: absolute; left: 50%; top: 46%; width: 64%; height: 70%; transform: translate(-50%, -50%) rotate(-12deg); color: var(--tint); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--tint) 70%, transparent)); }
.mk-inside .mk-ico { width: 54%; height: 80%; }
.mk-straw {
  position: absolute; left: -6%; right: -6%; bottom: -4%; height: 46%;
  background:
    repeating-linear-gradient(100deg, #d8b45a 0 2px, transparent 2px 6px),
    repeating-linear-gradient(78deg, #a9842e 0 1.5px, transparent 1.5px 5px),
    repeating-linear-gradient(120deg, #c49a40 0 1px, transparent 1px 7px);
  -webkit-mask: linear-gradient(to top, #000 45%, transparent);
          mask: linear-gradient(to top, #000 45%, transparent);
}
.mk-lid {
  position: absolute; left: 1%; right: 1%; top: -16%; height: 26%; transform-origin: 50% 100%;
  transform: rotateX(52deg); transition: transform .5s var(--ease);
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 2px, transparent 2px 33%), linear-gradient(180deg, #8a6440, #5a3e22);
  box-shadow: 0 -6px 14px rgba(0,0,0,.5);
}
.mk-front {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background:
    radial-gradient(circle at 10px 10px, #2a2c30 0 3px, transparent 3.5px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at calc(100% - 10px) 10px, #2a2c30 0 3px, transparent 3.5px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 10px calc(100% - 10px), #2a2c30 0 3px, transparent 3.5px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #2a2c30 0 3px, transparent 3.5px) 0 0 / 100% 100% no-repeat,
    linear-gradient(180deg, rgba(0,0,0,.4) 0 2px, transparent 2px 50%, rgba(0,0,0,.4) 50% calc(50% + 2px), transparent 0),
    repeating-linear-gradient(90deg, rgba(255,220,170,.03) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #9a7048, #6a4a2a);
  box-shadow: 0 14px 22px rgba(0,0,0,.6), inset 0 0 0 2px rgba(0,0,0,.25);
}
.mk-no { position: absolute; left: 22px; top: 7px; font: 700 11px var(--f-sten); letter-spacing: .16em; color: rgba(20,12,6,.75); }
.mk-dmg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -48%) rotate(-4deg); font: 700 38px/1 var(--f-chalk); color: #f6efd8; letter-spacing: .04em; text-shadow: 0 0 1px #fff; filter: url(#ip-chalk); white-space: nowrap; }
.mk-sten { position: absolute; right: 14px; bottom: 8px; padding: 1px 6px; border: 2px solid rgba(150,30,20,.75); color: rgba(150,30,20,.85); font: 700 10.5px var(--f-sten); letter-spacing: .16em; text-transform: uppercase; transform: rotate(3deg); }
.mk:hover .mk-crate, .mk:focus-visible .mk-crate { transform: translateY(-5px); }
.mk:hover .mk-lid, .mk:focus-visible .mk-lid { transform: rotateX(28deg) translateY(-8px); }
.mk:hover .mk-inside img { filter: sepia(0) contrast(1.08) brightness(1.05); }
/* футляр потустороннего оружия */
.mk-case { position: relative; width: 100%; aspect-ratio: 4 / 3.3; transition: transform .4s var(--ease); }
.mk-case-lid {
  position: absolute; left: 4%; right: 4%; top: 0; height: 40%;
  background: radial-gradient(ellipse at 50% 70%, #3a1a4a, #140818 75%);
  border: 6px solid #161417; border-bottom-width: 3px; border-radius: 10px 10px 2px 2px;
  box-shadow: inset 0 0 0 2px #b8893c, 0 -4px 10px rgba(0,0,0,.4);
  transform: perspective(500px) rotateX(-22deg); transform-origin: 50% 100%;
}
.mk-case-in {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #3a1a4a, #12061a 75%);
  border: 8px solid #151316; border-radius: 3px 3px 12px 12px;
  box-shadow: inset 0 0 0 2px #b8893c, inset 0 8px 16px rgba(0,0,0,.8), 0 16px 24px rgba(0,0,0,.6);
}
.mk-case-in::before, .mk-case-in::after { content: ""; position: absolute; width: 16px; height: 16px; border: 3px solid #d0a050; }
.mk-case-in::before { left: 3px; bottom: 3px; border-right: 0; border-top: 0; } .mk-case-in::after { right: 3px; bottom: 3px; border-left: 0; border-top: 0; }
.mk-case-in img { width: 100%; height: 100%; object-fit: cover; }
.mk-case-in .mk-ico { width: 70%; height: 86%; top: 50%; transform: translate(-50%, -50%) rotate(-28deg); }
.mk-rune { position: absolute; inset: 7px; border: 1px dashed color-mix(in srgb, var(--tint) 70%, transparent); border-radius: 4px; box-shadow: 0 0 12px color-mix(in srgb, var(--tint) 45%, transparent), inset 0 0 12px color-mix(in srgb, var(--tint) 30%, transparent); animation: mkRune 3s ease-in-out infinite; }
@keyframes mkRune { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.mk-case-lock { position: absolute; left: 50%; bottom: -6px; width: 26px; height: 14px; margin-left: -13px; border-radius: 3px; background: linear-gradient(180deg, #f0d08a, #8a6424); box-shadow: 0 3px 5px rgba(0,0,0,.6); }
.mk:hover .mk-case { transform: translateY(-5px); }
.mk:hover .mk-ico { filter: drop-shadow(0 0 16px var(--tint)); }
/* коробка патронов */
.mk-ammo { position: relative; width: 100%; aspect-ratio: 4 / 3.3; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.mk-ammo-box {
  position: relative; width: 84%; aspect-ratio: 4 / 2.5; padding: 12px 12px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(180deg, #c2a476, #93744a); border-radius: 3px; text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.3), 0 14px 22px rgba(0,0,0,.6), inset 0 6px 0 rgba(255,255,255,.1);
}
.mk-ammo-box::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid rgba(50,30,14,.55); border-radius: 2px; pointer-events: none; }
.mk-ammo-brand { font: 500 10px var(--f-sten); letter-spacing: .3em; text-transform: uppercase; color: rgba(50,30,14,.7); }
.mk-ammo-box b { font: 700 16px/1.1 var(--f-sten); letter-spacing: .06em; text-transform: uppercase; color: #2a1a0c; max-width: 72%; }
.mk-ammo-seal { position: absolute; right: 10px; bottom: 8px; width: 34px; height: 34px; background: rgba(140,20,16,.75); -webkit-mask: var(--seal) center / contain no-repeat; mask: var(--seal) center / contain no-repeat; transform: rotate(-12deg); }
.mk-ammo-x { position: absolute; right: 14px; bottom: 10px; font: 700 13px var(--f-sten); font-style: normal; color: rgba(50,30,14,.75); }
.bullets { width: 66%; margin-top: -10px; overflow: visible; filter: drop-shadow(0 6px 6px rgba(0,0,0,.6)); }
.bullets .bl { transform-box: fill-box; }
.mk:hover .bullets .bl { animation: blHop .5s ease calc(var(--i) * 60ms); }
@keyframes blHop { 50% { transform: translateY(-6px); } }
/* бирка на малярном скотче */
.mk-label {
  position: relative; max-width: 96%; padding: 6px 16px 5px; text-align: center; transform: rotate(var(--r));
  background: rgba(233,226,201,.94); color: #1e1a14;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%);
          mask: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%);
  box-shadow: 0 6px 10px rgba(0,0,0,.4);
}
.mk-label b { display: block; font: 700 21px/1.1 var(--f-note); }
.mk-label small { display: block; margin-top: 2px; font: 500 10.5px var(--f-sten); letter-spacing: .14em; text-transform: uppercase; color: #6a5f4a; }
.mk-label em { display: block; font: 700 15px var(--f-note); font-style: normal; color: #a8201a; }
.mk.gone .mk-crate, .mk.gone .mk-case, .mk.gone .mk-ammo { filter: grayscale(.6) brightness(.7); }
.pm-empty { margin: 50px auto; max-width: 520px; padding: 16px 20px; text-align: center; color: var(--chalk); font: 700 30px var(--f-chalk); filter: url(#ip-chalk); }

/* ---------- заставка: вниз по ступеням ---------- */
.in-market { position: absolute; inset: 0; }
.in-steps i {
  position: absolute; left: 0; right: 0; top: calc(var(--k) * 100% / 9); height: calc(100% / 9 + 2px);
  background: linear-gradient(180deg, #34302a 0, #1e1b16 18%, #100e0b 100%); border-top: 2px solid #4a443a;
  animation: inStep .62s calc(.3s + var(--k) * .07s) cubic-bezier(.6,0,.4,1) forwards;
}
@keyframes inStep { to { transform: translateY(-115vh); } }
.in-market-txt { position: absolute; left: 0; right: 0; top: 44%; z-index: 2; margin: 0; text-align: center; font: 700 46px var(--f-chalk); color: var(--chalk, #ece8d6); letter-spacing: .06em; animation: inShopTxt 1.1s .1s ease forwards; opacity: 0; }
.in-market-flick { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 10%, rgba(220,240,140,.5), transparent 70%); opacity: 0; animation: inFlick 1.6s .2s linear forwards; }
@keyframes inFlick { 0%, 55% { opacity: 0; } 60% { opacity: .8; } 63% { opacity: 0; } 70% { opacity: .6; } 74% { opacity: .1; } 82% { opacity: .5; } 100% { opacity: 0; } }

/* =====================================================================
   СДЕЛКА (просмотр товара)
   ===================================================================== */
.iv-market { color: #e8e2cf; background: #0d0a09; }
.iv-market::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.iv-market::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 40% 55% at 30% 30%, rgba(220,240,140,.12), transparent 70%), linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.2) 40%, rgba(0,0,0,.85)); }
.iv-market.iv-enter .iv-stage { animation: svEnter .8s var(--ease) both; }
.iv-market.iv-enter { animation: vFade .3s ease both; }
.iv-market.iv-leave { animation: vFade .3s ease reverse both; }
.iv-market .iv-bar { background: rgba(12,10,8,.95); border-bottom: 1px solid rgba(198,226,102,.22); font: 500 14px var(--f-sten); letter-spacing: .14em; text-transform: uppercase; color: #a9a58e; }
.iv-market .iv-crumb b { color: var(--acid, #c6e266); }
.mb-x { margin-right: 10px; color: #c6e266; font-weight: 700; }
.iv-market .iv-ib { border-radius: 3px; border: 1px solid #4a4a44; color: #e8e2cf; background: linear-gradient(180deg, #3a3a34, #1c1c19); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 8px rgba(0,0,0,.5); }
.iv-market .iv-ib:hover:not(:disabled) { border-color: #c6e266; color: #c6e266; }
.iv-market .iv-ib.close { background: linear-gradient(180deg, #8a2018, #4a0c08); border-color: #c8443a; }
.mv-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 40px; align-items: start; padding-top: 18px; }
.mv-table { position: sticky; top: 80px; height: clamp(400px, 64vh, 580px); }
.mv-lamp { position: absolute; left: 50%; top: -12px; width: 0; height: 100%; transform-origin: 0 0; animation: pmSwing 5s ease-in-out infinite; z-index: 3; pointer-events: none; }
.mv-lamp svg { position: absolute; left: -34px; top: 0; width: 68px; height: 128px; }
.mv-cone { position: absolute; left: -260px; top: 112px; width: 520px; height: 80%; background: radial-gradient(ellipse 50% 90% at 50% 0%, rgba(235,248,160,.22), rgba(200,230,110,.05) 60%, transparent 78%); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); mix-blend-mode: screen; animation: fmFlicker 3.4s linear infinite; }
.mv-tabletop { position: absolute; left: -4%; right: -4%; bottom: 0; height: 44%; z-index: 0;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.4) 0 3px, transparent 3px 22%), linear-gradient(180deg, #5a3e26, #2a1a0e);
  transform: perspective(700px) rotateX(50deg); transform-origin: 50% 100%; box-shadow: 0 30px 50px rgba(0,0,0,.7); }
.mv-case { position: absolute; left: 50%; bottom: 12%; z-index: 2; width: min(84%, 440px); aspect-ratio: 16 / 9.5; transform: translateX(-50%); perspective: 900px; }
.mv-base { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; border-radius: 6px; }
.mv-lid { position: absolute; inset: 0; z-index: 3; transform-origin: 50% 0; transform-style: preserve-3d; animation: mvOpen 1.4s .3s cubic-bezier(.55,0,.2,1) both; }
@keyframes mvOpen { from { transform: rotateX(0); } to { transform: rotateX(166deg); } }
.mv-lid::before, .mv-lid i { content: ""; position: absolute; inset: 0; border-radius: 6px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.mv-lid i { transform: rotateX(180deg); }
/* ящик */
.mv-case.crate .mv-base { background: #160f08; box-shadow: inset 0 0 0 10px #6a4a2a, inset 0 0 0 12px #3a2412, inset 0 18px 30px rgba(0,0,0,.9), 0 24px 40px rgba(0,0,0,.7); }
.mv-case.crate .mv-base::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: repeating-linear-gradient(100deg, #d8b45a 0 2px, transparent 2px 6px), repeating-linear-gradient(78deg, #a9842e 0 1.5px, transparent 1.5px 5px); -webkit-mask: linear-gradient(to top, #000 50%, transparent); mask: linear-gradient(to top, #000 50%, transparent); pointer-events: none; }
.mv-case.crate .mv-lid::before { background: repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 3px, transparent 3px 25%), linear-gradient(180deg, #9a7048, #6a4a2a); box-shadow: inset 0 0 0 2px rgba(0,0,0,.3); }
.mv-case.crate .mv-lid i { background: repeating-linear-gradient(90deg, rgba(0,0,0,.4) 0 3px, transparent 3px 25%), linear-gradient(180deg, #5a3e22, #3a2412); }
/* футляр */
.mv-case.beyond .mv-base { background: radial-gradient(ellipse at 50% 45%, #3e1c50, #12061a 75%); box-shadow: inset 0 0 0 10px #151316, inset 0 0 0 12px #b8893c, inset 0 14px 24px rgba(0,0,0,.85), 0 24px 40px rgba(0,0,0,.7); }
.mv-case.beyond .mv-lid::before { background: radial-gradient(ellipse at 50% 30%, #2a2830, #0e0d10 75%); box-shadow: inset 0 0 0 3px #b8893c, inset 0 0 30px rgba(0,0,0,.8); }
.mv-case.beyond .mv-lid i { background: radial-gradient(ellipse at 50% 60%, #4a2260, #1a0824 75%); box-shadow: inset 0 0 0 10px #151316, inset 0 0 0 12px #b8893c; }
.mv-runes { position: absolute; inset: 18px; border: 1px dashed color-mix(in srgb, var(--tint) 70%, transparent); border-radius: 4px; box-shadow: 0 0 18px color-mix(in srgb, var(--tint) 45%, transparent), inset 0 0 18px color-mix(in srgb, var(--tint) 35%, transparent); animation: mkRune 2.6s ease-in-out infinite; pointer-events: none; }
/* коробка патронов */
.mv-case.ammo { width: min(70%, 360px); }
.mv-case.ammo .mv-base { background: linear-gradient(180deg, #2a1c10, #120c06); box-shadow: inset 0 0 0 10px #a88a5c, inset 0 0 0 12px #6a5232, inset 0 14px 24px rgba(0,0,0,.85), 0 24px 40px rgba(0,0,0,.7); }
.mv-case.ammo .mv-lid::before { background: linear-gradient(180deg, #c2a476, #93744a); box-shadow: inset 0 0 0 8px rgba(0,0,0,.08), inset 0 0 0 9px rgba(50,30,14,.45); }
.mv-case.ammo .mv-lid i { background: linear-gradient(180deg, #a88a5c, #7a6040); }
.mv-obj { position: relative; z-index: 1; display: grid; place-items: center; width: 84%; height: 82%; }
.mv-obj img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.7); }
.mv-ico { width: 78%; height: 88%; color: var(--tint); transform: rotate(-18deg); filter: drop-shadow(0 0 16px color-mix(in srgb, var(--tint) 75%, transparent)); }
.mv-obj.ammo .bullets { width: 84%; margin: 0; }
.mv-table .iv-admin { position: absolute; left: 0; right: 0; bottom: -54px; justify-content: center; z-index: 4; }

/* правая колонка */
.mv-deal { position: relative; min-width: 0; padding-top: 6px; }
.mv-kind { margin: 0; font: 500 12.5px var(--f-sten); letter-spacing: .22em; text-transform: uppercase; color: #a9a58e; }
.mv-name { margin: 8px 0 0; font: 700 clamp(30px, 3.4vw, 48px)/1.04 var(--f-sten); letter-spacing: .02em; text-transform: uppercase; color: var(--chalk, #ece8d6); filter: url(#ip-rough); text-shadow: 0 0 2px rgba(236,232,214,.8), 0 0 18px rgba(236,232,214,.15); }
.mv-en { margin: 6px 0 0; font: italic 17px var(--font-body); color: #a9a58e; }
.mv-stamp { display: inline-block; margin-top: 14px; padding: 4px 14px; border: 3px solid rgba(200,40,30,.85); color: #ff6a5c; font: 700 15px var(--f-sten); letter-spacing: .2em; text-transform: uppercase; transform: rotate(-4deg); }
.mv-dice { margin-top: 22px; padding: 16px 18px 18px; border-radius: 4px; background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,.05), transparent 60%), linear-gradient(160deg, #26302b, #1a211d); border: 8px solid #4a331c; box-shadow: 0 16px 30px rgba(0,0,0,.55), inset 0 0 26px rgba(0,0,0,.5); }
.mv-dice-h, .mv-slate-h { margin: 0 0 8px; font: 700 30px var(--f-chalk); letter-spacing: .1em; color: var(--chalk, #ece8d6); filter: url(#ip-chalk); }
.mv-dice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mv-roll {
  position: relative; display: grid; justify-items: start; gap: 0; min-width: 120px; padding: 8px 14px 10px; cursor: pointer;
  border: 2px dashed rgba(236,232,214,.4); border-radius: 6px; background: rgba(0,0,0,.18); color: var(--chalk, #ece8d6); text-align: left;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.mv-roll:hover { border-color: var(--acid, #c6e266); background: rgba(198,226,102,.06); }
.mv-roll:active { transform: scale(.97); }
.mv-roll-l { font: 500 11px var(--f-sten); letter-spacing: .16em; text-transform: uppercase; color: #a9a58e; }
.mv-roll b { font: 700 40px/1.05 var(--f-chalk); filter: url(#ip-chalk); }
.mv-roll small { font: 600 16px var(--f-note); color: #ffd36a; }
.mv-roll-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font: 500 11px var(--f-sten); letter-spacing: .16em; text-transform: uppercase; color: var(--acid, #c6e266); }
.mv-roll-go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.mv-roll-go svg circle { fill: currentColor; stroke: none; }
.mv-result { display: flex; align-items: center; gap: 16px; margin-top: 14px; min-height: 70px; }
.mv-res-n { min-width: 76px; text-align: center; font: 700 72px/1 var(--f-chalk); color: #ffd36a; filter: url(#ip-chalk); }
.mv-res-d { font: 600 19px/1.3 var(--f-note); color: rgba(236,232,214,.8); }
.mv-result.rolling .mv-res-n { animation: mvShake .09s linear infinite; }
.mv-result.done .mv-res-n { animation: mvPop .45s cubic-bezier(.3,1.8,.5,1); }
@keyframes mvShake { 0% { transform: translate(-2px, 1px) rotate(-4deg); } 50% { transform: translate(2px, -1px) rotate(4deg); } 100% { transform: translate(-1px, 2px) rotate(-2deg); } }
@keyframes mvPop { from { transform: scale(1.6); color: #fff; } to { transform: scale(1); } }
.mv-dmg-txt { font: 700 40px var(--f-chalk); color: #ffd36a; }
.mv-note {
  position: relative; margin-top: 26px; padding: 22px 24px 16px; transform: rotate(-1.4deg); color: #241c12;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.35), transparent 30%), radial-gradient(circle at 80% 70%, rgba(0,0,0,.08), transparent 35%), linear-gradient(160deg, #ece2c6, #d2c39c);
  clip-path: polygon(0 3%, 10% 0, 30% 2%, 52% 0, 74% 3%, 100% 0, 99% 40%, 100% 97%, 80% 100%, 56% 97%, 34% 100%, 12% 97%, 0 100%, 1% 50%);
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.5));
}
.mv-note-pin { position: absolute; left: 50%; top: 6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d0d4d8, #3a3d42); }
.mv-note p { margin: 0; font: 600 23px/1.32 var(--f-note); }
.mv-note small { display: block; margin-top: 8px; text-align: right; font: 600 18px var(--f-note); color: #6a5f4a; }
.mv-slate { margin-top: 24px; padding: 14px 18px 16px; border-radius: 3px; background: linear-gradient(160deg, #222a26, #171d1a); border: 6px solid #3a2a18; box-shadow: 0 14px 26px rgba(0,0,0,.5), inset 0 0 22px rgba(0,0,0,.5); }
.mv-slate.dn .mv-slate-h { color: #ff8a7a; }
.mv-list { margin: 0; padding: 0; list-style: none; }
.mv-list li { position: relative; padding: 4px 0 8px 26px; font: 600 20px/1.35 var(--f-note); color: rgba(236,232,214,.92); }
.mv-list li::before { content: "—"; position: absolute; left: 0; top: 4px; color: var(--acid, #c6e266); }
.mv-slate.dn .mv-list li::before { color: #ff8a7a; }
.mv-unk { margin: 0; font: 600 20px var(--f-note); color: rgba(236,232,214,.7); }
.mv-doms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mv-dom { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid rgba(236,232,214,.2); border-radius: 4px; background: rgba(0,0,0,.35); color: var(--chalk, #ece8d6); text-decoration: none; }
.mv-dom i { grid-row: 1 / span 2; width: 38px; height: 38px; background: var(--dc); -webkit-mask: var(--seal) center / contain no-repeat; mask: var(--seal) center / contain no-repeat; filter: drop-shadow(0 0 5px var(--dc)); }
.mv-dom span { font: 500 10.5px var(--f-sten); letter-spacing: .2em; text-transform: uppercase; color: #a9a58e; }
.mv-dom b { font: 700 16px var(--f-sten); letter-spacing: .04em; }
a.mv-dom:hover { border-color: var(--dc); }
.mv-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--acid, #c6e266); font: 500 13px var(--f-sten); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px dashed currentColor; }
.mv-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.mv-deal .iv-admin { margin-top: 26px; }

/* слухи (комментарии) */
.mv-cm { border-radius: 6px; background: linear-gradient(180deg, rgba(20,18,15,.96), rgba(12,10,8,.96)); border: 1px solid #2c2a24; box-shadow: 0 20px 40px rgba(0,0,0,.55); }
.mv-cm .iv-cm-h { margin: 18px 0 0; font: 700 36px var(--f-chalk); letter-spacing: .06em; color: var(--chalk, #ece8d6); filter: url(#ip-chalk); }
.mv-cm .cm { --cm-gold: #d6ef7a; --cm-gold-dim: #5a6a2a; --cm-line: #2c2a24; --cm-input: #0c0a08; --cm-ink: #e8e2cf; --cm-muted: #a9a58e; --cm-faint: #77735f; margin-top: 12px; }

@media (max-width: 1020px) {
  .pm-head { grid-template-columns: minmax(0, 1fr) 280px; }
  .pm-wanted { display: none; }
  .mv-grid { grid-template-columns: 1fr; gap: 20px; }
  .mv-table { position: relative; top: auto; height: 380px; margin-bottom: 40px; }
}
@media (max-width: 760px) {
  .pm-head { grid-template-columns: 1fr; gap: 24px; padding-top: 50px; }
  .pm-board { max-width: 340px; margin: 0 auto; }
  .pm-motto { font-size: 26px; }
  .pm-tab { font-size: 25px; padding: 6px 12px; }
  .pm-whisper { max-width: none; margin-left: 0; flex-basis: 100%; }
  .mk-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .mk-dmg { font-size: 28px; }
  .mk-label b { font-size: 18px; }
  .mk-plank span { display: none; }
  .mv-table { height: 320px; }
  .mv-res-n { font-size: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm *, .pm *::before, .pm *::after, .iv-market *, .iv-market *::before, .in-market * { animation: none !important; transition: none !important; }
  .mv-lid { transform: rotateX(166deg); }
  .pm-rat { display: none; }
}
