:root {
  --bg: rgba(8, 10, 24, 0.76);
  --line: rgba(0, 229, 255, 0.38);
  --cyan: #00e5ff;
  --pink: #ff2bd6;
  --gold: #ffd740;
  --green: #00e676;
  --red: #ff1744;
  --text: #e9f1ff;
  --muted: #93a0c2;
  --radius: 14px;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #05060f; color: var(--text); user-select: none; -webkit-user-select: none; touch-action: none; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

/* Umumiy shisha panel */
.panel3d {
  background: linear-gradient(160deg, rgba(16, 20, 48, 0.88), rgba(5, 7, 18, 0.92));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 43, 214, 0.16), 0 28px 70px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}
.btn {
  padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { background: rgba(0, 229, 255, 0.16); box-shadow: 0 0 18px rgba(0, 229, 255, 0.28); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.primary { background: linear-gradient(90deg, #00c6ff, #ff2bd6); border: 0; color: #fff; box-shadow: 0 6px 24px rgba(255, 43, 214, 0.38); }
.btn.gold { background: linear-gradient(90deg, #ffb300, #ffd740); color: #1a1200; border: 0; font-weight: 800; }
.btn.danger { background: rgba(255, 23, 68, 0.18); border-color: rgba(255, 23, 68, 0.5); }
.btn.big { width: 100%; padding: 15px; font-size: 17px; letter-spacing: 1px; font-weight: 800; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > * { flex: 1; }

/* Ekranlar va 3D ochilish animatsiyasi */
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 20; perspective: 1200px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.screen:not(.show) { display: none !important; }
.screen.show { opacity: 1; pointer-events: auto; }
.screen > .panel3d { transform: rotateX(12deg) translateY(24px) scale(.95); opacity: 0; transition: transform .38s cubic-bezier(.2, .9, .25, 1.12), opacity .28s; }
.screen.show > .panel3d { transform: none; opacity: 1; }
#modal { background: rgba(2, 3, 10, 0.5); }

input, select { width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.42); color: var(--text); font: inherit; font-size: 15px; outline: none; }
input:focus { box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.25); }
.loading .bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 10px; }
.loading i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width .2s; }
.loading span { color: var(--muted); font-size: 13px; }

/* ============================================================
   GTA ONLINE USLUBIDAGI PREMIUM 3D GAME LOBBY (V4.0)
   ============================================================ */
#menu.lobby-screen {
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.0) 0%, rgba(2, 4, 14, 0.25) 54%, rgba(3, 5, 16, 0.78) 100%),
    linear-gradient(90deg, rgba(4, 6, 18, 0.82) 0%, rgba(4, 6, 18, 0.04) 26%, rgba(4, 6, 18, 0.04) 74%, rgba(4, 6, 18, 0.84) 100%);
  overflow: hidden;
  pointer-events: none;
}
#menu.lobby-screen:not(.show) {
  display: none !important;
}
#menu.lobby-screen.show {
  pointer-events: none; /* Markaziy 3D sahnani 360° aylantirish uchun */
}
.lobby-loading,
.lobby-topbar,
.lobby-left,
.lobby-right,
.showroom-top-pill,
.lobby-carousel-wrap,
.lobby-bottombar {
  pointer-events: auto;
}

.lobby-loading {
  width: min(440px, 92vw);
  padding: 28px 26px;
  text-align: center;
}
.lobby-loading .bar {
  height: 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 16px 0 10px;
}
.lobby-loading .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--gold));
  transition: width 0.2s;
}
.lobby-loading span {
  color: var(--muted);
  font-size: 13px;
}

.panel-glass {
  background: linear-gradient(155deg, rgba(10, 14, 34, 0.84), rgba(5, 7, 18, 0.90));
  border: 1px solid rgba(0, 229, 255, 0.34);
  border-radius: 16px;
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.green-txt { color: var(--green); }
.cyan-txt { color: var(--cyan); }
.gold-txt { color: var(--gold); }
.full-w { width: 100%; }

.pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink 1.2s infinite;
}

.logo-3d-wrap { margin: 4px 0 8px; }
.logo {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: 2.5px;
  line-height: 0.96;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #0097a7, 0 8px 24px rgba(0, 229, 255, 0.65);
}
.logo span {
  display: block;
  color: var(--pink);
  text-shadow: 0 2px 0 #880e4f, 0 8px 28px rgba(255, 43, 214, 0.85);
}
.logo-sub {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
}

/* Asosiy 5-zonali Grid */
.lobby-layout {
  position: fixed;
  inset: 0;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 280px 1fr 275px;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "top top top"
    "left center right"
    "bottom bottom bottom";
  gap: 10px 14px;
  pointer-events: none;
}

/* 1. YUQORI PANEL */
.lobby-topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.lobby-server-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
}
.srv-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.srv-item small {
  color: var(--muted);
  font-weight: 600;
}
.srv-sep {
  color: rgba(255, 255, 255, 0.18);
}

.lobby-profile-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
}
.prof-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.28), rgba(255, 43, 214, 0.28));
  border: 1.5px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.prof-name-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.prof-name-box input {
  margin: 0;
  padding: 2px 6px;
  width: 118px;
  height: 22px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}
.prof-id-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--cyan);
  font-weight: 800;
}
.prof-id-row button {
  font-size: 11px;
  padding: 0 3px;
  opacity: 0.85;
}
.prof-lv-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 72px;
  font-size: 11.5px;
  color: var(--gold);
}
.xp-bar {
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.xp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--pink));
}
.prof-money-box {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(255, 215, 64, 0.12);
  border: 1px solid rgba(255, 215, 64, 0.38);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.prof-gear-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 16px;
}
.prof-gear-btn:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.2);
}

/* 2. CHAP PANEL */
.lobby-left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  min-height: 0;
}
.lobby-brand {
  padding: 12px 14px;
  text-align: center;
  border-left: 3px solid var(--cyan);
}
.skyline-svg {
  width: 100%;
  height: 36px;
  margin-bottom: 2px;
}
.lobby-logo {
  font-size: 29px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.75);
}
.lobby-logo span {
  display: block;
  font-size: 32px;
  color: var(--pink);
  text-shadow: 0 0 22px rgba(255, 43, 214, 0.85);
}
.lobby-sub {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #cbd8ff;
  margin-top: 4px;
}
.lobby-slogan {
  font-size: 12px;
  font-style: italic;
  color: var(--gold);
  margin-top: 3px;
  font-weight: 700;
}

.lobby-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.nav-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(12, 17, 40, 0.86), rgba(7, 10, 24, 0.88));
  border: 1px solid rgba(0, 229, 255, 0.32);
  text-align: left;
  transition: transform 0.16s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.nav-card:hover {
  transform: translateX(4px);
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.35);
}
.nav-card.primary-card {
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.28), rgba(255, 43, 214, 0.26));
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.28);
}
.nav-card.gold-card {
  border-color: rgba(255, 215, 64, 0.55);
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.2), rgba(14, 16, 36, 0.88));
}
.nav-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.nav-txt {
  flex: 1;
  min-width: 0;
}
.nav-txt b {
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
}
.nav-txt small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-arr {
  font-style: normal;
  font-size: 20px;
  font-weight: 900;
  color: var(--cyan);
}

/* 3. MARKAZIY 3D SHOWROOM VA KARUSEL */
.lobby-center {
  grid-area: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  min-width: 0;
}
.showroom-top-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px;
  border-radius: 16px;
  width: min(640px, 100%);
  flex-wrap: wrap;
}
.sr-car-head strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}
.sr-specs {
  display: flex;
  gap: 10px;
  font-size: 11.5px;
  color: var(--gold);
  font-weight: 700;
  margin-top: 2px;
}
.sr-quick-tune {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sr-colors {
  display: flex;
  gap: 5px;
}
.sr-color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  transition: transform 0.15s;
}
.sr-color-dot.on,
.sr-color-dot:hover {
  transform: scale(1.2);
  border-color: #fff;
  box-shadow: 0 0 10px var(--cyan);
}
.sr-mini-btn {
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.35);
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
}
.sr-mini-btn:hover {
  background: rgba(0, 229, 255, 0.28);
}

.sr-drag-hint {
  margin-top: auto;
  margin-bottom: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(4, 8, 22, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  color: #c8d6ff;
  pointer-events: none;
}

.lobby-carousel-wrap {
  width: min(680px, 100%);
  padding: 8px 12px 10px;
}
.carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: var(--cyan);
}
.carousel-head small {
  color: var(--gold);
}
.carousel-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.car-nav-btn {
  width: 34px;
  height: 58px;
  border-radius: 11px;
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 900;
  color: var(--cyan);
  flex-shrink: 0;
  transition: 0.15s;
}
.car-nav-btn:hover {
  background: rgba(0, 229, 255, 0.3);
  transform: scale(1.04);
}
.lobby-car-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  padding: 2px;
}
.lobby-car-strip::-webkit-scrollbar { display: none; }
.lob-car-card {
  flex: 0 0 132px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: 0.16s;
}
.lob-car-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.lob-car-card.active {
  border-color: var(--cyan);
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.22), rgba(255, 43, 214, 0.16));
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}
.lob-car-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
}
.lob-car-card b {
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lob-car-card small {
  font-size: 10px;
  color: var(--muted);
}

/* 4. O'NG PANEL */
.lobby-right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  min-height: 0;
}
.lobby-weather {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 13px;
  font-size: 12.5px;
  color: #d6e2ff;
}
.lobby-weather b {
  font-size: 15px;
  color: var(--gold);
}
.lobby-card {
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lcard-head h3 {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #fff;
}
.live-tag {
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 900;
  background: rgba(0, 229, 255, 0.18);
  border: 1px solid var(--cyan);
  color: var(--cyan);
}
.lobby-map-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#lobbyMapCanvas {
  width: 100%;
  height: 126px;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: #070b1c;
  display: block;
}
.map-poi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.map-poi-chips button {
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
  font-weight: 700;
  color: #dce6ff;
}
.map-poi-chips button:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.2);
}

.lob-stat-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}
.lob-stat-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.lob-stat-list span {
  color: var(--muted);
}

/* 5. PASTKI BAR */
.lobby-bottombar {
  grid-area: bottom;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lob-quick-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  flex-wrap: wrap;
}
.lob-quick-btns button {
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  font-weight: 700;
  transition: 0.15s;
}
.lob-quick-btns button:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.18);
}

.lobby-enter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 38px;
  border-radius: 16px;
  background: linear-gradient(90deg, #ff8f00, #ffd740, #ff6d00);
  background-size: 200% 100%;
  border: 2px solid #fff3b0;
  color: #170d00;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1.5px;
  box-shadow: 0 8px 32px rgba(255, 179, 0, 0.55), 0 0 20px rgba(255, 215, 64, 0.45);
  transition: transform 0.16s, box-shadow 0.2s;
}
.lobby-enter-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 40px rgba(255, 215, 64, 0.78);
}
.lobby-enter-btn i {
  font-style: normal;
  font-size: 26px;
  line-height: 1;
}
.btn.pulse, .lobby-enter-btn.pulse { animation: pulseGlow 2.4s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 6px 24px rgba(255,179,0,.45); } 50% { box-shadow: 0 6px 42px rgba(0,229,255,.72); } }

