/* ==========================================================================
   «Жаҳон Пари Жаҳон» — Om Shanti Om ruhidagi ikki kishilik ilova
   Silliqlik qoidalari: animatsiyalar faqat transform/opacity; aylantiriladigan
   kontent ustida backdrop-filter/blur/mix-blend YO'Q; video ustida filtr YO'Q.
   ========================================================================== */

/* ---------- 1. tokenlar ---------- */
:root {
  --night: #0D0A14;
  --night-2: #140d19;
  --card-2: #221628;
  --line: #33253b;
  --line-2: #4a3a52;
  --velvet: #7A0F1F;
  --crimson: #B3122F;
  --gold: #F2C14E;
  --gold-2: #d9a441;
  --bulb: #FFE7A3;
  --cream: #F3E6CF;
  --ink: #2B1620;
  --neon: #FF5A93;
  --pink-soft: #FF9CC3;
  --teal: #1FA39A;
  --dim: #a193a8;          /* kontrast: tun fonida ~6:1 */
  --dim-2: #7d7285;

  --f-poster: 'Noto Serif Display', Georgia, serif;
  --f-logo: 'Pacifico', cursive;
  --f-board: 'Oswald', 'Arial Narrow', sans-serif;
  --f-credit: 'Cormorant Unicase', Georgia, serif;
  --f-hand: 'Caveat', cursive;
  --f-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 480px;
  --tab-h: 70px;
  --mini-h: 58px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 16px;
}

/* ---------- 2. reset + asos ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--night); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  color: #EDE3D2;
  font: 400 15px/1.5 var(--f-body);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(242, 193, 78, .35); }
body.noscroll { overflow: hidden; }

.eyebrow { font: 700 10.5px/1.2 var(--f-board); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.h-poster { font: italic 900 34px/1.02 var(--f-poster); color: var(--cream); letter-spacing: -.005em; }
.muted { color: var(--dim); }

/* ---------- 3. yuklanish ---------- */
.boot { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: var(--night); transition: opacity .35s ease; }
.boot.out { opacity: 0; pointer-events: none; }
.boot-reel { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #2c2432; border-top-color: var(--gold); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 4. ilova ustuni + sahifalar ---------- */
.app { max-width: var(--maxw); margin: 0 auto; position: relative; min-height: 100dvh; }
.page {
  position: relative;
  min-height: 100dvh;
  padding: calc(var(--safe-t) + 14px) 16px calc(var(--tab-h) + var(--mini-h) + 34px + var(--safe-b));
  animation: pageIn .2s ease;   /* faqat opacity: transform ichidagi position:fixed elementlarni buzadi */
}
.page[data-page="afisha"] { padding-top: calc(var(--safe-t) + 6px); padding-bottom: calc(var(--tab-h) + 30px + var(--safe-b)); }
@keyframes pageIn { from { opacity: 0; } }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 6px 4px 18px; }
.page-head .eyebrow { margin-bottom: 8px; }

