/* ============================================================
   МафШина × GTA — стили.
   Графика сцен — CSS-плейсхолдеры до готовых артов.
   ============================================================ */

:root {
  --ink: #0b0d10;
  --paper: #f5f6f7;
  --orange: #F2A25A;
  --gta-gold: #e9b44c;
  --gta-green: #3f8f47;
  --gta-money: #3c7a37;
  --gta-blue: #a9c3dd;
  --menu-bg: rgba(8, 10, 14, .86);
  --line: rgba(255, 255, 255, .14);
  --skin: #e0b08a;
  --font-display: 'Russo One', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --outline: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 3px 0 #000;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0 .35em; border-radius: 4px;
  background: #fff; color: #000; font: 700 .85em var(--font-body); text-align: center;
}

.game {
  position: fixed; inset: 0;
  background: linear-gradient(to bottom, var(--tone, #333) 0 50%, #15171a 50%);
  transition: background .4s;
}

/* ============================================================
   Мир
   ============================================================ */
.stage { position: absolute; left: 0; right: 0; overflow: hidden; }
.world {
  position: absolute; left: 0; top: 0; height: 600px;
  transform-origin: 0 0; will-change: transform;
}
.world .o, .par { position: absolute; }
.par { inset: 0; }

.bg { position: absolute; inset: 0; }
.bg--sunset {
  background: linear-gradient(to bottom, #3d6f8e 0%, #7fa8b5 30%, #efb27a 62%, #f08a4b 80%);
}
.bg--sunset-soft { filter: saturate(.85) brightness(1.05); }
.bg--corrugated {
  background:
    repeating-linear-gradient(90deg, #9aa2a8 0 10px, #b9c0c5 10px 18px, #8e969c 18px 22px),
    #a3aab0;
  box-shadow: inset 0 -80px 120px rgba(0, 0, 0, .25);
}
.bg--shop { background: linear-gradient(#e7ebee, #cfd6db); }
.bg--office { background: linear-gradient(#f3ead8, #e2d5bb); }

.ceiling {
  position: absolute; left: 0; right: 0; top: 0; height: 60px;
  background: repeating-linear-gradient(90deg, #d6dade 0 26px, #b8bec3 26px 30px);
  border-bottom: 4px solid #6e767c;
}
.ceiling--tiles {
  background:
    linear-gradient(90deg, transparent 0 96%, #bfc6cb 96%) 0 0 / 80px 30px,
    linear-gradient(transparent 0 90%, #bfc6cb 90%) 0 0 / 80px 30px,
    #eef1f3;
  border-bottom: 3px solid #c5ccd1;
}

.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; }
.floor--asphalt { background: linear-gradient(#8f9297, #6d7075); }
.floor--concrete { background: linear-gradient(#9aa0a4, #72787c); }
.floor--yard { background: linear-gradient(#b4b8b9, #8b9092); }
.floor--tiles {
  background:
    linear-gradient(90deg, transparent 0 97%, rgba(0,0,0,.18) 97%) 0 0 / 90px 100%,
    linear-gradient(#b7bcbf, #9aa0a4);
}
.floor--beige {
  background:
    linear-gradient(90deg, transparent 0 97%, rgba(0,0,0,.12) 97%) 0 0 / 110px 100%,
    linear-gradient(#d8c9a8, #bfae8a);
}
.floor-marks {
  position: absolute; left: 0; right: 0; bottom: 56px; height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 70px, transparent 70px 170px);
}

/* ---------- Улица ---------- */
.hills {
  position: absolute; left: -200px; right: -400px; bottom: 120px; height: 180px;
  background: radial-gradient(ellipse 50% 100% at 30% 100%, #5f7d63 0 60%, transparent 61%),
              radial-gradient(ellipse 40% 90% at 75% 100%, #6a8a6a 0 60%, transparent 61%);
}
.far-tree { border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 40% 35%, #6d9a5a, #3f6a3a 70%); }
.thuja {
  border-radius: 50% 50% 18% 18% / 70% 70% 18% 18%;
  background: linear-gradient(90deg, #2f5a2c, #4e8a45 50%, #2f5a2c);
  border: 3px solid #14240f;
}
.wire { border-top: 2px solid #222; border-radius: 50% 50% 0 0 / 30px 30px 0 0; opacity: .7; }
.pole { background: linear-gradient(90deg, #6d6a64, #9a968d, #6d6a64); border: 2px solid #222; }
.flag {
  background: linear-gradient(#f4c542, #e98d2b);
  border: 3px solid #111; border-radius: 30px 4px 4px 4px;
  display: grid; place-items: center;
}
.flag span { writing-mode: vertical-rl; font: 20px var(--font-display); color: #111; letter-spacing: 2px; }
.house { background: #d9cfb4; border: 3px solid #111; }
.house__roof {
  position: absolute; left: -20px; right: -20px; top: -90px; height: 90px;
  background: #b8452f; border: 3px solid #111; clip-path: polygon(8% 100%, 50% 0, 92% 100%);
}
.house__win { position: absolute; left: 60px; top: 60px; width: 70px; height: 80px; background: #5d7f95; border: 3px solid #111; }
.house__win--2 { left: 250px; }
.fence { background: repeating-linear-gradient(90deg, #2e3740 0 26px, #3a4550 26px 30px); border: 2px solid #111; }
.fence--metal { background: repeating-linear-gradient(90deg, #a6aeb3 0 22px, #c3c9cd 22px 28px); }

.bld { background: linear-gradient(#b6bbbf, #9ea4a8); border: 4px solid #111; }
.bld__canopy { background: linear-gradient(#3b3530, #2a2521); border: 3px solid #111; }
.bld__board {
  display: flex; justify-content: space-around; align-items: center;
  background: linear-gradient(90deg, #c63b2f 0 3%, #2d6a3c 3% 97%, #c63b2f 97%);
  border: 3px solid #111;
}
.bld__board span { font: 22px var(--font-display); color: #f3d23d; text-shadow: 2px 2px 0 #111; }
.bld__letters {
  font: 42px/50px var(--font-display); color: #d83a2c; text-align: center; letter-spacing: 6px;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 #111;
}
.shopwin {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px;
  background: linear-gradient(135deg, #6f8fa3, #3f5667); border: 4px solid #eee; outline: 3px solid #111;
}
.shopwin i { border-radius: 50%; border: 6px solid #c7cdd1; background: radial-gradient(circle, #555 0 25%, #9aa1a6 26% 60%, #333 61%); }
.glassdoor {
  background: linear-gradient(135deg, #7f9cad, #4b6475);
  border: 6px solid #eef0f1; outline: 3px solid #111;
}
.glassdoor::after {
  content: ''; position: absolute; right: 12px; top: 45%; width: 8px; height: 46px; background: #eee; border: 2px solid #111;
}
.door-plain span {
  position: absolute; left: 50%; top: 22px; transform: translateX(-50%);
  font: 11px var(--font-display); background: #1b2e57; color: #fff; padding: 3px 6px; white-space: nowrap;
  border: 2px solid #111;
}
.glassdoor--office span {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
  font: 11px var(--font-display); background: #1b2e57; color: #fff; padding: 3px 6px; white-space: nowrap;
}
.gate { background: #22262a; border: 5px solid #e7e9ea; outline: 3px solid #111; overflow: hidden; }
.gate__light { position: absolute; left: 32%; right: 32%; top: 18%; bottom: 0; background: linear-gradient(#cfe3b5, #87a86b); opacity: .8; }
.gate__machine { position: absolute; left: 20px; bottom: 0; width: 60px; height: 110px; background: #c73a2f; border: 3px solid #111; }
.gate__machine--2 { left: auto; right: 20px; height: 80px; }
.plaque { background: #1b1b1b; color: #f3d23d; font: 13px/34px var(--font-display); text-align: center; border: 2px solid #111; }
.chair-blue {
  background: #2d5fc9; border: 3px solid #0e1d45; border-radius: 6px 6px 2px 2px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 80% 100%, 80% 55%, 20% 55%, 20% 100%, 0 100%);
}

.car { transition: transform 1.6s cubic-bezier(.2, .7, .3, 1); }
.car.is-arriving { transform: translateX(-900px); transition: none; animation: arrive 1.6s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes arrive { from { transform: translateX(-900px); } to { transform: translateX(0); } }
.car__body {
  position: absolute; left: 0; right: 0; bottom: 20px; height: 56px;
  background: linear-gradient(#e8e9ea, #b9bcbf); border: 4px solid #111; border-radius: 18px 26px 10px 10px;
}
.car__cab {
  position: absolute; left: 50px; right: 40px; bottom: 70px; height: 46px;
  background: linear-gradient(#3a4a57, #22303b); border: 4px solid #111; border-radius: 22px 30px 0 0;
}
.car__wheel {
  position: absolute; left: 36px; bottom: 0; width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle, #cfd3d6 0 30%, #222 32%); border: 4px solid #111;
}
.car__wheel--2 { left: auto; right: 36px; }

/* ---------- Ремзона ---------- */
.opening { overflow: hidden; border: 6px solid #d9dcde; outline: 3px solid #111; }
.opening--street { background: linear-gradient(#f3c38e 0 55%, #8d9196 55%); }
.opening--yard { background: linear-gradient(#b7d49a 0 55%, #a7abad 55%); }
.opening--window { background: linear-gradient(#cfe0ea 0 60%, #a9b0b4 60%); border-color: #f4f5f6; }
.opening__store {
  position: absolute; left: 10px; right: -30px; top: 30%; height: 26%;
  background: linear-gradient(#e24a3b 0 18%, #fff 18% 60%, #2f9a4c 60%);
}
.opening__green { position: absolute; inset: 15% -20px 45% -20px; background: radial-gradient(circle at 30% 60%, #3f7a37 0 30%, transparent 31%), radial-gradient(circle at 70% 50%, #4d8a41 0 35%, transparent 36%); }
.pegboard {
  background: radial-gradient(circle, #5d6166 1.5px, transparent 2px) 0 0 / 12px 12px, #d0d3d5;
  border: 3px solid #111;
}
.pegboard::after {
  content: ''; position: absolute; inset: 14px 16px; background:
    linear-gradient(90deg, #e86c2c 0 18%, transparent 18% 26%, #e86c2c 26% 44%, transparent 44% 52%, #e86c2c 52% 70%, transparent 70%) 0 0 / 100% 22px;
  opacity: .9;
}
.machine { background: #c9382d; border: 4px solid #111; border-radius: 4px; }
.machine--changer i { position: absolute; left: -12px; right: -12px; top: 70px; height: 16px; background: #2a2a2a; border: 3px solid #111; }
.machine--changer b { position: absolute; right: 12px; top: -80px; width: 22px; height: 90px; background: #2a2a2a; border: 3px solid #111; }
.machine--balancer i { position: absolute; left: -46px; top: 18px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, #aaa 0 22%, #1e1e1e 24%); border: 3px solid #111; }
.machine--balancer b { position: absolute; left: 20px; top: -50px; width: 90px; height: 50px; background: #1e1e1e; border: 3px solid #111; border-radius: 40px 40px 0 0; }
.jack { background: #2c5bc6; border: 3px solid #111; border-radius: 6px; }
.jack::after { content: ''; position: absolute; left: -60px; top: 6px; width: 64px; height: 6px; background: #111; transform: rotate(-20deg); transform-origin: right; }
.hose { border: 5px solid #e2542f; border-radius: 50%; }
.poster--price {
  background: #f3f3f0; border: 4px solid #111; padding: 22px 12px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.poster--price b { position: absolute; left: 0; right: 0; top: 0; background: #d83a2c; color: #fff; font: 13px/20px var(--font-display); text-align: center; }
.poster--price i { display: block; height: 10px; background: repeating-linear-gradient(90deg, #666 0 12px, transparent 12px 18px); opacity: .6; }
.clock { border-radius: 50%; background: #eee; border: 3px solid #111; }
.washsign {
  display: flex; justify-content: space-around; align-items: center;
  background: #2b2b2b; border: 3px solid #111;
  border-left: 30px solid; border-right: 30px solid;
  border-image: repeating-linear-gradient(45deg, #d83a2c 0 8px, #fff 8px 16px) 30;
}
.washsign span { font: 20px var(--font-display); color: #f3d23d; }
.bump { background: linear-gradient(#c7ccd0, #b2b8bc); border: 4px solid #111; box-shadow: -10px 0 0 rgba(0,0,0,.18); }
.blinds { background: repeating-linear-gradient(#e8e8e4 0 7px, #bdbdb6 7px 9px); border: 4px solid #eee; outline: 3px solid #111; }
.door-plain { background: linear-gradient(90deg, #7f878c, #9aa1a5); border: 4px solid #111; }
.door-plain::after { content: ''; position: absolute; right: 8px; top: 48%; width: 16px; height: 6px; background: #222; }
.armchair { background: radial-gradient(circle at 30% 30%, #7a4b35 0 20%, #4a2a1d 60%); border: 3px solid #111; border-radius: 30px 30px 8px 8px; }
.barrel { background: linear-gradient(90deg, #1b4f97, #3b7bd0 50%, #1b4f97); border: 3px solid #111; border-radius: 10px; }
.grate { background: repeating-linear-gradient(90deg, #2b2f33 0 4px, #6f767b 4px 8px); border: 2px solid #111; }
.fg { z-index: 5; filter: brightness(.25) saturate(.3); opacity: .92; border-radius: 6px 6px 0 0; }
.fg--changer { background: #c9382d; }
.fg--balancer { background: #c9382d; border-radius: 80px 80px 0 0; }

/* ---------- Магазин ---------- */
.rack { border-left: 8px solid #c3342a; border-right: 8px solid #c3342a; }
.rack__row {
  border-bottom: 8px solid #c3342a;
  background: repeating-linear-gradient(90deg, #1d1f21 0 26px, #3a3d40 26px 30px, #1d1f21 30px 34px);
  border-radius: 6px;
  box-shadow: inset 0 6px 0 rgba(255,255,255,.05);
}
.rack__row::after {
  content: ''; position: absolute; left: 6px; right: 6px; top: 34px; height: 12px;
  background: repeating-linear-gradient(90deg, #f3d23d 0 12px, transparent 12px 34px);
  opacity: .9;
}
.rimstand { border-left: 6px solid #c3342a; border-right: 6px solid #c3342a; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 10px; }
.rimstand i { border-radius: 50%; background: radial-gradient(circle, #555 0 18%, #d4d8db 20% 55%, #7a8185 57% 68%, #222 70%); border: 2px solid #111; }
.banner { background: linear-gradient(#1f2226, #3a3f45); border: 3px solid #111; display: grid; place-items: start center; padding-top: 16px; }
.banner b { font: 14px var(--font-display); color: #fff; background: #d83a2c; padding: 2px 6px; transform: rotate(-4deg); }
.box { background: #d6ab6e; border: 3px solid #111; color: #3a2b17; font: 12px/60px var(--font-display); text-align: center; }
.tirestack { border-left: 6px solid #c3342a; border-right: 6px solid #c3342a; }
.tire { background: linear-gradient(#141516, #2e3134 50%, #141516); border: 2px solid #000; border-radius: 8px; }
.poster--wide { background: linear-gradient(90deg, #2f5b3a, #88b4c6); border: 4px solid #fff; outline: 2px solid #111; }
.wicker {
  background: repeating-linear-gradient(45deg, #8d8a82 0 6px, #6a675f 6px 12px);
  border: 3px solid #111; border-radius: 12px 12px 4px 4px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 85% 100%, 85% 60%, 15% 60%, 15% 100%, 0 100%);
}

/* ---------- Приёмка ---------- */
.poster--moto { background: linear-gradient(120deg, #8ab2cf 0 40%, #5a7a4c 40% 70%, #7a6a5a 70%); border: 4px solid #fff; outline: 2px solid #111; }
.note { background: #f6e36b; border: 2px solid #111; transform: rotate(4deg); }
.gamechair {
  background: linear-gradient(90deg, #1b1b1b 0 20%, #e8792e 20% 30%, #1b1b1b 30% 70%, #e8792e 70% 80%, #1b1b1b 80%);
  border: 4px solid #111; border-radius: 30px 30px 6px 6px;
}
.desk { z-index: 3; background: linear-gradient(#c9b89a, #a8977a); border: 4px solid #111; }
.desk__papers { position: absolute; right: 30px; top: -10px; width: 90px; height: 10px; background: #fff; border: 2px solid #111; }
.desk__monitor { position: absolute; left: 16px; top: -70px; width: 90px; height: 64px; background: #1a1d20; border: 4px solid #111; }
.boxes { background: #d6ab6e; border: 3px solid #111; box-shadow: inset 0 -40px 0 #c79a5e; }
.visitor-chair {
  transform: scaleX(-1);
  background: #3a3f45; border: 3px solid #111; border-radius: 6px;
  clip-path: polygon(70% 0, 100% 0, 100% 100%, 88% 100%, 88% 60%, 12% 60%, 12% 100%, 0 100%, 0 45%, 70% 45%);
}

/* ---------- Двор ---------- */
.backwall { background: linear-gradient(#a2a6a3, #8c918e); border: 4px solid #111; }
.backwall__tunnel { position: absolute; left: 30px; right: 20px; top: 50px; bottom: 0; background: #1d2023; border: 4px solid #d9dcde; }
.canopy { background: linear-gradient(#e2e5e7, #c3c8cb); border: 3px solid #111; }
.canopy__post { background: #3a3530; border: 2px solid #111; }
.sofa { background: radial-gradient(circle at 30% 30%, #8b5a45 0 20%, #5b3a2c 60%); border: 3px solid #111; border-radius: 16px 16px 6px 6px; }
.barrow { background: #9aa1a6; border: 3px solid #111; clip-path: polygon(0 0, 100% 0, 80% 70%, 20% 70%); }
.bin { background: #2346a8; border: 3px solid #111; border-radius: 4px; }
.wheelrack { border-left: 5px solid #333; border-right: 5px solid #333; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
.wheelrack i { border-radius: 50%; background: radial-gradient(circle, #666 0 18%, #cfd3d6 20% 60%, #333 62%); border: 2px solid #111; }
.hangar {
  background: repeating-linear-gradient(90deg, #bfc6ca 0 16px, #d9dee1 16px 22px);
  border: 4px solid #111;
}
.hangar__roof {
  position: absolute; left: -10px; right: -10px; top: -60px; height: 60px;
  background: #9ea6ab; border: 4px solid #111; clip-path: polygon(0 100%, 12% 0, 88% 0, 100% 100%);
}
.door-plain--hangar { z-index: 1; background: linear-gradient(90deg, #e9ecee, #cfd4d7); }
.woodshed { background: #3a2a1e; border: 3px solid #111; }
.woodshed i { position: absolute; inset: 20px 10px 0; background: radial-gradient(circle, #c89a63 0 6px, #7a5433 7px 9px, transparent 10px) 0 0 / 22px 20px; }

/* ---------- Буян ---------- */
.hitch i { position: absolute; left: 0; right: 0; height: 12px; background: #7a5433; border: 3px solid #111; }
.hitch i:first-child { top: 10px; }
.hitch i:last-child { top: 44px; }
.hitch::before, .hitch::after { content: ''; position: absolute; bottom: 0; top: 0; width: 16px; background: #5e3f25; border: 3px solid #111; }
.hitch::before { left: 0; }
.hitch::after { right: 0; }
.plate { background: #f1e2b8; border: 3px solid #111; font: 14px/20px var(--font-display); color: #5a3417; text-align: center; transform: rotate(-3deg); }
.horse { z-index: 2; --coat: #7a4526; --dark: #3b2010; }
.horse i, .horse span { position: absolute; display: block; }
.horse i { border: 3px solid #111; }
.horse__body { left: 50px; bottom: 88px; width: 170px; height: 78px; background: radial-gradient(ellipse at 40% 35%, #94592f, var(--coat) 70%); border-radius: 44px 50px 40px 40px; }
.horse__leg { bottom: 0; width: 18px; height: 104px; background: var(--coat); border-radius: 6px; border-bottom: 12px solid #1e1510 !important; }
.horse__leg--1 { left: 76px; filter: brightness(.75); }
.horse__leg--2 { left: 178px; filter: brightness(.75); }
.horse__leg--3 { left: 58px; }
.horse__leg--4 { left: 196px; }
.horse__tail { left: 206px; bottom: 80px; width: 22px; height: 96px; background: var(--dark); border-radius: 10px 10px 16px 16px; transform-origin: 50% 0; transform: rotate(-18deg); animation: tail 2.4s ease-in-out infinite; }
.horse__head { left: 0; bottom: 130px; width: 120px; height: 120px; transform-origin: 90px 60px; animation: graze 5s ease-in-out infinite; }
.horse__neck { left: 44px; top: 18px; width: 52px; height: 92px; background: var(--coat); border-radius: 26px 26px 12px 12px; transform: rotate(-28deg); }
.horse__mane { left: 76px; top: 12px; width: 18px; height: 84px; background: var(--dark); border-radius: 10px; transform: rotate(-28deg); }
.horse__ear { left: 56px; top: -6px; width: 14px; height: 24px; background: var(--coat); border-radius: 50% 50% 20% 20%; transform: rotate(-20deg); }
.horse__face { left: 0; top: 8px; width: 76px; height: 40px; background: linear-gradient(90deg, #5a3118 0 22%, var(--coat) 22%); border-radius: 18px 26px 20px 16px; transform: rotate(24deg); }
.horse__face::after { content: ''; position: absolute; right: 16px; top: 8px; width: 6px; height: 6px; background: #111; border-radius: 50%; }
@keyframes tail { 50% { transform: rotate(-4deg); } }
.horse.is-eating .horse__head { animation: chew .28s ease-in-out infinite alternate; }
.horse.is-pooping .horse__tail { animation: none; transform: rotate(-70deg); transition: transform .2s; }
@keyframes chew { from { transform: rotate(-4deg); } to { transform: rotate(3deg); } }

.carrot {
  position: absolute; z-index: 8; width: 48px; height: 22px; margin-left: -12px;
  transition: transform .7s cubic-bezier(.3, .6, .4, 1), opacity .3s;
}
.carrot::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 38px; height: 14px;
  background: #e8792e; clip-path: polygon(0 50%, 100% 0, 100% 100%);
  filter: drop-shadow(0 0 0 #000);
}
.carrot::after {
  content: ''; position: absolute; left: 34px; top: 0; width: 14px; height: 22px;
  background: radial-gradient(ellipse at 30% 50%, #4d9a3a 0 45%, transparent 47%),
              radial-gradient(ellipse at 75% 40%, #3f8a32 0 45%, transparent 47%);
}
.carrot.is-eaten { opacity: 0; }

/* Кальян */
.hookah i { position: absolute; display: block; border: 3px solid #111; }
.hookah__vase { left: 6px; bottom: 0; width: 44px; height: 44px; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 35% 35%, #9fe0e0, #2f8f96 70%); }
.hookah__stem { left: 23px; bottom: 40px; width: 10px; height: 62px; background: linear-gradient(90deg, #b88a3a, #f0cf7a, #b88a3a); }
.hookah__bowl { left: 16px; bottom: 100px; width: 24px; height: 16px; border-radius: 4px 4px 10px 10px; background: #c9462f; }
.hookah__coal { left: 19px; bottom: 114px; width: 18px; height: 8px; border-radius: 4px; background: #3a2a22; border-width: 2px !important; }
.hookah.is-smoking .hookah__coal { background: #ff6a2a; box-shadow: 0 0 10px #ff8a3a; animation: coal 1.4s ease-in-out infinite alternate; }
.hookah__hose { left: -40px; bottom: 58px; width: 66px; height: 40px; border-color: #1b3f7a !important; border-width: 5px !important; border-radius: 0 0 40px 40px; border-top: 0 !important; background: none; }
.hookah b {
  position: absolute; left: 28px; bottom: 124px; width: 14px; height: 14px; margin-left: -7px;
  background: rgba(235, 238, 240, .85); border-radius: 50%; opacity: 0;
}
.hookah.is-smoking b { animation: puff 2.4s ease-out infinite; }
.hookah.is-smoking b:nth-of-type(2) { animation-delay: .6s; }
.hookah.is-smoking b:nth-of-type(3) { animation-delay: 1.2s; }
.hookah.is-smoking b:nth-of-type(4) { animation-delay: 1.8s; }
@keyframes puff {
  0% { opacity: 0; transform: translate(0, 0) scale(.5); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translate(10px, -90px) scale(1.8); }
}
@keyframes coal { from { filter: brightness(.9); } to { filter: brightness(1.3); } }
.exhale {
  position: absolute; bottom: 262px; width: 22px; height: 16px; z-index: 6; pointer-events: none;
  background: rgba(235, 238, 240, .9); border-radius: 50%;
  box-shadow: 14px -6px 0 2px rgba(235, 238, 240, .8), 6px -16px 0 -1px rgba(235, 238, 240, .7);
  animation: exhale 2.6s ease-out forwards;
}
@keyframes exhale {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(40px, -110px) scale(2.2); }
}

/* Кучка: три слоя, пар и мухи */
.poop { position: absolute; bottom: 120px; width: 0; z-index: 3; transform: scale(1.3); transform-origin: 0 100%; }
.poop i { position: absolute; left: 0; background: #5a3418; border: 3px solid #111; border-radius: 50% 50% 40% 40%; }
.poop i:nth-child(1) { width: 46px; height: 18px; margin-left: -23px; bottom: 0; }
.poop i:nth-child(2) { width: 32px; height: 15px; margin-left: -16px; bottom: 12px; background: #6b3f1f; }
.poop i:nth-child(3) { width: 18px; height: 14px; margin-left: -8px; bottom: 23px; border-radius: 60% 60% 30% 30%; background: #7a4a26; }
.poop b {
  position: absolute; bottom: 36px; width: 6px; height: 26px; margin-left: -3px;
  border-left: 3px solid rgba(160, 190, 90, .7); border-radius: 50%;
  animation: stink 1.8s ease-in-out infinite; opacity: 0;
}
.poop b:nth-of-type(1) { left: -12px; }
.poop b:nth-of-type(2) { left: 0; animation-delay: .6s; }
.poop b:nth-of-type(3) { left: 12px; animation-delay: 1.2s; }
.poop s { position: absolute; bottom: 44px; left: 0; width: 5px; height: 5px; background: #111; border-radius: 50%; animation: fly 1.6s linear infinite; }
.poop s:last-child { animation-duration: 2.3s; animation-direction: reverse; }
.poop.is-fresh i { animation: plop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.poop.is-fresh i:nth-child(2) { animation-delay: .08s; }
.poop.is-fresh i:nth-child(3) { animation-delay: .16s; }
@keyframes stink { 0% { opacity: 0; transform: translateY(6px) skewX(10deg); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px) skewX(-10deg); } }
@keyframes fly { 0% { transform: rotate(0) translateX(22px) rotate(0); } 100% { transform: rotate(360deg) translateX(22px) rotate(-360deg); } }
@keyframes plop { from { transform: translateY(-70px) scale(.6); opacity: 0; } 60% { opacity: 1; } }

@keyframes graze { 0%, 70%, 100% { transform: rotate(0); } 80%, 90% { transform: rotate(-8deg); } }

/* ============================================================
   Персонажи
   ============================================================ */
.player, .npc { position: absolute; bottom: 120px; left: 0; width: 0; z-index: 4; }
.npc { z-index: 2; }
.player.is-hidden { visibility: hidden; }
.fig { position: absolute; bottom: 0; left: -30px; width: 60px; height: 170px; }
.fig__body { position: absolute; inset: 0; transition: transform .12s; }
[data-face="-1"] .fig__body { transform: scaleX(-1); }
.fig i { position: absolute; display: block; border: 3px solid #111; }

.fig__leg { left: 21px; bottom: 0; width: 17px; height: 80px; background: var(--pants, #2f4a78); border-radius: 6px 6px 3px 3px; transform-origin: 50% 4px; border-bottom: 9px solid #1a1a1a !important; }
.fig__leg--b { left: 17px; filter: brightness(.75); }
.fig__leg--f { left: 25px; }
.fig__torso { left: 13px; bottom: 72px; width: 36px; height: 64px; background: var(--shirt, #fff); border-radius: 12px 14px 6px 6px; }
.fig__apron { display: none !important; left: 26px; bottom: 16px; width: 26px; height: 100px; background: var(--apron, #4a4f45); border-radius: 4px 8px 6px 6px; }
.fig__arm { left: 24px; bottom: 80px; width: 13px; height: 58px; background: linear-gradient(var(--sleeve, var(--shirt, #fff)) 0 40%, var(--skin) 40%); border-radius: 6px; transform-origin: 50% 5px; transform: rotate(4deg); }
.fig__arm--b { left: 19px; filter: brightness(.8); transform: rotate(-6deg); }
.fig__head { left: 16px; bottom: 134px; width: 32px; height: 36px; background: var(--skin); border-radius: 45% 50% 45% 40%; }
.fig__head::before { content: ''; position: absolute; right: 2px; top: 25px; width: 8px; height: 3px; background: #8a3b2e; border-radius: 2px; }
.fig__head::after { content: ''; position: absolute; right: 5px; top: 14px; width: 4px; height: 4px; background: #111; border-radius: 50%; }
.fig__hair { left: -3px; top: -6px; width: 34px; height: 16px; background: var(--hair, #4a3524); border-radius: 16px 16px 4px 8px; border-width: 3px !important; }

/* Шаг: ноги в противофазе, руки — против ног (сдвиг на полпериода) */
.is-walking .fig__leg--f { animation: swing .42s ease-in-out infinite; }
.is-walking .fig__leg--b { animation: swing .42s ease-in-out -.21s infinite; }
.is-walking .fig__arm--f { animation: swing-arm .42s ease-in-out -.21s infinite; }
.is-walking .fig__arm--b { animation: swing-arm .42s ease-in-out infinite; }
.is-walking .fig__body { animation: bob .21s ease-in-out infinite alternate; }
[data-face="-1"].is-walking .fig__body { animation-name: bob-flip; }
@keyframes swing { 0%, 100% { transform: rotate(-26deg); } 50% { transform: rotate(26deg); } }
@keyframes swing-arm { 0%, 100% { transform: rotate(-38deg); } 50% { transform: rotate(38deg); } }
@keyframes bob { to { transform: translateY(-4px); } }
@keyframes bob-flip { from { transform: scaleX(-1); } to { transform: scaleX(-1) translateY(-4px); } }

.fig--player { --shirt: #f4f4f0; --pants: #2f4a78; --hair: #1f1a16; }
.fig--yuri { --shirt: #c9302c; --pants: #3b3f45; --hair: #8a5a2b; }
.fig--yuri .fig__apron { display: block !important; background: repeating-linear-gradient(45deg, #54595b 0 6px, #464b4d 6px 12px); }
/* ковбойская шляпа: тулья — из .fig__hair, поля — ::after */
.fig--yuri .fig__hair { left: 1px; top: -20px; width: 28px; height: 24px; border-radius: 10px 12px 3px 3px; background: linear-gradient(#9a6431 0 70%, #3a2414 70%); }
.fig--yuri .fig__hair::after {
  content: ''; position: absolute; left: -16px; right: -16px; bottom: -8px; height: 8px;
  background: #9a6431; border: 3px solid #111; border-radius: 50% 50% 40% 40% / 100% 100% 40% 40%;
}
.fig--vladimir { --shirt: #d9d6cf; --pants: #6b6f73; --apron: #54595b; --hair: #6a4a2e; }
.fig--vladimir .fig__apron { display: block !important; background: repeating-linear-gradient(45deg, #54595b 0 6px, #464b4d 6px 12px); }
.fig--alexander { --shirt: #2f5fb3; --sleeve: #4c5a33; --pants: #4c5a33; --apron: #4c5a33; --hair: #7a5a36; }
.fig--alexander .fig__apron { display: block !important; }
.fig--elena { --shirt: #2a2a2a; --hair: #3a2419; }
.fig--elena .fig__torso { background: radial-gradient(circle, #eee 0 2px, transparent 3px) 0 0 / 9px 9px, #2a2a2a; }
.fig--elena .fig__hair { height: 18px; border-radius: 16px 16px 6px 12px; }
.fig--elena .fig__hair::after {
  content: ''; position: absolute; left: -7px; top: 4px; width: 16px; height: 42px;
  background: var(--hair); border: 3px solid #111; border-top: 0; border-radius: 4px 4px 10px 10px;
}

/* Сидячая поза: --sit — высота сиденья от пола */
.is-seated .fig__body { transform: translateY(calc(72px - var(--sit) * 1px)); }
[data-face="-1"].is-seated .fig__body { transform: scaleX(-1) translateY(calc(72px - var(--sit) * 1px)); }
.is-seated .fig__leg { height: 44px; bottom: 36px; transform: rotate(-90deg); border-bottom: 3px solid #111 !important; }
.is-seated .fig__leg::after {
  content: ''; position: absolute; top: calc(100% - 14px); right: calc(100% - 8px);
  width: calc(var(--sit) * 1px - 6px); height: 17px;
  background: var(--pants, #2f4a78); border: 3px solid #111; border-left: 10px solid #1a1a1a; border-radius: 4px;
}
.is-seated .fig__arm { transform: rotate(-55deg); }
.is-seated .fig__arm--b { transform: rotate(-45deg); }

/* ---------- Реплика над головой ---------- */
.bubble { position: absolute; bottom: 330px; left: 0; width: 0; z-index: 8; pointer-events: none; }
.bubble span {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 8px) scale(.9); white-space: nowrap;
  padding: 8px 14px; background: #fff; color: #111; border: 3px solid #111; border-radius: 14px;
  font: 18px var(--font-display); opacity: 0; transition: opacity .25s, transform .25s;
}
.bubble span::after {
  content: ''; position: absolute; left: 50%; top: 100%; margin-left: -8px;
  border: 8px solid transparent; border-top-color: #111;
}
.bubble.is-on span { opacity: 1; transform: translate(-50%, 0) scale(1); }
.bubble + .marker { bottom: 385px; }

/* ============================================================
   Маркеры (жёлтые стрелки GTA)
   ============================================================ */
.marker { position: absolute; bottom: 330px; left: 0; width: 0; z-index: 7; pointer-events: none; }
.marker i {
  position: absolute; left: -16px; width: 32px; height: 38px;
  background: var(--m, #f2c230);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 0 0 #000);
  animation: hover 1.1s ease-in-out infinite alternate;
  opacity: .8;
}
.marker i::after { content: ''; position: absolute; inset: 4px 6px 10px; background: rgba(255,255,255,.35); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.marker--npc { bottom: 310px; --m: #58a6ff; }
.marker--info { bottom: 300px; --m: #7ad17a; }
.marker--seat { bottom: 320px; --m: #f0873c; }
.marker.is-near i { opacity: 1; transform-origin: center; animation-duration: .45s; width: 40px; left: -20px; height: 46px; }
@keyframes hover { from { transform: translateY(0); } to { transform: translateY(-14px); } }

/* ============================================================
   HUD
   ============================================================ */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.hud__help {
  position: absolute; left: 16px; top: 16px; max-width: min(420px, calc(100% - 200px));
  padding: 10px 14px; background: rgba(0, 0, 0, .78); border-radius: 4px;
  font: 600 15px/1.4 var(--font-body); color: #fff;
  opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s;
}
.hud__help.is-on { opacity: 1; transform: none; }

.hud__stats {
  position: absolute; right: 16px; top: 12px;
  display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; justify-items: end;
}
.hud__weapon { grid-row: span 3; width: 64px; height: 64px; }
.hud__weapon svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 0 #000); }
.hud__clock { font: 30px/1 var(--font-display); color: #fff; text-shadow: var(--outline); }
.hud__money { font: 28px/1.1 var(--font-display); color: var(--gta-money); text-shadow: var(--outline); letter-spacing: 1px; }
.hud__stars { display: flex; gap: 3px; }
.hud__stars i {
  width: 18px; height: 18px; background: rgba(0,0,0,.45);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.hud__radar {
  position: absolute; left: 20px; bottom: 20px; width: 150px; height: 150px;
  border-radius: 50%; overflow: hidden; border: 5px solid #111;
  box-shadow: 0 0 0 2px #555, 0 4px 12px rgba(0,0,0,.5);
  background: #44573c;
}
.hud__radar svg { width: 100%; height: 100%; display: block; }

.hud__zone {
  position: absolute; right: 24px; bottom: 28px;
  font: 40px var(--font-display); color: var(--gta-blue); text-shadow: var(--outline);
  opacity: 0; transition: opacity .6s;
  text-align: right; max-width: 70%;
}
.hud__zone.is-on { opacity: 1; }

.hud__rotate { display: none; }
@media (pointer: coarse) and (orientation: portrait) {
  .hud__rotate {
    display: block; position: absolute; left: 16px; right: 16px; top: 34%;
    text-align: center; font: 700 15px var(--font-body); color: #fff; text-shadow: 0 2px 0 #000;
  }
}

/* ============================================================
   Тач-управление
   ============================================================ */
.touch { display: none; }
@media (pointer: coarse) {
  .touch { display: block; position: absolute; inset: auto 0 0 0; height: 0; z-index: 11; }
  .touch__btn, .touch__act {
    position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); width: 72px; height: 72px; border-radius: 50%;
    background: rgba(0,0,0,.45); border: 3px solid rgba(255,255,255,.6); font-size: 24px;
    touch-action: none;
  }
  .touch__btn[data-dir="-1"] { left: 190px; }
  .touch__btn[data-dir="1"] { left: 272px; }
  .touch__act { right: 18px; font: 26px var(--font-display); opacity: .5; }
  .touch__act.is-ready { opacity: 1; background: rgba(242, 194, 48, .9); color: #111; border-color: #111; }
  .hud__zone { bottom: 110px; }
}

/* ============================================================
   Диалог
   ============================================================ */
.dialog {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(760px, calc(100% - 32px)); z-index: 20;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 18px; background: var(--menu-bg); border: 2px solid var(--line); border-radius: 6px;
  animation: pop .18s ease-out;
}
.dialog__portrait {
  flex: none; width: 84px; height: 84px; border-radius: 6px; border: 3px solid #111;
  background: linear-gradient(#3a3f45, #1c1f22); position: relative; overflow: hidden;
  display: grid; place-items: start center; padding-top: 6px; font: 30px var(--font-display); color: #fff; text-shadow: var(--outline);
}
.dialog__portrait::before {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -20px; height: 52px; border-radius: 26px 26px 0 0;
  background: var(--shirt, #888); border: 3px solid #111;
}
.dialog__body { flex: 1; min-width: 0; }
.dialog__name { font: 20px var(--font-display); color: var(--gta-gold); text-shadow: 0 2px 0 #000; }
.dialog__name small { font: 600 13px var(--font-body); color: #b9c0c5; margin-left: 6px; }
.dialog__text { margin: 6px 0 10px; font: 600 17px/1.45 var(--font-body); min-height: 3em; }
.dialog__options { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dialog__options button {
  width: 100%; text-align: left; padding: 7px 10px; background: transparent; border: 0; border-radius: 4px;
  font: 600 16px var(--font-body); cursor: pointer; color: #e6e9eb;
}
.dialog__options button b { display: inline-block; width: 1.6em; color: var(--gta-gold); font-family: var(--font-display); }
.dialog__options button:hover, .dialog__options button.is-sel { background: rgba(255,255,255,.12); color: #fff; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ============================================================
   Меню (прайс, запись)
   ============================================================ */
.menu {
  position: absolute; inset: 0; z-index: 30;
  display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .45);
}
.menu__box {
  width: min(900px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
  background: var(--menu-bg); border: 2px solid var(--line); border-radius: 6px;
  animation: fadein .2s ease-out;
}
.menu__title {
  margin: 0; padding: 16px 20px 10px;
  font: 34px var(--font-display); color: #fff; text-shadow: var(--outline);
  text-transform: uppercase; letter-spacing: 1px;
}
.menu__content { overflow: auto; padding: 0 20px; -webkit-overflow-scrolling: touch; }
.menu__foot {
  display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap;
  padding: 12px 20px 16px; border-top: 1px solid var(--line); margin-top: 12px;
}
.menu__foot span { margin-right: auto; color: #b9c0c5; font-size: 14px; }
.menu__note { color: #b9c0c5; font-size: 14px; }
.menu__btn {
  font: 16px var(--font-display); padding: 10px 18px; border-radius: 4px; cursor: pointer;
  background: var(--gta-gold); color: #111; border: 2px solid #111;
}
.menu__btn:hover { background: #fff; }
.menu__btn:disabled { opacity: .5; cursor: wait; }
.menu__btn--ghost { background: transparent; color: #fff; border-color: var(--line); }
.menu__btn--ghost:hover { background: rgba(255,255,255,.12); }
@keyframes fadein { from { opacity: 0; transform: scale(.98); } }

.mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mlist button {
  width: 100%; text-align: left; padding: 10px 12px; border: 0; background: transparent; cursor: pointer;
  font: 18px var(--font-display); color: #c9d2d9; border-radius: 3px;
}
.mlist button:hover, .mlist button.is-sel { background: #e9ecee; color: #111; }

.ptable { overflow-x: auto; }
.ptable table { border-collapse: collapse; width: 100%; font-size: 15px; white-space: nowrap; }
.ptable th, .ptable td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.ptable thead th { font: 14px var(--font-display); color: var(--gta-gold); }
.ptable tbody th { text-align: left; font-weight: 700; color: #dfe4e7; position: sticky; left: 0; background: #0e1116; }
.ptable td { font-variant-numeric: tabular-nums; color: #fff; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.plist b { font-family: var(--font-display); font-weight: 400; color: var(--gta-gold); white-space: nowrap; }

/* ---------- Форма ---------- */
.book { max-width: 640px; }
.book__lead { margin: 0 20px 8px; color: #b9c0c5; }
.book__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 0 20px; overflow: auto; }
.book__grid label { display: grid; gap: 4px; font: 600 13px var(--font-body); color: #b9c0c5; }
.book__wide { grid-column: 1 / -1; }
.book__hp { position: absolute !important; left: -9999px; }
.book input, .book select, .book textarea {
  font: 600 16px var(--font-body); color: #111; background: #eef1f3;
  border: 2px solid transparent; border-radius: 4px; padding: 9px 10px; width: 100%; min-width: 0;
  -webkit-user-select: text; user-select: text;
}
.book textarea { resize: vertical; }
.book input:focus, .book select:focus, .book textarea:focus { outline: none; border-color: var(--gta-gold); }
.book .is-bad { border-color: #e2544a; background: #fde8e6; }
.book__estimate { margin: 10px 20px 0; color: var(--gta-gold); font-weight: 700; min-height: 1.2em; }
.book__error { margin: 4px 20px 0; color: #ff8a80; font-weight: 700; min-height: 1.2em; }
.book__actions { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; }

/* ============================================================
   Миссия выполнена
   ============================================================ */
.passed {
  position: absolute; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center;
  text-align: center; padding: 16px; background: rgba(0,0,0,.35);
}
.passed__title {
  font: clamp(38px, 8vw, 84px)/1 var(--font-display); color: var(--gta-gold);
  text-shadow: var(--outline), 0 8px 24px rgba(0,0,0,.6); text-transform: uppercase;
}
.passed__sub { font: clamp(20px, 3.5vw, 32px) var(--font-display); color: #fff; text-shadow: var(--outline); margin-top: 8px; text-transform: uppercase; }
.passed__text { max-width: 520px; font: 600 17px/1.45 var(--font-body); text-shadow: 0 2px 4px #000; margin: 18px 0; }
.passed.is-on .passed__title { animation: slam .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes slam { from { transform: scale(2.2); opacity: 0; } }

/* ============================================================
   Загрузка, затемнение
   ============================================================ */
.loading {
  position: absolute; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: #0b0d10; transition: opacity .6s;
}
.loading.is-gone { opacity: 0; pointer-events: none; }
.loading__art {
  position: absolute; inset: 0; opacity: .55;
  background:
    radial-gradient(circle at 70% 60%, transparent 0 90px, #111 92px 150px, transparent 152px),
    radial-gradient(circle at 70% 60%, #cfd3d6 0 40px, #333 42px 60px, transparent 62px),
    linear-gradient(160deg, #f0a660, #b5472e 60%, #3a1d1a);
}
.loading__logo { position: relative; font: clamp(52px, 11vw, 120px)/1 var(--font-display); color: #fff; text-shadow: var(--outline); letter-spacing: 2px; }
.loading__logo span { color: var(--orange); }
.loading__bar { position: relative; width: min(360px, 70vw); height: 14px; background: #222; border: 2px solid #000; }
.loading__bar i { display: block; height: 100%; width: 0; background: linear-gradient(#e9b44c, #b98325); transition: width .1s linear; }
.loading__start { position: relative; }
.loading__hint { position: relative; margin: 0; color: #f3e4d0; font-weight: 700; text-shadow: 0 2px 0 #000; }

.fade { position: absolute; inset: 0; z-index: 50; background: #000; opacity: 0; pointer-events: none; transition: opacity .35s; }
.fade.is-on { opacity: 1; }

/* ============================================================
   Узкие экраны
   ============================================================ */
@media (max-width: 640px) {
  .hud__help { left: 10px; top: 10px; font-size: 13px; max-width: calc(100% - 150px); }
  .hud__stats { right: 10px; top: 8px; column-gap: 6px; }
  .hud__weapon { width: 44px; height: 44px; }
  .hud__clock { font-size: 20px; }
  .hud__money { font-size: 17px; }
  .hud__stars i { width: 11px; height: 11px; }
  .hud__radar { width: 100px; height: 100px; left: 10px; bottom: auto; top: 10px; display: none; }
  .hud__zone { font-size: 24px; right: 12px; }
  .touch__btn[data-dir="-1"] { left: 16px; }
  .touch__btn[data-dir="1"] { left: 98px; }
  .dialog { bottom: 12px; padding: 12px; gap: 10px; }
  .dialog__portrait { width: 56px; height: 56px; font-size: 22px; }
  .dialog__text { font-size: 15px; }
  .dialog__options button { font-size: 15px; padding: 8px; }
  .menu { padding: 8px; }
  .menu__title { font-size: 24px; padding: 12px 14px 8px; }
  .menu__content, .book__grid { padding: 0 14px; }
  .book__grid { grid-template-columns: 1fr; }
  .mlist button { font-size: 16px; }
}
@media (max-height: 460px) {
  .hud__radar { width: 100px; height: 100px; }
  .dialog { bottom: 8px; }
  .dialog__text { min-height: 0; margin: 4px 0 6px; }
  .menu__title { font-size: 22px; padding: 10px 16px 6px; }
}
