/* BUXORO 1238 — HUD (§3)
   Barcha o'lchov vmin da: itch.io embed o'lchami va fullscreen bir xil ishlashi uchun */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #1a1712; color: #e8dfc9;
  font-family: 'Georgia', 'Times New Roman', serif;
  -webkit-user-select: none; user-select: none;
  touch-action: none;
}
canvas { display: block; }

#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }

/* ---- SOAT: markazda tepada, katta ---- */
#soat {
  position: absolute; top: 2.5vmin; left: 50%; transform: translateX(-50%);
  font-size: 6.4vmin; font-weight: 700; letter-spacing: 0.06em;
  color: #f0e6cd; text-shadow: 0 0.3vmin 1.2vmin rgba(0,0,0,.85);
  font-variant-numeric: tabular-nums;
}
#soat .qum { font-size: 4.2vmin; opacity: .75; margin-right: .8vmin; }
#soat.xavf { color: #d9573a; animation: puls 1.6s ease-in-out infinite; }
@keyframes puls { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
/* ChronoShift: soat orqaga sakraydi */
#soat.shift { animation: shift .55s ease-out; }
@keyframes shift {
  0%   { transform: translateX(-50%) translateY(0) scale(1); color: #f0e6cd; }
  35%  { transform: translateX(-50%) translateY(-1.6vmin) scale(1.22); color: #fff8e2; }
  100% { transform: translateX(-50%) translateY(0) scale(1); color: #f0e6cd; }
}
#oqarish {
  position: fixed; inset: 0; background: #fff; opacity: 0;
  pointer-events: none; z-index: 30;
}
#oqarish.yon { animation: oqar .45s ease-out; }
@keyframes oqar { 0% { opacity: .82 } 100% { opacity: 0 } }

/* ---- QO'LLAR: shogirdlar ---- */
#qollar {
  position: absolute; top: 11.5vmin; left: 50%; transform: translateX(-50%);
  display: flex; gap: 1.1vmin;
}
#qollar .q {
  width: 2.5vmin; height: 2.5vmin; border-radius: 50%;
  border: 0.28vmin solid rgba(240,230,205,.55);
  transition: background .18s, border-color .18s;
}
#qollar .q.band { background: #f0e6cd; border-color: #f0e6cd; }
#qollar .q.yoq  { opacity: .18; }

/* ---- RESURSLAR: pastda o'ngda, xira ---- */
#resurslar {
  position: absolute; right: 2.5vmin; bottom: 2.5vmin;
  display: flex; gap: 1.6vmin; opacity: .62; font-size: 2.2vmin;
}
#resurslar .r { display: flex; align-items: center; gap: .5vmin; }
#resurslar .r i { width: 1.7vmin; height: 1.7vmin; border-radius: .3vmin; display: block; }

/* ---- CHIZMALAR PANELI: chapda ---- */
#chizmalar {
  position: absolute; left: 2.5vmin; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1.1vmin;
}
#chizmalar .c {
  width: 9.5vmin; padding: .8vmin 1vmin; border-radius: .5vmin;
  border: 0.22vmin solid rgba(240,230,205,.28);
  background: rgba(20,17,12,.42);
  font-size: 1.55vmin; letter-spacing: .09em; text-align: center;
  transition: all .4s;
}
#chizmalar .c.ochiq { border-color: rgba(240,230,205,.72); color: #f0e6cd; }
#chizmalar .c.qulf  { opacity: .42; }
#chizmalar .c.qulf::after { content: ' ⌾'; opacity: .7; }
/* §9: Tarobiy o'lganda qulflangan uyacha butunlay qorayadi */
#chizmalar .c.olik {
  opacity: 1; background: #0a0908; border-color: #0a0908; color: #0a0908;
}
#chizmalar .c.olik::after { content: ''; }

/* ---- TOAST ---- */
#toastlar {
  position: absolute; bottom: 9vmin; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6vmin;
}
.toast {
  font-size: 2.1vmin; padding: .5vmin 1.4vmin;
  background: rgba(16,13,9,.62); border-radius: .4vmin;
  animation: toastIn .25s ease-out, toastOut .5s ease-in 1.5s forwards;
}
@keyframes toastIn  { from { opacity: 0; transform: translateY(.8vmin) } }
@keyframes toastOut { to   { opacity: 0 } }

