:root{
  --accent-1:#34d399;
  --accent-2:#38bdf8;
  --accent-3:#a855f7;
  --warn:#facc15;
  --danger:#f43f5e;
  --bg:#050a08;
  --bg-2:#070d10;
  --card:rgba(255,255,255,.045);
  --card-strong:rgba(255,255,255,.08);
  --stroke:rgba(255,255,255,.1);
  --stroke-strong:rgba(255,255,255,.18);
  --text:#eef4f1;
  --muted:#95a39c;
  --font-body:"Inter",system-ui,-apple-system,sans-serif;
  --font-display:"Unbounded","Inter",sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,Consolas,monospace;
  --radius:18px;
  --ease:cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{margin:0;font-family:var(--font-display);line-height:1.12;letter-spacing:-.02em}
p{margin:0}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
a{text-decoration:none;color:inherit}
ul{margin:0;padding:0;list-style:none}

/* ---------- Фон-сетка ---------- */
.bg-grid{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.5;
}

/* ---------- Контейнер ---------- */
.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
}

/* ---------- Шапка ---------- */
.header{
  position:sticky;
  top:0;
  z-index:40;
  padding:12px 0;
  background:rgba(5,10,8,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--stroke);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.logo{display:flex;align-items:center;gap:10px}
.logo__mark{
  display:grid;
  place-items:center;
  width:36px;height:36px;
  border-radius:11px;
  background:linear-gradient(135deg,var(--accent-1),var(--accent-2),var(--accent-3));
  color:#050a08;
  box-shadow:0 6px 24px -6px rgba(52,211,153,.6);
}
.logo__mark svg{width:22px;height:22px}
.logo__text{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.05rem;
  letter-spacing:.05em;
}
.header__stats{display:flex;align-items:center;gap:12px}
.lvl-badge{
  display:flex;
  flex-direction:column;
  align-items:center;
  line-height:1.15;
  padding:4px 12px;
  border-radius:12px;
  background:var(--card);
  border:1px solid var(--stroke);
}
.lvl-badge__num{
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.05rem;
  color:var(--accent-1);
}
.lvl-badge__rank{
  font-size:.6rem;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.1em;
}
.xp-bar{
  position:relative;
  width:150px;
  height:26px;
  border-radius:99px;
  background:rgba(255,255,255,.07);
  border:1px solid var(--stroke);
  overflow:hidden;
  display:grid;
  place-items:center;
}
.xp-bar__fill{
  position:absolute;
  inset:0 auto 0 0;
  border-radius:99px;
  background:linear-gradient(90deg,var(--accent-1),var(--accent-2));
  transition:width .6s var(--ease);
}
.xp-bar__text{
  position:relative;
  font-size:.66rem;
  font-weight:700;
  color:#dffdf3;
  text-shadow:0 1px 4px rgba(0,0,0,.6);
  font-variant-numeric:tabular-nums;
}
.ach-btn{
  position:relative;
  display:grid;
  place-items:center;
  width:40px;height:40px;
  border-radius:12px;
  background:var(--card);
  border:1px solid var(--stroke);
  color:var(--warn);
  transition:all .25s var(--ease);
}
.ach-btn svg{width:20px;height:20px}
.ach-btn:hover{transform:translateY(-2px);border-color:var(--warn)}
.ach-btn__count{
  position:absolute;
  top:-6px;right:-6px;
  min-width:18px;height:18px;
  padding:0 4px;
  border-radius:99px;
  background:var(--warn);
  color:#231a00;
  font-size:.66rem;
  font-weight:800;
  display:grid;
  place-items:center;
}

/* ---------- Main / экраны ---------- */
.main{
  position:relative;
  z-index:1;
  padding:26px 0 70px;
  min-height:calc(100vh - 70px);
}
.screen{display:none;width:100%;animation:screenIn .5s var(--ease)}
.screen.is-active{display:block}
@keyframes screenIn{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}

/* ---------- Общие ---------- */
.eyebrow{
  display:inline-block;
  font-size:.7rem;
  color:var(--accent-1);
  text-transform:uppercase;
  letter-spacing:.18em;
  font-weight:700;
  margin-bottom:8px;
}
.title{
  font-size:clamp(1.8rem,5vw,2.6rem);
  font-weight:800;
  margin-bottom:12px;
}
.title--sm{font-size:clamp(1.25rem,3vw,1.6rem);margin-bottom:6px}
.gradient-text{
  background:linear-gradient(100deg,var(--accent-1),var(--accent-2) 55%,var(--accent-3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* ---------- Кнопки ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:12px;
  font-weight:700;
  font-size:.94rem;
  transition:transform .2s var(--ease),box-shadow .2s var(--ease),background .3s var(--ease);
}
.btn svg{width:16px;height:16px}
.btn--sm{padding:8px 13px;font-size:.85rem}
.btn--lg{padding:14px 24px;font-size:1.02rem}
.btn--block{width:100%}
.btn--primary{
  color:#04140c;
  background:linear-gradient(120deg,var(--accent-1),var(--accent-2));
  box-shadow:0 12px 34px -12px rgba(52,211,153,.85);
}
.btn--primary:hover{transform:translateY(-2px);box-shadow:0 18px 42px -12px rgba(52,211,153,1)}
.btn--primary:active{transform:translateY(0) scale(.99)}
.btn--primary:disabled{opacity:.5;cursor:not-allowed;transform:none}
.btn--ghost{
  color:var(--text);
  background:var(--card);
  border:1px solid var(--stroke);
}
.btn--ghost:hover{transform:translateY(-2px);border-color:var(--stroke-strong);background:var(--card-strong)}

/* ---------- Экран загрузки ---------- */
.boot{
  max-width:520px;
  margin:9vh auto;
  text-align:center;
  padding:40px 28px;
  border-radius:24px;
  background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  border:1px solid var(--stroke-strong);
  backdrop-filter:blur(14px);
}
.boot__mark{
  font-family:var(--font-mono);
  font-size:3rem;
  font-weight:700;
  background:linear-gradient(100deg,var(--accent-1),var(--accent-2),var(--accent-3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  margin-bottom:18px;
}
.boot__title{font-size:1.7rem;margin-bottom:10px}
.boot__text{color:var(--muted);margin-bottom:24px;min-height:1.5em}
.boot__bar{
  height:6px;
  border-radius:99px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
  margin-bottom:18px;
}
.boot__bar span{
  display:block;
  height:100%;
  width:35%;
  border-radius:99px;
  background:linear-gradient(90deg,var(--accent-1),var(--accent-2));
  animation:bootSlide 1.15s var(--ease) infinite;
}
@keyframes bootSlide{
  0%{transform:translateX(-100%)}
  100%{transform:translateX(320%)}
}
.boot__note{color:var(--muted);font-size:.8rem}

/* ---------- Карта ---------- */
.map-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:20px;
}
.map-head__actions{display:flex;gap:9px}
.map-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-bottom:26px;
}
.map-stat{
  border-radius:14px;
  background:var(--card);
  border:1px solid var(--stroke);
  padding:13px 10px;
  text-align:center;
  line-height:1.3;
}
.map-stat__value{
  display:block;
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.4rem;
  color:var(--accent-2);
}
.map-stat__label{
  display:block;
  font-size:.64rem;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.1em;
}
.path{display:flex;flex-direction:column;gap:26px}

.chapter{
  border-radius:20px;
  background:var(--card);
  border:1px solid var(--stroke);
  padding:20px 20px 10px;
}
.chapter__head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.chapter__num{
  display:grid;
  place-items:center;
  width:38px;height:38px;
  border-radius:12px;
  font-family:var(--font-display);
  font-weight:800;
  color:#04140c;
  background:linear-gradient(135deg,var(--accent-1),var(--accent-2));
  flex:none;
}
.chapter__name{font-family:var(--font-display);font-weight:700;font-size:1.05rem}
.chapter__topic{font-size:.76rem;color:var(--muted)}
.chapter__progress{
  margin-left:auto;
  font-size:.76rem;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.chapter__head .chapter__progress.is-done{color:var(--accent-1);font-weight:700}

.nodes{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding-bottom:14px;
}
.node{
  position:relative;
  width:118px;
  padding:13px 10px 11px;
  border-radius:14px;
  background:var(--card-strong);
  border:1px solid var(--stroke);
  text-align:center;
  transition:all .25s var(--ease);
  overflow:hidden;
}
.node__n{
  font-size:.62rem;
  color:var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
}
.node__name{
  display:block;
  font-size:.82rem;
  font-weight:600;
  line-height:1.25;
  min-height:2.5em;
}
.node__state{
  display:block;
  margin-top:6px;
  font-size:.66rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
}
.node:not(:disabled):hover{
  transform:translateY(-3px);
  border-color:var(--accent-1);
}
.node:disabled{cursor:not-allowed;opacity:.42}
.node.is-done{
  border-color:rgba(52,211,153,.5);
  background:rgba(52,211,153,.1);
}
.node.is-done .node__state{color:var(--accent-1)}
.node.is-current{
  border-color:var(--warn);
  box-shadow:0 0 0 2px rgba(250,204,21,.18),0 12px 30px -14px rgba(250,204,21,.7);
  animation:nodePulse 2s var(--ease) infinite;
}
.node.is-current .node__state{color:var(--warn)}
@keyframes nodePulse{
  0%,100%{box-shadow:0 0 0 2px rgba(250,204,21,.18),0 12px 30px -14px rgba(250,204,21,.7)}
  50%{box-shadow:0 0 0 6px rgba(250,204,21,.06),0 12px 30px -14px rgba(250,204,21,.7)}
}
.node.is-boss{
  width:100%;
  background:linear-gradient(120deg,rgba(168,85,247,.16),rgba(56,189,248,.1));
  border-color:rgba(168,85,247,.5);
}
.node.is-boss .node__name{font-family:var(--font-display);font-weight:700;min-height:0;font-size:.95rem}
.node.is-boss .node__state{color:var(--accent-3)}
.node.is-boss.is-done{border-color:rgba(52,211,153,.6);background:linear-gradient(120deg,rgba(52,211,153,.16),rgba(56,189,248,.1))}
.node.is-boss.is-done .node__state{color:var(--accent-1)}
.node__lock{
  position:absolute;
  top:8px;right:9px;
  font-size:.7rem;
  color:var(--muted);
}
.node__check{
  position:absolute;
  top:8px;right:9px;
  color:var(--accent-1);
  font-size:.8rem;
}

/* ---------- Задание: верхняя панель ---------- */
.mission-top{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
}
.mission-top__title{flex:1;text-align:center;min-width:0}
.mission-top__tag{
  display:block;
  font-size:.68rem;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.14em;
}
.xp-badge{
  flex:none;
  padding:7px 13px;
  border-radius:99px;
  background:rgba(250,204,21,.12);
  border:1px solid rgba(250,204,21,.4);
  color:var(--warn);
  font-weight:700;
  font-size:.82rem;
}

/* ---------- Сетка задания ---------- */
.mission-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:20px;
  align-items:start;
}
.mission-left,.mission-right{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}

/* ---------- Сюжет ---------- */
.story{
  border-radius:var(--radius);
  background:linear-gradient(140deg,rgba(168,85,247,.12),rgba(56,189,248,.06));
  border:1px solid rgba(168,85,247,.3);
  padding:16px 18px;
}
.story__label{
  font-size:.64rem;
  color:var(--accent-3);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:700;
}
.story__text{
  margin-top:6px;
  font-size:.92rem;
  color:#dcd9f0;
}

/* ---------- Табы ---------- */
.tabs{display:flex;gap:8px}
.tab{
  padding:8px 16px;
  border-radius:99px;
  background:var(--card);
  border:1px solid var(--stroke);
  color:var(--muted);
  font-size:.84rem;
  font-weight:600;
  transition:all .25s var(--ease);
}
.tab:hover{color:var(--text)}
.tab.is-active{
  color:var(--accent-1);
  border-color:rgba(52,211,153,.5);
  background:rgba(52,211,153,.1);
}

/* ---------- Панели ---------- */
.panel{
  border-radius:var(--radius);
  background:var(--card);
  border:1px solid var(--stroke);
  padding:18px;
}
.panel--hidden{display:none}
.theory{font-size:.94rem;color:#cfd8d2}
.theory p{margin-bottom:10px}
.theory strong{color:#fff}
.theory code{
  font-family:var(--font-mono);
  font-size:.85em;
  padding:1px 6px;
  border-radius:6px;
  background:rgba(52,211,153,.12);
  color:var(--accent-1);
}
.theory-example{
  margin-top:14px;
  padding-top:14px;
  border-top:1px dashed var(--stroke);
}
.theory-example pre{
  margin:0;
  font-family:var(--font-mono);
  font-size:.84rem;
  line-height:1.6;
  color:#b9e6d3;
  white-space:pre-wrap;
  word-break:break-word;
}
.task{font-size:.98rem;color:#e6eee9}
.task p{margin-bottom:10px}
.task code{
  font-family:var(--font-mono);
  font-size:.85em;
  padding:1px 6px;
  border-radius:6px;
  background:rgba(56,189,248,.14);
  color:var(--accent-2);
}
.task ul{margin:8px 0 0;padding-left:18px;list-style:disc;color:#c6d1ca}
.task li{margin-bottom:5px}
.task-inputs{
  margin-top:14px;
  padding-top:14px;
  border-top:1px dashed var(--stroke);
  font-size:.84rem;
  color:var(--muted);
}
.task-inputs b{color:var(--warn)}
.task-inputs:empty{display:none}

/* ---------- Подсказки ---------- */
.hints{display:flex;flex-direction:column;gap:9px}
.hints__btn{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 15px;
  border-radius:99px;
  background:rgba(250,204,21,.1);
  border:1px solid rgba(250,204,21,.35);
  color:var(--warn);
  font-size:.84rem;
  font-weight:600;
  transition:all .25s var(--ease);
}
.hints__btn:hover{transform:translateY(-2px)}
.hints__btn:disabled{opacity:.4;cursor:not-allowed;transform:none}
.hints__icon{
  display:grid;
  place-items:center;
  width:19px;height:19px;
  border-radius:99px;
  background:var(--warn);
  color:#231a00;
  font-size:.72rem;
  font-weight:800;
}
.hints__list{display:flex;flex-direction:column;gap:8px}
.hint{
  padding:11px 14px;
  border-radius:12px;
  background:rgba(250,204,21,.07);
  border:1px solid rgba(250,204,21,.22);
  font-size:.86rem;
  color:#f2e6b8;
  white-space:pre-wrap;
  animation:slideIn .4s var(--ease);
}
.hint code{
  font-family:var(--font-mono);
  font-size:.85em;
  padding:1px 5px;
  border-radius:5px;
  background:rgba(250,204,21,.16);
}
@keyframes slideIn{
  from{opacity:0;transform:translateY(-8px)}
  to{opacity:1;transform:none}
}
.hints__list:empty{display:none}

/* ---------- Редактор ---------- */
.editor-toolbar{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:14px 14px 0 0;
  background:rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  border-bottom:none;
}
.editor-toolbar__label{
  font-family:var(--font-mono);
  font-size:.76rem;
  color:var(--muted);
}
.editor-toolbar__spacer{flex:1}
.editor{
  border:1px solid var(--stroke);
  border-radius:0 0 14px 14px;
  overflow:hidden;
  background:#0b0f14;
}
.editor .CodeMirror{
  height:300px;
  font-family:var(--font-mono);
  font-size:.88rem;
  line-height:1.65;
}
.editor .CodeMirror-scroll{padding-bottom:2px}

/* ---------- Консоль ---------- */
.console-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:14px 14px 0 0;
  background:rgba(255,255,255,.05);
  border:1px solid var(--stroke);
  border-bottom:none;
}
.console-head__label{
  font-family:var(--font-mono);
  font-size:.74rem;
  color:var(--muted);
}
.console-head__status{
  margin-left:auto;
  font-size:.7rem;
  font-weight:700;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.08em;
}
.console-head__status.ok{color:var(--accent-1)}
.console-head__status.err{color:var(--danger)}
.console-head__status.run{color:var(--accent-2)}
.console{
  min-height:110px;
  max-height:200px;
  overflow:auto;
  padding:12px 14px;
  border:1px solid var(--stroke);
  border-radius:0 0 14px 14px;
  background:#070b0e;
  font-family:var(--font-mono);
  font-size:.82rem;
  line-height:1.6;
  white-space:pre-wrap;
  word-break:break-word;
  color:#c8d6cf;
}
.console__idle{color:var(--muted)}
.console__err{color:#ff9aac}
.console__ok{color:var(--accent-1)}
.console__line{color:#9fb4ab}

/* ---------- Тесты ---------- */
.tests{display:flex;flex-direction:column;gap:7px}
.tests:empty{display:none}
.test{
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 12px;
  border-radius:11px;
  background:var(--card);
  border:1px solid var(--stroke);
  font-size:.82rem;
  color:var(--muted);
  transition:all .3s var(--ease);
}
.test__icon{
  display:grid;
  place-items:center;
  width:19px;height:19px;
  border-radius:99px;
  border:1.5px solid var(--stroke-strong);
  font-size:.66rem;
  flex:none;
  color:transparent;
}
.test.pass{border-color:rgba(52,211,153,.45);background:rgba(52,211,153,.08);color:#c9ecdd}
.test.pass .test__icon{border-color:var(--accent-1);background:var(--accent-1);color:#04140c}
.test.fail{border-color:rgba(244,63,94,.45);background:rgba(244,63,94,.08);color:#f6c4cd}
.test.fail .test__icon{border-color:var(--danger);background:var(--danger);color:#2a020a}
.test__code{
  font-family:var(--font-mono);
  font-size:.78rem;
  color:inherit;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.next-btn{margin-top:4px;display:none}
.next-btn.is-visible{display:flex;animation:slideIn .4s var(--ease)}

/* ---------- Экран победы ---------- */
.win-card{
  max-width:480px;
  margin:7vh auto;
  text-align:center;
  padding:40px 28px;
  border-radius:24px;
  background:linear-gradient(160deg,rgba(52,211,153,.12),rgba(56,189,248,.05));
  border:1px solid rgba(52,211,153,.4);
  backdrop-filter:blur(14px);
}
.win-card__icon{
  font-size:2.6rem;
  color:var(--warn);
  margin-bottom:8px;
  animation:pop .6s var(--ease);
}
@keyframes pop{
  0%{transform:scale(.4);opacity:0}
  60%{transform:scale(1.25)}
  100%{transform:scale(1);opacity:1}
}
.win-card__text{color:var(--muted);margin-bottom:18px}
.win-xp{
  font-family:var(--font-display);
  font-weight:800;
  font-size:2.2rem;
  color:var(--accent-1);
  margin-bottom:22px;
}
.win-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.win-actions .btn{min-width:150px}

/* ---------- Модалка ачивок ---------- */
.modal{
  position:fixed;
  inset:0;
  z-index:80;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(3,6,5,.75);
  backdrop-filter:blur(6px);
}
.modal.is-open{display:flex}
.modal__box{
  width:100%;
  max-width:520px;
  max-height:82vh;
  overflow:auto;
  border-radius:22px;
  background:#0a1110;
  border:1px solid var(--stroke-strong);
  padding:24px;
}
.modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}
.modal__close{
  width:34px;height:34px;
  border-radius:10px;
  background:var(--card);
  border:1px solid var(--stroke);
  color:var(--muted);
  font-size:1.2rem;
  line-height:1;
}
.modal__close:hover{color:var(--text)}
.ach-list{display:flex;flex-direction:column;gap:9px}
.ach{
  display:flex;
  align-items:center;
  gap:13px;
  padding:12px 14px;
  border-radius:14px;
  background:var(--card);
  border:1px solid var(--stroke);
}
.ach__icon{
  display:grid;
  place-items:center;
  width:40px;height:40px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  font-size:1.15rem;
  flex:none;
  filter:grayscale(1);
  opacity:.4;
}
.ach__name{font-weight:700;font-size:.94rem}
.ach__desc{font-size:.8rem;color:var(--muted)}
.ach.is-unlocked{border-color:rgba(250,204,21,.4);background:rgba(250,204,21,.06)}
.ach.is-unlocked .ach__icon{
  filter:none;
  opacity:1;
  background:rgba(250,204,21,.16);
  border-color:rgba(250,204,21,.4);
  color:var(--warn);
  box-shadow:0 0 18px -6px rgba(250,204,21,.8);
}

/* ---------- Toast ---------- */
.toast{
  position:fixed;
  z-index:90;
  left:50%;
  bottom:26px;
  transform:translate(-50%,120px);
  display:flex;
  align-items:center;
  gap:12px;
  max-width:min(92vw,460px);
  padding:13px 18px;
  border-radius:16px;
  background:#0c1513;
  border:1px solid rgba(250,204,21,.5);
  box-shadow:0 20px 50px -18px rgba(250,204,21,.6);
  opacity:0;
  transition:transform .5s var(--ease),opacity .5s var(--ease);
  pointer-events:none;
}
.toast.is-visible{transform:translate(-50%,0);opacity:1}
.toast__icon{
  display:grid;
  place-items:center;
  width:34px;height:34px;
  border-radius:10px;
  background:rgba(250,204,21,.16);
  color:var(--warn);
  font-size:1.05rem;
  flex:none;
}
.toast__body{min-width:0}
.toast__name{font-weight:700;font-size:.92rem}
.toast__desc{font-size:.78rem;color:var(--muted)}

/* ---------- Футер ---------- */
.footer{
  position:relative;
  z-index:1;
  border-top:1px solid var(--stroke);
  padding:18px 0;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer__copy{color:var(--muted);font-size:.78rem}
.footer__hint{color:var(--muted);font-size:.72rem;letter-spacing:.06em}

/* ---------- Адаптив ---------- */
@media (max-width:980px){
  .mission-grid{grid-template-columns:1fr}
  .map-stats{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .header__inner{flex-wrap:wrap}
  .xp-bar{width:110px}
  .node{width:calc(50% - 5px)}
  .node.is-boss{width:100%}
  .boot{padding:30px 18px;margin-top:4vh}
  .win-card{padding:28px 18px}
  .mission-top{flex-wrap:wrap}
  .mission-top__title{order:-1;flex-basis:100%}
  .editor .CodeMirror{height:240px}
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important;transition-duration:.01ms !important}
}
