@font-face { font-family: 'UYDisplay'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(/fonts/orbitron-latin-0.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.uy {
  --ink: #eef2f6; --ink2: #c3ccd6; --ink3: #8a97a6; --edge: rgba(255, 255, 255, 0.12); --glass: rgba(12, 16, 22, 0.66); --glass2: rgba(20, 26, 34, 0.86);
  --acc: #ffb300; --acc2: #ff7a00; --hot: linear-gradient(135deg, #ffd35a, #ff9800 55%, #ff6a00); --ok: #3ddc84; --bad: #ff5a4a; --blue: #2f80ff;
  --display: 'UYDisplay', 'Rajdhani', system-ui, sans-serif;
  margin: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #0f1318; color: var(--ink); font-family: var(--font); font-weight: 600;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: none;
}
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.screen { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.screen > * { pointer-events: auto; }
#hud > *:not(.pause):not(.mapbtn):not(.cambtn):not(.touch):not(.chatbox) { pointer-events: none; }
.screen[hidden], .modal[hidden], .panel-wrap[hidden], .bigmap[hidden], .touch[hidden], .chatbox[hidden], [hidden] { display: none !important; }
button { font-family: inherit; color: inherit; cursor: pointer; }
input, select { font-family: inherit; }

.loading { position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(800px 520px at 50% 38%, #26303b, #0b0e12 72%); transition: opacity 0.5s; }
.loading.done { opacity: 0; pointer-events: none; }
.loading b { font: 900 clamp(2.2rem, 7vw, 3.4rem) var(--display); letter-spacing: 0.08em; text-transform: uppercase; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loading small { color: var(--ink3); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }
.road-anim { width: 120px; height: 60px; position: relative; background: linear-gradient(90deg, transparent 0 10%, #2b3036 10% 90%, transparent 90%); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); overflow: hidden; }
.road-anim i { position: absolute; left: 50%; width: 4px; height: 12px; margin-left: -2px; background: #ffd35a; animation: dash 0.9s linear infinite; }
.road-anim i:nth-child(2) { animation-delay: 0.3s; } .road-anim i:nth-child(3) { animation-delay: 0.6s; }
@keyframes dash { from { top: -14px; transform: scale(0.5); } to { top: 60px; transform: scale(1.4); } }
.ld { width: min(320px, 70vw); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ld i { display: block; height: 100%; width: 0; background: var(--hot); transition: width 0.2s; }

#menu::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 8, 12, 0.85) 0%, rgba(6, 8, 12, 0.45) 40%, rgba(6, 8, 12, 0) 70%), linear-gradient(0deg, rgba(6, 8, 12, 0.85) 0%, rgba(6, 8, 12, 0) 45%); }
.top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left)); z-index: 1; }
.spacer { flex: 1; }
.back, .ib { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--glass); border: 1px solid var(--edge); color: #fff; text-decoration: none; font-size: 1.2rem; line-height: 1; backdrop-filter: blur(10px); }
.wallet { display: flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--edge); font-weight: 700; }
.wallet:empty { display: none; }
.wallet b { color: #8ef0b0; font: 900 1rem var(--display); }
.brand { position: absolute; left: max(28px, env(safe-area-inset-left)); top: calc(max(12px, env(safe-area-inset-top)) + 78px); pointer-events: none; }
.brand b { display: block; font: 900 clamp(2.6rem, 8vw, 5.6rem) var(--display); line-height: 0.9; letter-spacing: 0.04em; text-transform: uppercase; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 30px rgba(255, 140, 0, 0.3)); }
.brand small { display: inline-block; margin-top: 10px; padding: 4px 12px; border-left: 3px solid var(--acc); background: rgba(255, 179, 0, 0.12); font: 700 0.9rem var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink2); }
.tiles { position: absolute; left: max(28px, env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, minmax(0, 200px)); gap: 12px; }
.tile { position: relative; display: grid; align-content: end; justify-items: start; gap: 3px; min-height: 140px; padding: 16px; text-align: left; border-radius: 4px 18px 4px 18px; background: var(--glass2); border: 1px solid var(--edge); backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); transition: transform 0.14s, border-color 0.14s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 179, 0, 0.6); }
.tile .ico { position: absolute; top: 12px; right: 14px; font-size: 1.7rem; }
.tile b { font: 900 1.15rem var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.tile small { color: var(--ink3); font-size: 0.85rem; line-height: 1.2; }
.tile em { position: absolute; top: 14px; left: 16px; font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--acc); }
.tile.hero { background: linear-gradient(160deg, rgba(255, 160, 0, 0.36), rgba(110, 50, 0, 0.55) 60%, rgba(18, 16, 14, 0.9)); border-color: rgba(255, 179, 0, 0.55); }
.tile.live em { color: var(--ok); }

.panel-wrap { position: fixed; inset: 0; z-index: 12; display: grid; place-items: center; background: rgba(4, 6, 9, 0.55); backdrop-filter: blur(6px); padding: 14px; }
.panel { width: min(960px, 100%); max-height: min(760px, calc(100dvh - 28px)); display: flex; flex-direction: column; border-radius: 6px 22px 6px 22px; background: linear-gradient(180deg, rgba(26, 32, 42, 0.98), rgba(14, 18, 24, 0.98)); border: 1px solid var(--edge); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); overflow: hidden; }
.phead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--edge); background: rgba(255, 255, 255, 0.03); }
.phead b { flex: 1; font: 900 1.1rem var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.pbody { padding: 16px; overflow-y: auto; touch-action: pan-y; }
.lbl { display: block; margin: 14px 0 8px; color: var(--ink3); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.lbl:first-child { margin-top: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .chip { padding: 9px 13px; border-radius: 10px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); font-weight: 700; font-size: 0.92rem; }
.seg button.on { border-color: var(--acc); background: rgba(255, 179, 0, 0.16); color: #ffe2a8; }
.chip:disabled, .go:disabled { opacity: 0.45; cursor: default; }
.go { display: block; width: 100%; margin-top: 16px; padding: 15px; border: 0; border-radius: 12px; background: var(--hot); color: #2a1300; font: 900 1.05rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 10px 28px rgba(255, 130, 0, 0.3); }
.go.alt { background: rgba(255, 255, 255, 0.08); color: var(--ink); border: 1px solid var(--edge); box-shadow: none; }
.field { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--edge); background: rgba(0, 0, 0, 0.3); color: var(--ink); font-size: 1rem; }
select.field { appearance: none; }
.desc { color: var(--ink2); font-size: 0.9rem; line-height: 1.4; margin: 8px 0 0; }
.msg { margin-top: 10px; color: #ff9b8a; font-size: 0.88rem; min-height: 1.2em; }
.jobs { display: grid; gap: 8px; }
.job { display: grid; grid-template-columns: 1.4fr 1.4fr 0.8fr 0.7fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--edge); }
.job.lock { opacity: 0.5; }
.job b { font-size: 0.95rem; } .job small { display: block; color: var(--ink3); font-size: 0.78rem; }
.job .pay { color: #8ef0b0; font: 900 1rem var(--display); }
.job .urg { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #c62828; font-size: 0.68rem; letter-spacing: 0.06em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.card { display: grid; gap: 6px; padding: 12px; border-radius: 12px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); text-align: left; }
.card.on { border-color: var(--acc); background: rgba(255, 179, 0, 0.1); }
.card.lock { opacity: 0.5; }
.card .h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.card .h b { font: 900 0.95rem var(--display); }
.card .h span { color: #8ef0b0; font-weight: 800; font-size: 0.9rem; }
.card small { color: var(--ink3); font-size: 0.78rem; }
.bar { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--ink3); }
.bar em { display: block; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar em i { display: block; height: 100%; background: var(--hot); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; }
.swatches button.on { border-color: #fff; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--edge); text-align: center; }
.stat b { display: block; font: 900 1.25rem var(--display); } .stat small { color: var(--ink3); font-size: 0.74rem; }
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.lv { display: grid; gap: 4px; padding: 12px; text-align: left; border-radius: 4px 14px 4px 14px; border: 1px solid var(--edge); background: rgba(255, 255, 255, 0.04); }
.lv:disabled { opacity: 0.45; }
.lv .n { font: 900 0.7rem var(--display); color: var(--acc); letter-spacing: 0.1em; }
.lv b { font: 900 0.95rem var(--display); }
.lv .st { color: #3a414c; letter-spacing: 2px; } .lv .st i { font-style: normal; color: #ffc93a; }
.slider { display: grid; grid-template-columns: 1fr 160px 44px; align-items: center; gap: 10px; padding: 6px 0; }
.slider input { width: 100%; accent-color: var(--acc); }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--acc); }
.keys { color: var(--ink3); font-size: 0.82rem; line-height: 1.6; margin-top: 12px; }

/* HUD */
.h-left { position: absolute; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); display: grid; gap: 8px; width: 230px; }
#mini { width: 200px; height: 200px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); background: #10161d; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.jobcard { padding: 10px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(8px); font-size: 0.82rem; line-height: 1.35; }
.jobcard:empty { display: none; }
.jobcard b { display: block; font-size: 0.92rem; }
.jobcard .eta { color: var(--acc); font-weight: 800; }
.jobcard .late { color: var(--bad); }
.h-right { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); display: grid; justify-items: end; gap: 6px; }
.clock, .money, .fatigue { padding: 6px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(8px); }
.clock { display: flex; gap: 8px; align-items: baseline; } .clock b { font: 900 1.2rem var(--display); } .clock small { color: var(--ink3); }
.money { font: 900 1rem var(--display); color: #8ef0b0; } .money:empty { display: none; }
.fatigue { display: flex; gap: 6px; align-items: center; } .fatigue em { width: 80px; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); overflow: hidden; } .fatigue i { display: block; height: 100%; background: var(--ok); }
.toasts { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 4px); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; width: min(520px, 70vw); }
.toasts div { padding: 8px 16px; border-radius: 12px; background: rgba(10, 13, 18, 0.82); border: 1px solid var(--edge); font-weight: 700; animation: tin 0.25s; text-align: center; }
.toasts div.good { border-color: rgba(61, 220, 132, 0.6); } .toasts div.bad { border-color: rgba(255, 90, 74, 0.7); } .toasts div.big { font: 900 1.3rem var(--display); padding: 12px 22px; color: #ffd35a; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }
.prompt { position: absolute; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 150px); transform: translateX(-50%); padding: 8px 16px; border-radius: 12px; background: rgba(10, 13, 18, 0.8); border: 1px solid rgba(255, 179, 0, 0.5); font-weight: 800; white-space: nowrap; }
.prompt:empty { display: none; }
.arrowL, .arrowR { position: absolute; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 120px); font-size: 2rem; color: var(--ok); opacity: 0; text-shadow: 0 0 12px var(--ok); }
.arrowL { left: calc(50% - 90px); } .arrowR { left: calc(50% + 60px); } .arrowL.on, .arrowR.on { opacity: 1; }
.dash { position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: end; gap: 10px; }
.limit { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; border: 6px solid #d21f1f; font: 900 1.05rem Arial; }
.limit.over { animation: pulse 0.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.speedo { position: relative; display: grid; justify-items: center; min-width: 120px; padding: 10px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(8px); }
.speedo b { font: 900 2.6rem var(--display); line-height: 1; } .speedo small { color: var(--ink3); font-size: 0.75rem; }
.speedo em { position: absolute; top: -10px; right: -6px; padding: 2px 8px; border-radius: 8px; background: var(--blue); font-size: 0.72rem; font-style: normal; font-weight: 800; }
.speedo em:empty { display: none; }
.gauges { display: grid; grid-template-columns: auto auto; gap: 6px 10px; padding: 10px 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(8px); align-items: center; }
.rpm { display: flex; gap: 8px; align-items: center; } .rpm em { width: 110px; height: 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); overflow: hidden; } .rpm i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok) 0 60%, var(--acc) 60% 85%, var(--bad) 85%); }
.rpm span { font-size: 0.75rem; color: var(--ink3); width: 36px; }
.gear { grid-row: span 2; font: 900 1.7rem var(--display); color: var(--acc); text-align: center; min-width: 48px; }
.bars { display: flex; gap: 10px; font-size: 0.8rem; } .bars label { display: flex; gap: 4px; align-items: center; } .bars em { width: 46px; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); overflow: hidden; } .bars i { display: block; height: 100%; background: var(--ok); }
.lamps { grid-column: span 2; display: flex; gap: 6px; } .lamps i { font-style: normal; width: 24px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: #4a5563; font-size: 0.7rem; font-weight: 900; }
.lamps i.on { color: #000; background: var(--ok); } .lamps i.warn { background: var(--bad); color: #fff; } .lamps i.blue { background: var(--blue); color: #fff; }
.shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.85)); opacity: 0; transition: opacity 1s; }
.pause { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 0px); right: calc(max(10px, env(safe-area-inset-right)) + 200px); width: 38px; height: 38px; font-size: 0.85rem; }
.mapbtn { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 0px); right: calc(max(10px, env(safe-area-inset-right)) + 244px); width: 38px; height: 38px; font-size: 0.95rem; }
.cambtn { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 0px); right: calc(max(10px, env(safe-area-inset-right)) + 288px); width: 38px; height: 38px; font-size: 0.95rem; }
.chatbox { position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: calc(max(12px, env(safe-area-inset-bottom)) + 150px); display: grid; gap: 6px; }
.chatbox button { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--edge); background: var(--glass2); font-weight: 700; }

