/* 10.10.2026: планировщик прокачки (/planner) — в стиле калькулятора крафта (те же цвета, кнопки, карточки) */
.lp {
  --ink: #1f2a36; --txt: #3e4a57; --mut: #6b7785; --mut2: #8b96a2;
  --line: #e3e8ee; --line2: #eef2f6; --soft: #f5f7fa; --seg: #e9eef3;
  --acc: #2c5288; --acc2: #eaf1f9; --focus: #b8cdea; --r: 8px;
}
#lp.lp { display: flow-root; }
.sbnopad img { max-width: 100%; height: auto; }
.lp a { text-decoration: none; }
.lp a:hover { text-decoration: underline; text-underline-offset: 2px; }
.lp :focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.lp-lead { color: var(--txt); max-width: 780px; margin: 0 0 18px; line-height: 1.55; }
.lp-note { color: var(--mut); font-size: 13px; line-height: 1.5; margin: 8px 0 0; }
.lp-h2 { font-size: 20px; font-weight: 600; margin: 30px 0 12px; color: var(--ink); }
.lp-noic { display: inline-block; width: 32px; height: 32px; border-radius: 7px; background: var(--seg); flex: none; }

/* ---------- выбор класса */
.lp-races { display: flex; flex-direction: column; gap: 6px; }
.lp-race h2 { font-size: 17px; font-weight: 600; margin: 18px 0 8px; color: var(--ink); }
.lp-cls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.lp-cls li { list-style: none !important; margin: 0; }
.lp-cls a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.lp-cls a:hover { border-color: #9fb6c9; box-shadow: 0 4px 14px rgba(20, 40, 60, .08); }
.lp-cls a:hover b { color: var(--acc); }
.lp-cls img { width: 36px; height: 36px; border-radius: 8px; flex: none; box-shadow: 0 0 0 1px rgba(20, 40, 60, .14); }
.lp-cls b { display: block; font-weight: 600; }
.lp-cls small { display: block; color: var(--mut); font-size: 12px; line-height: 1.35; margin-top: 1px; }
.lp-cls-sm img { width: 28px; height: 28px; }

/* ---------- путь класса */
.lp-path { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.lp-path li { list-style: none !important; margin: 0; position: relative; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lp-path li img { width: 32px; height: 32px; border-radius: 7px; flex: none; box-shadow: 0 0 0 1px rgba(20, 40, 60, .14); }
.lp-path li span { min-width: 0; }
.lp-path b { display: block; font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.lp-path small { color: var(--mut); font-size: 12px; }
.lp-path li.is-cur { border-color: var(--acc); background: var(--acc2); box-shadow: 0 0 0 1px var(--acc) inset; }

/* ---------- «Мой уровень» */
.lp-now { margin: 0 0 8px; }
.lp-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; background: var(--soft); border-radius: 12px; margin-bottom: 12px; }
.lp-pick label { font-weight: 600; color: var(--ink); margin: 0; }
.lp-step { display: inline-flex; height: 36px; border: 1px solid #cfd7e1; border-radius: var(--r); overflow: hidden; background: #fff; }
.lp-step:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(44, 82, 136, .14); }
.lp-step button { width: 34px; border: 0; background: #f2f5f8; color: var(--txt); font-size: 17px; cursor: pointer; }
.lp-step button:hover { background: var(--acc2); color: var(--acc); }
.lp-step input { width: 56px; height: 100%; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 16px; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.lp-step input::-webkit-inner-spin-button, .lp-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.lp-step input:focus { outline: 0; }
.lp-pick input[type=range] { flex: 1 1 180px; min-width: 140px; accent-color: var(--acc); }
.lp-marks { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--seg); border-radius: 10px; }
.lp-marks button { height: 26px; min-width: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: #4a5866; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.lp-marks button:hover { background: rgba(255, 255, 255, .6); color: var(--ink); }
.lp-marks button[aria-pressed="true"] { background: #fff; color: var(--acc); box-shadow: 0 1px 3px rgba(20, 40, 60, .16); }
.lp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; margin-bottom: 12px; }
.lp-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lp-wide { margin-bottom: 12px; }
.lp-card h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mut); }
.lp-card h3 small { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--mut2); }
.lp-chk { margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--txt); cursor: pointer; }
.lp-chk input { margin: 0; accent-color: var(--acc); }
.lp-cur { display: flex; align-items: center; gap: 12px; }
.lp-cur img { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(20, 40, 60, .14); }
.lp-cur b { display: block; font-size: 17px; color: var(--ink); }
.lp-cur small { color: var(--mut); font-size: 12.5px; }
.lp-kv { margin: 12px 0 0; font-size: 13.5px; color: var(--txt); }
.lp-kv span { color: var(--mut); margin-right: 8px; }
.lp-kv b { color: var(--ink); }
.lp-next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.lp-next li { list-style: none !important; margin: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 10px; }
.lp-next .lp-in { grid-row: span 2; font-size: 12px; font-weight: 600; color: var(--acc); padding-top: 2px; }
.lp-next a { font-weight: 600; }
.lp-next small { color: var(--mut); font-size: 12px; }
.lp-zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.lp-zh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line2); margin-bottom: 4px; }
.lp-zh b { color: var(--ink); }
.lp-zh small { color: var(--mut2); font-size: 12px; white-space: nowrap; }
.lp-zone ul { list-style: none; margin: 0; padding: 0; }
.lp-zone li { list-style: none !important; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 48px 40px 84px; align-items: baseline; gap: 6px; padding: 3px 0; font-size: 13.5px; }
.lp-ml { text-align: right; }
.lp-tags { display: inline-flex; gap: 3px; }
.lp-zone li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-ml { color: var(--mut); font-size: 12px; white-space: nowrap; }
.lp-me { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 12.5px; }
.lp-tag { padding: 0 5px; border-radius: 4px; font-size: 10.5px; font-weight: 700; line-height: 16px; white-space: nowrap; }
.lp-ag { background: #fdecea; color: #b3261e; }
.lp-sp { background: #e6f4ea; color: #1f6b3a; }
.lp-sub { margin: 0 0 6px; font-size: 13px; color: var(--mut); }
.lp-skw { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lp-sk { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 13px; color: var(--ink); }
.lp-sk img { width: 20px; height: 20px; border-radius: 4px; flex: none; }
.lp-sk small { color: var(--mut); font-size: 11.5px; }
.lp-soon .lp-sk { background: var(--soft); color: var(--txt); }
.lp-up { margin: -2px 0 10px; font-size: 13px; line-height: 1.6; color: var(--txt); }
.lp-up span { color: var(--mut); }
.lp-up small { color: var(--mut2); }

/* ---------- план по уровням */
.lp-stage { padding: 4px 0 6px 16px; margin: 0 0 14px; border-left: 3px solid var(--line); }
.lp-stage.is-cur { border-left-color: var(--acc); }
.lp-stage h3 { font-size: 17px; font-weight: 600; margin: 4px 0 8px; color: var(--ink); }
.lp-stage h4 { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mut); margin: 14px 0 6px; }
.lp-goals { list-style: none; margin: 0; padding: 0; }
.lp-goals li { list-style: none !important; margin: 0 0 4px; line-height: 1.55; color: var(--txt); }
.lp-goals b { color: var(--ink); margin-right: 4px; }
.lp-bands, .lp-skl { display: flex; flex-direction: column; gap: 6px; }
.lp-band, .lp-skr { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.lp-bl { font-size: 12.5px; font-weight: 700; color: var(--mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-band p { margin: 0 0 3px; font-size: 13.5px; line-height: 1.5; color: var(--txt); }
.lp-band b { color: var(--ink); }
.lp-band small { color: var(--mut2); }
/* 10.10.2026: снаряжение по грейдам, ссылки на районы и карту монстров, гайд по классу */
.lp-eqs .lp-bl small { display: block; font-weight: 400; font-size: 11.5px; color: var(--mut2); }
.lp-eqk { display: inline-block; min-width: 54px; margin-right: 4px; font-size: 12px; color: var(--mut); }
.lp-it + .lp-it::before { content: " · "; color: var(--mut2); }
.lp-cr { display: inline-block; margin-left: 3px; padding: 0 5px; border-radius: 4px; background: var(--acc2); color: var(--acc) !important; font-size: 11px; line-height: 16px; vertical-align: 1px; text-decoration: none !important; }
.lp-cr:hover { background: #dbe7f5; }
.lp-map { margin-left: 6px; font-size: 12px; white-space: nowrap; }
.lp-zn { font-weight: 600; }
.lp-zh small a { color: var(--acc); }
.lp-gear { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: var(--txt); }
.lp-guide { margin: 0 0 14px; font-size: 14px; }
.lp-skr > div { display: flex; flex-wrap: wrap; gap: 5px; }
.lp-more { margin: 18px 0 0; font-size: 13.5px; }
.lp-foot { color: #98a3ae; font-size: 12px; line-height: 1.5; margin-top: 24px; }

@media (max-width: 900px) {
  .lp-grid { grid-template-columns: 1fr; }
  .lp-zones { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .lp-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-pick input[type=range] { flex-basis: 100%; order: 3; }
  .lp-marks { order: 4; }
  .lp-next li { grid-template-columns: 1fr; }
  .lp-next .lp-in { grid-row: auto; padding: 0; }
  .lp-stage { padding-left: 12px; }
  .lp-band, .lp-skr { grid-template-columns: 1fr; gap: 3px; }
  .lp-chk { margin-left: 0; flex-basis: 100%; }
  .lp-zone li { grid-template-columns: minmax(0, 1fr) 44px 36px 80px; gap: 4px; }
}

/* 10.10.2026: переключатель хроник и описание класса (High Five) */
.lp-chr { display: inline-flex; gap: 2px; padding: 3px; background: var(--seg); border-radius: 10px; margin: 0 0 16px; }
.lp-chr a { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 7px; color: #4a5866; font-weight: 600; font-size: 14px; text-decoration: none !important; transition: background .15s, color .15s; }
.lp-chr a:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.lp-chr a[aria-current] { background: #fff; color: var(--acc); box-shadow: 0 1px 3px rgba(20, 40, 60, .16); }
.lp-about { margin: 0 0 16px; padding: 12px 16px; background: var(--soft); border-radius: 12px; font-size: 14px; line-height: 1.6; color: var(--txt); }
.lp-about p { margin: 0; }
.lp-about-kv { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 8px !important; font-size: 13.5px; }
.lp-about-kv span { color: var(--mut); }
.lp-about-kv b { color: var(--ink); font-weight: 600; }
.lp-zone li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 10.10.2026: всплывающая карточка монстра / предмета (только для мыши) */
.lp-tip { position: fixed; z-index: 1000; width: 300px; max-width: calc(100vw - 16px); padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20, 40, 60, .18), 0 2px 6px rgba(20, 40, 60, .08); font-size: 13px; line-height: 1.45; color: var(--txt); pointer-events: none; }
.lp-tip[hidden] { display: none; }
.lp-tip-h { display: flex; gap: 10px; align-items: flex-start; }
.lp-tip-h b { display: block; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.lp-tip-h small { display: block; color: var(--mut); font-size: 12px; }
.lp-tip-shot { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--soft); flex: none; }
.lp-tip-ic { width: 32px; height: 32px; border-radius: 6px; flex: none; image-rendering: pixelated; }
.lp-tip-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.lp-tip .lp-tag { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--seg); color: var(--txt); font-size: 11px; line-height: 17px; }
.lp-tip .lp-tl { background: var(--acc2); color: var(--acc); font-weight: 600; }
.lp-tip-st { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line2); }
.lp-tip-st div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.lp-tip-st dt { margin: 0; font-weight: 400; font-style: normal; line-height: 1.4; color: var(--mut); }
.lp-tip-st dd { margin: 0; font-weight: 600; line-height: 1.4; color: var(--ink); font-variant-numeric: tabular-nums; }
.lp-tip-d { margin: 8px 0 0; }
.lp-tip-d span { color: var(--mut); }
.lp-tip-f { margin: 8px 0 0; font-size: 11.5px; color: var(--mut2); }

/* 10.10.2026: карточку можно навести курсором и нажать кнопки внутри; подсказки к умениям */
.lp-tip { pointer-events: auto; }
.lp-tip-a { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 9px 0 0; border-top: 1px solid var(--line2); }
.lp-tip-a a { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--acc2); color: var(--acc) !important; font-size: 12.5px; font-weight: 600; text-decoration: none !important; }
.lp-tip-a a:hover { background: #dbe7f5; }
.lp-tip-w { color: var(--mut2); font-style: italic; }
.lp-sk[data-sk], .lp-skn { cursor: help; }
.lp-sk[data-sk]:hover { border-color: #9fb6c9; }
.lp-skn { border-bottom: 1px dotted var(--mut2); }

/* 10.10.2026: выбор класса — сразу спрашиваем уровень и класс */
.lp-start { display: flex; flex-direction: column; gap: 14px; margin: 0 0 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(20, 40, 60, .05); }
.lp-start .lp-pick { margin: 0; }
.lp-qh { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.lp-qh label { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.lp-qn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.lp-find { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; background: var(--soft); border-radius: 12px; }
.lp-find input[type=search] { flex: 1 1 260px; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid #cfd7e1; border-radius: var(--r); background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.lp-find input[type=search]:focus { outline: 0; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(44, 82, 136, .14); }
.lp-rf { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--seg); border-radius: 10px; }
.lp-rf button { height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: #4a5866; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lp-rf button:hover { background: rgba(255, 255, 255, .6); color: var(--ink); }
.lp-rf button[aria-pressed="true"] { background: #fff; color: var(--acc); box-shadow: 0 1px 3px rgba(20, 40, 60, .16); }
.lp-hint { margin: 8px 0 0; font-size: 13px; color: var(--mut); }
.lp-cont { margin: 0; }
.lp-cont[hidden] { display: none; }
.lp-cont a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--acc2); color: var(--ink); text-decoration: none !important; }
.lp-cont a:hover { background: #dbe7f5; }
.lp-cont img { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.lp-cont span { flex: 1 1 auto; min-width: 0; }
.lp-cont b { color: var(--acc); }
.lp-cont small { color: var(--mut); font-size: 12.5px; white-space: nowrap; }
.lp-cont a::after { content: "→"; color: var(--acc); font-weight: 700; }
.lp-cls small i { font-style: normal; }
.lp-cls small i.on { color: var(--acc); font-weight: 700; }
.lp-race[hidden], .lp-cls li[hidden], .lp-empty[hidden] { display: none !important; }
@media (max-width: 700px) {
  .lp-start { padding: 12px; }
  .lp-find { padding: 10px; }
  .lp-find input[type=search] { flex-basis: 100%; }
}