/* ============================================================
   HUD VA REAL-VAQT ONLINE DO'STLAR RADARI
   ============================================================ */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud button, #hud .touch, #hud .online-peers-hud, #hud .hud-chat-widget, #hud .foot-actions { pointer-events: auto; }
.top { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 8px; align-items: stretch; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 12px; display: flex; flex-direction: column; justify-content: center; backdrop-filter: blur(8px); }
.chip small { color: var(--muted); font-size: 11px; }
.chip.money { margin-left: auto; font-size: 19px; font-weight: 800; color: var(--gold); text-shadow: 0 0 12px rgba(255, 215, 64, 0.5); transition: transform .2s; }
.chip.money.bump { transform: scale(1.12); }
.chip.clock span { font-size: 17px; font-weight: 700; }
.chip.clock small { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { font-size: 20px; padding: 0 14px; }

/* Online do'stlar real-vaqt radari va 30+ o'yinchi boshqaruv trayi */
.online-peers-hud {
  position: absolute;
  top: 72px;
  left: 14px;
  z-index: 12;
  pointer-events: auto;
}
.peers-hud-box {
  background: rgba(6, 12, 28, 0.90);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
  width: 240px;
  overflow: hidden;
}
.peers-hud-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 229, 255, 0.08);
  border: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.peers-hud-toggle-btn:hover {
  background: rgba(0, 229, 255, 0.16);
}
.peers-hud-label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.peers-hud-arrow {
  font-size: 10px;
  color: var(--cyan);
}
.peers-hud-scroll {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: #00e5ff rgba(0, 0, 0, 0.3);
}
.peers-hud-scroll.collapsed {
  display: none !important;
}
.peers-hud-scroll::-webkit-scrollbar {
  width: 4px;
}
.peers-hud-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
}
.peers-hud-scroll::-webkit-scrollbar-thumb {
  background: #00e5ff;
  border-radius: 3px;
}
.peer-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(14, 22, 44, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  transition: background 0.15s;
}
.peer-pill:hover {
  background: rgba(20, 32, 60, 0.9);
  border-color: rgba(0, 229, 255, 0.3);
}
.peer-pill-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.peer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 6px #00e676;
  flex-shrink: 0;
}
.peer-name {
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 700;
  max-width: 85px;
}
.peer-car-tag {
  font-size: 9px;
  color: #ffd740;
  background: rgba(255, 215, 64, 0.12);
  border: 1px solid rgba(255, 215, 64, 0.25);
  border-radius: 4px;
  padding: 1px 4px;
  flex-shrink: 0;
  font-weight: 600;
}
.peer-pill-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.peer-dist {
  color: var(--cyan);
  font-weight: 700;
  font-size: 10.5px;
}
.peer-tp-btn {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.18);
  border: 1px solid var(--cyan);
  font-size: 10px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.15s, background 0.15s;
}
.peer-tp-btn:hover {
  transform: scale(1.12);
  background: rgba(0, 229, 255, 0.35);
}

/* HUD ustidagi tezkor suhbat (Quick Chat) vidjeti */
.hud-chat-widget {
  position: absolute;
  left: 14px;
  bottom: 218px;
  width: min(290px, 44vw);
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 12;
}
.hud-chat-log {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 82px;
  overflow-y: auto;
  pointer-events: none;
  font-size: 11.5px;
}
.hud-chat-msg {
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(6, 10, 26, 0.76);
  border-left: 3px solid var(--cyan);
  color: #e9f1ff;
  backdrop-filter: blur(6px);
  width: fit-content;
  max-width: 100%;
  word-break: break-word;
}
.hud-chat-msg b { color: var(--gold); }
.hud-chat-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 12px;
  background: rgba(8, 12, 28, 0.82);
  border: 1px solid rgba(0, 229, 255, 0.35);
  backdrop-filter: blur(8px);
}
.hud-chat-bar .q-emo {
  padding: 3px 5px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
.hud-chat-bar .q-emo:hover { background: rgba(0, 229, 255, 0.25); }
.hud-chat-bar input {
  flex: 1;
  min-width: 55px;
  margin: 0;
  padding: 4px 7px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
}
.hud-chat-bar #hudChatSend {
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--cyan);
  color: #050816;
  font-weight: 900;
  font-size: 12px;
}

/* Piyoda (Personaj) harakat tugmalari */
.foot-actions {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 14;
}
.foot-actions button {
  padding: 7px 13px;
  border-radius: 12px;
  background: rgba(10, 14, 34, 0.88);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}
.foot-actions button:active { transform: scale(0.94); }

.hotbar button.hb-action {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 215, 64, 0.22), rgba(8, 10, 24, 0.88));
}

#minimap {
  position: absolute;
  left: 14px;
  bottom: 16px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.25);
  cursor: pointer;
  pointer-events: auto !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#minimap:hover {
  transform: scale(1.04);
  box-shadow: 0 0 36px rgba(0, 229, 255, 0.55);
}

.dash { position: absolute; right: 16px; bottom: 16px; display: grid; grid-template-columns: auto 210px; grid-template-rows: auto 1fr; gap: 6px 12px; align-items: end; }
.carname { grid-column: 1 / 3; text-align: right; font-weight: 800; letter-spacing: 1px; color: var(--cyan); text-shadow: 0 0 10px rgba(0, 229, 255, 0.6); }
.speedo { position: relative; width: 210px; height: 210px; grid-row: 2; grid-column: 2; }
.speedo canvas { width: 100%; height: 100%; }
.kmh { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 18px; }
.kmh b { font-size: 44px; font-weight: 900; line-height: 1; }
.kmh small { color: var(--muted); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.gear-badge { display: inline-block; padding: 1px 6px; border-radius: 5px; background: rgba(0, 229, 255, 0.18); border: 1px solid var(--line); color: var(--cyan); font-weight: 900; font-size: 11px; }
.gauges { grid-row: 2; grid-column: 1; display: flex; flex-direction: column; gap: 7px; width: 220px; margin-bottom: 14px; }
.gauge { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 7px 11px; font-size: 12.5px; }
.gauge small { color: var(--muted); }
.meter { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 6px; margin-top: 5px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 50%; background: linear-gradient(90deg, #ff6d00, var(--green)); transition: width .3s; }
.meter.hp i { background: linear-gradient(90deg, var(--red), var(--cyan)); }
.meter i.low { animation: blink .8s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.mission { position: absolute; top: 76px; right: 16px; min-width: 220px; background: var(--bg); border: 1px solid rgba(255, 215, 64, 0.5); border-radius: var(--radius); padding: 10px 14px; line-height: 1.5; box-shadow: 0 0 24px rgba(255, 215, 64, 0.15); }
.mission b { color: var(--gold); }
.mission .big { font-size: 40px; font-weight: 900; text-align: center; color: #fff; text-shadow: 0 0 20px var(--pink); }
.mission .warn { color: var(--red); font-weight: 800; }
.mission small { color: var(--muted); }
.prompt { position: absolute; bottom: 235px; left: 50%; transform: translateX(-50%); background: var(--bg); border: 1px solid var(--gold); border-radius: 12px; padding: 9px 16px; font-weight: 600; white-space: nowrap; animation: pop .3s; }
.key { display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 6px; background: var(--gold); color: #111; font-weight: 900; text-align: center; margin-right: 6px; }
@keyframes pop { from { transform: translateX(-50%) scale(.8); opacity: 0; } }

.hotbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; }
.hotbar button { width: 58px; padding: 6px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-weight: 900; font-size: 16px; display: flex; flex-direction: column; align-items: center; transition: .15s; }
.hotbar button small { font-size: 9.5px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.hotbar button.hb-garage { border-color: var(--cyan); background: linear-gradient(180deg, rgba(0, 229, 255, 0.2), rgba(8, 10, 24, 0.85)); }
.hotbar button:hover { border-color: var(--cyan); box-shadow: 0 0 14px rgba(0, 229, 255, 0.35); }

#toasts { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; flex-direction: column; gap: 7px; align-items: center; pointer-events: none; }
.toast { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 9px 16px; font-weight: 600; animation: toastIn .35s cubic-bezier(.2, .9, .25, 1.2); backdrop-filter: blur(8px); }
.toast.ok { border-color: var(--green); }
.toast.err { border-color: var(--red); }
.toast.cash { border-color: var(--gold); color: var(--gold); }
.toast.out { opacity: 0; transform: translateY(-10px); transition: .4s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px) rotateX(60deg); } }

/* ============================================================
   MODAL OYNALAR VA IXCHAM 3D GARAJ (TELEFON + KOMPYUTER)
   ============================================================ */
.modal-card { width: min(960px, 95vw); max-height: 90vh; display: flex; flex-direction: column; touch-action: pan-y; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); flex-shrink: 0; }
.modal-head h2 { font-size: 19px; letter-spacing: 0.8px; background: linear-gradient(90deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.close { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); font-size: 17px; }
.close:hover { background: rgba(255, 23, 68, 0.35); }
#modalBody { padding: 14px 18px 18px; overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
#modalBody * { touch-action: manipulation; }

/* Yangi qulay Garaj (F) dizayni */
.garage-wrap { display: flex; flex-direction: column; gap: 10px; }
.g-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.g-tabs { margin-bottom: 0 !important; }
.g-bal { padding: 6px 12px; border-radius: 10px; background: rgba(255, 215, 64, 0.12); border: 1px solid rgba(255, 215, 64, 0.4); color: var(--gold); font-size: 14px; }

.g-strip-wrap { display: flex; align-items: center; gap: 6px; }
.g-nav { width: 34px; height: 48px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); font-size: 15px; flex-shrink: 0; }
.g-nav:active { transform: scale(0.94); }
.g-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
}
.g-strip::-webkit-scrollbar { display: none; }
.g-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  transition: .15s;
}
.g-chip b { display: block; font-size: 13px; white-space: nowrap; }
.g-chip small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; }
.g-chip.sel { border-color: var(--cyan); background: rgba(0, 229, 255, 0.16); box-shadow: 0 0 14px rgba(0, 229, 255, 0.22); }
.g-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); flex-shrink: 0; }

