/* v1.17.4 — 界面整理：左上小猫头像、右上三枚条 + 圆图旁的小印章、整体缩小一成、菜园地力卡、猫咪页平铺 */
:root { --fs-xs: 12px; --fs-s: 13px; --fs-m: 15px; --fs-l: 18px; --fs-xl: 24px; --ui-k: .9; --gold: #b59a62; --gold-d: #8c7442; --jade: #4f6f5e; --ink-d: #2c3331; }

/* ---- 整体缩小 10%（在玩家自己的「界面大小」之上再乘 0.9） ---- */
#hud-tl { scale: calc(var(--hud-scale) * var(--ui-k)) !important; }
#hud-tr { scale: calc(var(--hud-scale) * var(--ui-k)) !important; }
#hotbar-wrap { scale: calc(var(--hud-scale) * var(--ui-k)) !important; }
body.hud-tight2 #hud-tr { scale: calc(var(--hud-scale) * var(--ui-k) * .86) !important; }
body.touch.playing #touch-btns, body.ui-edit #touch-btns { scale: calc(var(--btn-scale) * var(--ui-k)) !important; }

/* ---- 左上：小猫头像 + 日期牌 ---- */
#hud #hud-tl { gap: 9px; padding: 5px 13px 6px 6px; border-width: 9px; border-image-width: 9px;
  box-shadow: 0 6px 14px rgba(18,26,22,.32), inset 0 0 0 1px rgba(181,154,98,.55), inset 0 0 0 3px rgba(255,252,238,.5); }
#hud-tl #hud-cat { position: relative; flex: none; width: 50px; height: 50px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; }
#hud-tl #hud-cat canvas { display: block; width: 46px; height: 46px; margin: 2px; border-radius: 50%; image-rendering: pixelated;
  background: radial-gradient(circle at 50% 38%, #f8eed4 0%, #ead9b3 62%, #d8c193 100%);
  box-shadow: 0 0 0 2px #f6efdb, 0 0 0 3.5px var(--ink-d), 0 0 0 5px rgba(181,154,98,.75), 0 2px 5px rgba(20,28,24,.45); transition: transform .15s; }
#hud-tl #hud-cat:hover canvas, #hud-tl #hud-cat:focus-visible canvas { transform: scale(1.06) rotate(-2deg); }
#hud-tl #hud-cat:active canvas { transform: scale(.97); }
#hud-tl #hud-cat #hud-season2 { position: absolute; right: -6px; bottom: -4px; min-width: 17px; height: 17px; padding: 0 1px; display: grid; place-items: center; font: 400 12px/1 "猫田楷", var(--serif); font-style: normal; color: #f7ecd4; background: #a8392b; border-radius: 2px; transform: rotate(-6deg); box-shadow: inset 0 0 0 1px rgba(247,236,212,.6), 0 1px 2px rgba(20,28,24,.5); pointer-events: none; }
#hud-tl .tl-main { min-width: 112px; gap: 2px; }
#hud-tl .tl-r1 b { font-size: 17px; letter-spacing: 2px; font-weight: 400; font-family: "猫田楷", var(--serif); }
#hud-tl #hud-term { font-size: 12px; }
#hud-tl #hud-week { font-size: 12px; }
#hud-tl .tl-r2 { font-size: 13px; }
#hud-tl #hud-phase, #hud-tl #hud-wx { font-size: 12px; }
#hud-tl #hud-energy { position: relative; height: 6px; margin-top: 3px; padding: 0; border-radius: 3px; background: rgba(35,41,42,.16); box-shadow: inset 0 0 0 1px rgba(35,41,42,.28); overflow: hidden; }
#hud-tl #hud-energy::after { content: ""; position: absolute; top:0;right:0;bottom:0;left:0; background: repeating-linear-gradient(90deg, transparent 0 24%, rgba(246,239,219,.75) 24% 25%); pointer-events: none; }
#hud-tl #hud-energy i { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #4d6b58, #8fb08a); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
#hud-tl #hud-energy.low i { background: linear-gradient(90deg, #8a2c20, #c4553f); }

/* ---- 右上：钱 / 委托 / 地契 三枚签条，下面是圆图和旁边一列小印章 ---- */
#hud #hud-tr { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
#hud-tr .tr-hidden { display: none; }
#hud-tr .tr-strip { display: flex; gap: 5px; align-items: stretch; pointer-events: none; }
#hud #hud-tr .tr-strip > * { pointer-events: auto; border-width: 7px; border-image: url(../assets/ui/ink/frame_thin.webp) 30 / 7px / 0 stretch;
  box-shadow: 0 3px 6px rgba(18,26,22,.3), inset 0 0 0 1px rgba(181,154,98,.5); }