/* ---------- 5. tab-bar (kino plyonkasi) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-width: var(--maxw); margin: 0 auto;
  height: calc(var(--tab-h) + var(--safe-b));
  padding: 14px 4px calc(10px + var(--safe-b));
  display: flex; background: #070509; border-top: 1px solid #231a29;
}
.tabbar::before, .tabbar::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: 5px;
  background: repeating-linear-gradient(90deg, #262029 0 9px, transparent 9px 17px);
}
.tabbar::before { top: 4px; }
.tabbar::after { bottom: calc(3px + var(--safe-b)); }
.tab { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #8a7f92; font: 600 clamp(9px, 2.8vw, 10.5px)/1 var(--f-body); }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--gold); }
.tab .dot { position: absolute; top: -3px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 2px #070509; }
.tab:active svg { transform: scale(.92); }

/* ---------- 6. mini-pleyer ---------- */
.mini {
  position: fixed; left: 0; right: 0; z-index: 40;
  bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
  width: calc(100% - 24px); max-width: calc(var(--maxw) - 24px); margin: 0 auto;
  height: var(--mini-h); border-radius: 16px;
  display: flex; align-items: center; gap: 10px; padding: 0 9px 0 8px;
  background: #160e1b; border: 1px solid rgba(242, 193, 78, .28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  animation: miniIn .3s var(--ease) both;
}
@keyframes miniIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mini-film { width: 88px; height: 38px; flex: none; border-radius: 6px; background: #000 center/cover no-repeat; box-shadow: 0 0 16px rgba(255, 190, 230, .22); }
.mini-film video { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.mini-text { flex: 1; min-width: 0; text-align: left; }
.mini-text small { display: block; font: 700 9px/1.2 var(--f-board); letter-spacing: .2em; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-text b { display: block; font: 400 15px/1.4 var(--f-logo); color: var(--pink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-pp { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gold); color: #1a0c10; }
.mini-pp svg { width: 16px; height: 16px; }

/* ekvalayzer: faqat ovoz yoqilganda harakatlanadi */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; color: var(--gold); }
.eq i { width: 3px; height: 30%; border-radius: 1px; background: currentColor; transform-origin: bottom; }
.sound-on .eq i { animation: eq .8s ease-in-out infinite alternate; height: 100%; }
.sound-on .eq i:nth-child(2) { animation-delay: -.3s; }
.sound-on .eq i:nth-child(3) { animation-delay: -.55s; }
.sound-on .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

/* ---------- 7. tugmalar, kartalar, maydonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 14px;
  font: 600 14.5px/1 var(--f-body); white-space: nowrap;
  transition: transform .12s ease, opacity .2s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: linear-gradient(180deg, #f7d27a, var(--gold-2)); color: #2a1408; box-shadow: 0 10px 24px rgba(217, 164, 65, .28); }
.btn-crimson { background: linear-gradient(180deg, #c81a3a, var(--velvet)); color: var(--bulb); border: 1px solid var(--gold-2); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(20, 14, 24, .7); color: var(--cream); }
.btn-danger { background: #3a0d18; border: 1px solid #7a1f33; color: #ffb3c2; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-outline-gold {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 100px;
  border: 1px solid var(--gold); color: var(--gold); font: 700 13px/1 var(--f-board); letter-spacing: .24em; text-transform: uppercase;
  background: rgba(13, 5, 8, .55);
}
.btn-outline-gold svg { width: 14px; height: 14px; }
.link { color: var(--gold); font-weight: 600; }

.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #150e1a; color: var(--gold); flex: none; }
.icon-btn svg { width: 21px; height: 21px; }

.pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 100px; background: #150e1a; border: 1px solid var(--line); font: 700 13px/1 var(--f-board); letter-spacing: .06em; color: var(--cream); white-space: nowrap; }
.pill svg { width: 16px; height: 16px; color: var(--gold); }
.snd { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px 0 11px; border-radius: 100px; background: #150e1a; border: 1px solid rgba(242, 193, 78, .5); color: var(--gold); font: 600 12px/1 var(--f-body); white-space: nowrap; }

.seg { display: inline-flex; background: #150e1a; border: 1px solid var(--line); border-radius: 100px; padding: 3px; }
.seg button { padding: 8px 12px; border-radius: 100px; font: 600 12px/1 var(--f-body); color: #a597ab; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--gold); color: #1a1016; }

.card { position: relative; display: block; background: linear-gradient(160deg, var(--card-2), var(--night-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 13px; overflow: hidden; }
.card .eyebrow { display: flex; align-items: center; gap: 6px; color: var(--dim); }
.card .eyebrow svg { width: 16px; height: 16px; color: var(--gold); }
.card p { margin-top: 9px; font: 500 14px/1.35 var(--f-body); color: var(--cream); }
.card .go { display: inline-block; margin-top: 10px; font: 600 12.5px/1 var(--f-body); color: var(--gold); }

.field { display: block; }
.field > span { display: block; margin: 0 0 6px 2px; font: 700 10px/1 var(--f-board); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.input, .textarea {
  width: 100%; border: 1px solid var(--line-2); background: #0f0a13; color: var(--cream);
  border-radius: 12px; padding: 12px 14px; font: 400 15px/1.45 var(--f-body); outline: none;
  transition: border-color .2s ease;
}
.textarea { resize: vertical; min-height: 110px; }
.input:focus, .textarea:focus { border-color: var(--gold); }
.textarea.hand { font: 500 21px/1.35 var(--f-hand); }

.progress { height: 6px; border-radius: 6px; background: #2a1f30; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #ffdf8e); transition: width .2s linear; }

.empty { text-align: center; padding: 34px 16px; color: var(--dim); font: 500 21px/1.35 var(--f-hand); }

/* ---------- 8. lampochkali ramka, harf-taxta ---------- */
.marquee { position: relative; }
.bulb { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #5c431b; pointer-events: none; animation: chase 1.2s steps(1) infinite; }
@keyframes chase {
  0% { background: var(--bulb); box-shadow: 0 0 6px 2px rgba(255, 205, 110, .9), 0 0 14px 4px rgba(255, 170, 60, .35); }
  33.33% { background: #5c431b; box-shadow: none; }
}

.letterboard {
  border-radius: 8px; padding: 12px 8px;
  background: repeating-linear-gradient(0deg, transparent 0 25px, rgba(255, 255, 255, .045) 25px 26px), #060408;
  border: 2px solid #2b2233; box-shadow: inset 0 0 0 4px #0c0910, 0 14px 30px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.lb-line { display: flex; gap: clamp(2px, .7vw, 3px); justify-content: center; }
.tile { display: inline-grid; place-items: center; min-width: clamp(10px, 3.3vw, 13px); height: clamp(16px, 5vw, 19px); padding: 0 clamp(1px, .4vw, 2px); border-radius: 2px; background: #F3EAD7; color: #161016; font: 700 clamp(10.5px, 3.4vw, 13px)/1 var(--f-board); box-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.tile.sp { background: transparent; box-shadow: none; min-width: 7px; }
.lb-line.big .tile { min-width: clamp(24px, 8.2vw, 31px); height: clamp(36px, 12vw, 46px); font-size: clamp(26px, 9vw, 34px); border-radius: 3px; }
.lb-line.big .tile.sp { min-width: 10px; }

/* ---------- 9. varaq (bottom sheet), toast, tasdiq, lightbox ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(6, 3, 8, .72); animation: fadeIn .22s ease both; }
.sheet {
  position: relative; width: 100%; max-width: var(--maxw); max-height: 90dvh;
  display: flex; flex-direction: column;
  background: #150d19; border: 1px solid #31233a; border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
  animation: sheetUp .32s var(--ease) both;
  transition: opacity .18s ease;
}
/* yopilish: varaq va orqa fon bir xil sur'atda ketadi, varaq oxirida so'nadi —
   pastki chetda (tab-bar ustida) varaqning qoldig'i osilib qolmaydi */
.sheet-wrap.closing .sheet { animation: sheetDown .2s cubic-bezier(.4, 0, 1, 1) both; }
.sheet-wrap.closing .sheet-backdrop { animation: fadeOut .22s cubic-bezier(.4, 0, 1, 1) both; }
/* varaqdan varaqqa: orqa fon uzilmaydi — eskisi tushib ketadi, yangisi ortidan chiqadi */
.sheet-wrap.swap-out { z-index: 101; }
.sheet-wrap.swap-out .sheet-backdrop { display: none; }
.sheet-wrap.swap-out .sheet { animation: sheetDown .18s cubic-bezier(.4, 0, 1, 1) both; }
.sheet-wrap.swap-in .sheet-backdrop { animation: none; }
.sheet-wrap.swap-in .sheet { animation-delay: .14s; }
/* ustiga boshqa varaq/oyna ochilganda pastdagisi ko'rinmaydi (faqat qoraytirilgan sahifa qoladi) */
.sheet-wrap.under .sheet { opacity: 0; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { 60% { opacity: 1; } to { transform: translateY(100%); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet-grip { width: 42px; height: 5px; border-radius: 5px; background: #3b2e44; margin: 9px auto 2px; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 18px 10px; flex: none; }
.sheet-head h2 { font: italic 900 24px/1.1 var(--f-poster); color: var(--cream); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px calc(22px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.sheet-body > * + * { margin-top: 14px; }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1; }

.toast {
  position: fixed; left: 50%; z-index: 300; bottom: calc(var(--tab-h) + var(--mini-h) + 26px + var(--safe-b));
  max-width: min(86vw, 420px); padding: 11px 18px; border-radius: 100px;
  background: #f3eee6; color: #141016; font: 600 13.5px/1.35 var(--f-body); text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #3a0d18; color: #ffd6de; }

.viewer { position: fixed; inset: 0; z-index: 150; background: #050307; display: flex; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 50px) 10px calc(var(--safe-b) + 20px); animation: fadeIn .2s ease both; }
.viewer img, .viewer video { max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; }
.viewer .icon-btn { position: absolute; top: calc(var(--safe-t) + 10px); right: 12px; }

/* ---------- 10. PREMYERA (login) ---------- */
.login {
  position: fixed; inset: 0; z-index: 210; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;   /* aylanuvchi nurlar gorizontal aylantirish yaratmasin */
  background: linear-gradient(180deg, #0b0716 0%, #1c0a20 42%, #3d0c1b 100%);
}
.login-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.login-in { position: relative; z-index: 1; min-height: 100%; max-width: var(--maxw); margin: 0 auto; padding: calc(var(--safe-t) + 44px) 24px calc(var(--safe-b) + 34px); display: flex; flex-direction: column; align-items: center; }
.login .beam { position: absolute; bottom: -40px; width: 90px; height: 760px; transform-origin: 50% 100%; pointer-events: none;
  background: linear-gradient(0deg, transparent, rgba(255, 236, 190, .14) 30%, transparent); }
.login .beam.l { left: calc(50% - 210px); animation: sweepL 7s ease-in-out infinite alternate; }
.login .beam.r { right: calc(50% - 210px); animation: sweepR 8s ease-in-out infinite alternate; }
@keyframes sweepL { from { transform: rotate(-26deg); } to { transform: rotate(10deg); } }
@keyframes sweepR { from { transform: rotate(24deg); } to { transform: rotate(-12deg); } }
.premiere-sign { width: min(280px, 100%); height: 82px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(180deg, #240b12, #14060a); border: 2px solid #6b4a1c; box-shadow: 0 0 0 5px #1a0c0f, 0 16px 40px rgba(0, 0, 0, .6); }
.premiere-sign span { font: 700 32px/1 var(--f-board); letter-spacing: .3em; margin-right: -.3em; color: var(--bulb); text-shadow: 0 0 10px rgba(255, 200, 90, .9), 0 0 26px rgba(255, 140, 40, .55); }
.login .sub { margin: 18px 0 22px; text-align: center; font: 700 14px/1.4 var(--f-credit); letter-spacing: .14em; color: #E8C9A6; }
.ticket { position: relative; z-index: 2; width: 100%; max-width: 340px; display: flex; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .55)); transform: rotate(-1deg); }
.ticket.shake { animation: shake .4s ease; }
@keyframes shake { 0%, 100% { transform: rotate(-1deg) translateX(0); } 25%, 75% { transform: rotate(-1deg) translateX(-7px); } 50% { transform: rotate(-1deg) translateX(7px); } }
.t-main { flex: 1; min-width: 0; padding: 17px 16px 15px 18px; border-radius: 10px 0 0 10px; background: linear-gradient(135deg, #FBEFD6, #F1DDB6); color: var(--ink);
  -webkit-mask: radial-gradient(circle at 100% 50%, transparent 0 10px, #000 10.5px); mask: radial-gradient(circle at 100% 50%, transparent 0 10px, #000 10.5px); }
.t-stub { width: 70px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 0 12px;
  border-radius: 0 10px 10px 0; border-left: 2px dashed rgba(90, 40, 30, .35); background: linear-gradient(135deg, #F4DFB5, #E9CF9E);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 0 10px, #000 10.5px); mask: radial-gradient(circle at 0 50%, transparent 0 10px, #000 10.5px); }
.t-kicker { font: 700 10px/1 var(--f-board); letter-spacing: .24em; color: var(--crimson); }
.t-title { font: 400 29px/1.3 var(--f-logo); color: #8E1330; margin: 5px 0 6px; }
.t-field { display: block; margin-top: 8px; }
.t-field span { display: block; font: 700 9.5px/1 var(--f-board); letter-spacing: .2em; color: #8a5a4a; text-transform: uppercase; }
.t-field input { width: 100%; border: 0; border-bottom: 1.5px dashed rgba(110, 50, 40, .45); background: transparent; padding: 7px 0 6px; font: 500 16px/1.2 var(--f-body); color: #3b1f2b; outline: none; border-radius: 0; }
.t-field input::placeholder { color: #b39a88; }
.t-field input:focus { border-bottom-color: var(--crimson); }
.t-meta { display: flex; gap: 7px; margin-top: 13px; }
.t-meta div { flex: 1; border: 1.5px solid rgba(142, 19, 48, .35); border-radius: 6px; padding: 5px 0 4px; text-align: center; }
.t-meta small { display: block; font: 700 8.5px/1 var(--f-board); letter-spacing: .16em; color: #8a5a4a; }
.t-meta b { font: 700 16px/1.25 var(--f-board); color: #5a0f1f; }
.t-no, .t-adm { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 12px/1 var(--f-board); letter-spacing: .2em; color: var(--velvet); }
.t-adm { font-size: 9px; color: #8a5a4a; }
.barcode { width: 32px; height: 64px; background: repeating-linear-gradient(0deg, #3b1d18 0 2px, transparent 2px 4px, #3b1d18 4px 5px, transparent 5px 8px, #3b1d18 8px 11px, transparent 11px 13px); }
.login-err { position: relative; z-index: 2; min-height: 22px; margin-top: 16px; color: #ffb3c2; font: 600 13.5px/1.4 var(--f-body); text-align: center; }
.login .cta { position: relative; z-index: 2; margin-top: 6px; width: 100%; max-width: 330px; height: 54px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #c81a3a, var(--velvet)); border: 1px solid var(--gold-2); color: var(--bulb);
  font: 700 15px/1 var(--f-board); letter-spacing: .24em; text-transform: uppercase; box-shadow: 0 12px 30px rgba(179, 18, 47, .45); }
.login .cta::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 240, 200, .45), transparent); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -80px; } 85%, 100% { left: 120%; } }
.carpet { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; pointer-events: none; clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 7px), linear-gradient(180deg, #5e0a19, #9c1430 60%, #b3122f); }
.flash { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; opacity: 0; pointer-events: none; animation: flash 3.6s infinite;
  background: radial-gradient(circle, #fff 0 12%, rgba(255, 255, 255, .75) 18%, rgba(255, 240, 220, .18) 45%, transparent 70%); }
@keyframes flash { 0%, 91%, 100% { opacity: 0; transform: scale(.6); } 93% { opacity: 1; transform: scale(1.1); } 96% { opacity: .35; transform: scale(1); } }
.login .cast { position: relative; z-index: 2; margin-top: auto; padding-top: 38px; text-align: center; font: 700 12.5px/1.4 var(--f-credit); letter-spacing: .2em; color: var(--gold); }
.login .cast b { display: block; font: italic 700 21px/1.3 var(--f-poster); letter-spacing: .02em; color: var(--cream); }

/* ---------- 11. PARDALI KIRISH (intro) ---------- */
.intro { position: fixed; inset: 0; z-index: 200; background: #050306; overflow: hidden; }
.intro-film { position: absolute; inset: 0; }
.intro-film video { width: 100%; height: 100%; object-fit: cover; }
.intro-film .poster { position: absolute; inset: 0; background: #0b0710 center/cover no-repeat; }
.intro-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 5, 12, .55) 0%, rgba(9, 5, 12, .35) 40%, rgba(9, 5, 12, .8) 100%), radial-gradient(130% 70% at 50% 40%, transparent 40%, rgba(0, 0, 0, .55) 100%);
  transition: opacity .6s ease; }
.intro-content { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 50px) 24px calc(var(--safe-b) + 30px); text-align: center; transition: opacity .6s ease, transform .6s ease; }
.presents { font: 700 11px/1.5 var(--f-credit); letter-spacing: .22em; color: #d7c197; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); margin-bottom: 18px; }
.title-frame { position: relative; width: min(250px, 72vw); aspect-ratio: 250 / 206; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(13, 5, 8, .78); border: 2px solid #6b4a1c; box-shadow: 0 0 0 6px rgba(20, 7, 9, .9), 0 0 60px rgba(242, 193, 78, .12); }
.film-title { display: flex; flex-direction: column; align-items: center; line-height: .95; }
.film-title span { font: italic 900 44px/1 var(--f-poster); letter-spacing: .02em; color: #F2C14E;
  background: linear-gradient(180deg, #FFF1C2 0%, #F2C14E 45%, #B97A1E 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #5a1414); }
.film-title em { font: 400 36px/1.1 var(--f-logo); font-style: normal; color: var(--neon); margin: -5px 0 -2px; transform: rotate(-6deg);
  text-shadow: 0 0 12px rgba(255, 90, 147, .8), 0 0 30px rgba(255, 90, 147, .45); }
.starring { margin-top: 24px; font: 700 12px/1 var(--f-credit); letter-spacing: .3em; color: #d7c197; }
.castline { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.castline span { font: italic 700 clamp(17px, 5.4vw, 21px)/1.1 var(--f-poster); color: var(--cream); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.castline i { font-style: normal; color: var(--neon); }
.intro .start { margin-top: 34px; }
.curtain { position: absolute; top: 0; bottom: 0; width: 14%; z-index: 20; will-change: transform;
  background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 30%, rgba(0, 0, 0, .25) 60%, transparent), repeating-linear-gradient(90deg, #4a0714 0 9px, #86132a 9px 19px, #5c0a19 19px 27px);
  transition: transform 1.4s cubic-bezier(.7, 0, .2, 1); }
.curtain.l { left: 0; box-shadow: 12px 0 30px rgba(0, 0, 0, .55); }
.curtain.r { right: 0; box-shadow: -12px 0 30px rgba(0, 0, 0, .55); }
.valance { position: absolute; left: 0; right: 0; top: 0; z-index: 21; height: calc(var(--safe-t) + 40px); border-bottom: 2px solid var(--gold-2);
  background: linear-gradient(180deg, #3a0510, #86132a); will-change: transform; transition: transform 1.4s cubic-bezier(.7, 0, .2, 1); }
.valance::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px;
  background: radial-gradient(circle at 50% 0, #86132a 0 13px, var(--gold-2) 13px 14.5px, transparent 15px) 0 0 / 30px 16px repeat-x; }
/* pardalar soyasi bilan birga to'liq chiqib ketadi — 3·2·1 paytida chetlarda qoramtir iz qolmasin
   (soya 12px siljish + 30px yoyilish = ~42px) */
.intro.open .curtain.l { transform: translateX(calc(-100% - 60px)); }
.intro.open .curtain.r { transform: translateX(calc(100% + 60px)); }
.intro.open .valance { transform: translateY(calc(-100% - 30px)); }
.intro.open .intro-content { opacity: 0; transform: scale(1.05); pointer-events: none; }
.intro.reveal { opacity: 0; pointer-events: none; transition: opacity 1.7s ease; }

/* plyonka sanog'i 3·2·1 (film leader) */
.leader-layer { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: #050406; opacity: 0; transition: opacity .5s ease; pointer-events: none; overflow: hidden; }
.intro.counting .leader-layer { opacity: 1; }
.leader-layer .flicker { position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 45%, rgba(255, 245, 225, .08), transparent 70%); animation: flick 2.6s infinite; }
@keyframes flick { 0%, 100% { opacity: .9; } 10% { opacity: .55; } 12% { opacity: 1; } 40% { opacity: .8; } 42% { opacity: .95; } 70% { opacity: .7; } }
.scratch { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .16); animation: scr 1.7s steps(6) infinite; }
@keyframes scr { 0% { transform: translateX(0); opacity: .4; } 20% { opacity: 0; } 40% { transform: translateX(30px); opacity: .3; } 60% { opacity: 0; } 80% { transform: translateX(-24px); opacity: .25; } 100% { transform: translateX(8px); opacity: 0; } }
.leader { position: relative; width: min(250px, 66vw); aspect-ratio: 1; transition: opacity .7s ease, transform .9s ease; }
.leader .ring { position: absolute; border-radius: 50%; border: 3px solid #d8cdb8; }
.leader .r1 { inset: 0; }
.leader .r2 { inset: 9%; border-width: 2px; opacity: .7; }
.leader .cross { position: absolute; inset: 0; }
.leader .cross::before, .leader .cross::after { content: ""; position: absolute; background: #d8cdb8; opacity: .55; }
.leader .cross::before { left: 50%; top: -16%; bottom: -16%; width: 2px; margin-left: -1px; }
.leader .cross::after { top: 50%; left: -24%; right: -24%; height: 2px; margin-top: -1px; }
.leader .sweep { position: absolute; inset: 3px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(216, 205, 184, .38) 0deg, rgba(216, 205, 184, .05) 90deg, transparent 91deg); animation: spin .92s linear infinite; }
.leader .num { position: absolute; inset: 0; display: grid; place-items: center; font: 700 min(150px, 40vw)/1 var(--f-board); color: #efe6d4; }
.leader .num.pop { animation: numPop .92s ease both; }
@keyframes numPop { 0% { opacity: 0; transform: scale(1.25); } 12% { opacity: 1; transform: scale(1); } 85% { opacity: 1; } 100% { opacity: .15; } }
.intro.dark .leader { opacity: 0; transform: scale(.94); }
.intro.dark .leader-layer .flicker, .intro.dark .scratch { opacity: 0; transition: opacity .6s ease; }

/* ---------- 12. AFISHA ---------- */
.theater { position: relative; margin: 0 -16px; height: calc((min(100vw, var(--maxw)) - 68px) / 2.35 + 108px); }
.ambient { position: absolute; left: -12%; top: 0; width: 124%; height: 100%; opacity: .75; pointer-events: none; image-rendering: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); }
.theater .valance { position: absolute; height: 30px; transition: none; z-index: 3; }
.theater .curtain { width: 34px; transition: none; z-index: 3; }
.screen-slot { position: absolute; left: 34px; right: 34px; top: 46px; aspect-ratio: 2.35 / 1; z-index: 2; border-radius: 3px; background: #000 center/cover no-repeat;
  box-shadow: 0 0 0 2px #120a10, 0 0 46px rgba(255, 190, 230, .22); }
.screen-slot video { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.screen-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 10px; color: var(--dim); font: 600 12.5px/1.4 var(--f-body); background: linear-gradient(160deg, #1b1224, #0b0710); border-radius: 3px; }
.drapes { position: absolute; left: 34px; right: 34px; top: 30px; bottom: 38px; z-index: 2; overflow: hidden; pointer-events: none; }
.drape { position: absolute; top: 0; bottom: 0; width: 51%; will-change: transform;
  background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 30%, rgba(0, 0, 0, .25) 60%, transparent), repeating-linear-gradient(90deg, #4a0714 0 9px, #86132a 9px 19px, #5c0a19 19px 27px);
  transition: transform 2.6s cubic-bezier(.65, 0, .25, 1) .25s; }
.drape.l { left: 0; transform: translateX(-101%); box-shadow: 10px 0 24px rgba(0, 0, 0, .5); }
.drape.r { right: 0; transform: translateX(101%); box-shadow: -10px 0 24px rgba(0, 0, 0, .5); }
.screen-slot::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: #000; opacity: 0; pointer-events: none; transition: opacity 2s ease 1.1s; }
.page.opening .drape { transform: none; transition: none; }
.page.opening .screen-slot::after { opacity: 1; transition: none; }
.page.opening .ambient { opacity: 0; }
.ambient { transition: opacity 2.4s ease 1.2s; }
.page.opening .now-row, .page.opening .letterboard, .page.opening .af-grid, .page.opening .chat-peek, .page.opening .af-more { opacity: 0; }
.page.opened .now-row { animation: rise .8s ease 1.9s both; }
.page.opened .letterboard { animation: rise .8s ease 2.15s both; }
.page.opened .af-grid { animation: rise .8s ease 2.4s both; }
.page.opened .chat-peek { animation: rise .8s ease 2.6s both; }
.page.opened .af-more { animation: rise .8s ease 2.8s both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.seats { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 34px; z-index: 2; background: radial-gradient(14px 16px at 50% 100%, #0c070d 98%, transparent) 0 0 / 28px 34px repeat-x; }
.now-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 2px 14px; }
.snd span:last-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.now { display: flex; align-items: center; gap: 8px; min-width: 0; font: 700 10.5px/1 var(--f-board); letter-spacing: .22em; color: var(--bulb); }
.now span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 8px #ff3b5c; flex: none; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.now em { font: 400 16px/1.25 var(--f-logo); font-style: normal; letter-spacing: 0; color: var(--pink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.since { text-align: center; margin: 10px 0 16px; font: 700 12px/1.3 var(--f-credit); letter-spacing: .16em; color: #cdb58f; }
.letterboard + .af-grid { margin-top: 14px; }
.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.af-more { margin-top: 28px; }
.af-more .since { margin-top: 18px; }
.studio-link { width: 100%; text-align: left; margin-top: 18px; }
.studio-link .wc-ico { background: #1b1220; border-color: var(--line-2); color: var(--gold); }
.studio-link .wc-t b { font: 600 15px/1.2 var(--f-body); color: var(--cream); }
.af-grid .card { min-height: 118px; }
.af-grid .card .eyebrow { padding-right: 40px; }
.mini-poster { position: absolute; right: 10px; top: 10px; width: 36px; height: 50px; border-radius: 3px; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); overflow: hidden; }
.mini-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bar { height: 4px; border-radius: 4px; background: #2a1f30; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), #ffdf8e); }
.wide-card { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.wide-card .wc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #2a0b22; border: 1px solid #6b1c4a; color: #FF8CBB; }
.wide-card .wc-ico svg { width: 22px; height: 22px; }
.wide-card .wc-t { flex: 1; min-width: 0; }
.wide-card .wc-t b { display: block; font: 400 20px/1.1 var(--f-logo); color: #FF8CBB; }
.wide-card .wc-t small { display: block; margin-top: 3px; font: 500 12px/1.3 var(--f-body); color: var(--dim); }
.chat-peek { margin-top: 10px; display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--r); background: #170f1c; border: 1px solid var(--line); }
.av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(160deg, #5a1426, #2a0a14); border: 1px solid #7a4a2a; font: italic 900 17px/1 var(--f-poster); color: var(--gold); }
.chat-peek .t { flex: 1; min-width: 0; }
.chat-peek .t b { display: block; font: 600 13.5px/1.25 var(--f-body); color: var(--cream); }
.chat-peek .t span { display: block; font: 400 13px/1.35 var(--f-body); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-peek .m { font: 500 11px/1 var(--f-body); color: var(--dim); text-align: right; }
.chat-peek .m i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin: 7px 0 0 auto; box-shadow: 0 0 8px rgba(242, 193, 78, .8); }
.titr-link { width: 100%; text-align: left; border-color: rgba(242, 193, 78, .38); background: linear-gradient(160deg, #241a12, #120b0e); }
.titr-link .wc-ico { background: #2a1d0c; border-color: #7a5a22; color: var(--gold); }
.titr-link .wc-t b { color: var(--bulb); text-shadow: 0 0 12px rgba(242, 193, 78, .35); }
.titr-play { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gold); color: #1a0c10; box-shadow: 0 6px 18px rgba(242, 193, 78, .3); }
.titr-play svg { width: 15px; height: 15px; margin-left: 2px; }
.cp-link { width: 100%; text-align: left; }
.cp-link .wc-ico { background: #2a1d0c; border-color: #7a5a22; color: var(--gold); }
.cp-link .wc-t b { font: 600 15px/1.2 var(--f-body); color: var(--cream); }
.af-foot { margin: 22px 0 4px; text-align: center; font: 500 12px/1.4 var(--f-body); color: var(--dim-2); }
.af-foot button { color: var(--dim); font: 600 12px/1 var(--f-body); text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }

/* ---------- 13. SAHNALAR ---------- */
.week { display: flex; gap: 5px; margin: 0 -2px 14px; }
.day { flex: 1; min-width: 0; height: 62px; border-radius: 10px; background: #150e19; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; position: relative; }
.day small { font: 700 9px/1 var(--f-board); letter-spacing: .1em; color: var(--dim); }
.day b { font: italic 700 19px/1 var(--f-poster); color: var(--cream); }
.day.has::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.day.today { border-color: var(--gold); background: linear-gradient(180deg, rgba(242, 193, 78, .2), #150e19); }
.day.today small { color: var(--gold); }
.strip { position: relative; background: #050307; border-radius: 6px; padding: 4px 26px; }
.strip::before, .strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26px; background: repeating-linear-gradient(180deg, transparent 0 7px, #2c2432 7px 17px, transparent 17px 24px) center / 10px 100% no-repeat; }
.strip::before { left: 0; } .strip::after { right: 0; }
.frame, .intertitle { margin: 10px 0 12px; content-visibility: auto; contain-intrinsic-size: auto 260px; }
.frame { border-radius: 4px; overflow: hidden; background: #140d18; border: 1px solid #2a2030; display: block; width: 100%; text-align: left; }
.frame .ph { position: relative; aspect-ratio: 16 / 10; background: #0d0810; }
.frame .ph img, .frame .ph video { width: 100%; height: 100%; object-fit: cover; }
.frame .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.frame .play svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }
.frame .cap { padding: 10px 12px 12px; }
.cap-no { display: block; font: 700 9.5px/1 var(--f-board); letter-spacing: .2em; color: var(--gold); }
.frame .cap p { font: 500 20px/1.25 var(--f-hand); color: var(--cream); margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chip { display: inline-block; margin-top: 8px; font: 600 10.5px/1 var(--f-body); color: #1a0c10; background: var(--gold); padding: 4px 9px; border-radius: 100px; }
.intertitle { display: block; width: 100%; background: #000; border: 1px solid #3a3040; padding: 6px; text-align: center; }
.intertitle > div { border: 3px double #d8cdb8; padding: 18px 14px 15px; }
.intertitle p { font: italic 700 18px/1.4 var(--f-poster); color: #efe6d4; white-space: pre-wrap; overflow-wrap: anywhere; }
.intertitle small { display: block; margin-top: 11px; font: 700 9.5px/1 var(--f-board); letter-spacing: .2em; color: #9d8f84; }
.clap { position: fixed; z-index: 45; right: max(18px, calc(50% - var(--maxw) / 2 + 18px)); bottom: calc(var(--tab-h) + var(--mini-h) + 22px + var(--safe-b)); width: 60px; height: 54px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.clap .top { position: absolute; left: 0; right: 0; top: 0; height: 14px; border-radius: 3px; background: repeating-linear-gradient(-45deg, #f3eee6 0 7px, #141016 7px 14px); transform-origin: 3px 13px; transform: rotate(-24deg); transition: transform .12s ease; }
.clap .body { position: absolute; left: 0; right: 0; top: 15px; bottom: 0; border-radius: 4px; background: linear-gradient(180deg, #f7d27a, var(--gold-2)); display: grid; place-items: center; color: #2a1408; }
.clap .body svg { width: 24px; height: 24px; }
.clap.snap .top { animation: snap .6s ease both; }
@keyframes snap { 0% { transform: rotate(-24deg); } 35% { transform: rotate(0); } 50% { transform: rotate(-7deg); } 65%, 100% { transform: rotate(0); } }
/* taqvim */
.cal { background: #120c16; border: 1px solid var(--line); border-radius: 18px; padding: 14px 12px 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font: italic 900 22px/1 var(--f-poster); color: var(--cream); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-wd { text-align: center; font: 700 9.5px/1 var(--f-board); letter-spacing: .08em; color: var(--dim); padding-bottom: 4px; }
.cal-cell { position: relative; width: 100%; min-width: 0; aspect-ratio: 1; border-radius: 10px; background: #1a1220; color: var(--cream); display: grid; place-items: center; font: 600 13px/1 var(--f-body); }
.cal-cell.blank { background: transparent; pointer-events: none; }
.cal-cell.today { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold); }
.cal-cell.has { background: linear-gradient(160deg, #5a1426, #3a0c1c); }
.cal-cell.has::after { content: attr(data-n); position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); min-width: 6px; height: 6px; padding: 0 3px; border-radius: 6px; background: var(--gold); color: #1a0c10; font: 700 7px/6px var(--f-body); }
.cal-cell.special { box-shadow: inset 0 0 0 1.5px var(--neon); }
.cal-legend { display: flex; justify-content: center; gap: 16px; margin-top: 12px; font: 500 11.5px/1 var(--f-body); color: var(--dim); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.attach { display: flex; gap: 10px; flex-wrap: wrap; }
.attach .btn { height: 42px; padding: 0 14px; font-size: 13.5px; }
.preview { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.preview img, .preview video { width: 100%; max-height: 240px; object-fit: contain; }
.preview .icon-btn { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; background: rgba(0, 0, 0, .6); }
.detail-media { border-radius: 12px; overflow: hidden; background: #000; }
.detail-media img, .detail-media video { width: 100%; max-height: 56dvh; object-fit: contain; }
.detail-text { font: 500 22px/1.3 var(--f-hand); color: var(--cream); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- 14. MAKTUBLAR (bo'sh pavilyon) ---------- */
.page[data-page="maktublar"] { overflow: hidden; }
.stage { position: absolute; inset: 0; pointer-events: none; overflow: hidden; background: radial-gradient(120% 60% at 62% 12%, #2c1b36 0%, #140c18 58%, #0b070d 100%); }
.stage .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 24px), linear-gradient(180deg, #1d1219, #0a0609); }
.moon-rig { position: absolute; right: 30px; top: calc(var(--safe-t) + 0px); width: 120px; height: 250px; transform-origin: 50% 0; animation: sway 6s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.string { position: absolute; top: 0; width: 1px; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .38)); }
.moon { position: absolute; left: 4px; top: 118px; width: 112px; height: 112px; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #FFF7E0 0%, #F3E1B5 52%, #CDB27A 100%); box-shadow: 0 0 50px rgba(255, 236, 180, .32), inset -10px -12px 24px rgba(120, 90, 40, .35); }
.moon i { position: absolute; border-radius: 50%; background: rgba(160, 130, 80, .28); }
.hang { position: absolute; top: 0; transform-origin: 50% 0; animation: sway 3.4s ease-in-out infinite alternate; }
.hang .string { left: 50%; }
.hang .st { position: absolute; left: 50%; transform: translateX(-50%); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: linear-gradient(135deg, #fff3c4, #e2b24a 50%, #9a6a1c); }
.lamp { position: absolute; left: 12px; top: calc(var(--safe-t) + 96px); width: 52px; height: 34px; border-radius: 6px; background: linear-gradient(180deg, #3a3a40, #1e1e22); transform: rotate(34deg); box-shadow: 0 6px 12px rgba(0, 0, 0, .5); }
.lamp::before { content: ""; position: absolute; right: -6px; top: 4px; width: 8px; height: 26px; border-radius: 2px; background: #fff6dc; box-shadow: 0 0 20px 6px rgba(255, 236, 190, .6); }
.spot { position: absolute; left: 40px; top: calc(var(--safe-t) + 100px); width: 440px; height: 620px; background: linear-gradient(150deg, rgba(255, 242, 205, .30), rgba(255, 242, 205, .1) 55%, rgba(255, 242, 205, .03) 85%); clip-path: polygon(0 0, 9% 0, 72% 86%, 10% 86%); }
.fan { position: absolute; left: -58px; top: calc(var(--safe-t) + 180px); width: 136px; height: 136px; border-radius: 50%;
  background: radial-gradient(circle, #1b1b1f 0 13%, transparent 14%), repeating-radial-gradient(circle, rgba(210, 210, 220, .26) 0 1px, transparent 1px 11px);
  border: 4px solid #4a4a52; box-shadow: 0 0 0 3px #1c1c20, 0 18px 30px rgba(0, 0, 0, .6); }
.fan::after { content: ""; position: absolute; inset: 13%; border-radius: 50%; animation: spin .3s linear infinite; opacity: .8;
  background: conic-gradient(rgba(170, 170, 180, .6) 0 17%, transparent 17% 25%, rgba(170, 170, 180, .6) 25% 42%, transparent 42% 50%, rgba(170, 170, 180, .6) 50% 67%, transparent 67% 75%, rgba(170, 170, 180, .6) 75% 92%, transparent 92%); }
.petal { position: absolute; left: 60px; animation: blow linear infinite; }
.petal i { display: block; width: 11px; height: 7px; border-radius: 70% 0 70% 0; animation: flutter ease-in-out infinite alternate; }
@keyframes blow { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(380px); opacity: 0; } }
@keyframes flutter { from { transform: translateY(-12px) rotate(0); } to { transform: translateY(16px) rotate(240deg); } }
.letters-ui { position: relative; z-index: 2; }
.slate { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding-right: 11px; border-radius: 8px; overflow: hidden; background: #0b0b0d; border: 1px solid #37303c; font: 700 11px/1 var(--f-board); letter-spacing: .16em; color: #EDE3D2; }
.slate::before { content: ""; width: 34px; height: 100%; background: repeating-linear-gradient(-45deg, #f3eee6 0 6px, #0b0b0d 6px 12px); }
.letters-seg { display: flex; justify-content: center; margin: 150px 0 16px; }
.paper {
  position: relative; margin: 0 14px; padding: 20px 20px 18px; border-radius: 5px; transform: rotate(-1.4deg);
  background: repeating-linear-gradient(0deg, transparent 0 29px, rgba(120, 60, 50, .12) 29px 30px) 0 50px / 100% 100% no-repeat, linear-gradient(170deg, #FBF1DC, #F1E0BD);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .6); color: #3b1f2b;
}
.paper .to { font: 700 27px/1 var(--f-hand); color: #8E1330; }
.paper p { font: 500 22px/30px var(--f-hand); margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.paper .sign { text-align: right; font: 700 24px/1 var(--f-hand); color: #5a1a2c; margin-top: 10px; }
.paper .meta { font: 500 10.5px/1 var(--f-body); color: #9a7a6a; margin-top: 12px; letter-spacing: .04em; }
.seal { position: absolute; right: 16px; bottom: -18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transform: rotate(8deg);
  background: radial-gradient(circle at 40% 35%, #d4344f, #8a0f25 70%); box-shadow: 0 4px 10px rgba(0, 0, 0, .45), inset 0 0 0 4px rgba(0, 0, 0, .12); font: italic 900 19px/1 var(--f-poster); color: #ffd6d6; }
.letter-nav { display: flex; align-items: center; justify-content: space-between; margin: 30px 14px 0; font: 600 13px/1 var(--f-body); color: var(--dim); }
.letter-nav button { padding: 10px 8px; color: var(--gold); font-weight: 600; }
.letter-nav button[disabled] { color: #4d4254; }
.letters-actions { display: flex; gap: 10px; margin: 18px 14px 0; }
.letters-actions .btn { flex: 1; }

/* ---------- 15. ORZULAR ---------- */
.add-dream svg { width: 18px; height: 18px; flex: none; }
.add-dream { display: flex; width: 100%; height: 46px; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed rgba(242, 193, 78, .6); border-radius: 12px; color: var(--gold); font: 600 14px/1 var(--f-body); background: rgba(242, 193, 78, .05); margin-bottom: 14px; }
.posters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pst { position: relative; display: block; width: 100%; aspect-ratio: 150 / 208; border-radius: 5px; overflow: hidden; border: 3px solid #efe0c0; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); text-align: left; content-visibility: auto; contain-intrinsic-size: auto 230px; }
.pst .art { position: absolute; inset: 0; }
.pst .art svg { width: 100%; height: 100%; }
.pst .art.photo { background: #1a1120; }
.pst .art.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pst .art.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 6, 12, .5) 0%, transparent 24%, transparent 58%, rgba(10, 4, 8, .2) 100%); }
.photo-pick { display: flex; gap: 12px; align-items: center; }
.pp-prev { width: 92px; aspect-ratio: 150 / 208; flex: none; border-radius: 4px; overflow: hidden; border: 2px solid var(--gold); background: #1a1120; }
.pp-prev img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-actions { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.photo-btn { margin-top: 10px; }
.photo-btn svg, .pp-actions svg { width: 18px; height: 18px; }
.pst .halftone { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(40, 0, 20, .35) .9px, transparent 1.3px); background-size: 4px 4px; }
.pst .lbl { position: absolute; left: 0; right: 0; top: 9px; text-align: center; font: 700 8.5px/1 var(--f-board); letter-spacing: .28em; color: #fff4d6; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.pst .band { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 9px 9px; background: linear-gradient(180deg, transparent, rgba(10, 4, 8, .9) 45%); }
.pst .band b { display: block; font: 700 14px/1.12 var(--f-board); letter-spacing: .03em; color: #fff4d6; text-transform: uppercase; overflow-wrap: anywhere; }
.pst .band small { display: block; margin-top: 5px; font: 500 10px/1.2 var(--f-body); color: #e9d6c0; }
.pst.done .art { filter: saturate(.7) sepia(.2); }
.stamp { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-14deg); padding: 6px 8px 5px 10px; border: 3px double #e0334f; color: #ff4d68; font: 700 clamp(11px, 3.4vw, 14px)/1.18 var(--f-board); letter-spacing: .16em; text-align: center; white-space: nowrap; background: rgba(20, 4, 8, .42); border-radius: 4px; }
.stamp.slam { animation: slam .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes slam { from { transform: translate(-50%, -50%) rotate(-14deg) scale(2.2); opacity: 0; } to { transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: 1; } }
.art-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.art-pick button { aspect-ratio: 150 / 208; border-radius: 4px; overflow: hidden; border: 2px solid transparent; opacity: .75; }
.art-pick button[aria-pressed="true"] { border-color: var(--gold); opacity: 1; }
.art-pick svg { width: 100%; height: 100%; }
.confetti { position: fixed; inset: 0; z-index: 195; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 7px; height: 11px; border-radius: 1px; animation: conf linear forwards; }
@keyframes conf { to { transform: translateY(110dvh) rotate(720deg); } }

/* ---------- 16. SUHBAT (grimxona) ---------- */
.mirror-bulbs { position: fixed; top: 0; bottom: 0; width: 14px; z-index: 5; pointer-events: none; }
.mirror-bulbs.l { left: max(2px, calc(50% - var(--maxw) / 2 + 2px)); }
.mirror-bulbs.r { right: max(2px, calc(50% - var(--maxw) / 2 + 2px)); }
.mirror-bulbs .bulb { left: 7px; }
.msgs { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 70px; }
.more-msgs { display: block; margin: 0 auto 12px; padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line-2); background: #150e1a; color: var(--gold); font: 600 12.5px/1 var(--f-body); }
.dayl { align-self: center; margin: 10px 0 4px; font: 700 9.5px/1 var(--f-board); letter-spacing: .24em; color: var(--dim); padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; }
.bub { position: relative; max-width: 80%; padding: 9px 12px 7px; border-radius: 16px; font: 400 15px/1.4 var(--f-body); white-space: pre-wrap; overflow-wrap: anywhere; }
.bub.them { align-self: flex-start; background: #281c2e; border: 1px solid rgba(255, 255, 255, .06); color: #EDE3D2; border-bottom-left-radius: 5px; }
.bub.me { align-self: flex-end; background: linear-gradient(160deg, #a3183a, #6e0f1e); color: #FBEFD8; border-bottom-right-radius: 5px; box-shadow: 0 6px 16px rgba(110, 15, 30, .3); }
.bub time { display: block; text-align: right; font: 500 10px/1 var(--f-body); opacity: .65; margin-top: 4px; }
.bub.pending { opacity: .6; }
.voice { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.voice .vp { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--gold); color: #1a0c10; }
.voice .vp svg { width: 13px; height: 13px; }
.wave { position: relative; display: flex; align-items: center; gap: 2px; height: 24px; flex: 1; }
.wave i { width: 3px; border-radius: 2px; background: rgba(237, 227, 210, .38); }
.wave i.on { background: var(--gold); }
.voice .vt { font: 500 11px/1 var(--f-body); opacity: .75; font-variant-numeric: tabular-nums; }
.typing { display: flex; align-items: center; gap: 6px; margin: 4px 8px 0; font: 500 12.5px/1 var(--f-body); color: var(--dim); }
.typing b { width: 7px; height: 7px; border-radius: 50%; background: #5c431b; animation: chase 1.2s steps(1) infinite; }
.typing b:nth-child(2) { animation-delay: -.4s; } .typing b:nth-child(3) { animation-delay: -.8s; }
.inbar { position: fixed; left: 0; right: 0; z-index: 35; bottom: calc(var(--tab-h) + var(--safe-b) + 8px); max-width: var(--maxw); margin: 0 auto; padding: 0 12px; display: flex; align-items: flex-end; gap: 8px; }
.inbar textarea { flex: 1; min-width: 0; max-height: 130px; min-height: 46px; resize: none; border-radius: 23px; padding: 12px 16px; background: #181020; border: 1px solid var(--line); color: var(--cream); font: 400 15px/1.35 var(--f-body); outline: none; }
.inbar textarea:focus { border-color: var(--gold); }
.inbar .ib { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid var(--line); background: #181020; color: var(--gold); }
.inbar .ib.send { background: linear-gradient(180deg, #f7d27a, var(--gold-2)); color: #2a1408; border: 0; }
.inbar .ib svg { width: 19px; height: 19px; }
.rec { flex: 1; height: 46px; border-radius: 23px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #1d0e17; border: 1px solid #6b1c3a; color: var(--cream); font: 600 14px/1 var(--f-body); }
.rec i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b5c; animation: blink 1s ease-in-out infinite; }
.rec span { font-variant-numeric: tabular-nums; }
body.kb-open .tabbar, body.kb-open .mini { display: none; }
body.kb-open .inbar { bottom: calc(8px + var(--kb, 0px)); }

/* ---------- 17. INTERVAL ---------- */
.page[data-page="interval"] { overflow: hidden; }
.disco-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.disco { position: absolute; left: -40%; top: -20%; width: 180%; height: 100%; pointer-events: none; opacity: .85;
  background: conic-gradient(from 0deg at 50% 22%, rgba(255, 90, 147, .2) 0 7deg, transparent 7deg 45deg, rgba(242, 193, 78, .16) 45deg 51deg, transparent 51deg 95deg, rgba(31, 163, 154, .18) 95deg 101deg, transparent 101deg 150deg, rgba(255, 153, 51, .15) 150deg 156deg, transparent 156deg 205deg, rgba(255, 90, 147, .16) 205deg 211deg, transparent 211deg 260deg, rgba(185, 162, 224, .16) 260deg 266deg, transparent 266deg 360deg);
  animation: spin 18s linear infinite; }
.int-ui { position: relative; z-index: 2; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font: 600 13px/1 var(--f-body); padding: 8px 4px; }
.back svg { width: 18px; height: 18px; }
.neon-sign { width: min(290px, 86%); height: 72px; margin: 6px auto 0; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(180deg, #2a0b22, #12060e); border: 2px solid #6b1c4a; box-shadow: 0 0 0 5px #14060f, 0 16px 40px rgba(0, 0, 0, .6); }
.neon-sign span { font: 400 31px/1 var(--f-logo); color: #FF8CBB; text-shadow: 0 0 10px rgba(255, 90, 147, .95), 0 0 28px rgba(255, 90, 147, .55); }
.int-sub { text-align: center; margin: 14px 0 18px; font: 700 10.5px/1.3 var(--f-board); letter-spacing: .24em; color: #cdb58f; }
.icard { position: relative; border-radius: 18px; padding: 15px 15px 16px; background: #1a0e1e; border: 1px solid #3a2442; margin-bottom: 14px; }
.icard h3 { font: italic 900 21px/1.1 var(--f-poster); color: var(--cream); }
.icard .sub { font: 500 12px/1.35 var(--f-body); color: var(--dim); margin-top: 5px; padding-right: 50px; }
.meters { display: flex; gap: 16px; margin-top: 14px; }
.vu { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vu .bars { display: flex; flex-direction: column-reverse; gap: 3px; width: 100%; }
.vu .bars i { height: 7px; border-radius: 2px; background: #2a1f30; transition: background-color .25s ease; }
.vu .bars i.on { background: var(--c); }
.vu b { font: italic 900 24px/1 var(--f-poster); color: var(--gold); }
.vu small { font: 600 12px/1 var(--f-body); color: var(--cream); }
.love-range { width: 100%; margin-top: 14px; accent-color: var(--gold); height: 28px; }
.rps { display: flex; gap: 10px; margin-top: 12px; }
.rps button { flex: 1; height: 78px; border-radius: 14px; border: 1px solid #4a2a52; background: #281430; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; font: 600 12px/1 var(--f-body); color: var(--cream); }
.rps button svg { width: 28px; height: 28px; color: var(--pink-soft); }
.rps button[aria-pressed="true"] { border-color: var(--gold); background: #33241a; }
.rps button[aria-pressed="true"] svg { color: var(--gold); }
.ball { position: absolute; right: 16px; top: -22px; width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95) 0 6%, transparent 22%), repeating-linear-gradient(0deg, #8f95a3 0 5px, #e8eaf0 5px 6px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 5px, transparent 5px 6px);
  background-size: auto, 100% 100%, 120px 100%; animation: ballspin 2.4s linear infinite; box-shadow: 0 0 22px rgba(255, 255, 255, .3), 0 0 60px rgba(255, 90, 147, .22); }
.ball::before { content: ""; position: absolute; left: 50%; top: -44px; width: 1px; height: 44px; background: rgba(255, 255, 255, .35); }
@keyframes ballspin { to { background-position: 0 0, 0 0, 120px 0; } }
.status { margin-top: 12px; display: flex; align-items: center; gap: 8px; font: 500 13px/1.35 var(--f-body); color: var(--cream); }
.status .ok { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--teal); color: #fff; }
.status .ok svg { width: 12px; height: 12px; }
.reveal { display: flex; align-items: center; justify-content: space-around; margin-top: 14px; }
.reveal .side { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 12px/1 var(--f-body); }
.reveal .hand { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: #281430; border: 1px solid #4a2a52; color: var(--pink-soft); }
.reveal .hand svg { width: 34px; height: 34px; }
.reveal .hand.win { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 24px rgba(242, 193, 78, .3); }
.reveal .vs { font: italic 900 20px/1 var(--f-poster); color: var(--dim); }
.verdict { text-align: center; margin-top: 12px; font: 400 26px/1.2 var(--f-logo); color: var(--bulb); }
.shart { margin-top: 12px; padding: 11px 13px; border-radius: 12px; border: 1px dashed rgba(242, 193, 78, .55); font: 500 21px/1.3 var(--f-hand); color: var(--bulb); }
.shart small { display: block; font: 700 9px/1 var(--f-board); letter-spacing: .2em; color: var(--dim); margin-bottom: 5px; }
.stats { margin-top: 12px; text-align: center; font: 600 12px/1.4 var(--f-body); color: var(--dim); }
.ring-again { margin-top: 12px; height: 44px; }
.ring-again svg { width: 18px; height: 18px; color: var(--gold); }
/* shartlar tarixi */
.sh-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sh-item { padding: 11px 13px 12px; border-radius: 12px; border: 1px dashed rgba(242, 193, 78, .5); background: rgba(242, 193, 78, .04); }
.sh-item.done { border-style: solid; border-color: rgba(31, 163, 154, .45); background: rgba(31, 163, 154, .06); }
.sh-meta { display: block; font: 700 9px/1.3 var(--f-board); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.sh-text { margin-top: 5px; font: 500 21px/1.3 var(--f-hand); color: var(--bulb); white-space: pre-wrap; overflow-wrap: anywhere; }
.sh-item.done .sh-text { color: #d9cdb8; }
.sh-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; font: 600 12.5px/1.3 var(--f-body); color: var(--cream); }
.sh-ok { display: inline-flex; align-items: center; gap: 7px; color: #6fd6cd; }
.sh-ok span { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; }
.sh-ok svg { width: 11px; height: 11px; }
.sh-done { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 100px; border: 1px solid rgba(242, 193, 78, .6); color: var(--gold); font: 600 12.5px/1 var(--f-body); }
.sh-done svg { width: 13px; height: 13px; }
.sh-done[aria-pressed="true"] { border-color: var(--line-2); color: var(--dim); }
.sh-empty { margin-top: 12px; text-align: center; font: 500 20px/1.3 var(--f-hand); color: var(--dim); }
.sh-more { margin-top: 12px; height: 42px; font-size: 13.5px; }

/* ---------- 18. STUDIYA ---------- */
.studio-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #1b1220; border: 1px solid var(--line); }
.studio-row .thumb { width: 96px; height: 41px; border-radius: 6px; flex: none; background: #000 center/cover no-repeat; }
.studio-row .t { flex: 1; min-width: 0; }
.studio-row .t b { display: block; font: 600 14px/1.3 var(--f-body); color: var(--cream); }
.studio-row .t small { display: block; font: 500 12px/1.35 var(--f-body); color: var(--dim); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 28px; background: #3a2e40; transition: background .2s ease; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--gold-2); }
.switch input:checked + i::after { transform: translateX(20px); }
.pult-note { margin: 2px 0 4px; padding: 10px 12px; border-radius: 12px; background: #221309; border: 1px solid #5a3f1a; font: 500 12.5px/1.45 var(--f-body); color: #e9d3a8; }
.pult-note b { color: var(--bulb); }
.cp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 8px; }
.cp-grid:empty { display: none; }
.cp-item { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #120c16; border: 1px solid var(--line); }
.cp-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-no { position: absolute; left: 5px; bottom: 5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: rgba(8, 5, 10, .78); font: 700 11px/1 var(--f-board); color: var(--bulb); }
.cp-del { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 5, 10, .78); color: #ffd0d8; }
.cp-del svg { width: 14px; height: 14px; }
.cp-tag { position: absolute; left: 4px; right: 4px; top: 4px; padding: 4px 5px; border-radius: 6px; background: rgba(8, 5, 10, .8); font: 700 7.5px/1.1 var(--f-board); letter-spacing: .1em; color: var(--gold); text-align: center; }
.cp-status { display: block; margin: 2px 0 12px; font-size: 12px; }
.h-sec { font: 700 11px/1 var(--f-board); letter-spacing: .22em; color: var(--gold); text-transform: uppercase; margin-top: 22px !important; }

/* ---------- 19. YAKUNIY TITRLAR ---------- */
.credits { position: fixed; inset: 0; z-index: 180; background: #000; overflow: hidden; animation: fadeIn .4s ease both; }
.pbeam { position: absolute; left: 50%; top: -10px; width: 560px; height: 62%; margin-left: -280px; pointer-events: none; background: radial-gradient(60% 100% at 50% 0%, rgba(255, 240, 210, .2), transparent 72%); clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); }
.roll { position: absolute; left: 0; right: 0; top: 0; padding: 0 20px; text-align: center; animation: roll var(--roll, 26s) linear 1 both; }
.credits.rolled .roll { visibility: hidden; }
.roll-next { margin-top: 70px; font: 700 12px/1 var(--f-credit); letter-spacing: .3em; color: var(--gold); }
@keyframes roll { from { transform: translateY(100dvh); } to { transform: translateY(-100%); } }
.roll .ct { font: italic 900 30px/1 var(--f-poster); color: var(--gold); }
.roll .ct em { font: 400 26px var(--f-logo); font-style: normal; color: var(--neon); margin: 0 6px; }
.roll .tag { margin: 8px 0 44px; font: 700 11px/1 var(--f-credit); letter-spacing: .28em; color: #b9a98f; }
.roll dt { font: 700 12px/1 var(--f-credit); letter-spacing: .26em; color: #9d8f84; margin-top: 34px; }
.roll dd { font: italic 700 23px/1.35 var(--f-poster); color: var(--cream); margin-top: 8px; }
.roll dd small { display: block; font: 500 13px/1.5 var(--f-body); font-style: normal; color: #b8aab9; }
.credits::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: 2; background: linear-gradient(180deg, #000 30%, transparent); pointer-events: none; }
.credits::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: 2; background: linear-gradient(0deg, #000 25%, transparent); pointer-events: none; }
.fin { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px calc(var(--safe-b) + 20px); text-align: center; opacity: 0; visibility: hidden; transition: opacity 1.4s ease, visibility 0s linear 1.4s; }
.credits.end .fin { opacity: 1; visibility: visible; transition: opacity 1.4s ease; }
.fin-hint { max-width: 280px; margin-top: 16px !important; font: 500 12.5px/1.45 var(--f-body) !important; letter-spacing: 0 !important; color: var(--dim) !important; }
.fin h2 { font: 400 34px/1.3 var(--f-logo); color: var(--bulb); text-shadow: 0 0 14px rgba(242, 193, 78, .7), 0 0 34px rgba(242, 150, 40, .35); }
.fin p { font: 700 12px/1 var(--f-credit); letter-spacing: .3em; color: #bfa987; margin-top: 12px; }
.fin .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.credits .icon-btn { position: absolute; z-index: 4; top: calc(var(--safe-t) + 12px); right: 12px; background: rgba(21, 14, 26, .8); }
.credits .cr-snd { right: auto; left: 12px; }
.cr-skip { position: absolute; z-index: 4; right: 14px; bottom: calc(var(--safe-b) + 18px); padding: 10px 14px; border-radius: 100px; border: 1px solid #3a2e40; background: rgba(12, 8, 14, .8); color: #cdbfae; font: 600 12.5px/1 var(--f-body); }
.cr-skip[hidden] { display: none; }
/* bizning kadrlar: foto-qog'oz, sekin yaqinlashish (faqat transform/opacity) */
.cphotos { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.cphoto { grid-area: 1 / 1; margin: 0; padding: 9px 9px 34px; border-radius: 3px; background: #F4EBDA; box-shadow: 0 30px 80px rgba(0, 0, 0, .85), 0 0 60px rgba(255, 220, 160, .08);
  opacity: 0; transform: rotate(var(--rot, 0deg)) scale(.93); transition: opacity 1s ease, transform 6.2s cubic-bezier(.2, .6, .25, 1); will-change: transform, opacity; }
.cphoto.on { opacity: 1; transform: rotate(var(--rot, 0deg)) scale(1); }
.cphoto.off { opacity: 0; transform: rotate(var(--rot, 0deg)) scale(1.04); transition: opacity 1s ease, transform 1s ease; }
.cphoto img { display: block; width: auto; height: auto; max-width: min(78vw, 400px); max-height: min(60dvh, 560px); border-radius: 1px; }
.cp-label, .cp-count { position: absolute; left: 0; right: 0; z-index: 3; text-align: center; font: 700 11px/1 var(--f-credit); letter-spacing: .3em; color: #bfa987; }
.cp-label { top: calc(var(--safe-t) + 74px); }
.cp-count { bottom: calc(var(--safe-b) + 30px); letter-spacing: .2em; }
.cp-label[hidden], .cp-count[hidden] { display: none; }

/* ---------- 19b. ДОН-ДОН ЗИКИ — chaqiruv va duel ---------- */
.duel { position: fixed; inset: 0; z-index: 190; overflow-y: auto; overscroll-behavior: contain; background: #0a060c; animation: fadeIn .25s ease both; }
.duel.closing { animation: duelOut .25s ease both; pointer-events: none; }
@keyframes duelOut { to { opacity: 0; } }
.duel-bg { position: fixed; inset: 0; pointer-events: none; background:
  radial-gradient(70% 45% at 50% 0%, rgba(255, 90, 147, .22), transparent 70%),
  radial-gradient(60% 40% at 50% 100%, rgba(242, 193, 78, .14), transparent 70%),
  repeating-conic-gradient(from 0deg at 50% 30%, rgba(255, 255, 255, .025) 0 8deg, transparent 8deg 22deg); }
.duel-in { position: relative; max-width: var(--maxw); min-height: 100%; margin: 0 auto; padding: calc(var(--safe-t) + 64px) 20px calc(var(--safe-b) + 28px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.duel-x { position: fixed; z-index: 2; top: calc(var(--safe-t) + 12px); right: 12px; }
.duel-kicker { font: 700 11px/1 var(--f-board); letter-spacing: .26em; color: var(--gold); }
.caller { position: relative; margin: 34px 0 18px; width: 116px; height: 116px; display: grid; place-items: center; }
.caller::before, .caller::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 90, 147, .55); animation: callPulse 1.8s ease-out infinite; }
.caller::after { animation-delay: .9s; }
@keyframes callPulse { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.caller-av { position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #7a1530, #2a0a14); border: 2px solid var(--gold-2); font: italic 900 46px/1 var(--f-poster); color: var(--gold); box-shadow: 0 0 40px rgba(255, 90, 147, .35); animation: callShake 1.8s ease-in-out infinite; }
@keyframes callShake { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(-7deg); } 72% { transform: rotate(6deg); } 79% { transform: rotate(-4deg); } 86% { transform: rotate(3deg); } }
.duel-name { font: 400 38px/1.25 var(--f-logo); color: var(--pink-soft); text-shadow: 0 0 18px rgba(255, 90, 147, .5); }
.duel-sub { margin-top: 4px; font: 600 15px/1.4 var(--f-body); color: var(--cream); }
.duel-moves { width: 100%; margin-top: 26px; }
.duel-moves button { height: 96px; border-color: #6b2a52; background: #2a1030; }
.duel-moves button svg { width: 34px; height: 34px; }
.duel-moves button:active { transform: scale(.96); }
.duel-hint { margin-top: 14px; font: 500 12px/1.4 var(--f-body); color: var(--dim); }
.duel-later { margin-top: auto; padding: 18px 20px 4px; font: 600 13.5px/1 var(--f-body); color: var(--dim); text-decoration: underline; text-underline-offset: 4px; }
.arena { width: 100%; margin-top: 34px; display: flex; align-items: flex-start; justify-content: space-around; }
.arena .vs { align-self: center; margin-top: -26px; font: italic 900 26px/1 var(--f-poster); color: var(--dim); }
.fighter { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; width: 40%; }
.fighter b { font: 600 14px/1.2 var(--f-body); color: var(--cream); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fighter small { font: 700 11px/1 var(--f-board); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); min-height: 11px; }
.fist { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: #281430; border: 2px solid #4a2a52; color: var(--pink-soft); transition: border-color .3s ease, box-shadow .3s ease; }
.fist svg { width: 50px; height: 50px; }
.fighter.them .fist { transform: scaleX(-1); }
.arena.beat .fighter.me .fist { animation: fistL .52s cubic-bezier(.3, 0, .3, 1); }
.arena.beat .fighter.them .fist { animation: fistR .52s cubic-bezier(.3, 0, .3, 1); }
@keyframes fistL { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-26px) rotate(-12deg); } 70% { transform: translateY(6px) rotate(4deg); } }
@keyframes fistR { 0%, 100% { transform: scaleX(-1) translateY(0) rotate(0); } 40% { transform: scaleX(-1) translateY(-26px) rotate(-12deg); } 70% { transform: scaleX(-1) translateY(6px) rotate(4deg); } }
.arena.shown .fist { animation: fistPop .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.arena.shown .fighter.them .fist { animation-name: fistPopR; }
@keyframes fistPop { from { transform: scale(.6); } to { transform: scale(1); } }
@keyframes fistPopR { from { transform: scaleX(-1) scale(.6); } to { transform: scaleX(-1) scale(1); } }
.fighter.win .fist { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 34px rgba(242, 193, 78, .45); }
.fighter.win b { color: var(--gold); }
.duel-call { min-height: 58px; margin-top: 22px; font: 700 44px/1.3 var(--f-board); letter-spacing: .08em; color: var(--bulb); text-shadow: 0 0 20px rgba(255, 200, 90, .6); }
.duel-call:empty { min-height: 0; margin: 0; }
.duel-verdict { margin-top: 22px; font: 400 36px/1.25 var(--f-logo); color: var(--bulb); text-shadow: 0 0 16px rgba(242, 193, 78, .55); animation: rise .5s ease both; }
.duel-verdict:empty { display: none; }
.duel-verdict.lost { color: var(--pink-soft); text-shadow: 0 0 16px rgba(255, 90, 147, .45); }
.duel-why { margin-top: 6px; font: 600 13px/1.4 var(--f-body); color: var(--dim); }
.duel-shart { width: 100%; margin-top: 20px; }
.duel-shart:empty { display: none; }
.duel-ask { margin-bottom: 10px; font: 600 14px/1.4 var(--f-body); color: var(--cream); }
.duel-inp { resize: none; font: 500 20px/1.35 var(--f-hand); text-align: center; }
.ideas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 14px; }
.idea { padding: 8px 11px; border-radius: 100px; border: 1px solid #4a2a52; background: #1c0f20; font: 500 12px/1.2 var(--f-body); color: #e7d7e4; }
.idea:active { background: #33193a; }
.duel-shart .shart { margin-top: 0; text-align: left; }
.shart.stamped { animation: slamIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes slamIn { from { transform: scale(1.4) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
.duel-note { margin-top: 10px; font: 600 13px/1.4 var(--f-body); color: var(--gold); }
.duel-wait { font: 600 14px/1.4 var(--f-body); color: var(--cream); }
.dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: dotUp 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dotUp { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.duel-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 4px; }
.duel-actions:empty { display: none; }
.duel-actions .btn { flex: 1; }
.duel-queued { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 90, 147, .1); border: 1px solid rgba(255, 90, 147, .35); font: 600 13px/1.4 var(--f-body); color: var(--pink-soft); text-align: left; animation: rise .4s ease both; }
.duel-queued span { display: grid; flex: none; }
.duel-queued svg { width: 18px; height: 18px; }

/* ---------- 19c. keng ekran ---------- */
/* ilova ustuni ekrandan tor bo'lganda sahna fonlari ustun chetida keskin «panel» bo'lib kesilmasin —
   chetlari tun foniga mayin singib ketadi */
@media (min-width: 520px) {
  .stage, .disco-wrap {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  }
}

/* ---------- 20. harakatni kamaytirish ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .roll { animation: none; transform: none; position: static; padding: 80px 20px 320px; }
  .credits { overflow-y: auto; }
  .cphoto, .cphoto.on, .cphoto.off { transform: rotate(var(--rot, 0deg)); }
}