.garage-pro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; }
.garage-stage { display: flex; flex-direction: column; gap: 8px; }
.g-canvas-box { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(0, 229, 255, 0.25); background: radial-gradient(circle at 50% 68%, #1d2856, #05060f); }
.g-canvas-box canvas { width: 100%; aspect-ratio: 16 / 9; display: block; max-height: 230px; }
.g-stage-head { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.g-stage-head b { font-size: 15px; text-shadow: 0 2px 8px #000; }
.g-tag { padding: 2px 8px; border-radius: 8px; background: rgba(0, 230, 118, 0.22); border: 1px solid var(--green); color: var(--green); font-size: 10px; font-weight: 800; }
.g-rot-btns { position: absolute; bottom: 8px; right: 8px; display: flex; align-items: center; gap: 4px; background: rgba(6, 8, 20, 0.72); border: 1px solid var(--line); border-radius: 10px; padding: 2px 6px; font-size: 11px; color: var(--muted); }
.g-rot-btns button { width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); font-size: 14px; color: #fff; }
.g-stats { display: flex; justify-content: space-between; gap: 6px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 12px; color: var(--muted); }
.g-stats b { color: var(--text); }
.g-actions button { padding: 10px 12px; font-size: 13.5px; }

.garage-tune { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.g-cat-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.g-cat-tabs button { padding: 7px 4px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); font-size: 11.5px; font-weight: 700; text-align: center; border: 1px solid transparent; }
.g-cat-tabs button.on { border-color: var(--cyan); background: rgba(0, 229, 255, 0.2); color: #fff; }
.g-tune-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.g-tune-btn { padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); text-align: left; display: flex; flex-direction: column; gap: 2px; }
.g-tune-btn b { font-size: 13px; }
.g-tune-btn small { font-size: 11px; color: var(--gold); }
.g-tune-btn.on { border-color: var(--cyan); background: rgba(0, 229, 255, 0.16); }
.g-tune-btn.on small { color: var(--green); }
.g-price-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 12px; border-radius: 12px; background: rgba(255, 215, 64, 0.08); border: 1px solid rgba(255, 215, 64, 0.35); }
.g-price-box small { display: block; font-size: 11px; color: var(--muted); }
.g-price-box strong { font-size: 20px; color: var(--gold); }

/* Umumiy modal ichki elementlar */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.card { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 7px; transition: transform .2s, border-color .2s; }
.card:hover { border-color: var(--line); }
.card.sel { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
.card h3 { font-size: 15px; }
.card p { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.card .price { color: var(--gold); font-weight: 800; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.stats b { color: var(--text); }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs button { padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); font-weight: 700; font-size: 13px; }
.tabs button.on { background: linear-gradient(90deg, rgba(0, 229, 255, .32), rgba(255, 43, 214, .32)); border: 1px solid var(--cyan); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); transition: transform .15s; }
.swatch.on, .swatch:hover { transform: scale(1.18); border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.5); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.opts button { padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); font-size: 12px; border: 1px solid transparent; }
.opts button.on { border-color: var(--cyan); background: rgba(0, 229, 255, 0.15); }
.section-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 10px 0 5px; }
.list { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.list > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(255, 255, 255, 0.03); border-radius: 9px; }
.plus { color: var(--green); font-weight: 700; }
.minus { color: var(--red); font-weight: 700; }
.bigmap { width: 100%; max-width: 720px; aspect-ratio: 1; display: block; margin: 0 auto; border-radius: 14px; cursor: crosshair; }
.fuel-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
input[type=range] { padding: 0; accent-color: var(--cyan); }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; font-size: 13.5px; }

/* ============================================================
   SENSORLI BOSHQARUV (TELEFON VA PLANSHET REJIMI)
   ============================================================ */
.touch { display: none; }
body.phone .touch {
  display: flex; position: absolute; left: 0; right: 0;
  bottom: max(6px, env(safe-area-inset-bottom));
  justify-content: space-between; align-items: flex-end;
  padding: 0 max(8px, env(safe-area-inset-left)) 0 max(8px, env(safe-area-inset-right));
  pointer-events: none;
  box-sizing: border-box;
  max-width: 100vw;
}
body.phone .touch-col { display: flex; flex-direction: column; gap: 4px; pointer-events: auto; }
body.phone .left-col { align-items: flex-start; }
body.phone .right-col { align-items: flex-end; }
body.phone .touch-mini { display: flex; gap: 7px; }
body.phone .touch-mini button {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(8, 10, 24, 0.78); border: 1px solid var(--line);
  font-size: 17px; backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
body.phone .touch-mini button:active { transform: scale(0.92); background: rgba(0, 229, 255, 0.28); }
body.phone .pad { display: flex; gap: 12px; align-items: flex-end; }
body.phone #steerPad {
  background: rgba(8, 10, 24, 0.48); padding: 6px; border-radius: 48px;
  border: 1px solid rgba(0, 229, 255, 0.28); backdrop-filter: blur(6px);
}
body.phone #steerPad button {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(14, 18, 40, 0.82); border: 2px solid var(--line);
  font-size: 26px; box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transition: transform 0.08s, background 0.1s;
}

/* Aylanuvchi Rul (Steering Wheel) */
.wheel-pad { display: none; }
body.phone .wheel-pad {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 144px; height: 144px; border-radius: 50%; position: relative;
  background: radial-gradient(circle, rgba(16, 22, 48, 0.76) 35%, rgba(6, 8, 20, 0.58) 100%);
  border: 2px solid rgba(0, 229, 255, 0.38);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 0 18px rgba(0, 229, 255, 0.15);
  backdrop-filter: blur(6px); touch-action: none; cursor: grab;
}
body.phone .wheel-pad.active {
  border-color: var(--cyan);
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.48), inset 0 0 22px rgba(0, 229, 255, 0.25);
}
body.phone .wheel-ring {
  width: 130px; height: 130px; will-change: transform;
  transition: transform 0.04s linear; pointer-events: none;
}
body.phone .wheel-svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6)); }
body.phone .wheel-label {
  position: absolute; bottom: -16px; font-size: 10px; font-weight: 800;
  letter-spacing: 1.5px; color: var(--muted); pointer-events: none;
}
body.phone.steer-wheel #steerPad { display: none !important; }
body.phone.steer-buttons #wheelPad { display: none !important; }
body.phone.scale-large .wheel-pad { width: 168px; height: 168px; }
body.phone.scale-large .wheel-ring { width: 152px; height: 152px; }
body.phone.scale-large #steerPad button { width: 88px; height: 88px; font-size: 30px; }
body.phone.scale-large .pedal { width: 84px; height: 102px; }
body.phone.scale-large .pedal.gas { width: 96px; height: 116px; }

/* Gorizontal rejim tavsiyasi (Portret holatda) */
.rotate-hint { display: none; }
@media (orientation: portrait) {
  body.phone .rotate-hint:not(.dismissed) {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    position: fixed; bottom: max(195px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
    z-index: 35; width: min(94vw, 420px); padding: 8px 12px; border-radius: 14px;
    background: rgba(8, 12, 30, 0.92); border: 1px solid var(--gold);
    box-shadow: 0 8px 26px rgba(0,0,0,0.65); font-size: 12px; font-weight: 600; color: var(--gold);
    backdrop-filter: blur(10px);
  }
}
.rotate-close { padding: 4px 8px; font-size: 14px; color: var(--muted); }

body.phone .touch-sub { display: flex; gap: 8px; }
body.phone .touch-sub button.sm {
  width: 66px; height: 48px; border-radius: 13px;
  background: rgba(12, 16, 36, 0.8); border: 2px solid var(--line);
  font-size: 14px; font-weight: 800; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.1; backdrop-filter: blur(6px);
}
body.phone .touch-sub button.sm span { font-size: 9.5px; letter-spacing: 0.5px; }
body.phone .touch-sub .nitro-btn { border-color: var(--gold); color: var(--gold); }
body.phone .touch-sub .drift-btn { border-color: var(--pink); color: #ff80e5; }
body.phone .pedal {
  width: 72px; height: 88px; border-radius: 16px;
  background: rgba(12, 16, 36, 0.82); border: 2px solid var(--line);
  font-size: 22px; font-weight: 900; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5); transition: transform 0.08s, background 0.1s;
}
body.phone .pedal small { font-size: 9.5px; font-weight: 800; letter-spacing: 0.5px; color: var(--muted); }
body.phone .pedal.brake-pedal { height: 76px; border-color: rgba(255, 23, 68, 0.65); }
body.phone .pedal.gas {
  width: 84px; height: 102px; border-color: var(--green);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.24), rgba(8, 10, 24, 0.88));
}
body.phone [data-touch].on {
  background: rgba(0, 229, 255, 0.42) !important; border-color: #fff !important;
  transform: scale(0.94); box-shadow: 0 0 22px rgba(0, 229, 255, 0.55);
}

/* Telefon HUD: ixcham minimap, spidometr + yoqilg'i/holat ko'rsatkichi */
body.phone #minimap { width: 98px; height: 98px; top: 58px; bottom: auto; left: 10px; }
body.phone .online-peers-hud { top: 164px; left: 10px; max-width: 175px; }
body.phone .hud-chat-widget {
  top: 108px;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, calc(100vw - 235px));
}
body.phone .hud-chat-log { max-height: 44px; font-size: 10.5px; }
body.phone .foot-actions { bottom: 150px; }
body.phone .dash { bottom: auto; top: 56px; right: 10px; grid-template-columns: 104px; gap: 4px; }
body.phone .speedo { width: 104px; height: 104px; grid-column: 1; grid-row: 2; }
body.phone .carname { grid-column: 1; font-size: 10.5px; }
body.phone .kmh b { font-size: 22px; }
body.phone .gauges {
  grid-column: 1; grid-row: 3; width: 104px; gap: 4px; margin-bottom: 0;
}
body.phone .gauge { padding: 4px 7px; font-size: 10px; border-radius: 8px; }
body.phone .gauge.km-gauge, body.phone .gauge small { display: none; }
body.phone .meter { height: 4px; margin-top: 3px; }
body.phone .hotbar {
  bottom: auto; top: 58px; left: 50%; right: auto; transform: translateX(-50%);
  display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 236px); gap: 5px;
}
body.phone .hotbar button[data-hotkey="KeyL"],
body.phone .hotbar button[data-hotkey="KeyH"] { display: none; }
body.phone .hotbar button { width: 46px; font-size: 13px; padding: 4px 2px; border-radius: 10px; }
body.phone .hotbar button small { font-size: 8.5px; }
body.phone .prompt { bottom: 185px; font-size: 12.5px; padding: 7px 13px; max-width: 92vw; white-space: normal; text-align: center; }
body.phone .mission { top: 112px; bottom: auto; right: auto; left: 50%; transform: translateX(-50%); min-width: 185px; padding: 7px 11px; font-size: 11.5px; }