#hud #hud-tr .tr-strip .coin { flex: 0 0 auto; min-height: 32px; padding: 0 9px 0 3px; gap: 3px; border-left: 7px solid transparent; }
#hud #hud-tr .tr-strip .coin b { font-size: 16px; font-weight: 400; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
#hud #hud-tr .tr-strip button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; padding: 0 9px 0 7px; font-size: 14px; letter-spacing: 2px; line-height: 1; white-space: nowrap; color: #33382f; transition: transform .12s, color .12s; }
#hud #hud-tr .tr-strip button .ic { flex: none; color: #7b3a2c; }
#hud #hud-tr .tr-strip button:hover { color: #7b2a1e; transform: translateY(-1px); }
#hud #hud-tr .tr-strip button:active { transform: translateY(1px); }
#hud #hud-tr .tr-strip #btn-deed.shown { min-height: 32px; padding: 0 9px 0 7px; font-size: 14px; letter-spacing: 2px; line-height: 1; }
#btn-deed { display: none; }
#btn-deed.shown { display: inline-flex; }

.tr-map { display: flex; align-items: flex-start; gap: 7px; }
#hud-tr .tr-dock { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; pointer-events: none; }
#hud #hud-tr .tr-dock > button { pointer-events: auto; width: 28px; height: 28px; min-height: 0; padding: 0; display: grid; place-items: center; border: 2px solid var(--ink-d); border-image: none; border-radius: 50%; color: #3b4038;
  background: radial-gradient(circle at 35% 28%, #fbf5e2, #e6dcc0 78%); box-shadow: 0 2px 4px rgba(18,26,22,.4), inset 0 0 0 2px rgba(255,252,238,.7), inset 0 0 0 3px rgba(181,154,98,.55); cursor: pointer; transition: transform .12s, color .12s; }
#hud #hud-tr .tr-dock > button:hover { color: #7b2a1e; transform: scale(1.1); }
#hud #hud-tr .tr-dock > button:active { transform: scale(.94); }
#hud #hud-tr .tr-dock > #btn-mm { display: none; }
body.mm-off #hud #hud-tr .tr-dock > #btn-mm { display: grid; color: var(--zhu); }
body.mm-off #hud #hud-tr .tr-dock > #mm-shape { display: none; }

/* ---- 小地图：方 / 圆 ---- */
#minimap-wrap { position: relative; align-self: flex-start; }
#minimap-wrap #mm-name { display: none; }
#minimap-wrap.round { width: 104px; height: 104px; padding: 0; border-radius: 50%; overflow: visible; border: 3px solid var(--ink-d); background: #2e3a34;
  box-shadow: 0 0 0 2px #e7dcbb, 0 0 0 3.5px rgba(140,116,66,.85), 0 4px 8px rgba(20,28,24,.45); border-image: none; }
#minimap-wrap.round #minimap { width: 100%; height: 100%; border-radius: 50%; }
#minimap-wrap.round::before { content: "北"; position: absolute; left: 50%; top: -12px; transform: translateX(-50%); z-index: 2; min-width: 15px; height: 15px; display: grid; place-items: center; font: 400 11px/1 "猫田楷", var(--serif); color: #f7ecd4; background: #a8392b; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(247,236,212,.55), 0 1px 2px rgba(20,28,24,.5); pointer-events: none; }
#minimap-wrap.round #mm-name { display: block; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); max-width: 132px; padding: 0 9px; border: 1px solid rgba(64,52,36,.55); background: linear-gradient(#f6eed6, #e9dfbf); color: #3c3527; font-size: 12px; letter-spacing: 1px; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; box-shadow: 0 1px 3px rgba(20,28,24,.35); }
#minimap-wrap:not(.round) { border-width: 7px; border-image: url(../assets/ui/ink/frame_thin.webp) 30 / 7px / 0 stretch; box-shadow: 0 4px 8px rgba(20,28,24,.4), inset 0 0 0 1px rgba(181,154,98,.5); }
body.hud-tight #minimap-wrap.round { width: 84px; height: 84px; }
body.hud-tight2 #minimap-wrap.round { width: 68px; height: 68px; }
body.hud-tight #minimap-wrap.round #minimap, body.hud-tight2 #minimap-wrap.round #minimap { width: 100%; height: 100%; }
@media (max-width: 640px) {
  #hud #hud-tr .tr-strip { gap: 3px; }
  #hud #hud-tr .tr-strip button, #hud #hud-tr .tr-strip #btn-deed.shown { padding: 0 6px 0 5px; font-size: 13px; letter-spacing: 1px; min-height: 30px; }
  #hud #hud-tr .tr-strip .coin { min-height: 30px; }
  #hud #hud-tr .tr-strip .coin b { font-size: 14px; }
}

/* ---- 帧率字挪到日期牌下面；矿洞层牌挪到按钮条下面（矿洞里不显示小地图） ---- */
body.in-mine #mine-plaque { left: auto; right: 64px; top: 54px; transform: none; }

/* ---- 地力卡：只在菜园里，放在快捷栏上方 ---- */
#fert-card { top: auto !important; bottom: 102px; }
body.touch #fert-card { bottom: 96px; }
#fert-card:not(.zone) { display: none !important; }
#fert-card { max-width: min(380px, 80vw); padding: 6px 12px 6px; }
#fert-card small { display: none; }

/* ---- 猫咪页：一屏平铺，不用滚动 ---- */
.profile-box .pf-body { overflow: visible; max-height: none; }
.pf-live { display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: stretch; }
.cat-stage { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 4px 8px; border: 1px solid rgba(77,70,50,.29); background: rgba(255,251,237,.42); }
#cat-cv { width: 150px; height: 160px; cursor: ew-resize; touch-action: none; image-rendering: pixelated; }
.cat-ctl, .cat-pose { display: flex; gap: 4px; }
.cat-ctl button, .cat-pose button { min-width: 34px; height: 28px; padding: 0 8px; border: 1px solid #a69b82; background: rgba(255,252,241,.7); color: #40392d; font-family: inherit; font-size: 13px; cursor: pointer; }
.cat-ctl button.on, .cat-pose button.on { background: #3c4a42; border-color: #3c4a42; color: #f6efdb; }
.pf-side { display: flex; flex-direction: column; min-width: 0; }
.pf-side .pf-h { display: block; font-size: 26px; margin: 0 0 2px; font-weight: normal; letter-spacing: 4px; color: #2b3a34; }
.pf-where { margin: 0 0 10px; color: #756951; font-size: 13px; }
.pf-side .pf-metrics { margin-bottom: 8px; }
.pf-side .pf-note { margin: 0; }
@media (max-height: 460px) {
  .profile-box { padding: 8px 14px; }
  .pf-nav { padding-bottom: 5px; }
  .pf-nav>b { font-size: 22px; }
  .pf-live { grid-template-columns: 158px 1fr; gap: 12px; }
  #cat-cv { width: 140px; height: 150px; }
  .pf-metrics>div { padding: 6px 11px; }
  .pf-where { margin-bottom: 7px; }
}

/* ---- 面板整理：设置页两栏平铺、行囊右侧状态小窗压紧 ---- */
.set-tabs { display: flex; gap: 6px; margin: 0 0 8px; }
.set-tabs button { padding: 3px 16px; border: 1px solid #a69b82; background: rgba(255,252,241,.64); color: #40392d; font-family: inherit; font-size: 14px; cursor: pointer; }
.set-tabs button.on { background: url(../assets/ui/ink/stroke.webp) center/100% 100%; border-color: transparent; color: #f9f2df; }
.set-pane[hidden] { display: none !important; }
.set-pane .setgrp { border: 0; padding: 0; margin: 0; }
.set-pane label { margin: 5px 0; }
.eq-live { margin: 6px 0; padding: 6px 8px; }
.eq-live-title { margin-bottom: 4px; }
.eq-live-title small { display: none; }
.eq-live-grid { gap: 2px 9px; }
.set-pane .setgrp > b { display: none; }
.set-pane label { margin: 3px 0; }
.set-pane p.dim { margin: 4px 0; }
.set-pane .row { margin-top: 6px; }

/* v1.17.4: icons appended to items_hd (whetstone, iron prop, iron chain) */
.ico { background-image: url(../assets/ui/items_hd.webp?v=1174); }

/* ================= v1.17.5：右上角对齐 + 设置页水墨卡片 ================= */
.tr-map { align-items: stretch; }
#hud-tr .tr-dock { padding-top: 0; justify-content: space-between; }
#hud-tr .tr-dock > button { flex: none; }
#minimap-wrap { margin: 0; }
#hud-tr .tr-strip, .tr-map { margin-right: 0; }
#hud #hud-tr .tr-dock > button { width: 30px; height: 30px; }
#hud #hud-tr .tr-dock > button svg { width: 17px; height: 17px; }
.set-tabs { gap: 4px; margin: 0 0 9px; padding-bottom: 6px; border-bottom: 1px solid rgba(120,104,72,.45); }
.set-tabs button { position: relative; padding: 3px 20px; letter-spacing: 4px; border: 1px solid rgba(120,104,72,.6); border-radius: 2px; background: linear-gradient(#fbf6e6, #efe5cb); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.set-tabs button.on { box-shadow: 0 1px 2px rgba(20,28,24,.4); }
.set-pane { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.set-pane[hidden] { display: none !important; }
.set-pane:has(> .kcard) { display: block; }
.scol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.scard { position: relative; padding: 5px 12px 7px; border: 1px solid rgba(120,104,72,.5); border-radius: 3px; background: linear-gradient(rgba(255,252,240,.72), rgba(246,238,216,.6)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 1px 0 rgba(60,50,30,.18); }
.scard::before, .scard::after { content: ""; position: absolute; width: 8px; height: 8px; border: 0 solid var(--gold-d); }
.scard::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.scard::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.scard h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 3px; font: 400 16px/1.3 "猫田楷", serif; letter-spacing: 6px; color: #7b3a2c; }
.scard h4::before { content: ""; width: 7px; height: 7px; background: #a64d3d; transform: rotate(45deg); box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.scard h4::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(120,104,72,.55), transparent); }
.srow { display: flex; align-items: center; gap: 9px; min-height: 30px; margin: 0; padding: 1px 0; border-bottom: 1px dotted rgba(120,104,72,.32); }
.srow:last-of-type { border-bottom: 0; }
.srow .sl { flex: 0 0 4.6em; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.srow .sl b { font-weight: 400; font-size: 15px; color: #2f2a20; }
.srow .sl small { font-size: 12px; color: #756b56; }
.srow.tog .sl { flex: 1; }
.srow .sv { flex: 0 0 2.8em; text-align: right; font-size: 13px; color: #6b6250; font-variant-numeric: tabular-nums; }
.srow input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 18px; background: transparent; --p: 50%; }
.srow input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; border: 1px solid rgba(60,52,36,.55); background: linear-gradient(90deg, #4f6f5e 0 var(--p), #e6dcc0 var(--p) 100%); box-shadow: inset 0 1px 1px rgba(0,0,0,.18); }
.srow input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; border: 2px solid var(--gold-d); background: radial-gradient(circle at 50% 50%, #b3402f 0 34%, #f6ecd2 36%); box-shadow: 0 1px 2px rgba(20,20,10,.5); }
.srow input[type=range]::-moz-range-track { height: 5px; border-radius: 3px; border: 1px solid rgba(60,52,36,.55); background: #e6dcc0; }
.srow input[type=range]::-moz-range-progress { height: 5px; background: #4f6f5e; border-radius: 3px; }
.srow input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--gold-d); background: #b3402f; }
.srow input[type=checkbox] { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 38px; height: 20px; margin: 0; border-radius: 10px; border: 1px solid #7b7056; background: #d9cfb3; box-shadow: inset 0 1px 2px rgba(0,0,0,.25); cursor: pointer; transition: background .18s; }
.srow input[type=checkbox]::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(#fffaf0, #e8dcc0); border: 1px solid #7b7056; box-shadow: 0 1px 1px rgba(0,0,0,.3); transition: transform .18s; }
.srow input[type=checkbox]:checked { background: #4f6f5e; border-color: #2f4a3c; }
.srow input[type=checkbox]:checked::after { transform: translateX(18px); }
.srow select { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; padding: 3px 24px 3px 9px; font: inherit; font-size: 14px; color: #2f2a20; border: 1px solid #7b7056; border-radius: 2px; background: #fbf6e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237b3a2c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 8px center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.scard .shint { margin: 3px 0 0; font-size: 12px; line-height: 1.45; color: #756b56; }
.set-pane .row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; margin-top: 4px; }
.set-pane .row button { min-height: 30px; padding: 3px 14px; font: inherit; font-size: 14px; letter-spacing: 2px; color: #2f2a20; border: 1px solid #5c5340; border-radius: 2px; background: linear-gradient(#fbf6e6, #e8dcc0); box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 1px 0 rgba(40,34,20,.4); cursor: pointer; }
.set-pane .row button:hover { color: #7b2a1e; background: linear-gradient(#fffaf0, #efe3c6); }
.set-pane .row button:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.set-pane .row button:disabled { opacity: .5; cursor: default; }
.set-pane .kcard { margin: 0 0 8px; padding: 8px 14px; font-size: 13px; line-height: 1.65; border: 1px solid rgba(120,104,72,.5); border-radius: 3px; background: linear-gradient(rgba(255,252,240,.72), rgba(246,238,216,.6)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.set-pane .kcard > b { font: 400 16px "猫田楷", serif; letter-spacing: 6px; color: #7b3a2c; }
.set-pane .save-row { margin-top: 2px; }
@media (max-width: 560px) { .set-pane { grid-template-columns: 1fr; } .srow .sl { flex-basis: 4.2em; } }
/* 设置页压紧一点：一屏放得下 */
.pbox:has(.set-tabs) { padding: 12px 20px 12px; }
.pbox:has(.set-tabs) h3 { margin-bottom: 5px; padding-bottom: 5px; }
.set-tabs { margin-bottom: 7px; padding-bottom: 5px; }
.set-tabs button { padding: 2px 20px; }
.set-pane { gap: 8px; }
.scol { gap: 7px; }
.scard { padding: 3px 11px 4px; }
.scard h4 { margin-bottom: 1px; font-size: 15px; }
.srow { min-height: 27px; }
.srow.tog .sl { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 7px; }
.srow.tog .sl small { margin: 0; }
.scard .shint { margin-top: 2px; }
/* 水墨确认框 */
.ink-confirm { position: fixed; top:0;right:0;bottom:0;left:0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(14,20,18,.62); animation: icIn .18s ease-out; }
@keyframes icIn { from { opacity: 0; } to { opacity: 1; } }
.ic-card { position: relative; width: min(380px, 88vw); padding: 18px 26px 16px; text-align: center; background: var(--paper, #f4ecd6); border: 7px solid transparent; border-image: url(../assets/ui/ink/frame_thin.webp) 30 / 7px / 0 stretch; box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 0 1px rgba(181,154,98,.6); color: #2f2a20; }
.ic-card h4 { margin: 0 0 8px; font-size: 24px; font-weight: 400; letter-spacing: 8px; color: #7b3a2c; }
.ic-card h4::after { content: ""; display: block; height: 1px; margin: 6px auto 0; width: 70%; background: linear-gradient(90deg, transparent, rgba(120,104,72,.7), transparent); }
.ic-card p { margin: 10px 0 14px; font-size: 16px; line-height: 1.6; }
.ic-btns { display: flex; gap: 12px; justify-content: center; }
.ic-btns button { min-width: 108px; min-height: 34px; padding: 4px 16px; font: inherit; font-size: 15px; letter-spacing: 3px; color: #2f2a20; border: 1px solid #5c5340; border-radius: 2px; background: linear-gradient(#fbf6e6, #e8dcc0); box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 1px 0 rgba(40,34,20,.4); cursor: pointer; }
.ic-btns button.yes { color: #f9f2df; border-color: #4a1f18; background: linear-gradient(#b3402f, #8c2f22); }
.ic-btns button:hover { filter: brightness(1.06); }
.ic-btns button:active { transform: translateY(1px); }

/* ================= 行囊：右侧信息栏固定，只有左侧清单滚动 ================= */
.mn-body:has(.inv-wrap) { overflow: hidden; }
.inv-wrap { height: calc(94vh - 96px); max-height: 560px; align-items: stretch; }
.inv-left { overflow-y: auto; overflow-x: hidden; min-height: 0; padding-right: 4px; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: rgba(120,104,72,.6) transparent; overscroll-behavior: contain; }
.inv-left .islot { touch-action: none; }
.inv-right { position: relative; top: auto; display: flex; flex-direction: column; min-height: 0; max-height: 100%; overflow: hidden; }
.inv-right .inv-card { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.inv-right .ic-big { width: 60px; height: 60px; }
.inv-right .ico.big { --s: 50px; }
.inv-right .ic-name { font-size: 18px; }
.inv-right .ic-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; margin: 6px 0 4px; font-size: 13px; line-height: 1.45; }
.inv-right .ic-stats { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 2px 0; font-size: 12.5px; max-height: 96px; overflow: hidden; }
.inv-right .ic-acts { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.inv-right .ic-acts button { padding: 4px 10px; font-size: 13px; }
@media (max-height: 460px) { .inv-right .ic-desc { -webkit-line-clamp: 5; font-size: 12px; line-height: 1.38; } .inv-right .ic-big { width: 40px; height: 40px; } .inv-right .ico.big { --s: 32px; } .inv-right .ic-name { font-size: 16px; } .inv-right .eq-slot .islot { width: 38px; height: 38px; } .inv-right .ic-acts { gap: 4px; padding-top: 3px; } .inv-right .ic-acts button { padding: 3px 7px; font-size: 12px; letter-spacing: 0; } .inv-right .ic-acts button.pri { padding: 4px 9px; } .inv-right .ic-stats { font-size: 12px; max-height: 60px; } .inv-right .eq-box { margin-bottom: 4px; padding-bottom: 3px; } }