/* ---- KO'RSATMA (tutorial / E — BELGILA) ---- */
#korsatma {
  position: absolute; bottom: 15vmin; left: 50%; transform: translateX(-50%);
  font-size: 2.5vmin; letter-spacing: .1em; opacity: 0; transition: opacity .35s;
  text-shadow: 0 .2vmin .8vmin rgba(0,0,0,.9);
}
#korsatma.yon { opacity: .92; }

/* ---- USHLAB TURISH progressi (E 15s, F yasash) ---- */
#ushla {
  position: absolute; bottom: 21vmin; left: 50%; transform: translateX(-50%);
  width: 22vmin; height: .8vmin; background: rgba(240,230,205,.16);
  border-radius: .4vmin; opacity: 0; transition: opacity .2s; overflow: hidden;
}
#ushla.yon { opacity: 1; }
#ushla > i { display: block; height: 100%; width: 0%; background: #e8dfc9; }

/* ---- GAP (dialog) ---- */
#gap {
  position: absolute; bottom: 5vmin; left: 50%; transform: translateX(-50%);
  max-width: 62vmin; text-align: center; font-size: 2.3vmin; line-height: 1.55;
  font-style: italic; opacity: 0; transition: opacity .5s;
  text-shadow: 0 .2vmin 1vmin rgba(0,0,0,.95);
}
#gap.yon { opacity: .95; }
#gap b { display: block; font-style: normal; font-size: 1.8vmin;
         letter-spacing: .16em; opacity: .6; margin-bottom: .7vmin; }

/* ---- KADRLAR (ochilish / yakun) ---- */
#kadr {
  position: fixed; inset: 0; background: #0a0806; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6vmin; transition: opacity 1.2s;
}
#kadr.yoq { opacity: 0; pointer-events: none; }
#kadr .matn { font-size: 2.8vmin; line-height: 1.9; font-style: italic;
              max-width: 70vmin; opacity: .92; }
#kadr .katta { font-size: 5.5vmin; letter-spacing: .1em; margin-bottom: 2vmin; }
#kadr .stat { margin-top: 4vmin; font-size: 2.1vmin; font-style: normal;
              opacity: .7; line-height: 2; }
#kadr button {
  margin-top: 4vmin; padding: 1.4vmin 4vmin; font-size: 2.3vmin;
  font-family: inherit; letter-spacing: .12em; cursor: pointer;
  background: transparent; color: #e8dfc9;
  border: 0.22vmin solid rgba(232,223,201,.5); border-radius: .4vmin;
  pointer-events: auto; transition: all .25s;
}
#kadr button:hover { background: rgba(232,223,201,.12); border-color: #e8dfc9; }


/* ---- Til almashtirgich (mustaqillik-build dan saqlanadi) ---- */
#til {
  position: absolute; right: 2.5vmin; top: 2.5vmin;
  font-size: 1.8vmin; opacity: .45; pointer-events: auto; cursor: pointer;
  letter-spacing: .12em;
}
#til:hover { opacity: .85; }

/* ==================== SENSORLI BOSHQARUV ==================== */
#sensor { position: fixed; inset: 0; z-index: 20; pointer-events: none; display: none; }
body.sensorli #sensor { display: block; }

/* Joystik — qayerga tegilsa o'sha yerda paydo bo'ladi */
#joy {
  position: absolute; width: 26vmin; height: 26vmin; max-width: 150px; max-height: 150px;
  margin-left: -13vmin; margin-top: -13vmin;
  border: 0.4vmin solid rgba(232,223,201,.28); border-radius: 50%;
  opacity: 0; transition: opacity .15s; pointer-events: none;
}
#joy.yon { opacity: .8; }
#joy i {
  position: absolute; left: 50%; top: 50%; width: 11vmin; height: 11vmin;
  max-width: 64px; max-height: 64px; margin-left: -5.5vmin; margin-top: -5.5vmin;
  background: rgba(232,223,201,.42); border-radius: 50%; display: block;
}