/* Telefon gorizontal (landscape) holatda ekran balandligi kichik bo'lganda mukammal ixchamlik */
@media (max-height: 540px) and (orientation: landscape) {
  .top { top: 6px; left: 10px; right: 10px; gap: 6px; }
  .chip { padding: 4px 9px; border-radius: 10px; font-size: 11.5px; }
  .chip.money { font-size: 14px; }
  .chip.clock span { font-size: 13.5px; }
  body.phone #minimap { width: 86px; height: 86px; top: 44px; left: 10px; }
  body.phone .online-peers-hud { top: 136px; left: 10px; }
  body.phone .hud-chat-widget { top: 90px; width: min(300px, calc(100vw - 210px)); }
  body.phone .foot-actions { bottom: 102px; }
  body.phone .dash { top: 44px; right: 10px; grid-template-columns: 92px; }
  body.phone .speedo { width: 92px; height: 92px; }
  body.phone .gauges { width: 92px; }
  body.phone .kmh b { font-size: 19px; }
  body.phone .hotbar { top: 44px; max-width: calc(100vw - 210px); }
  body.phone .hotbar button { width: 42px; padding: 3px 2px; font-size: 12px; }
  body.phone .touch { bottom: 8px; }
  body.phone .touch-col { gap: 5px; }
  body.phone .touch-mini button { width: 36px; height: 36px; font-size: 14px; }
  body.phone .wheel-pad { width: 128px; height: 128px; }
  body.phone .wheel-ring { width: 116px; height: 116px; }
  body.phone .wheel-label { display: none; }
  body.phone .pedal { height: 74px; width: 66px; }
  body.phone .pedal.gas { height: 86px; width: 76px; }
  body.phone .prompt { bottom: 130px; font-size: 12px; padding: 6px 12px; }

  /* Premium Game Lobby landscape holatda */
  .lobby-layout {
    grid-template-columns: 215px 1fr 205px;
    gap: 6px 10px;
    padding: 6px 10px;
  }
  .lobby-server-bar { padding: 4px 10px; font-size: 10.5px; gap: 6px; }
  .lobby-profile-bar { padding: 4px 8px; gap: 6px; }
  .prof-avatar { width: 28px; height: 28px; font-size: 14px; }
  .prof-name-box input { width: 92px; height: 19px; font-size: 11.5px; }
  .prof-lv-box { min-width: 55px; font-size: 10px; }
  .prof-money-box { padding: 3px 7px; font-size: 11px; }
  .lobby-brand { padding: 6px 8px; }
  .skyline-svg { height: 22px; }
  .lobby-logo { font-size: 19px; }
  .lobby-logo span { font-size: 21px; }
  .lobby-sub { font-size: 8px; }
  .lobby-slogan { display: none; }
  .nav-card { padding: 5px 8px; gap: 7px; border-radius: 10px; }
  .nav-ic { width: 24px; height: 24px; font-size: 13px; border-radius: 7px; }
  .nav-txt b { font-size: 10.5px; }
  .nav-txt small { display: none; }
  .showroom-top-pill { padding: 5px 10px; gap: 8px; }
  .sr-car-head strong { font-size: 13.5px; }
  .sr-specs { font-size: 10px; gap: 6px; }
  .sr-drag-hint { display: none; }
  .lobby-carousel-wrap { padding: 5px 8px; }
  .carousel-head { margin-bottom: 3px; font-size: 9.5px; }
  .car-nav-btn { width: 26px; height: 42px; font-size: 12px; }
  .lob-car-card { flex: 0 0 105px; padding: 4px 7px; }
  .lob-car-card b { font-size: 10.5px; }
  .lobby-weather { padding: 4px 9px; font-size: 10.5px; }
  .lobby-card { padding: 6px 8px; gap: 4px; }
  .lcard-head h3 { font-size: 10.5px; }
  #lobbyMapCanvas { height: 68px; }
  .map-poi-chips { display: none; }
  .lob-stat-list { gap: 3px; font-size: 10px; }
  .lob-stat-list > div { padding: 3px 6px; }
  .lob-quick-btns { padding: 4px 6px; gap: 4px; }
  .lob-quick-btns button { padding: 4px 8px; font-size: 10.5px; }
  .lobby-enter-btn { padding: 8px 24px; font-size: 16px; border-radius: 12px; }

  /* Garaj (G) landscape holatda bitta ekranga sig'adi */
  .modal-card { max-height: 94vh; width: 96vw; }
  .modal-head { padding: 8px 14px; }
  #modalBody { padding: 8px 14px 12px; }
  .g-canvas-box canvas { max-height: 145px; }
  .garage-pro { grid-template-columns: 1.1fr 1fr; gap: 10px; }
  .g-chip { padding: 5px 10px; }
}

@media (max-width: 920px) and (orientation: portrait) {
  .top { gap: 5px; padding: 6px 8px; flex-wrap: wrap; }
  .chip { padding: 5px 9px; border-radius: 10px; }
  .chip.clock small { display: none; }
  .chip.money { font-size: 14px; }
  .fuel-types { grid-template-columns: 1fr; }
  .modal-card { width: 96vw; max-height: 92vh; }
  .modal-head { padding: 10px 14px; }
  #modalBody { padding: 10px 12px 14px; }
  .garage-pro { grid-template-columns: 1fr; gap: 10px; }
  .g-canvas-box canvas { max-height: 175px; }

  .lobby-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "top"
      "left"
      "center"
      "bottom";
    overflow-y: auto;
    pointer-events: auto;
  }
  .lobby-right { display: none; }
  .lobby-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .lobby-bottombar { flex-direction: column; align-items: stretch; }
  .lobby-enter-btn { width: 100%; }
}

/* ---- Zamonaviy sozlamalar menyusi ---- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; padding: 2px 2px 6px; overflow-y: auto; }
.set-card { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); border-radius: 16px; padding: 14px; backdrop-filter: blur(10px); box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.set-card h3 { font-size: 14.5px; letter-spacing: .5px; margin-bottom: 10px; color: var(--text); }
.set-card .hint { color: var(--muted); font-size: 12px; margin-top: 8px; line-height: 1.45; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 7px; }
.seg button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 5px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid transparent; color: var(--text); transition: .18s; cursor: pointer; }
.seg button i { font-style: normal; font-size: 22px; }
.seg button b { font-size: 12.5px; }
.seg button small { font-size: 10px; color: var(--muted); text-align: center; line-height: 1.2; }
.seg button:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.seg button.on { border-color: var(--cyan); background: linear-gradient(135deg, rgba(0,229,255,.22), rgba(255,43,214,.18)); box-shadow: 0 0 18px rgba(0,229,255,.25); }
.slide { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.slide b { color: var(--cyan); }
.slide input { grid-column: 1 / 3; margin: 0; height: 6px; }
.toggle { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text); cursor: pointer; position: relative; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle i { width: 46px; height: 26px; border-radius: 20px; background: rgba(255,255,255,.15); position: relative; transition: .2s; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle input:checked + i { background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.toggle input:checked + i::after { transform: translateX(20px); }
.danger-zone { border-color: rgba(255,23,68,.3); }

/* ---- Yuklash qatlami ---- */
.busy { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(3,4,12,.72); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.busy.show { opacity: 1; pointer-events: auto; }
.busy-card { width: min(340px, 86vw); padding: 26px; text-align: center; border-radius: 20px; background: linear-gradient(160deg, rgba(20,24,54,.95), rgba(6,8,20,.95)); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.busy-card h3 { margin: 14px 0 4px; font-size: 18px; }
.busy-card p { color: var(--muted); font-size: 13px; min-height: 18px; margin-bottom: 14px; }
.busy-card small { color: var(--cyan); font-weight: 700; display: block; margin-top: 8px; min-height: 14px; }
.spinner { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; border: 4px solid rgba(255,255,255,.12); border-top-color: var(--cyan); border-right-color: var(--pink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.busy-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width .15s; }
.busy-bar i.indet { width: 40%; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* O'yin haqida / g'oyalar */
.about-hero { padding: 6px 2px 14px; line-height: 1.6; color: var(--muted); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.feat { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.feat b { display: block; margin-bottom: 4px; }
.feat span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.feat.soon { border-style: dashed; }
.feat em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--gold); margin-left: 6px; }

/* ---- Online Multiplayer (10 o'yinchi) ---- */
.id-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; margin-bottom: 10px; border-radius: 12px; background: rgba(0, 229, 255, 0.1); border: 1px solid var(--line); font-size: 12px; }
.id-banner b { font-size: 16px; color: var(--cyan); letter-spacing: 1px; }
.sm-btn { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.online-chip { cursor: pointer; text-align: left; border-color: rgba(0, 230, 118, 0.45); }
.online-chip b { color: var(--green); font-size: 13px; }
.online-chip small { color: var(--cyan); font-weight: 700; }
.id-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 229, 255, 0.08); border: 1px dashed var(--cyan); margin-bottom: 12px; }
.id-box small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.id-box strong { font-size: 22px; letter-spacing: 1.5px; color: var(--cyan); }
.online-lbl { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ============================================================
   OPENSTREETMAP & GTA ONLINE GPS XARITA MODAL DIZAYNI
   ============================================================ */
.gps-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.gps-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.gps-cats::-webkit-scrollbar { display: none; }
.gps-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  white-space: nowrap;
  transition: 0.15s;
}
.gps-cat-btn.on {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(255, 43, 214, 0.2));
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.28);
}
.gps-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gps-map-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gps-poi-card {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 94%);
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(7, 11, 24, 0.94);
  border: 1px solid var(--cyan);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.poi-card-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.poi-ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.poi-txt b {
  display: block;
  font-size: 14px;
  color: #fff;
}
.poi-txt small {
  font-size: 11.5px;
  color: var(--muted);
}
.poi-card-acts {
  display: flex;
  gap: 6px;
}

/* ============================================================
   TUNGI TOSHKENT: QAHRAMON TANLOVI (PERSONAJ VA KIYIMLAR)
   ============================================================ */
.char-select-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.char-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.char-preset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(16, 24, 48, 0.86), rgba(8, 12, 26, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: 0.16s;
}
.char-preset-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.char-preset-card.active {
  border: 2px solid var(--gold);
  background: linear-gradient(160deg, rgba(255, 215, 64, 0.18), rgba(0, 229, 255, 0.14));
  box-shadow: 0 0 20px rgba(255, 215, 64, 0.28);
}
.char-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.char-avatar-wrap {
  width: 68px;
  height: 82px;
  margin-bottom: 6px;
}
.char-avatar-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.char-preset-card b {
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.5px;
}
.char-preset-card small {
  font-size: 10px;
  color: var(--cyan);
  font-weight: 700;
}
.char-bottom-cols {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
}
.char-outfit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.char-outfit-btn {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  transition: 0.15s;
}
.char-outfit-btn.active {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.16);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.22);
}
.char-outfit-btn b {
  display: block;
  font-size: 12.5px;
  color: #fff;
}
.char-outfit-btn small {
  font-size: 10.5px;
  color: var(--muted);
}
.char-custom-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.char-cust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
}
.char-cust-Arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}
.char-cust-Arrows b {
  min-width: 106px;
  text-align: center;
  color: var(--gold);
  font-size: 12px;
}

/* ============================================================
   YIG'ILUVCHI (COLLAPSIBLE) HUD CHAT VA MOBIL TORTMALAR
   ============================================================ */
.hud-chat-widget {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
  pointer-events: none;
}
.hud-chat-toggle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 12, 28, 0.84);
  border: 1px solid rgba(0, 229, 255, 0.42);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}
.chat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 900;
}
.hud-chat-panel {
  pointer-events: auto;
  margin-top: 6px;
  width: min(360px, 90vw);
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(7, 11, 26, 0.90);
  border: 1px solid rgba(0, 229, 255, 0.38);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
}
.hud-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 5px;
}

