/* Премиальный слой интерфейса: объём, материалы, глубина. Грузится последним и только дополняет theme.css.
   Принципы: рамка = металл с фаской (светлая кромка сверху, тёмная снизу), контент = кожа и пергамент во внутренней тени,
   кнопки = выпуклые плашки (наведение - свечение, нажатие - вдавливание). Без backdrop-filter и бесконечных анимаций. */
:root {
  --hi: rgba(255, 232, 178, 0.34); --hi2: rgba(255, 232, 178, 0.14); --lo: rgba(0, 0, 0, 0.55);
  --metal: linear-gradient(180deg, #4b3c2a 0%, #33281c 46%, #241b12 54%, #1a130c 100%);
  --metal-on: linear-gradient(180deg, #f3d283 0%, #d9a64a 46%, #b07a2a 54%, #8a5c1c 100%);
  --leather: radial-gradient(ellipse at 50% 0%, rgba(120, 88, 50, 0.16), transparent 70%), repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0 2px, rgba(0, 0, 0, 0.03) 2px 4px), linear-gradient(180deg, #1c1510, #120d09);
  --parch: linear-gradient(180deg, rgba(92, 68, 40, 0.5), rgba(34, 25, 16, 0.82)), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px);
  --fili: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Cpath d='M0 5h14c3 0 4-3 7-3s3 3 3 3-0 3-3 3-4-3-7-3M48 5H34c-3 0-4-3-7-3s-3 3-3 3 0 3 3 3 4-3 7-3' fill='none' stroke='%23b8914f' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M24 1.5l3.5 3.5-3.5 3.5L20.5 5z' fill='%23e8c880' stroke='%23553a14' stroke-width='.6'/%3E%3C/svg%3E");
}

/* ---------- окна: рамка из металла ---------- */
.win { box-shadow: 0 0 0 1px #000, 0 0 0 3px #2c2218, 0 0 0 4px #7a5e34, 0 0 0 5px #0a0705, 0 16px 44px rgba(0, 0, 0, 0.78), inset 0 1px 0 var(--hi2); }
.win-head { background: radial-gradient(circle at 10px 50%, #c9a25a 0 2px, #4a3a22 3px, transparent 4px) no-repeat, radial-gradient(circle at calc(100% - 10px) 50%, #c9a25a 0 2px, #4a3a22 3px, transparent 4px) no-repeat, var(--metal);
  box-shadow: inset 0 1px 0 var(--hi), inset 0 -1px 0 #000, 0 2px 0 #000, 0 3px 6px rgba(0, 0, 0, 0.5); padding-left: 22px; }
.win-title { background: linear-gradient(180deg, #fff1c8, #d8a64a 60%, #a97c34); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 1px 1px #000); }
.win-title::after { content: ''; display: block; height: 4px; margin-top: 1px; background: var(--fili) center / auto 4px repeat-x; opacity: 0.55; }
.win-ico { background: radial-gradient(circle at 35% 30%, #5a4528, #15100a 75%); border: 1px solid #8a6a3a; box-shadow: inset 0 1px 0 var(--hi), inset 0 -2px 3px #000, 0 1px 2px #000; }
.win-head .x { background: var(--metal); border-color: #6b5230; box-shadow: inset 0 1px 0 var(--hi2), 0 1px 2px #000; }
.win-body { background: var(--leather); border-radius: 0 0 2px 2px; box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 -1px 0 var(--hi2); scrollbar-width: thin; scrollbar-color: #8a6a3a #0e0b08; }
.tp-win .win-body, .w-tower .win-body { box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.55); }

/* ---------- кнопки: выпуклые плашки ---------- */
.btn { background: var(--metal); border: 1px solid #060403; box-shadow: inset 0 1px 0 var(--hi), inset 0 -2px 0 rgba(0, 0, 0, 0.5), 0 0 0 1px #6b5230, 0 3px 5px rgba(0, 0, 0, 0.55); text-shadow: 0 1px 0 #000; transition: transform 0.1s, box-shadow 0.15s, filter 0.15s; }
.btn:hover { filter: brightness(1.15); border-color: #060403; box-shadow: inset 0 1px 0 var(--hi), inset 0 -2px 0 rgba(0, 0, 0, 0.5), 0 0 0 1px #c99a52, 0 0 12px rgba(216, 166, 74, 0.5), 0 3px 5px rgba(0, 0, 0, 0.55); }
.btn:active { transform: translateY(1px); filter: brightness(0.9); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.75), 0 0 0 1px #4a3a22; }
.btn:disabled, .btn.off { filter: grayscale(0.75) brightness(0.7); box-shadow: inset 0 1px 0 var(--hi2), 0 0 0 1px #3a2f22; cursor: default; transform: none; }
.btn.primary { background: var(--metal-on); color: #1f1306; text-shadow: 0 1px 0 rgba(255, 238, 190, 0.6); box-shadow: inset 0 1px 0 rgba(255, 250, 220, 0.75), inset 0 -2px 0 rgba(90, 50, 8, 0.6), 0 0 0 1px #f0cf88, 0 3px 6px rgba(0, 0, 0, 0.6); }
.btn.primary:hover { filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 250, 220, 0.75), inset 0 -2px 0 rgba(90, 50, 8, 0.6), 0 0 0 1px #fff0b0, 0 0 14px rgba(255, 200, 90, 0.6), 0 3px 6px rgba(0, 0, 0, 0.6); }
.btn.danger { background: linear-gradient(180deg, #a63a3e, #6e1d22 50%, #4a1014); box-shadow: inset 0 1px 0 rgba(255, 190, 180, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.5), 0 0 0 1px #b8484c, 0 3px 5px rgba(0, 0, 0, 0.55); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px #6b5230; filter: none; }

/* ---------- вкладки: металлические таблички ---------- */
.inv-tabs, .ds-cats, .tabs { background: linear-gradient(180deg, #0a0806, #15100b); border: 1px solid #000; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8), 0 1px 0 var(--hi2); padding: 4px; gap: 4px; }
.it, .ds-cat, .tabs .btn, .inv-tabs .tab { background: var(--metal); border: 1px solid #060403; color: #cdbb98; border-radius: 3px; box-shadow: inset 0 1px 0 var(--hi2), inset 0 -2px 0 rgba(0, 0, 0, 0.45), 0 0 0 1px #4a3a24; text-shadow: 0 1px 0 #000; font-family: var(--serif); font-weight: 700; cursor: pointer; transition: filter 0.15s, box-shadow 0.15s; }
.it:hover, .ds-cat:hover, .tabs .btn:hover, .inv-tabs .tab:hover { color: #fff3d2; filter: brightness(1.2); background: var(--metal); }
.it.on, .ds-cat.on, .tabs .btn.on, .inv-tabs .tab.on { background: var(--metal-on); color: #1f1306; text-shadow: 0 1px 0 rgba(255, 238, 190, 0.6); box-shadow: inset 0 1px 0 rgba(255, 250, 220, 0.8), inset 0 -2px 0 rgba(90, 50, 8, 0.55), 0 0 0 1px #f0cf88, 0 0 10px rgba(216, 166, 74, 0.45); }

/* ---------- гнёзда значков, валюты ---------- */
.inv-tabs .tab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; }
.wl { background: linear-gradient(180deg, #0a0806, #1c150e); border: 1px solid #000; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 0 1px #7a5e34, 0 2px 4px rgba(0, 0, 0, 0.55); }
.wl:hover { border-color: #000; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 0 1px #c99a52, 0 0 10px rgba(216, 166, 74, 0.4); }
.wl-plus { background: var(--metal-on); color: #1f1306; box-shadow: inset 0 1px 0 rgba(255, 250, 220, 0.8), 0 1px 2px #000; }
.slot { background: radial-gradient(circle at 50% 38%, #2a2118, #0c0907 80%); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.85), inset 0 -1px 0 var(--hi2), 0 1px 0 var(--hi2); }
.chip { background: linear-gradient(180deg, #0c0907, #1a130c); border: 1px solid #000; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 0 1px #5a4528, 0 1px 0 var(--hi2); border-radius: 999px; }
.res-ico { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7)); vertical-align: -0.2em; flex: none; }
.coin-ico { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7)); }

/* ---------- заголовки разделов с филигранью, пергаментные панели ---------- */
.tw-sec, .ins-hd, .wb-sec, .ag-sec { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--serif); font-weight: 700; letter-spacing: 0.1em; color: #d8b772; text-shadow: 0 1px 0 #000; }
.tw-sec::before, .tw-sec::after, .ins-hd::before, .ins-hd::after, .wb-sec::before, .wb-sec::after, .ag-sec::before, .ag-sec::after { content: ''; flex: 1; height: 8px; background: var(--fili) center / auto 8px repeat-x; opacity: 0.6; }
.tw-card, .tw-item, .tw-bar, .tw-row, .ds-promo, .tp-me, .wb-det, .wb-row, .gu-card, .q-card, .tw-sum, .ins-card { background: var(--parch); border: 1px solid #070504; box-shadow: inset 0 1px 0 var(--hi2), inset 0 -2px 6px rgba(0, 0, 0, 0.45), 0 0 0 1px #4d3b24, 0 2px 4px rgba(0, 0, 0, 0.45); border-radius: 4px; }
.tw-card { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, #3a2b1b), #17110b); }
.hint { text-shadow: 0 1px 0 #000; }
.win-body::-webkit-scrollbar, .tp-main::-webkit-scrollbar, .tp-side::-webkit-scrollbar, .ds-grid::-webkit-scrollbar, .tw-side::-webkit-scrollbar { width: 10px; height: 10px; }
.win-body::-webkit-scrollbar-track, .tp-main::-webkit-scrollbar-track, .tp-side::-webkit-scrollbar-track, .ds-grid::-webkit-scrollbar-track, .tw-side::-webkit-scrollbar-track { background: #0a0806; box-shadow: inset 0 0 3px #000; }
.win-body::-webkit-scrollbar-thumb, .tp-main::-webkit-scrollbar-thumb, .tp-side::-webkit-scrollbar-thumb, .ds-grid::-webkit-scrollbar-thumb, .tw-side::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #a9854a, #5e4724 60%, #3a2c16); border: 1px solid #120c06; border-radius: 3px; box-shadow: inset 0 1px 0 var(--hi); }
.tp-main, .tp-side, .ds-grid, .tw-side { scrollbar-width: thin; scrollbar-color: #8a6a3a #0a0806; }
.tip { background: linear-gradient(180deg, #1d1610, #0c0907); border: 1px solid #060403; box-shadow: 0 0 0 1px #8a6a3a, 0 0 0 3px #1c150d, 0 8px 22px rgba(0, 0, 0, 0.75), inset 0 1px 0 var(--hi2); border-radius: 3px; }
.tip-name { font-family: var(--serif); text-shadow: 0 1px 0 #000; }
.ctxmenu { box-shadow: 0 0 0 1px #8a6a3a, 0 8px 20px rgba(0, 0, 0, 0.7); }

/* ---------- Башня ---------- */
.tw-medal { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; font-size: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--c, #d8a64a) 45%, #5a4528), #120d08 78%); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.85), inset 0 -1px 0 var(--hi2), 0 0 0 2px #7a5e34, 0 0 0 3px #0a0705, 0 2px 4px rgba(0, 0, 0, 0.6); }
.tw-medal.sm { width: 28px; height: 28px; font-size: 15px; }
.tw-medal.lg { width: 44px; height: 44px; font-size: 24px; }
.tw-medal .res-ico { filter: drop-shadow(0 1px 1px #000); }
.tw-h1t { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); }
.tw-stat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 6px; border-radius: 999px; background: linear-gradient(180deg, #0a0806, #1a130c); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 0 1px #5a4528; }
.tw-bar { background: none; box-shadow: none; border: 0; padding: 2px 0; gap: 8px; }
.tw-tier { background: var(--parch), linear-gradient(90deg, color-mix(in srgb, var(--c) 30%, transparent), transparent); border: 1px solid #060403; box-shadow: inset 0 1px 0 var(--hi2), 0 0 0 1px #4d3b24; border-radius: 4px; transition: filter 0.15s; }
.tw-tier:hover { filter: brightness(1.18); }
.tw-tier.on { outline: none; box-shadow: inset 0 1px 0 var(--hi), 0 0 0 1px var(--c), 0 0 12px color-mix(in srgb, var(--c) 55%, transparent); }
.tw-fl { background: var(--metal); border: 1px solid #060403; box-shadow: inset 0 1px 0 var(--hi2), inset 0 -2px 0 rgba(0, 0, 0, 0.45), 0 0 0 1px #4a3a24; text-shadow: 0 1px 0 #000; display: inline-flex; align-items: center; justify-content: center; min-height: 30px; transition: filter 0.15s; }
.tw-fl:hover { filter: brightness(1.25); }
.tw-fl.can { box-shadow: inset 0 1px 0 var(--hi2), inset 0 -2px 0 rgba(0, 0, 0, 0.45), 0 0 0 1px #5fa86a; }
.tw-fl.boss { background: linear-gradient(180deg, #5a2a22, #2a100c); box-shadow: inset 0 1px 0 rgba(255, 190, 150, 0.3), 0 0 0 1px #b8923a; }
.tw-fl.on { outline: none; background: var(--metal-on); color: #1f1306; text-shadow: none; box-shadow: inset 0 1px 0 rgba(255, 250, 220, 0.8), 0 0 0 1px #fff0b0, 0 0 12px rgba(255, 200, 90, 0.55); }
.tw-chip { border-radius: 3px; box-shadow: inset 0 1px 0 var(--hi2), 0 0 0 1px color-mix(in srgb, var(--c, #e5a04a) 55%, #000); padding-left: 4px; }
.tw-chip i { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.tw-bl { background: var(--parch); border: 1px solid #060403; box-shadow: inset 0 1px 0 var(--hi2), 0 0 0 1px #4d3b24, 0 2px 4px rgba(0, 0, 0, 0.5); transition: transform 0.12s, filter 0.15s; }
.tw-bl:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.15); }
.tw-bl.has { box-shadow: inset 0 1px 0 var(--hi), 0 0 0 1px var(--c), 0 0 14px color-mix(in srgb, var(--c) 55%, transparent); }
.tw-bl .tw-medal { --c: inherit; }
.tw-brow::before { content: ''; flex-basis: 100%; height: 8px; background: var(--fili) center / auto 8px repeat-x; opacity: 0.5; order: -1; }
.tw-mob .tw-por { border-radius: 50%; background: radial-gradient(circle at 50% 40%, #4a3a26, #0e0a07 80%); box-shadow: inset 0 2px 4px #000, 0 0 0 2px #7a5e34; }
.tw-mob.boss .tw-por { box-shadow: inset 0 2px 4px #000, 0 0 0 2px #b8923a, 0 0 10px rgba(255, 90, 70, 0.55); }
.tw-hud { background: var(--parch); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--c, #7a5e34), 0 4px 10px rgba(0, 0, 0, 0.6); }

/* ---------- Рейтинг: плашки категорий с медальонами ---------- */
.tp-side { background: var(--leather); box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.6); gap: 5px; }
.tp-cat { position: relative; padding: 6px 8px 6px 6px; border-radius: 4px; border: 1px solid #060403; border-left: 1px solid #060403; background: var(--metal); box-shadow: inset 0 1px 0 var(--hi2), inset 0 -2px 0 rgba(0, 0, 0, 0.45), 0 0 0 1px #4a3a24; transition: filter 0.15s, transform 0.12s; }
.tp-cat:hover { background: var(--metal); filter: brightness(1.2); transform: translateX(2px); }
.tp-cat.on { background: linear-gradient(180deg, #6b5230, #3a2b19 50%, #2a1e12); color: #fff3d2; box-shadow: inset 0 1px 0 var(--hi), inset 0 -2px 0 rgba(0, 0, 0, 0.5), 0 0 0 1px var(--cc, #d8a64a), 0 0 14px color-mix(in srgb, var(--cc, #d8a64a) 45%, transparent); transform: translateX(4px); }
.tp-cat.on::before, .tp-cat.on::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: linear-gradient(135deg, #fff0b0, var(--cc, #d8a64a)); border: 1px solid #3a2a10; transform: rotate(45deg); }
.tp-cat.on::before { left: -6px; } .tp-cat.on::after { right: -6px; }
.tp-ci { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--cc, #d8a64a) 40%, #5a4528), #110c08 78%); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.85), inset 0 -1px 0 var(--hi2), 0 0 0 2px #7a5e34, 0 0 0 3px #0a0705; }
.tp-cat.on .tp-ci { box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.85), 0 0 0 2px var(--cc, #d8a64a), 0 0 0 3px #0a0705, 0 0 10px color-mix(in srgb, var(--cc, #d8a64a) 60%, transparent); }
.tp-cig { font-size: 17px; line-height: 1; display: inline-flex; }
.tp-ct b { font-family: var(--serif); text-shadow: 0 1px 0 #000; }
.tp-title { font-family: var(--serif); }
.tp-hi { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--cc, #d8a64a) 40%, #5a4528), #110c08 78%); box-shadow: inset 0 2px 3px #000, 0 0 0 2px var(--cc, #7a5e34), 0 0 0 3px #0a0705; font-size: 19px; }
.tp-head { border-bottom: 0; padding-bottom: 14px; position: relative; }
.tp-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--fili) center / auto 10px repeat-x; opacity: 0.7; }
.tp-chip { background: var(--metal); border-color: #060403; box-shadow: inset 0 1px 0 var(--hi2), 0 0 0 1px #4a3a24; color: #cdbb98; }
.tp-chip.on { background: var(--metal-on); box-shadow: inset 0 1px 0 rgba(255, 250, 220, 0.8), 0 0 0 1px #f0cf88; }
.tp-search { background: #0a0806; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85), 0 0 0 1px #4a3a24; }
/* пьедестал: три постамента разной высоты, бронза/серебро/золото */
.tp-podium { gap: 8px; padding: 6px 4px 0; }
.tp-plate { min-height: 0 !important; border-radius: 4px 4px 0 0; box-shadow: inset 0 1px 0 var(--hi2); }
.tp-ped { width: 100%; display: flex; align-items: flex-start; justify-content: center; padding-top: 5px; border: 1px solid #060403; border-top: 0; border-radius: 0 0 3px 3px; box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.5); }
.tp-ped b { font: 900 22px/1 var(--serif); color: rgba(0, 0, 0, 0.55); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
.tp-pod.p1 .tp-ped { height: 54px; background: linear-gradient(180deg, #f3d283, #b07a2a 60%, #7a5018); }
.tp-pod.p2 .tp-ped { height: 38px; background: linear-gradient(180deg, #e3e8f0, #8f9aae 60%, #5a6376); }
.tp-pod.p3 .tp-ped { height: 26px; background: linear-gradient(180deg, #e0a672, #8f5a30 60%, #5a3416); }
.tp-pod.p3 .tp-ped b { font-size: 17px; }
.tp-pod.p1 .tp-plate { box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.5), 0 0 22px rgba(216, 166, 74, 0.3); }
.tp-pod .tp-stage { background: radial-gradient(ellipse at 50% 100%, rgba(255, 220, 140, 0.28), transparent 70%); }
.tp-pod.p2 .tp-stage { background: radial-gradient(ellipse at 50% 100%, rgba(210, 222, 240, 0.22), transparent 70%); }
.tp-pod.p3 .tp-stage { background: radial-gradient(ellipse at 50% 100%, rgba(224, 160, 110, 0.22), transparent 70%); }
.tp-crown { display: flex; justify-content: center; margin-bottom: -2px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7)); }
.tp-pod.p1 .tp-crown { filter: drop-shadow(0 0 8px rgba(255, 200, 80, 0.7)) drop-shadow(0 2px 2px #000); }
.tp-medal { display: inline-flex; }
.tp-row { background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.12)); border: 1px solid rgba(0, 0, 0, 0.5); box-shadow: inset 0 1px 0 var(--hi2); }
.tp-row.t1 { box-shadow: inset 3px 0 0 #e2b865, inset 0 1px 0 var(--hi2); }
.tp-row.t2 { box-shadow: inset 3px 0 0 #aab4c6, inset 0 1px 0 var(--hi2); }
.tp-row.t3 { box-shadow: inset 3px 0 0 #b9794a, inset 0 1px 0 var(--hi2); }
.tp-me { border-radius: 4px; margin: 0 -14px; }
.tp-me.in { box-shadow: inset 0 1px 0 var(--hi), 0 0 0 1px #c99a52, 0 0 14px rgba(216, 166, 74, 0.3); }

/* ---------- Лавка: витрина, рамки редкости, ленты цены ---------- */
.ds-head { position: relative; padding: 12px 14px; border-radius: 4px; background: radial-gradient(ellipse at 12% 50%, rgba(63, 190, 240, 0.2), transparent 55%), var(--parch); border: 1px solid #060403; box-shadow: inset 0 1px 0 var(--hi), inset 0 -3px 8px rgba(0, 0, 0, 0.5), 0 0 0 1px #7a5e34, 0 3px 6px rgba(0, 0, 0, 0.5); }
.ds-gemsock { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #1f4a60, #07121a 80%); box-shadow: inset 0 3px 5px #000, 0 0 0 2px #7a5e34, 0 0 0 3px #0a0705, 0 0 16px rgba(63, 190, 240, 0.4); }
.ds-bal b { font: 900 26px/1 var(--serif); background: linear-gradient(180deg, #fff, #8fe3ff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 #000); }
.ds-top { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; font-size: 14px; background: var(--metal-on); color: #1f1306; text-shadow: 0 1px 0 rgba(255, 238, 190, 0.6); box-shadow: inset 0 1px 0 rgba(255, 250, 220, 0.8), inset 0 -3px 0 rgba(90, 50, 8, 0.55), 0 0 0 1px #fff0b0, 0 0 14px rgba(255, 200, 90, 0.45), 0 3px 6px rgba(0, 0, 0, 0.6); }
.ds-vipnow { padding: 4px 12px; border-radius: 3px; background: linear-gradient(180deg, color-mix(in srgb, var(--vc, #d8a64a) 30%, #1a130c), #120d08); box-shadow: inset 0 1px 0 var(--hi2), 0 0 0 1px var(--vc, #d8a64a); }
.ds-hero { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 18px; margin: 4px 0 2px; overflow: hidden; border-radius: 4px; background: radial-gradient(ellipse at 15% 50%, color-mix(in srgb, var(--rc) 38%, transparent), transparent 62%), linear-gradient(110deg, color-mix(in srgb, var(--rc) 22%, #2a1f14), #120d08 80%); border: 1px solid #060403; box-shadow: inset 0 1px 0 var(--hi), inset 0 -4px 10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--rc), 0 0 0 3px #0a0705, 0 0 20px color-mix(in srgb, var(--rc) 35%, transparent), 0 4px 10px rgba(0, 0, 0, 0.6); }
.ds-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255, 245, 210, 0.22) 50%, transparent 62%) -140% 0 / 60% 100% no-repeat; transition: background-position 0.9s ease; pointer-events: none; }
.ds-hero:hover::before { background-position: 220% 0; }
.ds-hero-m { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ds-hero-tag { align-self: flex-start; padding: 2px 10px; font: 800 11px/1.3 var(--serif); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: #2a1706; background: var(--metal-on); border-radius: 2px; box-shadow: inset 0 1px 0 rgba(255, 250, 220, 0.7), 0 1px 2px #000; }
.ds-hero-name { font: 800 22px/1.15 var(--serif); color: #fff1c8; text-shadow: 0 2px 3px #000; }
.ds-hero-desc { font-size: 13px; color: #cdbb98; text-shadow: 0 1px 0 #000; }
.ds-hero-buy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 22px 8px 26px; border: 0; cursor: pointer; font-family: var(--serif); color: #fff; background: linear-gradient(180deg, #2f9bd0, #1a6a96 55%, #124e70); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 10px 100%, 0 50%); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6)); transition: filter 0.15s, transform 0.1s; }
.ds-hero-buy small { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #bfeaff; }
.ds-hero-buy:hover { filter: brightness(1.2) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6)); } .ds-hero-buy:active { transform: translateY(1px); }
.ds-hero-buy.poor { background: linear-gradient(180deg, #5a4d40, #3a3028); } .ds-hero-buy.poor small { color: #cdbb98; }
.ds-price { display: inline-flex; align-items: center; gap: 5px; font: 800 17px/1 var(--serif); text-shadow: 0 1px 2px #000; } .ds-price s { font-size: 12px; opacity: 0.65; margin-right: 2px; }
.ds-sock { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 38% 28%, color-mix(in srgb, var(--rc, #7a6a52) 40%, #4a3a26), #0e0a07 78%); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.85), inset 0 -1px 0 var(--hi2), 0 0 0 3px var(--rc, #7a5e34), 0 0 0 4px #0a0705, 0 3px 6px rgba(0, 0, 0, 0.6); }
.ds-sock.big { width: 92px; height: 92px; } .ds-sock.big .ds-ico { font-size: 46px; }
.ds-sock .ds-ico { font-size: 30px; line-height: 1; }
.rar-common { --rc: #8a8478; } .rar-rare { --rc: #4f9be0; } .rar-epic { --rc: #a96bff; } .rar-legend { --rc: #f2b43a; }
.ds-grid { gap: 12px; padding: 4px; }
.ds-card { padding: 14px 10px 0; gap: 5px; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--rc, #7a6a52) 26%, transparent), transparent 65%), var(--parch); border: 1px solid #060403; box-shadow: inset 0 1px 0 var(--hi), inset 0 -3px 8px rgba(0, 0, 0, 0.5), 0 0 0 1px color-mix(in srgb, var(--rc, #7a5e34) 75%, #000), 0 3px 6px rgba(0, 0, 0, 0.5); border-radius: 4px; }
.ds-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, transparent 40%, rgba(255, 245, 210, 0.2) 50%, transparent 60%) -140% 0 / 70% 100% no-repeat; transition: background-position 0.7s ease; pointer-events: none; }
.ds-card:hover { transform: translateY(-3px); border-color: #060403; box-shadow: inset 0 1px 0 var(--hi), inset 0 -3px 8px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--rc, #c99a52), 0 0 16px color-mix(in srgb, var(--rc, #c99a52) 45%, transparent), 0 8px 14px rgba(0, 0, 0, 0.55); }
.ds-card:hover::before { background-position: 230% 0; }
.ds-card.rar-legend, .ds-card.rar-epic { border-top: 2px solid var(--rc); }
.ds-name { font-family: var(--serif); text-shadow: 0 1px 0 #000; }
.ds-rar { font: 700 10px/1 var(--serif); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rc, #8a8478); }
.ds-card.vip-card { background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--vc, #d8a64a) 32%, transparent), transparent 66%), var(--parch); --rc: var(--vc, #d8a64a); }
.ds-card.vip-card .ds-name { color: var(--vc, #fff1c8); }
.ds-vipb span { background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 1px 3px #000, 0 0 0 1px color-mix(in srgb, var(--vc, #7a5e34) 55%, #000); border-radius: 3px; }
/* лента цены: широкая плашка по низу карточки */
.ds-buy { align-self: stretch; width: auto; margin: 6px -10px 0; padding: 9px 8px; border: 0; border-top: 1px solid #060403; border-radius: 0; background: linear-gradient(180deg, #2f9bd0, #1a6a96 52%, #124e70); box-shadow: inset 0 1px 0 rgba(200, 240, 255, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.4); transition: filter 0.15s; }
.ds-buy:hover { filter: brightness(1.2); } .ds-buy:active { filter: brightness(0.9); box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.6); }
.ds-buy.poor { background: linear-gradient(180deg, #4a4036, #2a231c); color: #b9a98a; box-shadow: inset 0 1px 0 var(--hi2); }
.ds-buy.money { background: var(--metal-on); color: #1f1306; text-shadow: 0 1px 0 rgba(255, 238, 190, 0.6); box-shadow: inset 0 1px 0 rgba(255, 250, 220, 0.8), inset 0 -2px 0 rgba(90, 50, 8, 0.5); }
.ds-own { margin: 6px -10px 0; padding: 8px; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 2px 4px #000; }
.ds-sale { position: absolute; z-index: 2; top: 8px; right: 8px; padding: 3px 7px 3px 9px; font: 900 11px/1 var(--serif); color: #fff; background: linear-gradient(180deg, #e0463e, #9a1e1e); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 6px 50%); filter: drop-shadow(0 1px 2px #000); }
.ds-rib { z-index: 2; background: linear-gradient(180deg, #e0463e, #9a1e1e); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.ds-card.pack { --rc: #4f9be0; } .ds-card.pack.hot { --rc: #f2b43a; }
.ds-gemstack { display: flex; justify-content: center; padding: 6px 0; filter: drop-shadow(0 0 10px rgba(63, 190, 240, 0.6)) drop-shadow(0 3px 3px #000); }
.ds-amt { font: 900 22px/1 var(--serif); text-shadow: 0 2px 3px #000; }
.vip-tbl { border-collapse: separate; border-spacing: 0; background: var(--parch); box-shadow: 0 0 0 1px #4d3b24; } .vip-tbl th { font-family: var(--serif); }

/* ---------- Гильдия, боссы, банк: те же материалы ---------- */
.gu-btabs, .gu-chips { gap: 4px; }
.gu-chip, .wb-chip { background: var(--metal); border: 1px solid #060403; box-shadow: inset 0 1px 0 var(--hi2), 0 0 0 1px #4a3a24; border-radius: 3px; }
.wb-row:hover, .gu-card:hover { filter: brightness(1.12); }
.wb-por { border-radius: 50%; box-shadow: inset 0 2px 4px #000, 0 0 0 2px #7a5e34; }
.pg-bar, .bar, .tp-bar, .xpbar { box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.85), 0 0 0 1px #4a3a24; }

@media (max-width: 720px) {
  .win { box-shadow: 0 0 0 1px #000, 0 0 0 2px #7a5e34, 0 10px 30px rgba(0, 0, 0, 0.8); }
  .win-head { padding-left: 16px; }
  .ds-hero { grid-template-columns: auto 1fr; padding: 10px 12px; gap: 10px; } .ds-hero-buy { grid-column: 1 / -1; justify-self: stretch; }
  .ds-sock.big { width: 64px; height: 64px; } .ds-sock.big .ds-ico { font-size: 32px; } .ds-hero-name { font-size: 17px; }
  .ds-head { flex-wrap: wrap; } .ds-top { padding: 8px 12px; }
  .tp-ci { width: 28px; height: 28px; } .tp-cat.on { transform: none; } .tp-cat.on::before, .tp-cat.on::after { display: none; }
  .tp-ped b { font-size: 16px; } .tp-pod.p1 .tp-ped { height: 40px; } .tp-pod.p2 .tp-ped { height: 28px; } .tp-pod.p3 .tp-ped { height: 20px; }
  .tp-me { margin: 0 -10px; }
  .tp-podium { padding-bottom: 14px; } .tp-pod.p1 .tp-ava { margin-top: 0; }
  .tw-medal.lg { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .ds-card::before, .ds-hero::before { transition: none; } .btn, .tp-cat, .tw-bl { transition: none; } }

/* ---------- Лавка: ровная сетка, карточки одной высоты в ряду, цена всегда внизу ---------- */
.w-donate .ds-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: auto; align-items: stretch; max-height: none; overflow: visible; padding: 4px; }
.w-donate .ds-card { min-width: 0; min-height: 228px; overflow: hidden; align-items: center; text-align: center; }
.w-donate .ds-name { max-width: 100%; margin-top: 2px; font-size: 13.5px; line-height: 1.2; overflow-wrap: anywhere; }
.w-donate .ds-rar { display: block; margin: 0; }
.w-donate .ds-desc { width: 100%; font-size: 11.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: 2.7em; flex: 0 0 auto; }
.w-donate .ds-card > .ds-buy, .w-donate .ds-card > .ds-own { margin-top: auto; align-self: stretch; }
.w-donate .ds-card > .ds-desc + .dim { font-size: 10.5px; }
.w-donate .ds-card > .ds-desc, .w-donate .ds-card > .ds-vipb, .w-donate .ds-card > .ds-emo { margin-bottom: 4px; }
.w-donate .ds-buy, .w-donate .ds-own { margin-left: -10px; margin-right: -10px; min-height: 38px; display: flex; align-items: center; justify-content: center; }
.w-donate .ds-own { padding: 0 8px; }
.w-donate .ds-vipb { flex-wrap: wrap; gap: 3px; max-width: 100%; }
.w-donate .ds-vipb span { padding: 2px 6px; font-size: 10.5px; line-height: 1.2; white-space: nowrap; }
.w-donate .ds-vipb span.more { color: #fff1c8; background: color-mix(in srgb, var(--vc, #d8a64a) 40%, #000); cursor: help; }
.w-donate .ds-emo { flex-wrap: nowrap; gap: 3px; max-width: 100%; overflow: hidden; justify-content: center; }
.w-donate .ds-card .ds-sock { flex: none; width: 56px; height: 56px; } .w-donate .ds-card .ds-sock .ds-ico { font-size: 27px; }
.w-donate .ds-card .ds-sale { top: 6px; right: 6px; }
/* заголовки разделов на вкладке «Все» */
.ds-sec { margin-top: 14px; width: 100%; align-self: stretch; }
.ds-sech { display: flex; align-items: center; gap: 8px; margin: 0 2px 6px; font: 800 15px/1.2 var(--serif); letter-spacing: 0.08em; color: #e8c880; text-shadow: 0 1px 0 #000; }
.ds-sech b { font-weight: 800; text-transform: uppercase; }
.ds-sech::after { content: ''; flex: 1; order: 3; height: 8px; background: var(--fili) center / auto 8px repeat-x; opacity: 0.6; }
.ds-sech i { order: 4; font: 700 11px/1 var(--serif); font-style: normal; padding: 3px 7px; border-radius: 999px; color: #cdbb98; background: #0a0806; box-shadow: inset 0 1px 3px #000, 0 0 0 1px #4a3a24; }
.ds-sech span { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; background: radial-gradient(circle at 35% 28%, #5a4528, #15100a 78%); box-shadow: inset 0 1px 0 var(--hi2), 0 0 0 1px #7a5e34; }
/* баннер-хит: описание в 2 строки, кнопка с ровной лентой */
.ds-hero-desc { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 1.3em; }
.ds-hero-buy { min-width: 130px; justify-content: center; }
@media (max-width: 720px) {
  .w-donate .ds-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; padding: 2px; }
  .w-donate .ds-card { min-height: 236px; padding-left: 8px; padding-right: 8px; }
  .w-donate .ds-buy, .w-donate .ds-own { margin-left: -8px; margin-right: -8px; }
  .w-donate .ds-card .ds-sock { width: 50px; height: 50px; } .w-donate .ds-card .ds-sock .ds-ico { font-size: 24px; }
  .ds-hero-buy { clip-path: none; border-radius: 4px; padding: 8px 14px; flex-direction: row; gap: 10px; justify-content: center; }
  .ds-sech { font-size: 13.5px; }
}
