:root {
  --bg: #f7f3ea; --card: #ffffff; --text: #1c2622; --muted: #6f7d74; --line: #e7e0d0;
  --accent: #0b6b53; --accent-2: #c9982f; --accent-text: #ffffff; --danger: #b3423a;
  --shadow: 0 1px 3px rgba(20, 40, 32, .08), 0 6px 18px rgba(20, 40, 32, .06);
}
:root[data-theme="dark"] {
  --bg: #0b1512; --card: #131f1a; --text: #eef3ef; --muted: #8ea89d; --line: #223229;
  --accent: #35b895; --accent-2: #e0b563; --accent-text: #062018; --danger: #ef6b5b;
  --shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 8px 20px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body {
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
  position: relative;
}
main { max-width: 640px; margin: 0 auto; padding: 16px 14px 24px; }
h1 { font-size: 21px; font-weight: 800; letter-spacing: -.2px; margin: 4px 0 14px; }
h2 { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.ar { font-family: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif; direction: rtl; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(20, 40, 32, .08); z-index: 5; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 6px 0; border-radius: 14px;
  font-size: 10.5px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: background .15s, color .15s; }
.tabs button span { font-size: 20px; transition: transform .15s; }
.tabs button.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.tabs button.active span { transform: translateY(-1px) scale(1.08); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 15px;
  box-shadow: var(--shadow); margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card);
  border: 1px solid var(--line); color: inherit; padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow);
  margin-bottom: 8px; font: inherit; transition: transform .1s; }