/* Mobil Lobby Hamburger tugmasi va tortmasi */
.lob-hamburger-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.24), rgba(255, 43, 214, 0.22));
  border: 1px solid var(--cyan);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  align-items: center;
  justify-content: center;
}
.mob-lobby-drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(3, 5, 14, 0.76);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  pointer-events: auto;
}
.mob-drawer-card {
  width: min(460px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  padding: 14px;
}
.mob-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--cyan);
}
.mob-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mob-d-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}
.mob-d-item.primary {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(255, 43, 214, 0.2));
  border-color: var(--cyan);
}
.mob-d-item.gold {
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.24), rgba(255, 215, 64, 0.14));
  border-color: var(--gold);
}
.mob-d-item span { font-size: 20px; }
.mob-d-item b { font-size: 12.5px; color: #fff; }
.mob-d-item small { font-size: 10.5px; color: var(--muted); }

/* Mobil HUD yig'iluvchi menyu */
.mob-hud-menu-btn { display: none; }
.hud-mob-drawer {
  position: fixed;
  top: 52px;
  right: 12px;
  z-index: 25;
  width: min(310px, 88vw);
  padding: 10px;
  border-radius: 16px;
  background: rgba(8, 12, 28, 0.94);
  border: 1px solid var(--cyan);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
}
.hud-mob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.hud-mob-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 18px;
}
.hud-mob-grid button span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   4 BOSQICHLI RESPONSIVE DIZAYN (KOMPYUTER VA MOBIL UCHUN ALOHIDA)
   ============================================================ */
/* 1) Compact Desktop (901px - 1200px) */
@media (max-width: 1200px) and (min-width: 901px) {
  .lobby-layout {
    grid-template-columns: 245px 1fr 235px;
    gap: 8px 10px;
    padding: 10px 12px;
  }
}

/* 2) Mobil & Planshet Lobby va HUD (<= 900px yoki body.phone) */
@media (max-width: 900px), (max-height: 520px) {
  /* Mobil Lobby: Chap va O'ng panellar Hamburger menyuga yashiriladi,
     Markazda 3D Mashina va 3D Personaj to'liq, keng va toza ko'rinadi! */
  .lob-hamburger-btn { display: inline-flex !important; }
  .lobby-left,
  .lobby-right,
  .lob-quick-btns,
  .sr-drag-hint {
    display: none !important;
  }
  .lobby-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr auto !important;
    grid-template-areas:
      "top"
      "center"
      "bottom" !important;
    padding: 6px 10px !important;
    gap: 4px !important;
  }
  .lobby-topbar {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    justify-content: space-between !important;
  }
  .lobby-server-bar {
    padding: 4px 8px !important;
    font-size: 11px !important;
    gap: 6px !important;
    background: rgba(4, 7, 22, 0.65) !important;
    backdrop-filter: blur(10px) !important;
  }
  .lobby-server-bar .srv-sep:nth-of-type(2),
  .lobby-server-bar .srv-item:nth-of-type(3),
  .lobby-server-bar .srv-sep:nth-of-type(3),
  .lobby-server-bar .srv-item:nth-of-type(4) {
    display: none !important; /* Xonalar va Server holatini kichik ekranda yashirish */
  }
  .lobby-profile-bar {
    width: auto !important;
    padding: 3px 8px !important;
    gap: 6px !important;
    background: rgba(4, 7, 22, 0.65) !important;
    backdrop-filter: blur(10px) !important;
  }
  .prof-lv-box { display: none !important; }
  .prof-avatar { width: 28px !important; height: 28px !important; font-size: 14px !important; }
  .prof-name-box input { width: 90px !important; height: 19px !important; font-size: 11.5px !important; }
  .prof-id-row { font-size: 9px !important; }
  .prof-money-box { font-size: 11px !important; gap: 3px !important; }
  .prof-money-box b { font-size: 11.5px !important; }
  .prof-gear-btn { width: 28px !important; height: 28px !important; font-size: 13px !important; padding: 0 !important; }
  .lob-hamburger-btn { width: 28px !important; height: 28px !important; font-size: 14px !important; padding: 0 !important; }

  .lobby-center {
    justify-content: space-between !important;
    padding: 2px 0 !important;
  }
  .showroom-top-pill {
    width: auto !important;
    max-width: 95vw !important;
    padding: 4px 10px !important;
    gap: 8px !important;
    border-radius: 12px !important;
    background: rgba(4, 7, 22, 0.55) !important;
    backdrop-filter: blur(8px) !important;
  }
  .sr-car-head strong { font-size: 13px !important; }
  .sr-specs { display: none !important; /* Mashina tezligi karuselda bor, joyni bo'shatamiz */ }
  .sr-colors { gap: 3px !important; }
  .sr-color-dot { width: 14px !important; height: 14px !important; }
  .sr-mini-btn { padding: 3px 7px !important; font-size: 10px !important; border-radius: 6px !important; }

  /* Karusel: ixcham va shaffof, 3D mashinani to'smaydi */
  .lobby-carousel-wrap {
    width: min(640px, 96vw) !important;
    padding: 4px 6px !important;
    background: rgba(3, 6, 20, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
  }
  .carousel-head { margin-bottom: 3px !important; font-size: 9.5px !important; }
  .car-nav-btn { width: 26px !important; height: 42px !important; font-size: 13px !important; border-radius: 8px !important; }
  .lob-car-card {
    flex: 0 0 102px !important;
    padding: 4px 6px !important;
    border-radius: 8px !important;
    gap: 2px !important;
  }
  .lob-car-card b { font-size: 10.5px !important; }
  .lob-car-card small { font-size: 8.5px !important; }
  .lob-car-top { font-size: 8.5px !important; }

  .lobby-bottombar {
    justify-content: center !important;
    width: 100% !important;
    padding-bottom: 2px !important;
  }
  .lobby-enter-btn {
    width: min(340px, 92vw) !important;
    justify-content: center !important;
    padding: 8px 18px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    letter-spacing: 1px !important;
  }
  .lobby-enter-btn i { font-size: 18px !important; }

  /* Personaj tanlash modali mobil ekranda */
  .char-preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .char-bottom-cols {
    grid-template-columns: 1fr;
  }
}

/* 3) Kichik Mobil Ekranlar (360px - 600px) */
@media (max-width: 600px) {
  .lobby-server-bar .srv-sep:nth-of-type(2),
  .lobby-server-bar .srv-item:nth-of-type(3) {
    display: none;
  }
  .prof-lv-box { display: none; }
  .sr-specs { display: none; }
  .lob-car-card { flex: 0 0 112px; padding: 5px 7px; }
}

/* 4) Telefon boshqaruv rejimida (body.phone) Lobby va HUD tozaligi */
body.phone .lob-hamburger-btn {
  display: inline-flex;
}
body.phone .lobby-left,
body.phone .lobby-right,
body.phone .lob-quick-btns,
body.phone .sr-drag-hint {
  display: none !important;
}
body.phone .lobby-layout {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto 1fr auto !important;
  grid-template-areas:
    "top"
    "center"
    "bottom" !important;
  padding: 6px 10px !important;
  gap: 5px !important;
}
body.phone .mob-hud-menu-btn {
  display: inline-flex;
}
body.phone .hotbar {
  display: none !important; /* Barcha ikkilamchi tugmalar ☰ menyu ichiga joylashtirildi */
}
body.phone .hud-chat-widget {
  top: 44px;
}

/* Telefon: online o'yinchilar ro'yxati boshqaruv tugmalarini yopib qo'ymasin */
body.phone .online-peers-hud { transform: scale(0.85); transform-origin: top left; }
body.phone .peers-hud-box { width: 200px; }
body.phone .peers-hud-scroll { max-height: 110px; }
@media (max-height: 430px) { body.phone .peers-hud-scroll { max-height: 75px; } }

/* ============================================================
   V5 UPGRADE: MALIBU HERO LANDING PAGE (KIRISHBANNER DIZAYNI),
   IPHONE SAFARI LANDSCAPE VIEWPORT SYNC, UZB PARKING MOBILE HUD
   ============================================================ */
html, body {
  position: fixed;
  inset: 0;
  width: var(--app-w, 100dvw);
  height: var(--app-h, 100dvh);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-touch-callout: none;
}
#game, #hud, .screen {
  width: var(--app-w, 100dvw);
  height: var(--app-h, 100dvh);
}

/* 1. MALIBU HERO MAIN MENU (KIRISHBANNER RASMIGA 100% MOS) */
.malibu-hero-layout {
  position: fixed !important;
  inset: 0 !important;
  width: var(--app-w, 100dvw) !important;
  height: var(--app-h, 100dvh) !important;
  padding:
    max(12px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left)) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  pointer-events: none;
  z-index: 22;
}
.hero-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  pointer-events: auto;
  width: 100%;
}
.hero-brand-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(8, 13, 32, 0.88), rgba(5, 8, 20, 0.94));
  border: 1.5px solid rgba(0, 229, 255, 0.5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 229, 255, 0.2);
}
.hero-brand-left .lobby-logo {
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 900;
  letter-spacing: 1.5px;
  line-height: 0.95;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.75);
}
.hero-brand-left .lobby-logo span {
  display: block;
  font-size: clamp(20px, 2.3vw, 28px);
  color: #ff2bd6;
  text-shadow: 0 0 20px rgba(255, 43, 214, 0.9);
}
.hero-brand-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-left: 10px;
  border-left: 1px solid rgba(0, 229, 255, 0.28);
}
.hero-brand-tag {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  white-space: nowrap;
}
.hero-skyline-svg {
  width: 108px;
  height: 24px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}

.malibu-hero-layout .lobby-server-bar {
  border-radius: 999px;
  padding: 9px 18px !important;
  background: linear-gradient(155deg, rgba(8, 13, 32, 0.86), rgba(5, 8, 20, 0.92)) !important;
  border: 1.5px solid rgba(0, 229, 255, 0.45) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}
.malibu-hero-layout .lobby-server-bar .srv-sep,
.malibu-hero-layout .lobby-server-bar .srv-item {
  display: inline-flex !important;
}

.malibu-hero-layout .lobby-profile-bar {
  border-radius: 999px;
  padding: 6px 14px !important;
  background: linear-gradient(155deg, rgba(8, 13, 32, 0.88), rgba(5, 8, 20, 0.94)) !important;
  border: 1.5px solid rgba(0, 229, 255, 0.45) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}
.malibu-hero-layout .prof-name-box input {
  width: 135px !important;
  height: 24px !important;
  font-size: 13px !important;
  text-align: center;
}
.malibu-hero-layout .prof-money-box {
  display: none !important;
}
.malibu-hero-layout .prof-gear-btn {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background: rgba(16, 24, 52, 0.9);
  border: 1.5px solid rgba(0, 229, 255, 0.45);
}

.hero-center-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  position: relative;
  width: 100%;
}

/* Asoschi va Telegram kartalari (Landing Hero) */
.hero-floating-cards {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  pointer-events: none;
  padding: 0 12px;
  z-index: 10;
}
.hero-floating-cards > * {
  pointer-events: auto;
}
.founder-card {
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(8, 14, 32, 0.88), rgba(14, 22, 52, 0.80));
  border: 1px solid rgba(0, 229, 255, 0.4);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 229, 255, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.founder-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.65);
}
.founder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.founder-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ffd740;
  background: rgba(255, 215, 64, 0.12);
  border: 1px solid rgba(255, 215, 64, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
}
.founder-name {
  margin: 0 0 3px 0;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}