/* Tugmalar — pastda o'ngda, faqat kerak bo'lganda */
#tugmalar {
  position: absolute; right: 3vmin; bottom: 4vmin;
  display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 2vmin;
}
.st {
  pointer-events: auto; -webkit-tap-highlight-color: transparent;
  width: 17vmin; height: 17vmin; max-width: 96px; max-height: 96px;
  border-radius: 50%; border: 0.4vmin solid rgba(232,223,201,.42);
  background: rgba(20,17,12,.42); color: #e8dfc9;
  font-family: Georgia, serif; font-size: 3.4vmin; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s, transform .08s, background .08s;
}
.st.kichik { width: 12.5vmin; height: 12.5vmin; max-width: 70px; max-height: 70px;
             font-size: 2.6vmin; }
.st.asosiy { border-color: rgba(242,193,78,.75); color: #f2c14e; }
.st.bosilgan { background: rgba(232,223,201,.30); transform: scale(.93); }
.st.yashirin { opacity: 0; pointer-events: none; }

#tF::after  { content: 'F'; }
#tUr::after { content: '⚔'; font-size: 5vmin; }
#tBl::after { content: '🛡'; font-size: 3.6vmin; }

/* Sensorli qurilmada HUD elementlari tugmalar bilan urishmasin */
body.sensorli #resurslar { bottom: 26vmin; }
body.sensorli #toastlar  { bottom: 26vmin; }
body.sensorli #korsatma  { bottom: 32vmin; }
body.sensorli #ushla     { bottom: 38vmin; }
body.sensorli #gap       { bottom: 3vmin; max-width: 78vmin; font-size: 2.8vmin; }
body.sensorli #chizmalar { transform: translateY(-50%) scale(.85); transform-origin: left center; }

/* ==================== CHIZMA KO'RIGI ==================== */
/* Modal EMAS — o'yin orqada davom etadi (ssenariy §9) */
#chizmaKorik {
  position: fixed; left: 8.5%; top: 50%;
  width: 30%; transform: translateY(-50%);
  pointer-events: none; z-index: 15;
  opacity: 0; transition: opacity .45s;
  text-align: center;
}
#chizmaKorik.yon { opacity: 1; }
#chizmaKorik b {
  display: block; font-size: 2.6vmin; letter-spacing: .22em;
  color: #f2c14e; text-shadow: 0 .2vmin 1vmin rgba(0,0,0,.9);
  margin-top: 11.5vmin;
}
#chizmaKorik i {
  display: block; font-style: normal; font-size: 1.9vmin;
  letter-spacing: .1em; opacity: .8; margin-top: .5vmin;
  text-shadow: 0 .2vmin 1vmin rgba(0,0,0,.9);
}
#chizmaKorik em {
  display: block; font-size: 1.9vmin; opacity: 0;
  margin-top: 1.4vmin; transition: opacity .6s .8s;
  text-shadow: 0 .2vmin 1vmin rgba(0,0,0,.95);
}
#chizmaKorik.izohli.yon em { opacity: .85; }
/* sensorli qurilmada chizmalar paneli kichraygan — ko'rik ham */
body.sensorli #chizmaKorik { width: 38%; left: 6%; }


/* ---- Kamera maslahati ---- */
#kameraMaslahat {
  position: absolute; left: 50%; bottom: 4.5vmin; transform: translateX(-50%);
  font-size: 2.1vmin; letter-spacing: .06em; color: #e8dfc9;
  background: rgba(16,13,9,.55); padding: .8vmin 2vmin; border-radius: .5vmin;
  opacity: 0; transition: opacity .4s; pointer-events: none;
  text-shadow: 0 .2vmin .8vmin rgba(0,0,0,.9);
}
#kameraMaslahat.yon { opacity: .9; }
#kameraMaslahat b { color: #f2c14e; }
body.sensorli #kameraMaslahat { display: none; }

