/*
  Sahifa to'liq 3D sahnadan iborat bo'ladi, shuning uchun
  brauzerning standart chekkalarini (margin) olib tashlaymiz
  va scroll paydo bo'lishining oldini olamiz.
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/*
  Kechqurun osmoni — gradient fon.
  (v1.0 dan boshlab osmonni sahnadagi gumbaz chizadi — atmosphere.js;
  bu gradient faqat WebGL ishga tushguncha ko'rinadigan zaxira fon.)
  Gradientni WebGL emas, CSS chizadi: renderer'ni shaffof (alpha: true)
  qilamiz va canvas orqasidagi shu gradient "osmon" vazifasini bajaradi.
  Bu eng arzon usul — GPU'ga qo'shimcha yuk tushmaydi.
  Yuqorida to'q ko'k (#1a1a3e), pastda binafsha (#4a3b6b) — xuddi
  quyosh botgandan keyingi ufq kabi.
*/
body {
  background: linear-gradient(to bottom, #1a1a3e 0%, #2f2a55 60%, #4a3b6b 100%);
}

/*
  Canvas ekranni to'liq egallaydi. `display: block` — inline element
  ostidagi mayda bo'shliqni (baseline gap) yo'qotish uchun.
*/
#scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   CARD OVERLAY — 3D sahna ustidagi HTML qatlam
   ============================================================ */

/*
  Konteyner butun ekranni qoplaydi, lekin pointer-events: none —
  sichqoncha hodisalari undan "o'tib ketib" canvas'ga (3D sahnaga)
  boradi. Faqat ochilgan card o'zi hodisalarni qabul qiladi.
*/
.card-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
}

/*
  Card — glass-effekt: yarim shaffof to'q fon + orqadagi 3D sahnani
  xiralashtiruvchi backdrop-filter. Chegara va tashqi nur (glow)
  uyning derazalaridagi iliq sariq (#ffb75e) bilan uyg'un — sahna
  va UI bitta olamga tegishli bo'lib ko'rinadi.

  Desktop holati: chap tomonda, vertikal markazda. Tanlangan qavat
  3D da O'NG tomonga chiqadi, shuning uchun card chapda — ikkisi
  bir-birini to'sib qo'ymaydi.
*/
.info-card {
  position: absolute;
  left: 4vw;
  top: calc(50% - 26px); /* pastdagi dock uchun joy qoladi */
  width: min(400px, 88vw);
  max-height: calc(100vh - 150px);
  overflow-y: auto;

  background: rgba(26, 24, 48, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); /* Safari uchun */
  border: 1px solid rgba(255, 183, 94, 0.45);
  border-radius: 20px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(255, 183, 94, 0.12); /* iliq deraza-nur aurasi */

  color: #f3ecdf;
  cursor: auto; /* body'dagi 3D hover kursori card ichiga "yuqmasin" */

  /*
    Yashirin holat: ko'rinmas + chapdan biroz surilgan.
    transition ochish/yopishning ikkalasini ham silliq qiladi.
    visibility 0.4s KECHIKISH bilan hidden bo'ladi — opacity
    animatsiyasi tugagunicha element hali "bor" bo'lib turadi.
  */
  opacity: 0;
  visibility: hidden;
  transform: translate(-36px, -50%);
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0s linear 0.4s;
}

/* Ochiq holat — onSectionSelect() shu klassni qo'shadi */
.info-card.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
  pointer-events: auto;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0s; /* ochilishda kechikish kerak emas */
}

.card-body {
  padding: 28px;
}

/* Yopish tugmasi — yuqori o'ng burchakda */
.card-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 183, 94, 0.4);
  border-radius: 50%;
  background: rgba(255, 183, 94, 0.12);
  color: #ffb75e;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.card-close:hover {
  background: rgba(255, 183, 94, 0.3);
  transform: scale(1.1);
}

/* ---------- Card ichki elementlari ---------- */

.info-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ffcf8a; /* sarlavha — deraza nuridan sal ochroq tus */
}

.info-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.subtitle {
  color: #ffb75e;
  font-weight: 500;
}

/* About: avatar + ism yonma-yon */
.about-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.avatar {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%; /* portret: yuz doira markazida tursin */
  border: 2px solid rgba(255, 183, 94, 0.6);
}

/* Projects: har bir loyiha alohida "ichki varaq" */
.project-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 183, 94, 0.2);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.project-item p {
  margin-bottom: 8px;
}