.founder-site-btn {
  display: inline-block;
  font-size: 11.5px;
  color: #00e5ff;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 6px;
  transition: opacity 0.2s;
}
.founder-site-btn:hover {
  text-decoration: underline;
  opacity: 0.85;
}
.founder-quote {
  margin: 4px 0 0 0;
  padding-left: 8px;
  border-left: 2px solid #00e5ff;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}

.telegram-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(8, 18, 38, 0.88), rgba(0, 136, 204, 0.24));
  border: 1px solid rgba(0, 136, 204, 0.55);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 136, 204, 0.18);
  min-width: 200px;
}
.tg-card-header {
  display: flex;
  align-items: center;
  gap: 9px;
}
.tg-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 136, 204, 0.22);
  border: 1px solid rgba(0, 136, 204, 0.4);
}
.tg-text {
  display: flex;
  flex-direction: column;
}
.tg-text b {
  font-size: 13px;
  color: #fff;
}
.tg-text small {
  font-size: 10.5px;
  color: #00e5ff;
  font-weight: 600;
}
.tg-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0088cc, #00b0ff);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(0, 136, 204, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tg-join-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(0, 136, 204, 0.8);
}
.hero-bottombar {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  pointer-events: auto;
  width: 100%;
}
.malibu-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 22px;
  border-radius: 999px;
  background: rgba(7, 11, 26, 0.84);
  border: 1.5px solid rgba(0, 229, 255, 0.42);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
}
.hero-car-tag {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 1.6px;
  color: #e9f3ff;
  text-transform: uppercase;
}
.hero-start-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffe566 0%, #ffaa00 50%, #ff7700 100%) !important;
  border: 1.8px solid #fff6a8 !important;
  color: #150a00 !important;
  box-shadow: 0 8px 26px rgba(255, 140, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
.hero-start-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: heroShimmer 3.2s ease-in-out infinite;
}
@keyframes heroShimmer {
  0%, 55% { left: -120%; }
  100% { left: 160%; }
}
.hero-start-btn:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 12px 34px rgba(255, 150, 0, 0.78) !important;
}
.malibu-hero-layout::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 54%, transparent 38%, rgba(4, 7, 18, 0.58) 100%);
  z-index: -1;
}
.prof-bal-pill {
  font-size: 11px;
  font-weight: 800;
  color: #ffd740;
  background: rgba(255, 215, 64, 0.12);
  border: 1px solid rgba(255, 215, 64, 0.35);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.hero-feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
}
.hf-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #dbeafe;
  background: rgba(8, 15, 36, 0.76);
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: 999px;
  padding: 4px 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.hero-car-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
  margin-right: 9px;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}
.hero-friends-btn {
  background: linear-gradient(155deg, rgba(10, 26, 56, 0.92), rgba(0, 110, 180, 0.38)) !important;
  border: 1.5px solid rgba(0, 229, 255, 0.65) !important;
  color: #e6f7ff !important;
  box-shadow: 0 8px 24px rgba(0, 140, 255, 0.28) !important;
}
.hero-friends-btn:hover {
  transform: translateY(-2px);
  border-color: #00e5ff !important;
  box-shadow: 0 10px 28px rgba(0, 229, 255, 0.45) !important;
}
@media (max-width: 920px), (max-height: 540px) {
  .hero-feature-pills { display: none !important; }
  .prof-bal-pill { display: none !important; }
}

@media (max-width: 920px), (max-height: 520px) {
  .malibu-hero-layout {
    padding:
      max(6px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left)) !important;
  }
  .hero-brand-bar {
    padding: 5px 10px;
    gap: 8px;
  }
  .hero-brand-left .lobby-logo { font-size: 15px; }
  .hero-brand-left .lobby-logo span { font-size: 16px; }
  .hero-brand-tag { font-size: 9px; }
  .hero-skyline-svg { width: 78px; height: 18px; }
  .malibu-hero-layout .lobby-server-bar {
    padding: 5px 11px !important;
    font-size: 10.5px !important;
    gap: 6px !important;
  }
  .malibu-hero-badge {
    padding: 4px 14px;
  }
  .hero-car-tag {
    font-size: 10px;
    letter-spacing: 1.2px;
  }
  .hero-floating-cards {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 4px;
    padding: 0;
  }
  .founder-card {
    max-width: 240px;
    padding: 6px 10px;
    border-radius: 12px;
  }
  .founder-tag { font-size: 8px; padding: 1px 5px; }
  .founder-name { font-size: 11.5px; margin: 2px 0; }
  .founder-site-btn { font-size: 9.5px; margin-bottom: 2px; }
  .founder-quote { font-size: 9px; line-height: 1.25; padding-left: 6px; }
  .telegram-card {
    min-width: 140px;
    padding: 6px 10px;
    border-radius: 12px;
    gap: 4px;
  }
  .tg-icon-badge { width: 24px; height: 24px; }
  .tg-icon-badge svg { width: 16px; height: 16px; }
  .tg-text b { font-size: 11px; }
  .tg-text small { font-size: 8.5px; }
  .tg-join-btn { font-size: 9.5px; padding: 4px 10px; }
}

/* 2. PORTRAIT OVERLAY (IPHONE VA ANDROID GORIZONTAL ESLATMASI) */
.rotate-hint {
  display: none !important;
}
body.phone.is-portrait .rotate-hint:not(.dismissed) {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  width: var(--app-w, 100dvw) !important;
  height: var(--app-h, 100dvh) !important;
  transform: none !important;
  z-index: 120 !important;
  background: radial-gradient(circle at 50% 40%, rgba(12, 20, 48, 0.96), rgba(3, 5, 14, 0.98)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  backdrop-filter: blur(16px) !important;
}
body.is-landscape .rotate-hint {
  display: none !important;
}
.rotate-card {
  width: min(360px, 90vw);
  padding: 26px 22px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(16, 22, 52, 0.95), rgba(6, 9, 24, 0.95));
  border: 1px solid var(--cyan);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rotate-phone-icon {
  font-size: 46px;
  animation: tiltPhone 1.8s ease-in-out infinite;
}
@keyframes tiltPhone {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-90deg); }
}
.rotate-card b {
  font-size: 18px;
  color: #fff;
}
.rotate-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* 3. CHAT UI POSITION FIX — O'NG YUQORI BURCHAKDAGI IXCHAM PANEL */
.hud-chat-widget,
body.phone .hud-chat-widget {
  position: fixed !important;
  top: max(54px, calc(env(safe-area-inset-top) + 46px)) !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  align-items: flex-end !important;
  z-index: 18 !important;
}
.hud-chat-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  background: rgba(8, 12, 28, 0.86);
  border: 1.5px solid rgba(0, 229, 255, 0.55);
  font-size: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}
.hud-chat-toggle:active {
  transform: scale(0.92);
}
.hud-chat-toggle .chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
}
.hud-chat-panel {
  width: min(310px, 82vw) !important;
  max-height: min(260px, calc(100dvh - 110px)) !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px !important;
  border-radius: 16px !important;
  background: rgba(6, 10, 24, 0.92) !important;
  border: 1px solid rgba(0, 229, 255, 0.45) !important;
}
.hud-chat-panel .hud-chat-log {
  max-height: 110px !important;
  overflow-y: auto !important;
  pointer-events: auto !important;
}
.hud-chat-quick {
  display: flex;
  gap: 5px;
}
.hud-chat-quick .q-emo {
  flex: 1;
  padding: 4px 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

/* 4. UZB PARKING USLUBIDAGI MOBIL BOSHQARUV VA PEDALLAR */
body.phone .uzb-round-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: rgba(10, 15, 34, 0.74) !important;
  border: 1.5px solid rgba(0, 229, 255, 0.45) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
}
body.phone .uzb-pedals {
  gap: 14px;
  align-items: flex-end;
}
body.phone .uzb-pedals .pedal {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 30, 58, 0.86), rgba(8, 11, 24, 0.92));
}
body.phone .pedal-grooves {
  width: 68%;
  height: 22px;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0px,
    rgba(255, 255, 255, 0.22) 3px,
    transparent 3px,
    transparent 7px
  );
  border-radius: 4px;
  margin-bottom: 4px;
  pointer-events: none;
}

/* Mobil Spidometr pastki markazda (UZB PARKING uslubida) */
body.phone .dash {
  top: auto !important;
  bottom: max(8px, env(safe-area-inset-bottom)) !important;
  right: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  pointer-events: none;
}
body.phone .dash .carname {
  display: none !important;
}
body.phone .dash .speedo {
  width: 112px !important;
  height: 112px !important;
}
body.phone .dash .gauges {
  display: flex !important;
  flex-direction: row !important;
  width: 170px !important;
  gap: 6px !important;
}
body.phone .dash .gauge {
  flex: 1;
  padding: 3px 6px !important;
  font-size: 9.5px !important;
}

/* 5. RADIAL QUICK-ACTION MENU */
.radial-menu-wrap {
  position: fixed;
  inset: 0;
  z-index: 32;
  background: rgba(3, 6, 18, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.radial-wheel {
  width: min(330px, 88vw);
  padding: 18px;
  border-radius: 26px;
  background: radial-gradient(circle, rgba(16, 24, 56, 0.95), rgba(6, 9, 22, 0.96));
  border: 1.5px solid var(--cyan);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.radial-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.28);
  font-size: 22px;
  transition: transform 0.14s, background 0.15s;
}
.radial-item:hover,
.radial-item:active {
  transform: scale(0.96);
  background: rgba(0, 229, 255, 0.22);
  border-color: var(--cyan);
}
.radial-item small {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
}
.radial-close {
  grid-column: 1 / 3;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 23, 68, 0.22);
  border: 1px solid rgba(255, 23, 68, 0.5);
  font-weight: 800;
  font-size: 13px;
}

/* 6. PERFORMANCE AUDIT PANEL (F3) */
.perf-audit-panel {
  position: fixed;
  top: max(58px, calc(env(safe-area-inset-top) + 48px));
  left: max(12px, env(safe-area-inset-left));
  z-index: 38;
  width: 210px;
  padding: 9px 11px;
  border-radius: 13px;
  background: rgba(4, 8, 20, 0.88);
  border: 1px solid var(--cyan);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  font-size: 11.5px;
  pointer-events: auto;
}
.perf-head, .pa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 11px;
}
.perf-grid > div, .pa-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 4px;
  margin-top: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
}
.perf-grid span, .pa-row span {
  color: var(--muted);
}
.perf-grid b, .pa-row b {
  color: #fff;
  font-family: monospace;
}

/* =========================================================
   TUNGI TOSHKENT V9 — COMPLETE GAME UPDATE STYLES
   1) Main Entry Banner Two Buttons (O'YINNI BOSHLASH + DO'STLAR BILAN O'YNASH)
   2) iPhone & Android Button-Only Controls + Speedometer Above Drift Button
   3) 7-Day Daily Rewards Modal
   4) In-Game Promo / Invite Banner
   ========================================================= */

/* 1. ASOSIY KIRISH BANNERI — 3 TA ASOSIY TUGMA (BOSHLASH, ONLINE SERVER, GORIZONTAL REJIM) */
.hero-main-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 660px !important;
  margin: 0 auto !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
}

.hero-main-actions .lobby-enter-btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 215px !important;
  height: 48px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: transform 0.14s ease, box-shadow 0.14s ease !important;
  box-sizing: border-box !important;
}

