/* ── Фирменные шрифты сайта (те же файлы, что на azeroth.su) ── */
@font-face {
  font-family: 'Warcraft';
  src: url('/fonts/Warcraft.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'WarSans';
  src: url('/fonts/WarSans.otf') format('opentype');
  font-weight: normal; font-style: normal; font-display: swap;
}

/* ── Tokens — демоническая фел-палитра Legion ── */
:root {
  --bg: #07090a;
  --surface: #0d1210;
  --surface2: #121a16;
  --border: rgba(126,217,87,.16);
  --border-hi: rgba(126,217,87,.4);
  --fel: #7ed957;
  --fel-lt: #c6ff8f;
  --void: #b98cff;
  --void-dk: #6a46b8;
  --text: #d8e8da;
  --muted: #5c7a66;
  --label: #6fa37c;
  --in-bg: #0a0f0c;
  --in-border: #1c2a20;
  --notice-bg: rgba(126,217,87,.07);
  --notice-border: rgba(126,217,87,.28);
  --err-bg: rgba(220,70,70,.1);
  --err: #e2685f;
  --ok-bg: rgba(126,217,87,.1);
  --ok: #7ed957;
  --shadow: 0 0 0 1px rgba(126,217,87,.05) inset, 0 48px 120px rgba(0,10,0,.9);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
body {
  min-height: 100vh;
  background: var(--bg);
  font-family: 'WarSans', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* ── Полноэкранный арт-фон (демон в портале) — фиксирован к вьюпорту,
      затемнение сверху/снизу для читаемости текста поверх ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(7,9,10,.55) 0%, rgba(7,9,10,.25) 22%, rgba(7,9,10,.75) 70%, var(--bg) 100%),
    url('/images/hero-bg.jpg');
  background-repeat: no-repeat;
  background-position: center top, center top;
  background-size: cover, cover;
}

/* ── Fel embers canvas ── */
#embers { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

/* ── Шевроны-скобки вокруг надписи (эмблема вместо круглой иконки) ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
  color: var(--void);
}
.eyebrow::before, .eyebrow::after { content: ''; width: 20px; height: 1px; background: linear-gradient(90deg, transparent, var(--void)); }
.eyebrow::after { background: linear-gradient(90deg, var(--void), transparent); }

/* ── Вордмарк LEGION (настоящий шрифт Warcraft) ── */
.wordmark {
  font-family: 'Warcraft', Georgia, serif;
  font-size: clamp(52px, 11vw, 92px);
  line-height: 1;
  letter-spacing: .02em;
  text-align: center;
  background: linear-gradient(180deg, var(--fel-lt) 0%, var(--fel) 55%, #3f8f2a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(126,217,87,.45));
  position: relative; z-index: 1;
}
.wordmark-sub {
  font-family: Georgia, 'Palatino Linotype', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--void);
  text-align: center;
  letter-spacing: .04em;
  margin-top: 2px;
  position: relative; z-index: 1;
}

/* ── Home page ── */
.page-home {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 1100px; margin: 0 auto;
  padding: 56px 32px 64px; gap: 26px;
}

.hero-sub { display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; z-index: 1; }
.tagline  { font-size: 14.5px; color: var(--muted); text-align: center; line-height: 1.7; max-width: 420px; }

/* ── Бейдж доверия — связь с основным сайтом ── */
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--label); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 7px 16px 7px 8px;
  transition: border-color .15s, color .15s;
}
.trust-badge:hover { border-color: var(--border-hi); color: var(--text); }
.trust-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fel); flex-shrink: 0; box-shadow: 0 0 6px rgba(126,217,87,.7); }
.trust-badge b { color: var(--fel-lt); font-weight: 700; }

/* ── Блок "как попасть в игру" ── */
.next-steps {
  width: 100%; max-width: 640px; margin: 0 auto;
  border: 1px dashed var(--border-hi);
  border-radius: 3px; padding: 14px 18px;
  font-size: 12.5px; color: var(--label); line-height: 1.6; text-align: center;
}
.next-steps b { color: var(--fel-lt); }

/* ── Сообщество тестеров ── */
.community { width: 100%; text-align: center; }
.community-title { font-family: 'Warcraft', Georgia, serif; font-size: 18px; color: var(--fel-lt); margin-bottom: 6px; }
.community-sub   { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; max-width: 480px; margin-left: auto; margin-right: auto; }
.community-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.community-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 2px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600;
  transition: border-color .15s, transform .15s;
}
.community-link:hover { border-color: var(--border-hi); transform: translateY(-1px); }
.community-link svg { color: var(--fel); flex-shrink: 0; }