/* Skills: ikki ustunli chip-ro'yxat */
.skills-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.skills-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 183, 94, 0.2);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.skill-icon {
  font-size: 1.1rem;
}

/* Contact: tugmalar ustma-ust */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

/* Umumiy tugma — iliq "deraza nuri" uslubida */
.btn {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255, 183, 94, 0.16);
  border: 1px solid rgba(255, 183, 94, 0.55);
  border-radius: 999px;
  color: #ffcf8a;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: rgba(255, 183, 94, 0.35);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE — mobil: bottom-sheet uslubi
   Tor ekranda yon panel joy olmaydi; card pastdan slayd bo'lib
   chiqadi, faqat yuqori burchaklar yumaloq — tanish "sheet" ko'rinishi.
   ============================================================ */
@media (max-width: 768px) {
  .info-card {
    /* Yon panel o'rniga ekran pastiga yopishgan varaq */
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    max-height: 62vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;

    /* Yashirin holat: to'liq pastga surilgan */
    transform: translateY(100%);
  }

  .info-card.visible {
    transform: translateY(0);
  }

  .card-body {
    padding: 22px 20px 28px;
  }

  .skills-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MAXFIY CARDLAR — uchar chiroq topilmalari
   Bazaviy ko'rinish .info-card'dan meros (ikkala klass birga turadi),
   bu yerda faqat farqi: OLTIN chegara va kuchliroq nur — foydalanuvchi
   "bu oddiy bo'lim emas, yashirin sovg'a" ekanini darhol sezadi.
   ============================================================ */
.secret-card {
  border: 1px solid rgba(255, 215, 106, 0.75);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.45),
    0 0 34px rgba(255, 215, 106, 0.28); /* oltin aura */
}

.secret-card h2 {
  color: #ffd76a; /* sarlavha ham oltin tusda */
}

/* "Maxfiy topilma" yorlig'i — sarlavha ustidagi mayda nishon */
.secret-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  border: 1px solid rgba(255, 215, 106, 0.5);
  border-radius: 999px;
  background: rgba(255, 215, 106, 0.12);
  color: #ffd76a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   UCHAR CHIROQ UI — tooltip, boshqaruv belgisi, joystick
   ============================================================ */

/*
  Hotspot pufakchasi. left/top ni controllableOrb.js har kadrda
  3D proyeksiyadan yozadi; translate(-50%, -100%) esa pufakchani
  nuqtaning ustiga markazlab qo'yadi. transition faqat opacity'da —
  pozitsiyaga qo'yilsa pufakcha nuqtadan "sudralib" orqada qolardi.
*/
#orb-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  z-index: 9; /* cardlardan (10) pastda — card ochiq bo'lsa u ustun */

  padding: 8px 14px;
  background: rgba(26, 24, 48, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 215, 106, 0.6);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);

  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffd76a;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none; /* pufakcha sichqonchaga to'siq emas */
  transition: opacity 0.25s ease;
}

#orb-tooltip.visible {
  opacity: 1;
}

/* Boshqaruv eslatmasi — yuqori chap burchak: cardlar (chapda, markazda),
   joystick (pastki chap) va versiya belgisi (pastki o'ng) bilan to'qnashmaydi */
.control-hint {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 9;

  padding: 8px 14px;
  background: rgba(26, 24, 48, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 183, 94, 0.3);
  border-radius: 999px;

  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: rgba(243, 236, 223, 0.85);

  pointer-events: none;
  user-select: none;
}

.control-hint b {
  color: #ffcf8a;
}

/* Sukut bo'yicha desktop matni; touch qurilmada joystick matni */
.hint-mobile { display: none; }

/*
  Virtual joystick — faqat asosiy kirish qurilmasi "dag'al" (barmoq)
  bo'lganda ko'rinadi: telefon/planshetlar. Sichqonchali kompyuterda
  bu doira keraksiz joy egallab turardi.
*/
#joystick {
  display: none;
  position: fixed;
  left: 22px;
  bottom: 26px;
  z-index: 9;

  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid rgba(255, 183, 94, 0.4);
  background: rgba(26, 24, 48, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  touch-action: none; /* barmoq harakati scroll/zoom emas, faqat joystick */
}

