/* GTN: Grand Theft Noyabrsk — интерфейс */
:root { --ice: #8fe3ff; --ice2: #3fa9ff; --orange: #ff7a1a; --red: #ff3b4a; --green: #3dff8a; --panel: rgba(8, 16, 32, .72); --line: rgba(143, 227, 255, .25); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #070c18; color: #e8f4ff; font: 14px/1.35 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; user-select: none; -webkit-user-select: none; touch-action: none; }
canvas#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--ice); }

/* ---------- логотип (оригинальный стиль: ледяной хромированный шрифт) ---------- */
.logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 10px; }
.logo .lg { font: 900 italic 128px/0.9 "Arial Black", "Segoe UI Black", Impact, sans-serif; letter-spacing: -4px; transform: skewX(-8deg);
  background: linear-gradient(180deg, #ffffff 0%, #c9f1ff 38%, #4fb8ff 55%, #0f4fa8 56%, #3fa9ff 80%, #e9fbff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 6px 0 #0a2550) drop-shadow(0 10px 18px rgba(0, 150, 255, .55)); position: relative; padding: 0 14px; }
.logo .lg::after { content: ""; position: absolute; left: 6%; right: 10%; top: -6px; height: 22px; border-radius: 14px 18px 6px 10px; background: radial-gradient(ellipse at 30% 40%, #fff, #e8f7ff 60%, rgba(255,255,255,0) 72%); filter: blur(.4px); opacity: .95; }
.logo .sub { margin-top: 6px; font: 800 22px/1 "Segoe UI", Arial, sans-serif; letter-spacing: 6px; text-transform: uppercase; color: var(--orange); text-shadow: 0 2px 0 #4a1c00, 0 0 18px rgba(255, 122, 26, .55); }
.logo .city { margin-top: 8px; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: #9fc6e8; }
.logo .city b { color: #fff; }
.ver { color: var(--ice); font-weight: 700; }
.logo.small .lg { font-size: 72px; }

/* ---------- экраны ---------- */
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 50; }
#loading { flex-direction: column; background: radial-gradient(ellipse at 50% 30%, #13305c 0%, #070c18 70%); }
#loading .bar { width: min(420px, 80vw); height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 26px; }
#loading .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ice2), var(--ice)); box-shadow: 0 0 12px var(--ice); transition: width .2s; }
#loadtxt { margin-top: 14px; color: #9fc6e8; font-size: 13px; text-align: center; max-width: 80vw; }
#menu { background: transparent; overflow-y: auto; align-items: flex-start; }
.menu-bg { position: fixed; inset: 0; background: linear-gradient(180deg, rgba(5,10,24,.25), rgba(5,10,24,.75) 70%, rgba(5,10,24,.95)); pointer-events: none; }
.menu-wrap { position: relative; display: flex; flex-direction: column; align-items: center; padding: 4vh 16px 24px; width: 100%; min-height: 100%; }
.online { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; padding: 6px 14px; border-radius: 20px; background: rgba(0,0,0,.35); border: 1px solid var(--line); font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #777; box-shadow: 0 0 8px currentColor; }
.dot.on { background: var(--green); color: var(--green); }
.dot.off { background: var(--red); color: var(--red); }
.card { width: min(460px, 94vw); padding: 18px 20px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.card label { display: block; margin: 10px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #8fb2d4; }
.card input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: #fff; font-size: 17px; outline: none; user-select: text; -webkit-user-select: text; }
.card input:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(143,227,255,.15); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); }
.swatches button.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 0 14px rgba(255,255,255,.5); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,.3); font-size: 13px; }
.seg button.on { background: rgba(63,169,255,.3); border-color: var(--ice); }
.btn { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(63,169,255,.18); font-weight: 700; transition: transform .08s, background .15s; }
.btn:hover { background: rgba(63,169,255,.32); }
.btn:active { transform: scale(.97); }
.btn.big { width: 100%; margin-top: 18px; padding: 15px; font-size: 22px; letter-spacing: 6px; border: none; color: #1b0b00; background: linear-gradient(180deg, #ffb066, var(--orange) 55%, #d4520a); box-shadow: 0 6px 0 #7a2b00, 0 10px 30px rgba(255,122,26,.45); text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.btn.big:active { transform: translateY(4px); box-shadow: 0 2px 0 #7a2b00; }
.btn.alt { background: rgba(255,122,26,.2); border-color: rgba(255,122,26,.5); }
.btn.ghost { background: rgba(255,255,255,.05); }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.row .btn { flex: 1 1 30%; font-size: 13px; padding: 9px 8px; }
.legal { margin-top: 18px; max-width: 520px; text-align: center; font-size: 11px; color: #7f9bb8; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { position: absolute; }
#topright { top: 12px; right: 14px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
#clock { font: 700 20px/1 Consolas, "Courier New", monospace; color: #dff4ff; text-shadow: 0 2px 4px #000; }
#money { font: 900 30px/1 "Arial Black", "Segoe UI", sans-serif; color: #9dff6a; text-shadow: 0 2px 0 #0b3a00, 0 0 12px rgba(80,255,80,.35); letter-spacing: 1px; }
#money.flash { animation: mflash .6s; }
@keyframes mflash { 0% { transform: scale(1.25); color: #fff; } 100% { transform: scale(1); } }
#bars { display: flex; flex-direction: column; gap: 3px; width: 170px; }
#bars div { height: 9px; border-radius: 5px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.15); overflow: hidden; }
#bars i { display: block; height: 100%; transition: width .25s; }
#hpbar { background: linear-gradient(90deg, #ff4d5a, #ff8a6a); width: 100%; }
#arbar { background: linear-gradient(90deg, #5fb0ff, #b4e2ff); width: 0; }
#bars .ab { height: 5px; }
#weapon { display: flex; gap: 8px; align-items: baseline; font-weight: 700; text-shadow: 0 2px 3px #000; }
#wname { font-size: 14px; color: #ffe2b0; }
#wammo { font: 700 16px Consolas, monospace; color: #fff; }
#wanted { font-size: 26px; letter-spacing: 1px; height: 30px; color: #444a; text-shadow: 0 2px 2px #000; }
#wanted .s { color: #ffd23f; text-shadow: 0 0 10px #ffb400, 0 2px 2px #000; }
#wanted.hid .s { animation: blink .5s infinite; }
@keyframes blink { 50% { opacity: .25; } }
#lvl { font-size: 12px; color: #b6d4ef; text-shadow: 0 1px 2px #000; }
#topleft { top: 12px; left: 14px; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, 60vw); }
#mission { padding: 10px 12px; border-radius: 12px; background: var(--panel); border-left: 4px solid var(--orange); backdrop-filter: blur(6px); }
#mission .mh { display: flex; gap: 8px; align-items: center; font-size: 15px; }
#mission #mtimer { margin-left: auto; font: 700 16px Consolas, monospace; color: #ffd23f; }
#mission #mtimer.low { color: var(--red); animation: blink .5s infinite; }
#mtxt { margin-top: 4px; color: #d9ecff; font-size: 13px; }
#mextra { font-size: 12px; color: #ffcf8a; }
#mprog { margin-top: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
#mprog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), #ffd23f); }
#resp { display: flex; gap: 6px; }
#resp .f { display: flex; flex-direction: column; align-items: center; width: 64px; padding: 4px; border-radius: 8px; background: rgba(0,0,0,.45); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
#resp .f .m { width: 100%; height: 6px; margin-top: 3px; border-radius: 3px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
#resp .f .m i { position: absolute; top: 0; bottom: 0; left: 50%; }
#resp .f b { font-size: 12px; }
#killfeed { top: 210px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; }
#killfeed div { padding: 3px 10px; border-radius: 6px; background: rgba(0,0,0,.5); animation: fadeout 6s forwards; }
#killfeed b { color: #ffcf8a; }
@keyframes fadeout { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
#toasts { top: 70px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(560px, 90vw); }
#toasts div { padding: 7px 14px; border-radius: 10px; background: rgba(8,16,32,.82); border: 1px solid var(--line); font-size: 14px; text-align: center; animation: toast 4.5s forwards; }
#toasts div.good { border-color: rgba(61,255,138,.6); }
#toasts div.bad { border-color: rgba(255,59,74,.7); }
#toasts div.warn { border-color: rgba(255,210,63,.6); }
#toasts div.mission { border-color: rgba(255,122,26,.7); }
#toasts div.cash { color: #9dff6a; font-weight: 700; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
#banner { top: 22%; left: 50%; transform: translateX(-50%); text-align: center; width: min(720px, 94vw); animation: bannerin 5s forwards; }
#banner .bt { font: 900 italic 42px/1.05 "Arial Black", "Segoe UI Black", sans-serif; color: #fff; text-shadow: 0 3px 0 #000, 0 0 24px rgba(255,122,26,.8); }
#banner .bs { margin-top: 8px; font-size: 16px; color: #ffe2c4; text-shadow: 0 2px 3px #000; }
#banner.good .bt { text-shadow: 0 3px 0 #000, 0 0 24px rgba(61,255,138,.8); }
#banner.bad .bt { text-shadow: 0 3px 0 #000, 0 0 24px rgba(255,59,74,.8); }
@keyframes bannerin { 0% { opacity: 0; transform: translateX(-50%) scale(1.3); } 8%, 85% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; } }
#center { top: 40%; left: 50%; transform: translate(-50%, -50%); font: 900 120px/1 "Arial Black", sans-serif; color: #fff; text-shadow: 0 6px 0 #000, 0 0 40px rgba(255,210,63,.9); }
#street { bottom: 22px; left: 50%; transform: translateX(-50%); font: 700 italic 20px "Segoe UI", sans-serif; color: #fff; text-shadow: 0 2px 4px #000, 0 0 12px rgba(0,0,0,.8); opacity: 0; transition: opacity .6s; white-space: nowrap; }
#street.show { opacity: 1; }
#radio { top: 12px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 16px; background: rgba(0,0,0,.55); font-size: 12px; color: #ffd8a8; max-width: min(560px, 70vw); text-align: center; }
#hint { bottom: 78px; left: 50%; transform: translateX(-50%); padding: 10px 16px; border-radius: 12px; background: rgba(8,16,32,.88); border: 1px solid rgba(255,210,63,.55); font-size: 14px; max-width: min(560px, 90vw); text-align: center; }
#hint b { color: #ffd23f; }
#minimap { left: 14px; bottom: 14px; width: 200px; height: 200px; border-radius: 50%; border: 3px solid rgba(255,255,255,.75); box-shadow: 0 6px 20px rgba(0,0,0,.6), 0 0 0 1px #000; background: #0c1626; }
#speedo { right: 18px; bottom: 18px; text-align: right; text-shadow: 0 2px 4px #000; }
#speedo b { font: 900 italic 54px/1 "Arial Black", sans-serif; color: #fff; }
#speedo span { margin-left: 4px; color: #9fc6e8; }
#vname { font-size: 13px; color: #ffe2b0; }
#speedo .vb { width: 140px; height: 5px; margin: 4px 0 0 auto; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
#vhp { display: block; height: 100%; background: linear-gradient(90deg, #ffb400, #ffe066); }
#chat { left: 14px; bottom: 228px; width: min(420px, 70vw); }
#chatlog { display: flex; flex-direction: column; gap: 2px; font-size: 13px; max-height: 170px; overflow: hidden; justify-content: flex-end; }
#chatlog div { padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.42); text-shadow: 0 1px 2px #000; word-break: break-word; transition: opacity 1s; }
#chatlog div.old { opacity: 0; }
#chat.open #chatlog div.old { opacity: 1; }
#chatlog .n { font-weight: 700; color: #8fe3ff; }
#chatlog .p .n { color: #3dff8a; }
#chatlog .s { color: #ffcf8a; font-style: italic; }
#chatin { display: flex; gap: 6px; margin-top: 6px; pointer-events: auto; }
#chatin input { flex: 1; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,.6); color: #fff; outline: none; user-select: text; -webkit-user-select: text; }
#chch { padding: 8px 10px; border-radius: 8px; background: rgba(63,169,255,.3); font-size: 12px; font-weight: 700; }
#chch.p { background: rgba(61,255,138,.3); }
#arrow { left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
#arrow i { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; background: radial-gradient(circle, #ffd23f 30%, transparent 32%); }
#netstat { top: 4px; right: 50%; transform: translateX(50%); font-size: 11px; color: #ff8a8a; text-shadow: 0 1px 2px #000; }
#attrib { right: 8px; bottom: 2px; font-size: 10px; color: rgba(255,255,255,.55); }
.tag { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000, 0 0 4px #000; pointer-events: none; text-align: center; }
.tag .l { font-size: 10px; color: #ffd23f; margin-right: 3px; }
.tag.party { color: #3dff8a; }
.tag .em { display: block; font-size: 26px; animation: pop .3s; }
.tag .say { display: block; max-width: 220px; white-space: normal; font-weight: 400; background: rgba(0,0,0,.6); padding: 3px 7px; border-radius: 8px; margin-bottom: 3px; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }
#emotewheel { left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; grid-template-columns: repeat(4, 84px); gap: 8px; pointer-events: auto; padding: 14px; border-radius: 16px; background: rgba(8,16,32,.85); }
#emotewheel button { height: 76px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.05); font-size: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#emotewheel button span { font-size: 11px; margin-top: 2px; }
#invitebox { top: 140px; left: 50%; transform: translateX(-50%); padding: 12px 16px; border-radius: 12px; background: rgba(8,16,32,.92); border: 1px solid rgba(61,255,138,.6); pointer-events: auto; text-align: center; }
#invitebox .row { justify-content: center; }

/* ---------- смерть ---------- */
#dead { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse, rgba(80,0,0,.25), rgba(0,0,0,.65)); animation: deadin 1s; pointer-events: none; }
#dead .dt { font: 900 italic 92px/1 "Arial Black", Impact, sans-serif; color: #ff2d3c; text-shadow: 0 6px 0 #2b0004, 0 0 40px rgba(255,0,20,.7); letter-spacing: 2px; transform: skewX(-6deg); text-align: center; }
#dead.busted .dt { color: #4aa3ff; text-shadow: 0 6px 0 #001b3a, 0 0 40px rgba(0,120,255,.8); }
#dead .ds { margin-top: 16px; font-size: 18px; color: #ffe2e2; text-shadow: 0 2px 3px #000; text-align: center; max-width: 90vw; }
@keyframes deadin { 0% { opacity: 0; } 100% { opacity: 1; } }

/* ---------- окна ---------- */
.overlay { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(2,6,14,.55); }
.panel { width: min(560px, 94vw); max-height: 86vh; overflow: auto; padding: 16px 18px; border-radius: 16px; background: rgba(10,18,34,.95); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.panel.wide { width: min(760px, 96vw); }
.panel h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 18px; }
.x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.05); }
#bigmap { background: rgba(2,6,14,.9); }
#bigmapc { width: 100%; height: 100%; }
#bigmap .x { position: absolute; top: 14px; right: 14px; }
.maplegend { position: absolute; left: 14px; bottom: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.6); font-size: 12px; line-height: 1.7; }
.phonebox { width: min(420px, 96vw); height: min(720px, 92vh); display: flex; flex-direction: column; border-radius: 30px; padding: 14px 12px; background: linear-gradient(180deg, #121c30, #0b1220); border: 2px solid #2b3a55; box-shadow: 0 0 0 6px #05080f, 0 30px 80px rgba(0,0,0,.7); }
.ptop { display: flex; align-items: center; gap: 8px; padding: 0 6px 10px; font-size: 13px; }
.ptop #psig { margin-left: auto; color: #8fb2d4; font-size: 11px; }
.ptop .x { margin-left: 6px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; }
.tabs button { flex: 0 0 auto; padding: 7px 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: 12px; }
.tabs button.on { background: var(--orange); color: #1b0b00; border-color: var(--orange); font-weight: 700; }
#pbody { flex: 1; overflow-y: auto; padding: 2px 4px; }
.job { padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.job .jt { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.job .jf { margin-left: auto; font-size: 10px; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 1px; }
.job p { margin: 6px 0; font-size: 12px; color: #b9d2ea; }
.job .jr { font-size: 12px; color: #9dff6a; }
.job .btn { margin-top: 6px; width: 100%; padding: 8px; }
.job.locked { opacity: .55; }
.lbt { width: 100%; border-collapse: collapse; font-size: 13px; }
.lbt td { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.lbt td:last-child { text-align: right; color: #9dff6a; }
.pl { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.pl .lv { min-width: 34px; font-size: 11px; color: #ffd23f; }
.pl .nm { flex: 1; }
.pl .pt { font-size: 11px; color: #3dff8a; }
.pl button { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(61,255,138,.15); font-size: 12px; pointer-events: auto; }
.sett { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sett input[type=range] { width: 160px; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 13px; }
.help-grid kbd { display: inline-block; min-width: 24px; padding: 2px 6px; margin-right: 6px; border-radius: 5px; background: rgba(255,255,255,.12); border-bottom: 2px solid rgba(255,255,255,.25); font: 700 12px Consolas, monospace; text-align: center; }
.daily { padding: 10px; margin-bottom: 8px; border-radius: 10px; background: rgba(255,255,255,.04); }
.daily .pb { height: 6px; margin-top: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.daily .pb i { display: block; height: 100%; background: linear-gradient(90deg, var(--ice2), var(--green)); }
.daily.done { border: 1px solid rgba(61,255,138,.5); }

/* ---------- сенсорное управление ---------- */
#touch { position: fixed; inset: 0; z-index: 12; pointer-events: none; }
#stick { position: absolute; left: 30px; bottom: 30px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.2); pointer-events: auto; }
#stick i { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: rgba(255,255,255,.28); border: 2px solid rgba(255,255,255,.5); }
#tbtns { position: absolute; right: 20px; bottom: 24px; display: grid; grid-template-columns: repeat(3, 66px); gap: 10px; pointer-events: auto; }
.tb { width: 66px; height: 66px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); background: rgba(10,20,40,.45); font-size: 26px; }
.tb.fire { background: rgba(255,59,74,.35); }
.tb.sm { width: 52px; height: 52px; font-size: 20px; justify-self: center; align-self: center; }
.tb.on { background: rgba(255,255,255,.35); }
#ttop { position: absolute; top: 50%; right: 8px; display: flex; flex-direction: column; gap: 6px; transform: translateY(-50%); pointer-events: auto; }
#ttop button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(10,20,40,.5); font-size: 18px; }
body.touch #minimap { width: 130px; height: 130px; left: auto; right: 66px; top: 10px; bottom: auto; }
body.touch #topright { right: 206px; }
body.touch #ttop { top: 62px; left: 14px; right: auto; flex-direction: row; transform: none; }
body.touch #ttop button { width: 40px; height: 40px; }
body.touch #chat { bottom: 200px; width: 60vw; }
body.touch #speedo { bottom: 180px; right: 24px; }
body.touch #speedo b { font-size: 36px; }
body.touch #street { bottom: 190px; font-size: 15px; }
body.touch #hint { bottom: 190px; }
body.touch #killfeed { top: 160px; }
@media (max-width: 700px) {
  .logo .lg { font-size: 84px; } .logo .sub { font-size: 15px; letter-spacing: 3px; }
  #money { font-size: 22px; } #bars { width: 120px; } #wanted { font-size: 20px; height: 24px; }
  #banner .bt { font-size: 28px; } #dead .dt { font-size: 56px; } #center { font-size: 80px; }
  #topleft { max-width: 52vw; } #resp .f { width: 52px; }
  .help-grid { grid-template-columns: 1fr; }
}

/* ===== v0.6 2D (стиль GTA1-2): холст в низком разрешении, пиксельное масштабирование ===== */
canvas#c { position: fixed; inset: auto; width: auto; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; background: #dfe6ec; }
html, body { background: #0b1324; }
/* эти части HUD теперь рисуются пиксельным шрифтом на холсте */
#topright, #speedo, #toasts, #banner, #center, #street, #radio, #arrow, #dead, #dmgv, #tags { display: none !important; }
#topleft { top: 27vh; left: 10px; gap: 6px; max-width: min(300px, 46vw); }
#mission { padding: 7px 10px; border-radius: 4px; border-left-width: 3px; background: rgba(8,14,24,.78); font-size: 13px; }
#mission .mh { font-size: 13px; }
#mtxt { font-size: 12px; }
#resp .f { width: 56px; border-radius: 3px; }
#killfeed { top: 22vh; right: 10px; font-size: 12px; }
#killfeed div { border-radius: 3px; }
#minimap { width: 170px; height: 170px; left: 10px; bottom: 10px; }
#chat { bottom: 196px; left: 10px; }
#hint { bottom: 24vh; border-radius: 4px; }
#netstat { top: auto; bottom: 2px; right: 50%; color: rgba(255,255,255,.55); }
body.touch #minimap { width: 104px; height: 104px; left: auto; right: 8px; top: 22vh; bottom: auto; }
body.touch #ttop { top: 64px; bottom: auto; left: 6px; right: auto; flex-direction: column; transform: none; }
@media (max-height: 500px) { body.touch #ttop { top: 52px; flex-direction: row; } body.touch #ttop button { width: 32px !important; height: 32px !important; } body.touch #topleft { top: 92px; left: 8px; } body.touch #chat { bottom: 150px; width: 44vw; } }
body.touch #ttop button { width: 36px; height: 36px; }
body.touch #topleft { top: 25vh; left: 50px; max-width: 46vw; }
body.touch #killfeed { top: calc(22vh + 112px); }
body.touch #chat { bottom: 210px; width: 56vw; }
body.touch #hint { bottom: 230px; }