.bigmap { position: fixed; inset: 0; z-index: 11; background: #0b1016; }
.bigmap canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.maptop { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 12px; align-items: center; }
.maptop b { font: 900 1.1rem var(--display); text-transform: uppercase; } .maptop small { flex: 1; color: var(--ink3); }

.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(4, 6, 9, 0.6); backdrop-filter: blur(6px); padding: 14px; }
.mcard { width: min(620px, 100%); max-height: calc(100dvh - 28px); overflow: auto; padding: 22px; border-radius: 6px 22px 6px 22px; background: linear-gradient(180deg, rgba(26, 32, 42, 0.98), rgba(14, 18, 24, 0.98)); border: 1px solid var(--edge); text-align: center; touch-action: pan-y; }
.mcard h2 { margin: 0; font: 900 clamp(1.8rem, 6vw, 2.8rem) var(--display); letter-spacing: 0.06em; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mcard .stars { font-size: 2.2rem; letter-spacing: 6px; color: #3a414c; } .mcard .stars i { font-style: normal; color: #ffc93a; }
.mcard table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.92rem; }
.mcard td { padding: 6px 8px; text-align: right; border-top: 1px solid rgba(255, 255, 255, 0.06); } .mcard td:first-child { text-align: left; color: var(--ink3); }
.mbtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; } .mbtns .go { width: auto; margin: 0; padding: 13px 24px; font-size: 0.95rem; }

