/* Mevazor — sokin va toza: taxta kataklari ikki xil ohangda, mevalar o'zi rang beradi. Qorong'i va yorug' mavzu (kit.css o'zgaruvchilari). */
:root, :root[data-theme="dark"] { --c1: #171b26; --c2: #1d2230; --cell-line: rgba(255,255,255,.035); --ice: rgba(200,235,255,.30); --ice2: rgba(225,245,255,.5); --panel: #10131b; }
:root[data-theme="light"] { --c1: #e6e9f1; --c2: #eff1f6; --cell-line: rgba(15,20,40,.05); --ice: rgba(120,190,235,.32); --ice2: rgba(90,170,225,.5); --panel: #ffffff; }
body { overscroll-behavior: none; }
.scr { max-width: 620px; margin: 0 auto; padding: 12px max(12px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }

/* ---------- menyu */
.hero { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--sur2), var(--sur)); border: 1px solid var(--line); min-height: 168px; display: flex; align-items: flex-end; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-t { position: relative; padding: 14px 16px; background: linear-gradient(0deg, color-mix(in srgb, var(--sur) 92%, transparent) 30%, transparent); width: 100%; }
.hero-t h2 { margin: 0; font-size: 26px; font-weight: 820; letter-spacing: -.025em; }
.hero-t p { margin: 2px 0 0; color: var(--mut); font-size: 14px; }
.resume { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); background: color-mix(in srgb, var(--acc) 10%, var(--sur)); text-align: left; cursor: pointer; min-height: 56px; }
.resume .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); flex: none; }
.resume .ic svg { width: 18px; height: 18px; }
.resume b { display: block; font-size: 15px; } .resume small { color: var(--mut); font-size: 13px; }
.modes { display: grid; gap: 10px; margin-top: 12px; }
.mode { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--sur); text-align: left; cursor: pointer; min-height: 72px; transition: border-color .15s, transform .1s; }
.mode:hover { border-color: var(--line2); }
.mode:active { transform: scale(.985); }
.mode img { width: 46px; height: 46px; flex: none; }
.mode .tx { flex: 1; min-width: 0; }
.mode b { display: block; font-size: 16.5px; font-weight: 760; letter-spacing: -.01em; }
.mode small { display: block; color: var(--mut); font-size: 13.2px; line-height: 1.35; margin-top: 1px; }
.mode .go { color: var(--mut); flex: none; } .mode .go svg { width: 20px; height: 20px; transform: rotate(180deg); }
.mode em { font-style: normal; color: var(--acc-text); font-weight: 700; }
.top { margin-top: 14px; }
.top-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.top-h h3 { margin: 0; font-size: 17px; }
#nameBtn { max-width: 60%; } /* 320 px: standart ism («O‘yinchi 4446») to‘liq sig‘adi */ #nameBtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#topSeg { margin-bottom: 10px; }
.top-cap { margin: 8px 2px 0; color: var(--mut); font-size: 12.5px; }
#topTable .gu-table td.n { font-variant-numeric: tabular-nums; }
.links { margin-top: 14px; display: grid; gap: 10px; }
.guides { display: flex; flex-wrap: wrap; gap: 8px; }
.guides a { font-size: 13.5px; color: var(--acc-text); text-decoration: none; padding: 6px 10px; border-radius: 9px; background: var(--sur); border: 1px solid var(--line); }
.gu-sponsors { margin-top: 14px; }

/* ---------- bosqichlar */
/* Olinmagan yulduz rangi — o'rta kulrang + shaffoflik (3 Dec 2026): telefon/brauzerning majburiy tun rejimi (Samsung, Chrome auto-dark, Dark Reader)
   to'q kulrangni (--sur3) oqartirib yuborar, 0 yulduzli bosqich ham 3 yulduzli bo'lib ko'rinardi. O'rta kulrang esa teskari aylantirilganda ham
   deyarli o'zgarmaydi. Windows yuqori kontrast rejimida (forced colors) yulduzlar o'z rangida qoladi — aks holda hammasi bir xil oq bo'lardi. */
:root { --st-off: rgba(128, 136, 155, .17); }
:root[data-theme="light"] { --st-off: rgba(128, 136, 155, .27); }
#lvStars, .lv .st, .h-bar, .rs .stars { forced-color-adjust: none; }
.lv-head { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 12px; }
.lv-head h2 { margin: 0; font-size: 20px; }
#lvStars { color: var(--mut); font-weight: 650; display: inline-flex; align-items: center; gap: 5px; }
#lvStars svg { width: 16px; height: 16px; color: var(--amber); }
.lv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lv { position: relative; aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); background: var(--sur); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; font-weight: 780; font-size: 18px; font-variant-numeric: tabular-nums; }
.lv:hover { border-color: var(--line2); }
.lv.next { border-color: var(--acc); box-shadow: 0 0 0 3px var(--glow); }
.lv.lock { opacity: .42; cursor: default; }
.lv .st { display: flex; gap: 1px; height: 12px; }
.lv .st svg { width: 12px; height: 12px; color: var(--st-off); }
.lv .st svg.on { color: var(--amber); }
.lv .lk svg { width: 14px; height: 14px; color: var(--mut); }