/* ==================== MENYU FONI (video) ==================== */
#boshlash { overflow: hidden; }
#menyuVideo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  opacity: .42;
  /* Blur: videoning o'z matni menyu matni bilan urishmasin — fon tekstura
     bo'lib qolsin, o'qiladigan kontent emas */
  filter: blur(3px) saturate(.75);
  transform: scale(1.06);       /* blur chekkasi ko'rinmasin */
}
/* Qoplama: markaz quyuq — menyu matni ustida kontrast bo'lsin */
#menyuQoplama {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 62% 55% at 50% 46%,
      rgba(16,13,9,.86) 0%, rgba(16,13,9,.62) 55%, rgba(16,13,9,.42) 100%),
    linear-gradient(to bottom, rgba(16,13,9,.70), rgba(16,13,9,.35) 45%, rgba(16,13,9,.80));
}
#boshlash h1, #boshlash .sub, #boshlash .yordam,
#boshlash button, #boshlash .yuk { position: relative; z-index: 2; }

/* ==================== MENYU ==================== */
#menyu {
  position: fixed; inset: 0; z-index: 50; background: #100d09;
  overflow: hidden; transition: opacity .8s;
}
#menyu.yoq { opacity: 0; pointer-events: none; }

#menyuVideo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: .42;
  filter: blur(3px) saturate(.75); transform: scale(1.06);
}
#menyuQoplama {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 62% 55% at 50% 46%,
      rgba(16,13,9,.86) 0%, rgba(16,13,9,.62) 55%, rgba(16,13,9,.42) 100%),
    linear-gradient(to bottom, rgba(16,13,9,.70), rgba(16,13,9,.35) 45%, rgba(16,13,9,.80));
}

/* --- sahifalar --- */
.sahifa {
  position: absolute; inset: 0; z-index: 2;
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 5vmin;
  overflow-y: auto;
}
.sahifa.yon { display: flex; }

.sahifa h1 { font-size: 7vmin; letter-spacing: .18em; font-weight: 400; }
.sahifa h2 {
  font-size: 3.4vmin; letter-spacing: .22em; font-weight: 400;
  color: #f2c14e; margin-bottom: 3vmin;
}
.sahifa .sub { margin-top: 1vmin; font-size: 2.2vmin; opacity: .55; letter-spacing: .2em; }
.sahifa .shior {
  margin-top: 4vmin; font-size: 2.1vmin; opacity: .62;
  line-height: 2.1; font-style: italic; max-width: 60vmin;
}
.sahifa .holat { margin-top: 2.5vmin; font-size: 1.7vmin; opacity: .38; }

/* --- tugmalar --- */
.sahifa nav { margin-top: 5vmin; display: flex; flex-direction: column; gap: 1.6vmin; }
.sahifa nav button, .sahifa .orqaga {
  padding: 1.4vmin 5vmin; font-size: 2.3vmin;
  font-family: inherit; letter-spacing: .16em; cursor: pointer;
  background: transparent; color: #e8dfc9;
  border: 0.22vmin solid rgba(232,223,201,.45); border-radius: .4vmin;
  transition: all .25s; min-width: 34vmin;
}
.sahifa nav button:hover:not(:disabled), .sahifa .orqaga:hover {
  background: rgba(232,223,201,.14); border-color: #e8dfc9;
}
.sahifa nav button:disabled { opacity: .28; cursor: default; }
#mBoshlash { border-color: rgba(242,193,78,.6); color: #f2c14e; }
.sahifa .orqaga { margin-top: 3vmin; min-width: 22vmin; font-size: 1.9vmin; }

