/* Ertakchi — Mini App + web. Mobil birinchi; desktopda markazlashgan ustun.
   Mavzular: tun (standart) va kunduz — <html data-theme="dark|light">. Hamma rang o'zgaruvchilarda.
   Uslub: tungi osmon, oy va yulduzlar; iliq oltin-shaftoli urg'ular; yumaloq, bolalarbop shakllar (Nunito). */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('fonts/nunito-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('fonts/nunito-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('fonts/nunito-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('fonts/nunito-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #0e0b2c; --ink: #f7f4ff; --mute: #b3acd6; --dim: #7d76a6; --label: #dcd5ff; --soft: #ebe5ff;
  --gold: #ffd166; --peach: #ff9f6b; --rose: #ff7aa8; --violet: #8f7bff; --teal: #5ee0d0;
  --on-accent: #2a1650;
  --glass: rgba(255, 255, 255, .07); --line: rgba(255, 255, 255, .13);
  --card: linear-gradient(160deg, rgba(74, 58, 148, .58), rgba(34, 26, 86, .7));
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 30px rgba(6, 4, 30, .28);
  --field: rgba(255, 255, 255, .07); --field-on: rgba(255, 255, 255, .11);
  --top: linear-gradient(180deg, rgba(14, 11, 44, .98) 82%, rgba(14, 11, 44, 0));
  --tabbar: rgba(32, 25, 82, .97); --tabbar-shadow: 0 18px 50px rgba(4, 2, 24, .6), inset 0 1px 0 rgba(255, 255, 255, .1);
  --sheet: linear-gradient(180deg, #2a2170, #171144); --overlay: rgba(6, 4, 26, .8);
  --toast: rgba(38, 30, 96, .98); --fade: rgba(14, 11, 44, .92);
  --sky: 1;
  --shine: linear-gradient(100deg, #ffd166 0%, #ffb37a 30%, #fff 46%, #ff9fc0 62%, #ffd166 100%);
  --skel: linear-gradient(100deg, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .14) 50%, rgba(255, 255, 255, .05) 70%);
  --k-dim: rgba(255, 255, 255, .5); --k-past: rgba(255, 255, 255, .7); --k-now: #fff; --k-plain: rgba(255, 255, 255, .88);
  --k-glow: rgba(255, 209, 102, .16);
  --tag: #ffd166;
  --ok: #8ef0b4; --ok-bg: rgba(94, 224, 160, .16); --run: #ffd166; --run-bg: rgba(255, 209, 102, .16);
  --bad: #ffb0b0; --bad-bg: rgba(255, 120, 120, .16);
  --note: #d6f6f1; --note-bg: rgba(94, 224, 208, .09); --note-line: rgba(94, 224, 208, .26);
  --warn: #ffe0b5; --warn-bg: rgba(255, 159, 107, .12); --warn-line: rgba(255, 159, 107, .34);
  --bubble: rgba(255, 255, 255, .09); --bubble-me: linear-gradient(140deg, rgba(143, 123, 255, .6), rgba(255, 122, 168, .42));
  --grad: linear-gradient(120deg, #ffd166, #ffab6e 55%, #ff86ac);
  --glow: rgba(255, 171, 110, .42);
  --r: 24px; --tab: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --display: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html[data-theme="light"] {
  color-scheme: only light;
  --bg: #fff6e6; --ink: #2b1d5a; --mute: #6a5f96; --dim: #9a91bd; --label: #4a3d86; --soft: #3c2f78;
  --glass: rgba(43, 29, 90, .05); --line: rgba(43, 29, 90, .12);
  --card: linear-gradient(160deg, #fff, rgba(255, 255, 255, .9));
  --card-shadow: 0 8px 26px rgba(120, 84, 40, .12);
  --field: #fff; --field-on: #fff;
  --top: linear-gradient(180deg, rgba(255, 246, 230, .98) 82%, rgba(255, 246, 230, 0));
  --tabbar: rgba(255, 255, 255, .98); --tabbar-shadow: 0 14px 40px rgba(120, 84, 40, .22), inset 0 1px 0 #fff;
  --sheet: linear-gradient(180deg, #fff, #fff4e2); --overlay: rgba(43, 29, 90, .5);
  --toast: rgba(255, 255, 255, .98); --fade: rgba(255, 246, 230, .94);
  --sky: .0;
  --shine: linear-gradient(100deg, #e07a1f 0%, #e2457f 30%, #2b1d5a 46%, #6a4cf0 62%, #e07a1f 100%);
  --skel: linear-gradient(100deg, rgba(43, 29, 90, .05) 30%, rgba(43, 29, 90, .11) 50%, rgba(43, 29, 90, .05) 70%);
  --k-dim: rgba(43, 29, 90, .55); --k-past: rgba(43, 29, 90, .72); --k-now: #2b1d5a; --k-plain: rgba(43, 29, 90, .9);
  --k-glow: rgba(255, 171, 60, .2);
  --tag: #c2570c;
  --ok: #17803f; --ok-bg: rgba(34, 197, 94, .14); --run: #b45309; --run-bg: rgba(245, 158, 11, .16);
  --bad: #b91c1c; --bad-bg: rgba(239, 68, 68, .12);
  --note: #0f766e; --note-bg: rgba(13, 148, 136, .08); --note-line: rgba(13, 148, 136, .25);
  --warn: #9a3412; --warn-bg: rgba(249, 115, 22, .1); --warn-line: rgba(249, 115, 22, .3);
  --bubble: rgba(43, 29, 90, .06); --bubble-me: linear-gradient(140deg, rgba(143, 123, 255, .24), rgba(255, 122, 168, .2));
  --grad: linear-gradient(120deg, #ffc93f, #ff9a57 55%, #ff7aa4);
  --glow: rgba(255, 140, 70, .36);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100%; color: var(--ink); font: 500 16px/1.5 var(--text); overflow-x: hidden; overscroll-behavior-y: none; touch-action: manipulation; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
a { color: inherit; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ───── Fon: tungi osmon (bitta kompozit qatlam) + yulduzchalar ───── */
.aurora { position: fixed; z-index: 0; pointer-events: none; left: 50%; top: 50%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; opacity: var(--sky);
  background:
    radial-gradient(30% 30% at 68% 24%, rgba(255, 209, 102, .2), transparent 70%),
    radial-gradient(38% 38% at 30% 30%, rgba(143, 123, 255, .5), transparent 70%),
    radial-gradient(34% 34% at 74% 58%, rgba(255, 122, 168, .22), transparent 70%),
    radial-gradient(30% 30% at 38% 78%, rgba(94, 224, 208, .16), transparent 70%);
  transform: translateZ(0); will-change: transform; backface-visibility: hidden; animation: skyDrift 52s ease-in-out infinite alternate; }
html[data-theme="light"] .aurora { opacity: 1; background:
    radial-gradient(30% 30% at 70% 22%, rgba(255, 201, 63, .34), transparent 70%),
    radial-gradient(36% 36% at 28% 34%, rgba(255, 122, 164, .16), transparent 70%),
    radial-gradient(32% 32% at 66% 70%, rgba(143, 123, 255, .13), transparent 70%); }
.aurora i { display: none; }
@keyframes skyDrift { from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); } to { transform: translate3d(3%, 2%, 0) rotate(18deg) scale(1.1); } }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain { display: none; }

/* ───── Karkas ───── */
#app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: 0 16px calc(var(--tab) + var(--safe-b) + 28px); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 18px; margin: 0 -16px -6px; background: var(--top); transform: translateZ(0); }
.brand { display: flex; align-items: center; gap: 10px; font: 900 19px var(--display); letter-spacing: -.01em; text-decoration: none; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 12px; box-shadow: 0 6px 20px rgba(255, 190, 90, .4); flex: none; }
.top-r { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: transform .2s var(--ease), background .2s; }
.pill:active { transform: scale(.95); }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--gold); }
.pill.bump { animation: bump .6s var(--ease); }
.pill.lang { padding: 8px 11px; font-size: 13px; letter-spacing: .04em; }
@keyframes bump { 30% { transform: scale(1.14); background: rgba(255, 209, 102, .28); } }

#view { padding-top: 6px; }
.screen { animation: screenIn .5s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } }
.rise { opacity: 0; animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ───── Tab bar (5 ta bo'lim) ───── */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; margin: 0 auto; bottom: calc(12px + var(--safe-b)); width: min(488px, calc(100% - 24px)); height: 64px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 26px; background: var(--tabbar); border: 1px solid var(--line); box-shadow: var(--tabbar-shadow); transform: translateZ(0); }
.tabbar a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-size: 10.5px; font-weight: 800; color: var(--mute); transition: color .25s; min-width: 0; }
.tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tabbar a svg { width: 22px; height: 22px; transition: transform .35s var(--ease); }
@media (max-width: 380px) { .tabbar a { font-size: 9.5px; letter-spacing: -.02em; } .tabbar a span { padding: 0; } }
.tabbar a.on { color: var(--on-accent); }
.tabbar a.on svg { transform: translateY(-1px) scale(1.12); }
.tabbar a b { position: absolute; top: 5px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font: 800 10px/16px var(--text); text-align: center; }
.tabbar .ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 20px; background: var(--grad); box-shadow: 0 8px 24px var(--glow); transition: transform .45s var(--ease), opacity .3s; }
.tabbar[data-tab="1"] .ink { transform: translateX(100%); }
.tabbar[data-tab="2"] .ink { transform: translateX(200%); }
.tabbar[data-tab="3"] .ink { transform: translateX(300%); }
.tabbar[data-tab="4"] .ink { transform: translateX(400%); }
.tabbar[data-tab="-1"] .ink { opacity: 0; }
.item button.disc { border: 0; padding: 0; cursor: pointer; }
.item .go .btn { white-space: nowrap; }
.item b.nm { color: var(--ink); font-weight: 900; font-size: 17px; }
.refcard { display: grid; gap: 10px; padding: 16px; margin-top: 14px; }
.refcard b { font-size: 16px; font-weight: 800; }
.refcard p { margin: 0; color: var(--mute); font-size: 14px; line-height: 1.45; }
.refcard span { font-size: 13.5px; color: var(--mute); }
.refcard .bar { margin: 2px 0; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.switch-row input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: #ff9f6b; }

/* ───── Tipografiya ───── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; font-weight: 800; color: var(--soft); }
.eyebrow b { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.eyebrow b::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(3.4); opacity: 0; } }
.hero { padding: 8px 0 8px; }
.hero h1 { font: 900 clamp(31px, 9.4vw, 46px)/1.06 var(--display); letter-spacing: -.02em; margin: 14px 0 12px; }
.shine { background: var(--shine); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }
.lead { color: var(--mute); font-size: 16px; max-width: 36ch; }
.h2 { font: 900 21px/1.2 var(--display); letter-spacing: -.01em; margin: 32px 0 14px; }
.h1 { font: 900 27px/1.12 var(--display); letter-spacing: -.02em; margin: 10px 0 6px; }
.sub { color: var(--mute); font-size: 15px; margin-bottom: 18px; }
.back { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 14px; font-weight: 800; padding: 8px 0; }
.back svg { width: 18px; height: 18px; }

/* Bosh sahifadagi rasm: bobo bolalarga ertak o'qimoqda. Pastki cheti fon bilan qo'shilib ketadi. */
.heroart { position: relative; margin: 0 -16px; aspect-ratio: 1280 / 714; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
.heroart img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
html[data-theme="light"] .heroart { margin: 0; border-radius: 28px; -webkit-mask-image: none; mask-image: none; box-shadow: 0 16px 40px rgba(60, 40, 120, .24); }
.heroart + .hero { margin-top: -26px; position: relative; }
html[data-theme="light"] .heroart + .hero { margin-top: 12px; }

/* ───── Tugmalar ───── */
.btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 0 22px; border-radius: 22px; font: 900 16.5px var(--text); color: var(--on-accent); background: var(--grad); background-size: 180% 100%; box-shadow: 0 14px 36px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(160, 70, 30, .18); transition: transform .2s var(--ease), box-shadow .3s, background-position .6s; isolation: isolate; text-decoration: none; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: sweep 3.6s var(--ease) infinite; }
@keyframes sweep { 55%, 100% { transform: translateX(120%); } }
.btn:active { transform: scale(.97); box-shadow: 0 8px 20px var(--glow); }
.btn[disabled] { opacity: .55; pointer-events: none; filter: saturate(.6); }
.btn small { font-weight: 700; opacity: .8; }
.btn.ghost { background: var(--glass); border: 1px solid var(--line); box-shadow: none; min-height: 52px; color: var(--ink); font-weight: 800; }
.btn.ghost::before { display: none; }
.btn.sm { min-height: 44px; border-radius: 16px; font-size: 14px; padding: 0 14px; width: auto; }
.btn.pulse { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.018); } }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: scale(0); animation: ripple .7s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(42, 22, 80, .25); border-top-color: var(--on-accent); animation: rot .7s linear infinite; flex: none; }
.btn.ghost .spin { border-color: var(--line); border-top-color: var(--ink); }
@keyframes rot { to { transform: rotate(360deg); } }
.cta { position: sticky; bottom: calc(var(--tab) + var(--safe-b) + 20px); z-index: 10; margin-top: 22px; }
.cta::before { content: ''; position: absolute; inset: -26px -16px -18px; z-index: -1; background: linear-gradient(180deg, transparent, var(--fade) 45%); pointer-events: none; }

/* ───── Kartochkalar ───── */
.glass { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--card-shadow); }
.tilt { transform-style: preserve-3d; transition: transform .35s var(--ease); will-change: transform; }
.tilt .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), transparent 55%); }
.tilt.live .glare { opacity: 1; }

