@font-face { font-family: 'pricedown-fallback'; src: local('Impact'); }
html, body, body * { -webkit-user-select: none; user-select: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; font: 12px/1.45 ui-monospace, Consolas, monospace; color: #e8e8e8; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
#tv { position: fixed; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; pointer-events: none; visibility: hidden; background: #000; }
#tv iframe { display: block; border: 0; pointer-events: none; }
#tvnow { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); max-width: 60vw; padding: 3px 12px; border-radius: 4px; background: rgba(0,0,0,.5); color: #f2d675; font: 13px/1.4 Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; opacity: 0; transition: opacity .4s; }
#tvnow.on { opacity: 1; }
#hudcanvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#hud.hidden { display: none; }
#hud { position: fixed; bottom: 40px; right: 108px; text-align: right; opacity: .8; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; pointer-events: none; }
#hud .clock { font: 34px/1 'pricedown-fallback', Impact, sans-serif; color: #fff; letter-spacing: 1px; margin-bottom: 6px; -webkit-text-stroke: 1px #000; }
#hud .hint { color: #f7d06b; }
#facts { position: fixed; left: 12px; top: 12px; max-width: 460px; background: rgba(0,0,0,.55); padding: 8px 10px; border-left: 3px solid #4d9c47; }
#facts.hidden { display: none; }
#facts table { border-collapse: collapse; margin-top: 4px; } #facts td { padding: 0 10px 0 0; vertical-align: top; } #facts td:last-child { color: #9fd38f; }
#facts .k { color: #888; float: right; }
#loading { position: fixed; inset: 0; background: #000; display: flex; align-items: flex-end; justify-content: center; transition: opacity .6s; }
#loading canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
#loading #status { position: relative; margin-bottom: 28px; background: rgba(0,0,0,.6); padding: 6px 14px; font-size: 13px; }
#loading.done { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .6s, visibility 0s .6s; } /* gone from compositing once faded: a full-screen layer at opacity 0 still costs Firefox */
#loading.error #status { color: #ff7b7b; }
@media (max-width: 700px) { #facts { max-width: calc(100% - 40px); } }
#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; }

/* --- pause menu (GTA SA style) --- */
#menu { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(8,14,22,.35) 0%, rgba(2,4,8,.6) 100%); /* an overlay: the world keeps moving behind it, so no blur */
  color: #e9e3cf; user-select: none; }
#menu.hidden { display: none; }
.menu-page { width: min(680px, 92vw); display: flex; flex-direction: column; align-items: center; }
.menu-page.hidden { display: none; }
.menu-title { font: 46px/1 'pricedown-fallback', Impact, sans-serif; letter-spacing: 2px; color: #f2b807;
  -webkit-text-stroke: 1.5px #1a1205; text-shadow: 3px 3px 0 rgba(0,0,0,.6); }
.menu-title.small { font-size: 34px; margin-bottom: 18px; }
.menu-sub { font: 22px/1 'pricedown-fallback', Impact, sans-serif; letter-spacing: 6px; color: #cfd6dd; margin: 2px 0 34px; opacity: .85; }
.menu-rows { width: 320px; }
.menu-row { font: 30px/1 'pricedown-fallback', Impact, sans-serif; letter-spacing: 1px; color: #d7d2c2; text-align: center;
  padding: 12px 10px; margin: 4px 0; border-radius: 4px; cursor: pointer; transition: background .08s, color .08s, transform .08s; }
.menu-row:hover { color: #fff; }
.menu-row.sel { background: linear-gradient(90deg, rgba(242,184,7,0) 0%, rgba(242,184,7,.22) 50%, rgba(242,184,7,0) 100%);
  color: #ffd43b; transform: scale(1.04); text-shadow: 0 0 10px rgba(242,184,7,.4); }
.menu-hint { margin-top: 34px; font: 13px/1.4 ui-monospace, Consolas, monospace; color: #8b94a0; letter-spacing: .5px; }
.menu-settings-body { width: 460px; margin-top: 6px; }
.menu-setting { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 4px; }
.menu-setting.sel { background: rgba(242,184,7,.14); }
.menu-setting-label { font: 22px/1 'pricedown-fallback', Impact, sans-serif; letter-spacing: 1px; color: #d7d2c2; width: 170px; }
.menu-slider { position: relative; flex: 1; height: 10px; background: rgba(255,255,255,.14); border-radius: 5px; overflow: hidden; }
.menu-slider-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 80%; background: linear-gradient(90deg, #8a6a05, #f2b807); }
.menu-setting-val { width: 56px; text-align: right; font: 16px/1 ui-monospace, monospace; color: #ffd43b; }
#mapcanvas { width: min(88vw, 74vh); max-width: 1168px; aspect-ratio: 1168 / 860; background: #0a1a2a; cursor: crosshair;
  border: 2px solid rgba(242,184,7,.5); border-radius: 4px; image-rendering: auto; box-shadow: 0 8px 40px rgba(0,0,0,.6); }

/* multiplayer: SA-MP-style chat (top left, 10 lines) and name tags. By eye, not decoded. */
#chat { position: fixed; left: 24px; top: 14px; width: min(640px, calc(100% - 48px)); pointer-events: none; font: bold 15px/1.25 Arial, sans-serif; color: #fff; }
#chatlog div { text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; overflow-wrap: anywhere; }
#chatlog .sys { color: #a9c4e4; }
#chatin { display: none; width: 100%; margin-top: 4px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.35); color: #fff; font: inherit; padding: 3px 6px; pointer-events: auto; outline: none; }
#chat.typing #chatin { display: block; }
#tags { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#tags .tag { position: absolute; left: 0; top: 0; text-align: center; font: bold 13px/1.1 Arial, sans-serif; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; white-space: nowrap; }
#tags .tag i { display: block; width: 44px; height: 5px; margin: 2px auto 0; background: #4b0a0a; border: 1px solid #000; }
#tags .tag b { display: block; width: 100%; height: 100%; background: #b4191d; }
#tags .tag .say { display: none; width: max-content; max-width: 280px; margin: 0 auto 4px; color: #fff; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
#tags .tag.saying .say { display: block; }
#tags .tag .afk { display: none; margin-bottom: 2px; color: #ffd24a; font-size: 13px; font-variant-numeric: tabular-nums; }
#tags .tag.away .afk { display: block; }
#tags .tag.self span, #tags .tag.self i, #tags .tag.self .vox { display: none; }

/* voice chat mic: from the user's own CEF mic HUD (cef_client/cef/assets/mic_hud/index.html) */
#ping { position: fixed; top: 3px; right: 8px; z-index: 5; color: #3dff6e; font: bold 12px/1.2 "Segoe UI", system-ui, sans-serif; text-shadow: 0 1px 2px #000; white-space: nowrap; pointer-events: none; user-select: none; }
#mic { position: fixed; right: 28px; bottom: 28px; width: 64px; height: 64px; pointer-events: none; user-select: none; }
#mic.hidden { display: none; }
#mic-btn { width: 64px; height: 64px; box-sizing: border-box; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #3a4558 0%, #1a1f2b 70%); border: 3px solid rgba(255,255,255,0.22); box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
#mic.on #mic-btn { background: radial-gradient(circle at 35% 30%, #5dff8a 0%, #12b34a 65%, #0a7a32 100%); border-color: rgba(180,255,200,0.85);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.28), 0 8px 22px rgba(16,185,129,0.45); transform: scale(1.06); }
#mic.off #mic-btn { border-color: rgba(255,90,90,0.7); }
#mic.off #mic-btn::after { content: ''; position: absolute; width: 40px; height: 3px; background: #ff5a5a; transform: rotate(-45deg); border-radius: 2px; }
#mic-btn svg { width: 30px; height: 30px; fill: #e8edf7; opacity: 0.92; }
#mic.on #mic-btn svg { fill: #fff; opacity: 1; }
#mic-hint { position: absolute; right: 74px; bottom: 18px; color: rgba(255,255,255,0.55); font: 11px/1.2 "Segoe UI", system-ui, sans-serif; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8); opacity: 0; transition: opacity .2s; }
#mic-hint.show { opacity: 1; }
#tags .tag .vox { display: none; align-items: flex-end; justify-content: center; gap: 2px; height: 18px; margin-bottom: 3px; }
#tags .tag.talk .vox { display: flex; }
#tags .tag .vox svg { width: 18px; height: 18px; fill: #22c55e; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 3px rgba(34,197,94,.7)); margin-right: 2px; }
#tags .tag .vox u { display: block; width: 3px; height: 3px; background: #22c55e; box-shadow: 0 0 1px #000; border-radius: 1px; transition: height .06s linear; }

/* public server: choose your own game folder */
#folderpick, #dlgate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); box-sizing: border-box;
  background: rgba(10,12,16,.92); border: 1px solid rgba(242,184,7,.5); border-radius: 6px; padding: 20px 22px; color: #ddd; font: 15px/1.45 Arial, sans-serif; z-index: 5; }
#folderpick.hidden, #folder-again.hidden, #dlgate.hidden, #dl-btn.hidden, #dl-alt.hidden, #dl-bar.hidden, #newver.hidden { display: none; }
#dl-list { margin-top: 8px; max-height: 130px; overflow: auto; font-size: 12px; line-height: 1.5; color: #aaa; overflow-wrap: anywhere; }
#newver { position: fixed; z-index: 50; left: 50%; bottom: 60px; transform: translateX(-50%); max-width: calc(100% - 32px); box-sizing: border-box; padding: 8px 12px; border-radius: 4px; background: rgba(0,0,0,.85); color: #eee; font: 14px Arial, sans-serif; }
#newver button { margin-left: 8px; background: #f2b807; color: #111; border: 0; border-radius: 4px; padding: 5px 12px; font: bold 13px Arial, sans-serif; cursor: pointer; }
#folderpick .fp-title, #dlgate .fp-title { font: 26px/1.1 'pricedown-fallback', Impact, sans-serif; color: #f2b807; margin-bottom: 10px; letter-spacing: 1px; }
#folder-msg.err, #dl-msg.err { color: #ff8a8a; }
#dl-bar { height: 10px; margin-top: 14px; background: #2d3442; border-radius: 5px; overflow: hidden; }
#dl-fill { width: 0; height: 100%; background: #f2b807; transition: width .2s; }
#dl-info { margin-top: 8px; font-size: 13px; color: #aaa; font-variant-numeric: tabular-nums; }
#folderpick button, #dlgate button { margin-top: 14px; background: #f2b807; color: #111; border: 0; border-radius: 4px; padding: 9px 16px; font: bold 15px Arial, sans-serif; cursor: pointer; }
#folderpick button.secondary, #dl-alt { background: #2d3442 !important; color: #eee !important; }
#folderpick button:focus-visible, #dlgate button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#camname { position: fixed; left: 50%; top: 42px; transform: translateX(-50%); padding: 3px 12px; border-radius: 4px; background: rgba(0,0,0,.5); color: #fff; font: 13px/1.4 Arial, sans-serif; pointer-events: none; opacity: 0; transition: opacity .3s; }
#camname.on { opacity: 1; }
#tv.watch { z-index: 61; }
#yt { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #0f0f0f; color: #f1f1f1; font: 14px Roboto, Arial, sans-serif; }
#yt.hidden, #yt-watch.hidden, #yt-list.hidden { display: none; }
#yt button { font: inherit; color: inherit; cursor: pointer; }
#yt-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #272727; }
#yt-home { background: none; border: 0; font-size: 18px !important; font-weight: bold; white-space: nowrap; padding: 0; }
#yt-logo { display: inline-block; width: 30px; line-height: 21px; border-radius: 6px; background: #f00; color: #fff; font-size: 11px; text-align: center; vertical-align: 2px; }
#yt-form { flex: 1; display: flex; min-width: 0; max-width: 640px; margin: 0 auto; }
#yt-q { flex: 1; min-width: 0; box-sizing: border-box; padding: 8px 14px; background: #121212; border: 1px solid #303030; border-right: 0; border-radius: 20px 0 0 20px; color: #f1f1f1; font: 15px Roboto, Arial, sans-serif; outline: none; }
#yt-q:focus { border-color: #1c62b9; }
#yt-form button { padding: 0 16px; background: #222; border: 1px solid #303030; border-radius: 0 20px 20px 0; }
#yt-close, #yt-tohome { background: #272727; border: 0; border-radius: 16px; padding: 7px 14px; white-space: nowrap; }
#yt-list { flex: 1; overflow: auto; padding: 16px; }
#yt-msg { margin-bottom: 14px; color: #aaa; }
#yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px 16px; }
.yt-card { display: block; padding: 0; background: none; border: 0; text-align: left; min-width: 0; }
.yt-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #222; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-len { position: absolute; right: 6px; bottom: 6px; padding: 1px 4px; border-radius: 4px; background: rgba(0,0,0,.8); font-size: 12px; }
.yt-len.live { background: #c00; }
.yt-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 9px; font-weight: 500; line-height: 20px; }
.yt-sub { display: block; margin-top: 4px; color: #aaa; font-size: 12px; }
.yt-card:hover .yt-title, .yt-card:focus-visible .yt-title { color: #3ea6ff; }
#yt-watch { flex: 1; overflow: auto; padding: 16px; }
#yt-player { width: min(100%, calc((100vh - 230px) * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto; background: #000; }
#yt-wtitle { max-width: 1100px; margin: 14px auto 0; font-size: 18px; font-weight: bold; }
#yt-wsub, #yt-wnote { max-width: 1100px; margin: 4px auto 0; color: #aaa; }
#yt-tohome { display: block; margin: 12px auto 0; }
#loadmusic { position: fixed; z-index: 100; right: 16px; bottom: 16px; width: 200px; max-width: calc(100% - 32px); }
#loadmusic iframe { display: block; border: 0; border-radius: 6px; pointer-events: none; }
#loadmusic-note { margin-top: 6px; color: #f2d675; font: 12px Arial, sans-serif; text-align: center; }
#xhair { position: fixed; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 0 1px #000; pointer-events: none; }
#xhair.hidden, #castbar.hidden, #eye.hidden, #gm.hidden, #gm-main.hidden, #gm-dj.hidden, #shop.hidden { display: none; }
#castbar { position: fixed; left: 50%; bottom: 22%; width: min(280px, calc(100% - 32px)); height: 20px; transform: translateX(-50%); overflow: hidden; border: 1px solid #000; border-radius: 3px; background: rgba(0,0,0,.65); pointer-events: none; }
#castfill { width: 0; height: 100%; background: linear-gradient(#ffc04d, #e0641a); }
#castbar span { position: absolute; inset: 0; color: #fff; font: bold 12px/20px Arial, sans-serif; text-align: center; text-shadow: 0 1px 2px #000; }
#eye { position: fixed; left: 50%; top: 50%; width: 56px; margin: -16px -28px; pointer-events: none; filter: drop-shadow(0 1px 2px #000); }
#eye svg { display: block; width: 100%; }
#eye path { fill: #fff; stroke: #111; stroke-width: 1.5; } #eye circle { fill: #222; }
#eye.near path { fill: #32d74b; }
#gm { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); color: #eee; font: 14px Arial, sans-serif; }
#gm-main, #gm-dj { display: flex; flex-direction: column; gap: 10px; width: min(300px, calc(100% - 32px)); box-sizing: border-box; padding: 20px; border-radius: 6px; background: #161a22; }
.gm-title { color: #f2b807; font: 26px/1.1 Impact, sans-serif; letter-spacing: 1px; }
#gm button { border: 0; border-radius: 4px; padding: 9px 14px; background: #2d3442; color: #eee; font: bold 14px Arial, sans-serif; cursor: pointer; }
#gm-car, #dj-tv { background: #f2b807 !important; color: #111 !important; }
#shop { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f4f5f7; color: #1a1d24; }
#shop-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #dfe2e8; }
#shop-q { flex: 1; min-width: 120px; padding: 8px 12px; border: 1px solid #cfd3da; border-radius: 4px; font: 14px Arial, sans-serif; }
#shop-class { padding: 8px; border: 1px solid #cfd3da; border-radius: 4px; background: #fff; font: 14px Arial, sans-serif; }
#shop-msg { padding: 10px 16px 0; color: #5c6370; }
#shop-grid { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; align-content: start; grid-auto-rows: max-content; padding: 12px 16px 16px; }
#gm .shop-card { display: block; min-width: 0; padding: 0 0 10px; overflow: hidden; border: 1px solid #dfe2e8; border-radius: 6px; background: #fff; color: #1a1d24; text-align: left; font-weight: normal; }
#gm .shop-card:hover, #gm .shop-card:focus-visible { border-color: #e0641a; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.shop-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #dde1e7; }
.shop-name { display: block; margin: 8px 10px 2px; font-weight: bold; }
.shop-sub { display: block; margin: 0 10px; color: #5c6370; font-size: 12px; }
#yt { inset: 25%; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
#yt-player { width: min(100%, calc((50vh - 250px) * 16 / 9)); min-width: 200px; }
#yt-top { flex-wrap: wrap; }
#yt-bar { display: flex; align-items: center; gap: 16px; padding: 8px 16px; border-top: 1px solid #272727; }
#yt-bar label { display: flex; align-items: center; gap: 8px; } #yt-vol { width: 160px; max-width: 40vw; }
#shop { inset: 25%; border-radius: 8px; overflow: hidden; }
#yt-grid { grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); }
#shop-grid { grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); }
#cshud { display: none; }
#scopeui { position: fixed; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 4; }
#scopeui.hidden { display: none; }
#cshud.hidden, #cscross.hidden { display: none; }
#cscross { position: fixed; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; --g: 4px; --l: 5px; }
#cscross i { position: absolute; background: rgb(50,250,50); }
#cscross i:nth-child(1), #cscross i:nth-child(2) { width: 1px; height: var(--l); left: 0; }
#cscross i:nth-child(1) { bottom: var(--g); } #cscross i:nth-child(2) { top: var(--g); }
#cscross i:nth-child(3), #cscross i:nth-child(4) { height: 1px; width: var(--l); top: 0; }
#cscross i:nth-child(3) { right: var(--g); } #cscross i:nth-child(4) { left: var(--g); }
#wardrobe { position: fixed; z-index: 60; right: 24px; top: 16%; width: min(280px, calc(100% - 32px)); box-sizing: border-box; padding: 18px; border-radius: 6px; background: rgba(14,16,22,.9); color: #eee; font: 14px Arial, sans-serif; }
#wardrobe.hidden { display: none; }
#wardrobe { top: 8%; max-height: 84%; overflow-y: auto; }
.wr-row { margin-top: 10px; } .wr-row div { display: flex; justify-content: space-between; gap: 10px; color: #bbb; font-size: 13px; } .wr-row b { color: #fff; text-align: right; }
.wr-row input { display: block; width: 100%; margin: 5px 0 0; accent-color: #f2b807; }
#wr-help { margin-top: 12px; color: #999; font-size: 12px; line-height: 1.5; }
#sndmenu { position: fixed; z-index: 62; width: 15vw; height: 20vh; min-width: 170px; min-height: 124px; box-sizing: border-box; display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; background: rgba(14,16,22,.92); color: #eee; font: 11px Arial, sans-serif; }
#sndmenu.hidden { display: none; }
#snd-top { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 2px 8px; background: #f2b807; color: #111; font-weight: bold; cursor: move; user-select: none; touch-action: none; }
#snd-x { border: 0; background: none; color: #111; font: bold 14px/1 Arial, sans-serif; cursor: pointer; padding: 0 4px; }
#snd-rows { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-evenly; padding: 2px 8px; overflow-y: auto; }
#snd-rows label { display: flex; align-items: center; gap: 5px; min-height: 16px; } #snd-rows span { flex: 0 0 62px; white-space: nowrap; color: #ccc; } #snd-rows input { flex: 1; min-width: 0; height: 12px; margin: 0; accent-color: #f2b807; } #snd-rows b { flex: 0 0 24px; text-align: right; }
#wr-done { width: 100%; margin-top: 14px; border: 0; border-radius: 4px; padding: 9px; background: #f2b807; color: #111; font: bold 14px Arial, sans-serif; cursor: pointer; }


/* the tablet's camera (N), as the others see it on your tablet: a small mirror in the corner */
#tabprev { position: fixed; right: 16px; bottom: 96px; width: 192px; height: 144px; object-fit: cover; transform: scaleX(-1); border: 6px solid #111216; border-radius: 10px; background: #0b0c10; z-index: 6; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
#tabprev.hidden { display: none; }

/* phone calls and the Tab player list (callui.js): a card at the middle of the right edge (clear of the chat, HUD, radar and mic); the colours, icon font, Roboto and round buttons of the user's messenger (tauri-app calls.css) */
@font-face { font-family: "tg-icons"; src: url("ui/fonts/icons.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Roboto"; font-weight: 400; src: url("ui/fonts/roboto-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 500; src: url("ui/fonts/roboto-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 400; src: url("ui/fonts/roboto-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-weight: 500; src: url("ui/fonts/roboto-500-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
#call .icon, #plist .icon { display: inline-block; font: normal 22px/1 "tg-icons"; speak: none; -webkit-font-smoothing: antialiased; }
.icon-phone::before { content: "\f1f0"; } .icon-phone-discard::before { content: "\f1f1"; } .icon-microphone::before { content: "\f1d1"; } .icon-muted::before { content: "\f1da"; }
#call { position: fixed; z-index: 63; top: 50%; right: 16px; transform: translateY(-50%); width: min(320px, calc(100% - 32px)); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: 12px; background: rgba(23,33,43,.95); color: #fff; font: 14px Roboto, Arial, sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.45); user-select: none; }
#call.hidden, #plist.hidden, #call [hidden] { display: none; }
#call-av, .pl-av { flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 500; }
#call-av { width: 48px; height: 48px; font-size: 22px; }
#call-av.pulse { animation: call-pulse 1.4s ease-out infinite; }
@keyframes call-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 100% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
#call-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#call-name { font-size: 17px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#call-status { color: #aaa; font-size: 13px; } #call-note { color: #f5a623; font-size: 12px; } #call-note:empty { display: none; }
#call .call-buttons { flex-basis: 100%; display: flex; justify-content: center; gap: 18px; }
#call .call-action { display: flex; flex-direction: column; align-items: center; color: #fff; font-size: 11px; white-space: nowrap; }
#call .call-action span { margin-top: 4px; color: #ccc; }
#call .call-action[hidden] { display: none; } /* after the display: flex above, which would win otherwise */
.call-round { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background-color .15s; }
.call-round.small { width: 40px; height: 40px; }
.call-round:hover { background: rgba(255,255,255,.22); }
.call-round.active { background: #fff; color: #707579; } .call-round.active:hover { background: #ddd; }
.call-round.leave { background: #ff595a; } .call-round.leave:hover { background: #d24646; }
.call-round.accept { background: #5cc85e; } .call-round.accept:hover { background: #4eab50; } .call-round.accept .icon { transform: rotate(-135deg); }
.call-round:disabled { opacity: .5; cursor: default; }
#plist { position: fixed; z-index: 64; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100% - 32px)); max-height: min(70vh, 560px); display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: rgba(23,33,43,.96); color: #fff; font: 14px Roboto, Arial, sans-serif; box-shadow: 0 8px 28px rgba(0,0,0,.5); }
#pl-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
#pl-top b { font-size: 16px; font-weight: 500; } #pl-count { flex: 1; color: #aaa; font-size: 13px; }
#pl-x { border: 0; background: none; color: #aaa; font: 22px/1 Arial, sans-serif; cursor: pointer; padding: 0 6px; } #pl-x:hover { color: #fff; }
#pl-rows { overflow-y: auto; padding: 6px 0; }
.pl-row { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 16px; } .pl-row:hover { background: rgba(255,255,255,.05); }
.pl-av { width: 40px; height: 40px; font-size: 18px; }
.pl-who { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pl-who b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pl-who small { color: #8a96a3; font-size: 12px; }
.pl-row .call-round { background: #3390ec; } .pl-row .call-round:hover { background: #2b7fd4; } .pl-row .call-round:disabled { background: rgba(255,255,255,.12); }
.pl-none { padding: 18px 16px; color: #8a96a3; text-align: center; }

/* the speedometer in a vehicle (speedo.js): bottom right, left of the voice mic */
#speedo { position: fixed; right: 104px; bottom: 18px; width: 150px; height: 150px; pointer-events: none; z-index: 5; }
#speedo.hidden { display: none; }

/* delete mode menu (editmode.js) */
#edm { position: fixed; z-index: 64; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); max-height: min(86vh, 640px); display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: rgba(18,20,26,.96); color: #eee; font: 14px Roboto, Arial, sans-serif; box-shadow: 0 8px 28px rgba(0,0,0,.5); }
#edm.hidden { display: none; }
#edm-top { cursor: move; display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; background: #c62828; color: #fff; } #edm-top b { font-size: 16px; font-weight: 500; }
#edm-x { border: 0; background: none; color: #fff; font: 22px/1 Arial, sans-serif; cursor: pointer; padding: 0 6px; }
#edm-del { margin: 12px 14px 4px; padding: 11px; border: 0; border-radius: 6px; background: #e53935; color: #fff; font: 500 14px Roboto, Arial, sans-serif; cursor: pointer; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#edm-del:hover { background: #c62828; } #edm-del:disabled { background: #444; color: #aaa; cursor: default; }
#edm-count { padding: 10px 16px 4px; color: #aaa; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
#edm-list { overflow-y: auto; padding: 0 0 8px; max-height: 110px; flex: none; }
.edm-row { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 16px; } .edm-row:hover { background: rgba(255,255,255,.05); }
.edm-who { flex: 1; min-width: 0; display: flex; flex-direction: column; } .edm-who b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .edm-who small { color: #8a96a3; font-size: 12px; }
.edm-row button { flex: none; border: 0; border-radius: 5px; padding: 6px 12px; background: #2e7d32; color: #fff; font: 500 13px Roboto, Arial, sans-serif; cursor: pointer; } .edm-row button:hover { background: #256528; }
.edm-none { padding: 14px 16px; color: #8a96a3; }

/* the player panel and dice (dice.js), like the DJ stand's panel (#gm-dj) */
#pm { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); color: #eee; font: 14px Arial, sans-serif; }
#pm.hidden, #pm .hidden { display: none !important; }
#pm .pm-panel, #pm-main, #pm-betrow { display: flex; flex-direction: column; gap: 10px; } #pm .pm-panel { width: min(300px, calc(100% - 32px)); box-sizing: border-box; padding: 20px; border-radius: 6px; background: #161a22; }
#pm button { border: 0; border-radius: 4px; padding: 9px 14px; background: #2d3442; color: #eee; font: bold 14px Arial, sans-serif; cursor: pointer; } #pm button:hover, #pm button:focus-visible { background: #f2b807; color: #111; }
#pm-have { color: #aab; font-size: 13px; } #pm-bet { padding: 9px 10px; border: 1px solid #3a4252; border-radius: 4px; background: #0e1117; color: #fff; font: bold 16px Arial, sans-serif; }
/* the gamemode's GameTextForPlayer style 1: big money text, centre */
#gametext { position: fixed; left: 0; right: 0; top: 30%; text-align: center; font: 64px/1 'pricedown-fallback', Impact, sans-serif; letter-spacing: 2px; -webkit-text-stroke: 2px #000; pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 7; }
#gametext.on { opacity: 1; }
#edx { position: fixed; left: 50%; top: 50%; width: 14px; height: 14px; margin: -9px; border: 2px solid #ff3b30; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.6); pointer-events: none; z-index: 6; } #edx.hidden { display: none; } /* delete mode's aim */

/* the Hotkeys window (hotkeys.js): the Game menu's dark panels, three of them side by side */
#gm-keys { display: flex; flex-direction: column; gap: 10px; width: min(1040px, calc(100% - 32px)); max-height: calc(100% - 32px); box-sizing: border-box; padding: 20px; border-radius: 6px; background: #161a22; }
#gm-keys.hidden { display: none; }
#gm-cmds { display: flex; flex-direction: column; gap: 10px; width: min(1040px, calc(100% - 32px)); max-height: calc(100% - 32px); box-sizing: border-box; padding: 20px; border-radius: 6px; background: #161a22; }
#gm-cmds.hidden { display: none; }
#gm #cm-done { background: #f2b807; color: #111; }
#cm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 0; overflow: hidden; }
.cm-row { padding: 7px 0; border-bottom: 1px solid #2a313d; }
.cm-head { display: flex; align-items: baseline; gap: 8px; }
.cm-usage { color: #fff; font: bold 13px Consolas, monospace; }
.cm-alias { color: #8b93a3; font-size: 11px; }
.cm-about { color: #c9cfda; font-size: 12px; margin-top: 2px; }
.cm-ex { color: #f2b807; font: 12px Consolas, monospace; margin-top: 2px; }
@media (max-width: 800px) { #cm-list { grid-template-columns: 1fr; overflow-y: auto; } }
body.no-tagstatus .tag .afk, body.no-tagstatus .tag .vox { display: none !important; }
#chatlog .ts { color: #ddd; }
#hk-top { display: flex; align-items: center; gap: 10px; }
#hk-top b { flex: 1; font-size: 18px; }
#gm #hk-done { background: #f2b807; color: #111; }
#hk-msg { min-height: 18px; color: #aab2c0; font-size: 13px; }
#hk-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 0; overflow: hidden; }
.hk-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-height: calc(100vh - 170px); overflow-y: auto; padding: 12px; border-radius: 6px; background: #1f2530; scrollbar-width: thin; scrollbar-color: #3a4252 transparent; }
.hk-group { padding: 8px 0 4px; color: #f2b807; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: .05em; }
.hk-group:first-child { padding-top: 0; }
.hk-row { display: flex; align-items: center; gap: 6px; min-height: 30px; }
.hk-label { flex: 1; min-width: 0; font-size: 13px; color: #dfe3ea; }
.hk-label small { display: block; color: #8b93a3; font-size: 11px; }
#gm button.hk-key, span.hk-key { flex: none; min-width: 74px; box-sizing: border-box; padding: 5px 8px; border-radius: 4px; background: #2d3442; color: #eee; font: bold 12px Arial, sans-serif; text-align: center; }
#gm button.hk-key.custom { color: #f2b807; }
#gm button.hk-key.wait { background: #f2b807; color: #111; }
#gm button.hk-undo, span.hk-undo { flex: none; width: 24px; height: 24px; padding: 0; background: transparent; color: #8b93a3; font-size: 14px; }
#gm button.hk-undo:disabled { visibility: hidden; }
@media (max-width: 800px) { #hk-list { grid-template-columns: 1fr; overflow-y: auto; } .hk-col { max-height: none; } }

/* looking through the M4's scope: the 3D tube is drawn by the game, this is the lens over it. The ring is the eye's limit, the sheen and edge fall-off are the glass; only V's red dot marks the aim */
#scopeui b { position: absolute; left: -40vh; top: -40vh; width: 80vh; height: 80vh; border-radius: 50%; box-shadow: 0 0 0 200vmax #000, inset 0 0 7vh 3vh rgba(0,0,0,.92), inset 0 0 18vh rgba(0,0,0,.35); }
#scopeui u { position: absolute; left: -40vh; top: -40vh; width: 80vh; height: 80vh; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(190,225,255,.13), rgba(190,225,255,0) 42%), radial-gradient(circle at 70% 78%, rgba(120,255,190,.05), rgba(0,0,0,0) 38%); }
#scopeui i { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #ff2318; box-shadow: 0 0 5px 1px rgba(255,40,20,.8); }
#m4ret { position: fixed; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; }
#m4ret.hidden { display: none; }
#atm { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); box-sizing: border-box; padding: 18px; border-radius: 6px; background: #161a22; color: #eee; font: 14px Arial, sans-serif; }
#atm.hidden { display: none; }
#atm-top { display: flex; align-items: center; justify-content: space-between; font-size: 18px; cursor: move; user-select: none; }
#atm-x { width: 30px; height: 30px; border: 0; border-radius: 4px; background: #2d3442; color: #eee; font-size: 18px; cursor: pointer; }
.atm-sub { color: #f2b807; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: .05em; }

#edm-addt { margin: 8px 16px 0; font-weight: bold; color: #fff; }
#edm > * { flex: none; }
#edm #edm-add { flex: 1 1 auto; min-height: 150px; display: grid; grid-auto-rows: max-content; align-content: start; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 6px 12px 12px; overflow-y: auto; scrollbar-width: thin; }
#edm #edm-add button { display: block; width: 100%; height: auto; margin: 0; padding: 0; border: 2px solid transparent; border-radius: 4px; background: #dde0e6; overflow: hidden; cursor: pointer; }
#edm-add button:hover { border-color: #f2b807; }
#edm-add img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

#atm-body { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a4252 transparent; }
.atm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.atm-grid button { display: block; min-width: 0; padding: 0 0 6px; overflow: hidden; border: 2px solid transparent; border-radius: 5px; background: #2d3442; color: #eee; font: 12px Arial, sans-serif; text-align: center; cursor: pointer; }
.atm-grid button img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #dde1e7; margin-bottom: 5px; }
.atm-grid button.none { min-height: 74px; }
.atm-grid button:hover { border-color: #5a6578; }
.atm-grid button.on { border-color: #f2b807; color: #f2b807; font-weight: bold; }
.shop-card { position: relative; }
.shop-strip { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; background-size: 800% 100%; animation: strip var(--d, 1.2s) steps(8, jump-none) infinite; }
@keyframes strip { from { background-position-x: 0; } to { background-position-x: 100%; } }

/* game mode picker (modes.js) */
#modes { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 16px; box-sizing: border-box; background: radial-gradient(ellipse at center, rgba(10,12,16,.82), rgba(0,0,0,.95)); font-family: Arial, sans-serif; }
#modes.hidden { display: none; }
#modes-title { color: #e9e3cf; font: bold 30px/1.1 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; text-shadow: 2px 2px 0 #000; }
#modes-cards { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.mode-card { position: relative; display: flex; flex-direction: column; width: min(420px, calc(100vw - 32px)); padding: 0 0 18px; border: 2px solid #2b2f38; border-radius: 8px; background: #12151b; color: #dfe3ea; text-align: left; cursor: pointer; overflow: hidden; transition: transform .12s, border-color .12s; }
.mode-card:hover, .mode-card:focus-visible { transform: translateY(-4px); border-color: #f2b807; outline: none; }
.mode-pic { position: relative; display: block; align-self: stretch; width: 100%; height: 230px; background: #000; overflow: hidden; }
.mode-pic img, .mode-pic canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.mode-pic .mode-logo { inset: auto auto 12px 14px; width: 130px; height: auto; object-fit: contain; filter: drop-shadow(0 2px 4px #000); }
.mode-name { margin: 14px 18px 2px; font: bold 26px/1.1 Arial, sans-serif; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.mode-tag { margin: 0 18px 8px; color: #f2b807; font-size: 13px; font-weight: bold; text-transform: uppercase; letter-spacing: .05em; }
.mode-info { margin: 0 18px; color: #aab2c0; font-size: 14px; line-height: 1.45; }
.mode-key { position: absolute; top: 10px; right: 12px; width: 26px; height: 26px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; font: bold 14px/26px Arial, sans-serif; text-align: center; }
/* out of the DM zone: SA's GameText style, red, middle of the screen */
#dmwarn { position: fixed; left: 50%; top: 32%; transform: translate(-50%, -50%); z-index: 40; pointer-events: none; color: #c8282a; font: bold 38px/1 Arial, sans-serif; letter-spacing: .03em; text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; white-space: nowrap; }
#dmwarn.hidden { display: none; }
#hurtfx { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 48%, rgba(110,0,0,0.38) 74%, rgba(70,0,0,0.78) 100%); } /* being hit: main.js hurtFx */
body.dm #gm-car, body.dm #gm-clothes, body.dm #gm-anim { display: none; }
