/* dashboard, path, vocabulary, review, profile, leaderboard, achievements */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.hello { display: flex; align-items: center; gap: 16px; }
.hello img { width: 72px; height: 72px; flex: none; }
.continue-card { background: var(--brand); color: var(--on-brand); border: 0; display: grid; gap: 6px; box-shadow: 0 5px 0 color-mix(in srgb, var(--brand) 55%, #000); }
.continue-card h2 { color: var(--on-brand); margin: 0; font-size: 1.5rem; }
.continue-card .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: .78rem; opacity: .85; }
.continue-card .btn { --b: #fff; --bd: rgba(0,0,0,.25); color: var(--brand-dark); justify-self: start; margin-top: 8px; }
.stat { display: flex; align-items: center; gap: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 560px) { .stat-row { gap: 8px; } .stat-row .stat { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; } .stat-row .card { padding: 10px 6px; } .stat-row .stat span { font-size: .78rem; } }
.stat .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--surface-2); }
.stat .ico svg { width: 26px; height: 26px; }
.stat b { display: block; font-size: 1.4rem; line-height: 1.1; }
.stat span { color: var(--ink-2); font-size: .85rem; font-weight: 700; }
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--surface-2) 0); flex: none; }
.ring > div { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 900; text-align: center; line-height: 1.1; font-size: .95rem; }
.ring.met { background: conic-gradient(var(--brand) 100%, var(--surface-2) 0); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 110px; }
.week .bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: .72rem; font-weight: 800; color: var(--ink-2); }
.week .bar i { display: block; width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: var(--brand); min-height: 4px; }
.week .bar.zero i { background: var(--surface-2); }
.ach-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ach-mini { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; font-weight: 800; font-size: .85rem; }
.ach-mini svg { width: 22px; height: 22px; color: var(--gold-ink); }

/* ---------- learning path ---------- */
.learn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.learn-layout > * { min-width: 0; }
.path-side { position: sticky; top: 16px; display: grid; gap: 12px; }
@media (max-width: 1099px) { .learn-layout { grid-template-columns: minmax(0, 1fr); } .path-side { position: static; order: -1; } }
.level-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.level-tab { flex: none; border: 2px solid var(--line); background: var(--surface); border-radius: 14px; padding: 8px 14px; font-weight: 900; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.level-tab[aria-selected="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.level-tab[aria-disabled="true"] { opacity: .6; }
.level-tab svg { width: 16px; height: 16px; }
.unit-banner { background: var(--brand); color: var(--on-brand); border-radius: 18px; padding: 14px 18px; margin: 26px 0 10px; box-shadow: 0 4px 0 var(--brand-dark); }
.unit-banner h3 { color: var(--on-brand); margin: 0 0 2px; } .unit-banner p { margin: 0; opacity: .9; font-size: .9rem; }
.path { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 10px 0 20px; }
.node-wrap { transform: translateX(var(--off, 0px)); text-align: center; position: relative; }
.node { width: 76px; height: 76px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--on-brand); background: var(--brand); box-shadow: 0 6px 0 var(--brand-dark); position: relative; transition: transform .1s; }
.node:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--brand-dark); }
.node svg { width: 34px; height: 34px; }
.node.completed { background: var(--gold); color: #3b2600; box-shadow: 0 6px 0 #c98714; }
.node.locked { background: var(--surface-2); color: var(--ink-2); box-shadow: 0 6px 0 var(--line); }
.node.current::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 4px solid color-mix(in srgb, var(--brand) 45%, transparent); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1.2); opacity: 0; } }
.node-label { display: block; margin-top: 10px; font-weight: 800; font-size: .85rem; max-width: 150px; overflow-wrap: anywhere; }
.start-pill { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--brand-ink); border: 2px solid var(--line); border-radius: 12px; padding: 3px 12px; font-weight: 900; font-size: .78rem; white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 400px) { .node-wrap { transform: translateX(calc(var(--off, 0px) * .6)); } .node { width: 68px; height: 68px; } }

/* ---------- lists ---------- */
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 12px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fchip { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 800; cursor: pointer; min-height: 40px; }
.fchip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.word { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; }
.word .en { font-size: 1.15rem; font-weight: 900; }
.word .uz { color: var(--ink-2); font-weight: 700; }
.word .ex { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-2); border-left: 4px solid var(--line); padding-left: 10px; }
.word .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); } .icon-btn[aria-pressed="true"] { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.mode-card { text-align: left; cursor: pointer; width: 100%; display: flex; gap: 14px; align-items: center; }
.mode-card h3 { margin: 0; } .mode-card p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.mode-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.mode-card .ico svg { width: 28px; height: 28px; }

/* ---------- flashcards / review ---------- */
.flash { perspective: 900px; margin: 12px 0; }
.flash-inner { min-height: 220px; display: grid; place-items: center; text-align: center; padding: 24px; border: 2px solid var(--line); border-radius: 22px; background: var(--surface); cursor: pointer; width: 100%; box-shadow: 0 5px 0 var(--line); }
.flash-inner .big { font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 900; }

/* ---------- profile, leaderboard, achievements ---------- */
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.avatar-pick { border: 3px solid transparent; border-radius: 50%; padding: 3px; background: none; cursor: pointer; width: 64px; height: 64px; }
.avatar-pick[aria-checked="true"] { border-color: var(--brand); }
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 34px 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 2px solid var(--surface-2); }
.board li.you { background: var(--brand-soft); border-radius: 12px; }
.board .rank { font-weight: 900; color: var(--ink-2); text-align: center; }
.board .name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ach-card { display: flex; gap: 12px; align-items: center; }
.ach-card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); flex: none; }
.ach-card.locked { opacity: .55; filter: grayscale(.8); }
.ach-card .ico svg { width: 30px; height: 30px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; }
.switch input { width: 24px; height: 24px; accent-color: var(--brand); flex: none; }

/* leaderboard: characters and the pop-up */
.board li.lb-row { cursor: pointer; transition: background .15s, transform .15s; } .board li.lb-row:hover { background: var(--surface-2); transform: translateX(2px); } .board li.lb-row:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 12px; }
.lb-char { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #fff, #e6defa 80%); border: 3px solid #cbbcf5; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }

.lb-row.r1 .lb-char { border-color: #ffc83d; box-shadow: 0 0 0 2px #8a5a00, 0 0 14px rgba(255, 200, 60, .6); } .lb-row.r2 .lb-char { border-color: #d5dbe8; box-shadow: 0 0 0 2px #5a617a, 0 0 12px rgba(200, 210, 230, .5); } .lb-row.r3 .lb-char { border-color: #e39a5a; box-shadow: 0 0 0 2px #7a4a22, 0 0 12px rgba(227, 154, 90, .5); }
.lb-card { display: grid; gap: 10px; justify-items: center; } .lb-stage { display: grid; place-items: center; width: min(280px, 100%); border-radius: 24px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .3), rgba(255, 255, 255, .06) 70%); border: 2px solid rgba(255, 255, 255, .25); padding: 6px; } .lb-stage svg { max-width: 100%; height: auto; } .lb-none { min-height: 140px; }
