/* RPG Studio — «Хроники Варлодов». Классы с префиксом vl-, чтобы не
   задеть общие стили сайта; цвета — токены из style.css (:root). */

.vl-head { padding: clamp(28px, 5vw, 56px) 0 clamp(18px, 3vw, 28px); }
.vl-dev-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #1a1206; background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #d99a3d);
  padding: 6px 14px; border-radius: 999px;
}
.vl-dev-badge svg { width: 15px; height: 15px; }
.vl-head-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.vl-head-tags .eyebrow { margin-bottom: 16px; }
.vl-lead { margin-top: 12px; }

/* ---------- Три ветви ---------- */
.vl-branches { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .vl-branches { grid-template-columns: 1fr; } }
.vl-branch { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.vl-branch-ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 14px; border: 1px solid var(--border);
}
.vl-branch-ic svg { width: 24px; height: 24px; }
.vl-branch-blade .vl-branch-ic { color: #fff; background: linear-gradient(135deg, #c2487a, #a83a5c); }
.vl-branch-word .vl-branch-ic { color: #fff; background: linear-gradient(135deg, var(--violet), #5b4fd6); }
.vl-branch-shadow .vl-branch-ic { color: #fff; background: linear-gradient(135deg, var(--teal), #2f8f82); }
.vl-branch h3 { margin-bottom: 6px; }
.vl-branch p { color: var(--text-2); font-size: .94rem; }

/* ---------- Круг ветвей ---------- */
.vl-circle-wrap { display: flex; justify-content: center; margin: 28px 0 8px; }
.vl-circle-wrap svg { width: 100%; max-width: 360px; height: auto; }
.vl-circle-note { text-align: center; color: var(--text-2); font-size: .92rem; max-width: 52ch; margin: 0 auto; }

/* ---------- Карта персонажа ---------- */
.vl-card-anatomy {
  display: grid; gap: 24px; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: start;
}
@media (max-width: 760px) { .vl-card-anatomy { grid-template-columns: 1fr; } }
.vl-sample-card {
  position: relative; aspect-ratio: 3/4.2; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border-strong); background: linear-gradient(160deg, var(--surface-2), var(--surface));
  padding: 14px; display: flex; flex-direction: column; gap: 10px; justify-content: space-between;
}
.vl-sample-card .vl-sc-top { display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--font-display); }
.vl-sample-card .vl-sc-power {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1206; flex: none;
}
.vl-sample-card .vl-sc-branches { display: flex; gap: 6px; }
.vl-sample-card .vl-sc-branches span {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border);
  background: var(--surface);
}
.vl-sample-card .vl-sc-branches svg { width: 14px; height: 14px; }
.vl-sample-card .vl-sc-art {
  flex: 1; border-radius: 12px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 10px, rgba(255,255,255,.01) 10px 20px);
  display: grid; place-items: center; color: var(--text-3); font-size: .8rem; text-align: center; padding: 10px;
  border: 1px dashed var(--border);
}
/* Портрет из игры вместо пунктирной заглушки. */
.vl-sample-card .vl-sc-art:has(img) { padding: 0; border-style: solid; overflow: hidden; position: relative; min-height: 0; }
.vl-sample-card .vl-sc-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.vl-sample-card .vl-sc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.vl-sample-card .vl-sc-faction { color: var(--text-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.vl-sample-card .vl-sc-prop { font-size: .84rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }

.vl-prop-list { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .vl-prop-list { grid-template-columns: 1fr; } }
.vl-prop {
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border);
  font-size: .9rem;
}
.vl-prop b { color: var(--gold-2); }

/* ---------- Форма отклика ---------- */
.vl-feedback { max-width: 640px; margin: 0 auto; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.vl-fb-choices { display: flex; gap: 12px; margin: 16px 0 20px; flex-wrap: wrap; }
.vl-fb-choice {
  flex: 1; min-width: 140px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); font-weight: 600; text-align: center; transition: border-color .2s, background .2s;
}
.vl-fb-choice svg { width: 18px; height: 18px; margin-right: 8px; vertical-align: -4px; }
.vl-fb-choice:hover { border-color: var(--border-strong); }
.vl-fb-choice.is-picked-like { border-color: var(--teal); background: rgba(95,212,196,.14); color: var(--teal); }
.vl-fb-choice.is-picked-nope { border-color: var(--rose); background: rgba(240,143,176,.14); color: var(--rose); }
.vl-field { display: block; margin-bottom: 14px; }
.vl-field span { display: block; font-size: .86rem; color: var(--text-2); margin-bottom: 6px; }
.vl-field textarea, .vl-field input[type="email"] {
  width: 100%; padding: 11px 13px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font: inherit; resize: vertical;
}
.vl-field textarea:focus, .vl-field input[type="email"]:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.vl-fb-count { font-size: .76rem; color: var(--text-3); text-align: right; margin-top: 4px; }
.vl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vl-fb-msg { margin-top: 14px; font-size: .9rem; padding: 10px 12px; border-radius: 10px; display: none; }
.vl-fb-msg.is-ok { display: block; background: rgba(95,212,196,.14); color: var(--teal); border: 1px solid rgba(95,212,196,.35); }
.vl-fb-msg.is-err { display: block; background: rgba(240,143,176,.14); color: var(--rose); border: 1px solid rgba(240,143,176,.35); }
.vl-fb-submit { margin-top: 6px; }
.vl-fb-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Бета ---------- */
.vl-beta-badge {
  display: inline-block; vertical-align: middle; font-family: var(--font-body, inherit);
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  color: #fff; background: linear-gradient(135deg, #c2487a, #a83a5c);
  padding: 6px 12px; border-radius: 999px; margin-left: 8px;
}
.vl-beta > .vl-beta-text > .vl-beta-badge { margin: 0 0 14px; }
.vl-beta-badge-sm { font-size: .7rem; padding: 4px 8px; margin-left: 6px; }
.vl-beta {
  display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  padding: clamp(20px, 4vw, 36px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-strong);
}
@media (max-width: 860px) { .vl-beta { grid-template-columns: minmax(0, 1fr); } }
.vl-beta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 16px; }
.vl-beta-actions .btn { flex: 0 1 auto; flex-wrap: wrap; justify-content: center; max-width: 100%; text-align: center; }
.vl-beta-actions .btn small { display: block; width: 100%; font-weight: 500; opacity: .8; font-size: .78rem; }
.vl-beta-meta { color: var(--text-2); font-size: .86rem; }
.vl-beta-meta code { font-size: .78rem; word-break: break-all; color: var(--gold-2); }
.vl-beta-shots { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vl-beta-shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); display: block; }
@media (max-width: 520px) { .vl-beta-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Аудит 03.10 (P1-14): на первом экране телефона кнопка «Играть в браузере» и кадр демо,
   APK вторым; одна метка «Бета» вместо трёх */
.vl-head-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.vl-head-shot { display: block; margin-top: 22px; max-width: 220px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(232,180,92,.35); box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); }
.vl-head-shot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; }
@media (min-width: 900px) { .vl-head .container { position: relative; min-height: 340px; } .vl-head-shot { position: absolute; right: 0; top: 0; width: 240px; margin: 0; } .vl-lead { max-width: 56ch; } }