.samples { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; margin: 0 -16px; padding: 4px 16px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.samples::-webkit-scrollbar { display: none; }
.sample { flex: 0 0 78%; max-width: 310px; scroll-snap-align: center; padding: 14px; display: flex; align-items: center; gap: 14px; text-align: left; }
.sample .disc { flex: none; width: 74px; height: 74px; }
.sample b { display: block; font: 800 15.5px/1.25 var(--display); }
.sample span { color: var(--mute); font-size: 13px; }
.sample.playing { border-color: rgba(255, 209, 102, .8); box-shadow: 0 0 0 1px rgba(255, 209, 102, .5), 0 18px 46px rgba(255, 171, 110, .26); }

/* Ertak muqovasi: kayfiyat rasmi (yumaloq). Ijro paytida atrofida oltin halqa "nafas oladi". */
.disc { position: relative; width: 62px; height: 62px; border-radius: 50%; background: #2a2170 var(--cover, none) center / cover no-repeat; box-shadow: 0 10px 26px rgba(6, 4, 30, .4), inset 0 0 0 2px rgba(255, 255, 255, .22); }
.playing .disc, .disc.on { animation: halo 2.2s ease-in-out infinite; }
@keyframes halo { 0%, 100% { box-shadow: 0 10px 26px rgba(6, 4, 30, .4), 0 0 0 0 rgba(255, 209, 102, .55), inset 0 0 0 2px rgba(255, 255, 255, .3); } 50% { box-shadow: 0 10px 26px rgba(6, 4, 30, .4), 0 0 0 9px rgba(255, 209, 102, 0), inset 0 0 0 2px rgba(255, 255, 255, .3); } }
/* Yuklanmoqda: bosilgan zahoti muqova atrofida aylanuvchi halqa (tovush chiqquncha) */
.loading .disc::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid rgba(160, 160, 190, .28); border-top-color: var(--gold); animation: rot .7s linear infinite; }
.loading .play { opacity: .65; }
/* Muqova markazida ijro/pauza belgisi — bosish mumkinligi ko'rinib turadi */
.disc .ico { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; }
.disc .ico.pp, .sample .disc .ico { inset: 24%; background: rgba(20, 14, 60, .72); border: 1px solid rgba(255, 255, 255, .4); }
.disc .ico.pp svg { width: 50%; height: 50%; }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq i { width: 3px; height: 30%; border-radius: 2px; background: #fff; }
.playing .eq i { animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s !important; } .eq i:nth-child(3) { animation-delay: -.6s !important; } .eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: center; padding: 15px 16px; }
.step .n { flex: none; width: 48px; height: 48px; border-radius: 17px; display: grid; place-items: center; font: 900 20px var(--display); color: var(--on-accent); background: var(--grad); box-shadow: 0 8px 22px var(--glow); }
.step b { display: block; font-weight: 800; }
.step span { color: var(--mute); font-size: 14px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat { padding: 14px; }
.feat .em { font-size: 28px; line-height: 1; display: block; margin-bottom: 8px; }
.feat b { display: block; font-weight: 800; font-size: 15px; line-height: 1.25; }
.feat span { color: var(--mute); font-size: 13px; line-height: 1.35; display: block; margin-top: 3px; }
.price { margin-top: 12px; padding: 22px; text-align: center; overflow: hidden; }
.price::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from 40deg, var(--gold), var(--rose), var(--violet), var(--teal), var(--gold)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.price .big { font: 900 42px/1 var(--display); letter-spacing: -.03em; margin: 6px 0; }
.price .big small { font-size: 16px; font-weight: 700; color: var(--mute); letter-spacing: 0; }
.foot { margin-top: 30px; text-align: center; color: var(--dim); font-size: 12px; line-height: 1.9; }
.foot a { color: var(--mute); }

/* ───── Katalog (mavzular) ───── */
.cats { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; margin: 0 -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.chip { position: relative; overflow: hidden; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; font-weight: 800; color: var(--mute); transition: all .3s var(--ease); white-space: nowrap; }
.chip.on { color: var(--on-accent); background: var(--grad); border-color: transparent; box-shadow: 0 8px 22px var(--glow); transform: translateY(-1px); }
.chip:active { transform: scale(.94); }
.tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tpl { padding: 16px 14px; text-align: left; min-height: 150px; display: flex; flex-direction: column; overflow: hidden; }
.tpl::after { content: ''; position: absolute; width: 130px; height: 130px; right: -46px; top: -46px; border-radius: 50%; background: radial-gradient(circle, hsl(var(--hue, 250) 95% 68% / .5), transparent 68%); pointer-events: none; }
.tpl .em { font-size: 36px; line-height: 1; margin-bottom: auto; }
.tpl b { font: 800 15px/1.25 var(--display); margin-top: 14px; }
.tpl span { color: var(--mute); font-size: 12.5px; line-height: 1.35; margin-top: 4px; }
.custom { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 18px 16px; --hue: 40; }
.custom .em { margin: 0; }
.custom b { margin: 0; font-size: 16px; }

/* ───── Formalar ───── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 800; color: var(--label); margin: 0 4px 7px; }
.field label i { color: var(--rose); font-style: normal; }
.input { width: 100%; padding: 16px; border-radius: 20px; background: var(--field); border: 1.5px solid var(--line); outline: none; font-weight: 600; transition: border-color .25s, box-shadow .25s, background .25s; }
.input::placeholder { color: var(--dim); font-weight: 500; }
.input:focus { border-color: rgba(255, 190, 90, .9); background: var(--field-on); box-shadow: 0 0 0 4px rgba(255, 190, 90, .18), 0 12px 30px rgba(143, 123, 255, .16); }
textarea.input { min-height: 104px; resize: vertical; line-height: 1.5; }
textarea.input.tall { min-height: 260px; font-size: 15.5px; }
.count { text-align: right; font-size: 12px; color: var(--dim); margin: 5px 6px 0; }
.label { font-size: 13.5px; font-weight: 800; color: var(--label); margin: 20px 4px 9px; }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
/* Ertak kayfiyati: rasmli to'rtta kartochka */
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mood { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 8px 4px 10px; border-radius: 20px; background: var(--glass); border: 1.5px solid var(--line); font-size: 12.5px; font-weight: 800; color: var(--mute); line-height: 1.15; text-align: center; transition: all .3s var(--ease); min-width: 0; }
.mood i { display: block; width: 100%; max-width: 68px; aspect-ratio: 1; border-radius: 50%; background: #2a2170 center / cover no-repeat; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2); }
.mood span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mood.on { color: var(--ink); border-color: rgba(255, 190, 90, .95); background: linear-gradient(160deg, rgba(255, 209, 102, .22), rgba(255, 122, 168, .14)); box-shadow: 0 10px 26px rgba(255, 171, 110, .22); transform: translateY(-2px); }
.mood:active { transform: scale(.95); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.seg button { padding: 11px 8px; border-radius: 15px; font-size: 14px; font-weight: 800; color: var(--mute); transition: all .3s var(--ease); }
.seg button.on { background: var(--grad); color: var(--on-accent); box-shadow: 0 6px 18px var(--glow); }

/* ───── Ertak matni ko'rigi (to'lovgacha) ───── */
.tale-head { display: flex; align-items: center; gap: 14px; margin: 8px 0 12px; }
.tale-head .disc { flex: none; width: 78px; height: 78px; }
.tale-head h1 { font: 900 24px/1.14 var(--display); letter-spacing: -.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; font-weight: 800; color: var(--soft); white-space: nowrap; }
.lyrics { padding: 20px 20px 22px; overflow: hidden; }
.lyrics .ln { display: block; font-size: 17px; line-height: 1.62; margin-bottom: 12px; opacity: 0; transform: translateY(8px); animation: lineIn .6s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms); }
.lyrics .ln:first-child::first-letter { font: 900 2.3em/1 var(--display); color: var(--gold); float: left; padding: 3px 8px 0 0; }
html[data-theme="light"] .lyrics .ln:first-child::first-letter { color: #e07a1f; }
.lyrics .ln:last-of-type { margin-bottom: 0; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
/* Qulflangan davom: matn pastga qarab erib ketadi, ostida "davomini bobo o'qib beradi" */
.lyrics.locked .ln:last-of-type { -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 96%); mask-image: linear-gradient(180deg, #000 20%, transparent 96%); }
.lockbox { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 13px 14px; border-radius: 18px; background: linear-gradient(140deg, rgba(255, 209, 102, .18), rgba(255, 122, 168, .12)); border: 1px dashed rgba(255, 190, 90, .6); }
.lockbox .em { flex: none; font-size: 26px; line-height: 1; }
.lockbox b { display: block; font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.lockbox span { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.gets { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 9px; }
.gets li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.35; }
.gets li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 900 12px var(--text); color: var(--on-accent); background: var(--grad); }
.tools { display: flex; gap: 8px; margin-top: 12px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 18px; background: var(--note-bg); border: 1px solid var(--note-line); color: var(--note); font-size: 13.5px; font-weight: 600; margin-top: 14px; }
.note.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }

/* ───── Kutish (ovozlashtirish): oy va atrofida aylanuvchi yulduzlar ───── */
.wait { text-align: center; padding: 30px 0 10px; }
.orb { position: relative; width: 230px; height: 230px; margin: 10px auto 34px; }
.orb .core { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fffbe6, #ffe08a 42%, #ffb95e 78%, #f08a4b); box-shadow: 0 0 70px rgba(255, 209, 102, .6), 0 0 140px rgba(255, 171, 110, .35); animation: moonBob 4s ease-in-out infinite; }
.orb .core::before { content: ''; position: absolute; width: 22%; height: 22%; left: 56%; top: 22%; border-radius: 50%; background: rgba(214, 140, 60, .28); box-shadow: -34px 34px 0 -4px rgba(214, 140, 60, .22), -4px 52px 0 -9px rgba(214, 140, 60, .2); }
.orb .core::after { content: ''; position: absolute; left: 30%; top: 46%; width: 9%; height: 9%; border-radius: 50%; background: #6b3f1d; box-shadow: 34px 0 0 #6b3f1d; animation: blink 4.6s infinite; }
@keyframes moonBob { 50% { transform: translateY(-7px) rotate(4deg); } }
@keyframes blink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
.orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); animation: ringOut 2.8s ease-out infinite; }
.orb .ring:nth-child(2) { animation-delay: .9s; } .orb .ring:nth-child(3) { animation-delay: 1.8s; }
@keyframes ringOut { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.orb .sat { position: absolute; inset: 0; animation: rot 9s linear infinite; }
.orb .sat:nth-of-type(2n) { animation-duration: 13s; animation-direction: reverse; }
.orb .sat span { position: absolute; top: 0; left: 50%; font-size: 24px; transform: translateX(-50%); }
.phase { font: 900 20px/1.25 var(--display); min-height: 52px; }
.phase span { display: inline-block; animation: phaseIn .6s var(--ease); }
@keyframes phaseIn { from { opacity: 0; transform: translateY(12px); } }
.bar { height: 10px; border-radius: 99px; background: var(--glass); overflow: hidden; margin: 22px 0 10px; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .9s var(--ease); }

/* ───── Pleyer ───── */
.player { text-align: center; padding-top: 10px; }
.stage { position: relative; width: min(280px, 72vw); aspect-ratio: 1; margin: 10px auto 22px; }
.stage .halo { position: absolute; inset: -9%; border-radius: 50%; background: conic-gradient(from 0deg, var(--gold), var(--rose), var(--violet), var(--teal), var(--gold)); filter: blur(18px); opacity: .5; animation: rot 16s linear infinite; animation-play-state: paused; }
.playing .stage .halo { animation-play-state: running; opacity: .8; }
.stage .disc { position: absolute; inset: 0; width: auto; height: auto; box-shadow: 0 30px 70px rgba(6, 4, 30, .45), inset 0 0 0 3px rgba(255, 255, 255, .28); animation: none; }
.playing .stage .disc { animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.025); } }
.stage .play { position: absolute; left: 50%; bottom: -8px; width: 76px; height: 76px; margin-left: -38px; z-index: 2; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: 0 12px 30px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .6); transition: transform .25s var(--ease); }
.stage .play:active { transform: scale(.9); }
.stage .play svg { width: 40%; height: 40%; }
.stage .play svg path, .stage .play svg rect { fill: var(--on-accent); }
.player h1 { font: 900 26px/1.15 var(--display); letter-spacing: -.01em; margin-top: 8px; }
.player .meta { color: var(--mute); font-size: 14px; font-weight: 700; margin-top: 4px; }
.scrub { margin: 20px 4px 4px; }
.scrub input { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: none; margin: 0; }
.scrub input::-webkit-slider-runnable-track { height: 8px; border-radius: 9px; background: linear-gradient(90deg, #ffb95e var(--pos, 0%), var(--line) var(--pos, 0%)); }
.scrub input::-moz-range-track { height: 8px; border-radius: 9px; background: linear-gradient(90deg, #ffb95e var(--pos, 0%), var(--line) var(--pos, 0%)); }
.scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 185, 94, .35), 0 4px 12px rgba(0, 0, 0, .35); }
.scrub input::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 185, 94, .35); }
.times { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.actions.four { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.actions.two { grid-template-columns: repeat(2, 1fr); }
.actions.four .act { font-size: 11.5px; padding: 14px 2px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; font-size: 12.5px; font-weight: 800; color: var(--soft); text-decoration: none; transition: transform .2s var(--ease); }
.act:active { transform: scale(.94); }
.act svg { width: 22px; height: 22px; }
/* Ertak matni: o'qilayotgan abzats yoritiladi, bosilsa — shu joydan o'qiladi */
.story-h { text-align: left; font: 900 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--tag); margin: 24px 4px 10px; }
.karaoke { padding: 8px; text-align: left; }
.karaoke p { font-size: 17px; line-height: 1.62; font-weight: 500; color: var(--k-dim); padding: 10px 12px; border-radius: 16px; transition: color .4s, background .4s; }
.karaoke p.now { color: var(--k-now); background: var(--k-glow); font-weight: 600; }
.karaoke p.past { color: var(--k-past); }
.karaoke.plain p { color: var(--k-plain); }
.karaoke:not(.plain) p { cursor: pointer; }

/* ───── "Yangi ertak" taklifi (Ertaklar va Ertaklarim tepasida) ───── */
.newsong { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 4px 0 16px; border-radius: var(--r); text-decoration: none; color: var(--on-accent); background: var(--grad); background-size: 220% 100%; box-shadow: 0 14px 36px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .5); animation: rise .6s var(--ease) both, drift 5s ease-in-out infinite alternate; transition: transform .2s var(--ease); }
.newsong::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-120%); animation: sweep 3.6s var(--ease) infinite; }
.newsong:active { transform: scale(.98); }
.newsong .ic { flex: none; width: 50px; height: 50px; border-radius: 50%; background: #2a2170 url('img/bobo.webp') center / cover no-repeat; box-shadow: 0 0 0 2px rgba(255, 255, 255, .65); }
.newsong .tx { min-width: 0; }
.newsong b { display: block; font: 900 16.5px/1.2 var(--text); }
.newsong .tx span { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; line-height: 1.3; color: rgba(42, 22, 80, .82); }
.newsong .arrow { flex: none; margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .4); animation: nudge 1.4s ease-in-out infinite; }
.list > .newsong { margin: 8px 0 0; }
@keyframes drift { to { background-position: 100% 0; } }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* ───── Ro'yxatlar ───── */
.list { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; padding: 13px 14px; text-align: left; text-decoration: none; width: 100%; }
.item .disc { width: 56px; height: 56px; flex: none; }
.item .ic { flex: none; width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: var(--glass); border: 1px solid var(--line); }
.item b { display: block; font-weight: 800; line-height: 1.25; }
.item span { color: var(--mute); font-size: 13px; }
.item .go { margin-left: auto; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.run { background: var(--run-bg); color: var(--run); }
.badge.draft { background: var(--glass); color: var(--mute); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.new { background: #ef4444; color: #fff; }
.empty { text-align: center; padding: 40px 20px; color: var(--mute); font-weight: 600; }
.empty .em { font-size: 54px; display: block; margin-bottom: 12px; animation: float 3.4s ease-in-out infinite; }
.empty .art { display: block; width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; box-shadow: 0 16px 40px rgba(6, 4, 30, .3), inset 0 0 0 2px rgba(255, 255, 255, .2); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-9px) rotate(-3deg); } }

/* ───── Balans ───── */
.wallet { padding: 26px 22px; overflow: hidden; }
.wallet::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 209, 102, .5), transparent 66%); pointer-events: none; }
.wallet .l { color: var(--mute); font-size: 13px; font-weight: 800; }
.wallet .v { font: 900 44px/1.05 var(--display); letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.wallet .v small { font-size: 16px; color: var(--mute); font-weight: 700; letter-spacing: 0; }
/* Click rasmiy belgisi (logobank.uz): oq plitka ustida — tugmaning rangli fonida ham aniq ko'rinadi */
.clk { flex: none; display: inline-block; width: 28px; height: 28px; border-radius: 9px; background: #fff url('/static/app/click-mark.png') center / 74% no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.clkword { display: block; height: 22px; width: auto; padding: 4px 10px; border-radius: 10px; background: #fff; margin: 0 auto 8px; box-sizing: content-box; }
.btn .lbl { white-space: nowrap; }
.wait .btn + .btn { margin-top: 10px; }
.amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amount { position: relative; overflow: hidden; padding: 16px 10px; border-radius: 20px; background: var(--glass); border: 1.5px solid var(--line); font: 900 17px var(--display); transition: all .3s var(--ease); font-variant-numeric: tabular-nums; }
.amount small { display: block; font: 700 11.5px var(--text); color: var(--mute); margin-top: 3px; }
.amount.on { background: linear-gradient(140deg, rgba(255, 209, 102, .26), rgba(255, 122, 168, .2)); border-color: rgba(255, 190, 90, .95); box-shadow: 0 12px 28px rgba(255, 171, 110, .22); transform: translateY(-2px); }
.hist { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }
.hist:last-child { border: 0; }
.hist span { display: block; color: var(--dim); font-size: 12px; }
.hist b { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plus { color: var(--ok); } .minus { color: var(--bad); }

/* ───── Profil ───── */
.me { display: flex; align-items: center; gap: 14px; padding: 18px; }
.me .ava { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 900 22px var(--display); color: var(--on-accent); background: var(--grad); background-size: cover; background-position: center; box-shadow: 0 8px 22px var(--glow); }
.me b { display: block; font: 900 17px/1.2 var(--display); }
.me span { color: var(--mute); font-size: 14px; font-weight: 600; }
.row-l { font-size: 13.5px; font-weight: 800; color: var(--label); margin: 22px 4px 9px; }

/* ───── Yordam (yozishma) ───── */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 14px; }
.bub { align-self: flex-start; max-width: 84%; padding: 11px 14px; border-radius: 20px 20px 20px 6px; background: var(--bubble); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.bub.mine { align-self: flex-end; background: var(--bubble-me); border-color: transparent; border-radius: 20px 20px 6px 20px; }
.bub small { display: block; color: var(--dim); font-size: 11px; margin-top: 4px; }
.bub .who { display: block; font-weight: 800; font-size: 12px; color: var(--tag); margin-bottom: 2px; }
.composer { position: sticky; bottom: calc(var(--tab) + var(--safe-b) + 20px); z-index: 10; padding: 12px; }
.composer::before { content: ''; position: absolute; inset: -22px -16px -18px; z-index: -1; background: linear-gradient(180deg, transparent, var(--fade) 40%); pointer-events: none; }
.composer .opts { margin-bottom: 10px; }
.composer .chip { padding: 7px 12px; font-size: 13px; }
.composer .line { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 48px; max-height: 140px; padding: 13px 14px; border-radius: 18px; resize: none; }
.composer .send { flex: none; width: 48px; height: 48px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: var(--on-accent); box-shadow: 0 8px 22px var(--glow); }
.composer .send[disabled] { opacity: .5; }
.composer .send svg { width: 22px; height: 22px; }

/* ───── Bottom sheet, toast ───── */
#sheet { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; pointer-events: none; }
#sheet .dim { position: absolute; inset: 0; background: var(--overlay); opacity: 0; transition: opacity .35s; }
#sheet .body { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: 12px 20px calc(24px + var(--safe-b)); border-radius: 32px 32px 0 0; background: var(--sheet); border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -30px 80px rgba(0, 0, 0, .35); transform: translateY(105%); transition: transform .5s var(--ease); max-height: 92vh; overflow-y: auto; }
#sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 18px; }
#sheet.open { pointer-events: auto; }
#sheet.open .dim { opacity: 1; }
#sheet.open .body { transform: none; }
#sheet h3 { font: 900 22px/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 8px; }
#sheet p { color: var(--mute); font-size: 15px; margin-bottom: 18px; }
#sheet p b { color: var(--ink); }
#rm-go svg { flex: none; }
#sheet .friend { text-align: center; }
#sheet .friend .em { display: block; font-size: 44px; line-height: 1; margin-bottom: 10px; animation: float 3.2s ease-in-out infinite; }
#sheet .friend p { margin-bottom: 14px; }
.fsteps { list-style: none; display: grid; gap: 8px; margin: 0 0 14px; padding: 0; text-align: left; }
.fsteps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.fsteps b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 900 13px var(--display); color: var(--on-accent); background: var(--grad); }
#sheet .oops { text-align: center; }
#sheet .oops .em { display: block; font-size: 46px; line-height: 1; margin-bottom: 12px; animation: float 3.2s ease-in-out infinite; }
#sheet .oops .note { text-align: left; }
#toast { position: fixed; z-index: 60; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -160%); max-width: min(92vw, 440px); padding: 13px 18px; border-radius: 20px; background: var(--toast); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .3); font-size: 14.5px; font-weight: 700; text-align: center; transition: transform .5s var(--ease); pointer-events: none; }
#toast.show { transform: translate(-50%, 0); }
#toast.err { border-color: rgba(248, 113, 113, .7); }
#confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; width: 100%; height: 100%; }
.skeleton { border-radius: var(--r); background: var(--skel); background-size: 220% 100%; animation: shine 1.4s linear infinite; }
.boot { min-height: 70vh; display: grid; place-items: center; }
.boot img { width: 88px; height: 88px; border-radius: 28px; animation: bootPulse 1.6s ease-in-out infinite; box-shadow: 0 14px 40px rgba(255, 190, 90, .35); }
@keyframes bootPulse { 50% { transform: scale(1.08) rotate(4deg); } }

/* ───── Silliq scroll ───── */
html.scrolling *, html.scrolling *::before, html.scrolling *::after { animation-play-state: paused !important; }
/* Gorizontal lentalar: faqat yon tomonga aylanadi; vertikal surish sahifaga o'tadi (ustida barmoq 'qotib' qolmasin) */
.samples, .cats { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; overscroll-behavior-y: auto; touch-action: pan-x pan-y; }
@media (hover: none) {
  .tilt { transition: none; }
  .tilt .glare { display: none; }
}
@media (max-width: 380px) {
  .moods { gap: 6px; }
  .mood { font-size: 11px; letter-spacing: -.01em; padding: 6px 1px 8px; }
}

@media (min-width: 720px) {
  #app { padding-top: 14px; }
  .hero h1 { font-size: 48px; }
  .heroart { margin: 0; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .aurora { animation: none; }
}
/* Ruscha kayfiyat nomlari uzunroq («Приключение») — kartochkaga sig'ishi uchun biroz kichikroq */
html[lang="ru"] .mood { font-size: 10.5px; letter-spacing: -.03em; padding-left: 1px; padding-right: 1px; }