/* ---------- o'yin */
body[data-view="game"] { overflow: hidden; }
#game { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding-top: 10px; height: calc(100dvh - 52px - env(safe-area-inset-top)); }
.hud { display: flex; align-items: stretch; gap: 8px; flex: none; }
.h-box { background: var(--sur); border: 1px solid var(--line); border-radius: 14px; padding: 6px 10px; display: flex; flex-direction: column; justify-content: center; min-width: 68px; }
.h-box b { font-size: 22px; font-weight: 820; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.h-box span { font-size: 11.5px; color: var(--mut); font-weight: 650; text-transform: lowercase; }
.h-moves { align-items: center; }
.h-moves.low b { color: var(--red); }
.h-score { min-width: 104px; align-items: stretch; }
.h-score b, .h-score span { text-align: right; }
.h-bar { position: relative; height: 6px; border-radius: 3px; background: var(--sur3); margin-top: 5px; overflow: visible; }
.h-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--amber); transition: width .35s ease; }
.h-bar .mk { position: absolute; top: -4px; width: 12px; height: 12px; margin-left: -6px; color: var(--st-off); }
.h-bar .mk.on { color: var(--amber); }
.h-bar .mk svg { width: 12px; height: 12px; display: block; }
.h-goals { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--sur); border: 1px solid var(--line); border-radius: 14px; padding: 4px 8px; }
.goal { display: flex; align-items: center; gap: 4px; font-weight: 760; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.goal img, .goal .ice { width: 30px; height: 30px; flex: none; }
.goal .ice { border-radius: 8px; background: var(--ice2); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.goal.done { color: var(--green); }
.goal .tgt { color: var(--mut); font-size: 12px; font-weight: 650; display: block; line-height: 1; }
.goal .gv { display: flex; flex-direction: column; }
.bwrap { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
#board { display: block; touch-action: none; border-radius: 18px; }
.g-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--mut); font-size: 13.5px; font-weight: 600; min-height: 36px; }
.g-foot .gu-btn svg { width: 16px; height: 16px; }

.intro { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line2); border-radius: 18px; padding: 16px 20px; min-width: 240px; max-width: 88%; text-align: center; box-shadow: 0 18px 50px var(--shadow); pointer-events: none; animation: pop .22s ease-out; }
.intro h3 { margin: 0 0 8px; font-size: 18px; }
.intro .gl { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.intro p { margin: 8px 0 0; color: var(--mut); font-size: 13.5px; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }

.result { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border-radius: 18px; }
.rs { background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; padding: 18px 18px 16px; width: min(360px, 100%); text-align: center; box-shadow: 0 22px 60px var(--shadow); animation: pop2 .25s ease-out; max-height: 100%; overflow: auto; }
@keyframes pop2 { from { opacity: 0; transform: scale(.96); } }
.rs h3 { margin: 0; font-size: 20px; letter-spacing: -.015em; }
.rs .sub { margin: 3px 0 0; color: var(--mut); font-size: 13.5px; }
.rs .stars { display: flex; justify-content: center; gap: 8px; margin: 12px 0 4px; }
.rs .stars svg { width: 38px; height: 38px; color: var(--st-off); }
.rs .stars svg.on { color: var(--amber); animation: star .35s ease-out backwards; }
.rs .stars svg.on:nth-child(2) { animation-delay: .12s; } .rs .stars svg.on:nth-child(3) { animation-delay: .24s; }
@keyframes star { from { transform: scale(.5); opacity: 0; } }
.rs .big { font-size: 34px; font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 6px 0 0; }
.rs .rows { margin: 10px 0 2px; display: grid; gap: 4px; font-size: 14px; }
.rs .rows div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--sur); }
.rs .rows span { color: var(--mut); } .rs .rows b { font-variant-numeric: tabular-nums; }
.rs .acts { display: grid; gap: 8px; margin-top: 14px; }
.rs .acts .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rs .note { font-size: 12.5px; color: var(--mut); margin-top: 8px; }
.rs .ad { margin-top: 12px; }

/* yotiq telefon va keng ekran: taxta chapda, ma'lumot o'ngda */
@media (orientation: landscape) and (max-height: 560px) {
  #game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); grid-template-rows: 1fr auto; column-gap: 14px; max-width: 900px; height: calc(100dvh - 52px - env(safe-area-inset-top)); }
  .bwrap { grid-column: 1; grid-row: 1 / span 2; align-items: center; justify-content: flex-end; }
  .hud { grid-column: 2; grid-row: 1; flex-direction: column; align-self: center; }
  .h-goals { flex: none; padding: 8px; flex-wrap: wrap; }
  .g-foot { grid-column: 2; grid-row: 2; flex-wrap: wrap; }
}
@media (min-width: 900px) and (min-height: 600px) {
  .scr { max-width: 640px; }
}

/* muqova (tools/seo/shot-mevazor.mjs): faqat taxta, kadr chetidan chetigacha */
.shot.bare .gu-bar, .shot.bare .hud, .shot.bare .g-foot, .shot #intro, .shot .gu-toast { display: none !important; }
.shot.bare #board { border-radius: 0; }
