/* ===== Onlayn v2.1: jonli avatarlar, ramkalar, toj, stikerlar, o'yin, chat, Yulduz yo'li, Kuch xaritasi, mavzular ===== */

[hidden] { display: none !important; }
/* tanga belgisi (Windows 10 shriftida 🪙 yo'q — anim.js matndagi 🪙 ni shu belgiga almashtiradi) */
.coin { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; border-radius: 50%; vertical-align: -.17em; font-style: normal;
  background: radial-gradient(circle at 34% 28%, #fff8d2 0 14%, transparent 15%), radial-gradient(circle, #ffd84d 0 54%, #e3a300 55% 63%, #ffcd38 64%);
  box-shadow: inset 0 -.07em 0 #b07d00, 0 .05em .12em rgba(0, 0, 0, .3); }
.coin::after { content: "T"; font: 900 .58em/1 var(--display, sans-serif); color: #a86f00; }

/* ---------- avatar: doira + «tiriklik» ---------- */
.avx { --s: 48px; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none;
  border-radius: 50%; background: radial-gradient(circle at 50% 35%, #fff, #e9edf8); isolation: isolate; }
.avx > img, .avx > .av-anim { width: 100%; height: 100%; border-radius: 50%; display: block; }
.avx > img { object-fit: cover; transform-origin: 50% 85%; }
.avx-sm { --s: 42px; } .avx-md { --s: 64px; } .avx-lg { --s: 84px; } .avx-xl { --s: 140px; }
.av-btn .avx { --s: 100%; width: 100%; height: 100%; }
/* 4 xil «nafas»: har avatar o'z harakati bilan — tirik ko'rinadi */
.idle-breathe { animation: av-breathe 3.4s ease-in-out infinite; }
.idle-sway { animation: av-sway 4.2s ease-in-out infinite; }
.idle-hop { animation: av-hop 5s cubic-bezier(.3, .7, .4, 1) infinite; }
.idle-tilt { animation: av-tilt 4.6s ease-in-out infinite; }
@keyframes av-breathe { 50% { transform: scale(1.045, .975) translateY(1%); } }
@keyframes av-sway { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes av-hop { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-9%) scale(.97, 1.04); } 86% { transform: translateY(0) scale(1.05, .95); } 92% { transform: translateY(-2%); } }
@keyframes av-tilt { 0%, 100% { transform: none; } 30% { transform: rotate(6deg) translateX(2%); } 55% { transform: rotate(-3deg); } }
.avx:hover > img { animation-duration: 1.2s; }
/* toj — ketma-ket 4 g'alaba */
/* 3D toj (Blender, animatsion WebP) — boshga biroz qiyshiq qo'yilgan; .avx > img qoidalarini bekor qiladi */
.avx > img.avx-crown { position: absolute; left: 50%; top: -36%; width: 66%; height: 66%; border-radius: 0; object-fit: contain; z-index: 3;
  transform: translateX(-50%) rotate(-10deg); transform-origin: 50% 50%; animation: crown-bob 3.2s ease-in-out infinite;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .28)); pointer-events: none; }
@keyframes crown-bob { 50% { transform: translateX(-50%) translateY(-4%) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .avx > img.avx-crown { animation: none; } }

/* ---------- ramkalar ---------- */
.avx.fr::before, .avx.fr::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; z-index: -1; pointer-events: none; }
.avx.fr::after { inset: -3%; background: #fff; z-index: -1; }
.fr-bronza::before { background: conic-gradient(#8a5a2b, #e3a46a, #a8693a, #f0c391, #8a5a2b); }
.fr-kumush::before { background: conic-gradient(#8e99ab, #f4f7fb, #a7b1c2, #ffffff, #8e99ab); animation: fr-spin 6s linear infinite; }
.fr-oltin::before { background: conic-gradient(#b8860b, #ffe08a, #d4a017, #fff3c4, #b8860b); animation: fr-spin 5s linear infinite; box-shadow: 0 0 14px rgba(240, 177, 58, .55); }
.fr-zumrad::before { background: conic-gradient(#0b7a52, #6ff2c0, #11a370, #c8ffe9, #0b7a52); animation: fr-spin 5s linear infinite; box-shadow: 0 0 14px rgba(31, 174, 122, .5); }
.fr-yoqut::before { background: conic-gradient(#8f0f2b, #ff6b8a, #c4163e, #ffd0da, #8f0f2b); animation: fr-spin 4.5s linear infinite; box-shadow: 0 0 16px rgba(217, 58, 85, .55); }
.fr-olmos::before { background: conic-gradient(#4cc3f0, #ffffff, #8fe3ff, #c5b3ff, #ffffff, #4cc3f0); animation: fr-spin 3.5s linear infinite; box-shadow: 0 0 22px rgba(76, 195, 240, .75); }
.fr-kamalak::before { background: conic-gradient(#ff5e5e, #ffb84d, #ffe94d, #5ee08a, #4db8ff, #9d6bff, #ff5e5e); animation: fr-spin 7s linear infinite; }
.fr-yulduzli::before { background: radial-gradient(circle at 20% 25%, #fff 0 4%, transparent 5%), radial-gradient(circle at 80% 30%, #fff 0 3%, transparent 4%),
  radial-gradient(circle at 70% 85%, #ffe9a8 0 4%, transparent 5%), radial-gradient(circle at 25% 80%, #fff 0 3%, transparent 4%), conic-gradient(#2b2f78, #6a5cff, #1c2050, #6a5cff, #2b2f78);
  animation: fr-spin 12s linear infinite; }
.fr-olovli::before { background: conic-gradient(from 0deg, #ff3d00, #ffb300, #ff6d00, #ffd54f, #ff3d00); animation: fr-spin 2.8s linear infinite, fr-flame 1.1s ease-in-out infinite alternate; }
.fr-afsona::before { inset: -13%; background: conic-gradient(#ff5e9c, #ffd36b, #5ef0c4, #6bb8ff, #b77bff, #ff5e9c); animation: fr-spin 3s linear infinite, fr-glow 2s ease-in-out infinite alternate; }
@keyframes fr-spin { to { transform: rotate(1turn); } }
@keyframes fr-flame { to { box-shadow: 0 -6px 22px rgba(255, 120, 0, .85), 0 0 10px rgba(255, 210, 0, .7); } }
@keyframes fr-glow { from { box-shadow: 0 0 10px rgba(255, 255, 255, .5); } to { box-shadow: 0 0 30px rgba(183, 123, 255, .9), 0 0 60px rgba(94, 240, 196, .35); } }

/* ---------- kabinet qo'shimchalari ---------- */
.cab-av .avx { box-shadow: var(--shadow); }
.cab-coins { font-weight: 900; font-size: 18px; color: var(--brass-dark); }
.cab-crown { color: #b8860b; font-weight: 900; }
.cab-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cab-act { border: 0; border-radius: 18px; padding: 14px; text-align: left; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: 12px;
  background: #f3f5fb; transition: transform .15s, box-shadow .15s; }
.cab-act span { grid-row: span 2; font-size: 30px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.cab-act b { font-family: var(--display); font-size: 15px; color: var(--ink); align-self: end; }
.cab-act small { color: var(--ink-soft); font-weight: 700; }
.cab-act:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.act-play { background: linear-gradient(135deg, #2b2f78, #4b55c9); } .act-play b, .act-play small { color: #fff; } .act-play small { opacity: .8; }
.pill-coin .ico { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .3)); }
.icon-btn { position: relative; }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ff3d57; color: #fff;
  font: 900 11px/18px var(--display, sans-serif); font-style: normal; box-shadow: 0 0 0 2px var(--night); }

/* ---------- onlayn o'yin ---------- */
.page-wrap.wide { max-width: 1400px; }
.ar-lobby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.ar-mecard { display: flex; gap: 20px; align-items: center; padding: 24px; }
.ar-nick { font-family: var(--display); font-size: 22px; display: block; overflow-wrap: anywhere; }
.ar-tier { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink-soft); margin: 6px 0; }
.ar-coins { font-weight: 900; color: var(--brass-dark); font-size: 18px; }
.ar-tcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 22px; }
.ar-tcs h3 { grid-column: 1 / -1; margin: 0; }
.ar-tc { border: 0; border-radius: 18px; padding: 16px 10px; background: #f3f5fb; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: .15s; }
.ar-tc span { font-size: 28px; } .ar-tc b { font-family: var(--display); font-size: 22px; color: var(--ink); } .ar-tc small { color: var(--ink-soft); font-weight: 700; text-align: center; }
.ar-tc.on { background: #fff6df; box-shadow: inset 0 0 0 3px var(--brass); }
.ar-find { grid-column: 1 / -1; font-size: 20px; }
.ar-search { text-align: center; padding: 34px; max-width: 620px; margin: 0 auto; }
.radar { position: relative; width: 220px; height: 220px; margin: 0 auto 10px; display: grid; place-items: center; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--brass); opacity: 0; animation: radar 2.4s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: .8s; } .radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar { from { transform: scale(.35); opacity: .9; } to { transform: scale(1); opacity: 0; } }
.ar-bot { font-weight: 800; color: var(--ink-soft); }
.ar-game { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; padding: 16px 24px; max-width: 1400px; margin: 0 auto; height: calc(100vh - 68px); box-sizing: border-box; }
.ar-board-wrap { display: grid; place-items: center; min-height: 0; }
.ar-board { position: relative; width: min(100%, calc(100vh - 110px)); aspect-ratio: 1; }
.ar-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ar-player { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px;
  background: var(--ivory); box-shadow: inset 0 0 0 2px var(--line), var(--shadow-sm); }
.ar-player.me { box-shadow: inset 0 0 0 2px var(--tc), var(--shadow-sm); }
.ar-player .avx-lg { --s: 70px; }
.ar-pinfo { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ar-pnick { font-family: var(--display); font-size: 16px; overflow-wrap: anywhere; }
.ar-pinfo small { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-weight: 800; flex-wrap: wrap; }
.ar-pinfo .tier-badge { width: 24px; height: 24px; font-size: 15px; }
.ar-off { color: #d6334a !important; }
.ar-clock { font: 800 26px/1 var(--display); padding: 10px 12px; border-radius: 14px; background: #eef1f8; color: var(--ink); min-width: 92px; text-align: center; font-variant-numeric: tabular-nums; }
.ar-clock.run { background: var(--night); color: #fff; box-shadow: 0 0 0 3px var(--brass); }
.ar-clock.low.run { background: #d6334a; animation: low 1s steps(2) infinite; }
@keyframes low { 50% { opacity: .75; } }
.ar-meta { display: flex; flex-direction: column; gap: 4px; padding: 0 6px; font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.ar-preview b { color: var(--ink); }
.ar-status { color: #b26b00; font-weight: 800; min-height: 1.2em; }
.ar-moves { flex: 1; min-height: 80px; overflow: auto; margin: 0; padding: 8px 10px 8px 34px; background: var(--ivory); border-radius: 16px; box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; }
.ar-moves li { display: grid; grid-template-columns: 1fr 1fr; padding: 2px 0; } .ar-moves li::marker { color: var(--ink-soft); }
.ar-controls { display: flex; gap: 8px; } .ar-controls .btn { flex: 1; padding: 10px 6px; }
.ar-resign[data-sure] { background: #ffd9de; color: #a3122a; }
.ar-drawbox { display: flex; gap: 8px; align-items: center; background: #fff6df; padding: 10px 12px; border-radius: 14px; font-weight: 800; }
.ar-drawbox span { flex: 1; }
.ar-emotes, .so-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; max-height: 210px; overflow: auto; padding: 8px;
  background: var(--ivory); border-radius: 16px; box-shadow: inset 0 0 0 2px var(--line); }
.emote-btn { position: relative; border: 0; background: #f3f5fb; border-radius: 14px; padding: 4px; aspect-ratio: 1; cursor: pointer; transition: transform .12s; }
.emote-btn:hover { transform: scale(1.1); background: #fff6df; }
.emote-btn.locked { opacity: .45; cursor: not-allowed; filter: grayscale(.7); }
.emote-btn i { position: absolute; right: 2px; bottom: 0; font-size: 12px; font-style: normal; }
.emote-btn .av-anim { width: 100%; height: 100%; display: block; }
/* stiker «pufagi»: o'yinchi kartasidan sakrab chiqadi */
.emote-pop { position: absolute; z-index: 20; right: 8px; top: calc(100% - 12px); width: 150px; display: flex; flex-direction: column; align-items: center;
  background: #fff; border-radius: 26px; padding: 8px 8px 10px; box-shadow: 0 18px 40px -12px rgba(28, 32, 80, .55), inset 0 0 0 3px var(--brass);
  animation: pop-in .45s cubic-bezier(.2, 1.6, .4, 1) both; pointer-events: none; }
.ar-player.me .emote-pop { top: auto; bottom: calc(100% - 12px); }
.emote-pop::after { content: ""; position: absolute; top: -10px; right: 34px; border: 10px solid transparent; border-bottom-color: #fff; border-top: 0; }
.ar-player.me .emote-pop::after { top: auto; bottom: -10px; border-bottom: 0; border-top: 10px solid #fff; }
.emote-pop .emote-anim { width: 118px; height: 118px; }
.emote-pop b { font-family: var(--display); font-size: 13px; color: var(--ink); }
.emote-pop.out { animation: pop-out .45s ease-in both; }
@keyframes pop-in { from { transform: scale(.2) translateY(30px); opacity: 0; } }
@keyframes pop-out { to { transform: scale(.6) translateY(-20px); opacity: 0; } }
.end-dialog { width: min(520px, 94vw); text-align: center; }
.end-head .end-emoji { font-size: 64px; line-height: 1; }
.end-head.s2 h2 { color: #14a876; } .end-head.s0 h2 { color: #d6334a; }
.end-gains { display: flex; justify-content: center; gap: 14px; margin: 14px 0; }
.end-gains > div { background: #f3f5fb; border-radius: 18px; padding: 12px 22px; font-size: 18px; font-weight: 900; }
.end-gains small { display: block; color: var(--ink-soft); font-size: 13px; }
.end-gains b { font: 800 32px var(--display); } .end-gains .up { color: #14a876; } .end-gains .down { color: #d6334a; }
.end-note { background: #fff6df; border-radius: 14px; padding: 10px 14px; font-weight: 800; }
.end-note.n-crown { background: linear-gradient(90deg, #fff1c2, #ffe08a); box-shadow: 0 0 0 2px #e2a72e; }
.ar-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 99; background: var(--night); color: #fff; padding: 12px 20px;
  border-radius: 16px; font-weight: 800; box-shadow: var(--shadow); animation: pop-in .3s both; max-width: 90vw; }
.ar-toast.out { animation: pop-out .4s both; }
/* guvohnoma */
.lic-intro, .lic-q { max-width: 640px; margin: 0 auto; text-align: center; padding: 28px; }
.lic-badge { font-size: 70px; }
.lic-board { width: min(440px, 80vw); aspect-ratio: 1; margin: 10px auto 0; position: relative; }
.lic-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.lic-progress i { width: 26px; height: 8px; border-radius: 9px; background: #e2e5f0; } .lic-progress i.done { background: var(--brass); } .lic-progress i.cur { background: var(--night); }
.lic-marks { display: flex; gap: 6px; justify-content: center; margin: 12px 0; }
.lic-marks i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; color: #fff; }
.lic-marks .ok { background: #14a876; } .lic-marks .no { background: #d6334a; }

/* ---------- do'stlar va chat ---------- */
.so-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; height: calc(100vh - 190px); min-height: 460px; }
.so-left { display: flex; flex-direction: column; gap: 10px; padding: 14px; min-height: 0; }
.so-add { display: flex; gap: 6px; } .so-add input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); }
.so-addmsg { margin: 0; min-height: 1.1em; font-weight: 800; font-size: 13px; } .so-addmsg.ok { color: #14a876; } .so-addmsg.err { color: #d6334a; }
.so-tabs button { position: relative; } .so-tabn { font-style: normal; color: #ff3d57; margin-left: 4px; }
.so-list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.so-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px;
  border: 0; background: none; text-align: left; padding: 8px; border-radius: 14px; cursor: pointer; width: 100%; }
.so-row > .avx { grid-row: span 2; }
.so-row:hover { background: #f3f5fb; } .so-row.on { background: #fff6df; }
.so-row-main { min-width: 0; display: flex; flex-direction: column; }
.so-row-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-row-main small { color: var(--ink-soft); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.so-prev { grid-column: 2; color: var(--ink-soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-unread { grid-column: 3; grid-row: 1 / span 2; background: #ff3d57; color: #fff; border-radius: 99px; min-width: 22px; padding: 2px 6px; text-align: center; font-style: normal; font-weight: 900; font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #c3c7d6; display: inline-block; } .dot.on { background: #14d07a; box-shadow: 0 0 0 3px rgba(20, 208, 122, .2); }
.so-req { grid-column: 3; grid-row: 1 / span 2; display: flex; gap: 4px; } .so-req .btn { padding: 6px 10px; }
.so-empty { padding: 20px 6px; text-align: center; }
.so-safety { margin: 0; font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.so-right { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(240, 177, 58, .07), transparent 40%), repeating-conic-gradient(#f7f4ec 0 25%, #fbf9f3 0 50%) 0 0 / 56px 56px; }
.so-pick { margin: auto; text-align: center; font-size: 60px; color: var(--ink-soft); } .so-pick p { font-size: 16px; font-weight: 800; }
.so-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ivory); box-shadow: 0 2px 0 var(--line); }
.so-acts { display: flex; gap: 6px; } .so-acts .btn { padding: 8px 12px; }
.so-msgs { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.so-msg { max-width: min(70%, 520px); align-self: flex-start; background: #fff; border-radius: 18px 18px 18px 6px; padding: 8px 12px 4px; box-shadow: 0 2px 6px -3px rgba(28, 32, 80, .3);
  display: flex; flex-direction: column; animation: msg-in .22s ease-out both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.so-msg.mine { align-self: flex-end; background: #dff3ff; border-radius: 18px 18px 6px 18px; }
.so-msg.stk { background: none; box-shadow: none; padding: 0; }
.so-msg time { align-self: flex-end; font-size: 11px; color: var(--ink-soft); font-weight: 700; }
.so-who { color: var(--t3); font-weight: 900; }
.so-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.so-sticker { width: 140px; height: 140px; cursor: pointer; }
.so-giftb { background: linear-gradient(135deg, #fff1c2, #ffd66b); border-radius: 14px; padding: 10px 16px; font-size: 22px; text-align: center; }
.so-giftb small { display: block; font-size: 13px; font-weight: 800; }
.so-compose { display: flex; gap: 8px; padding: 10px; background: var(--ivory); box-shadow: 0 -2px 0 var(--line); }
.so-compose input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 99px; border: 2px solid var(--line); }
.so-stickers { margin: 0 10px; }
.so-challenge { position: fixed; right: 20px; bottom: 20px; z-index: 98; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; width: 340px;
  padding: 14px; animation: pop-in .4s both; box-shadow: 0 0 0 3px var(--brass), var(--shadow); }
.so-challenge p { margin: 0; font-weight: 800; } .so-challenge .btn { grid-column: span 1; }
.online-dialog { width: min(560px, 94vw); }
.so-menu { display: flex; flex-direction: column; gap: 8px; }
.so-tcs, .so-quick { display: flex; gap: 8px; } .so-tcs .btn, .so-quick .btn { flex: 1; font-size: 18px; }
.so-gicon { display: flex; align-items: center; gap: 10px; } .so-gicon button { border: 0; cursor: pointer; padding: 0; }
.so-pickfr { display: flex; flex-wrap: wrap; gap: 6px; max-height: 200px; overflow: auto; }
.so-pickfr label { background: #f3f5fb; padding: 6px 10px; border-radius: 12px; font-weight: 800; cursor: pointer; }
.so-members { max-height: 280px; overflow: auto; } .so-own { grid-column: 3; color: var(--brass-dark); font-weight: 900; }
.so-rename { display: flex; gap: 6px; margin-bottom: 8px; } .so-rename input { flex: 1; font: inherit; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); }

/* ---------- Yulduz yo'li ---------- */
.rd-coins { margin-left: auto; font: 800 24px var(--display); color: var(--brass-dark); background: #fff6df; padding: 8px 16px; border-radius: 16px; }
.rd-tabs { max-width: 640px; margin-bottom: 16px; }
.rd-road { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column-reverse; gap: 12px; position: relative; }
.rd-road::before { content: ""; position: absolute; left: 92px; top: 0; bottom: 0; width: 6px; border-radius: 9px; background: linear-gradient(#4cc3f0, #d93a55, #1fae7a, #e2a72e, #9aa6b8, #b07a4f); opacity: .35; }
.rd-node { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; align-items: center; position: relative; }
.rd-step { position: relative; z-index: 1; background: var(--ivory); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: inset 0 0 0 2px var(--line), var(--shadow-sm); }
.rd-step b { font-family: var(--display); font-size: 15px; } .rd-step small { color: var(--ink-soft); font-weight: 800; } .rd-step em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--ink-soft); }
.rd-step .cab-bar { width: 100%; height: 8px; }
.rd-node.done .rd-step { box-shadow: inset 0 0 0 2px var(--tc), var(--shadow-sm); } .rd-node.done .rd-step em { color: #14a876; }
.rd-node.next .rd-step { box-shadow: inset 0 0 0 3px var(--brass), 0 0 0 6px rgba(240, 177, 58, .2); }
.rd-node.lock { opacity: .78; } .rd-node.lock .rd-gifts { filter: saturate(.55); }
.rd-here { position: absolute; top: -12px; background: var(--night); color: #fff; font-style: normal; font-weight: 900; font-size: 11px; padding: 2px 10px; border-radius: 99px; }
.rd-gifts { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; border-radius: 20px; background: linear-gradient(90deg, rgba(255, 255, 255, .8), transparent); }
.rd-node.t5 .rd-gifts { background: linear-gradient(90deg, rgba(76, 195, 240, .16), rgba(183, 123, 255, .1)); box-shadow: inset 0 0 0 2px rgba(76, 195, 240, .3); }
.rd-node.t4 .rd-gifts { background: linear-gradient(90deg, rgba(217, 58, 85, .1), transparent); }
.rd-gift { width: 92px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.rd-gift small { font-size: 12px; font-weight: 800; color: var(--ink-soft); line-height: 1.15; }
.rd-pv { width: 64px; height: 64px; display: block; }
.th-thumb { border-radius: 14px; background: center / cover no-repeat, linear-gradient(135deg, #2b2f78, #f0b13a); box-shadow: var(--shadow-sm); }
.rd-card .th-thumb { width: 120px; height: 80px; }
.rd-kinds { margin-bottom: 10px; max-width: 640px; }
.rd-rules { font-size: 14px; line-height: 1.5; background: #f3f5fb; padding: 12px 14px; border-radius: 14px; }
.rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.rd-card { background: var(--ivory); border-radius: 20px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; box-shadow: inset 0 0 0 2px var(--line); }
.rd-card.on { box-shadow: inset 0 0 0 3px var(--brass); }
.rd-card .rd-pv { width: 84px; height: 84px; }
.rd-only { color: var(--ink-soft); font-weight: 800; font-size: 12px; }
.rd-quests { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rd-quest { display: flex; flex-direction: column; gap: 8px; padding: 16px; } .rd-quest.done { box-shadow: inset 0 0 0 2px #14a876; }
.rd-quest em { color: #14a876; font-style: normal; font-weight: 900; }
.rd-hist { list-style: none; padding: 0; margin: 0; max-width: 640px; }
.rd-hist li { display: grid; grid-template-columns: 1fr auto 70px; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
.rd-hist time { color: var(--ink-soft); font-size: 13px; } .rd-hist b { text-align: right; } .rd-hist .up { color: #14a876; } .rd-hist .down { color: #d6334a; }

/* ---------- Kuch xaritasi (radar) ---------- */
.viz { --series-1: #2a78d6; --series-2: #eb6834; }
.sk-grid { --series-1: #2a78d6; --series-2: #eb6834; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sk-chart { padding: 18px; } .sk-table { grid-column: 1 / -1; }
.sk-legend { display: flex; gap: 18px; font-weight: 800; color: var(--ink-soft); }
.sk-legend span, .sk-tip span { display: inline-flex; align-items: center; gap: 6px; }
.sk-legend i, .sk-tip i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.s1 i { background: var(--series-1); } .s2 i { background: var(--series-2); }
.sk-plot { position: relative; }
.sk-radar { width: 100%; height: auto; display: block; font-family: var(--display); overflow: visible; }
.sk-ring { fill: none; stroke: #e2e5f0; stroke-width: 1; } .sk-spoke { stroke: #e2e5f0; stroke-width: 1; }
.sk-tick { font-size: 10px; fill: #8a8fae; font-family: "Nunito", sans-serif; font-weight: 800; }
.sk-lbl { font-size: 13px; font-weight: 600; fill: var(--ink); }
.sk-area { stroke-width: 2; stroke-linejoin: round; }
.sk-area.s1 { fill: color-mix(in srgb, var(--series-1) 18%, transparent); stroke: var(--series-1); }
.sk-area.s2 { fill: color-mix(in srgb, var(--series-2) 16%, transparent); stroke: var(--series-2); }
.sk-dot { stroke: var(--ivory); stroke-width: 2; } .sk-dot.s1 { fill: var(--series-1); } .sk-dot.s2 { fill: var(--series-2); }
.sk-hit { fill: transparent; cursor: pointer; } .sk-hit.on { fill: rgba(43, 47, 120, .05); }
.sk-tip { position: absolute; z-index: 5; pointer-events: none; background: #fff; border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; font-weight: 700; min-width: 150px; }
.sk-status { text-align: center; margin: 6px 0 0; }
.sk-side { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.sk-hl { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 12px 14px; border-radius: 16px; background: #f3f5fb; }
.sk-hl small { grid-column: 1 / -1; color: var(--ink-soft); font-weight: 800; } .sk-hl b { font-family: var(--display); font-size: 17px; } .sk-hl span { font: 800 26px var(--display); }
.sk-hl.good { box-shadow: inset 4px 0 0 #14a876; } .sk-hl.weak { box-shadow: inset 4px 0 0 #e2a72e; }
.sk-recs { display: flex; flex-direction: column; gap: 8px; }
.sk-rec { border: 0; text-align: left; background: #fff6df; border-radius: 16px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: transform .15s; }
.sk-rec:hover { transform: translateX(4px); } .sk-rec small { color: var(--ink-soft); font-weight: 700; } .sk-rec span { font-weight: 800; } .sk-rec em { font-style: normal; color: var(--brass-dark); font-weight: 900; align-self: flex-end; }
.sk-table table { width: 100%; border-collapse: collapse; } .sk-table th, .sk-table td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.sk-table td { width: 38%; } .sk-table td b { margin-left: 8px; font-variant-numeric: tabular-nums; }
.sk-bar { display: inline-block; width: calc(100% - 48px); height: 10px; border-radius: 4px; background: #eef1f8; vertical-align: middle; overflow: hidden; }
.sk-bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; } .sk-bar.s1 i { background: var(--series-1); } .sk-bar.s2 i { background: var(--series-2); }
.sk-table th.s1 { color: var(--series-1); } .sk-table th.s2 { color: #c4521f; }

/* ---------- doska mavzulari (themes.js) ---------- */
body:not([data-theme="klassik"])[data-theme] #screen-arena, body:not([data-theme="klassik"])[data-theme] #screen-play,
body:not([data-theme="klassik"])[data-theme] #screen-practice, body:not([data-theme="klassik"])[data-theme] #screen-lesson {
  background: var(--theme-bg) center / cover no-repeat fixed, var(--night); }
body:not([data-theme="klassik"])[data-theme] .board .sq.l { background: var(--sq-light-img) center / cover, #cfd5e2; background-blend-mode: multiply; }   /* oq figuralar ochiq katakda ham ajralib tursin */
body:not([data-theme="klassik"])[data-theme] .board .sq.d { background: var(--sq-dark-img) center / cover, var(--sq-dark); }
body:not([data-theme="klassik"])[data-theme] .board-frame { background: rgba(10, 12, 30, .55); backdrop-filter: blur(6px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 0 0 2px rgba(255, 255, 255, .18); }
body:not([data-theme="klassik"])[data-theme] .piece { filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .45)); background-size: 116% 116%; background-position: 50% 75%; }
body:not([data-theme="klassik"])[data-theme] :is(#screen-arena, #screen-play, #screen-practice, #screen-lesson) :is(h1, h2, .page-head p, .lesson-kicker) { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
body:not([data-theme="klassik"])[data-theme] :is(#screen-arena, #screen-play, #screen-practice, #screen-lesson) .btn-ghost { background: rgba(255, 255, 255, .85); }

@media (max-width: 1000px) {
  .ar-game { grid-template-columns: 1fr; height: auto; } .ar-board { width: min(100%, 92vw); }
  .ar-lobby, .sk-grid { grid-template-columns: 1fr; } .so-wrap { grid-template-columns: 1fr; height: auto; } .so-right { min-height: 520px; }
  .rd-node { grid-template-columns: 130px minmax(0, 1fr); } .rd-road::before { left: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .avx > img, .avx::before, .radar i, .emote-pop { animation: none !important; }
}

/* ---------- 3D daraja belgilari (Blender: tools/blender/assets.py badges) ---------- */
.tier-badge { background: center / 118% no-repeat !important; box-shadow: none !important; color: transparent !important; text-shadow: none !important; overflow: hidden; }
.tier-badge.t0 { background-image: url(../img/tiers/tier0.webp) !important; } .tier-badge.t1 { background-image: url(../img/tiers/tier1.webp) !important; }
.tier-badge.t2 { background-image: url(../img/tiers/tier2.webp) !important; } .tier-badge.t3 { background-image: url(../img/tiers/tier3.webp) !important; }
.tier-badge.t4 { background-image: url(../img/tiers/tier4.webp) !important; } .tier-badge.t5 { background-image: url(../img/tiers/tier5.webp) !important; }
.tier-badge.t5 { animation: tier-glow 2.6s ease-in-out infinite !important; }
@keyframes tier-glow { 50% { filter: drop-shadow(0 0 8px rgba(76, 195, 240, .9)); } }
.rd-card .rd-pv.th-thumb, .rd-gift .rd-pv.th-thumb { width: 140px; height: 79px; border-radius: 12px; }
.rd-gift:has(.th-thumb) { width: 148px; }      /* mavzu kartochkasi 92 px katakdan chiqib ketardi */

/* bosh sahifa: onlayn o'yin tugmasi (oltin-indigo, ko'zga tashlanadi) */
.hero-buttons .btn-online { background: linear-gradient(135deg, #4b55c9, #2b2f78); color: #fff; box-shadow: 0 4px 0 #1c2050, 0 0 0 3px rgba(240, 177, 58, .55); }
.hero-buttons .btn-online span:first-child { color: var(--brass); }

/* 3D jonli avatarlar: yumshoq rangli sahna */
.avx > img.av-3d { object-fit: contain; background: radial-gradient(circle at 50% 40%, #ffffff 0 35%, #dfe7ff 70%, #c9d6f7); }
/* v2.2 ramkalari */
.fr-okean::before { background: conic-gradient(#0a3d91, #2fb6ff, #7ff3ff, #1565c0, #0a3d91); animation: fr-spin 6s linear infinite; }
.fr-ormon::before { background: conic-gradient(#1b5e20, #7bd66b, #2e7d32, #c5f2a6, #1b5e20); animation: fr-spin 8s linear infinite; }
.fr-shokolad::before { background: conic-gradient(#3e2112, #9c5b2e, #5d3218, #d8a273, #3e2112); }
.fr-qor::before { background: radial-gradient(circle at 25% 20%, #fff 0 5%, transparent 6%), radial-gradient(circle at 75% 70%, #fff 0 4%, transparent 5%), conic-gradient(#b8d8ff, #ffffff, #d6e9ff, #ffffff, #b8d8ff); animation: fr-spin 10s linear infinite; }
.fr-neon::before { background: conic-gradient(#00f0ff, #ff00e5, #00f0ff, #ff00e5, #00f0ff); animation: fr-spin 2.5s linear infinite; box-shadow: 0 0 18px rgba(255, 0, 229, .6); }
.fr-quyosh::before { background: repeating-conic-gradient(#ffb300 0 8deg, #fff176 8deg 16deg); animation: fr-spin 9s linear infinite; box-shadow: 0 0 16px rgba(255, 179, 0, .6); }