.row:active { transform: scale(.99); }
.row .num { width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 700; }
.row .ar-name { font-size: 22px; color: var(--accent); }
.row .preview { color: var(--muted); font-size: 13.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

input[type=text], input[type=search], input[type=number] { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; outline: none; }
input:focus { border-color: var(--accent); }
.search { position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 4px 0 10px; }

.btn { border: 0; border-radius: 13px; padding: 12px 16px; font: inherit; font-weight: 700; background: var(--accent);
  color: var(--accent-text); box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.ghost { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); box-shadow: none; }
.btn.block { display: block; width: 100%; }
.btn:disabled { opacity: .5; box-shadow: none; }
.btn:active { transform: scale(.98); }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns .btn { flex: 1; min-width: 90px; }

.verse { padding: 14px 10px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 12px; transition: background .2s; }
.verse.cur { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.verse.cur .uz { color: var(--text); }
.verse .ar { font-size: 27px; line-height: 2; text-align: right; }
.verse .translit { font-size: 17px; line-height: 1.9; text-align: left; direction: ltr; }
.verse .translit .mark { font-size: 12px; font-family: inherit; }
.verse .uz { margin-top: 4px; color: var(--muted); }
.verse .n { display: inline-block; min-width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: color-mix(in srgb, var(--accent-2) 30%, transparent); font-size: 12px; margin-right: 8px; }
.w { border-radius: 8px; padding: 0 3px; transition: background .12s, color .12s; }
.w.read { color: var(--accent); }
.w.on { background: var(--accent-2); color: #241c04; }
.reciters { margin: 0 0 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.reciters::-webkit-scrollbar { display: none; }
.reciters .pill { flex: none; white-space: nowrap; padding: 8px 14px; font-size: 13px; }
.player { position: sticky; top: 6px; z-index: 3; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 10px 12px 6px; box-shadow: var(--shadow); margin-bottom: 12px; }
.player .pillrow { margin: 0; }
.player-toprow { display: flex; align-items: center; gap: 6px; }
.player-toprow .reciters { flex: 1; min-width: 0; }
.player-more { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--muted); font-size: 17px; font-weight: 700;
  line-height: 1; display: grid; place-items: center; }
.resume { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.resume .grow { flex: 1; min-width: 0; }
.resume .rplay { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-size: 14px; flex: none; }
audio { display: none; }
.pbar { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; }
.pbar .t { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; }
.pbar .t:last-child { text-align: right; }
#seek { --p: 0%; flex: 1; -webkit-appearance: none; appearance: none; height: 5px; border-radius: 3px; outline: none;
  background: linear-gradient(to right, var(--accent) var(--p), var(--line) var(--p)); }
#seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); box-shadow: var(--shadow); }
#seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.pctl { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 4px; }
.ic { position: relative; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ic svg { width: 21px; height: 21px; fill: currentColor; }
.ic b { position: absolute; font-size: 7px; font-weight: 700; top: 50%; left: 50%; transform: translate(-50%, -30%); }
.ic:active { background: var(--line); }
.ic:disabled { opacity: .3; pointer-events: none; }
.ic.big { width: 50px; height: 50px; background: var(--accent); color: var(--accent-text); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent); }
.ic.big svg { width: 25px; height: 25px; }
.ic.big:active { background: var(--accent); filter: brightness(.9); }
.ic .i-pause, .ic.playing .i-play { display: none; }
.ic.playing .i-pause { display: block; }
.back { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; padding: 4px 0 10px; }

.sheet { position: fixed; inset: 0; background: rgba(10, 20, 16, .5); z-index: 20; display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet .panel { background: var(--card); width: 100%; max-height: 82vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.2); }
.sheet .panel .text { white-space: pre-wrap; margin: 8px 0 14px; }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 24px; z-index: 30; font-size: 14px; font-weight: 600; max-width: 88%; text-align: center; box-shadow: var(--shadow); }
.toast[hidden] { display: none; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 12px; padding: 3px; margin-bottom: 14px; }
.segmented button { border: 0; background: none; padding: 9px; border-radius: 10px; font: inherit; color: var(--muted); font-weight: 700; }
.segmented button.on { background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fields.two { grid-template-columns: 1fr 1fr; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.pillrow { display: flex; gap: 8px; margin: 6px 0 12px; }
.pill { flex: 1; text-align: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 600; }
.pill.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.switch { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }

.ring { width: 132px; height: 132px; flex: none; }
.ring circle { fill: none; stroke-width: 11; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .5s; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { fill: var(--text); font-size: 26px; font-weight: 800; text-anchor: middle; dominant-baseline: central; }
.hero { display: flex; align-items: center; gap: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.stat b { display: block; font-size: 18px; }
.prayer { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prayer:last-child { border-bottom: 0; }
.prayer .left { font-size: 20px; font-weight: 700; }
.prayer .done { color: var(--accent); }
.minus { width: 44px; height: 38px; border-radius: 10px; border: 0; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 20px; font-weight: 700; margin-left: 10px; }

.compass { position: relative; width: min(78vw, 320px); aspect-ratio: 1; margin: 8px auto 4px; }
.compass svg { width: 100%; height: 100%; }
#dial { transition: transform .15s linear; }
.compass .ptr { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font-size: 26px; color: var(--accent-2); }
.aligned .ring-outer { stroke: var(--accent); stroke-width: 5; }
.big { font-size: 34px; font-weight: 800; color: var(--accent); }
.empty { padding: 30px 10px; }
.spinner { text-align: center; padding: 40px; color: var(--muted); }

/* Skeleton loading shapes — shown instantly so a slow fetch never reads as a blank/broken page */
@keyframes shimmer { 0% { background-position: -280px 0; } 100% { background-position: 280px 0; } }
.skel { border-radius: 8px; background-color: var(--line);
  background-image: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--card) 65%, transparent) 50%, transparent 100%);
  background-size: 280px 100%; background-repeat: no-repeat; animation: shimmer 1.3s ease-in-out infinite; }
.skel.on-dark { background-color: rgba(255, 255, 255, .16);
  background-image: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .22) 50%, transparent 100%); }
.skel-title { height: 21px; width: 52%; border-radius: 6px; margin-bottom: 14px; }
.skel-bar { height: 43px; border-radius: 12px; margin-bottom: 12px; }
.skel-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; margin-bottom: 8px; }
.skel-circle { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.skel-lines { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.skel-line { height: 11px; border-radius: 6px; }
.skel-line.w40 { width: 40%; } .skel-line.w60 { width: 60%; } .skel-line.w80 { width: 80%; }
.phero-skel .skel-line { height: 13px; }
.suratop { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.suratop .back { padding: 4px 0; flex: none; }
.suratop h1 { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suratop .ar { flex: none; font-size: 20px; color: var(--accent); }
.player { top: 4px; margin-bottom: 8px; }

/* Viktorina: solo quiz + duel */
.quiz-q { font-size: 16px; line-height: 1.5; font-weight: 700; }
.opt { transition: background .15s, border-color .15s; }
.opt.disabled { pointer-events: none; }
.opt.correct { background: color-mix(in srgb, var(--accent) 20%, var(--card)); border: 1px solid var(--accent); }
.opt.wrong { background: color-mix(in srgb, var(--danger) 16%, var(--card)); border: 1px solid var(--danger); }
.card.ok { border: 1px solid var(--accent); }
.card.bad { border: 1px solid var(--danger); }
.duel-row .title { font-weight: 700; }

/* Bosh sahifa: bugungi sana + namoz countdown "hero" */
.phero { position: relative; overflow: hidden; border-radius: 22px; padding: 18px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #06140f)); color: #fff; box-shadow: var(--shadow); }
.phero-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.phero-dates { min-width: 0; }
.phero-greg { font-weight: 800; font-size: 16.5px; }
.phero-hijri { font-size: 12.5px; opacity: .8; margin-top: 2px; }
.phero-pill { margin-top: 12px; display: block; background: rgba(255, 255, 255, .16); border: 0; color: #fff;
  padding: 7px 14px; border-radius: 20px; font: inherit; font-size: 12.5px; font-weight: 600; }
.phero-bell-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; opacity: .9; }
.phero-bell { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 0; color: #fff; font-size: 14px; flex: none; }
.phero-bell.on { background: var(--accent-2); }
.phero-ring-wrap { position: relative; width: 104px; height: 104px; flex: none; }
.phero-ring-wrap .ring.phero-ring { width: 100%; height: 100%; }
.phero-ring circle.bg { stroke: rgba(255, 255, 255, .22); }
.phero-ring circle.fg { stroke: var(--accent-2); stroke-linecap: round; transition: stroke-dashoffset 1s linear; transform: rotate(-90deg); transform-origin: 50% 50%; }
.phero-ring-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.phero-ring-mid b { font-size: 14px; font-weight: 700; }
.phero-ring-mid span { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.phero-count { position: relative; text-align: center; margin-top: 12px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .92; }

/* Bosh sahifa: rangli doiraviy bo'limlar */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; margin-bottom: 6px; }
.tile { background: none; border: 0; box-shadow: none; padding: 0; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 7px; font: inherit; color: inherit; }
.tile-ic { font-size: 26px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tc, var(--accent)) 24%, var(--card)); box-shadow: var(--shadow); transition: transform .1s; }
.tile:active .tile-ic { transform: scale(.92); }
.tile-t { font-size: 12px; font-weight: 700; line-height: 1.25; }

/* progress bar (names / tasbeh) */
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 6px; }
.bar-fg { height: 100%; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2))); border-radius: 4px; transition: width .3s; }
.badge { font-size: 15px; }