.hero-main-actions .lobby-enter-btn:active {
  transform: scale(0.96) !important;
}

/* 1. 🏁 BOSHLASH */
.hero-start-btn {
  background: linear-gradient(180deg, #ffe566 0%, #ffaa00 50%, #ff7700 100%) !important;
  border: 1.8px solid #fff6a8 !important;
  color: #150a00 !important;
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
.hero-start-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 150, 0, 0.65) !important;
}

/* 2. 🌐 ONLINE SERVER */
.hero-friends-btn {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.28), rgba(10, 36, 80, 0.94)) !important;
  border: 1.8px solid #00e5ff !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
.hero-friends-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 229, 255, 0.55) !important;
}

/* 3. ⛶ GORIZONTAL REJIM */
.hero-landscape-btn {
  background: linear-gradient(135deg, rgba(255, 43, 214, 0.25), rgba(46, 12, 54, 0.94)) !important;
  border: 1.8px solid #ff2bd6 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(255, 43, 214, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
.hero-landscape-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 43, 214, 0.5) !important;
}

/* Mobil va Planshet (iPhone va Android) moslashuvi */
@media (max-width: 920px), (max-height: 520px) {
  .hero-bottombar {
    gap: 4px !important;
    margin-bottom: max(2px, env(safe-area-inset-bottom)) !important;
  }
  .hero-main-actions {
    gap: 6px !important;
    width: 100% !important;
    max-width: min(580px, 96vw) !important;
    padding: 0 4px !important;
  }
  .hero-main-actions .lobby-enter-btn {
    height: 38px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    letter-spacing: 0.2px !important;
    border-width: 1.4px !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
    max-width: 195px !important;
  }
  .hero-main-actions .lobby-enter-btn i {
    display: none !important;
  }
}

/* Telefon vertikal (Portret) holatda bo'lsa */
@media (max-width: 520px) and (orientation: portrait) {
  .hero-topbar {
    flex-direction: column !important;
    gap: 6px !important;
    align-items: center !important;
  }
  .hero-brand-bar,
  .malibu-hero-layout .lobby-server-bar,
  .malibu-hero-layout .lobby-profile-bar {
    max-width: 94vw !important;
    justify-content: center !important;
  }
  .hero-main-actions {
    flex-direction: column !important;
    gap: 7px !important;
    max-width: 280px !important;
  }
  .hero-main-actions .lobby-enter-btn {
    width: 100% !important;
    max-width: 100% !important;
    height: 42px !important;
    font-size: 12.5px !important;
  }
}

/* 2. MOBIL TUGMALI BOSHQARUV VA DRIFT TUGMASI TEPASIDAGI SPIDOMETR */
body.phone .dash {
  display: none !important;
}
body.pc .mob-speedo-card {
  display: none !important;
}

.mob-speedo-card {
  align-self: flex-end;
  min-width: 98px;
  padding: 4px 10px 5px;
  margin-bottom: 2px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(6, 12, 28, 0.82), rgba(14, 24, 52, 0.72));
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}
.mob-speedo-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.mob-speedo-main > b {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.65);
  font-variant-numeric: tabular-nums;
}
.mob-speedo-unit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.mob-speedo-unit span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cyan);
  letter-spacing: 0.6px;
}
.mob-speedo-unit .gear-badge {
  font-style: normal;
  font-size: 10px;
  padding: 1px 5px;
}
.mob-speedo-bar {
  width: 100%;
  height: 4px;
  margin-top: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.mob-speedo-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #00e5ff, #ff2bd6);
  transition: width 0.08s linear;
}

/* Chap tomondagi zamonaviy shaffof Chap / O'ng burilish tugmalari */
body.phone #steerPad {
  display: flex !important;
  gap: 14px;
}
body.phone #steerPad button {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(145deg, rgba(16, 26, 56, 0.62), rgba(8, 14, 32, 0.76));
  border: 1.8px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.08s ease, background 0.12s ease, border-color 0.12s ease;
}
body.phone.scale-large #steerPad button {
  width: 88px;
  height: 88px;
  font-size: 32px;
}
body.phone #steerPad button.on {
  transform: scale(0.93);
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.42), rgba(0, 140, 255, 0.55));
  border-color: #ffffff;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.65);
}

/* Yuqori chap mini tugmalar (Kamera, Fara, Tiklash) */
body.phone .touch-mini {
  display: flex;
  gap: 8px;
}
body.phone .touch-mini .uzb-round-btn {
  width: auto !important;
  min-width: 54px;
  height: 42px !important;
  padding: 0 10px;
  border-radius: 13px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 15px !important;
  background: rgba(10, 16, 36, 0.62) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.24) !important;
}
body.phone .touch-mini .uzb-round-btn span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.85);
}

/* Yagona Drift tugmasi (Nitro va 2-tormoz olib tashlangan) */
body.phone .touch-sub {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 4px;
}
body.phone .touch-sub .uzb-round-action.drift-btn {
  width: 62px !important;
  height: 38px !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, rgba(255, 43, 214, 0.28), rgba(28, 8, 36, 0.82)) !important;
  border: 1.5px solid rgba(255, 43, 214, 0.65) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}
body.phone .touch-sub .uzb-round-action.drift-btn span {
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.6px !important;
}
body.phone .touch-sub .uzb-round-action.drift-btn.on {
  background: rgba(255, 43, 214, 0.65) !important;
  border-color: #ffffff !important;
  transform: scale(0.93) !important;
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.8) !important;
}

/* Yagona Tormoz va Gaz pedallari (Ergonomik, aniq va qulay) */
body.phone .uzb-pedals {
  display: flex !important;
  gap: 8px !important;
  align-items: flex-end !important;
  margin: 0 !important;
}
body.phone .uzb-pedals .pedal.brake-pedal {
  width: 62px !important;
  height: 70px !important;
  border-radius: 14px !important;
  padding: 4px 2px !important;
  background: linear-gradient(180deg, rgba(255, 23, 68, 0.32), rgba(18, 8, 16, 0.94)) !important;
  border: 1.5px solid rgba(255, 23, 68, 0.8) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
body.phone .uzb-pedals .pedal.brake-pedal b {
  font-size: 11px !important;
  line-height: 1.1 !important;
}
body.phone .uzb-pedals .pedal.brake-pedal small {
  font-size: 8px !important;
  letter-spacing: 0.3px !important;
}
body.phone .uzb-pedals .pedal.brake-pedal .pedal-grooves {
  margin-bottom: 2px !important;
}
body.phone .uzb-pedals .pedal.brake-pedal.on {
  background: rgba(255, 23, 68, 0.72) !important;
  border-color: #ffffff !important;
  transform: scale(0.94) !important;
  box-shadow: 0 0 24px rgba(255, 23, 68, 0.85) !important;
}
body.phone .uzb-pedals .pedal.gas {
  width: 68px !important;
  height: 84px !important;
  border-radius: 14px !important;
  padding: 4px 2px !important;
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.34), rgba(6, 24, 16, 0.94)) !important;
  border: 1.5px solid rgba(0, 230, 118, 0.85) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
body.phone .uzb-pedals .pedal.gas b {
  font-size: 12px !important;
  line-height: 1.1 !important;
}
body.phone .uzb-pedals .pedal.gas small {
  font-size: 8.5px !important;
  letter-spacing: 0.3px !important;
}
body.phone .uzb-pedals .pedal.gas .pedal-grooves {
  margin-bottom: 2px !important;
}
body.phone .uzb-pedals .pedal.gas.on {
  background: rgba(0, 230, 118, 0.72) !important;
  border-color: #ffffff !important;
  transform: scale(0.94) !important;
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.85) !important;
}

/* Yuqori HUD Bonus tugmasi animatsiyasi */
.gift-chip {
  background: linear-gradient(135deg, rgba(255, 215, 64, 0.22), rgba(255, 43, 214, 0.22)) !important;
  border-color: rgba(255, 215, 64, 0.65) !important;
  color: var(--gold) !important;
  font-weight: 800;
  cursor: pointer;
}
.gift-chip.ready-pulse {
  animation: giftPulse 1.6s infinite ease-in-out;
}
@keyframes giftPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 215, 64, 0); }
  50% { transform: scale(1.06); box-shadow: 0 0 16px rgba(255, 215, 64, 0.55); }
}

/* 3. 7 KUNLIK KUNDALIK BONUS (DAILY REWARDS) MODAL */
.daily7-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.daily7-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 43, 214, 0.08));
  border: 1px solid rgba(0, 229, 255, 0.28);
}
.daily7-header h3 {
  font-size: 16px;
  margin-bottom: 3px;
}
.daily7-header p {
  font-size: 12.5px;
  color: var(--muted);
}
.daily7-streak-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 215, 64, 0.14);
  border: 1px solid rgba(255, 215, 64, 0.5);
}
.daily7-streak-badge span {
  font-size: 11px;
  color: var(--gold);
}
.daily7-streak-badge b {
  font-size: 18px;
  color: #fff;
}
.daily7-anim-banner {
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.22), rgba(255, 215, 64, 0.22));
  border: 1.5px solid var(--green);
  text-align: center;
  font-size: 14px;
  animation: popIn 0.35s ease;
}
@keyframes popIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.daily7-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
}
.daily7-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.15s, border-color 0.15s;
}
.daily7-card.grand {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(255, 215, 64, 0.16), rgba(255, 43, 214, 0.16));
  border-color: rgba(255, 215, 64, 0.55);
}
@media (max-width: 560px) {
  .daily7-card.grand {
    grid-column: span 1;
  }
}
.daily7-card.claimed {
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.45);
  opacity: 0.85;
}
.daily7-card.current {
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.2), rgba(255, 215, 64, 0.15));
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(255, 215, 64, 0.32);
  transform: translateY(-2px);
}
.d7-day {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--cyan);
  margin-bottom: 4px;
}
.d7-icon {
  font-size: 28px;
  margin: 4px 0;
}
.d7-title {
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 2px;
}
.d7-sub {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.d7-status {
  margin-top: auto;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold);
}
.daily7-card.claimed .d7-status {
  color: var(--green);
}

/* 4. O'YIN ICHIDA REKLAMA VA DO'STLARNI TAKLIF QILISH BANNERI */
.tt-promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(8, 18, 44, 0.95), rgba(28, 12, 54, 0.92));
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.tt-promo-left {
  flex: 1;
  min-width: 0;
}
.tt-promo-logo {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 2px;
}
.tt-promo-logo span {
  color: var(--cyan);
}
.tt-promo-left h4 {
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 3px;
}
.tt-promo-left p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.tt-promo-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.tt-promo-url {
  flex: 1;
  min-width: 180px;
  margin: 0 !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  color: var(--cyan) !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(0, 229, 255, 0.3) !important;
  border-radius: 8px !important;
}
.tt-promo-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 229, 255, 0.35);
  flex-shrink: 0;
}
.tt-promo-qr small {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--cyan);
  margin-top: 3px;
}
@media (max-width: 560px) {
  .tt-promo-qr {
    display: none;
  }
}

