:root {
  --bg: #0b0b10;
  --panel: #13131b;
  --panel2: #191923;
  --line: #262633;
  --line2: #34344a;
  --text: #e6e8f2;
  --muted: #8a8fa8;
  --gold: #ffd166;
  --red: #ff6b6b;
  --r0: #c8c8c8;
  --r1: #5fd068;
  --r2: #4aa3ff;
  --r3: #b77dff;
  --r4: #ff8a3d;
  --r5: #ffd84a;
  /* 游戏画面的高度和刘海边距：由 main.js 的 resize() 按转没转过来的画面算好写进来 */
  --vh: 100vh;
  --sl: 0px;
  --sr: 0px;
  --st: 0px;
  --sb: 0px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 14px;
}

/* 整个游戏装在 #app 里：手机竖着拿时 main.js 把它转 90° 摆好（假横屏），里面的 fixed 元素都相对它定位 */
#app { position: fixed; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; transform-origin: 0 0; }

canvas#view { position: fixed; inset: 0; display: block; cursor: none; touch-action: none; }
body.in-camp canvas#view { cursor: default; }

.hidden { display: none !important; }

.screen { position: fixed; inset: 0; overflow-y: auto; background: var(--bg); }
.center { display: flex; align-items: center; justify-content: center; color: var(--muted); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
}

img, .ic { image-rendering: pixelated; }