#joystick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px; /* o'z markazida turishi uchun */
  border-radius: 50%;
  background: rgba(255, 183, 94, 0.55);
  border: 2px solid rgba(255, 215, 106, 0.8);
  box-shadow: 0 0 14px rgba(255, 183, 94, 0.4);
  transition: transform 0.15s ease; /* qo'yib yuborilganda markazga "qaytish" */
}

@media (pointer: coarse) {
  #joystick { display: block; }
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
}

/* ============================================================
   VERSIYA BELGISI — pastki o'ng burchakdagi kichik yorliq
   ============================================================ */

/*
  pointer-events: none — belgi 3D sahna bilan ishlashga (orbit,
  click) mutlaqo xalaqit bermaydi. Rang derazalardagi iliq sariq
  (#ffb75e) oilasidan, lekin juda xira — ko'zga tashlanmay,
  qidirgan odamgina ko'radi.
*/
.version-badge {
  position: fixed;
  right: 14px;
  bottom: 12px;
  z-index: 5; /* cardlar (10) ostida — mobil varaq ustiga chiqib qolmasin */

  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 183, 94, 0.45);

  pointer-events: none;
  user-select: none;
}

/* ============================================================
   v1.0 — KONTENT ELEMENTLARI (cardlar data.js dan generatsiya qilinadi)
   ============================================================ */

/* Card ichidagi scroll — ingichka, iliq rangda */
.info-card {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 183, 94, 0.4) transparent;
}

/* Loyiha cardlari biroz kengroq: skrinshot va izohlar sig'ishi uchun */
.station-card {
  width: min(430px, 88vw);
}

.info-card .lead {
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff4e0;
}

.info-card .meta {
  font-size: 0.82rem;
  color: rgba(243, 236, 223, 0.6);
  margin-bottom: 6px;
}

.about-header h2 {
  margin-bottom: 2px;
}

.about-header p {
  margin-bottom: 0;
}

/* Raqamlar qatori: "20+ xodim", "4 hudud", "50+ o'quvchi" */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.stat-strip div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 183, 94, 0.2);
  border-radius: 12px;
  padding: 10px 10px 9px;
}

.stat-strip strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #ffcf8a;
  font-variant-numeric: tabular-nums;
}

.stat-strip span {
  font-size: 0.74rem;
  line-height: 1.3;
  color: rgba(243, 236, 223, 0.7);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* Yorliqlar: kategoriya va holat */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 40px 10px 0; /* o'ngda yopish tugmasiga joy */
}

.tag {
  padding: 3px 10px;
  border: 1px solid rgba(255, 183, 94, 0.35);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffcf8a;
}

.tag-status {
  border-color: rgba(155, 232, 220, 0.45);
  color: #9be8dc;
}

.tag-status[data-status='In development'] {
  border-color: rgba(127, 216, 255, 0.45);
  color: #7fd8ff;
}

.tag-status[data-status='Archived'] {
  border-color: rgba(243, 236, 223, 0.3);
  color: rgba(243, 236, 223, 0.65);
}

.info-card h2 + .subtitle {
  margin-top: -8px;
}

/* Loyiha skrinshoti — nisbat oldindan band qilinadi (yuklanganda sakramaydi) */
.card-shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  margin: 6px 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 183, 94, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

/* "Muammo / Nima qurdim / Ishlatilishi" izohlari */
.note {
  padding-left: 12px;
  border-left: 2px solid rgba(255, 183, 94, 0.45);
  margin-bottom: 10px;
}

.note span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffb75e;
}

.note p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.contact-links + .meta {
  margin-top: 12px;
}

/* Texnologiya chiplari */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 4px;
}

.chips li {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 183, 94, 0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

.group-title {
  margin-top: 14px;
  color: #ffb75e;
}

/* Tajriba — vertikal vaqt chizig'i */
.timeline {
  list-style: none;
  margin-top: 12px;
  border-left: 2px solid rgba(255, 183, 94, 0.3);
}

.timeline li {
  position: relative;
  padding: 0 0 14px 16px;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffb75e;
  box-shadow: 0 0 10px rgba(255, 183, 94, 0.7);
}

.timeline-date {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(243, 236, 223, 0.6);
}

.timeline h3 {
  margin: 2px 0 0;
}

.timeline p {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.project-item h3 {
  font-size: 0.98rem;
}

.project-item .card-actions {
  margin-top: 6px;
}

.project-item .btn {
  padding: 5px 14px;
  font-size: 0.82rem;
}

/* ============================================================
   DOCK — pastki navigatsiya paneli
   ============================================================ */
#dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 11;
  max-width: calc(100vw - 24px);
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  user-select: none;
}

.dock-row {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: rgba(26, 24, 48, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 183, 94, 0.35);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  overflow-x: auto;
  scrollbar-width: none;
}

.dock-row::-webkit-scrollbar {
  display: none;
}

#dock button {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(243, 236, 223, 0.85);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#dock button:hover {
  background: rgba(255, 183, 94, 0.16);
  color: #ffcf8a;
}

