/* ===== v3: premium yon panel (Maktab / Onlayn), onlayn markaz. Penpot maketi: «Toychoq dizayn tizimi» ===== */
:root { --nav-w: 252px; }
body { padding-left: var(--nav-w); }
.screen { height: 100vh; }
body.arena-on { padding-left: 0; }
body.arena-on .sidenav { display: none; }
.board-host { --size: min(calc(100vh - 60px), calc(100vw - var(--nav-w) - var(--side, 430px) - 110px)); }
body.arena-on .board-host { --size: min(calc(100vh - 60px), calc(100vw - var(--side, 430px) - 110px)); }
.ar-game { height: 100vh; }
.ico-l { width: 20px; height: 20px; display: block; flex: none; }

/* ---------- yon panel ---------- */
.sidenav { position: fixed; inset: 0 auto 0 0; width: var(--nav-w); z-index: 40; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 14px 14px; box-sizing: border-box; overflow-y: auto; overflow-x: hidden; color: #d7daf5;
  background: radial-gradient(120% 60% at 0% 0%, rgba(110, 118, 255, .28), transparent 60%), linear-gradient(180deg, #262a74, #12153a);
  box-shadow: 8px 0 30px -18px rgba(18, 21, 58, .6); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.sidenav .brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 14px; color: #fff; border: 0; background: none; cursor: pointer; text-align: left; }
.sidenav .brand-mascot { width: 46px; height: 46px; padding: 3px; border-radius: 14px; background: linear-gradient(160deg, #4a50c8, #2c3091); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.sidenav .brand-text b { display: block; font: 800 20px/1.1 var(--display); color: #fff; letter-spacing: 0; }
.sidenav .brand-text small { display: block; color: #aab0e0; font-size: 12.5px; font-weight: 800; margin-top: 2px; }
.sn-group { display: flex; flex-direction: column; gap: 3px; padding-top: 8px; }
.sn-group h6 { margin: 4px 14px 6px; font: 900 11.5px/1 var(--body, "Nunito"), sans-serif; letter-spacing: .12em; color: #7f86c4; text-transform: uppercase; }
.sn-item { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 14px; border: 0; border-radius: 13px; background: none;
  color: #d7daf5; font: 800 15.5px/1.2 "Nunito", sans-serif; text-align: left; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.sn-item > span:not(.badge) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sn-item:active { transform: scale(.98); }
.sn-item.on { background: rgba(240, 177, 58, .16); color: #ffd57a; }
.sn-item.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brass); }
.sn-item:focus-visible, .sn-profile:focus-visible, .sidenav .brand:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.sn-live { font-style: normal; font-size: 12.5px; font-weight: 900; color: #8ef0c3; display: inline-flex; align-items: center; gap: 5px; }
.sn-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ee6a0; box-shadow: 0 0 0 3px rgba(62, 230, 160, .18); }
.sn-item .badge { position: static; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #ff3d57; color: #fff; font: 900 12px/20px "Nunito", sans-serif; text-align: center; font-style: normal; }
.sn-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.sn-stats { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 4px; }
.sn-stats .pill { padding: 5px 11px; font-size: 13.5px; }
.sn-profile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 18px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: #fff; transition: background .15s; }
.sn-profile:hover, .sn-profile.on { background: rgba(255, 255, 255, .14); }
.sn-profile .avx { --s: 48px; margin-top: 6px; }
.sn-profile .avx > img.avx-crown { top: -40%; }
.sn-guest { display: grid; place-items: center; font-size: 24px; background: rgba(255, 255, 255, .12) !important; }
.sn-who { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sn-who b { font: 900 16px/1.2 "Nunito", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-who small { display: flex; align-items: center; gap: 5px; color: #c9cdf0; font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.sn-who .tier-badge { width: 20px; height: 20px; font-size: 0; box-shadow: none; }
.sn-tools { display: flex; gap: 8px; align-items: center; }
.sn-tools .lang-toggle { flex: 1; display: flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.sn-tools .lang-toggle button { flex: 1; padding: 7px 0; border-radius: 9px; font-weight: 900; }
.sn-tools .icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #d7daf5; box-shadow: none; font-size: 17px; }
.sn-tools .icon-btn:hover { background: rgba(255, 255, 255, .14); }

/* tor oyna: faqat ikonkalar (sarlavhalar title orqali ko'rinadi) */
@media (max-width: 1180px) {
  :root { --nav-w: 78px; }
  .sidenav { padding: 14px 10px; align-items: stretch; }
  .sidenav .brand { justify-content: center; padding: 2px 0 10px; }
  .sidenav .brand-text, .sn-group h6, .sn-item > span:not(.badge), .sn-live, .sn-who, .sn-stats { display: none; }
  .sn-group h6 { display: block; height: 1px; margin: 6px 10px; overflow: hidden; color: transparent; background: rgba(255, 255, 255, .12); }
  .sn-item { justify-content: center; padding: 12px 0; }
  .sn-item .badge { position: absolute; top: 4px; right: 6px; }
  .sn-profile { justify-content: center; padding: 8px 0; }
  .sn-tools { flex-direction: column; }
  .sn-tools .lang-toggle { width: 100%; }
  .sn-tools .lang-toggle button:not(.on) { display: none; }      /* faqat joriy til; bosilsa ikkinchisiga o'tadi (main.js) */
  .sn-tools .icon-btn { width: 100%; }
}
@media print { .sidenav { display: none !important; } body { padding-left: 0 !important; } }

/* ---------- onlayn markaz (arena vestibyuli) ---------- */
.hub { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.hub-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hub .card { margin: 0; }
.hub-me { display: flex; gap: 26px; align-items: center; padding: 30px 30px 26px; }
.hub-me .avx { margin-top: 18px; }
.hub-me-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hub-me-info .ar-nick { font: 800 26px/1.1 var(--display); overflow-wrap: anywhere; }
.hub-tier { display: flex; align-items: center; gap: 12px; }
.hub-tier .tier-badge { width: 50px; height: 50px; font-size: 0; }
.hub-tier b { font: 800 19px/1.1 var(--display); display: block; }
.hub-tier small { color: var(--brass-dark); font-weight: 900; }
.hub-me .cab-bar { height: 10px; }
.hub-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hub-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: #f3f5fb; font-weight: 900; font-size: 13.5px; color: var(--ink-soft); }
.hub-chip .ico-l { width: 16px; height: 16px; }
.hub-chip.good { color: #14a876; } .hub-chip.hot { color: #e8590c; }
.hub-play { padding: 28px; border-radius: 28px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, rgba(120, 130, 255, .45), transparent 60%), linear-gradient(140deg, #22266e, #3b3fb8);
  box-shadow: 0 24px 50px -24px rgba(28, 32, 110, .7); }
.hub-play h3 { margin: 0 0 16px; font: 800 19px/1.2 var(--display); color: #fff; }
.hub-tcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hub-tc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 14px; border: 0; border-radius: 20px; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .15s, transform .15s; }
.hub-tc:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.hub-tc.on { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 2px var(--brass); }
.hub-tc .ico-l { width: 26px; height: 26px; color: #c9cdf0; } .hub-tc.on .ico-l { color: #ffd57a; }
.hub-tc b { font: 800 22px/1.1 var(--display); }
.hub-tc small { color: #c9cdf0; font-weight: 800; font-size: 12.5px; }
.hub-find { width: 100%; margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.hub-find .ico-l { width: 24px; height: 24px; }
.hub-play-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; color: #c9cdf0; font-weight: 800; font-size: 13.5px; flex-wrap: wrap; }
.hub-link { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: #ffd57a; font: 900 14px "Nunito", sans-serif; cursor: pointer; padding: 4px; border-radius: 8px; }
.hub-link .ico-l { width: 18px; height: 18px; }
.hub-card { padding: 22px 24px; }
.hub-card h3 { margin: 0 0 12px; font: 800 18px/1.2 var(--display); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hub-card h3 button { border: 0; background: none; color: #4b4fd8; font: 900 14px "Nunito", sans-serif; cursor: pointer; }
.hub-empty { color: var(--ink-soft); font-weight: 800; font-size: 14px; margin: 4px 0; }
.hub-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.hub-row + .hub-row { border-top: 1px solid var(--line); }
.hub-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hub-row-main b { font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-row-main small { color: var(--ink-soft); font-weight: 800; font-size: 12.5px; }
.hub-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #14a876; margin-right: 4px; }
.hub-dot.busy { background: #e8590c; }
.hub-ch { width: 44px; height: 38px; border-radius: 12px; border: 0; display: grid; place-items: center; cursor: pointer; background: #ece9ff; color: #4b4fd8; transition: transform .15s; }
.hub-ch:hover { transform: scale(1.06); } .hub-ch:disabled { opacity: .4; cursor: default; transform: none; }
.hub-res { padding: 4px 11px; border-radius: 99px; font-weight: 900; font-size: 13px; white-space: nowrap; }
.hub-res.w { background: #e6f8ef; color: #14a876; } .hub-res.d { background: #f0f2f8; color: var(--ink-soft); } .hub-res.l { background: #fde8eb; color: #d6334a; }
.hub-q { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 12px; align-items: center; padding: 8px 0; }
.hub-q > i { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff6df; color: var(--brass-dark); }
.hub-q.done > i { background: #e6f8ef; color: #14a876; }
.hub-q b { font-weight: 900; font-size: 14px; } .hub-q em { font-style: normal; font-weight: 900; color: var(--brass-dark); grid-row: span 2; }
.hub-q .cab-bar { height: 6px; }
.hub-road { background: linear-gradient(135deg, #fff6df, #ffe7b0); display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.hub-road p { margin: 0; color: #7a5200; font-weight: 800; font-size: 13.5px; }
.hub-road .tier-badge { width: 88px; height: 88px; font-size: 0; grid-row: span 3; }
.hub-road .cab-bar { background: #fff; }
.hub-road .btn { justify-self: start; }
@media (max-width: 1100px) { .hub { grid-template-columns: 1fr; } }

/* ---------- bosh sahifa: salomlashish, «Davom etish», onlayn kartasi, tezkor plitkalar ---------- */
.home-head, .home-top, .home-tiles { max-width: 1240px; margin-left: auto; margin-right: auto; padding: 0 32px; box-sizing: border-box; }
.home-head { padding-top: 30px; margin-bottom: 18px; }
.home-head h1 { margin: 0; font: 800 30px/1.15 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.home-head p { margin: 6px 0 0; color: var(--ink-soft); font-weight: 700; font-size: 15.5px; max-width: 760px; }
.home-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; }
.home-top .hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; max-width: none; margin: 0; padding: 30px 30px 30px 34px; min-height: 260px; }
.home-top .hero::after { left: auto; right: -10%; width: 52%; }
.hero-text { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-kicker { color: #ffd57a; font-weight: 900; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.hero-text h2 { margin: 0; color: #fff; font: 800 clamp(22px, 2.2vw, 30px)/1.15 var(--display); overflow-wrap: anywhere; }
.hero-prog { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; max-width: 420px; }
.hero-prog i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brass), #ffd77e); transition: width .6s; }
.hero-meta { margin: 0; color: #c9cdf0; font-weight: 800; font-size: 14px; }
.home-top .hero-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.home-top .hero-buttons .btn { display: inline-flex; align-items: center; gap: 10px; }
.btn-glass { background: rgba(255, 255, 255, .14) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18) !important; }
.home-top .hero-mascot img, .home-top .hero-mascot svg { width: 180px; height: 180px; }
.home-online { margin: 0; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.home-online-head { display: flex; gap: 14px; align-items: center; }
.home-online h3 { margin: 0; font: 800 20px/1.2 var(--display); }
.home-online-head p { margin: 3px 0 0; color: #14a876; font-weight: 900; font-size: 13.5px; }
.home-online-text { margin: 0; color: var(--ink-soft); font-weight: 700; font-size: 14.5px; line-height: 1.45; flex: 1; }
.home-online .btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.home-ico { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; }
.home-ico .ico-l { width: 26px; height: 26px; }
.home-ico.violet { background: #ece9ff; color: #4b4fd8; } .home-ico.blue { background: #e8f1ff; color: #3d8bff; }
.home-ico.green { background: #e6f8ef; color: #14a876; } .home-ico.orange { background: #fff1e6; color: #e8590c; } .home-ico.purple { background: #f3ecff; color: #8b5cf6; }
.home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; margin-bottom: 8px; }
.home-tile { display: flex; align-items: center; gap: 14px; padding: 18px; border: 0; border-radius: 22px; background: var(--ivory); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; min-width: 0; }
.home-tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.home-tile:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.home-tile span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.home-tile b { font: 900 15.5px/1.2 "Nunito", sans-serif; color: var(--ink); }
.home-tile small { color: var(--ink-soft); font-weight: 800; font-size: 12.5px; }
.home-tile.done { box-shadow: inset 0 0 0 2px #14a876, var(--shadow-sm); }
#screen-home .tier-tabs, #screen-home .map { max-width: 1240px; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
@media (max-width: 1280px) { .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .home-top { grid-template-columns: 1fr; } .home-top .hero-mascot img, .home-top .hero-mascot svg { width: 130px; height: 130px; } }

/* kabinet tezkor tugmalari: Lucide ikonkalari */
.cab-act span .ico-l { width: 26px; height: 26px; }
.cab-act.act-play span { color: #4b4fd8; } .cab-act.act-social span { color: #3d8bff; } .cab-act.act-road span { color: #e8590c; } .cab-act.act-skills span { color: #14a876; }

/* ---------- bildirishnomalar: qo'ng'iroq va panel ---------- */
.sn-bell { position: absolute; top: 24px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: #d7daf5; transition: background .15s; }
.sn-bell:hover, .sn-bell[aria-expanded="true"] { background: rgba(255, 255, 255, .16); color: #fff; }
.sn-bell:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.sn-bell .badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ff3d57; color: #fff;
  font: 900 11px/18px "Nunito", sans-serif; text-align: center; font-style: normal; box-shadow: 0 0 0 2px #262a74; }
.sn-bell.ring .ico-l { animation: bell-ring .9s ease; transform-origin: 50% 10%; }
@keyframes bell-ring { 15%, 45% { transform: rotate(16deg); } 30%, 60% { transform: rotate(-14deg); } 75% { transform: rotate(6deg); } }
.sidenav .brand { padding-right: 52px; }
.nt-panel { position: fixed; z-index: 60; top: 16px; left: calc(var(--nav-w) + 12px); width: min(380px, calc(100vw - var(--nav-w) - 24px)); max-height: calc(100vh - 32px);
  display: flex; flex-direction: column; border-radius: 22px; background: var(--ivory); color: var(--ink); box-shadow: 0 30px 70px -20px rgba(18, 21, 58, .55), 0 0 0 1px var(--line);
  overflow: hidden; animation: nt-in .18s ease; }
@keyframes nt-in { from { opacity: 0; transform: translateX(-8px); } }
.nt-panel header { display: flex; align-items: center; gap: 6px; padding: 18px 18px 10px 22px; }
.nt-panel header h3 { flex: 1; margin: 0; font: 800 18px/1.2 var(--display); }
.nt-act { width: 36px; height: 36px; border: 0; border-radius: 10px; display: grid; place-items: center; background: #f3f5fb; color: var(--ink-soft); cursor: pointer; }
.nt-act:hover:not(:disabled) { color: var(--ink); background: #e9ecf6; } .nt-act:disabled { opacity: .4; cursor: default; }
.nt-panel ul { list-style: none; margin: 0; padding: 4px 10px 6px; overflow-y: auto; }
.nt-item { width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.nt-item:hover { background: #f3f5fb; }
.nt-item.new { background: #fff6df; } .nt-item.new:hover { background: #ffefc6; }
.nt-item.new .nt-txt::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff3d57; margin-right: 6px; vertical-align: 1px; }
.nt-ico { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: #ece9ff; color: #4b4fd8; }
.nt-txt { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.nt-txt small { display: block; color: var(--ink-soft); font-weight: 800; font-size: 12px; margin-top: 2px; }
.nt-panel footer { padding: 6px 14px 14px; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); }
.nt-empty { margin: 0; padding: 26px 26px 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--ink-soft); font-weight: 700; }
.nt-empty .ico-l { width: 40px; height: 40px; color: #c3c8d8; }
.sn-live { font-variant-numeric: tabular-nums; }
@media (max-width: 1180px) {
  .sn-bell { position: relative; top: auto; right: auto; width: 100%; margin-bottom: 4px; }
  .sidenav .brand { padding-right: 0; }
}
.home-live { margin: -4px 0 0; color: #14a876; font-weight: 900; font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.home-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ee6a0; box-shadow: 0 0 0 4px rgba(62, 230, 160, .2); }
.home-live[hidden] { display: none; }

/* ---------- tanishtiruv ---------- */
.tour { position: fixed; inset: 0; z-index: 90; }
.tour-hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(10, 12, 40, .66), 0 0 0 3px var(--brass), 0 0 30px 6px rgba(240, 177, 58, .45);
  transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease; pointer-events: none; }
.tour-card { position: fixed; width: min(380px, calc(100vw - 32px)); display: flex; gap: 14px; padding: 20px; border-radius: 24px; background: var(--ivory); color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transition: left .3s ease, top .3s ease; animation: nt-in .25s ease; }
.tour-mascot { width: 64px; height: 64px; flex: none; }
.tour-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tour-step { color: var(--brass-dark); font-weight: 900; font-size: 12.5px; letter-spacing: .08em; }
.tour-body h3 { margin: 0; font: 800 19px/1.2 var(--display); }
.tour-body p { margin: 0; color: var(--ink-soft); font-weight: 700; font-size: 14.5px; line-height: 1.45; }
.tour-btns { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; }
.tour-skip { position: absolute; top: 14px; right: 16px; border: 0; background: none; color: var(--ink-soft); font: 800 12.5px "Nunito", sans-serif; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.tour-skip:hover { color: var(--ink); text-decoration: underline; }
.tour-card { padding-top: 22px; }
.tour-btns .btn { padding: 9px 16px; }
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-card { transition: none; animation: none; } }

/* ---------- kechki mavzu: o'zgaruvchilar (fon/chegaralar — dark.css avtomatik) ---------- */
html[data-mode="dark"] { color-scheme: dark;
  --porcelain: #0f1226; --ivory: #1b1f3e; --card: #1d2142; --ink: #eceeff; --ink-soft: #a9afd9; --line: #2e3363;
  --bg1: #0f1226; --bg2: #14173a; --night-2: #2b2f78;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); --shadow-sm: 0 6px 16px -8px rgba(0, 0, 0, .6); }
html[data-mode="dark"] body { background: radial-gradient(1100px 520px at 50% -180px, rgba(90, 96, 220, .22), transparent 70%), #0f1226; color: var(--ink); }
html[data-mode="dark"] .muted, html[data-mode="dark"] small { color: var(--ink-soft); }
html[data-mode="dark"] input, html[data-mode="dark"] select, html[data-mode="dark"] textarea { background: #20244a; color: var(--ink); border-color: #3a4078; }
html[data-mode="dark"] .dialog, html[data-mode="dark"] dialog { background: #1b1f3e; color: var(--ink); }
html[data-mode="dark"] .btn-primary, html[data-mode="dark"] .btn-primary * { color: #1d2142; }
html[data-mode="dark"] .home-tile b, html[data-mode="dark"] .hub-row-main b, html[data-mode="dark"] .nt-item { color: var(--ink); }
html[data-mode="dark"] .nt-act { background: #252a52; color: var(--ink-soft); }
html[data-mode="dark"] .nt-item:hover { background: #252a52; }
html[data-mode="dark"] .nt-item.new { background: #3a3220; }
html[data-mode="dark"] .home-ico.violet, html[data-mode="dark"] .nt-ico, html[data-mode="dark"] .hub-ch { background: #2d2a63; color: #a9a5ff; }
html[data-mode="dark"] .home-ico.blue { background: #1f3354; } html[data-mode="dark"] .home-ico.green { background: #173d33; }
html[data-mode="dark"] .home-ico.orange { background: #3e2a1d; } html[data-mode="dark"] .home-ico.purple { background: #30265a; }
html[data-mode="dark"] .hub-chip { background: #252a52; } html[data-mode="dark"] .hub-q > i { background: #3a3220; } html[data-mode="dark"] .hub-q.done > i { background: #173d33; }
html[data-mode="dark"] .hub-res.w { background: #173d33; } html[data-mode="dark"] .hub-res.d { background: #252a52; } html[data-mode="dark"] .hub-res.l { background: #43222b; }
html[data-mode="dark"] .hub-road { background: linear-gradient(135deg, #2e2818, #3d3218); } html[data-mode="dark"] .hub-road p { color: #ffd57a; }
html[data-mode="dark"] .cab-bar, html[data-mode="dark"] .hub-road .cab-bar { background: #2c3160; }
html[data-mode="dark"] .hero-bubble h1, html[data-mode="dark"] h1, html[data-mode="dark"] h2, html[data-mode="dark"] h3 { color: inherit; }
html[data-mode="dark"] .home-head h1 { color: var(--ink); }
html[data-mode="dark"] .home-tile, html[data-mode="dark"] .home-online, html[data-mode="dark"] .card { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
html[data-mode="dark"] .sn-tools .lang-toggle button.on { background: #fff; color: #1d2142; }
html[data-mode="dark"] .seg button.on { background: #3a4078; color: #fff; }
html[data-mode="dark"] .btn-soft, html[data-mode="dark"] .btn-ghost { color: var(--ink); }
html[data-mode="dark"] body:not([data-theme="klassik"])[data-theme] :is(#screen-arena, #screen-play, #screen-practice, #screen-lesson) .btn-ghost { background: rgba(29, 33, 66, .85); color: #fff; }

/* ---------- QA tuzatishlari (2026-11-08) ---------- */
/* hisobot: daraja nomlari kesilmasin */
.rp-bar { grid-template-columns: minmax(0, 1.8fr) minmax(50px, 1fr) 46px; }
.rp-bar span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
/* ikki kishi o'yini: «Joylashuv» 4 tugmasi tor panelda ustma-ust chiqardi — 2×2 */
#play-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
#play-layout button { padding: 7px 4px; font-size: 12.5px; white-space: normal; line-height: 1.15; min-width: 0; overflow-wrap: anywhere; }
/* bo'sh yurishlar ro'yxati — izoh bilan */
.movelist:empty::before { content: attr(data-empty); display: block; color: var(--ink-soft); font-weight: 700; font-size: 13.5px; padding: 6px 4px; }
/* imtihon: tanlangan tugma — premium indigo (eski ko'k gradient o'rniga) */
.seg-wide button.on { background: linear-gradient(180deg, #5d62e6, #4b4fd8); }
html[data-mode="dark"] .btn-danger { background: #43222b; color: #ff9aa8; }
html[data-mode="dark"] .player input::placeholder { color: var(--ink-soft); }
html[data-mode="dark"] .player input, html[data-mode="dark"] .ap-name { background: transparent; border-color: transparent; }
/* past ekranlar: yon panel elementlari siqiladi — pastki tugmalar (til, mavzu, ovoz, sozlamalar) doim ko'rinsin */
@media (max-height: 860px) {
  .sn-item { padding: 8px 14px; }
  .sn-group h6 { margin: 2px 14px 4px; }
  .sn-group { padding-top: 2px; }
  .sn-foot { gap: 6px; padding-top: 8px; }
  .sn-profile { padding: 8px 10px; }
}
@media (max-width: 1180px) {
  .sn-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .sn-tools .lang-toggle { grid-column: 1 / -1; }
  .sn-tools .icon-btn { width: 100%; height: 30px; border-radius: 9px; }
  .sn-tools .icon-btn .ico-l { width: 16px; height: 16px; }
  .sn-bell { height: 34px; }
}
@media (max-width: 1180px) and (max-height: 860px) { .sn-item { padding: 7px 0; } .sidenav .brand-mascot { width: 40px; height: 40px; } }
#screen-play.two #play-layout { display: grid !important; }      /* .two-only flex !important ni bekor qiladi */
html[data-mode="dark"] .pc-val { background: #4a3d22; color: #ffd57a; }
/* onlayn partiya: o'ng ustun ekran balandligiga sig'sin (pastki o'yinchi kartasi kesilardi) */
.ar-game { grid-template-rows: minmax(0, 1fr); padding-bottom: 20px; }
.ar-board { width: min(100%, calc(100vh - 120px)); }
/* o'yin paytida tashqi page-wrap chekinishi 100vh maydonni pastga surmasin */
.page-wrap:has(> .ar-game) { padding: 0; }
.movelist:empty::before { column-span: all; }        /* 2 ustunli ro'yxatda bo'sh yozuv bo'linmasin */
@media (max-width: 1180px) { .play-options .seg button { font-size: 12.5px; padding: 8px 2px; } }
.page-head > .btn-ghost, .rd-coins { white-space: nowrap; flex: none; }   /* tor ekranda «← Orqaga» va tanga bo'linmasin */
@media (max-width: 1180px) { .cab-grid { grid-template-columns: 1fr; } .cab-ladder, .cab-stats { grid-column: auto; grid-row: auto; } }
.av-live { display: grid; place-items: center; }
.av-live.on .avx { box-shadow: 0 0 0 4px var(--brass); border-radius: 50%; }

/* v2.6: besh bosqich bitta qatorda — ixcham, teng ustunlar */
#screen-home .tier-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; justify-content: stretch; }
#screen-home .tier-tab { min-width: 0; padding: 10px 14px; border-radius: 16px; }
#screen-home .tier-tab small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#screen-home .tier-tab b { font-size: 13.5px; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; }
@media (max-width: 860px) { #screen-home .tier-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { #screen-home .tier-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v2.6: bosqich diplomi tugmasi (bosqich to'liq tugaganda xarita boshida) */
.tier-diploma { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 20px; border: 0; border-radius: 18px; cursor: pointer; text-align: left;
  background: linear-gradient(100deg, #fff6d8, #ffe7a3); box-shadow: inset 0 0 0 2px #e9b949, 0 10px 24px -14px rgba(160, 110, 10, .7); color: #5a3d00; }
.tier-diploma .td-ico { font-size: 34px; }
.tier-diploma b { display: block; font-size: 17px; }
.tier-diploma small { display: block; font-weight: 700; opacity: .8; }
.tier-diploma:hover { filter: brightness(1.04); transform: translateY(-1px); }

/* v2.6: «Kombinatsiya bellashuvi» tugmasi (5-bosqich xaritasi boshida) va jonlar */
.tier-rush { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 20px; border: 0; border-radius: 18px; cursor: pointer; text-align: left;
  background: linear-gradient(100deg, #2b2f6b, #4b2a7a); color: #fff; box-shadow: 0 12px 26px -14px rgba(40, 20, 90, .9); }
.tier-rush .td-ico { font-size: 32px; }
.tier-rush b { display: block; font-size: 17px; }
.tier-rush small { display: block; font-weight: 700; opacity: .8; }
.tier-rush .tr-go { margin-left: auto; background: var(--brass, #f0b13a); color: #2a1d00; font-weight: 900; padding: 9px 16px; border-radius: 12px; white-space: nowrap; }
.tier-rush:hover { filter: brightness(1.08); }
#exam-tries .heart { color: #c9cbd8; font-style: normal; margin-left: 2px; }
#exam-tries .heart.on { color: #e5484d; }

/* v2.6: «Shaxmat Sultoni» oliy sertifikati — shriftlar (Cormorant Garamond, OFL) */
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/cormorant-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: "Cormorant"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/cormorant-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Cormorant"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/cormorant-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: italic; font-display: swap; src: url(../fonts/cormorant-latin-600-italic.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: "Cormorant"; font-weight: 600; font-style: italic; font-display: swap; src: url(../fonts/cormorant-latin-ext-600-italic.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Cormorant"; font-weight: 600; font-style: italic; font-display: swap; src: url(../fonts/cormorant-cyrillic-600-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-weight: 700; font-style: italic; font-display: swap; src: url(../fonts/cormorant-latin-700-italic.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: "Cormorant"; font-weight: 700; font-style: italic; font-display: swap; src: url(../fonts/cormorant-latin-ext-700-italic.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Cormorant"; font-weight: 700; font-style: italic; font-display: swap; src: url(../fonts/cormorant-cyrillic-700-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

.grand-card { margin-top: 18px; background: linear-gradient(120deg, #fff8e1, #ffeab0); box-shadow: inset 0 0 0 2px #e2b04a, 0 14px 30px -18px rgba(150, 100, 10, .8); }
.grand-card h3 { margin: 0 0 6px; font-family: var(--display, inherit); color: #5a3c06; }
.grand-card .muted { color: #6b5520; }
.grand-bar { height: 10px; border-radius: 6px; background: rgba(120, 80, 10, .15); overflow: hidden; margin: 6px 0; }
.grand-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c8952c, #f3d47a); }
.grand-req .ok { color: #1f7a3c; font-weight: 800; }
.grand-rules { background: rgba(255, 255, 255, .55); border-radius: 12px; padding: 10px 14px; }
.grand-own { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.grand-thumb { width: 260px; height: auto; border-radius: 6px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.grand-dlg { max-width: min(96vw, 1200px); }
.grand-dlg.grand-big { width: min(96vw, 1200px); }
.grand-view canvas { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .5); }
.grand-view.small { max-width: 640px; margin: 0 auto; }
.grand-name { font-family: "Cormorant", serif; font-style: italic; font-weight: 700; font-size: 30px; text-align: center; color: #5a3c06; margin: 10px 0; }
.grand-in { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; margin: 8px 0; }
.grand-in input { font-size: 18px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid #d8c08a; }
#screen-news .page-wrap { max-width: 1100px; }
.news-how ol { margin: 8px 0 12px 20px; line-height: 1.6; }
.news-list { display: grid; gap: 14px; margin-top: 16px; }
.news-item { display: flex; gap: 16px; align-items: center; cursor: pointer; }
.news-item:hover { filter: brightness(1.03); }
.news-item .news-n { font-family: "Cormorant", serif; font-style: italic; font-weight: 700; font-size: 24px; margin: 4px 0; color: #5a3c06; }
@media print { body.print-cert .grand-dlg { display: none; } }

/* v3.1 kunlik seriya */
.pill-streak .ico { filter: grayscale(1); opacity: .55; }
.pill-streak.on .ico { filter: none; opacity: 1; }
.home-streak { margin: 6px 0 0; font-weight: 700; color: var(--ink-soft); }
.home-streak.warn { color: #c2410c; }