.btn {
  font: inherit;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
}
.btn:hover:not(:disabled) { border-color: #4a4a62; background: #23232f; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.primary { background: #3a2f12; border-color: #8a6a20; color: var(--gold); }
.btn.primary:hover:not(:disabled) { background: #4a3b16; }
.btn.danger { background: #2c1616; border-color: #6a2c2c; color: #ff9a9a; }
.btn.danger:hover:not(:disabled) { background: #3a1c1c; }
.btn.big { font-size: 15px; padding: 9px 18px; font-weight: bold; }
.btn.mini { font-size: 12px; padding: 3px 10px; margin-left: auto; font-weight: normal; }

.dim { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.warn { color: var(--gold); font-size: 14px; margin-top: 10px; }

kbd {
  display: inline-block;
  min-width: 22px;
  padding: 0 6px;
  border: 1px solid #44445a;
  border-bottom-width: 2px;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  text-align: center;
  color: #c8cbe0;
  background: #1c1c28;
}

.c0 { color: var(--r0); } .c1 { color: var(--r1); } .c2 { color: var(--r2); }
.c3 { color: var(--r3); } .c4 { color: var(--r4); } .c5 { color: var(--r5); }

/* ---------- 营地 ---------- */

/* 左上角：回首页 */
#campHud { position: fixed; left: 14px; top: 14px; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: rgba(8, 8, 14, 0.72); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; font-size: 13px; }
#campHud .home { color: var(--muted); text-decoration: none; }
#campHud .home:hover { color: var(--text); }
#campHud span { color: #e8e2d6; font-weight: bold; letter-spacing: 0.1em; }

/* 走到建筑旁按 E 打开的面板 */
.campbox { width: min(1100px, 100%); max-height: calc(var(--vh) - 32px); overflow-y: auto; padding: 18px; }
.campbox, .inv { scrollbar-width: thin; scrollbar-color: #3a3a52 transparent; }
.campbox > header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.campbox > header h2 { font-size: 20px; letter-spacing: 0.08em; }
.campbox > header .pts { margin-left: auto; color: var(--gold); font-size: 13px; display: flex; align-items: baseline; gap: 6px; }
.campbox > header .pts b { font-size: 22px; }
.campbox > .card + .card, .campbox > .card + .btn { margin-top: 14px; }
.campbox.p-car, .campbox.p-house { width: min(640px, 100%); }
.trip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dest { padding: 14px 16px; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel2); }
.dest b { display: block; font-size: 16px; }
.dest span { font-size: 12px; color: var(--muted); }
.dest.on { border-color: #8a6a20; background: #241d0e; }
.dest.on b { color: var(--gold); }
.dest.off { opacity: 0.45; }
.btn.go { display: block; width: 100%; }
.row { display: flex; gap: 10px; margin-top: 8px; }
.row .btn.mini { margin-left: 0; }
.tabs { display: flex; gap: 2px; }
.tab {
  font: inherit;
  font-size: 14px;
  padding: 6px 14px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.tab:hover { color: var(--text); background: #16161f; }
.tab.on { color: var(--gold); background: #1f1a0e; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.card h2, .card h3 { display: flex; align-items: baseline; gap: 10px; font-size: 15px; margin-bottom: 12px; }
.card h3 + * { margin-bottom: 14px; }
.card h2 small, .card h3 small { font-size: 12px; font-weight: normal; color: var(--muted); }

.gear, .inv-body {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

/* 能把东西放下的整块区域（仓库/背包）：拿着装备里的东西时亮一圈 */
.drop-ok { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.35); }

/* ---------- 物品格 ---------- */

.slot {
  --rc: #4a4a58;
  --rg: rgba(255, 255, 255, 0);
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid var(--rc);
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 110%, var(--rg), transparent 65%), #0f0f15;
  box-shadow: inset 0 -2px 0 var(--rc);
  color: var(--text);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.slot .ic { width: 34px; height: 34px; pointer-events: none; }
.slot .nm { font-size: 11px; max-width: 100%; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c9ccd8; pointer-events: none; }
.slot .cnt { position: absolute; right: 5px; top: 2px; font-size: 12px; font-weight: bold; pointer-events: none; }
.slot.empty { --rc: #2a2a38; border-style: dashed; box-shadow: none; background: #0d0d12; cursor: default; }
.slot.empty .ph { font-size: 11px; color: #4c4c60; pointer-events: none; }
.slot.safe.empty:not(.tgt) { --rc: #6a5626; background: #13110b; }
.slot:not(.empty):hover { background: radial-gradient(ellipse at 50% 110%, var(--rg), transparent 65%), #17171f; }
.slot.r1 { --rc: #3a7a42; --rg: rgba(95, 208, 104, 0.22); }
.slot.r2 { --rc: #2f6aa8; --rg: rgba(74, 163, 255, 0.24); }
.slot.r3 { --rc: #7350a8; --rg: rgba(183, 125, 255, 0.26); }
.slot.r4 { --rc: #a8582a; --rg: rgba(255, 138, 61, 0.26); }
.slot.r5 { --rc: #b8962a; --rg: rgba(255, 216, 74, 0.32); }
/* 拿起来的那一格变暗；能放下的格子亮起来 */
.slot.lifted { opacity: 0.3; }
.slot.tgt {
  --rc: var(--gold);
  border-style: dashed;
  background: rgba(255, 209, 102, 0.1);
  cursor: pointer;
  animation: tgt 1.1s ease-in-out infinite;
}
.slot.tgt .ph { color: var(--gold); }
@keyframes tgt { 50% { background: rgba(255, 209, 102, 0.24); } }
.slot.big { width: 64px; height: 64px; }
.slot.big .ic { width: 40px; height: 40px; }
.slot.small { width: 46px; height: 46px; border-radius: 6px; }
.slot.small .ic { width: 28px; height: 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, 64px); gap: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  font: inherit;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.on { color: var(--bg); background: #c8cbe0; border-color: #c8cbe0; }

/* 装备 */
.wcard { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--panel2); }
.wcard + .wcard { margin-top: 10px; }
.wcard.cur { border-color: #7a6020; }
.wtop { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.wtop kbd { align-self: start; }
.winfo b { display: block; font-size: 15px; }
.winfo span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.winfo .stat { color: #b9bed2; }
.watts { display: flex; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line2); }
.att { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.att > span { font-size: 11px; color: var(--muted); }
.eqrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.eq { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.eq .slot, .quick .slot { width: 52px; height: 52px; }
.eq .slot .ic, .quick .slot .ic { width: 32px; height: 32px; }
.eq b { display: block; font-size: 14px; }
.eq span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.eq-quick { margin-top: 12px; }
.lbl { display: block; font-size: 13px; margin-bottom: 6px; }
.quick { display: flex; gap: 8px; }

/* ---------- 介绍卡片：悬停提示、关卡里的拾取卡片、出错提示都用这一种 ---------- */

.card-pop {
  position: fixed;
  z-index: 40;
  width: 250px;
  padding: 12px 14px;
  background: rgba(16, 16, 24, 0.97);
  border: 1px solid #3a3a52;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  font-size: 13px;
}
.card-pop.world { right: 14px; bottom: 92px; z-index: 5; }
.card-pop.err { width: auto; max-width: 260px; border-color: #7a3030; }
.chead { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; }
.chead .ic { width: 40px; height: 40px; padding: 4px; border-radius: 6px; background: #0b0b10; border: 1px solid var(--line); }
.chead b { display: block; font-size: 15px; }
.chead span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.clines { list-style: none; margin-top: 8px; line-height: 1.7; color: #d4d8e6; }
.cattlist { list-style: none; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); line-height: 1.7; }
.cattlist li { display: flex; gap: 10px; }
.cattlist span { width: 30px; color: var(--muted); }
.cattlist em { font-style: normal; color: #4c4c60; }
.cfit { margin-top: 6px; padding: 4px 8px; border-radius: 6px; }
.cfit.ok { color: #8ef0a2; background: rgba(95, 208, 104, 0.08); }
.cfit.no { color: #ffa898; background: rgba(255, 107, 107, 0.08); }
.cerr { color: #ffa898; }

/* 右键菜单 */
#menu {
  position: fixed;
  z-index: 50;
  min-width: 150px;
  padding: 6px;
  background: #15151f;
  border: 1px solid #3a3a52;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
#menu .mtitle { font-size: 12px; font-weight: bold; padding: 4px 10px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
#menu button {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 13px;
  text-align: left;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  cursor: pointer;
}
#menu button:hover { background: #262636; }
#menu button.danger { color: #ff9a9a; }

/* 拖着走的图标 */
#ghost { position: fixed; z-index: 60; width: 44px; height: 44px; pointer-events: none; opacity: 0.9; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7)); }

/* ---------- 商店 ---------- */
.icbox { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #0e0e14; border: 1px solid var(--line); }
.icbox .ic { width: 36px; height: 36px; }
.supply { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; }
.sup { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.sup p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.offer { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-left: 3px solid var(--rc, #4a4a58); border-radius: 10px; background: var(--panel2); }
.offer.r1 { --rc: var(--r1); } .offer.r2 { --rc: var(--r2); } .offer.r3 { --rc: var(--r3); } .offer.r4 { --rc: var(--r4); } .offer.r5 { --rc: var(--r5); }
.offer .type { font-size: 12px; color: var(--muted); }
.offer ul { list-style: none; font-size: 12px; color: #b8bccc; margin-top: 4px; line-height: 1.6; }
.offer.sold { opacity: 0.4; }
.soldtag { font-size: 13px; color: var(--muted); }

/* ---------- 合成 ---------- */
.craft .parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.part { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px; border: 2px dashed var(--line2); border-radius: 10px; opacity: 0.55; }
.part.have { border: 2px solid var(--r5); opacity: 1; }
.part .ic { width: 48px; height: 48px; }
.part small { color: var(--muted); font-size: 12px; }
.part span { font-size: 12px; }
.part.have span { color: var(--r5); }
.arti { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; background: var(--panel2); }
.arti ul { list-style: none; font-size: 13px; color: #c8ccd8; line-height: 1.6; margin-top: 4px; }
.arti .type { display: block; font-size: 12px; color: var(--muted); }
.arti b { font-size: 16px; }
.craft + .craft { margin-top: 12px; }
.craft h3 small { margin-left: 10px; font-weight: normal; font-size: 12px; color: var(--muted); }
.ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.up { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--r4); border-radius: 10px; background: var(--panel2); }
.up .arrow { margin: 0 6px; color: var(--muted); }
.up .type { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---------- 说明 ---------- */
.help ul { padding-left: 20px; line-height: 1.8; font-size: 14px; margin-bottom: 16px; }
.help .keys { list-style: none; padding-left: 0; }
.help p { font-size: 14px; margin-bottom: 8px; }
.help .affs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 6px; }
.help ul.dim { list-style: none; padding-left: 0; font-size: 13px; }

/* 词条名的颜色（和 data.js 的 AFFIXES 一致） */
.aff-tough { color: #c8a0ff; }
.aff-swift { color: #7dd3ff; }
.aff-brutal { color: #ff6a4a; }
.aff-guard { color: #b0c4de; }
.aff-proj { color: #d8e0f0; }
.aff-regen { color: #7dff9a; }
.aff-shield { color: #9ff9ff; }
.aff-vamp { color: #e0507a; }
.aff-burst { color: #ffb347; }
.aff-split { color: #a8d86a; }
.aff-venom { color: #b8d84a; }
.aff-frost { color: #9fd3ff; }
.aff-blink { color: #e0b0ff; }
.aff-summon { color: #c8b27a; }
.aff-unstop { color: #f0f0f0; }
.aff-undying { color: #ffd166; }
.aff-blaze { color: #ff8a3d; }

/* ---------- 关卡里的背包、弹窗 ---------- */

.box { background: #101017; border: 1px solid #34344a; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7); }
.inv { width: min(1000px, 100%); max-height: calc(var(--vh) - 32px); overflow-y: auto; padding: 18px; }
.inv header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.inv header h2 { font-size: 19px; }
.inv header .btn { margin-left: auto; }
.inv .grid.pack { grid-template-columns: repeat(auto-fill, 64px); }

.dlg { width: min(520px, 100%); padding: 22px; }
.dlg h2 { font-size: 20px; margin-bottom: 12px; color: var(--gold); }
.dlg .body p { font-size: 14px; line-height: 1.7; }
.dlg .body p.gain { font-size: 22px; font-weight: bold; color: var(--gold); margin-bottom: 8px; }
.dlg .btns { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.loot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.loot .li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border: 1px solid var(--line2); border-radius: 6px; font-size: 12px; }
.loot .li.r1 { border-color: var(--r1); } .loot .li.r2 { border-color: var(--r2); } .loot .li.r3 { border-color: var(--r3); }
.loot .li.r4 { border-color: var(--r4); } .loot .li.r5 { border-color: var(--r5); }
.loot .ic { width: 24px; height: 24px; }

#toasts { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 70; pointer-events: none; }
.toast { padding: 8px 16px; background: rgba(16, 16, 24, 0.94); border: 1px solid var(--line2); border-radius: 8px; font-size: 14px; }

/* 窄、矮由 JS 按游戏画面的宽高给 body 加 narrow / short（转过来画的时候，媒体查询看的还是没转的屏幕）；:where 不加优先级，和原来的媒体查询一样 */
:where(body.narrow) .gear, :where(body.narrow) .inv-body { grid-template-columns: 1fr; }
:where(body.narrow) .trip { grid-template-columns: 1fr; }

/* ---------- 手机（触屏） ---------- */

/* 读刘海、底部横条的安全边距用（touch.js） */
#safe { position: fixed; left: 0; top: 0; width: 0; height: 0; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); visibility: hidden; pointer-events: none; }

body.touch { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body.touch .slot { touch-action: manipulation; cursor: default; }
body.touch .overlay { padding: max(8px, var(--st)) max(8px, var(--sr)) max(8px, var(--sb)) max(8px, var(--sl)); }
body.touch #campHud { left: max(10px, var(--sl)); top: max(10px, var(--st)); }
body.touch #campHud .btn.mini { margin-left: 0; }
/* 关卡里走到物品旁边的介绍卡片：右下角是开火键，挪到左上角信息栏下面，只留名字和前两行 */
body.touch .card-pop.world { right: auto; bottom: auto; left: calc(var(--sl) + 10px); top: calc(var(--st) + 106px); width: 196px; padding: 7px 9px; font-size: 11px; opacity: 0.94; }
body.touch .card-pop.world .chead { grid-template-columns: 30px 1fr; gap: 8px; }
body.touch .card-pop.world .chead .ic { width: 30px; height: 30px; padding: 2px; }
body.touch .card-pop.world .chead b { font-size: 13px; }
body.touch .card-pop.world .clines { margin-top: 4px; line-height: 1.6; }
body.touch .card-pop.world .clines li:nth-child(n+3) { display: none; }
body.touch #menu button { padding: 11px 12px; font-size: 14px; }
body.touch .btn { padding: 9px 14px; }
body.touch .btn.mini { padding: 6px 12px; }

/* 横屏手机这种矮屏幕：面板、格子都收紧一点 */
:where(body.short) .overlay { padding: 8px; }
:where(body.short) .campbox, :where(body.short) .inv { max-height: calc(var(--vh) - 16px); padding: 10px 12px; }
:where(body.short) .campbox > header, :where(body.short) .inv header { margin-bottom: 8px; gap: 10px; }
:where(body.short) .campbox > header h2, :where(body.short) .inv header h2 { font-size: 17px; }
:where(body.short) .campbox > .card + .card, :where(body.short) .campbox > .card + .btn { margin-top: 8px; }
:where(body.short) .card { padding: 10px; border-radius: 10px; }
:where(body.short) .card h2, :where(body.short) .card h3 { margin-bottom: 8px; }
:where(body.short) .gear, :where(body.short) .inv-body { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
/* 装备分两列：武器一列，护甲、背包、快捷栏、保险箱一列，不用滚就看得全 */
:where(body.short) .loadout > h3 { display: none; }
:where(body.short) .lo { display: grid; grid-template-columns: 266px 212px; gap: 10px; align-items: start; }
:where(body.short) .lo-e > :first-child { margin-top: 0; }
:where(body.short) .eq { grid-template-columns: 46px 1fr; gap: 6px; }
:where(body.short) .slot, :where(body.short) .slot.big { width: 54px; height: 54px; }
:where(body.short) .slot.big .ic { width: 34px; height: 34px; }
:where(body.short) .slot .ic { width: 30px; height: 30px; }
:where(body.short) .slot .nm { font-size: 10px; }
:where(body.short) .grid { grid-template-columns: repeat(auto-fill, 54px); gap: 6px; }
:where(body.short) .inv .grid.pack { grid-template-columns: repeat(auto-fill, 54px); }
:where(body.short) .wtop { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 8px; }
:where(body.short) .wcard { padding: 8px; }
:where(body.short) .watts { gap: 6px; margin-top: 6px; padding-top: 6px; }
:where(body.short) .slot.small { width: 40px; height: 40px; }
:where(body.short) .slot.small .ic { width: 24px; height: 24px; }
:where(body.short) .eq .slot, :where(body.short) .quick .slot { width: 46px; height: 46px; }
:where(body.short) .eqrow { margin-top: 8px; }
:where(body.short) .eq-quick { margin-top: 8px; }
:where(body.short) .dlg { padding: 16px; max-height: calc(var(--vh) - 16px); overflow-y: auto; }
:where(body.short) .dlg .btns { margin-top: 12px; }
:where(body.short) .help ul { font-size: 13px; line-height: 1.7; margin-bottom: 10px; }
:where(body.short) .offers, :where(body.short) .ups { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
:where(body.short) .card-pop { width: 230px; padding: 9px 11px; font-size: 12px; }