/* --- missiyalar --- */
#missiyaRoyxat {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2vmin; max-width: 100vmin; width: 100%;
}
@media (max-width: 820px) { #missiyaRoyxat { grid-template-columns: 1fr; } }

.missiya {
  text-align: left; cursor: pointer; font-family: inherit; color: #e8dfc9;
  background: rgba(20,17,12,.55); border: 0.2vmin solid rgba(232,223,201,.22);
  border-radius: .5vmin; padding: 2vmin 2.2vmin; transition: all .22s;
}
.missiya:hover { border-color: rgba(242,193,78,.7); background: rgba(30,25,17,.75); }
.missiya b { display: block; font-size: 2.2vmin; letter-spacing: .12em; color: #f2c14e; }
.missiya i { display: block; font-size: 1.75vmin; opacity: .7; margin: .9vmin 0 1.2vmin; }
.missiya ul { list-style: none; }
.missiya li {
  font-size: 1.6vmin; opacity: .58; line-height: 1.9; padding-left: 1.6vmin;
  position: relative;
}
.missiya li::before {
  content: '·'; position: absolute; left: 0; color: #f2c14e; opacity: .8;
}

/* --- boshqaruv jadvali --- */
.boshqaruvJadval { max-width: 70vmin; width: 100%; }
.boshqaruvJadval > div {
  display: flex; gap: 2vmin; padding: .85vmin 0;
  border-bottom: 1px solid rgba(232,223,201,.10);
  font-size: 1.85vmin; text-align: left;
}
.boshqaruvJadval b { flex: 0 0 16vmin; color: #f2c14e; font-weight: 600; }
.boshqaruvJadval span { opacity: .7; }


/* ==================== O'YIN ICHIDAGI VIDEOLAR ==================== */
#oyinVideo { position: fixed; z-index: 46; display: none; }
#oyinVideo.yon { display: block; }

/* To'liq ekran — o'yin pauzada */
#oyinVideo.toliq { inset: 0; background: #000; }
#oyinVideo.toliq.yon { display: flex; align-items: center; justify-content: center; }
#oyinVideo.toliq video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* Burchak oynasi — o'yin davom etadi */
#oyinVideo.burchak {
  right: 2.5vmin; top: 12vmin; width: 32vmin;
  border-radius: .6vmin; overflow: hidden;
  border: 0.22vmin solid rgba(232,223,201,.35);
  box-shadow: 0 1vmin 3vmin rgba(0,0,0,.6); background: #0a0806;
}
#oyinVideo.burchak video { width: 100%; display: block; }

/* O'tkazib yuborish tugmasi */
#oyinVideo .otkaz {
  display: none; position: absolute; right: 3vmin; bottom: 3vmin;
  font-family: Georgia, serif; font-size: 2vmin; letter-spacing: .12em;
  color: #e8dfc9; background: rgba(16,13,9,.62); cursor: pointer;
  border: 0.2vmin solid rgba(232,223,201,.4); border-radius: .4vmin;
  padding: 1.1vmin 2.4vmin; transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
#oyinVideo .otkaz.yon { display: block; }
#oyinVideo .otkaz:hover { background: rgba(232,223,201,.16); border-color: #e8dfc9; }
#oyinVideo.burchak .otkaz {
  right: .8vmin; bottom: .8vmin; font-size: 1.5vmin; padding: .6vmin 1.2vmin;
}

/* Ketma-ketlikda nechanchisi */
#oyinVideo .hisob {
  display: none; position: absolute; left: 3vmin; bottom: 3.4vmin;
  font-family: Georgia, serif; font-size: 1.8vmin; letter-spacing: .2em;
  color: #e8dfc9; opacity: .45;
}
#oyinVideo .hisob.yon { display: block; }

#oyinVideo .izoh {
  display: none; position: absolute; bottom: 8vmin; left: 50%;
  transform: translateX(-50%); font-family: Georgia, serif; color: #e8dfc9;
  font-size: 2.1vmin; text-align: center; padding: 1.2vmin 2vmin;
  background: rgba(16,13,9,.72); border-radius: .4vmin;
}
#oyinVideo .izoh.yon { display: block; }

/* Video ochiq bo'lganda HUD ko'rinmasin */
body.videoOchiq #hud, body.videoOchiq #sensor { opacity: 0; transition: opacity .3s; }

/* ==================== CHRONOSHIFT — SERIYA VARAG'I ====================
   Harbiy-muhandislik chizmasi uslubi: ko'k varaq, o'lchov to'ri,
   monoshrift yorliqlar. Buxoro menyusidan ataylab farq qiladi —
   bu SERIYA darajasi, o'yin darajasi emas. */
.sahifa.chizma {
  align-items: stretch; justify-content: flex-start; text-align: left;
  padding: 0; overflow: hidden;
}