/* ---------- Вкладки серии (07.10): «Хроники Варлодов» и «Подземелье» ----------
   Обычные ссылки на два адреса (/varlordy/ и /varlordy/podzemye/): у каждой
   вкладки своя страница, «назад» в браузере и Метрика работают без скриптов. */
.vl-tabs { padding-top: clamp(14px, 2.4vw, 22px); }
.vl-tabs-row {
  display: flex; gap: 4px; padding: 4px; width: max-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
  border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--border-strong);
}
.vl-tabs-row::-webkit-scrollbar { display: none; }
.vl-tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; min-height: 44px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; white-space: nowrap;
  color: var(--text-2); transition: color .2s, background .2s;
}
.vl-tab:hover { color: var(--text); background: var(--surface-2); }
.vl-tab.is-active {
  color: #1a1206; background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #d99a3d);
  box-shadow: 0 6px 18px -8px rgba(232,147,76,.6);
}
.vl-tab:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.vl-tab-new {
  font-family: var(--font-body); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1; padding: 4px 6px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #c2487a, #a83a5c);
}
/* Телефон: две вкладки делят строку поровну и обе видны целиком (на 360 с меткой
   «новое» вторая уезжала за край и обрезалась) — метку на узком экране прячем. */
@media (max-width: 480px) {
  .vl-tabs-row { width: 100%; }
  .vl-tab { flex: 1 1 0; justify-content: center; padding: 10px 8px; font-size: .95rem; }
  .vl-tab-new { display: none; }
}
/* 320 px: «Подземелье» упиралось в правую рамку переключателя (U1-006, 29.10) */
@media (max-width: 359px) { .vl-tab { flex: 1 1 auto; min-width: 0; padding: 10px 6px; font-size: .82rem; } }

/* ---------- «Подземелье» ---------- */
.pz-head .vl-head-shot img { object-position: center 35%; }
.pz-desc p + p { margin-top: 12px; }
.pz-android { margin-top: 12px; color: var(--text-2); font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.pz-android svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.pz-steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: pz; display: grid; gap: 10px; }
.pz-steps li {
  counter-increment: pz; position: relative; padding: 12px 14px 12px 50px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); font-size: .92rem; color: var(--text-2);
}
.pz-steps li::before {
  content: counter(pz); position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .84rem;
  color: #1a1206; background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.pz-steps b { color: var(--text); }
.pz-art { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pz-art img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); display: block; }
.pz-art figcaption { grid-column: 1 / -1; color: var(--text-3); font-size: .8rem; text-align: center; }
.pz-steps + .vl-beta-meta { margin-top: 16px; }
.pz-desc { margin-top: 14px; }
.pz-art { margin: 0; }
.pz-head + .section { padding-top: clamp(8px, 2vw, 20px); }
