:root {
  --bg: #060b16;
  --s1: #0b1324;
  --s2: #101b31;
  --line: #17233d;
  --line2: #22324f;
  --text: #eaf2ff;
  --muted: #8a9bb8;
  --dim: #55657f;
  --acc: #38bdf8;
  --acc-ink: #02121c;
  --red: #ff4040;
  --blue: #5eead4;
  --green: #62d394;
  --r: 18px;
  --font: 'Noto Sans Georgian', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
html { touch-action: pan-x pan-y; } /* 🔒 ორი თითით გადიდება არა (iOS 13+) */

body {
  margin: 0; color: var(--text);
  background: radial-gradient(900px 500px at 85% -10%, rgba(56,189,248,.13), transparent 60%), radial-gradient(700px 400px at -10% 30%, rgba(37,99,235,.10), transparent 60%), var(--bg);
  background-attachment: fixed;
  font-family: var(--font); font-size: 15px; line-height: 1.45;
  padding-bottom: env(safe-area-inset-bottom);
}
body.night { filter: grayscale(1) sepia(1) saturate(6) hue-rotate(-50deg) brightness(.6); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ── ზედა ზოლი */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(6, 11, 22, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  max-width: 1040px; margin: 0 auto;
}
.logo { width: 30px; height: 30px; color: var(--acc); flex: none; }
.logo svg { width: 100%; height: 100%; }
.setup-chip {
  flex: 1; min-width: 0; text-align: left;
  background: var(--s1); border: 1px solid var(--line); border-radius: 14px;
  padding: 7px 14px; display: flex; flex-direction: column;
}
.setup-chip span { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup-chip small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup-chip:hover { border-color: var(--line2); }
.icon-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  background: var(--s1); border: 1px solid var(--line); border-radius: 12px; color: var(--muted);
}
.icon-btn svg { width: 18px; height: 18px; }

/* ── ამინდის ზოლი */
.wx-line {
  display: flex; align-items: center; gap: 10px;
  width: calc(100% - 32px); max-width: 1008px; margin: 0 auto 4px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 4px 2px 12px; color: var(--muted); font-size: 13px; text-align: left;
}
.wx-line #wxText { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-line #wxText b { color: var(--text); font-weight: 600; }
.wx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.wx-dot.live { background: var(--green); box-shadow: 0 0 8px var(--green); }
.wx-edit { color: var(--acc); font-size: 12.5px; flex: none; }

/* ── სროლის ეკრანი */
.shoot {
  max-width: 1040px; margin: 0 auto; padding: 14px 16px 8px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start;
}
@media (max-width: 820px) { .shoot { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

.scope-box { position: relative; width: 100%; max-width: min(420px, 46vh); margin: 0 auto; aspect-ratio: 1; }
#reticle { width: 100%; height: 100%; display: block; }
.scope-dist {
  position: absolute; left: 0; top: 2px;
  font-family: var(--mono); font-weight: 700; font-size: 22px; color: var(--acc);
}
.scope-mode { position: absolute; right: 0; top: 0; }

.answer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ans { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 10px 10px; text-align: center; }
.ans b { display: block; font-family: var(--mono); font-size: 38px; line-height: 1; letter-spacing: -1px; }
.ans span { display: block; color: var(--acc); font-weight: 600; font-size: 14px; margin-top: 6px; }
.ans small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; font-family: var(--mono); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.facts b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.facts .bad { color: #ff9a9a; }

.alert.info { background: rgba(94,234,212,.07); border-color: rgba(94,234,212,.25); color: #b9d9ff; }
.alert { margin-top: 10px; padding: 9px 12px; border-radius: 12px; font-size: 13px; background: rgba(255,64,64,.08); border: 1px solid rgba(255,64,64,.3); color: #ffb3b3; }

/* ── მართვა */
.ctrl-col { display: flex; flex-direction: column; gap: 12px; }
.ctrl { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.ctrl.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.ctrl-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.ctrl-head span { font-weight: 600; }
.ctrl-head small { color: var(--muted); font-size: 12px; }

.stepper { display: grid; grid-template-columns: 52px 44px 1fr 44px 52px; gap: 6px; }
.stepper button { height: 48px; border-radius: 12px; border: 1px solid var(--line2); background: var(--s2); font-weight: 600; font-size: 15px; }
.stepper button:active, .mini-btn:active, .pills button:active { transform: scale(.96); }
.stepper input {
  min-width: 0; height: 48px; text-align: center; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line2);
  font-family: var(--mono); font-weight: 700; font-size: 24px; color: var(--acc); outline: none;
}
.stepper input:focus { border-color: var(--acc); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pills.col { flex-direction: column; margin-top: 0; }
.pills button {
  border: 1px solid var(--line2); background: transparent; border-radius: 999px;
  padding: 7px 13px; font-size: 13.5px; color: var(--muted); font-family: var(--font);
}
.pills button.mono { font-family: var(--mono); }
.pills button.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 700; }
.pills.col button { text-align: left; border-radius: 12px; display: flex; justify-content: space-between; gap: 8px; }
.pills.col button i { font-style: normal; font-family: var(--mono); font-size: 12px; opacity: .7; }

.wind-grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; align-items: center; }
.rose { position: relative; width: 150px; height: 150px; }
.rose svg { width: 100%; height: 100%; display: block; }
.rose .rb { cursor: pointer; }
.wind-exact { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.wind-exact input {
  width: 74px; text-align: center; height: 36px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line2); font-family: var(--mono); font-weight: 700; outline: none;
}
.mini-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line2); background: var(--s2); font-weight: 700; }

.toggle { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 0; padding: 4px 0; font-weight: 500; }
.tg { width: 40px; height: 24px; border-radius: 99px; background: var(--line2); position: relative; transition: background .2s; flex: none; }
.tg::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.toggle.on .tg { background: var(--blue); }
.toggle.on .tg::after { transform: translateX(16px); }
.incline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.incline b { font-family: var(--mono); color: var(--text); min-width: 36px; text-align: center; }

.seg { display: flex; background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 8px; border-radius: 9px; color: var(--muted); font-size: 13.5px; }
.seg button.on { background: var(--s2); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line2); }
.seg.mini button { padding: 5px 10px; font-size: 12px; }

.link { background: none; border: 0; color: var(--acc); font-size: 13px; padding: 4px; }

/* ── დეტალები */
.more { max-width: 1040px; margin: 0 auto; padding: 8px 16px 40px; }
.more details { border-top: 1px solid var(--line); }
.more summary { padding: 14px 2px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.more summary::after { content: '+'; color: var(--muted); font-family: var(--mono); }
.more details[open] summary::after { content: '−'; }
.more summary::-webkit-details-marker { display: none; }
.more details > *:last-child { margin-bottom: 16px; }
.table-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.table-wrap { overflow: auto; max-height: 460px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
th, td { padding: 8px 9px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { position: sticky; top: 0; background: var(--s1); color: var(--muted); font-family: var(--font); font-weight: 500; font-size: 11.5px; }
th:first-child, td:first-child { text-align: left; }
tr.zero td { color: var(--green); }
tr.target td { background: rgba(56,189,248,.13); color: var(--acc); font-weight: 700; }
#trajChart { width: 100%; aspect-ratio: 640 / 240; display: block; }
.muted { color: var(--muted); font-size: 13px; }
.muted.small, .small { font-size: 12px; }
.muted b { color: var(--text); }
.foot { color: var(--dim); font-size: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }

.row-inputs { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.row-inputs label { flex: 1; min-width: 90px; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
.row-inputs.four label { min-width: 70px; }
.row-inputs input, .row-inputs select, .search input, .custom-rifle input, .custom-rifle select {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 11px;
  background: var(--bg); border: 1px solid var(--line2); outline: none; font-variant-numeric: tabular-nums;
}
.row-inputs input:focus, .search input:focus { border-color: var(--acc); }
.btn {
  height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line2);
  background: var(--s2); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.big { width: 100%; height: 52px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; }
.btn.loading { opacity: .6; pointer-events: none; }

/* ── ოსტატი (sheet) */
.sheet-bg {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6);
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.sheet {
  width: 100%; max-width: 560px; max-height: 94vh; max-height: 94dvh;
  background: var(--s1); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
  animation: up .25s ease;
}
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; border-bottom: 1px solid var(--line); max-height: 88vh; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 26px; height: 6px; border-radius: 3px; border: 0; background: var(--line2); padding: 0; }
.dots button.on { background: var(--acc); }
.dots button.done { background: #1e6b93; }
.step { display: none; padding: 4px 18px 10px; overflow-y: auto; flex: 1; }
.step.on { display: block; }
.step h2 { font-size: 21px; margin: 4px 0 14px; font-weight: 700; }
.lbl { display: block; color: var(--muted); font-size: 12.5px; margin: 16px 0 0; }
.search { margin-top: 10px; }
.list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 300px; overflow-y: auto; border-radius: 12px; }
.list.short { max-height: 210px; }
.list:empty { display: none; }
.list li { padding: 11px 12px; border-radius: 10px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; cursor: pointer; }
.list li:hover, .list li.active { background: var(--s2); }
.list li.on { background: rgba(56,189,248,.12); color: var(--acc); }
.list li small { color: var(--muted); font-size: 12px; white-space: nowrap; font-family: var(--mono); }
.list li.grp { color: var(--dim); font-size: 11px; letter-spacing: .5px; text-transform: uppercase; padding: 10px 12px 2px; cursor: default; }
.list li.grp:hover { background: none; }
.list li.add { color: var(--acc); }
.list li.none { color: var(--muted); cursor: default; }
.picked { margin-top: 4px; }
.picked-name { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--s2); border-radius: 12px; border: 1px solid var(--line2); }
.picked-name b { font-size: 16px; }
.picked-line { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.picked-line b { color: var(--text); }
.custom-rifle { display: flex; gap: 8px; margin-top: 10px; }
.custom-rifle label { flex: 1; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
.est { margin: 16px 0 0; padding: 12px 14px; background: var(--bg); border-radius: 12px; border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.est b { color: var(--acc); font-family: var(--mono); font-size: 16px; }
.energy-card { margin-top: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ec-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ec-row span { display: block; color: var(--muted); font-size: 11.5px; }
.ec-row b { display: block; font-family: var(--mono); font-size: 22px; color: var(--acc); line-height: 1.2; }
.ec-row em { font-style: normal; color: var(--dim); font-size: 11.5px; font-family: var(--mono); }
details.exact { margin-top: 12px; }
details.exact summary { color: var(--acc); font-size: 13px; cursor: pointer; }
.wx-card { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wx-card div { background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; }
.wx-card span { display: block; color: var(--muted); font-size: 11px; }
.wx-card b { font-size: 14px; font-weight: 600; }
.wx-card .wide { grid-column: 1 / -1; }
.toggle-row { margin-top: 16px; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; height: 48px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: #17233d; border: 1px solid var(--line2); padding: 10px 16px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 60; font-size: 14px; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: var(--red); }

@media (max-width: 420px) {
  .wind-grid { grid-template-columns: minmax(0, 1fr) 130px; }
  .rose { width: 130px; height: 130px; }
  .ans b { font-size: 32px; }
  .stepper { grid-template-columns: 46px 40px 1fr 40px 46px; }
}

@media print {
  body { background: #fff; color: #000; filter: none !important; }
  .top, .wx-line, .shoot, .more details:not(#moreTable), .foot, .table-tools, .sheet-bg, .toast { display: none !important; }
  .table-wrap { max-height: none; border: 0; }
  th { background: #eee; color: #000; position: static; }
  td, th { color: #000 !important; border-bottom: 1px solid #ccc; }
  .print-head { display: block !important; font-size: 12px; margin-bottom: 8px; }
}
.print-head { display: none; }

/* ── სამიზნე / ბიძგები / პირობები */
.pills.scroll { flex-wrap: nowrap; overflow-x: auto; margin-top: 0; padding-bottom: 4px; scrollbar-width: none; }
.pills.scroll::-webkit-scrollbar { display: none; }
.pills.scroll button { flex: none; }
.gust-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.gust-row b { font-family: var(--mono); color: var(--text); min-width: 34px; text-align: center; }
.gust-row small { flex-basis: 100%; font-size: 12px; }
.cond { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cond-item { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px 6px; text-align: center; }
.cond-item.manual { border-color: rgba(56,189,248,.5); }
.cond-item span { display: block; font-size: 11.5px; color: var(--muted); }
.cond-item div { display: flex; align-items: center; justify-content: space-between; gap: 2px; margin: 2px 0; }
.cond-item button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line2); background: var(--s2); font-weight: 700; flex: none; }
.cond-item b { font-family: var(--mono); font-size: 16px; min-width: 0; }
.cond-item em { font-style: normal; font-size: 11px; color: var(--dim); }
#condReset { margin-top: 6px; }
.badge { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; font-size: 13px; }
.badge.ok { background: rgba(98,211,148,.08); border: 1px solid rgba(98,211,148,.3); color: var(--green); }
.badge.bad { background: rgba(255,64,64,.08); border: 1px solid rgba(255,64,64,.3); color: #ffb3b3; }
.est { display: flex; align-items: center; gap: 14px; }
.est .big { font-family: var(--mono); font-size: 34px; font-weight: 700; color: var(--acc); line-height: 1; white-space: nowrap; }
.est .big small { font-size: 15px; }
.est p { margin: 0; font-size: 13px; }
.list li small b { color: var(--acc); font-weight: 500; }
.need-pellet { color: var(--acc); }
.scope-cap { position: absolute; left: 0; right: 0; bottom: -2px; text-align: center; font-size: 12px; color: #ff9a9a; pointer-events: none; }
.howto {
  margin-top: 12px; padding: 14px 16px; border-radius: var(--r);
  background: rgba(255,211,77,.07); border: 1px solid rgba(255,211,77,.35);
  font-size: 16px; line-height: 1.6;
}
.howto b { color: #ffd34d; white-space: nowrap; }
.howto small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 6px; }
.howto .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ffd34d; color: #1a1405; font-weight: 700; font-size: 12px; margin-right: 8px; font-family: var(--mono); }
.ans span { font-size: 13px; }
.how-btn { width: 100%; margin-top: 10px; height: 46px; border-color: rgba(255,211,77,.4); color: #ffd34d; background: transparent; }
.anim-bg { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.82); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.anim { width: 100%; max-width: 440px; text-align: center; animation: up .25s ease; }
#animCv { width: min(100%, 72vh); aspect-ratio: 1; display: block; margin: 0 auto; }
.anim-cap { min-height: 52px; font-size: 16px; margin: 12px 0; line-height: 1.5; }
.anim-cap b { color: #ffd34d; }
.anim-cap b.ok { color: var(--green); font-size: 20px; }
.anim-cap .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ffd34d; color: #1a1405; font-weight: 700; font-size: 12px; margin-right: 8px; font-family: var(--mono); }
.anim-foot { display: flex; gap: 10px; }
.anim-foot .btn { flex: 1; height: 46px; }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 1008px; width: calc(100% - 32px); margin: 8px auto 0; padding: 10px 14px; border-radius: 14px; background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.3); font-size: 13px; color: var(--muted); }
.welcome b { color: var(--text); }
.welcome > div { display: flex; flex: none; }
.link.dim { color: var(--muted); }
.sheet-head .reset { margin-left: auto; margin-right: 8px; font-size: 12.5px; }
.hit { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); }
.hit-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.hit-top b { font-family: var(--mono); font-size: 24px; }
.hit.ok .hit-top b { color: var(--green); } .hit.mid .hit-top b { color: var(--acc); } .hit.bad .hit-top b { color: var(--red); }
.hit .bar { height: 6px; border-radius: 3px; background: var(--line); margin: 8px 0; overflow: hidden; }
.hit .bar i { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.hit.mid .bar i { background: var(--acc); } .hit.bad .bar i { background: var(--red); }
.hit small { color: var(--muted); font-size: 12.5px; }
.hit small b { color: var(--text); }
.ctrl.row { flex-wrap: wrap; }
#gunPills button i { font-style: normal; margin-left: 8px; opacity: .6; }
#gunPills button.add { border-style: dashed; color: var(--acc); }
.guns { margin-bottom: 6px; }

/* ── ლურჯი თემა: ღილაკები და აქცენტები */
.btn.primary { background: linear-gradient(135deg, #38bdf8, #2563eb); border: 0; color: #fff; box-shadow: 0 6px 20px rgba(37,99,235,.25); }
.btn.primary:hover { filter: brightness(1.08); }
.pills button.on { background: linear-gradient(135deg, #38bdf8, #2563eb); border-color: transparent; color: #fff; }
.dots button.on { background: linear-gradient(90deg, #38bdf8, #2563eb); }
.stepper input { color: #7dd3fc; }
.scope-dist { color: #7dd3fc; }
.ans span { color: #7dd3fc; }
.page-tabs { width: max-content; margin: 2px auto 8px; }
.ret-btn { position: absolute; left: 0; bottom: 4px; z-index: 2; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(56,189,248,.45); background: rgba(6,11,22,.8); color: #7dd3fc; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(6px); }
.ret-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .ret-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ret-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); color: var(--text); text-align: center; }
.ret-grid button.on { border-color: var(--acc); box-shadow: 0 0 0 2px rgba(56,189,248,.35); }
.ret-grid canvas { width: 100%; aspect-ratio: 1; display: block; }
.ret-grid b { font-size: 13px; }
.ret-grid small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.how-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.how-row .how-btn { margin-top: 0; }
.anim.tur { max-width: 520px; }
#turCv { width: 100%; aspect-ratio: 1 / 0.82; display: block; }
.tur-note { margin: 0 0 12px; }
.tur-note b { color: var(--text); }
.toggle-btn { flex: 0 0 auto !important; gap: 8px; }
.toggle-btn .tg { width: 32px; height: 20px; }
.toggle-btn .tg::after { width: 14px; height: 14px; }
.toggle-btn.on .tg { background: var(--acc); }
.toggle-btn.on .tg::after { transform: translateX(12px); }
.cap-note { font-size: 13px; line-height: 1.5; color: #fde68a; background: rgba(250,204,21,.08); border: 1px solid rgba(250,204,21,.3); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.cap-note b { color: #facc15; }
.anim-steps { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.anim-steps span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line2); color: var(--muted); }
.anim-steps span.on { background: linear-gradient(135deg, #38bdf8, #2563eb); border-color: transparent; color: #fff; font-weight: 700; }
.anim-steps span.done { color: #7dd3fc; border-color: rgba(56,189,248,.4); }
.anim-prog { height: 4px; border-radius: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.anim-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #38bdf8, #2563eb); }
.anim-cap { min-height: 72px; }
.anim-cap b.bad { color: #ff8a8a; font-size: 18px; }
.ret-btn.view-btn { left: auto; right: 0; }
.inc-grid { margin-top: 10px; }
.inc-grid .incline { justify-content: flex-start; }
.inc-grid .incline b { min-width: 56px; font-size: 15px; }
.inc-grid .pills { margin-top: 8px; }
#incSvg { width: 100%; height: auto; display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.inc-out { margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.inc-out b { color: #7dd3fc; }
.inc-out small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.inc-out small b { color: var(--text); }
@media (max-width: 420px) { .inc-grid { grid-template-columns: 1fr; } #incSvg { max-width: 240px; margin: 0 auto; } }

#incCv { width: 100%; aspect-ratio: 2 / 1; display: block; border-radius: 12px; margin-top: 12px; border: 1px solid var(--line); }
#incPlay { width: 100%; margin-top: 8px; }
.cond { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 520px) { .cond { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.alt-out { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.alt-out b { color: #7dd3fc; }
.dirseg { margin-bottom: 10px; }
.dirseg button { font-size: 13px; padding: 10px 6px; }
.dirseg button.on { background: linear-gradient(135deg, #38bdf8, #2563eb); color: #fff; box-shadow: none; }
#incMode { margin-top: 2px; }

.cal-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13px; }
.cal-list div { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.cal-list button { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 0 4px; }
.cal-h { margin: 16px 0 4px; font-size: 13px; }

/* ბარაბნის მეხსიერება */
.tur-now { background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.25); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; }
.tur-act { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.tur-act .btn { flex: 1 1 140px; }
.tur-opts { display: grid; gap: 8px; margin: 6px 0; font-size: 12px; }
.tur-opts > div { display: flex; flex-direction: column; gap: 4px; }
.tur-opts span { opacity: .75; }
.howto, .howto b { white-space: normal; overflow-wrap: anywhere; }

/* ── ცოცხალი ბანერი */
.hero { position: relative; max-width: 1040px; margin: 4px auto 10px; height: clamp(170px, 30vw, 260px); border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.06); }
@media (max-width: 1060px) { .hero { margin-left: 12px; margin-right: 12px; } }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-txt { position: absolute; left: 18px; top: 14px; pointer-events: none; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero-txt h1 { margin: 0; font-size: clamp(20px, 5.4vw, 30px); font-weight: 700; letter-spacing: .01em; color: #f6efe2; }
.hero-txt h1 span { color: #ffd34d; }
.hero-txt p { margin: 2px 0 0; font-size: 13px; color: rgba(246,239,226,.85); }

/* ── ბარათების დახვეწა */
.ans, .ctrl, .howto { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)) , var(--s1); box-shadow: 0 10px 30px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05); }
.ans b { text-shadow: 0 0 18px rgba(56,189,248,.25); }
.btn.primary, .seg button.on { transition: background .2s, box-shadow .2s; }
@media (prefers-reduced-motion: no-preference) {
  .ans, .ctrl { transition: transform .15s ease; }
  .ans:active, .ctrl:active { transform: scale(.995); }
}
.btn.rezero { background: linear-gradient(180deg, #ffd34d, #e5b630); color: #1a1405; font-weight: 700; border-color: transparent; }
/* ფოტოთი ძებნის შედეგი (ძებნის ველის ქვეშ) და ამოცნობილი ტყვიის ციმციმი */
.ocr-note { margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(53,208,127,.55); background: rgba(53,208,127,.1); color: #e6f7ec; font-size: 13px; line-height: 1.4; }
.ocr-note b { color: #7ee0a8; } .ocr-note.bad { border-color: rgba(255,194,26,.55); background: rgba(255,194,26,.08); color: #f3ead2; }
@keyframes ocrHit { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,194,26,0); } 30%, 70% { box-shadow: 0 0 0 4px rgba(255,194,26,.75); } }
li.ocr-hit { animation: ocrHit 1.2s ease-in-out 2; }
/* ფოტომდე რჩევა: როგორ გადავიღო სწორად */
.ocr-tip { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(3,6,10,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ocr-tw { width: 100%; max-width: 420px; padding: 18px 18px 14px; border-radius: 18px; border: 1px solid #d9a548; background: #0f1621; color: #eef2f7; box-shadow: 0 20px 60px rgba(0,0,0,.6); font-family: 'Noto Sans Georgian', Arial, sans-serif; }
.ocr-tw > b { display: block; font-size: 16px; margin-bottom: 8px; color: #ffe08a; }
.ocr-tw ul { margin: 0 0 8px; padding-left: 20px; font-size: 13.5px; line-height: 1.5; color: #d7dfea; } .ocr-tw li { margin: 4px 0; } .ocr-tw li b { color: #fff; }
.ocr-tw small { display: block; font-size: 11.5px; color: #97a3b4; margin-bottom: 12px; }
.ocr-tw .ocr-go { width: 100%; padding: 13px; border: 0; border-radius: 12px; font: 800 15px 'Noto Sans Georgian', Arial, sans-serif; color: #1a1405; background: linear-gradient(180deg, #ffe08a, #d9a548); cursor: pointer; }
.ocr-tw label { display: flex; align-items: center; gap: 8px; margin: 10px 2px 2px; font-size: 12.5px; color: #c9d3e0; }
.ocr-tw .ocr-x { width: 100%; margin-top: 6px; padding: 8px; border: 0; background: none; color: #97a3b4; font: 600 13px 'Noto Sans Georgian', Arial, sans-serif; cursor: pointer; }
/* სიების გაშლა / დაკეცვა */
.list li.fold { display: flex; justify-content: center; align-items: center; margin: 6px 0; padding: 12px; border: 1.5px dashed rgba(217,165,72,.6); border-radius: 12px; color: #ffe08a; font-weight: 800; font-size: 14px; cursor: pointer; background: rgba(217,165,72,.06); }
.list li.fold[data-fold="0"] { border-style: solid; border-color: rgba(201,211,224,.35); color: #c9d3e0; background: transparent; }
.u9-search { margin: 10px 0 6px; }
/* დაკეცილი სიის ელემენტები — ნამდვილად დამალული (display:flex/grid აღარ „აჩენს“) */
.list li[hidden], #scopeList li[hidden], #pelletList li[hidden], #rifleList li[hidden] { display: none !important; }
html.ui3 #scopeList.scl > li[hidden], html.ui3 #scopeList.scl > li[data-id][hidden], html.ui3 #pelletList.plc > li[hidden], html.ui3 #pelletList > li[data-id][hidden], html.ui3 #rifleList > li[hidden] { display: none !important; }
/* „▴ სიის დაკეცვა“ — სიაში სქროლისას ყოველთვის ჩანს (ზემოთ მიკრული) */
.list li.fold[data-fold="0"]:first-child { position: sticky; top: 0; z-index: 3; margin-top: 0; background: #141b25; border-color: rgba(217,165,72,.6); color: #ffe08a; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
html.ui3 .sheet .step .list li.fold[data-fold="0"]:first-child { background: #141b25; }
/* ამინდის დეტალები — ჩამოსაშლელი */
.wg-tg { display: block; width: 100%; margin: 10px 0 8px; padding: 13px 14px; border-radius: 14px; border: 1px dashed rgba(217,165,72,.6); background: rgba(233,178,60,.08); color: #ffe08a; font: 800 14.5px 'Noto Sans Georgian', Arial, sans-serif; text-align: center; cursor: pointer; }
.wg-tg small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: #a9b4c2; }
.wg-tg.on { border-style: solid; }
.wg[hidden] { display: none !important; }
/* სიის გაშლის ღილაკი — ამინდის ღილაკის მსგავსად (ოქროსფერი ჩარჩო) */
html.ui3 .sheet .step .list li.fold[data-fold="1"] { border: 1.5px dashed rgba(217,165,72,.6) !important; background: rgba(233,178,60,.08) !important; color: #ffe08a; border-radius: 14px; padding: 13px 14px; }
/* ძებნის ველში — ▾ ისარი სიის გასაშლელად */
.rq-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.rq-wrap > input { flex: 1; min-width: 0; width: 100%; padding-right: 46px !important; }
.rq-tg { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: rgba(233,178,60,.12); color: #ffe08a; cursor: pointer; }
.rq-tg svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.rq-tg.on svg { transform: rotate(180deg); }
/* ოპტიკის სიმაღლე — ზუსტი ზომის ჩაწერა */
#heightPills { display: block !important; }
.sh-in { display: flex; gap: 10px; align-items: stretch; margin: 8px 0 4px; }
.sh-in label { flex: 1; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 14px; border: 1.5px solid rgba(217,165,72,.6); background: #0b1018; }
.sh-in input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: 800 22px Arial, sans-serif; padding: 12px 0; outline: none; }
.sh-in em { font-style: normal; font-size: 14px; color: #a9b4c2; }
.sh-in button { flex: none; padding: 0 18px; border-radius: 14px; border: 0; background: linear-gradient(180deg, #ffe08a, #d9a548); color: #1a1405; font: 900 14px 'Noto Sans Georgian', Arial, sans-serif; cursor: pointer; }
.sh-in button { white-space: nowrap; min-width: 112px; } .sh-in label { min-width: 0; }
#heightPills button.sh-cam.sh-cam { display: block; width: 100%; margin: 10px 0; padding: 0 !important; overflow: hidden; border-radius: 16px !important; border: 1.5px solid rgba(217,165,72,.6) !important; background: #0f1724 !important; color: #fff !important; text-align: left; cursor: pointer; font: 400 14px 'Noto Sans Georgian', Arial, sans-serif !important; }
#heightPills .sh-cam .sh-pic { display: block; position: relative; margin: 0; padding: 12px 12px 6px; background: radial-gradient(ellipse at 50% 55%, #33415a 0%, #1a2436 50%, #0f1724 100%); }
#heightPills .sh-cam .sh-pic img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 440; }
#heightPills .sh-cam .sh-pic svg { position: absolute; left: 12px; right: 12px; top: 12px; width: calc(100% - 24px); height: auto; aspect-ratio: 1400 / 440; overflow: visible; }
#heightPills .sh-cam .sh-cap { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(180deg, rgba(255,207,74,.14), rgba(255,207,74,.05)); border-top: 1px solid rgba(217,165,72,.25); }
#heightPills .sh-cam .sh-cap i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(180deg, #ffe08a, #d9a548); box-shadow: 0 4px 12px rgba(217,165,72,.35); } #heightPills .sh-cam .sh-cap > span { display: block; flex: 1; min-width: 0; }
#heightPills .sh-cam .sh-cap u { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,207,74,.6); color: #ffe08a; text-decoration: none; font-size: 20px; font-weight: 900; line-height: 1; }
#heightPills .sh-cam .shp { transform-box: fill-box; transform-origin: center; animation: shPulse 1.6s ease-in-out infinite; } @keyframes shPulse { 50% { transform: scale(1.18); } }
#heightPills .sh-cam .sh-pic { padding: 14px 8px 8px !important; }
#heightPills .sh-cam .sh-pic svg { left: 8px !important; right: 8px !important; top: 14px !important; width: calc(100% - 16px) !important; }
#heightPills .sh-cam b { display: block; font-size: 15px; font-weight: 800; color: #ffe08a; } #heightPills .sh-cam small { display: block; font-size: 12px; color: #a9b4c2; line-height: 1.4; }
#heightPills .sh-hint { display: flex; align-items: center; gap: 10px; margin: 12px 0 -2px; padding: 0 4px; font: 13px/1.45 'Noto Sans Georgian', Arial, sans-serif; color: #cfd6e0; }
#heightPills .sh-hint b { color: #ffe08a; } #heightPills .sh-hint i { flex: none; font-style: normal; font-size: 20px; color: #ffcf4a; animation: shHop 1.1s ease-in-out infinite; }
@keyframes shHop { 50% { transform: translateY(5px); } }
#heightPills button.sh-cam.sh-cam { position: relative; }
#heightPills .sh-cam em { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 3px 10px; border-radius: 99px; background: linear-gradient(180deg, #ffe08a, #d9a548); color: #1a1405; font-style: normal; font-size: 11.5px; font-weight: 900; }
html:not(.is-admin) #modeTg { grid-template-columns: 1fr 1fr !important; }   /* გლუვლულიანის გარეშე — 2 ღილაკი მთელ სიგანეზე */
html:not(.is-admin) .u8-chips [data-act="hmap"], html:not(.is-admin) .hm-ov [data-know] { display: none !important; }   /* 🥾 ლაშქრობა — დროებით მხოლოდ ადმინს */
html:not(.is-admin) #ui3 .u8-chips { grid-template-columns: 1fr 1fr !important; }   /* დარჩენილი 2 ველი — მთელ სიგანეზე */

/* ⚖️ ზოგადი გაფრთხილება — კანონი / საშიში თემები */
.lw-note { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 8px; padding: 11px 13px; border-radius: 12px; background: rgba(217,165,72,.09); border: 1px solid rgba(217,165,72,.38); border-left: 4px solid #d9a548; color: #c9d2de; font-size: 12.5px; line-height: 1.5; text-align: left; }
.lw-note > b { color: #e6b45a; font-size: 13px; }
.lw-note span b { color: #e8edf3; }