/* ko'k tus + o'lchov to'ri (video ustidan) */
.chizmaTur {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    /* Chapda quyuq — matn o'qilsin; o'ngda deyarli tiniq — video ko'rinsin */
    linear-gradient(100deg, rgba(4,17,36,.92) 0%, rgba(5,22,44,.80) 32%,
                            rgba(6,26,50,.30) 58%, rgba(8,32,62,.10) 100%),
    linear-gradient(180deg, rgba(8,32,62,.24), rgba(4,17,36,.42)),
    repeating-linear-gradient(0deg, rgba(150,200,255,.075) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(150,200,255,.075) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(150,200,255,.13) 0 1px, transparent 1px 200px),
    repeating-linear-gradient(90deg, rgba(150,200,255,.13) 0 1px, transparent 1px 200px);
}
/* varaq hoshiyasi */
.sahifa.chizma::before {
  content: ''; position: absolute; z-index: 1; pointer-events: none;
  inset: 1.6vmin; border: 1px solid rgba(160,205,255,.32);
  box-shadow: inset 0 0 0 4px rgba(160,205,255,.07);
}

.chizmaSirkul {
  position: absolute; z-index: 1; right: 6vw; top: 50%;
  transform: translateY(-50%);
  width: 34vw; max-width: 46vmin; opacity: .5; pointer-events: none;
}
.chizmaSirkul circle, .chizmaSirkul line {
  fill: none; stroke: rgba(175,215,255,.55); stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.chizmaSirkul .uzuk { stroke-dasharray: 6 7; }
.chizmaSirkul .toliq { fill: rgba(175,215,255,.75); }

.chizmaBlok {
  position: relative; z-index: 2;
  padding: 6vmin 5vmin 5vmin 6vmin;
  width: min(52vw, 92vmin, 84vw);
  color: #dbe9fa;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* Chronoshift logotipi — shaffof fonli, chizma varag'iga to'g'ridan tushadi */
.chizmaBlok .logo {
  display: block; width: 11vmin; height: auto;
  filter: drop-shadow(0 0 1.2vmin rgba(150,200,255,.35));
}

.chizmaBlok .varaqNo {
  margin: 2.2vmin 0 1vmin;
  font-size: 1.5vmin; letter-spacing: .34em; color: #7fb2e2;
}
.chizmaBlok h1 {
  font-family: 'Haettenschweiler', 'Arial Narrow', 'Helvetica Neue', Impact, sans-serif;
  font-size: 8.4vmin; line-height: .92; font-weight: 700;
  letter-spacing: .02em; color: #f4f8ff;
}
.chizmaBlok .chronoSub {
  margin-top: 1.2vmin; font-size: 1.6vmin;
  letter-spacing: .24em; color: #9fc6ea;
}

#seriyaRoyxat {
  margin-top: 3.4vmin; display: flex; flex-direction: column; gap: 1.1vmin;
}
.qator {
  display: flex; align-items: center; justify-content: space-between; gap: 2vmin;
  width: 100%; padding: 1.5vmin 1.8vmin;
  background: rgba(12,44,80,.55);
  border: 1px solid rgba(160,205,255,.38);
  color: #dbe9fa; cursor: pointer;
  font-family: inherit; font-size: 2.05vmin; letter-spacing: .1em;
  transition: background .16s, border-color .16s, color .16s;
}
.qator b { white-space: nowrap; font-weight: 600; }
.qator span { font-size: 1.35vmin; letter-spacing: .16em; opacity: .62; white-space: nowrap; }
.qator:hover:not(:disabled) {
  background: rgba(190,220,255,.16); border-color: rgba(200,228,255,.75);
}
.qator.asosiy {
  background: #e2eefc; border-color: #e2eefc; color: #0b2340; font-weight: 700;
}
.qator.asosiy span { opacity: .78; }
.qator.asosiy:hover:not(:disabled) { background: #fff; border-color: #fff; }
.qator:disabled { opacity: .34; cursor: default; }

.chizmaHolat {
  margin-top: 2vmin; font-size: 1.35vmin; letter-spacing: .2em; color: #86b4e0;
  min-height: 1.6vmin;
}

.chizmaImzo {
  position: absolute; z-index: 2; left: 6vmin; bottom: 3.4vmin;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 1.3vmin; letter-spacing: .2em; color: rgba(175,210,245,.62);
}

.chizmaJadval {
  position: absolute; z-index: 2; right: 4.5vmin; bottom: 3.4vmin;
  border: 1px solid rgba(160,205,255,.38);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 1.3vmin; color: #cfe2f6; min-width: 36vmin;
}
.chizmaJadval div {
  display: grid; grid-template-columns: 12vmin 1fr;
  border-bottom: 1px solid rgba(160,205,255,.22);
}
.chizmaJadval div:last-child { border-bottom: 0; }
.chizmaJadval span, .chizmaJadval b {
  padding: .8vmin 1.2vmin; letter-spacing: .18em; font-weight: 400;
}
.chizmaJadval span { border-right: 1px solid rgba(160,205,255,.22); opacity: .68; }

/* tor ekran: chizma elementlari o'chadi, ro'yxat butun ekranni oladi */
@media (max-width: 820px), (max-height: 520px) {
  .chizmaSirkul, .chizmaJadval { display: none; }
  .chizmaBlok {
    max-width: none; width: 100%; padding: 8vmin 6vmin 12vmin;
    display: flex; flex-direction: column; justify-content: center; min-height: 100%;
  }
  .chizmaBlok h1 { font-size: 11vmin; }
  .chizmaBlok .varaqNo, .chizmaBlok .chronoSub { font-size: 2.1vmin; }
  .qator { font-size: 2.6vmin; padding: 2.4vmin 2.2vmin; }
  .qator span { font-size: 1.9vmin; }
  .chizmaImzo { font-size: 1.7vmin; bottom: 2vmin; }
  .chizmaHolat { font-size: 1.9vmin; }
}

/* Seriya varag'ida fon videosi ko'proq ko'rinsin — u yerda matn
   chap ustunda, video esa o'ng tomonda ochiq qoladi. */
#menyu:has(#seriyaMenyu.yon) #menyuVideo {
  opacity: .95; filter: none; transform: none;
}
#menyu:has(#seriyaMenyu.yon) #menyuQoplama { opacity: 0; }

/* ==================== PAUZA ====================
   O'yin ichida — Buxoro estetikasi (issiq rang, Georgia). */
#pauzaTugma {
  position: fixed; right: 1vmin; bottom: 5.6vmin; z-index: 60; display: none;
  background: rgba(16,13,9,.5); color: #e8dfc9;
  border: 1px solid rgba(232,223,201,.3); border-radius: .4vmin;
  padding: .7vmin 1.2vmin; font: 1.5vmin Georgia, serif;
  cursor: pointer; letter-spacing: .1em;
}
#pauzaTugma:hover { background: rgba(30,25,17,.8); border-color: rgba(242,193,78,.6); }
body.oyinda #pauzaTugma { display: block; }
body.videoOchiq #pauzaTugma, body.pauzada #pauzaTugma { display: none; }