#dock button:focus-visible,
.card-close:focus-visible,
.btn:focus-visible,
#tour-stop:focus-visible {
  outline: 2px solid #ffcf8a;
  outline-offset: 2px;
}

#dock button.active {
  background: rgba(255, 183, 94, 0.22);
  border-color: rgba(255, 183, 94, 0.6);
  color: #ffcf8a;
}

#dock .dock-accent {
  background: rgba(255, 183, 94, 0.9);
  color: #2a1d10;
}

#dock .dock-accent:hover {
  background: #ffcf8a;
  color: #2a1d10;
}

#dock .dock-arrow {
  padding: 8px 11px;
  font-size: 1rem;
  line-height: 1;
}

.dock-sep {
  flex-shrink: 0;
  width: 1px;
  height: 20px;
  margin: 0 5px;
  background: rgba(255, 183, 94, 0.3);
}

/* Loyihalar menyusi — "Projects" tugmasi ustida ochiladi */
.dock-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 8px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: min(420px, calc(100vw - 24px));
  padding: 8px;
  background: rgba(26, 24, 48, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 183, 94, 0.35);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.dock-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

#dock .dock-menu button {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-radius: 10px;
  text-align: left;
}

.dock-menu button span {
  font-size: 0.72rem;
  color: rgba(255, 183, 94, 0.7);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   TUR PANELI — yuqori markazda
   ============================================================ */
#tour-bar {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  overflow: hidden;
  background: rgba(26, 24, 48, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 215, 106, 0.6);
  border-radius: 999px;
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  color: #f3ecdf;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

#tour-bar.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
}

.tour-step {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffd76a;
  font-variant-numeric: tabular-nums;
}

.tour-title {
  font-size: 0.92rem;
  font-weight: 600;
}

#tour-stop {
  padding: 5px 13px;
  border: 1px solid rgba(255, 215, 106, 0.5);
  border-radius: 999px;
  background: rgba(255, 215, 106, 0.12);
  color: #ffd76a;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

#tour-stop:hover {
  background: rgba(255, 215, 106, 0.3);
}

.tour-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
}

.tour-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #ffd76a;
}

/* ============================================================
   YUKLANISH EKRANI
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(to bottom, #141433 0%, #2f2a55 60%, #4a3b6b 100%);
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  color: #f3ecdf;
  transition: opacity 0.8s ease;
}

#loader.done {
  opacity: 0;
  pointer-events: none;
}

.loader-name {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #ffcf8a;
}

.loader-sub {
  font-size: 0.9rem;
  color: rgba(243, 236, 223, 0.7);
}

.loader-bar {
  width: 160px;
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 183, 94, 0.2);
}

.loader-bar i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: #ffb75e;
  animation: loader-slide 1.1s ease-in-out infinite alternate;
}

@keyframes loader-slide {
  from { transform: translateX(-20%); }
  to { transform: translateX(170%); }
}

/* ============================================================
   v1.0 RESPONSIVE
   Mobilda card pastdan chiqadi, shuning uchun dock YUQORIGA ko'chadi
   (aks holda card uni yopib qo'yardi). Tur paneli dock ostida turadi.
   ============================================================ */
@media (max-width: 768px) {
  #dock {
    top: 10px;
    bottom: auto;
  }

  .dock-menu {
    top: calc(100% + 8px);
    bottom: auto;
  }

  #tour-bar {
    top: 66px;
  }

  .control-hint {
    display: none;
  }

  .station-card {
    width: auto;
  }
}

/* Harakatni kamaytirish so'ralgan bo'lsa UI animatsiyalari qisqaradi */
@media (prefers-reduced-motion: reduce) {
  .info-card,
  .dock-menu,
  #tour-bar,
  #loader {
    transition-duration: 0.01s;
  }

  .loader-bar i {
    animation: none;
  }
}