/* ── Консоль статуса альфы — вместо списка "иконка+текст" ── */
.console {
  width: 100%; position: relative;
  background: #050706;
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6) inset, 0 30px 70px -30px rgba(0,0,0,.8);
  overflow: hidden;
}
.console::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(126,217,87,.025) 0px, rgba(126,217,87,.025) 1px, transparent 1px, transparent 3px);
}
.console-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11.5px; letter-spacing: .04em; color: var(--fel);
}
.console-dots { display: flex; gap: 5px; margin-right: 4px; }
.console-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--in-border); }
.console-cursor { display: inline-block; width: 7px; height: 13px; background: var(--fel); margin-left: 2px; animation: console-blink 1.1s step-end infinite; }
@keyframes console-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.console-body { padding: 4px 0; position: relative; }
.console-line {
  display: flex; gap: 14px; align-items: baseline;
  padding: 13px 20px;
  font-family: 'Consolas', 'Courier New', monospace;
  transition: background .15s;
}
.console-line:hover { background: rgba(126,217,87,.035); }
.console-tag {
  flex-shrink: 0; font-size: 10px; font-weight: 700; letter-spacing: .03em;
  padding: 2px 8px; border-radius: 2px; white-space: nowrap;
  align-self: flex-start; margin-top: 3px;
}
.console-line--ok     .console-tag { color: #061003; background: var(--fel); }
.console-line--wip    .console-tag { color: #1a1400; background: #c9a030; }
.console-line--soon   .console-tag { color: #0f0620; background: var(--void); }

.console-body-text { min-width: 0; }
.console-title { font-family: 'WarSans', 'Segoe UI', sans-serif; font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.console-text  { font-size: 12px; font-family: 'WarSans', 'Segoe UI', sans-serif; color: var(--muted); line-height: 1.55; }

/* ── Краткая строка фактов в хиро ── */
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 40px;
  width: 100%; padding: 2px 0 4px;
  position: relative; z-index: 1;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.hero-stat-n {
  font-family: 'Warcraft', Georgia, serif; font-size: 18px; color: var(--fel-lt);
  letter-spacing: .01em;
}
.hero-stat-l { font-size: 11px; color: var(--muted); max-width: 150px; line-height: 1.4; }

/* ── Карусель эпох — прогрессия Classic → Legion на одном персонаже ── */
.epochs-section { width: 100%; }
.epochs-wrap { display: flex; align-items: center; gap: 10px; }
.epochs-track {
  flex: 1; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--border-hi) transparent;
}
.epochs-track::-webkit-scrollbar { height: 5px; }
.epochs-track::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }
.epoch-card {
  scroll-snap-align: start; flex: 0 0 200px;
  background: rgba(126,217,87,.035); border: 1px solid var(--border);
  border-radius: 8px; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s, transform .2s;
}
.epoch-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.epoch-card--wip { border-color: rgba(201,160,48,.25); }
.epoch-card--off { opacity: .68; }
.epoch-num {
  font-family: 'Warcraft', Georgia, serif; font-size: 13px; color: var(--void);
  letter-spacing: .1em;
}
.epoch-name { font-family: 'WarSans', 'Segoe UI', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); }
.epoch-range { font-size: 11px; color: var(--label); letter-spacing: .04em; }
.epoch-desc { font-size: 12px; color: var(--muted); line-height: 1.5; flex: 1; }
.epoch-nav {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.epoch-nav:hover { border-color: var(--border-hi); color: var(--fel-lt); }
.epochs-link {
  display: block; text-align: center; margin-top: 10px;
  font-size: 12px; color: var(--void); text-decoration: none;
}
.epochs-link:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .epoch-nav { display: none; }
}

/* ── Особенности — сетка карточек (как quick-start-grid на главном сайте) ── */
.features-section { width: 100%; }
.features-heading {
  font-family: 'Warcraft', Georgia, serif; font-size: 20px; color: var(--fel-lt);
  text-align: center; margin-bottom: 18px; letter-spacing: .01em;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  background: rgba(126,217,87,.035); border: 1px solid var(--border);
  border-radius: 8px; padding: 20px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(126,217,87,.18);
  border-color: var(--border-hi);
}
.feature-card--off { opacity: .68; }
.feature-card--wip { border-color: rgba(201,160,48,.25); }
.feature-icon-svg {
  width: 26px; height: 26px; color: var(--fel);
  margin-bottom: 10px; filter: drop-shadow(0 0 8px rgba(126,217,87,.35));
}
.feature-card--wip .feature-icon-svg  { color: #c9a030; filter: drop-shadow(0 0 8px rgba(201,160,48,.3)); }
.feature-card--off .feature-icon-svg  { color: var(--muted); filter: none; }
.feature-title { font-family: 'WarSans', 'Segoe UI', sans-serif; font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feature-desc  { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.feature-tag {
  display: inline-block; margin-top: 10px; font-size: 10px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px;
}
.feature-tag--on  { color: #061003; background: var(--fel); }
.feature-tag--wip { color: #1a1400; background: #c9a030; }
.feature-tag--off { color: var(--muted); background: var(--surface2); border: 1px solid var(--border); }

.features-note {
  margin-top: 14px; padding: 12px 16px;
  background: var(--notice-bg); border: 1px solid var(--notice-border); border-radius: 3px;
  font-size: 12.5px; color: var(--label); line-height: 1.6; text-align: center;
}

/* ── Живая лента коммитов — тот же "терминал", другое содержимое ── */
.commits-body { padding: 6px 0; min-height: 40px; }
.commits-row {
  display: flex; gap: 12px; align-items: baseline;
  padding: 9px 20px;
  font-family: 'Consolas', 'Courier New', monospace; font-size: 12px;
}
.commits-sha  { color: var(--void); flex-shrink: 0; }
.commits-msg  { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commits-date { color: var(--muted); flex-shrink: 0; margin-left: auto; font-size: 11px; }
.commits-empty, .commits-loading {
  padding: 16px 20px; font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px; color: var(--muted);
}

/* ── Общая обёртка для доп. панелей (dev-log, git-log) — как .console, но для произвольного содержимого ── */
.panel {
  width: 100%;
  background: #050706; border: 1px solid var(--border); border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6) inset, 0 30px 70px -30px rgba(0,0,0,.8);
  overflow: hidden;
}

/* ── Дневник разработки — раскрывающиеся карточки с реальными фиксами ── */
.changelog { width: 100%; display: flex; flex-direction: column; gap: 1px; padding: 8px; }
.changelog-item {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 3px; overflow: hidden;
}
.changelog-item[open] { border-color: var(--border-hi); }
.changelog-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; cursor: pointer; list-style: none;
}
.changelog-head::-webkit-details-marker { display: none; }
.changelog-chevron { flex-shrink: 0; color: var(--muted); transition: transform .2s; }
.changelog-item[open] .changelog-chevron { transform: rotate(90deg); color: var(--fel); }
.changelog-dungeon { font-size: 12px; color: var(--void); flex-shrink: 0; font-family: 'Consolas', 'Courier New', monospace; }
.changelog-summary { font-size: 13px; font-weight: 600; color: var(--text); }
.changelog-body { padding: 0 16px 16px 40px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.changelog-subhead {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--label); padding: 10px 10px 4px;
}
.checked-clean { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 10px; }
.checked-clean-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--muted);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 11px 5px 8px;
}
.checked-clean-item svg { color: var(--fel); flex-shrink: 0; }

/* ── Buttons ── */
.btn {
  display: block; width: 100%; padding: 13px;
  border: none; border-radius: 2px;
  font-family: 'WarSans', 'Segoe UI', system-ui, sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: opacity .15s, transform .1s, box-shadow .2s;
  position: relative; z-index: 1;
}
.btn:hover          { opacity: .92; }
.btn:active         { transform: translateY(1px); }
.btn:focus-visible  { outline: 2px solid var(--fel); outline-offset: 3px; }
.btn-primary        { background: linear-gradient(175deg, var(--fel-lt) 0%, var(--fel) 100%); color: #061003; box-shadow: 0 0 0 1px rgba(126,217,87,.3), 0 10px 30px -8px rgba(126,217,87,.5); }
.btn-primary:hover  { box-shadow: 0 0 0 1px rgba(126,217,87,.5), 0 14px 36px -6px rgba(126,217,87,.65); }
.btn-secondary      { background: var(--surface2); color: var(--void); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hi); }

.actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }

.sep { width: 100%; height: 1px; background: var(--border); }

.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; position: relative; z-index: 1; }
.foot a { font-size: 11.5px; color: var(--muted); text-decoration: none; transition: color .15s; }
.foot a:hover { color: var(--void); }

/* ── Register page ── */
.page-reg {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
}
.reg-wrap            { width: 100%; max-width: 420px; }
.reg-wrap .wordmark   { font-size: 40px; margin-bottom: 2px; }
.reg-wrap .wordmark-sub { margin-bottom: 26px; }

/* ── Card с резными уголками (вместо простого rounded-rectangle) ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px; padding: 38px 44px 44px;
  box-shadow: var(--shadow);
  position: relative;
}
.card::before, .card::after,
.card-corner-bl, .card-corner-br { content: ''; position: absolute; width: 16px; height: 16px; border-color: var(--border-hi); }
.card::before { top: -1px; left: -1px; border-top: 2px solid var(--border-hi); border-left: 2px solid var(--border-hi); }
.card::after  { top: -1px; right: -1px; border-top: 2px solid var(--border-hi); border-right: 2px solid var(--border-hi); }
.card-corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--border-hi); border-left: 2px solid var(--border-hi); }
.card-corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--border-hi); border-right: 2px solid var(--border-hi); }
.card .sep { margin: 26px 0; }

.alert { border-radius: 2px; padding: 11px 15px; font-size: 13.5px; line-height: 1.5; margin-bottom: 22px; }
.alert-err { background: var(--err-bg); color: var(--err); border-left: 3px solid var(--err); }
.alert-ok  { background: var(--ok-bg);  color: var(--ok);  border-left: 3px solid var(--ok); }

.field { margin-bottom: 18px; }
label {
  display: block; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--label); margin-bottom: 7px;
}
.in-wrap { position: relative; }

input[type=email],
input[type=password],
input[type=number] {
  width: 100%;
  background: var(--in-bg); border: 1px solid var(--in-border);
  border-radius: 2px; color: var(--text);
  font-family: 'WarSans', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px; padding: 10px 14px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
input[type=email]:focus,
input[type=password]:focus,
input[type=number]:focus {
  outline: none; border-color: var(--fel);
  box-shadow: 0 0 0 3px rgba(126,217,87,.1);
}
input::placeholder { color: var(--muted); opacity: 1; }
input[type=password] { padding-right: 42px; }

.eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px;
  display: flex; align-items: center;
  transition: color .15s;
}
.eye:hover         { color: var(--void); }
.eye:focus-visible { outline: 2px solid var(--fel); border-radius: 2px; }

.hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

.field-icon {
  position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid transparent; pointer-events: none;
  display: none; align-items: center; justify-content: center;
}
.field-icon.ok  { display: flex; color: var(--ok);  border-color: var(--ok); }
.field-icon.err { display: flex; color: var(--err); border-color: var(--err); }

.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-q {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 2px; padding: 10px 14px;
  font-family: Georgia, 'Palatino Linotype', serif;
  font-size: 15px; color: var(--fel); white-space: nowrap; flex-shrink: 0;
}
.captcha-row .in-wrap { flex: 1; min-width: 0; }

.check-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.check-row   { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check-row input[type=checkbox] {
  width: 16px; height: 16px; margin-top: 2px;
  flex-shrink: 0; accent-color: var(--fel); cursor: pointer;
}
.check-label        { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.check-label a      { color: var(--void); text-decoration: none; }
.check-label a:hover { text-decoration: underline; }
.check-label strong { color: var(--fel-lt); }

.login-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px;
}
.login-back-link {
  font-size: 12px; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .15s;
}
.login-back-link:hover { color: var(--void); }

/* ── Success state ── */
.ok-body  { text-align: center; padding: 8px 0; }
.ok-ring  {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ok-bg); border: 1px solid var(--ok);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.ok-title { font-family: 'Warcraft', Georgia, serif; font-size: 22px; letter-spacing: .02em; margin-bottom: 14px; color: var(--fel-lt); }
.ok-text  { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.ok-text b { color: var(--void); font-weight: 600; }

@media (max-width: 420px) {
  .card { padding: 32px 26px 36px; }
  .rift { height: 440px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
