@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(../fonts/montserrat-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 900; font-display: swap; src: url(../fonts/montserrat-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Montserrat; font-weight: 800; font-display: swap; src: url(../fonts/montserrat-latin-ext-800-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Montserrat; font-weight: 900; font-display: swap; src: url(../fonts/montserrat-latin-ext-900-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #151a2e; --navy: #121a3a; --panel: rgba(18, 24, 52, 0.86); --panel2: rgba(30, 38, 76, 0.92);
  --line: rgba(255, 255, 255, 0.12); --text: #f4f1ff; --mute: #b9bddb; --gold: #f2b51d; --gold2: #ffd25a;
  --teal: #3ff0ff; --pink: #ff5c8a; --ok: #39d98a; --r: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; background: #121a3a; color: var(--text); font-family: Montserrat, system-ui, -apple-system, Segoe UI, sans-serif; font-weight: 600; }
button, input { font: inherit; color: inherit; }
input, textarea, .msg, .special { -webkit-user-select: text; user-select: text; }
button { cursor: pointer; border: 0; background: none; }
#city, #labels { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; }
#labels { pointer-events: none; }
[hidden] { display: none !important; }

.loader { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(ellipse at 50% 70%, #f49b86 0%, #59478a 40%, #1a2050 80%); z-index: 50; font-weight: 800; letter-spacing: .04em; transition: opacity .6s; }
.loader.out { opacity: 0; pointer-events: none; }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: var(--gold); animation: sp 0.9s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ── yuqori panel ── */
.top { position: fixed; left: 0; right: 0; top: 0; padding: calc(12px + var(--safe-t)) 14px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none; z-index: 5; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 900; font-size: 13px; letter-spacing: .05em; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.star { width: 14px; height: 14px; background: var(--teal); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 6px var(--teal)); }
.pop { padding: 7px 14px 8px; border-radius: 14px; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: center; min-width: 84px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.pop small { display: block; font-size: 10px; letter-spacing: .12em; color: var(--gold); font-weight: 900; }
.pop b { font-size: 24px; font-weight: 900; line-height: 1.05; }
.here { margin: 4px auto 0; display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--panel); backdrop-filter: blur(10px); font-weight: 800; font-size: 12px; max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.here i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px currentColor; }
.sample { position: fixed; top: calc(58px + var(--safe-t)); left: 14px; padding: 4px 10px; border-radius: 6px; background: rgba(242,181,29,.92); color: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: .06em; z-index: 4; pointer-events: none; }

/* ── boshqaruv tugmalari ── */
.ctl { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.ctl button { width: 46px; height: 46px; border-radius: 14px; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 22px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s, background .2s; }
.ctl button:active { transform: scale(.93); }
.ctl button.on { background: var(--gold); color: var(--ink); }
.ctl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctl .build { height: auto; padding: 8px 0 7px; background: linear-gradient(160deg, #ffd25a, #f2a91d); color: var(--ink); gap: 2px; }
.ctl .build span { font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.ctl #vote b { font-weight: 900; }

/* ── qidiruv ── */
.search { position: fixed; left: 50%; bottom: calc(16px + var(--safe-b) + var(--kb, 0px)); transform: translateX(-50%); width: min(520px, calc(100vw - 24px)); display: flex; gap: 6px; padding: 6px; border-radius: 18px; background: var(--panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,.35); z-index: 6; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: rgba(255,255,255,.08); border-radius: 13px; padding: 12px 14px; font-weight: 700; font-size: 16px; }
.search > button { padding: 0 20px; border-radius: 13px; background: var(--gold); color: var(--ink); font-weight: 900; }
.sugg { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--panel2); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,.35); max-height: 46vh; overflow: auto; }
.sugg li { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 800; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sugg li:hover, .sugg li.act { background: rgba(255,255,255,.08); }
.sugg small { color: var(--mute); font-weight: 600; font-size: 12px; text-align: right; }
body.card-open .search, body.shopping .search { display: none; }

/* ── xush kelibsiz ── */
.welcome { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: end center; padding: 16px 12px calc(16px + var(--safe-b)); background: linear-gradient(180deg, rgba(18,26,58,0) 30%, rgba(18,26,58,.55) 70%, rgba(18,26,58,.8)); z-index: 8; transition: opacity .45s, transform .45s; }
.welcome.out { opacity: 0; transform: translateY(30px); pointer-events: none; }
.wcard { width: min(500px, 100%); padding: 22px 20px 16px; border-radius: 26px; background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0,0,0,.45); border: 1px solid var(--line); }
.kicker { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 900; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.wcard h1 { margin: 10px 0 6px; font-weight: 900; font-size: clamp(26px, 6.4vw, 34px); line-height: 1.05; letter-spacing: -.01em; }
.wcard p { margin: 0 0 14px; color: var(--mute); font-size: 14px; line-height: 1.45; }
#wform { display: flex; gap: 8px; }
#wform input, .mcard input:not([type=radio]) { flex: 1; min-width: 0; border: 1px solid var(--line); outline: 0; background: rgba(255,255,255,.08); border-radius: 14px; padding: 13px 14px; font-weight: 700; font-size: 16px; }
#wform input:focus, .mcard input:focus { border-color: var(--gold); }
.primary { padding: 13px 18px; border-radius: 14px; background: linear-gradient(160deg, #ffd25a, #f2a91d); color: var(--ink); font-weight: 900; box-shadow: 0 6px 18px rgba(242,181,29,.35); white-space: nowrap; }
.primary:active { transform: scale(.97); }
.primary.big { width: 100%; padding: 15px; font-size: 16px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.1); font-weight: 800; text-decoration: none; color: var(--text); text-align: center; }
.wjoin, .bigcta { margin-top: 10px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(63,240,255,.18), rgba(138,108,255,.22)); border: 1px solid rgba(63,240,255,.35); text-align: left; }
.wjoin .ic, .bigcta .ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--teal); color: var(--ink); font-weight: 900; font-size: 22px; }
.wjoin .tx, .bigcta .tx { flex: 1; display: flex; flex-direction: column; }
.wjoin b, .bigcta b { font-weight: 900; font-size: 15px; }
.wjoin small, .bigcta small { color: var(--mute); font-size: 12px; }
.wjoin .go, .bigcta .go { font-size: 26px; font-weight: 900; opacity: .8; }
.bigcta { background: linear-gradient(135deg, rgba(242,181,29,.22), rgba(255,92,138,.2)); border-color: rgba(242,181,29,.45); }
.bigcta .ic { background: var(--gold); }
.bigcta .ic::before { content: ''; width: 20px; height: 20px; background: var(--ink); clip-path: polygon(35% 100%, 35% 30%, 50% 0, 65% 30%, 65% 100%, 100% 100%, 100% 100%, 0 100%); }
.wbuild { margin-top: 8px; width: 100%; padding: 10px; border-radius: 14px; color: var(--gold2); font-weight: 800; font-size: 13px; background: rgba(242,181,29,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips button { padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; border: 1px solid var(--line); }
.chips button:hover { background: rgba(255,255,255,.14); }
.link { display: block; margin: 12px auto 0; color: var(--mute); text-decoration: underline; font-weight: 700; font-size: 13px; }
.wpop { margin-top: 8px; text-align: center; color: var(--mute); font-size: 12px; }
.wpop b { color: var(--gold2); }

/* ── kartochka / list ── */
.sheet { position: fixed; left: 50%; bottom: var(--kb, 0px); transform: translateX(-50%); width: min(560px, 100vw); max-height: 62vh; max-height: 62dvh; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transition: transform .28s cubic-bezier(.2,.8,.2,1), max-height .28s ease; padding: 18px 18px calc(18px + var(--safe-b)); border-radius: 24px 24px 0 0; background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 -10px 40px rgba(0,0,0,.4); border: 1px solid var(--line); border-bottom: 0; z-index: 7; animation: up .3s ease; }
@keyframes up { from { transform: translate(-50%, 40px); opacity: 0; } }
/* yon panel rejimi (kompyuter yoki yotiq telefon) — body.side ni JS qo'yadi */
body.side .sheet { left: auto; right: 72px; top: 84px; bottom: auto; transform: none !important; width: 400px; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); border-radius: 24px; border-bottom: 1px solid var(--line); animation: side .3s ease; }
body.side .sheet.shop { right: auto; left: 16px; width: 420px; }
body.side .grab { display: none; }
@keyframes side { from { transform: translateX(20px); opacity: 0; } }
/* pastki list: tutqich, yig'ilgan va to'liq holatlar */
.grab { position: sticky; top: -18px; z-index: 2; height: 26px; margin: -18px -18px -8px; touch-action: none; cursor: grab; }
.grab::before { content: ''; position: absolute; left: 50%; top: 8px; width: 42px; height: 5px; margin-left: -21px; border-radius: 99px; background: rgba(255,255,255,.28); }
body:not(.side) .sheet.peek { transform: translate(-50%, calc(100% - 118px)); overflow: hidden; touch-action: none; }
body:not(.side) .sheet.full { max-height: calc(100dvh - 72px - var(--safe-t) - var(--kb, 0px)); }
.x { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 22px; line-height: 1; }
.nick { font-weight: 900; font-size: 22px; display: flex; align-items: center; gap: 8px; padding-right: 40px; word-break: break-all; }
.nick .dot { flex: none; width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.star-badge { padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 900; }
.vtag { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; color: var(--ink); }
.addr { margin-top: 8px; color: var(--gold2); font-weight: 800; }
.meta { margin-top: 4px; color: var(--mute); font-size: 13px; }
.special { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(63,240,255,.1); border: 1px solid rgba(63,240,255,.25); font-size: 13px; line-height: 1.45; }
.special.paid { background: rgba(242,181,29,.12); border-color: rgba(242,181,29,.35); }
.warn { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,92,138,.12); border: 1px solid rgba(255,92,138,.3); font-size: 13px; line-height: 1.45; }
.nb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.nb button { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb button small { color: var(--mute); font-size: 11px; }
.nb button span { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb button:disabled { opacity: .45; cursor: default; }
.row { display: flex; gap: 8px; margin-top: 12px; }
.row > * { flex: 1; }
.lvl { margin-top: 14px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); }
.lvl h3 { margin: 0 0 8px; font-size: 14px; font-weight: 900; }
.lvl p { margin: 8px 0; color: var(--mute); font-size: 12px; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 33%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--pink)); transition: width .6s; }
.ghost h2, .mcard h2 { margin: 0 0 8px; font-weight: 900; font-size: 22px; padding-right: 40px; }
.ghost p { color: var(--mute); line-height: 1.45; font-size: 14px; margin: 0 0 8px; }
.ghost .grow .btn { flex-direction: column; gap: 2px; }
.ghost .grow small { font-weight: 600; font-size: 11px; color: var(--mute); }

/* ── modallar ── */
.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(8,10,30,.55); backdrop-filter: blur(4px); z-index: 20; }
.mcard { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 20px; border-radius: 24px; background: var(--panel2); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: pop .25s ease; }
.mcard.wide { width: min(720px, 100%); }
@keyframes pop { from { transform: scale(.95); opacity: 0; } }
.mcard p { color: var(--mute); line-height: 1.45; font-size: 14px; }
.mcard .lbl { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--gold2); }
.mcard #jnick { width: 100%; }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.vgrid button { display: flex; align-items: center; gap: 6px; padding: 8px 7px; border-radius: 11px; background: rgba(255,255,255,.06); border: 2px solid transparent; font-weight: 800; font-size: 12px; text-align: left; min-width: 0; }
.vgrid button i { flex: none; width: 12px; height: 12px; border-radius: 4px; }
.vgrid button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vgrid button.on { border-color: var(--gold); background: rgba(242,181,29,.16); }
.mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.mlist button { position: relative; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.06); text-align: left; overflow: hidden; border: 1px solid var(--line); }
.mlist button::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c); }
.mlist b { display: block; font-weight: 900; font-size: 14px; }
.mlist small { color: var(--mute); font-size: 12px; }
.mlist .lm { position: absolute; right: 10px; top: 10px; font-size: 18px; opacity: .8; }
.mlist .mine { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 99px; background: var(--gold); color: var(--ink); font-size: 10px; font-weight: 900; }
#vform { display: grid; gap: 8px; }
#vform label { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-weight: 800; overflow: hidden; }
#vform label i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); width: 0; transition: width .6s; }
#vform label i::after { content: attr(data-n); position: absolute; right: -2px; bottom: 6px; transform: translateX(100%); font-style: normal; font-size: 11px; color: var(--mute); }
#vform #vother { flex: 1; padding: 6px 10px !important; font-size: 14px !important; }
.msg { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(57,217,138,.14); border: 1px solid rgba(57,217,138,.35); font-size: 14px; line-height: 1.45; }
.msg.err { background: rgba(255,92,138,.14); border-color: rgba(255,92,138,.35); }
.story img { display: block; width: 100%; max-height: 64vh; object-fit: contain; border-radius: 14px; background: #000; }
.payres .conf { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pcard { text-align: center; }
.pcard .big-ic { font-size: 54px; line-height: 1; margin: 4px 0 10px; }
.toast { position: fixed; left: 50%; top: calc(80px + var(--safe-t)); transform: translateX(-50%); padding: 11px 16px; border-radius: 14px; background: var(--panel2); font-weight: 800; z-index: 30; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); text-align: center; animation: pop .2s ease; }

/* ── do'kon ── */
.shop h2 { margin: 0 0 4px; font-weight: 900; font-size: 22px; padding-right: 40px; }
.shop .sub { color: var(--mute); font-size: 13px; margin: 0 0 12px; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kinds button { padding: 10px 4px 8px; border-radius: 14px; background: rgba(255,255,255,.06); border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: 11px; }
.kinds button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kinds button em { font-style: normal; color: var(--gold2); font-size: 10px; }
.kinds button.on { border-color: var(--gold); background: rgba(242,181,29,.14); }
.opt { margin-top: 14px; }
.opt h4 { margin: 0 0 6px; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--gold2); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 8px 11px; border-radius: 10px; background: rgba(255,255,255,.07); font-weight: 800; font-size: 12px; border: 2px solid transparent; }
.seg button.on { border-color: var(--gold); background: rgba(242,181,29,.14); }
.sw { display: flex; flex-wrap: wrap; gap: 8px; }
.sw button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); }
.sw button.on { border-color: #fff; box-shadow: 0 0 0 3px var(--gold); }
.floors { display: flex; align-items: center; gap: 12px; }
.floors input[type=range] { flex: 1; accent-color: var(--gold); height: 28px; }
.floors b { min-width: 76px; text-align: right; font-weight: 900; font-size: 18px; }
.models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.models button { padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.06); text-align: left; font-size: 12px; font-weight: 800; border: 2px solid transparent; }
.models button.on { border-color: var(--gold); background: rgba(242,181,29,.14); }
.shop input.txt { width: 100%; border: 1px solid var(--line); outline: 0; background: rgba(255,255,255,.08); border-radius: 12px; padding: 11px 12px; font-weight: 700; font-size: 16px; }
.shop input.txt:focus { border-color: var(--gold); }
.where { display: grid; gap: 6px; }
.where button { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 2px solid transparent; text-align: left; font-size: 13px; font-weight: 800; }
.where button small { display: block; color: var(--mute); font-weight: 600; font-size: 11px; }
.where button em { font-style: normal; color: var(--gold2); white-space: nowrap; }
.where button.on { border-color: var(--gold); background: rgba(242,181,29,.14); }
.where select { width: 100%; margin-top: 6px; padding: 10px; border-radius: 10px; background: #1e264c; color: var(--text); border: 1px solid var(--line); font: inherit; font-weight: 700; }
.total { position: sticky; bottom: calc(-18px - var(--safe-b)); margin: 16px -18px calc(-18px - var(--safe-b)); padding: 14px 18px calc(14px + var(--safe-b)); background: linear-gradient(180deg, rgba(18,24,52,.7), rgba(18,24,52,.98)); display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.total .sum { flex: 1; }
.total .sum small { display: block; color: var(--mute); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.total .sum b { font-size: 22px; font-weight: 900; }
.note { color: var(--mute); font-size: 11px; line-height: 1.4; margin-top: 10px; }
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.tiers span { padding: 5px 2px; border-radius: 8px; background: rgba(255,255,255,.05); text-align: center; font-size: 10px; color: var(--mute); }
.tiers span b { display: block; color: var(--text); font-size: 11px; }
.tiers span.on { background: rgba(242,181,29,.18); color: var(--gold2); }

body.intro .ctl, body.intro .top .here, body.intro .here { opacity: 0; pointer-events: none; }
.ctl, .top .here { transition: opacity .4s; }

/* ───────── telefonlar ───────── */
@media (pointer: coarse) {
  #zin, #zout { display: none; }
  .seg button, .models button, .where button { min-height: 40px; }
  .sw button { width: 38px; height: 38px; }
  .chips button { padding: 9px 12px; }
  .nb button { min-height: 52px; }
  .x { width: 40px; height: 40px; }
  .floors input[type=range] { height: 36px; }
}
body:not(.side) .sheet { padding-top: 18px; }
body:not(.side).card-open .here, body:not(.side).shopping .here { display: none; }
body:not(.side).card-open .ctl button:not(#build):not(#chatBtn), body:not(.side).shopping .ctl button:not(#build):not(#chatBtn) { display: none; }
body:not(.side).card-open .ctl, body:not(.side).shopping .ctl { top: calc(84px + var(--safe-t)); transform: none; }
body:not(.side) .modal:not(.payres) { place-items: end center; padding: 0 0 var(--kb, 0px); }
body:not(.side) .modal:not(.payres) .mcard { width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; max-height: calc(100dvh - 40px - var(--safe-t) - var(--kb, 0px)); padding: 22px 16px calc(20px + var(--safe-b)); animation: up2 .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up2 { from { transform: translateY(50px); opacity: 0; } }
@media (max-width: 899px) {
  .welcome { padding: 10px 10px calc(10px + var(--safe-b) + var(--kb, 0px)); }
  .wcard { padding: 18px 16px 12px; border-radius: 22px; max-height: calc(100dvh - 76px - var(--safe-t) - var(--kb, 0px)); overflow: auto; overscroll-behavior: contain; }
  .wcard h1 { font-size: clamp(23px, 7vw, 30px); }
  .wcard p { font-size: 13px; margin-bottom: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; }
  .top { padding: calc(10px + var(--safe-t)) 10px 0; }
  .ctl { right: max(8px, env(safe-area-inset-right)); gap: 6px; }
  .search { width: calc(100vw - 20px); }
  .sugg { max-height: 40dvh; }
  .total { padding-bottom: calc(14px + var(--safe-b)); }
}
body.kb .wcard p, body.kb .chips, body.kb .wbuild, body.kb .link, body.kb .wpop, body.kb .kicker { display: none; }
body.kb .wcard h1 { font-size: 21px; margin-top: 0; }
@media (max-width: 520px) {
  .here { position: fixed; top: calc(56px + var(--safe-t)); left: 10px; margin: 0; max-width: 62vw; padding: 6px 11px; font-size: 11px; display: flex; }
  .sample { top: calc(64px + var(--safe-t)); left: auto; right: 10px; max-width: 40vw; font-size: 9px; text-align: right; }
  .brand { padding: 8px 12px; font-size: 12px; }
  .pop { padding: 6px 11px 7px; min-width: 72px; }
  .pop b { font-size: 20px; }
  .ctl button { width: 42px; height: 42px; border-radius: 13px; }
  .kinds button { font-size: 10px; padding: 9px 2px 7px; }
  .models { grid-template-columns: 1fr 1fr; }
  .nick { font-size: 20px; }
  .total .sum b { font-size: 19px; }
}
@media (max-width: 360px) {
  #wform { flex-direction: column; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 640px) and (orientation: portrait) {
  .ctl button { width: 38px; height: 38px; font-size: 19px; }
  .ctl svg { width: 19px; height: 19px; }
  .wcard p { display: none; }
}
/* yotiq telefon */
@media (max-height: 520px) and (orientation: landscape) {
  .top { padding: calc(6px + var(--safe-t)) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); }
  .pop b { font-size: 18px; }
  body.side .sheet { top: 56px; right: calc(56px + env(safe-area-inset-right)); width: 340px; max-height: calc(100dvh - 64px - var(--kb, 0px)); padding: 14px 14px 14px; }
  body.side .sheet.shop { left: max(8px, env(safe-area-inset-left)); top: 8px; max-height: calc(100dvh - 16px); }
  .ctl { gap: 4px; right: max(8px, env(safe-area-inset-right)); }
  .ctl button { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
  .ctl svg { width: 18px; height: 18px; }
  .ctl .build span { display: none; }
  .welcome { place-items: center; padding: 8px; }
  .wcard { width: min(620px, 100%); max-height: calc(100dvh - 16px - var(--kb, 0px)); overflow: auto; padding: 16px 18px 10px; }
  .wcard h1 { font-size: 22px; }
  .wcard h1 br { display: none; }
  .search { width: min(420px, calc(100vw - 120px)); bottom: calc(8px + var(--kb, 0px)); }
  .mcard { max-height: calc(100dvh - 16px); }
  .modal { padding: 8px; }
  .story img { max-height: 58dvh; }
  .total { margin: 12px -14px -14px; padding: 10px 14px; bottom: -14px; }
}
body:not(.side).card-open .sample, body:not(.side).shopping .sample { display: none; }
.total .sum b { white-space: nowrap; }
@media (max-width: 360px) { .total .sum b { font-size: 17px; } .total .primary { padding: 12px 14px; } }
.paybtns { display: grid; gap: 10px; margin: 16px 0 6px; }
.paybtn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; border-radius: 16px; text-decoration: none; color: #fff; font-size: 18px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.paybtn b { font-weight: 900; letter-spacing: .02em; }
.paybtn small { font-weight: 700; opacity: .9; font-size: 13px; }
.paybtn.payme { background: linear-gradient(135deg, #00baba, #1ec8c8); }
.paybtn.click { background: linear-gradient(135deg, #0b63f6, #2f8bff); }
.paybtn:active { transform: scale(.98); }
.lbar { width: 180px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.lbar i { display: block; height: 100%; width: 3%; background: var(--gold); border-radius: 99px; transition: width .25s; }
.loader .lsub { max-width: 320px; text-align: center; font-weight: 600; font-size: 13px; line-height: 1.5; opacity: .9; padding: 0 16px; }
.qlist { display: grid; gap: 6px; margin-top: 10px; }
.qlist button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 2px solid transparent; text-align: left; }
.qlist button b { font-weight: 900; }
.qlist button small { color: var(--mute); font-size: 12px; }
.qlist button.on { border-color: var(--gold); background: rgba(242,181,29,.14); }
.bank { display: grid; gap: 4px; justify-items: center; margin: 12px 0; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px dashed rgba(242,181,29,.5); }
.bank small { color: var(--mute); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bank b { font-size: 22px; font-weight: 900; letter-spacing: .06em; -webkit-user-select: all; user-select: all; }
.bank span { color: var(--mute); font-size: 13px; }
.bank .btn { margin-top: 6px; padding: 8px 14px; }
.paysteps { text-align: left; margin: 10px 0 14px; padding-left: 20px; color: var(--mute); font-size: 13px; line-height: 1.6; }
.upl { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.upl input { display: none; }
.vtop { margin: 8px 0 4px; padding: 12px 14px; border-radius: 16px; background: #fff; color: #151a2e; position: relative; }
.vtop small { display: block; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #c0392b; margin-bottom: 4px; }
.vtop div { font-size: 14px; line-height: 1.4; padding-right: 54px; }
.vtop span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-weight: 900; color: #e0245e; }
.updbar { position: fixed; left: 50%; top: calc(66px + var(--safe-t)); transform: translateX(-50%); z-index: 9; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
body.nf { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(ellipse at 50% 80%, #f49b86 0%, #59478a 40%, #1a2050 85%); overflow: auto; }
.nfbox { max-width: 440px; margin: 16px; padding: 28px 24px; border-radius: 24px; background: var(--panel); text-align: center; }
.nfbox h1 { font-weight: 900; font-size: 28px; margin: 12px 0 8px; }
.nfbox p { color: var(--mute); line-height: 1.5; }
.nfbox .primary { display: inline-block; margin-top: 8px; text-decoration: none; }
.pop b { white-space: nowrap; }
@media (max-width: 380px) {
  .brand { font-size: 10.5px; letter-spacing: .02em; padding: 8px 10px; gap: 6px; }
  .brand span:last-child { white-space: nowrap; }
  .pop { min-width: 0; padding: 6px 9px 7px; }
  .pop b { font-size: 17px; }
}

/* ── chat ── */
.chatbtn { position: relative; }
/* "Chat" — yozuvli, ko'zga tashlanadigan tugma (telefonda ham topilsin) */
.ctl .chatbtn { height: auto; padding: 8px 0 6px; gap: 2px; background: linear-gradient(160deg, #4fe3d3, #18a99c); color: var(--ink); }
.ctl .chatbtn .lbl { font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.ctl .chatbtn svg { width: 20px; height: 20px; }
.wchat { margin-top: 2px; color: var(--teal, #4fe3d3) !important; }
/* kutilayotgan to'lov eslatmasi — oyna o'zi ochilmaydi */
.paypill { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + var(--safe-b) + var(--kb, 0px)); z-index: 7; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px); padding: 9px 14px; border-radius: 99px; background: var(--panel2); color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.4); border: 1px solid rgba(242,181,29,.55); white-space: nowrap; animation: pop .25s ease; }
.paypill span { overflow: hidden; text-overflow: ellipsis; }
.paypill em { font-style: normal; color: var(--ink); background: var(--gold); border-radius: 99px; padding: 3px 10px; }
body:not(.side).card-open .paypill, body:not(.side).shopping .paypill, body.intro .paypill { display: none; }
@media (max-height: 520px) and (orientation: landscape) { .ctl .chatbtn .lbl { display: none; } .paypill { bottom: calc(62px + var(--kb, 0px)); } }
.cbadge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #ff3b5c; color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--navy); }
.chatcard { display: flex; flex-direction: column; height: min(640px, calc(100dvh - 40px)); padding-bottom: 14px; }
.chatlist { flex: 1; overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px 10px; margin: 0 -4px; -webkit-user-select: text; user-select: text; }
.cm { max-width: 82%; display: flex; flex-direction: column; gap: 3px; }
.cm.me { align-self: flex-end; align-items: flex-end; }
.cm.adm { align-self: flex-start; }
.cb { padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; word-break: break-word; }
.cm.me .cb { background: linear-gradient(160deg, #ffd25a, #f2a91d); color: var(--ink); border-bottom-right-radius: 5px; }
.cm.adm .cb { background: rgba(255,255,255,.1); border-bottom-left-radius: 5px; }
.cm small { color: var(--mute); font-size: 10.5px; padding: 0 4px; }
.cempty { margin: auto; text-align: center; color: var(--mute); font-size: 14px; line-height: 1.5; padding: 20px; }
.chatform { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.chatform input, .chatform textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); outline: 0; background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; font: inherit; font-weight: 600; font-size: 16px; color: var(--text); resize: none; }
.chatform input:focus, .chatform textarea:focus { border-color: var(--gold); }
.crow { display: flex; gap: 6px; align-items: flex-end; }
.crow .primary { padding: 12px 16px; font-size: 18px; }
body:not(.side) .chatm .mcard.chatcard { height: calc(100dvh - 60px - var(--safe-t) - var(--kb, 0px)); }
.paychat { margin-top: 10px; width: 100%; }
/* to'lov: chek rasmi tanlanadi, ko'rsatiladi, keyin yuboriladi */
.rpick { width: 100%; margin-bottom: 10px; }
.rprev { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.06); }
.rprev img { width: 64px; height: 84px; object-fit: cover; border-radius: 10px; background: #0f1530; }
.rprev small { color: var(--mute); }
#pay-send:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.note.ok { color: #7be0a2; }
.rlink { display: inline; padding: 0; color: var(--gold2); text-decoration: underline; font-weight: 800; font: inherit; font-weight: 800; }
.note.donat { color: var(--gold2); font-weight: 800; font-size: 13px; line-height: 1.45; margin: 8px 0 12px; padding: 9px 12px; border-radius: 12px; background: rgba(242,181,29,.1); border: 1px solid rgba(242,181,29,.35); }

/* ── uy egasi: kartochkadagi amallar ── */
.acts { margin: 12px 0 2px; display: grid; gap: 8px; }
.acts .bigcta { margin-top: 0; }
.bigcta .ic:not(:empty)::before { display: none; }
.bigcta.claim { background: linear-gradient(135deg, rgba(63,240,255,.2), rgba(57,217,138,.22)); border-color: rgba(63,240,255,.5); }
.bigcta.claim .ic { background: var(--teal); }
.acts-wait { height: 62px; border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.11), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ownbadge { font-size: 12px; font-weight: 800; color: #7be0a2; }
.lock { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); color: var(--mute); font-size: 13px; line-height: 1.45; }
.acts-row { margin-top: 0; }
.acts-row .btn { padding: 10px 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.sm { padding: 7px 11px; border-radius: 11px; font-size: 12px; white-space: nowrap; }
.btn.sm.on { background: var(--gold); color: var(--ink); }

/* ── "Uyim" va kompas tugmalari ── */
.ctl .homebtn { height: auto; padding: 8px 0 6px; gap: 2px; background: linear-gradient(160deg, #7be0a2, #2fae6a); color: var(--ink); }
.ctl .homebtn span { font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.ctl .homebtn svg { width: 20px; height: 20px; }
.ctl .compass svg { width: 24px; height: 24px; }
@media (max-height: 520px) and (orientation: landscape) { .ctl .homebtn span { display: none; } }

/* ── shahar xaritasi chizig'i (pastda, qidiruv ustida) ── */
.mini { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + var(--safe-b) + var(--kb, 0px)); width: min(520px, calc(100vw - 24px)); height: 44px; border-radius: 14px; background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.3); z-index: 5; touch-action: none; cursor: pointer; }
body.intro .mini, body.shopping .mini, body:not(.side).card-open .mini, body.kb .mini { display: none; }
.paypill { bottom: calc(134px + var(--safe-b) + var(--kb, 0px)); }
@media (max-width: 600px) { .mini { width: calc(100vw - 20px); height: 40px; bottom: calc(76px + var(--safe-b) + var(--kb, 0px)); } }
@media (max-height: 520px) and (orientation: landscape) { .mini { width: min(420px, calc(100vw - 120px)); height: 34px; bottom: calc(62px + var(--kb, 0px)); } .paypill { bottom: calc(102px + var(--kb, 0px)); } }

/* ── do'kon: bino ochiq ko'rinsin ── */
.shead { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.shead h2 { flex: 1; margin: 0; padding-right: 0; min-width: 0; }
.shbtns { display: flex; gap: 6px; align-items: center; }
.shead .x { position: static; flex: none; }
.nickfix { padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-weight: 900; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nickfix small { color: var(--mute); font-weight: 700; font-size: 11px; }
.kinds.k4 { grid-template-columns: repeat(4, 1fr); }
/* "Ko'rish" rejimi: faqat sarlavha va narx qoladi */
.shop.viewing > :not(.shead):not(.total):not(.grab) { display: none; }
.shop.viewing .total { margin-top: 10px; }
body:not(.side) .sheet.shop { max-height: 52vh; max-height: 52dvh; }
body:not(.side) .sheet.shop.viewing { max-height: none; }
body:not(.side).shopping .ctl { display: none; }
@media (max-width: 600px) {
  .kinds button { padding: 8px 2px 6px; font-size: 10px; }
  .kinds button svg { width: 20px; height: 20px; }
  .shop .sub { font-size: 12px; margin-bottom: 8px; }
}
.updbar { white-space: nowrap; font-size: 13px; padding: 8px 14px; max-width: calc(100vw - 24px); }
body.shopping .updbar { display: none; }
@media (max-width: 600px) { .updbar { top: calc(100px + var(--safe-t)); } .shead h2 { font-size: 19px; } }
/* telefonda kam ishlatiladigan tugmalar "⋯" menyusida — o'ng ustun ekranni to'sib qo'ymasin */
.ctl .more { display: none; }
.ctl .more b { font-size: 24px; line-height: 1; }
body:not(.side) .ctl .more { display: grid; }
body:not(.side) .ctl .opt { display: none; }
body:not(.side) .ctl.open .opt { display: grid; }
body:not(.side) .ctl.open .more { background: var(--gold); color: var(--ink); }
body.ctlopen .mini { display: none; }
@media (max-height: 520px) { .ctl .more { display: grid; } .ctl .opt { display: none; } .ctl.open .opt { display: grid; } }
.note.warnline { color: #ffb4a8; }

/* ── donaterlar: Prezident va hokimlar, reyting ── */
.donor { font-size: 12px; font-weight: 800; color: var(--gold2, #ffd25a); }
.tbadge { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 2px; padding: 5px 11px; border-radius: 99px; font-weight: 900; font-size: 13px; color: var(--ink); }
.tbadge small { font-weight: 800; opacity: .75; }
.tbadge.pres { background: linear-gradient(135deg, #ffe08a, #f2b51d); box-shadow: 0 0 18px rgba(242,181,29,.45); }
.tbadge.hokim { background: linear-gradient(135deg, #d8f8e6, #7be0a2); }
.tabs { display: flex; gap: 6px; margin: 4px 0 10px; }
.tabs button { flex: 1; padding: 9px 6px; border-radius: 12px; background: rgba(255,255,255,.07); font-weight: 800; font-size: 13px; border: 2px solid transparent; }
.tabs button.on { border-color: var(--gold); background: rgba(242,181,29,.14); }
.ratelist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-height: min(56vh, 520px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.rrow { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,.06); text-align: left; width: 100%; min-width: 0; }
.rrow .rk { flex: none; min-width: 26px; text-align: center; font-weight: 900; color: var(--gold2, #ffd25a); }
.rrow .rn { flex: 1; min-width: 0; font-weight: 800; display: flex; flex-direction: column; gap: 1px; }
.rrow .rnick, .rrow .rn em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow .rnick { font-size: 15px; }
.rrow .rn em { font-style: normal; font-weight: 600; font-size: 11px; color: var(--mute); }
.rrow .rn em .donor { font-size: 11px; }
.rrow b { flex: none; font-weight: 900; white-space: nowrap; font-size: 13px; }
@media (max-width: 380px) { .rrow { gap: 8px; padding: 8px 9px; } .rrow .rk { min-width: 18px; } .rrow .rnick { font-size: 13.5px; } .rrow b { font-size: 12px; } .tabs button { font-size: 12px; padding: 8px 4px; } }
.rrow.empty { opacity: .6; }
.lvl .pts { margin: 6px 0 8px; font-size: 12px; color: var(--mute); }
.lvl .pts b { color: #ffd25a; }
.chips #wrate { background: rgba(242,181,29,.16); }
.story .shint { margin: 6px 0 8px; text-align: center; font-size: 12px; color: var(--mute); }
.story .ig { width: 100%; background: linear-gradient(135deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%, #4f5bd5); color: #fff; }
.story .row { margin-top: 8px; }
.ssteps { margin: 10px 0 0; padding-left: 20px; color: var(--mute); font-size: 12px; line-height: 1.55; }
/* doim ko'rinadigan donaterlar belgisi (o'ng yuqorida, AHOLI ostida) */
/* kirish oynasida eng katta donaterlar */
.wdonors { margin: 10px 0 2px; padding: 10px; border-radius: 14px; background: rgba(242,181,29,.1); border: 1px solid rgba(242,181,29,.35); display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.wdonors .wdh { font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--gold2); margin-bottom: 2px; }
.wdonors button { display: flex; align-items: center; gap: 8px; text-align: left; padding: 4px 2px; font-size: 13px; min-width: 0; }
.wdonors button span { flex: none; width: 22px; text-align: center; }
.wdonors button b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wdonors button b small { display: block; color: var(--gold2); font-weight: 800; font-size: 10px; line-height: 1.2; }
.wdonors button em { flex: none; font-style: normal; font-weight: 800; color: var(--mute); font-size: 12px; white-space: nowrap; }
.wdonors .wall { justify-content: center; color: var(--gold2); font-weight: 900; font-size: 12px; padding-top: 6px; }
.chatme { font-size: 12px; font-weight: 800; color: var(--gold2); margin: 0 0 6px; }
/* ── bir nikdagi binolar ro'yxati (kartochka) va kutilayotgan to'lovlar ── */
.blist { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.blist .meta { margin: 0 0 2px; }
.blist button, .pendrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.07); text-align: left; min-width: 0; }
.blist button.on { background: rgba(242,181,29,.16); box-shadow: inset 0 0 0 1px rgba(242,181,29,.55); }
.blist i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; background: var(--gold); color: var(--ink); }
.blist span, .pendrow span { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.blist b, .pendrow b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blist small, .pendrow small { color: var(--mute); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blist em, .pendrow em { flex: none; font-style: normal; font-size: 12px; font-weight: 800; color: var(--gold2); }
.blist button.on em { color: var(--mute); }
.pendlist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; text-align: left; }
.pendrow em.ok { color: var(--mute); }
/* reyting tugmasi — faqat asosiy ekranda (kirish, do'kon va kartochka ochiqligida yashirin) */
.ctl .ratebtn { height: auto; padding: 8px 0 6px; gap: 2px; background: linear-gradient(160deg, #ffe08a, #f2b51d); color: var(--ink); }
.ctl .ratebtn .lbl { font-size: 9px; font-weight: 900; letter-spacing: .02em; }
.ctl .ratebtn svg { width: 20px; height: 20px; }
body.shopping .ctl .ratebtn, body.card-open .ctl .ratebtn { display: none; }
@media (max-height: 520px) and (orientation: landscape) { .ctl .ratebtn .lbl { display: none; } }
.acts .pendbtn { margin-top: 8px; border: 1px solid rgba(242,181,29,.55); color: var(--gold2); }
/* tik telefon: boshqaruv ustuni xarita chizig'i ustidan yuqoriga quriladi (pastki tugmalar xarita va to'lov belgisi ostida qolmaydi);
   to'lov belgisi ustunning chap tomonida turadi */
@media (max-width: 600px) and (orientation: portrait) {
  body:not(.side):not(.card-open):not(.shopping) .ctl { top: auto; bottom: calc(126px + var(--safe-b) + var(--kb, 0px)); transform: none; }
  .paypill { left: 10px; transform: none; max-width: calc(100vw - 76px); }
}
/* bir martalik imo-ishoralar ko'rsatmasi (telefon) */
.ghint { position: fixed; left: 12px; right: 70px; top: calc(110px + var(--safe-t)); z-index: 8; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--panel2); border: 1px solid rgba(242,181,29,.5); box-shadow: 0 10px 30px rgba(0,0,0,.45); color: #fff; font-size: 12.5px; line-height: 1.35; animation: pop .25s ease; }
.ghint b { color: var(--gold2); font-size: 13px; }
.ghint em { align-self: flex-end; font-style: normal; font-weight: 900; color: var(--ink); background: var(--gold); border-radius: 99px; padding: 4px 12px; margin-top: 2px; }
.ghint.out { opacity: 0; transition: opacity .3s; }
body.shopping .ghint, body.card-open .ghint { display: none; }
/* reyting: shahar va mahallalar bo'yicha top-3 bo'limlari */
.rsec { margin: 8px 2px 0; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--gold2); }
.rsec:first-child { margin-top: 0; }
.rmh { display: flex; align-items: center; gap: 8px; margin: 8px 2px 0; font-size: 13px; font-weight: 900; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmh i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.rmh small { color: var(--mute); font-weight: 700; font-size: 11px; }
/* ── ommaviy chatlar: shahar, mahalla, donaterlar ── */
.ctabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 2px 0 8px; }
.ctabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px 5px; border-radius: 12px; background: rgba(255,255,255,.07); font-weight: 800; font-size: 11px; border: 2px solid transparent; min-width: 0; }
.ctabs button em { font-style: normal; font-size: 16px; line-height: 1.1; }
.ctabs button span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .primary:disabled { opacity: .55; filter: grayscale(.4); }
.ctabs button.on { border-color: var(--gold); background: rgba(242,181,29,.14); }
.ctabs .cbadge { position: absolute; top: -4px; right: -2px; font-style: normal; }
.roompane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.roompane[hidden] { display: none; }
.rm { max-width: 86%; align-self: flex-start; display: flex; flex-direction: column; gap: 3px; }
.rm.me { align-self: flex-end; align-items: flex-end; }
.rm .rh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 4px; font-size: 12px; }
.rm .rh b { font-weight: 900; color: #fff; }
.rm .rh small { color: var(--mute); font-size: 10.5px; }
.rm .rt { font-size: 10.5px; font-weight: 900; padding: 1px 7px; border-radius: 99px; color: var(--ink); }
.rm .rt.pres { background: linear-gradient(135deg, #ffe08a, #f2b51d); }
.rm .rt.hokim { background: linear-gradient(135deg, #d8f8e6, #7be0a2); }
.rm .rt.donor { background: linear-gradient(135deg, #e3d9ff, #a98bff); }
.rm .cb { background: rgba(255,255,255,.1); border-bottom-left-radius: 5px; }
.rm.me .cb { background: linear-gradient(160deg, #ffd25a, #f2a91d); color: var(--ink); border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.roompane textarea:disabled { opacity: .5; }
@media (max-width: 360px) { .ctabs button { font-size: 10px; } }

/* ───────── hamyon va "Ajoyib mahalla" o'yini ───────── */
.topr { display: flex; align-items: flex-start; gap: 8px; }
.top .brand { min-width: 0; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet { color: var(--text); cursor: pointer; transition: transform .15s; }
.wallet:active { transform: scale(.95); }
.wallet b { display: flex; align-items: center; gap: 4px; justify-content: center; color: var(--gold2); }
.wallet b i { font-style: normal; font-size: .8em; }
.wallet.bump { animation: wbump .5s ease; }
@keyframes wbump { 40% { transform: scale(1.12); } }
/* telefonda: "OʻZBEKISTON MAHALLASI" yozuvi qoladi — tanga va aholi ixchamlashadi */
@media (max-width: 520px) {
  .topr { gap: 6px; }
  .wallet small { display: none; }
  .wallet { min-width: 0; padding: 9px 10px; display: flex; align-items: center; }
  .wallet b { font-size: 16px; }
}
@media (max-width: 430px) {
  .top { gap: 6px; }
  .brand { font-size: 10.5px; letter-spacing: .02em; padding: 8px 10px; gap: 6px; }
  .pop { min-width: 0; padding: 6px 9px 7px; }
  .pop b { font-size: 17px; }
  .wallet { padding: 8px 9px; }
  .wallet b { font-size: 15px; gap: 3px; }
}
@media (max-width: 370px) {
  .brand { font-size: 9.5px; padding: 8px 9px; gap: 5px; }
  .brand .star { width: 12px; height: 12px; }
  .wallet b { font-size: 14px; }
  .pop b { font-size: 16px; }
}
.ctl .gamebtn { height: auto; padding: 8px 0 6px; gap: 2px; background: linear-gradient(160deg, #ff8fb5, #ff4f86); color: #fff; }
.ctl .gamebtn .lbl { font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.ctl .gamebtn svg { width: 20px; height: 20px; }
body.shopping .ctl .gamebtn, body.card-open .ctl .gamebtn { display: none; }
@media (max-height: 520px) and (orientation: landscape) { .ctl .gamebtn .lbl { display: none; } }

.adbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 14px; background: linear-gradient(160deg, #4fe3d3, #18a99c); color: var(--ink); font-weight: 900; }
.adbtn:disabled { opacity: .55; }
.yardsp { color: var(--gold2) !important; }
.bigcta.decorcta .ic { background: linear-gradient(160deg, #6fdc8c, #2e9b5a); }
/* do'kon: tanga bilan to'lash va hovlini bezash */
.total { flex-wrap: wrap; }
.total .coinbtn { flex: 1 1 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(255,92,138,.16); border: 1px solid rgba(255,92,138,.45); color: var(--text); font-weight: 900; font-size: 14px; }
.total .coinbtn small { font-size: 11px; font-weight: 700; color: var(--mute); }
.total .coinbtn.ok { background: linear-gradient(160deg, #ffe08a, #f2b51d); border-color: transparent; color: var(--ink); }
.total .coinbtn.ok small { color: rgba(21,26,46,.75); }
.decor { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.decor button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px 7px; border-radius: 14px; background: rgba(255,255,255,.06); border: 2px solid transparent; font-weight: 800; font-size: 11px; text-align: center; }
.decor button i { font-style: normal; font-size: 24px; line-height: 1.1; }
.decor button em { font-style: normal; color: var(--gold2); font-size: 10px; }
.decor button small { position: absolute; top: 3px; right: 5px; font-size: 9px; color: var(--ok); font-weight: 900; }
.decor button.on { border-color: var(--gold); background: rgba(242,181,29,.14); }
.decor button.have em { color: var(--ok); }
.qty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qty button { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 22px; font-weight: 900; }
.qty button:disabled { opacity: .35; }
.qty b { min-width: 28px; text-align: center; font-size: 22px; font-weight: 900; }
.qty small { color: var(--mute); font-size: 12px; }
@media (max-width: 360px) { .decor { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ghead h2 { font-size: clamp(16px, 4.6vw, 20px); }
body:not(.side) .gamem .mcard.gcard { max-height: calc(100dvh - 6px - var(--safe-t)); padding-top: 16px; }
/* akkaunt: parol, Google, Telegram */
.acard h2 { margin-top: 0; }
.arow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.aic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 17px; }
.aic .gg { color: #4285f4; font-weight: 900; font-size: 18px; }
.aic .tgg { color: #2aabee; font-size: 16px; }
.atx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.atx b { font-weight: 900; }
.atx small { color: var(--mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apw { display: grid; gap: 8px; margin: 4px 0 12px; }
.apw input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.gbtn { display: flex; justify-content: center; min-height: 44px; margin: 4px 0 8px; }
.aor { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 12px; margin: 6px 0; }
.aor::before, .aor::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tgbtn { background: #2aabee !important; color: #fff !important; }
.ghostb { opacity: .8; }
.secbtn { margin-top: 8px; font-size: 12.5px; }
.secbtn.warn { background: rgba(255,92,138,.16); border: 1px solid rgba(255,92,138,.45); }
.secbtn.ok { color: var(--ok); }
.wlogin { color: var(--teal); background: rgba(63,240,255,.08); }
@media (max-width: 340px) {
  .top { padding-left: 6px; padding-right: 6px; gap: 4px; }
  .topr { gap: 4px; }
  .brand { font-size: 8.6px; letter-spacing: 0; padding: 7px 8px; gap: 4px; }
  .wallet { padding: 7px 7px; }
  .wallet b { font-size: 13px; }
  .pop { padding: 5px 7px 6px; }
  .pop small { font-size: 8px; }
  .pop b { font-size: 14px; }
}
.acard .note a { color: var(--mute); }
.adbtn small { font-weight: 700; opacity: .75; }

/* ───────── "Ajoyib mahalla": to'liq ekran ───────── */
.gamefs { --gt: #3ec6ff; position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--gt) 45%, #2a1550) 0%, #1a1240 55%, #0e0b26 100%); color: var(--text); -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.gamefs .conf { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.gwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; width: min(680px, 100%); margin: 0 auto; padding: calc(8px + var(--safe-t)) max(10px, env(safe-area-inset-right)) calc(8px + var(--safe-b)) max(10px, env(safe-area-inset-left)); gap: 8px; }
.gtop { display: flex; align-items: center; gap: 8px; flex: none; }
.gtop h2 { flex: 1; min-width: 0; margin: 0; font-size: clamp(16px, 4.6vw, 21px); font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbtn { flex: none; width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.12); font-size: 18px; font-weight: 900; display: grid; place-items: center; }
.gwal { flex: none; padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.3); font-weight: 900; color: var(--gold2); white-space: nowrap; }
.gtools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: none; }
.gtool { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: rgba(255,255,255,.1); font-size: 22px; }
.gtool span { font-size: 10.5px; font-weight: 800; }
.gtool.glow { background: linear-gradient(160deg, #ffe08a, #f2b51d); color: var(--ink); animation: gglow 1.4s ease-in-out infinite; }
@keyframes gglow { 50% { transform: scale(1.05); box-shadow: 0 0 22px rgba(255,210,90,.7); } }
.gcap { flex: none; text-align: center; font-size: 12px; color: var(--mute); }
.gcap b { color: var(--gold2); }
.gnote { margin: 0; font-size: 13px; line-height: 1.45; color: var(--mute); }
.gnote.warn { color: #ffb0c2; }
.gnote b { color: var(--text); }
.gnote.streak { color: #ffc46b; font-weight: 800; }
.gmeter { position: relative; flex: none; height: 10px; margin: 2px 14px 8px 4px; border-radius: 999px; background: rgba(0,0,0,.32); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.gmeter i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ffb347, #ffe08a); box-shadow: 0 0 10px rgba(255,200,90,.55); transition: width .35s ease; }
.gmeter b { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 17px; line-height: 1; color: rgba(255,255,255,.35); text-shadow: 0 1px 2px rgba(0,0,0,.6); transition: color .3s, transform .3s; }
.gmeter b.on { color: #ffd34d; transform: translate(-50%, -50%) scale(1.25); text-shadow: 0 0 8px rgba(255,210,80,.9), 0 1px 2px rgba(0,0,0,.6); }
.gmap { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px 12px; scrollbar-width: none; }
.gmap::-webkit-scrollbar { display: none; }
.msec { --mc: #3ec6ff; margin: 0 0 14px; padding: 10px 10px 14px; border-radius: 20px; background: linear-gradient(170deg, color-mix(in srgb, var(--mc) 30%, transparent), rgba(0,0,0,.18)); border: 1px solid color-mix(in srgb, var(--mc) 50%, transparent); }
.msec h3 { margin: 0 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 900; }
.msec h3 small { font-size: 11px; color: var(--mute); font-weight: 700; }
.mpath { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 6px; }
.mpath .p5, .mpath .p6, .mpath .p7, .mpath .p8, .mpath .p9 { order: 1; }
.mpath .p5 { grid-column: 5; grid-row: 2; } .mpath .p6 { grid-column: 4; grid-row: 2; } .mpath .p7 { grid-column: 3; grid-row: 2; } .mpath .p8 { grid-column: 2; grid-row: 2; } .mpath .p9 { grid-column: 1; grid-row: 2; }
.lv { position: relative; justify-self: center; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, var(--mc) 38%, color-mix(in srgb, var(--mc) 60%, #000) 100%); box-shadow: 0 4px 0 color-mix(in srgb, var(--mc) 50%, #000), 0 6px 14px rgba(0,0,0,.35); display: grid; place-items: center; }
.lv b { font-size: 19px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.lv i { position: absolute; top: -8px; right: -8px; min-width: 22px; padding: 1px 5px; border-radius: 99px; background: #2b1a4a; font-style: normal; font-size: 10px; font-weight: 900; }
.lv em { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--gold2); white-space: nowrap; letter-spacing: -1px; }
.lv.boss { width: 62px; height: 62px; }
.lv.lock { background: rgba(255,255,255,.12); box-shadow: none; }
.lv.lock b { font-size: 16px; }
.lv.cur { animation: gcur 1.2s ease-in-out infinite; outline: 3px solid #fff; outline-offset: 3px; }
@keyframes gcur { 50% { transform: translateY(-4px) scale(1.06); } }
.gfoot { flex: none; display: grid; gap: 6px; }
.gplay { width: 100%; padding: 14px 16px; border-radius: 18px; background: linear-gradient(180deg, #ffe27a, #f2a51d); color: #3a2200; font-size: 17px; font-weight: 900; box-shadow: 0 5px 0 #b06d0a, 0 10px 22px rgba(0,0,0,.35); }
.gplay:active { transform: translateY(3px); box-shadow: 0 2px 0 #b06d0a; }
.gbtn2 { width: 100%; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.14); font-weight: 900; }
.gpriv { text-align: center; font-size: 11px; color: var(--mute); }
.ghud { flex: none; display: flex; align-items: center; gap: 8px; }
.gmoves { flex: none; width: 74px; padding: 6px 4px; border-radius: 16px; background: rgba(0,0,0,.3); text-align: center; }
.gmoves small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 800; }
.gmoves b { font-size: 28px; font-weight: 900; line-height: 1.05; }
.gmoves.low b { color: #ff7a8a; animation: gcur .8s ease-in-out infinite; display: inline-block; }
.gchips { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gchip { display: flex; align-items: center; gap: 4px; padding: 5px 10px 5px 6px; border-radius: 999px; background: rgba(0,0,0,.3); font-weight: 900; }
.gchip span { font-size: 20px; }
.gchip canvas { width: 26px; height: 26px; }
.gchip b { font-size: 16px; }
.gchip.done { background: rgba(57,217,138,.25); color: var(--ok); }
.gboard { flex: 1; min-height: 0; display: grid; place-items: center; }
.gboard canvas { display: block; border-radius: 18px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.35); touch-action: none; }
.gbar { flex: none; display: flex; gap: 8px; align-items: stretch; }
.gbst { flex: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 8px 10px; border-radius: 16px; background: rgba(255,255,255,.12); text-align: left; }
.gbst span { grid-row: 1 / 3; font-size: 24px; }
.gbst small { font-size: 11px; font-weight: 800; }
.gbst em { font-style: normal; font-size: 12px; font-weight: 900; color: var(--gold2); }
.gbst.on { background: linear-gradient(160deg, #ffe08a, #f2b51d); color: var(--ink); }
.gbst.on em { color: var(--ink); }
.gbst:disabled { opacity: .45; }
.gscore { flex: none; width: 96px; padding: 6px; border-radius: 16px; background: rgba(0,0,0,.3); text-align: center; }
.gscore small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 800; }
.gscore b { font-size: 18px; font-weight: 900; }
.gpop { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; background: rgba(8,6,24,.6); backdrop-filter: blur(3px); }
.gpcard { width: min(400px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 20px 18px; border-radius: 24px; background: linear-gradient(170deg, #3b1f6b, #1d1645); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 60px rgba(0,0,0,.5); text-align: center; display: grid; gap: 10px; animation: pop .25s ease; }
.gpcard.wide { width: min(460px, 100%); }
.gpcard h3 { margin: 0; font-size: 24px; font-weight: 900; }
.gpcard p { margin: 0; color: var(--mute); line-height: 1.45; font-size: 14px; }
.gpcard .big { font-size: 52px; line-height: 1; }
.gpbtns { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 4px; }
.gpbtns .ghost { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.14); font-weight: 900; }
.lvhead { --mc: #3ec6ff; margin: -20px -18px 4px; padding: 16px 18px 12px; border-radius: 24px 24px 0 0; background: linear-gradient(170deg, color-mix(in srgb, var(--mc) 70%, #000), transparent); }
.lvhead small { color: rgba(255,255,255,.8); font-weight: 800; font-size: 12px; }
.lvhead h3 { font-size: 30px; }
.pstars { color: var(--gold2); font-size: 22px; letter-spacing: 2px; }
.gboost { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.1); border: 2px solid transparent; font-weight: 900; text-align: left; }
.gboost small { margin-left: auto; color: var(--gold2); font-size: 12px; }
.gboost i { font-style: normal; opacity: 0; color: var(--ok); }
.gboost.on { border-color: var(--gold); background: rgba(242,181,29,.15); }
.gboost.on i { opacity: 1; }
.gres { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 10px 4px; }
.gres h2 { margin: 0; font-size: clamp(28px, 8vw, 40px); font-weight: 900; color: var(--gold2); text-shadow: 0 3px 0 rgba(0,0,0,.3); }
.gres.lose h2 { color: #ffb0c2; }
.rstars { display: flex; gap: 6px; }
.rstars span { font-size: 58px; line-height: 1; color: rgba(255,255,255,.18); }
.rstars span.on { color: var(--gold2); text-shadow: 0 0 20px rgba(255,210,90,.8); animation: gstar .5s cubic-bezier(.2,1.6,.4,1) both; animation-delay: var(--d); }
.rstars span:nth-child(2) { font-size: 72px; margin-top: -12px; }
@keyframes gstar { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
.rscore { margin: 0; font-weight: 900; font-size: 16px; }
.rscore small { color: var(--mute); font-weight: 700; }
.rcoins { font-size: 44px; font-weight: 900; color: var(--gold2); animation: gstar .6s cubic-bezier(.2,1.6,.4,1) both; animation-delay: 1s; }
.rcoins span { font-size: 18px; }
.rbtns { width: min(420px, 100%); display: grid; gap: 8px; margin-top: 6px; }
.gres #gm-ad { width: min(420px, 100%); }
.gscroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px; }
.gscroll h4 { margin: 6px 0 0; font-size: 14px; font-weight: 900; color: var(--gold2); }
.cme { --mc: #3ec6ff; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--mc) 30%, rgba(0,0,0,.3)); font-size: 14px; }
.cbars { display: grid; gap: 6px; }
.cbar { --mc: #3ec6ff; position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.07); overflow: hidden; font-size: 13px; font-weight: 800; }
.cbar i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--mc) 45%, transparent); z-index: 0; }
.cbar span, .cbar b { position: relative; z-index: 1; }
.cbar.me { outline: 2px solid #fff; }
.ctop { margin: 0; padding: 0 0 0 22px; display: grid; gap: 4px; font-size: 13px; }
.ctop li { display: flex; gap: 8px; }
.ctop li span { color: var(--mute); flex: 1; }
.ctop li em { font-style: normal; font-weight: 900; color: var(--gold2); }
.bshop { display: grid; gap: 8px; }
.bitem { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.08); }
.bitem .bic { font-size: 28px; }
.bitem div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bitem small { color: var(--mute); font-size: 11.5px; }
.bitem em { font-style: normal; font-weight: 900; color: var(--gold2); }
.bitem .gbtn2 { width: auto; padding: 9px 12px; }
body.adplaying .gamefs { visibility: hidden; }
@media (max-height: 640px) { .gtools .gtool { padding: 5px 4px; font-size: 18px; } .gmoves b { font-size: 22px; } .gplay { padding: 11px; } .gbst { padding: 6px 8px; } .gbst span { font-size: 20px; } }
@media (min-width: 900px) { .gwrap { padding-top: 18px; padding-bottom: 18px; } }
.tgmain { display: flex; flex-direction: column; gap: 3px; width: 100%; margin: 6px 0 4px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(160deg, #37bdf8, #1e88d6); color: #fff; text-align: left; box-shadow: 0 6px 18px rgba(30,136,214,.35); }
.tgmain b { font-size: 16px; font-weight: 900; }
.tgmain small { font-size: 12px; opacity: .9; }
/* ── "Ajoyib mahalla" 2: O'zbekiston xaritasi, tumanlar yo'li, bezaklar ── */
.gamefs::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(circle at 20% 30%, rgba(255,220,140,.12) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(140,220,255,.12) 0 2px, transparent 3px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1.5'%3E%3Cpath d='M32 4l8 20 20 8-20 8-8 20-8-20-20-8 20-8z'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3C/g%3E%3C/svg%3E"); background-size: 180px 180px, 240px 240px, 64px 64px; animation: gbgdrift 40s linear infinite; }
@keyframes gbgdrift { to { background-position: 180px 360px, -240px 240px, 64px 64px; } }
.gwrap { position: relative; z-index: 1; }
.gtop h2 .tsub { font-size: 12px; font-weight: 800; color: var(--gold2); background: rgba(0,0,0,.3); padding: 2px 7px; border-radius: 99px; vertical-align: middle; }
.uzmap { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 22px; background: radial-gradient(120% 90% at 50% 30%, rgba(80,160,220,.25), rgba(10,20,50,.35)); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 0 40px rgba(0,0,0,.35); overflow: hidden; }
.uzhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px 0; }
.uzhead b { font-size: 14px; font-weight: 900; }
.uzhead small { font-size: 11px; color: var(--mute); text-align: right; }
.uzmap svg { flex: 1; min-height: 0; width: 100%; display: block; }
.uzmap .aral { fill: #4fc3ff; opacity: .55; }
.rg { cursor: pointer; transition: transform .2s; }
.rg path, .rg circle { fill: color-mix(in srgb, var(--mc) 35%, #2a2f4a); stroke: rgba(255,255,255,.85); stroke-width: 2.4; stroke-linejoin: round; }
.rg.lock path, .rg.lock circle { fill: #3a3f58; stroke: rgba(255,255,255,.35); }
.rg.done path, .rg.done circle { fill: var(--mc); }
.rg.open path, .rg.open circle { fill: color-mix(in srgb, var(--mc) 70%, #2a2f4a); }
.rg.cur path, .rg.cur circle { fill: var(--mc); stroke: #fff; stroke-width: 4; animation: rgcur 1.4s ease-in-out infinite; }
@keyframes rgcur { 50% { filter: brightness(1.3) drop-shadow(0 0 10px #fff); } }
.rg .tsh { fill: #ffd25a; stroke: none; }
.rl { pointer-events: none; text-anchor: middle; font-family: Montserrat, system-ui, sans-serif; font-weight: 900; paint-order: stroke; stroke: rgba(10,10,30,.75); stroke-width: 4px; stroke-linejoin: round; }
.rl .rn { fill: #fff; } .rl .rp { fill: #ffd25a; font-weight: 800; }
.rl.lock .rn { fill: rgba(255,255,255,.55); }
.pin { pointer-events: none; animation: gpin 1.2s ease-in-out infinite; }
.pin path { fill: #ff4d6d; stroke: #fff; stroke-width: 3; }
.pin circle { fill: #fff; }
@keyframes gpin { 50% { transform: translateY(-6px); } }
.gpin, .pin { transform-box: fill-box; }
.gplay small { display: block; font-size: 11px; font-weight: 800; opacity: .75; }
.rhead { --mc: #3ec6ff; flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--mc) 45%, transparent), rgba(0,0,0,.2)); }
.rhead svg { width: 84px; height: 56px; flex: none; }
.rhead svg path, .rhead svg circle { fill: var(--mc); stroke: #fff; stroke-width: 6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rhead b { display: block; font-size: 17px; font-weight: 900; }
.rhead small { color: var(--mute); font-size: 12px; }
.dpath { --mc: #3ec6ff; flex: 1; min-height: 0; overflow-y: auto; padding: 14px 6px 30px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: none; background: linear-gradient(90deg, transparent 49%, color-mix(in srgb, var(--mc) 25%, transparent) 49.5% 50.5%, transparent 51%); }
.dpath::-webkit-scrollbar { display: none; }
.dnode { display: flex; align-items: center; gap: 10px; min-height: 76px; }
.dnode.l { padding-left: 4%; } .dnode.c { padding-left: calc(50% - 32px); } .dnode.r { padding-left: calc(92% - 64px); flex-direction: row-reverse; justify-content: flex-start; padding-left: 0; padding-right: 4%; }
.dname { font-size: 13px; font-weight: 900; text-shadow: 0 2px 0 rgba(0,0,0,.35); max-width: 42%; }
.dv { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, var(--mc) 38%, color-mix(in srgb, var(--mc) 55%, #000) 100%); box-shadow: 0 5px 0 color-mix(in srgb, var(--mc) 45%, #000), 0 8px 18px rgba(0,0,0,.4); display: grid; place-items: center; }
.dv b { font-size: 22px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.dv em { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; color: var(--gold2); white-space: nowrap; letter-spacing: -1px; }
.dv.boss { width: 74px; height: 74px; box-shadow: 0 5px 0 color-mix(in srgb, var(--mc) 45%, #000), 0 0 0 4px #ffd25a, 0 8px 22px rgba(0,0,0,.45); }
.dv.lock { background: rgba(255,255,255,.12); box-shadow: none; }
.dv.lock b { font-size: 18px; }
.dv.cur { animation: gcur 1.2s ease-in-out infinite; outline: 3px solid #fff; outline-offset: 4px; }
.gboard canvas { border: 3px solid transparent; background: linear-gradient(rgba(20,10,40,.55), rgba(20,10,40,.55)) padding-box, linear-gradient(135deg, #ffd25a, #ff6fae 35%, #3fd3ff 70%, #ffd25a) border-box; box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.45), 0 0 30px color-mix(in srgb, var(--gt) 40%, transparent); }
.gchip { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.gmoves { background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.25)); }
/* haqiqiy xarita */
.uzsvg { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.uzsvg::-webkit-scrollbar { display: none; }
.uzsvg svg { width: 100%; height: auto; display: block; }
.uzmap .rg { stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.uzmap .rg, .rmap .dg, .rmap .dm { cursor: pointer; }
path.rg { fill: color-mix(in srgb, var(--mc) 35%, #2a2f4a); stroke: rgba(255,255,255,.9); stroke-linejoin: round; }
path.rg.lock { fill: #3a3f58; stroke: rgba(255,255,255,.4); }
path.rg.done { fill: var(--mc); }
path.rg.open { fill: color-mix(in srgb, var(--mc) 70%, #2a2f4a); }
path.rg.cur { fill: var(--mc); stroke: #fff; stroke-width: 3; animation: rgcur 1.4s ease-in-out infinite; }
.uzbox { fill: none; stroke: rgba(255,255,255,.55); stroke-dasharray: 5 4; stroke-width: 1.2; vector-effect: non-scaling-stroke; pointer-events: none; }
.uzinset { fill: rgba(10,20,50,.45); stroke: rgba(255,255,255,.35); stroke-width: 1.2; }
.uzcap { fill: rgba(255,255,255,.75); font: 900 15px Montserrat, system-ui, sans-serif; }
.rl text { stroke-width: 0.9px; }
.rmap { --mc: #3ec6ff; flex: 1; min-height: 0; border-radius: 22px; background: radial-gradient(120% 90% at 50% 30%, rgba(80,160,220,.22), rgba(10,20,50,.4)); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; padding: 6px; overflow: hidden; }
.rmap svg { width: 100%; height: 100%; display: block; }
.dg { fill: color-mix(in srgb, var(--mc) 55%, #2a2f4a); stroke: rgba(255,255,255,.85); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: filter .2s; }
.dg.lock { fill: #3a3f58; stroke: rgba(255,255,255,.35); }
.dg.done { fill: var(--mc); }
.dg.cur { fill: #fff6c8; animation: rgcur 1.4s ease-in-out infinite; }
.droute { fill: none; stroke: rgba(255,255,255,.7); stroke-linecap: round; pointer-events: none; }
.dm circle { fill: color-mix(in srgb, var(--mc) 80%, #000); stroke: #fff; }
.dm.lock circle { fill: #4a4f68; stroke: rgba(255,255,255,.5); }
.dm.cur circle { fill: #ff4d6d; }
.dm.boss circle { stroke: #ffd25a; }
.dm text { text-anchor: middle; font-family: Montserrat, system-ui, sans-serif; font-weight: 900; fill: #fff; pointer-events: none; }
.dm .ds { fill: #ffd25a; paint-order: stroke; stroke: rgba(0,0,0,.6); stroke-width: .25px; }
.dm .dn { fill: #fff; paint-order: stroke; stroke: rgba(20,10,40,.85); stroke-width: .35px; }
.dm.cur circle { animation: dmc 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dmc { 50% { transform: scale(1.18); } }
.gplay:disabled { opacity: .5; }

/* ── Ajoyib mahalla: yotiq telefon va past ekranlar — ikki ustun (chapda boshqaruv, o'ngda taxta yoki xarita) ── */
@media (orientation: landscape) and (max-height: 600px) {
  .gwrap { width: min(1100px, 100%); gap: 6px; }
  .gwrap[data-s="play"] { display: grid; column-gap: 14px; row-gap: 8px; align-content: stretch;
    grid-template-columns: minmax(0, 1fr) min(calc(100vh - 16px - var(--safe-t) - var(--safe-b)), 60vw);
    grid-template-columns: minmax(0, 1fr) min(calc(100dvh - 16px - var(--safe-t) - var(--safe-b)), 60vw);
    grid-template-rows: auto auto auto 1fr auto; grid-template-areas: "top board" "hud board" "meter board" ". board" "bar board"; }
  .gwrap[data-s="play"] > .gtop { grid-area: top; }
  .gwrap[data-s="play"] > .ghud { grid-area: hud; flex-wrap: wrap; }
  .gwrap[data-s="play"] > .gmeter { grid-area: meter; margin: 4px 12px 4px 4px; }
  .gwrap[data-s="play"] > .gboard { grid-area: board; min-height: 0; min-width: 0; }
  .gwrap[data-s="play"] > .gbar { grid-area: bar; flex-wrap: wrap; }
  .gwrap[data-s="play"] .gscore { flex: 1 1 100%; width: auto; display: flex; justify-content: center; align-items: baseline; gap: 8px; }
  .gwrap[data-s="map"], .gwrap[data-s="region"] { display: grid; column-gap: 14px; row-gap: 8px; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .gwrap[data-s="map"] { grid-template-rows: auto auto auto 1fr; grid-template-areas: "top map" "tools map" "cap map" "foot map"; }
  .gwrap[data-s="map"] > .gtop { grid-area: top; }
  .gwrap[data-s="map"] > .gtools { grid-area: tools; }
  .gwrap[data-s="map"] > .gcap, .gwrap[data-s="map"] > .gnote { grid-area: cap; }
  .gwrap[data-s="map"] > .uzmap { grid-area: map; min-height: 0; }
  .gwrap[data-s="map"] > .gfoot, .gwrap[data-s="region"] > .gfoot { grid-area: foot; align-self: end; }
  .gwrap[data-s="region"] { grid-template-rows: auto auto 1fr auto; grid-template-areas: "top map" "head map" "city map" "foot map"; }
  .gwrap[data-s="region"] > .rcity { grid-area: city; height: auto; min-height: 0; }
  .gwrap[data-s="region"] > .gtop { grid-area: top; }
  .gwrap[data-s="region"] > .rhead { grid-area: head; }
  .gwrap[data-s="region"] > .rmap { grid-area: map; min-height: 0; }
  .gpcard { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
}
/* juda tor ekranlar (Galaxy Fold yopiq va h.k.) */
@media (max-width: 330px) {
  .gwrap { padding-left: 6px; padding-right: 6px; gap: 6px; }
  .gtop h2 { font-size: 15px; }
  .gbar { gap: 6px; }
  .gbst { padding: 6px 7px; min-width: 0; }
  .gbst small { display: none; }
  .gscore { width: 64px; }
  .gmoves { width: 62px; }
}

/* ── Missiya xaritasi (js/gmap.js): haqiqiy xarita, yo'l, belgilar, sandiq, otkritka, ochilish animatsiyalari ── */
.uzmap { position: relative; }
.uzsvg { display: flex; }
.uzsvg svg { flex: 1; width: 100%; height: 100%; min-height: 0; }
.lmk { display: block; overflow: visible; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.lmk.off { filter: grayscale(1) brightness(.75); opacity: .5; }
.rl .lead { stroke: rgba(255,255,255,.6); stroke-width: 1.2; stroke-dasharray: 3 2; fill: none; }
.rl .rpp { fill: #9fe3ff; font-weight: 800; }
.rts .rt { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 3; stroke-dasharray: 7 6; stroke-linecap: round; pointer-events: none; }
.rts .rt.on { stroke: #ffd25a; stroke-dasharray: none; filter: drop-shadow(0 0 3px rgba(255,210,90,.7)); }
.rts .rt.draw { stroke-dasharray: calc(var(--len) * 1px); stroke-dashoffset: calc(var(--len) * 1px); animation: lnDraw .8s .35s ease-out forwards; }
@keyframes lnDraw { to { stroke-dashoffset: 0; } }
path.rg.unlocking { animation: rgUnlock 1.4s ease-out both, rgcur 1.4s 1.6s ease-in-out infinite; }
@keyframes rgUnlock { 0%, 55% { fill: #3a3f58; } 100% { fill: var(--mc); } }
.unl { pointer-events: none; }
.unl text { text-anchor: middle; transform-box: fill-box; transform-origin: center; animation: lockBreak .7s 1.2s ease-in forwards; }
.unl .ring { fill: none; stroke: #ffd25a; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ringOut .8s 1.35s ease-out forwards; }
@keyframes lockBreak { 30% { transform: scale(1.25) rotate(-12deg); } 60% { transform: scale(1.35) rotate(10deg); opacity: 1; } 100% { transform: scale(2.2) translateY(-30%); opacity: 0; } }
@keyframes ringOut { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3); } }
.pind.drop { animation: pinDrop .7s 1.7s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes pinDrop { 0% { transform: translateY(-60px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.pinw { pointer-events: none; }
/* viloyat va shahar xaritasi */
.rmap svg, .rcmap svg { width: 100%; height: 100%; display: block; }
.rmap { place-items: stretch; }
.dg { transition: fill .3s; }
.dg.city { stroke: rgba(255,240,200,.95); }
.gline { fill: none; stroke: rgba(255,255,255,.85); pointer-events: none; }
.dm .hit { fill: transparent; stroke: none; }
.dm.done circle:not(.hit) { fill: color-mix(in srgb, var(--mc) 75%, #000); }
.dm .dh { text-anchor: start; }
.dm .dp rect { fill: rgba(10,10,40,.8); stroke: rgba(160,220,255,.7); stroke-width: .5px; }
.dm .dp text { fill: #bfe9ff; font-weight: 800; text-anchor: middle; }
.droute .dseg { fill: none; stroke: rgba(255,255,255,.55); stroke-linecap: round; }
.droute .dseg.on { stroke: #ffd25a; }
.droute .dseg.draw { stroke-dashoffset: calc(var(--len) * 1px); animation: lnDraw .55s 1.2s ease-out forwards; }
.dm.just .ds { transform-box: fill-box; transform-origin: center; animation: starPop .5s 1.05s cubic-bezier(.3,1.8,.5,1) both; }
@keyframes starPop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.dm.fresh > circle:not(.hit), .dm.fresh > text:not(.dn) { transform-box: fill-box; transform-origin: center; animation: nodeIn .5s 1.75s cubic-bezier(.3,1.7,.5,1) both; }
@keyframes nodeIn { 0% { transform: scale(.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
/* sandiq */
.chestw { pointer-events: none; }
.chest .cb { fill: #9a5a2a; stroke: #4a2a10; stroke-width: 1; }
.chest .cg { fill: #ffd25a; }
.chest .cg2 { fill: none; stroke: #ffd25a; stroke-width: 2; }
.chest .lid { transform-box: view-box; transform-origin: -11px -6px; }
.chest.open .lid { transform: rotate(-38deg); }
.chest.open { filter: drop-shadow(0 0 5px rgba(255,210,90,.9)); }
.chestw.opening .lid { animation: lidOpen .6s 1.3s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes lidOpen { 0% { transform: none; } 100% { transform: rotate(-38deg); } }
/* sarlavha: belgi, sandiq yo'li, otkritka */
.rhead .lmk { flex: none; }
.rhead > div { flex: 1; min-width: 0; }
.rchest { position: relative; height: 16px; margin-top: 5px; border-radius: 999px; background: rgba(0,0,0,.3); overflow: hidden; }
.rchest i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ffb347, #ffe08a); border-radius: inherit; }
.rchest span { position: relative; display: block; padding: 0 8px; font-size: 10.5px; line-height: 16px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcb { width: 44px; height: 44px; font-size: 22px; }
.rcity, .ucity { flex: none; display: flex; flex-direction: column; border-radius: 18px; background: rgba(10,20,50,.4); border: 1px dashed rgba(255,255,255,.35); overflow: hidden; }
.rcity { height: 34%; min-height: 150px; }
.ucity { height: 40%; min-height: 150px; margin: 6px; }
.rcmap { flex: 1; min-height: 0; padding: 2px 4px 4px; }
.pcard { --mc: #3ec6ff; display: grid; justify-items: center; gap: 6px; padding: 16px 14px; border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--mc) 55%, #2a1550), #1d1645); border: 2px solid rgba(255,255,255,.25); box-shadow: inset 0 0 0 6px rgba(255,255,255,.06); }
.pcard .pcimg { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.25), rgba(255,255,255,.04)); }
.pcard small { color: var(--mute); font-weight: 800; }
.pcard h3 { margin: 0; }
.pcard p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.pcstat { font-weight: 900; color: var(--gold2); font-size: 13px; }
.gnote.hard { color: #ffb36b; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .rts .rt.draw, .droute .dseg.draw { animation-duration: .01s; } .unl text, .unl .ring, .pind.drop, .dm.fresh > circle, .dm.just .ds, path.rg.unlocking { animation-duration: .01s !important; animation-delay: 0s !important; } }
.leads .lead { stroke: rgba(255,255,255,.55); fill: none; pointer-events: none; }
.leads .leadd { fill: #fff; pointer-events: none; }

.uzsvg.pan { overflow-x: auto; overflow-y: hidden; align-items: center; scrollbar-width: none; }
.uzsvg.pan::-webkit-scrollbar { display: none; }
.dm circle.hit, .dm.lock circle.hit, .dm.boss circle.hit, .dm.done circle.hit, .dm.cur circle.hit { fill: transparent; stroke: none; animation: none; }
.uzsvg:not(.pan) { justify-content: center; align-items: center; overflow: hidden; }
span.gpriv { display: block; }
.gpriv a { color: inherit; }
.note.legal a { color: var(--teal); }
/* o'tish davri: Telegram orqali tasdiqlash eslatmasi */
.tgban { position: fixed; left: 50%; transform: translateX(-50%); top: calc(64px + var(--safe-t)); z-index: 30; width: min(560px, calc(100% - 20px)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: linear-gradient(135deg, #2b9be0, #1c5fa8); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.45); font-size: 12.5px; line-height: 1.4; animation: pop .3s ease; }
.tgban span { flex: 1; min-width: 0; }
.tgban .primary { flex: none; padding: 9px 12px; font-size: 13px; }
.tgban .x { flex: none; width: 30px; height: 30px; border-radius: 10px; background: rgba(0,0,0,.2); color: #fff; font-size: 18px; }