#pauza {
  position: fixed; inset: 0; z-index: 58;
  background: rgba(10,8,5,.82);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .18s;
}
#pauza.yoq { opacity: 0; pointer-events: none; }

#pauza .quti {
  background: rgba(20,16,11,.94);
  border: 1px solid rgba(232,223,201,.28);
  padding: 4.5vmin 5.5vmin; text-align: center;
  max-width: 86vw; max-height: 88vh; overflow-y: auto;
}
#pauza h2 {
  font-size: 3vmin; letter-spacing: .3em; font-weight: 400; color: #f2c14e;
  margin-bottom: 3.2vmin;
}
#pauza nav { display: flex; flex-direction: column; gap: 1.3vmin; }
#pauza nav button {
  min-width: 30vmin; padding: 1.3vmin 2.4vmin;
  background: rgba(30,25,17,.55); color: #e8dfc9;
  border: 1px solid rgba(232,223,201,.3);
  font: 2vmin Georgia, serif; letter-spacing: .16em; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
#pauza nav button:hover {
  border-color: rgba(242,193,78,.8); color: #f2c14e; background: rgba(38,31,20,.8);
}
#pauza #pzJadval { margin-top: 3vmin; text-align: left; }
#pauza .izoh {
  margin-top: 2.6vmin; font-size: 1.5vmin; opacity: .42; letter-spacing: .12em;
}
@media (max-width: 820px), (max-height: 520px) {
  #pauza h2 { font-size: 4.4vmin; }
  #pauza nav button { font-size: 3vmin; min-width: 52vmin; padding: 2vmin 3vmin; }
  #pauza .izoh { font-size: 2.2vmin; }
  #pauzaTugma { font-size: 2.6vmin; padding: 1.2vmin 1.8vmin; bottom: 8vmin; }
}