/* HUD ko'rinishini yashirish rejimi */
body.hide-hud-panels #minimap,
body.hide-hud-panels .hotbar,
body.hide-hud-panels #hudChatWidget,
body.hide-hud-panels #onlinePeersHud {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =========================================================
   5. TELEFON VA IPHONE UCHUN AVTOMATIK GORIZONTAL (LANDSCAPE) REJIM
   Telefon vertikal (portrait) ushlangan yoki iPhone'da ekran aylanishi
   qulflangan bo'lsa ham, o'yin avtomatik ravishda 100% gorizontal
   (landscape) ko'rinishga o'tadi va faqat gorizontal o'ynaladi!
   ========================================================= */
.rotate-hint {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 8, 22, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
body.is-portrait:not(.auto-landscape-rot) .rotate-hint {
  display: flex;
}
body.auto-landscape-rot .rotate-hint,
body.is-landscape .rotate-hint {
  display: none !important;
}

html.auto-landscape-html {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.auto-landscape-rot {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  width: var(--app-w, 100dvh) !important;
  height: var(--app-h, 100dvw) !important;
  transform-origin: 0 0 !important;
  -webkit-transform-origin: 0 0 !important;
  transform: translate3d(var(--app-h, 100dvw), 0, 0) rotate(90deg) !important;
  -webkit-transform: translate3d(var(--app-h, 100dvw), 0, 0) rotate(90deg) !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.auto-landscape-rot #game,
body.auto-landscape-rot #hud,
body.auto-landscape-rot .screen,
body.auto-landscape-rot .malibu-hero-layout {
  width: var(--app-w, 100dvh) !important;
  height: var(--app-h, 100dvw) !important;
}

/* iPhone Notch / Dynamic Island va Home Indicator xavfsiz hududi avtomatik gorizontal rejimda */
body.auto-landscape-rot #hud {
  padding-top: 8px !important;
  padding-bottom: 10px !important;
  padding-left: max(18px, env(safe-area-inset-top), env(safe-area-inset-left)) !important;
  padding-right: max(18px, env(safe-area-inset-bottom), env(safe-area-inset-right)) !important;
}

body.auto-landscape-rot .malibu-hero-layout {
  padding:
    8px
    max(18px, env(safe-area-inset-bottom), env(safe-area-inset-right))
    10px
    max(18px, env(safe-area-inset-top), env(safe-area-inset-left)) !important;
}

/* Avtomatik gorizontal rejimda (ekran balandligi ~360-430px bo'lganda) menyu va modal oynalar ixcham moslashuvi */
body.phone .malibu-hero-layout {
  padding:
    max(6px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left)) !important;
}
body.phone .hero-brand-bar {
  padding: 5px 10px !important;
  gap: 8px !important;
}
body.phone .hero-brand-left .lobby-logo { font-size: 15px !important; }
body.phone .hero-brand-left .lobby-logo span { font-size: 16px !important; }
body.phone .hero-brand-tag { font-size: 9px !important; }
body.phone .hero-skyline-svg { width: 76px !important; height: 18px !important; }
body.phone .malibu-hero-layout .lobby-server-bar {
  padding: 5px 11px !important;
  font-size: 10.5px !important;
  gap: 6px !important;
}
body.phone .malibu-hero-badge {
  padding: 4px 14px !important;
}
body.phone .hero-car-tag {
  font-size: 10px !important;
  letter-spacing: 1.2px !important;
}
body.phone .hero-main-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 580px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}
body.phone .hero-main-actions .lobby-enter-btn {
  height: 38px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
  min-width: 0 !important;
  flex: 1 1 0 !important;
  max-width: 195px !important;
}
body.phone .modal-card {
  width: calc(var(--app-w, 100dvw) - 20px) !important;
  max-width: 820px !important;
  max-height: calc(var(--app-h, 100dvh) - 14px) !important;
  padding: 10px 14px !important;
}
body.phone #modalBody {
  max-height: calc(var(--app-h, 100dvh) - 64px) !important;
  overflow-y: auto !important;
}
body.phone .garage-pro {
  grid-template-columns: 1.05fr 1fr !important;
  gap: 8px !important;
}
body.phone .g-canvas-box {
  height: clamp(120px, calc(var(--app-h, 380px) * 0.38), 175px) !important;
}

/* =========================================================
   GOOGLE SEO & CRAWLERS SEMANTIC TEXT
   ========================================================= */
.seo-semantic-section {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: normal;
  border: 0;
  pointer-events: none;
}

/* =========================================================
   KOKOBANGO CLUB — PC INTERACTIVE PROMPT & TRANSITION
   ========================================================= */
.club-prompt {
  position: fixed;
  bottom: 128px;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 8, 34, 0.94), rgba(34, 10, 62, 0.92));
  border: 1.5px solid #e879f9;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.72), 0 0 22px rgba(232, 121, 249, 0.42);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.7px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 45;
  pointer-events: none;
  backdrop-filter: blur(12px);
  animation: clubPromptPulse 1.8s infinite ease-in-out;
}
.club-prompt .club-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  background: #e879f9;
  color: #090414;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 0 12px rgba(232, 121, 249, 0.8);
}
@keyframes clubPromptPulse {
  0%, 100% { box-shadow: 0 10px 32px rgba(0, 0, 0, 0.72), 0 0 16px rgba(232, 121, 249, 0.35); }
  50% { box-shadow: 0 10px 32px rgba(0, 0, 0, 0.72), 0 0 28px rgba(0, 229, 255, 0.55); }
}
body.phone .club-prompt,
body.phone .club-prompt.hidden {
  display: none !important;
}
.club-fade {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #16082c, #030208);
  opacity: 0;
  pointer-events: none;
  z-index: 95;
  transition: opacity 0.25s ease;
}
.club-fade.active {
  opacity: 1;
}

/* =========================================================
   KOKOBANGO CLUB MODE — HAYDASH HUDINI YASHIRISH VA KLUB UI
   ========================================================= */
#hud.club-mode .dash,
#hud.club-mode .hotbar,
#hud.club-mode .touch,
#hud.club-mode #minimap,
#hud.club-mode #missionHud,
#hud.club-mode #prompt,
#hud.club-mode #onlinePeersHud {
  display: none !important;
}

.club-ui {
  display: none;
}
#hud.club-mode .club-ui {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(12, 6, 26, 0.88), rgba(28, 10, 52, 0.86));
  border: 1px solid rgba(232, 121, 249, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.72), 0 0 24px rgba(0, 229, 255, 0.18);
  backdrop-filter: blur(14px);
  z-index: 42;
  color: #f8fafc;
  pointer-events: auto;
}
.club-ui-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.club-brand {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.9px;
  color: #f0abfc;
  text-shadow: 0 0 10px rgba(232, 121, 249, 0.65);
}
.club-zone-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.16);
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: #67e8f9;
}
.club-ui-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.club-btn {
  background: rgba(232, 121, 249, 0.18);
  border: 1px solid rgba(232, 121, 249, 0.55);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.club-btn:hover {
  background: rgba(232, 121, 249, 0.34);
}
.club-vol-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.club-vol-wrap input[type="range"] {
  width: 110px;
  accent-color: #e879f9;
  cursor: pointer;
}
.club-ui-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.82);
}
.club-ui-hints b {
  color: #00e5ff;
  margin-right: 2px;
}

/* ============================================================================
   HERO LANDING V15 — CLEAN AAA CINEMATIC ANIMATIONS, LEGAL BAR & RESPONSIVE
   ============================================================================ */
.hero-v15 {
  overflow: hidden;
}
.hero-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 55%;
  background:
    radial-gradient(60% 70% at 25% 20%, rgba(0, 229, 255, 0.16), transparent 70%),
    radial-gradient(50% 60% at 78% 15%, rgba(232, 121, 249, 0.15), transparent 70%);
  filter: blur(28px);
  animation: heroAuroraDrift 11s ease-in-out infinite alternate;
}
.hero-grid-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 7, 18, 0.78) 65%, rgba(3, 5, 14, 0.94) 100%);
}
@keyframes heroAuroraDrift {
  0%   { transform: translate3d(-2%, 0, 0) scale(1); opacity: 0.85; }
  100% { transform: translate3d(2%, 3%, 0) scale(1.06); opacity: 1; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes heroFadeDown {
  from { opacity: 0; transform: translate3d(0, -14px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.hero-v15 .hero-topbar {
  position: relative;
  z-index: 2;
  animation: heroFadeDown 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-v15 .hero-bottombar {
  position: relative;
  z-index: 2;
  animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  gap: 10px;
}
.hero-v15 .hero-brand-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-year-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #050814;
  background: linear-gradient(135deg, #00e5ff, #38bdf8);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
}
.hero-v15 .lobby-logo {
  background: linear-gradient(90deg, #ffffff 0%, #67e8f9 50%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-shimmer {
  position: relative;
  overflow: hidden;
}
.hero-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -65%;
  width: 45%;
  height: 200%;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.34) 50%, transparent 80%);
  transform: skewX(-20deg);
  animation: heroShimmerSweep 3.4s ease-in-out infinite;
}
@keyframes heroShimmerSweep {
  0%, 45% { left: -65%; }
  75%, 100% { left: 130%; }
}

.hero-legal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 2px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(6, 10, 24, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(10px);
  font-size: 11px;
  color: rgba(203, 213, 225, 0.78);
}
.hero-copy b {
  color: #e2e8f0;
  font-weight: 700;
}
.hero-legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-link-btn {
  background: none;
  border: 0;
  padding: 2px 4px;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}
.legal-link-btn:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}
.legal-dot {
  color: rgba(148, 163, 184, 0.45);
}

/* Legal Modal */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.legal-modal.hidden {
  display: none !important;
}
.legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 16, 0.76);
  backdrop-filter: blur(8px);
}
.legal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background: linear-gradient(160deg, rgba(10, 16, 36, 0.96), rgba(6, 10, 24, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 36px rgba(0, 229, 255, 0.12);
  overflow: hidden;
  animation: heroFadeUp 0.24s ease-out both;
}
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.legal-head h3 {
  margin: 0;
  font-size: 16px;
  color: #f8fafc;
}
.legal-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
}
.legal-body {
  padding: 16px 18px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.88);
}
.legal-body p {
  margin: 0 0 10px;
}
.legal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 11px;
  color: rgba(148, 163, 184, 0.85);
}

/* Mobile & Tablet Responsive Polish */
@media (max-width: 768px) {
  .hero-v15 .hero-topbar {
    gap: 8px;
    padding: 8px 10px;
  }
  .hero-v15 .hero-brand-bar,
  .hero-v15 .lobby-server-bar,
  .hero-v15 .lobby-profile-bar {
    padding: 7px 11px;
  }
  .hero-v15 .hero-bottombar {
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .hero-v15 .hero-main-actions {
    width: 100%;
    gap: 8px;
  }
  .hero-v15 .lobby-enter-btn {
    min-height: 44px;
    font-size: 13px;
  }
  .hero-legal-bar {
    border-radius: 14px;
    padding: 6px 10px;
    gap: 4px 10px;
    font-size: 10px;
    text-align: center;
  }
  .legal-link-btn {
    font-size: 10.5px;
    padding: 4px 6px;
  }
}





