/* Пыль и Золото — интерфейс в духе печатной продукции Дикого Запада:
   афиши, телеграммы, гроссбух, игральные карты, плакат «Разыскивается». */

:root {
  color-scheme: dark;
  --ink: #1b120b;
  --ink-2: #2a1c12;
  --ink-3: #3a281a;
  --paper: #ead8b3;
  --paper-2: #d9c298;
  --paper-3: #c3a574;
  --paper-ink: #2b1d12;
  --paper-ink-2: #5a4330;
  --gold: #f0c065;
  --gold-2: #c98f2e;
  --blood: #b8402a;
  --blood-2: #7d2414;
  --sage: #8fb0a4;
  --text: #f3e6cc;
  --text-dim: #bda98a;
  --shadow: rgba(10, 5, 2, 0.55);
  --font-display: 'Playfair Display SC', 'Old Standard TT', Georgia, serif;
  --font-body: 'Old Standard TT', Georgia, 'Times New Roman', serif;
  --font-wood: 'Sofia Sans Extra Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.32  0 0 0 0 0.22  0 0 0 0 0.12  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --step--1: clamp(12px, 0.75rem, 13px);
  --step-0: clamp(14px, 0.95rem, 16px);
  --step-1: clamp(16px, 1.15rem, 19px);
  --step-2: clamp(19px, 1.5rem, 24px);
  --step-3: clamp(24px, 2.2rem, 36px);
  --step-4: clamp(34px, 4.4vw, 60px);
  --step-5: clamp(56px, 9vw, 128px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}
body.playing:not(.menu-open) #gl { cursor: none; }

#ui { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 900; text-wrap: balance; }
p { margin: 0; }

/* ───────── кнопки ───────── */
.btn {
  pointer-events: auto;
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-wood);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(180deg, #4a3222, #33221a);
  padding: 0.62em 1.3em 0.55em;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(240, 192, 101, 0.28), inset 0 1px 0 rgba(255, 230, 180, 0.12), 0 3px 0 #140c07, 0 8px 18px var(--shadow);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s;
  min-height: 44px;
  justify-content: center;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); background: linear-gradient(180deg, #5a3c28, #3c281c); color: #fff4dc; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 0 0 1px rgba(240, 192, 101, 0.28), 0 1px 0 #140c07; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.5); }
.btn .btn-sub { font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); letter-spacing: 0.02em; text-transform: none; color: var(--text-dim); }
.btn.primary { background: linear-gradient(180deg, #c4462e, #8e2c1a); color: #fff1dc; box-shadow: inset 0 0 0 1px rgba(255, 200, 150, 0.35), inset 0 1px 0 rgba(255, 220, 190, 0.25), 0 3px 0 #4a150a, 0 10px 22px rgba(90, 20, 10, 0.45); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #d4543a, #9e3420); }
.btn.primary .btn-sub { color: #f4c9b0; }
.btn.ghost { background: transparent; color: var(--paper-ink); box-shadow: inset 0 0 0 1.5px rgba(43, 29, 18, 0.55); }
.btn.ghost:hover:not(:disabled) { background: rgba(43, 29, 18, 0.08); color: var(--paper-ink); }
.btn.ghost.light { color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(234, 216, 179, 0.4); }
.btn.ghost.light:hover:not(:disabled) { background: rgba(234, 216, 179, 0.08); color: #fff; }
.btn.ghost.danger { color: var(--blood-2); box-shadow: inset 0 0 0 1.5px rgba(125, 36, 20, 0.6); }
.btn.big { font-size: var(--step-2); padding: 0.55em 1.8em; }
.btn.small { font-size: var(--step-0); min-height: 38px; }
.btn.price { font-size: var(--step-0); min-width: 7.2em; padding: 0.5em 0.9em; }

.row { display: flex; gap: 12px; align-items: center; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.muted { color: var(--paper-ink-2); opacity: 0.85; }
.small { font-size: var(--step--1); }
.lead { font-size: var(--step-1); color: var(--paper-ink-2); font-style: italic; max-width: 60ch; }
.lead.light { color: var(--text-dim); }
.eyebrow { font-family: var(--font-wood); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-size: var(--step--1); }
.scr-h { font-family: var(--font-display); font-size: var(--step-4); color: var(--paper); line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 12px 30px rgba(0, 0, 0, 0.5); }

/* ───────── экраны ───────── */
.screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-block: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-bottom));
  padding-inline: 16px;
  pointer-events: auto;
  overflow-y: auto;
  background: radial-gradient(ellipse at 50% 40%, rgba(27, 18, 11, 0.25), rgba(15, 9, 5, 0.78) 75%);
  opacity: 0;
  transition: opacity 0.26s ease;
}
.screen.in { opacity: 1; }
.screen.out { opacity: 0; pointer-events: none; }
.screen > * { transform: translateY(10px); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.screen.in > * { transform: none; }

/* бумага */
.paper {
  background-color: var(--paper);
  background-image: var(--grain), radial-gradient(ellipse at 30% 20%, rgba(255, 245, 220, 0.55), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(150, 100, 50, 0.25), transparent 55%);
  color: var(--paper-ink);
  box-shadow: inset 0 0 60px rgba(120, 70, 25, 0.45), inset 0 0 6px rgba(80, 45, 15, 0.5), 0 24px 60px rgba(0, 0, 0, 0.55);
}
.panel {
  width: min(980px, 100%);
  padding: clamp(18px, 3vw, 36px);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.panel.small { width: min(460px, 100%); }
.panel h2 { font-family: var(--font-display); font-size: var(--step-3); letter-spacing: 0.02em; }
.panel h3 { font-family: var(--font-wood); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; font-size: var(--step-0); color: var(--paper-ink-2); border-bottom: 1.5px solid rgba(43, 29, 18, 0.3); padding-bottom: 6px; margin-bottom: 4px; }
h3.light { color: var(--text-dim); border-color: rgba(234, 216, 179, 0.25); }

/* ───────── загрузка ───────── */
.loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ink); pointer-events: auto; opacity: 0; transition: opacity 0.4s; z-index: 50; padding-inline: 16px; }
.loading.in { opacity: 1; }
.loading.out { opacity: 0; pointer-events: none; }
.loading-inner { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.loading-title { font-family: var(--font-display); font-size: var(--step-3); letter-spacing: 0.08em; color: var(--gold); }
.loading-bar { width: 100%; height: 4px; background: rgba(234, 216, 179, 0.12); border-radius: 2px; overflow: hidden; }
.loading-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width 0.25s ease; }
.loading-text { font-family: var(--font-wood); letter-spacing: 0.18em; text-transform: uppercase; font-size: var(--step--1); color: var(--text-dim); min-height: 1.2em; }
.loading-tip { font-style: italic; color: var(--text-dim); max-width: 44ch; font-size: var(--step-0); }

/* ───────── титул ───────── */
.title-wrap {
  width: min(1100px, 100%);
  min-height: 100%;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 24px 48px;
}
section.screen-title { background: linear-gradient(90deg, rgba(15, 9, 5, 0.72) 0%, rgba(15, 9, 5, 0.25) 55%, rgba(15, 9, 5, 0.55) 100%); }
.logo { align-self: center; }
.logo-top { font-family: var(--font-wood); font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-size: var(--step-0); display: flex; align-items: center; gap: 12px; }
.logo-top span { color: var(--blood); }
.logo-main { font-family: var(--font-display); font-weight: 900; line-height: 0.82; color: var(--paper); margin: 10px 0 14px; display: flex; flex-direction: column; text-shadow: 0 4px 0 #5a2a14, 0 18px 40px rgba(0, 0, 0, 0.6); }
.logo-main .l1 { font-size: var(--step-5); letter-spacing: 0.02em; }
.logo-main .l2 { font-family: var(--font-body); font-style: italic; font-weight: 400; font-size: calc(var(--step-5) * 0.42); color: var(--gold); margin: 0.1em 0 0.12em 0.9em; text-shadow: none; }
.logo-main .l3 {
  font-size: var(--step-5);
  background: linear-gradient(180deg, #ffe6a0 0%, #f0c065 38%, #b8741e 62%, #f6d27f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 0 #4a2208) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
}
.logo-sub { font-style: italic; font-size: var(--step-1); color: var(--text-dim); border-top: 1px solid rgba(240, 192, 101, 0.35); padding-top: 12px; max-width: 34ch; }
.title-menu { display: flex; flex-direction: column; gap: 10px; align-self: center; }
.title-menu .btn { width: 100%; align-items: flex-start; text-align: left; padding: 0.7em 1.2em 0.6em; }
.title-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--step--1); color: var(--text-dim); font-style: italic; }

/* ───────── выбор оружия ───────── */
.wgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.wcard {
  appearance: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: var(--paper-ink);
  background: rgba(255, 250, 235, 0.45); border-radius: 3px; padding: 14px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: inset 0 0 0 1.5px rgba(43, 29, 18, 0.25); transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.wcard:hover:not(:disabled) { transform: translateY(-2px); background: rgba(255, 250, 235, 0.7); }
.wcard.sel { box-shadow: inset 0 0 0 2.5px var(--blood), 0 8px 18px rgba(80, 30, 10, 0.25); background: rgba(255, 250, 235, 0.8); }
.wcard.locked { opacity: 0.55; cursor: not-allowed; }
.wcard-name { font-family: var(--font-display); font-size: var(--step-1); font-weight: 900; }
.wcard-desc { font-size: var(--step--1); font-style: italic; color: var(--paper-ink-2); min-height: 3em; }
.wstat { display: grid; grid-template-columns: 5.5em 1fr; align-items: center; gap: 8px; font-family: var(--font-wood); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; }
.wstat i { height: 6px; background: rgba(43, 29, 18, 0.15); border-radius: 3px; position: relative; overflow: hidden; }
.wstat i::after { content: ''; position: absolute; inset: 0; width: calc(var(--v) * 100%); background: var(--paper-ink); border-radius: 3px; }
.wcard-lock { font-family: var(--font-wood); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blood-2); font-size: var(--step--1); }

/* ───────── телеграмма / гроссбух ───────── */
.telegram { width: min(560px, 100%); background: #efe3c6; background-image: var(--grain); color: var(--paper-ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); font-family: var(--font-body); }
.tg-head { display: flex; justify-content: space-between; font-family: var(--font-wood); font-weight: 800; letter-spacing: 0.3em; color: var(--blood-2); border-bottom: 2px solid var(--blood-2); padding-bottom: 6px; font-size: var(--step--1); }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger th { text-align: left; font-weight: 400; font-style: italic; padding: 7px 0; border-bottom: 1px dotted rgba(43, 29, 18, 0.35); }
.ledger td { text-align: right; font-family: var(--font-wood); font-weight: 800; font-size: var(--step-1); letter-spacing: 0.04em; border-bottom: 1px dotted rgba(43, 29, 18, 0.35); }
.bounty-line { font-size: var(--step-0); }
.bounty-line b { font-family: var(--font-wood); font-weight: 900; font-size: var(--step-2); color: var(--blood-2); letter-spacing: 0.04em; }

/* ───────── перки: игральные карты ───────── */
.perks-wrap { width: min(980px, 100%); display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 26px); width: 100%; margin-top: 10px; }
.pcard {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  position: relative; aspect-ratio: 5 / 7; max-width: 100%;
  background: #f4ead2; background-image: var(--grain);
  border-radius: 10px; padding: 22px 16px; color: var(--paper-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  box-shadow: inset 0 0 0 6px #f4ead2, inset 0 0 0 7.5px var(--rc), 0 18px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s;
  animation: deal 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pcard:nth-child(2) { animation-delay: 0.08s; }
.pcard:nth-child(3) { animation-delay: 0.16s; }
@keyframes deal { from { transform: translateY(40px) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.pcard:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: inset 0 0 0 6px #f4ead2, inset 0 0 0 7.5px var(--rc), 0 28px 50px rgba(0, 0, 0, 0.6); }
.pcard:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.pcard-corner { position: absolute; top: 14px; left: 16px; font-family: var(--font-display); font-weight: 900; font-size: var(--step-2); color: var(--rc); filter: brightness(0.7); }
.pcard-corner.br { top: auto; left: auto; bottom: 14px; right: 16px; transform: rotate(180deg); }
.pcard-rarity { font-family: var(--font-wood); font-weight: 800; letter-spacing: 0.25em; text-transform: uppercase; font-size: var(--step--1); color: var(--rc); filter: brightness(0.65); }
.pcard-suit { font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--rc); filter: brightness(0.62) saturate(1.2); opacity: 0.9; }
.pcard-suit.red { color: #a8302a; filter: none; }
.pcard-name { font-family: var(--font-display); font-weight: 900; font-size: var(--step-2); line-height: 1.05; }
.pcard-desc { font-size: var(--step-0); font-style: italic; max-width: 22ch; }
.pcard-stack { font-family: var(--font-wood); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--step--1); color: var(--paper-ink-2); }
.pcard.r-legendary { background-image: var(--grain), radial-gradient(circle at 50% 40%, rgba(240, 181, 74, 0.28), transparent 65%); }

/* ───────── лагерь ───────── */
.screen-camp { align-items: start; background: linear-gradient(180deg, rgba(10, 6, 3, 0.35), rgba(10, 6, 3, 0.7)); }
.camp { width: min(1180px, 100%); display: flex; flex-direction: column; gap: 18px; padding-block: 8px; }
.camp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.purse { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 240px; }
.purse-gold { font-family: var(--font-wood); font-weight: 900; font-size: var(--step-4); color: var(--gold); line-height: 1; letter-spacing: 0.02em; text-shadow: 0 3px 0 #4a2208; font-variant-numeric: tabular-nums; }
.purse-hp { width: 240px; height: 18px; background: rgba(0, 0, 0, 0.45); border-radius: 2px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(234, 216, 179, 0.25); }
.purse-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #d4543a, #8e2c1a); }
.purse-hp span { position: relative; font-family: var(--font-wood); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.08em; padding-left: 8px; line-height: 18px; color: #fff1dc; }
.purse-bounty { font-style: italic; color: var(--text-dim); font-size: var(--step--1); }
.camp-grid { display: grid; grid-template-columns: minmax(280px, 0.85fr) 1.6fr; gap: 20px; align-items: start; }
.shop { width: auto; }
.ledger-list { display: flex; flex-direction: column; }
.ledger-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dotted rgba(43, 29, 18, 0.35); }
.ledger-row.sold { opacity: 0.5; }
.lr-text { display: flex; flex-direction: column; gap: 2px; }
.lr-text b { font-family: var(--font-display); font-size: var(--step-0); }
.lr-text span { font-size: var(--step--1); font-style: italic; color: var(--paper-ink-2); }
.trail { display: flex; flex-direction: column; gap: 14px; }
.targets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.target {
  appearance: none; border: 0; cursor: pointer; font: inherit; text-align: left; position: relative;
  background: var(--paper); background-image: var(--grain); color: var(--paper-ink);
  padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: inset 0 0 40px rgba(120, 70, 25, 0.4), 0 14px 30px rgba(0, 0, 0, 0.45);
  transform: rotate(var(--tilt, -0.6deg)); transition: transform 0.15s, box-shadow 0.15s;
}
.target:nth-child(2) { --tilt: 0.8deg; }
.target:nth-child(3) { --tilt: -0.3deg; }
.target::before { content: ''; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9a9a9a, #3a3a3a); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5); }
.target:hover { transform: rotate(0deg) translateY(-3px); }
.target.sel { box-shadow: inset 0 0 40px rgba(120, 70, 25, 0.4), 0 0 0 3px var(--blood), 0 18px 36px rgba(0, 0, 0, 0.5); transform: rotate(0) translateY(-4px); }
.target-head { display: flex; align-items: center; gap: 8px; }
.target-icon { font-size: var(--step-2); width: 1.6em; height: 1.6em; display: grid; place-items: center; border: 1.5px solid var(--paper-ink); border-radius: 50%; font-family: var(--font-display); }
.target-name { font-family: var(--font-display); font-weight: 900; font-size: var(--step-1); line-height: 1.05; }
.target-place { font-family: var(--font-wood); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--step--1); color: var(--paper-ink-2); }
.target-desc { font-size: var(--step--1); font-style: italic; min-height: 3.2em; }
.target-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; border-top: 1px dotted rgba(43, 29, 18, 0.4); padding-top: 8px; }
.danger { color: var(--blood); letter-spacing: 0.05em; font-size: var(--step-0); }
.estimate { font-family: var(--font-wood); font-weight: 900; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.boss-tag { position: absolute; top: 10px; right: -6px; background: var(--blood); color: #fff1dc; font-family: var(--font-wood); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; padding: 3px 8px; transform: rotate(4deg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--font-wood); font-weight: 700; letter-spacing: 0.06em; font-size: var(--step--1); padding: 3px 8px; border-radius: 2px; background: rgba(43, 29, 18, 0.12); color: var(--paper-ink); }
.perks-have .chip { background: rgba(234, 216, 179, 0.12); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(234, 216, 179, 0.2); }
.perks-have .chip.r-rare { box-shadow: inset 0 0 0 1px #7fb3d9; }
.perks-have .chip.r-legendary { box-shadow: inset 0 0 0 1px #f0b54a; color: var(--gold); }
.perks-have .muted { color: var(--text-dim); font-style: italic; }

/* ───────── плакат «Разыскивается» ───────── */
.screen-gameover { background: radial-gradient(ellipse at 40% 50%, rgba(40, 10, 5, 0.45), rgba(8, 4, 2, 0.88) 70%); }
.wanted-wrap { display: grid; grid-template-columns: auto minmax(0, 420px); gap: clamp(20px, 4vw, 56px); align-items: center; width: min(1000px, 100%); }
.wanted {
  width: min(380px, 86vw);
  background-color: #e6d1a3;
  background-image: var(--grain), radial-gradient(ellipse at 50% 30%, rgba(255, 245, 220, 0.5), transparent 65%);
  color: var(--paper-ink);
  padding: 26px 26px 22px;
  text-align: center;
  box-shadow: inset 0 0 70px rgba(110, 60, 20, 0.6), inset 0 0 8px rgba(70, 40, 10, 0.6), 0 30px 70px rgba(0, 0, 0, 0.7);
  transform: rotate(-2deg);
  clip-path: polygon(0% 1%, 4% 0%, 12% 1%, 20% 0%, 31% 1%, 45% 0%, 58% 1%, 70% 0%, 83% 1%, 94% 0%, 100% 2%, 99% 14%, 100% 28%, 99% 45%, 100% 62%, 99% 78%, 100% 92%, 98% 100%, 86% 99%, 72% 100%, 60% 99%, 44% 100%, 30% 99%, 16% 100%, 4% 99%, 0% 97%, 1% 80%, 0% 64%, 1% 47%, 0% 30%, 1% 15%);
  animation: nail 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
@keyframes nail { from { transform: rotate(-9deg) translateY(-30px) scale(1.05); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
.w-top { font-family: var(--font-wood); font-weight: 900; font-size: clamp(40px, 5.4vw, 60px); letter-spacing: 0.02em; line-height: 0.95; transform: scaleY(1.12); }
.w-sub { font-style: italic; font-size: var(--step-0); border-bottom: 2px solid var(--paper-ink); padding-bottom: 8px; margin-bottom: 10px; }
.w-portrait { position: relative; margin: 0 auto 8px; width: 78%; aspect-ratio: 200 / 170; background: rgba(90, 60, 30, 0.1); box-shadow: inset 0 0 0 2px rgba(43, 29, 18, 0.5); }
.w-portrait svg { width: 100%; height: 100%; display: block; }
.stamp {
  position: absolute; left: 50%; top: 50%;
  font-family: var(--font-wood); font-weight: 900; font-size: clamp(36px, 5vw, 54px); letter-spacing: 0.12em;
  color: rgba(170, 30, 20, 0.88); border: 5px solid rgba(170, 30, 20, 0.88); padding: 2px 14px; border-radius: 4px;
  transform: translate(-50%, -50%) rotate(-16deg);
  mix-blend-mode: multiply;
  animation: stamp 0.35s 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-16deg) scale(2.4); opacity: 0; } to { transform: translate(-50%, -50%) rotate(-16deg) scale(1); opacity: 1; } }
.w-name { font-family: var(--font-display); font-weight: 900; font-size: var(--step-2); margin-top: 6px; }
.w-reward-label { font-family: var(--font-wood); font-weight: 800; letter-spacing: 0.4em; margin-top: 8px; font-size: var(--step-0); }
.w-reward { font-family: var(--font-wood); font-weight: 900; font-size: clamp(40px, 6vw, 64px); line-height: 1; color: var(--blood-2); font-variant-numeric: tabular-nums; }
.w-facts { font-size: var(--step--1); margin-top: 10px; font-style: italic; }
.w-sheriff { font-family: var(--font-wood); letter-spacing: 0.2em; text-transform: uppercase; font-size: 11px; margin-top: 12px; border-top: 1px solid rgba(43, 29, 18, 0.5); padding-top: 8px; }
.go-side { display: flex; flex-direction: column; gap: 14px; }
.fame-gain { font-family: var(--font-wood); font-weight: 900; font-size: var(--step-4); color: var(--gold); display: flex; align-items: baseline; gap: 12px; line-height: 1; }
.fame-gain span { font-family: var(--font-body); font-weight: 400; font-style: italic; font-size: var(--step-0); color: var(--text-dim); }
.record { font-family: var(--font-wood); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* ───────── убежище, рекорды ───────── */
.fame { font-family: var(--font-wood); font-weight: 900; font-size: var(--step-3); color: var(--gold-2); }
.hide-grid, .rec-grid, .help-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.up-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dotted rgba(43, 29, 18, 0.35); }
.up-text { display: flex; flex-direction: column; gap: 3px; }
.up-text b { font-family: var(--font-display); font-size: var(--step-0); }
.up-text > span { font-size: var(--step--1); font-style: italic; color: var(--paper-ink-2); }
.pips { display: flex; gap: 4px; }
.pips i { width: 12px; height: 6px; background: rgba(43, 29, 18, 0.18); border-radius: 1px; }
.pips i.on { background: var(--blood); }
.lvl { font-family: var(--font-wood); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--step--1); color: var(--blood-2); }
.ach-list { display: grid; grid-template-columns: 1fr; gap: 8px; align-content: start; }
.ach { padding: 8px 10px; border-radius: 2px; background: rgba(43, 29, 18, 0.06); display: flex; flex-direction: column; gap: 2px; opacity: 0.55; }
.ach.got { opacity: 1; background: rgba(184, 64, 42, 0.1); box-shadow: inset 3px 0 0 var(--blood); }
.ach b { font-family: var(--font-display); font-size: var(--step-0); }
.ach span { font-size: var(--step--1); font-style: italic; }
.go-side .ach { background: rgba(240, 192, 101, 0.08); color: var(--paper); }
.go-side .ach.got { box-shadow: inset 3px 0 0 var(--gold); }

/* ───────── настройки, справка ───────── */
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px dotted rgba(43, 29, 18, 0.3); font-size: var(--step-0); }
.set-row input[type='range'] { width: 52%; accent-color: var(--blood); pointer-events: auto; }
.set-row input[type='checkbox'] { width: 22px; height: 22px; accent-color: var(--blood); pointer-events: auto; }
.set-val { font-family: var(--font-wood); font-weight: 800; color: var(--blood-2); letter-spacing: 0.04em; }
.settings { max-height: 92vh; overflow-y: auto; pointer-events: auto; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg-b { appearance: none; border: 0; cursor: pointer; font-family: var(--font-wood); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--step--1); padding: 6px 10px; border-radius: 2px; background: rgba(43, 29, 18, 0.1); color: var(--paper-ink); pointer-events: auto; }
.seg-b.on { background: var(--paper-ink); color: var(--paper); }
.rules { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.keys dt { font-family: var(--font-wood); font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; background: var(--paper-ink); color: var(--paper); padding: 1px 8px; border-radius: 2px; justify-self: start; }
.keys dd { margin: 0; font-style: italic; }

/* ───────── HUD ───────── */
.hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--font-wood); color: var(--paper); }
.hud[hidden] { display: none; }
.hud-tl { position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: 22px; display: flex; flex-direction: column; gap: 8px; width: min(300px, 40vw); }
.hbar { display: grid; grid-template-columns: 5.6em 1fr 2.4em; align-items: center; gap: 8px; }
.hbar-label { font-weight: 800; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); text-shadow: 0 1px 2px #000; }
.hbar-track { position: relative; height: 12px; background: rgba(12, 7, 4, 0.6); box-shadow: inset 0 0 0 1px rgba(234, 216, 179, 0.25), 0 2px 8px rgba(0, 0, 0, 0.4); border-radius: 1px; overflow: hidden; }
.hbar-track i { position: absolute; inset: 0; transform-origin: left center; }
.hp .fill { background: linear-gradient(180deg, #e0603f, #9c2f1b); z-index: 2; }
.hp .ghost { background: #f4d7b0; opacity: 0.7; z-index: 1; }
.st .hbar-track { height: 7px; }
.st .fill { background: linear-gradient(180deg, #d9c293, #a88a58); }
.hbar-num { font-weight: 900; font-size: 18px; text-shadow: 0 2px 3px #000; font-variant-numeric: tabular-nums; }
.hud.low .hp .fill { animation: pulse 0.7s ease-in-out infinite; }
@keyframes pulse { 50% { filter: brightness(1.6); } }

.hud-top { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(520px, 70vw); }
.heat { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; width: 100%; opacity: 0.45; transition: opacity 0.3s; }
.heat.on { opacity: 1; }
.heat-label { font-weight: 800; font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; text-shadow: 0 1px 2px #000; }
.heat-track { position: relative; height: 8px; background: rgba(12, 7, 4, 0.6); box-shadow: inset 0 0 0 1px rgba(234, 216, 179, 0.25); }
.heat-track .fill { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, #c98f2e, #e0452c); }
.heat-star { position: absolute; top: 50%; transform: translate(-50%, -50%); color: var(--gold); font-size: 22px; text-shadow: 0 0 10px rgba(240, 192, 101, 0.8), 0 2px 2px #000; line-height: 1; }
.heat.posse .heat-track .fill { background: #e0452c; animation: pulse 0.6s infinite; }
.heat.posse .heat-label { color: #ff7a5a; }
.objective { font-family: var(--font-body); font-style: italic; font-size: var(--step-0); text-align: center; color: var(--paper); text-shadow: 0 1px 2px #000, 0 0 14px rgba(0, 0, 0, 0.7); }

.hud-tr { position: absolute; right: max(18px, env(safe-area-inset-right)); top: max(14px, env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.loot { display: flex; flex-direction: column; align-items: flex-end; }
.loot-num { font-weight: 900; font-size: clamp(30px, 3.4vw, 46px); color: var(--gold); line-height: 1; text-shadow: 0 3px 0 #4a2208, 0 6px 18px rgba(0, 0, 0, 0.6); font-variant-numeric: tabular-nums; }
.loot-label { font-weight: 700; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-dim); text-shadow: 0 1px 2px #000; }
.loot.bump .loot-num { animation: bump 0.3s ease-out; }
@keyframes bump { 30% { transform: scale(1.14); color: #fff2c0; } }
.wagons-count { font-weight: 800; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 1px 2px #000; margin-top: 6px; }

.hud-bc { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 18px; }
.cylinder { position: relative; width: 92px; height: 92px; }
.cylinder svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)); }
.cyl-body { fill: #2b2b2e; stroke: #6f6a60; stroke-width: 2; }
.cyl-ch { transition: transform 0.12s cubic-bezier(0.3, 1.5, 0.5, 1); }
.ch { fill: #121212; stroke: #4a4640; stroke-width: 1.2; }
.ch.full { fill: #c99a3e; stroke: #f0d08a; }
.cyl-hub { fill: #55524c; }
.cyl-reload { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); }
.ammo-num { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); font-weight: 900; font-size: 15px; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
.hud.reloading .cylinder svg { animation: spin 0.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.key { position: absolute; font-weight: 900; font-size: 11px; background: rgba(234, 216, 179, 0.9); color: var(--ink); padding: 0 5px; border-radius: 2px; bottom: -6px; right: -4px; }
.focus, .dash, .tnt { position: relative; width: 50px; height: 50px; margin-bottom: 20px; }
.focus svg, .dash svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.f-bg, .d-bg { fill: rgba(12, 7, 4, 0.6); stroke: rgba(234, 216, 179, 0.25); stroke-width: 1.5; }
.f-fill, .d-fill { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 100; transform: rotate(-90deg); transform-origin: 20px 20px; }
.d-fill { stroke: var(--sage); }
.f-eye { fill: none; stroke: var(--paper); stroke-width: 1.6; opacity: 0.6; }
.f-pupil { fill: var(--paper); opacity: 0.6; }
.focus.ready .f-eye, .focus.ready .f-pupil { opacity: 1; stroke: var(--gold); fill: var(--gold); }
.focus.ready .f-eye { fill: none; }
.focus.ready { animation: glowp 1.2s ease-in-out infinite; }
@keyframes glowp { 50% { filter: drop-shadow(0 0 10px rgba(240, 192, 101, 0.9)); } }
.focus.active svg { transform: scale(1.15); }
.d-icon { fill: var(--paper); opacity: 0.4; }
.dash.ready .d-icon { opacity: 1; }
.tnt { width: auto; min-width: 50px; display: flex; align-items: center; }
.tnt-sticks { display: flex; gap: 3px; align-items: flex-end; height: 44px; padding: 0 4px; }
.tnt-sticks i { width: 9px; height: 34px; background: linear-gradient(90deg, #8e2419, #d0452e 40%, #8e2419); border-radius: 2px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); position: relative; }
.tnt-sticks i::after { content: ''; position: absolute; left: 3px; top: -7px; width: 2px; height: 8px; background: #d8c8a0; transform: rotate(18deg); }
.tnt-sticks b { font-size: 14px; }
.tnt.empty { opacity: 0.35; }

.minimap { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: 16px; width: 180px; height: 180px; border-radius: 50%; box-shadow: 0 0 0 3px #3a281a, 0 0 0 5px rgba(234, 216, 179, 0.35), 0 10px 24px rgba(0, 0, 0, 0.55); }

.loot-ring { position: absolute; left: 0; top: 0; width: 70px; height: 70px; display: grid; place-items: center; }
.loot-ring[hidden] { display: none; }
.loot-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lr-bg { fill: rgba(12, 7, 4, 0.5); stroke: rgba(234, 216, 179, 0.3); stroke-width: 3; }
.lr-fill { fill: none; stroke: var(--gold); stroke-width: 5; stroke-dasharray: 100; transform: rotate(-90deg); transform-origin: 30px 30px; filter: drop-shadow(0 0 6px rgba(240, 192, 101, 0.8)); }
.loot-ring.escape .lr-fill { stroke: #ff6a4a; }
.loot-ring span { position: relative; top: 46px; font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 1px 2px #000; white-space: nowrap; }

/* маркеры */
.marker { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; transform-origin: 0 0; }
.marker i { width: 12px; height: 12px; margin-left: -6px; margin-top: -6px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 2px rgba(20, 10, 5, 0.7), 0 0 12px rgba(240, 192, 101, 0.8); }
.marker span { margin-left: -50%; font-family: var(--font-wood); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); text-shadow: 0 1px 2px #000, 0 0 8px #000; white-space: nowrap; transform: translateX(-50%); position: relative; left: 0; }
.marker.m-wagon.ready i { background: #ffe07a; animation: pulse 0.6s infinite; }
.marker.m-wagon.locked i { background: #e0452c; }
.marker.m-wagon.stopped i { background: #d9c7a0; }
.marker.m-wagon.moving i { background: var(--gold); }
.marker.m-exit i { background: #ff5a3a; border-radius: 50%; transform: none; box-shadow: 0 0 0 2px rgba(20, 10, 5, 0.7), 0 0 16px rgba(255, 90, 58, 0.9); }
.marker.edge i { transform: rotate(var(--ang)) translateX(0); clip-path: polygon(0 0, 100% 50%, 0 100%); width: 16px; height: 16px; border-radius: 0; margin-left: -8px; margin-top: -8px; }
.marker.edge span { font-size: 11px; opacity: 0.85; }

/* прицел в центре экрана: четыре штриха расходятся вместе с разбросом */
.crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; --gap: 8px; --len: 9px; --xh: rgba(255, 246, 228, 0.92); }
.crosshair[hidden] { display: none; }
.crosshair .xl { position: absolute; left: 0; top: 0; background: var(--xh); box-shadow: 0 0 0 1px rgba(10, 5, 2, 0.55); border-radius: 1px; transition: opacity 0.12s; }
.crosshair .xl.l, .crosshair .xl.r { width: var(--len); height: 2px; margin-top: -1px; }
.crosshair .xl.t, .crosshair .xl.b { width: 2px; height: var(--len); margin-left: -1px; }
.crosshair .xl.l { transform: translateX(calc(-1 * var(--gap) - var(--len))); }
.crosshair .xl.r { transform: translateX(var(--gap)); }
.crosshair .xl.t { transform: translateY(calc(-1 * var(--gap) - var(--len))); }
.crosshair .xl.b { transform: translateY(var(--gap)); }
.crosshair .xdot { position: absolute; left: -1.5px; top: -1.5px; width: 3px; height: 3px; border-radius: 50%; background: #ffdc8a; box-shadow: 0 0 0 1px rgba(10, 5, 2, 0.6); }
.crosshair.ads .xl { opacity: 0; }
.crosshair.shotgun .xl.t, .crosshair.shotgun .xl.b { opacity: 0.35; }
.crosshair.empty { --xh: #e0452c; }
.crosshair .xring { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; overflow: visible; }
.xh-reload { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 17px 17px; filter: drop-shadow(0 0 2px #000); }
/* маркер попадания */
.hitm { position: absolute; left: 0; top: 0; opacity: 0; }
.hitm i { position: absolute; left: -1px; top: -1px; width: 2px; height: 9px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); transform-origin: 1px 1px; }
.hitm i:nth-child(1) { transform: rotate(45deg) translateY(6px); }
.hitm i:nth-child(2) { transform: rotate(135deg) translateY(6px); }
.hitm i:nth-child(3) { transform: rotate(225deg) translateY(6px); }
.hitm i:nth-child(4) { transform: rotate(315deg) translateY(6px); }
.hitm.on { opacity: 1; }
.hitm.kill i { background: #ff5a3a; height: 12px; }
.hitm.head i { background: #ffd35a; height: 12px; }
/* индикаторы урона: дуги вокруг прицела указывают на стрелка */
.dmgind { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.dmgind i { position: absolute; left: -70px; top: -150px; width: 140px; height: 42px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; border-top: 5px solid rgba(230, 50, 25, 0.95); transform-origin: 70px 150px; filter: drop-shadow(0 0 6px rgba(255, 40, 10, 0.8)); opacity: 0; }
/* подсказка «кликните, чтобы взять поводья» */
.lockhint { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); padding: 10px 18px; background: rgba(20, 12, 7, 0.8); box-shadow: inset 0 0 0 1px rgba(240, 192, 101, 0.45); font-family: var(--font-wood); font-weight: 800; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); pointer-events: none; animation: pulse 1.2s infinite; }
.lockhint[hidden] { display: none; }

/* цифры урона */
.dmgnum { position: absolute; left: 0; top: 0; font-family: var(--font-wood); font-weight: 900; font-size: 22px; color: #fff4dc; text-shadow: 0 2px 0 #3a1a0a, 0 0 8px rgba(0, 0, 0, 0.6); pointer-events: none; white-space: nowrap; will-change: transform, opacity; }
.dmgnum.crit { color: #ffd35a; font-size: 30px; }
.dmgnum.boom { color: #ff8a5a; font-size: 26px; }
.dmgnum.head { color: #ffe27a; font-size: 32px; }
.dmgnum.dim { color: #d8c8a8; font-size: 17px; opacity: 0.85; }

/* баннер и тосты */
.banner { position: absolute; left: 50%; top: 28%; transform: translate(-50%, -50%) scale(0.9); text-align: center; opacity: 0; transition: opacity 0.25s, transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1); pointer-events: none; width: min(92vw, 900px); }
.banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.b-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 6vw, 76px); color: var(--paper); letter-spacing: 0.04em; line-height: 1; text-shadow: 0 4px 0 rgba(40, 15, 5, 0.8), 0 12px 40px rgba(0, 0, 0, 0.7); }
.b-sub { font-family: var(--font-body); font-style: italic; font-size: var(--step-1); color: var(--text-dim); margin-top: 8px; text-shadow: 0 1px 3px #000; }
.banner.red .b-title { color: #ff7a5a; }
.banner.gold .b-title { color: var(--gold); }
.banner.intro .b-title { font-size: clamp(40px, 7vw, 96px); }
.banner.intro { top: 40%; }
.toast { position: absolute; left: 50%; bottom: 150px; transform: translate(-50%, 10px); opacity: 0; transition: opacity 0.25s, transform 0.25s; background: rgba(20, 12, 7, 0.78); box-shadow: inset 0 0 0 1px rgba(240, 192, 101, 0.3); padding: 8px 16px; font-family: var(--font-body); font-style: italic; font-size: var(--step-0); color: var(--paper); border-radius: 2px; max-width: min(92vw, 640px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.letterbox .lb { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.letterbox .top { top: 0; }
.letterbox .bottom { bottom: 0; }
.letterbox.on .lb { height: 9vh; }
.fade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.6s; }
.fps { position: absolute; left: 8px; top: 8px; font-family: var(--font-wood); font-size: 12px; color: var(--text-dim); }
.fps[hidden] { display: none; }

/* сенсорные кнопки */
.touch { position: absolute; right: 14px; bottom: 210px; display: grid; grid-template-columns: repeat(2, 64px); gap: 10px; pointer-events: none; }
.touch[hidden] { display: none; }
.tbtn { pointer-events: auto; width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(20, 12, 7, 0.55); color: var(--paper); font-family: var(--font-wood); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: inset 0 0 0 1.5px rgba(234, 216, 179, 0.35); }
.tbtn:active { background: rgba(184, 64, 42, 0.6); }
.t-pause { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; }
.t-fire { position: fixed; right: 26px; bottom: 96px; width: 92px; height: 92px; font-size: 16px; background: rgba(120, 30, 16, 0.6); }
.t-aim { position: fixed; right: 132px; bottom: 60px; }
.t-view { width: 48px; height: 48px; font-size: 11px; }

/* ───────── адаптив ───────── */
@media (max-width: 900px) {
  .title-wrap { grid-template-columns: 1fr; align-content: center; }
  .logo { text-align: left; }
  .camp-grid { grid-template-columns: 1fr; }
  .targets { grid-template-columns: 1fr; }
  .hide-grid, .rec-grid, .help-grid { grid-template-columns: 1fr; }
  .wanted-wrap { grid-template-columns: 1fr; justify-items: center; }
  .pgrid { grid-template-columns: 1fr; max-width: 360px; }
  .pcard { aspect-ratio: auto; min-height: 200px; }
  .purse { align-items: flex-start; }
}
@media (max-width: 700px) {
  .minimap { width: 120px; height: 120px; bottom: 12px; }
  .hud-tl { bottom: auto; top: max(12px, env(safe-area-inset-top)); width: 46vw; }
  .hud-top { top: auto; bottom: 150px; width: 88vw; }
  .hud-bc { gap: 10px; transform: translateX(-50%) scale(0.82); transform-origin: bottom center; }
  .hud-tr { top: auto; bottom: 140px; }
  .loot-num { font-size: 28px; }
  .objective { font-size: 13px; }
  .hbar { grid-template-columns: 4.4em 1fr 2em; }
  .hbar-label { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .wanted, .stamp { animation: none; }
  .screen > * { transform: none; transition: none; }
  .hud.reloading .cylinder svg { animation: none; }
}

/* шкала босса — «Золотой экспресс» */
.bossbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: min(560px, 82vw); margin: 10px auto 0; pointer-events: none; }
.bossbar[hidden] { display: none; }
.bb-name { font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: 0.06em; color: var(--gold); text-shadow: 0 2px 0 rgba(40, 15, 5, 0.8), 0 0 12px rgba(0, 0, 0, 0.6); white-space: nowrap; }
.bb-track { height: 12px; background: rgba(12, 7, 4, 0.6); box-shadow: inset 0 0 0 1.5px rgba(240, 192, 101, 0.55), 0 4px 12px rgba(0, 0, 0, 0.45); border-radius: 2px; overflow: hidden; }
.bb-track .fill { display: block; height: 100%; background: linear-gradient(90deg, #7d2414, #e0452c 60%, #ffb060); transform-origin: left center; transition: transform 0.25s; }
.bb-sub { font-family: var(--font-body); font-style: italic; font-size: 13px; color: var(--text-dim); text-shadow: 0 1px 2px #000; white-space: nowrap; }
.bossbar.down .bb-track .fill { background: linear-gradient(90deg, #3a3a3a, #6a6a6a); }
.bossbar.down .bb-name { color: #d9c7a0; }