/* touch */
.touch { position: absolute; inset: 0; pointer-events: none; }
.touch > * { pointer-events: auto; }
.wheel { position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); width: 170px; height: 170px; touch-action: none; }
.wheel-in { width: 100%; height: 100%; border-radius: 50%; border: 14px solid rgba(30, 34, 40, 0.85); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15), inset 0 0 0 2px rgba(255, 255, 255, 0.1); box-sizing: border-box; position: relative; background: radial-gradient(circle, rgba(30, 34, 40, 0.85) 0 18%, transparent 19%); }
.wheel-in::before, .wheel-in::after { content: ''; position: absolute; background: rgba(30, 34, 40, 0.85); }
.wheel-in::before { left: 0; right: 0; top: 50%; height: 12px; margin-top: -6px; } .wheel-in::after { left: 50%; bottom: 0; top: 50%; width: 12px; margin-left: -6px; }
.wheel-in i { position: absolute; top: -12px; left: 50%; width: 8px; height: 10px; margin-left: -4px; background: var(--acc); border-radius: 3px; }
.tb { position: absolute; width: 50px; height: 50px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(14, 18, 24, 0.6); font-size: 1rem; font-weight: 900; display: grid; place-items: center; touch-action: none; }
.tb.on { background: rgba(255, 179, 0, 0.5); }
.tb.gas { right: calc(max(14px, env(safe-area-inset-right)) + 0px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 0px); width: 70px; height: 120px; border-radius: 16px; background: rgba(40, 140, 80, 0.4); }
.tb.brk { right: calc(max(14px, env(safe-area-inset-right)) + 80px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 0px); width: 80px; height: 80px; border-radius: 16px; background: rgba(180, 50, 40, 0.4); }
.tb.dir { right: calc(max(14px, env(safe-area-inset-right)) + 170px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 0px); }
.tb.pk { right: calc(max(14px, env(safe-area-inset-right)) + 170px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 58px); }
.tb.cc { right: calc(max(14px, env(safe-area-inset-right)) + 80px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 88px); }
.tb.act { right: calc(max(14px, env(safe-area-inset-right)) + 0px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 130px); }
.tb.hitch { right: calc(max(14px, env(safe-area-inset-right)) + 58px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 146px); }
.tb.lt { left: calc(max(18px, env(safe-area-inset-left)) + 180px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 0px); width: 44px; height: 44px; }
.tb.hn { left: calc(max(18px, env(safe-area-inset-left)) + 180px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 52px); width: 44px; height: 44px; }
.tb.il { left: calc(max(18px, env(safe-area-inset-left)) + 0px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 180px); width: 44px; height: 40px; }
.tb.ir { left: calc(max(18px, env(safe-area-inset-left)) + 126px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 180px); width: 44px; height: 40px; }
.tb.chat { left: calc(max(18px, env(safe-area-inset-left)) + 180px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 104px); width: 44px; height: 44px; }
body.touchmode .dash { bottom: auto; top: calc(max(8px, env(safe-area-inset-top)) + 46px); transform: scale(0.66); transform-origin: right top; }
body.touchmode .h-right .money, body.touchmode .h-right .fatigue { display: none; }
body.touchmode .toasts { top: calc(max(8px, env(safe-area-inset-top)) + 50px); width: 46vw; font-size: 0.8rem; }
body.touchmode .pause, body.touchmode .mapbtn, body.touchmode .cambtn { top: calc(max(8px, env(safe-area-inset-top)) + 2px); }
body.touchmode #mini { width: 130px; height: 130px; }
body.touchmode .h-left { width: 170px; }
body.touchmode .jobcard { font-size: 0.72rem; padding: 7px 9px; }
body.touchmode .prompt { bottom: auto; top: 22%; }
.rotate { display: none; }
@media (orientation: portrait) and (pointer: coarse) {
  body.touchmode .rotate { display: grid; position: fixed; z-index: 15; left: 50%; top: 40%; transform: translateX(-50%); place-items: center; gap: 6px; padding: 14px 18px; border-radius: 14px; background: rgba(10, 12, 16, 0.85); text-align: center; font-weight: 700; pointer-events: none; }
  .rotate span { font-size: 2rem; animation: tilt 1.4s ease-in-out infinite; }
}
@keyframes tilt { 50% { transform: rotate(-90deg); } }

@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); left: 16px; right: 16px; } .tile { min-height: 104px; padding: 12px; } .brand { left: 16px; } .brand b { font-size: 9vw; } .job { grid-template-columns: 1fr 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } .slider { grid-template-columns: 1fr 120px 40px; } }
@media (max-height: 520px) { .tile b { font-size: 0.92rem; padding-right: 30px; } .tile .ico { font-size: 1.2rem; } .brand { top: calc(max(8px, env(safe-area-inset-top)) + 52px); } .brand b { font-size: 2.4rem; } .brand small { display: none; } .tiles { grid-template-columns: repeat(4, minmax(0, 180px)); right: auto; } .tile { min-height: 84px; } .tile small { display: none; } }
@media (max-width: 440px) { .tile .ico { font-size: 1.2rem; } .tile b { font-size: 0.95rem; } }