/* Tasbeh */
.tasbeh-circle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: min(62vw, 240px); aspect-ratio: 1; border-radius: 50%; margin: 18px auto 10px; border: 0;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--accent-2) 20%, var(--card)), color-mix(in srgb, var(--accent) 10%, var(--card)) 70%);
  box-shadow: var(--shadow); color: var(--text); -webkit-tap-highlight-color: transparent; }
.tasbeh-circle:active { transform: scale(.97); }
.tasbeh-count { font-size: 52px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Bugungi oyat/hadis card */
.qod { border-left: 3px solid var(--accent); }
.qod-text { margin: 6px 0; line-height: 1.5; }
.qod-ref { text-align: right; }

/* Do'stlar reytingi */
.me-row { border: 1px solid var(--accent); }

/* Statistika: yutuq (milestone) badges */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.badge-tile { background: var(--card); border-radius: 14px; padding: 12px 6px; text-align: center; box-shadow: var(--shadow); opacity: .5; }
.badge-tile.on { opacity: 1; }
.badge-tile span { display: block; font-size: 24px; }
.badge-tile b { font-size: 13px; }
.qod-text a { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* Qur'on o'qishni o'rganish: course path */
.tj-overall { padding: 12px 16px; }
.tj-unit-banner { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px;
  padding: 12px 14px; margin: 18px 0 6px; box-shadow: var(--shadow); }
.tj-uicon { font-size: 24px; width: 34px; text-align: center; flex: none; }
.tj-uscore { flex: none; }

.tj-path { position: relative; padding: 6px 0 4px; }
.tj-path::before { content: ""; position: absolute; top: 6px; bottom: 4px; left: 50%; width: 3px; margin-left: -1.5px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 18px); z-index: 0; }
.tj-node-row { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 34%; margin: 2px 0; }
.tj-node-row.left { margin-right: auto; align-items: flex-start; margin-left: 8%; }
.tj-node-row.right { margin-left: auto; align-items: flex-end; margin-right: 8%; }
.tj-node { width: 58px; height: 58px; border-radius: 50%; border: 0; box-shadow: var(--shadow); flex: none;
  display: grid; place-items: center; background: var(--card); color: var(--muted); font: inherit; }
.tj-node-inner { font-size: 15px; letter-spacing: 1px; color: var(--accent-2); }
.tj-node.locked { background: var(--line); }
.tj-node.locked .tj-node-inner { font-size: 20px; }
.tj-node.open { border: 2px solid var(--line); }
.tj-node.open .tj-node-inner { color: var(--line); }
.tj-node.done { background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.tj-node.current { width: 68px; height: 68px; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow); }
.tj-node.current .tj-node-inner { color: var(--accent-text); font-size: 22px; }
.tj-node:not(.locked):not(:disabled):active { transform: scale(.95); }
.tj-node-label { max-width: 110px; text-align: center; line-height: 1.2; }
.tj-display { font-size: 46px; text-align: center; line-height: 1.6; }
.opt-ar { font-size: 24px; text-align: center; justify-content: center; }
.tj-study-card { text-align: center; }
.tj-study-card .tj-display { margin-bottom: 6px; }
.tj-forms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.tj-form { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tj-form .ar { font-size: 24px; }

/* Letter tracing (ungraded practice) */
.tj-trace-wrap { position: relative; width: 100%; max-width: 300px; aspect-ratio: 300 / 220; margin: 10px auto;
  border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px dashed var(--line); }
.tj-trace-guide, .tj-trace-draw { position: absolute; inset: 0; width: 100%; height: 100%; }
.tj-trace-draw { touch-action: none; }
.tj-trace-fb { text-align: center; min-height: 18px; margin: 2px 0 8px; }
.tj-trace-fb.ok { color: var(--accent); font-weight: 700; }
.tj-trace-fb.bad { color: var(--danger); }
.tj-trace .btns .btn { min-width: 76px; padding: 9px 6px; font-size: 12.5px; }


/* ---- Go'zal ismlar: kunlik reja, o'rganish, kartochka ---- */
.nm-today { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.nm-chip { position: relative; flex: 1; min-width: 84px; text-align: center; padding: 10px 6px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 9%, var(--card)); border: 1px solid var(--line); }
.nm-chip .ar { display: block; font-size: 24px; color: var(--accent); }
.nm-chip small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.nm-chip.done { border-color: var(--accent); }
.nm-chip i { position: absolute; top: 4px; right: 8px; font-style: normal; color: var(--accent); font-size: 12px; font-weight: 700; }
.nm-pace { display: inline-flex; gap: 4px; }
.nm-pace .pill { padding: 4px 11px; border-radius: 10px; font-size: 13px; flex: none; }
.nm-n { min-width: 26px; text-align: center; padding: 3px 8px; border-radius: 10px; background: var(--accent); color: var(--accent-text); font-size: 13px; }
.nm-n.off { background: var(--line); color: var(--muted); }
.row:disabled { opacity: .55; }
.nm-study, .nm-flash { text-align: center; }
.nm-big { font-size: 52px; line-height: 1.5; color: var(--accent); }
.nm-short { font-size: 17px; font-weight: 700; line-height: 1.4; }
.nm-answer { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.nm-chain { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.nm-link { color: var(--muted); font-size: 14px; }
.nm-link .ar { font-size: 20px; color: var(--accent); }
.nm-say { margin-top: 8px; border: 0; border-radius: 40px; padding: 12px 26px; font: inherit; font-size: 18px; font-weight: 800; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.nm-say:active { transform: scale(.96); }
.nm-flash { min-height: 190px; display: flex; flex-direction: column; justify-content: center; }

/* ---- Shashka (checkers) ---- */
.ck-board { display: grid; grid-template-columns: repeat(8, 1fr); width: 100%; max-width: 420px; margin: 0 auto;
  border-radius: 8px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .2);
  border: 6px solid #5c3a22; }
:root[data-theme="dark"] .ck-board { border-color: #2e1d12; }
.ck-cell { position: relative; aspect-ratio: 1; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; }
.ck-cell.light { background: #e8dcc2; background-image: repeating-linear-gradient(95deg, rgba(120, 88, 48, .07) 0 1.5px, transparent 1.5px 7px); }
.ck-cell.dark { background: #86532f; background-image: repeating-linear-gradient(95deg, rgba(0, 0, 0, .12) 0 1.5px, transparent 1.5px 7px),
  radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .06), transparent 60%); }
:root[data-theme="dark"] .ck-cell.light { background-color: #cdbf9e; }
:root[data-theme="dark"] .ck-cell.dark { background-color: #4a3322; }
.ck-cell.sel::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; border: 2.5px solid var(--accent-2);
  animation: ck-pop .18s ease; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-2) 30%, transparent); }
.ck-dot { position: absolute; width: 24%; height: 24%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent-2) 90%, #fff 20%), var(--accent-2));
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35); animation: ck-pop .18s ease; pointer-events: none; }
@keyframes ck-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ck-cell:active .ck-piece { transform: scale(.92); }
.ck-piece { position: relative; width: 82%; height: 82%; border-radius: 50%; transition: transform .1s ease; }
.ck-piece.ck-a {
  background: radial-gradient(circle at 33% 28%, #747474 0%, #363636 45%, #121212 100%);
  box-shadow:
    0 3px 2px rgba(0, 0, 0, .35), 0 5px 6px rgba(0, 0, 0, .4),
    inset 0 2px 2px rgba(255, 255, 255, .3),
    inset 0 -6px 8px rgba(0, 0, 0, .6),
    inset 0 0 0 3px rgba(0, 0, 0, .4),
    inset 0 0 0 6px rgba(110, 110, 110, .22);
}
.ck-piece.ck-b {
  background: radial-gradient(circle at 33% 28%, #ffffff 0%, #ece0c4 45%, #c7b48c 100%);
  box-shadow:
    0 3px 2px rgba(0, 0, 0, .2), 0 5px 6px rgba(0, 0, 0, .3),
    inset 0 2px 2px rgba(255, 255, 255, .9),
    inset 0 -6px 8px rgba(120, 95, 50, .35),
    inset 0 0 0 3px rgba(130, 105, 60, .3),
    inset 0 0 0 6px rgba(255, 255, 255, .35);
}
.ck-piece.king::after {
  content: ""; position: absolute; width: 38%; height: 38%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff3c4, #d9ab2e 55%, #87650f 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .55), inset 0 1px 2px rgba(255, 255, 255, .7), inset 0 0 0 1.5px rgba(90, 65, 10, .5);
}
.ck-search-spin { font-size: 40px; display: inline-block; animation: ck-search-pulse 1.4s ease-in-out infinite; }
@keyframes ck-search-pulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.18); opacity: 1; } }
