

:root {
  --night: #050a0e;
  --night-2: #071017;
  --night-3: #0a1720;
  --panel: #08131b;
  --panel-2: #0b1a24;
  --panel-3: #0e202b;
  --line: rgba(157, 199, 229, .13);
  --line-strong: rgba(157, 199, 229, .26);
  --ice: #e2eef7;
  --ice-2: #c6dbe9;
  --muted: #93aabd;
  --dim: #61798d;
  --blue: #0c87c2;
  --blue-l: #5cc4f4;
  --blue-d: #07577d;
  --gold: #f7d932;
  --gold-2: #e3bf1c;
  --gold-soft: rgba(247, 217, 50, .12);
  --green: #a1b81c;
  --red: #e26052;
  --red-soft: rgba(226, 96, 82, .12);
  --ally-soft: rgba(92, 196, 244, .12);
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-rune: "Noto Sans Runic", "Segoe UI Historic", serif;
  --font-cond: "Oswald", "Arial Narrow", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --head-h: 64px;
  --status-h: 32px;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--blue-d) var(--night);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--night);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.editor-open { overflow: hidden; }
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { color: inherit; font: inherit; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

::selection { background: var(--gold); color: #070b10; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(4, 9, 13, .7); }
::-webkit-scrollbar-thumb {
  border: 2px solid var(--night);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--blue), var(--blue-d));
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--blue-l), var(--blue)); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }

.container { width: min(100% - 72px, 1500px); margin-inline: auto; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1100px 800px at 78% -10%, rgba(12, 135, 194, .16), transparent 62%),
    radial-gradient(900px 700px at 4% 20%, rgba(161, 184, 28, .045), transparent 65%),
    radial-gradient(1100px 900px at 52% 112%, rgba(12, 80, 90, .16), transparent 70%),
    linear-gradient(180deg, #04080b 0%, #071018 48%, #050a0e 100%);
}
.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 178, 208, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 178, 208, .032) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, #000 10%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, #000 10%, transparent 82%);
}
.ambient::after {
  content: "ᛏ";
  position: absolute;
  right: -4vw;
  bottom: -12vh;
  color: rgba(157, 199, 229, .028);
  font-family: var(--font-rune);
  font-size: 70vw;
  line-height: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ice);
  transition: color .3s ease;
}
.brand:hover { color: #fff; }
.brand__mark { width: 25px; height: 30px; color: var(--ice); flex: 0 0 auto; }
.brand__mark path:last-child { fill: var(--gold); }
.brand__word {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  line-height: 1;
}
.brand__word small {
  margin-top: 6px;
  color: var(--gold);
  font-family: var(--font-cond);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .2em;
}
.brand--compact .brand__mark { width: 22px; height: 27px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 15px 24px;
  overflow: hidden;
  border: 1px solid transparent;
  font-family: var(--font-cond);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  transition: color .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .3s var(--ease);
}
.btn .icon { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--sm { padding: 11px 16px; font-size: 8.5px; }
.btn--lg { padding: 19px 28px; font-size: 10px; }
.btn--gold {
  border-color: var(--gold);
  background: linear-gradient(115deg, var(--gold-2), var(--gold) 45%, #ffe86a);
  color: #080c10;
  box-shadow: 0 8px 28px rgba(247, 217, 50, .14);
}
.btn--gold::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-22deg);
  transition: left .6s var(--ease);
}
.btn--gold:hover { box-shadow: 0 14px 44px rgba(247, 217, 50, .26); }
.btn--gold:hover::before { left: 120%; }
.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .015);
  color: var(--ice-2);
}
.btn--ghost:hover { border-color: rgba(247, 217, 50, .55); color: var(--gold); background: var(--gold-soft); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.icon-btn:hover { color: var(--ice); border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }
.icon-btn.is-active { color: var(--gold); border-color: rgba(247, 217, 50, .3); background: var(--gold-soft); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }
.icon-btn--wide { width: auto; min-width: 52px; padding: 0 8px; }
.icon-btn--wide span { font-family: var(--font-cond); font-size: 10px; letter-spacing: .06em; }
.icon-btn .icon { width: 16px; height: 16px; }
.mobile-panel-btn { display: none !important; }
.vsep { width: 1px; height: 18px; background: var(--line); margin: 0 3px; }

.realm-mark {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 26px;
  color: var(--muted);
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.realm-mark > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(247, 217, 50, .32);
  color: var(--gold);
  font-family: var(--font-rune);
  font-size: 19px;
  line-height: 1;
  transform: rotate(0deg);
}
.realm-mark b { display: flex; flex-direction: column; gap: 4px; color: var(--ice-2); font-weight: 500; }
.realm-mark small { color: var(--dim); font-size: 8px; letter-spacing: .2em; }

.sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.sw--ally { background: var(--blue-l); box-shadow: 0 0 0 3px rgba(92, 196, 244, .12); }
.sw--enemy { background: var(--red); box-shadow: 0 0 0 3px rgba(226, 96, 82, .12); }
.sw--zone { background: var(--gold); box-shadow: 0 0 0 3px rgba(247, 217, 50, .12); }

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid transparent;
  transition: padding .4s var(--ease), background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
.site-head.is-scrolled {
  padding: 10px 0;
  border-bottom-color: var(--line);
  background: rgba(4, 8, 12, .8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 72px, 1500px);
  margin-inline: auto;
}
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  position: relative;
  padding: 5px 0;
  color: var(--muted);
  font-family: var(--font-cond);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav a:hover { color: var(--ice); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-head__actions { display: flex; align-items: center; gap: 10px; }

.home { position: relative; }

.home--catalog {
  min-height: 100vh;
  padding: 108px 0 46px;
}
.catalog { padding: 16px 0 20px; }
.catalog-credit {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #4d6273;
  font-size: 10px;
  line-height: 1.6;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 150px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: "ᛏ";
  position: absolute;
  top: 50%;
  right: 4vw;
  color: rgba(226, 238, 247, .022);
  font-family: var(--font-rune);
  font-size: 46vw;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
}
.hero__copy { position: relative; z-index: 2; }
.hero__title {
  margin: 0 0 30px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.1vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .92;
}
.hero__title em {
  display: inline-block;
  padding-right: .05em;
  background: linear-gradient(102deg, #fff3a8 0%, var(--gold) 44%, #b58b0d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.025em;
}
.hero__lead {
  max-width: 590px;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.72;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__stats {
  display: flex;
  gap: clamp(26px, 4vw, 56px);
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__stats dt {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1;
}
.hero__stats dd {
  margin-top: 8px;
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .18em;
}
.hero__visual { position: relative; z-index: 1; }
.hero__visual::before {
  content: "";
  position: absolute;
  inset: -12% -8% -4%;
  background: radial-gradient(closest-side, rgba(12, 135, 194, .2), transparent 74%);
  filter: blur(20px);
  z-index: -1;
}

.hero-board {
  position: relative;
  max-width: 560px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: rgba(5, 12, 17, .78);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  transform: rotate(-1.2deg);
  transition: transform .7s var(--ease), border-color .4s ease;
}
.hero-board:hover { transform: rotate(0deg); border-color: rgba(247, 217, 50, .35); }
.hero-board::before,
.hero-board::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold);
  opacity: .6;
  pointer-events: none;
}
.hero-board::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.hero-board::after { right: -5px; bottom: -5px; border-left: 0; border-top: 0; }
.hero-board__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 18, 25, .9);
}
.hero-board__chrome .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(157, 199, 229, .25); }
.hero-board__chrome .dot:first-child { background: var(--gold); }
.hero-board__chrome b {
  margin-left: 10px;
  color: var(--ice-2);
  font-family: var(--font-cond);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
}
.hero-board__chrome small {
  margin-left: auto;
  color: var(--blue-l);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .18em;
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.hero-board__map { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.hero-board__map svg { width: 100%; height: 100%; }
.hero-board__legend {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 40px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .14em;
}
.hero-board__legend span { display: inline-flex; align-items: center; gap: 7px; }
.hero-board__legend button {
  margin-left: auto;
  padding: 5px 0;
  color: var(--gold);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .14em;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.hero-board__legend button:hover { border-bottom-color: var(--gold); }
.hero-board__caption {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-board__caption b { color: var(--gold); font-family: var(--font-rune); font-size: 12px; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .22em;
  transition: color .3s ease;
}
.hero__scroll b { color: var(--gold); font-size: 13px; }
.hero__scroll:hover { color: var(--ice); }

.section { position: relative; padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}
.section-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.7rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .98;
}
.section-title em {
  background: linear-gradient(102deg, #fff3a8, var(--gold) 46%, #b58b0d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-serif);
  font-style: italic;
}
.section-lead {
  max-width: 490px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.resume {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  padding: 14px 18px;
  border: 1px solid rgba(247, 217, 50, .24);
  background: linear-gradient(100deg, rgba(247, 217, 50, .075), rgba(247, 217, 50, .015));
}
.resume__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(247, 217, 50, .35);
  color: var(--gold);
  font-family: var(--font-rune);
  font-size: 18px;
  flex: 0 0 auto;
}
.resume__copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.resume__copy small { color: var(--gold); font-family: var(--font-cond); font-size: 8px; letter-spacing: .2em; }
.resume__copy strong {
  overflow: hidden;
  color: var(--ice);
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resume__copy span { color: var(--dim); font-size: 11px; }
.resume__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.resume__drop { display: grid; place-items: center; width: 32px; height: 32px; color: var(--dim); transition: color .2s ease; }
.resume__drop:hover { color: var(--red); }

.map-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
.map-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 220px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 17, .55);
  color: var(--dim);
  transition: border-color .2s ease;
}
.map-search:focus-within { border-color: var(--gold); }
.map-search .icon { width: 14px; height: 14px; color: var(--gold); }
.map-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ice);
  font-family: var(--font-cond);
  font-size: 9px;
  letter-spacing: .12em;
  outline: none;
  text-transform: uppercase;
}
.map-search input::placeholder { color: var(--dim); }.filter-chip {
  padding: 9px 15px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-cond);
  font-size: 9px;
  letter-spacing: .15em;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.filter-chip b { margin-left: 7px; color: var(--dim); font-size: 8px; font-weight: 400; }
.filter-chip:hover { color: var(--ice); border-color: var(--line-strong); }
.filter-chip.is-active { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.filter-chip.is-active b { color: var(--gold); }

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 16px;
}
.map-empty {
  padding: 30px;
  border: 1px dashed var(--line-strong);
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 10px;
  letter-spacing: .12em;
  text-align: center;
}
.map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(7, 16, 23, .64);
  color: inherit;
  font: inherit;
  text-align: left;
  appearance: none;
  transition: border-color .35s ease, transform .45s var(--ease), background .35s ease, box-shadow .35s ease;
}
.map-card:hover {
  border-color: rgba(247, 217, 50, .42);
  background: rgba(9, 21, 30, .9);
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.map-card__preview { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--night-2); }
.map-card__preview svg,
.map-card__preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s ease; }
.map-card:hover .map-card__preview svg,
.map-card:hover .map-card__preview img { transform: scale(1.04); filter: brightness(1.08); }
.map-card__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 9, 13, .65));
  pointer-events: none;
}
.map-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid rgba(226, 238, 247, .18);
  background: rgba(4, 9, 13, .62);
  color: var(--ice-2);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .18em;
  backdrop-filter: blur(6px);
}
.map-card__open {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  color: var(--gold);
  font-family: var(--font-cond);
  font-size: 9px;
  letter-spacing: .16em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s var(--ease), border-color .25s ease;
}
.map-card:hover .map-card__open { opacity: 1; transform: none; border-bottom-color: rgba(247, 217, 50, .55); }
.map-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px 12px;
}
.map-card__name {
  display: block;
  color: var(--ice);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.map-card__body small {
  display: block;
  margin-top: 6px;
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.map-card__br {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .1em;
  white-space: nowrap;
}
.map-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 0 18px 16px;
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .13em;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step {
  position: relative;
  padding: 34px 30px 38px;
  background: rgba(7, 16, 23, .8);
  transition: background .35s ease;
}
.step:hover { background: rgba(11, 27, 38, .9); }
.step__num {
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 9px;
  letter-spacing: .18em;
}
.step__rune {
  position: absolute;
  top: 28px;
  right: 28px;
  color: rgba(247, 217, 50, .35);
  font-family: var(--font-rune);
  font-size: 28px;
  line-height: 1;
  transition: color .3s ease;
}
.step:hover .step__rune { color: var(--gold); }
.step h3 {
  margin: 34px 0 12px;
  color: var(--ice);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.02em;
}
.step p { color: var(--muted); font-size: 13px; line-height: 1.7; }

.site-foot { border-top: 1px solid var(--line); padding: 44px 0 36px; }
.site-foot__inner { display: flex; align-items: center; gap: 30px; }
.site-foot p { max-width: 620px; color: var(--dim); font-size: 11px; line-height: 1.65; }
.site-foot__meta {
  margin-left: auto;
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 9px;
  letter-spacing: .24em;
  white-space: nowrap;
}
.brand--foot { opacity: .75; }

.editor {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: var(--night);
}
.editor[hidden] { display: none; }

.editor-head {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  height: var(--head-h);
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 23, 32, .96), rgba(6, 14, 20, .96));
  flex: 0 0 auto;
}
.editor-head .brand { gap: 9px; }
.editor-head .brand__word { font-size: 10px; }
.editor-head .brand__word small { font-size: 7px; }
.mission-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  max-width: 330px;
  flex: 1 1 260px;
}
.mission-field label {
  color: var(--gold);
  font-family: var(--font-cond);
  font-size: 7.5px;
  letter-spacing: .24em;
}
.mission-field input {
  width: 100%;
  padding: 2px 0 6px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ice);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
  outline: none;
  transition: border-color .25s ease;
}
.mission-field input:focus { border-bottom-color: var(--gold); }
.mission-field input::selection { background: var(--gold); color: #070b10; }
.mission-field__line { display: none; }
.editor-head__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.editor-head__meta b {
  color: var(--ice-2);
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
  white-space: nowrap;
}
.editor-head__meta small {
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .12em;
  white-space: nowrap;
}
.editor-head__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 6px;
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .14em;
  white-space: nowrap;
}
.save-state i,
.status-save i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(161, 184, 28, .7);
}
.save-state.is-saving i { background: var(--gold); box-shadow: 0 0 8px rgba(247, 217, 50, .8); animation: pulse 1s ease infinite; }
.save-state.is-error i { background: var(--red); box-shadow: 0 0 8px rgba(226, 96, 82, .8); }
.save-btn { min-width: 120px; }
.save-btn .icon { width: 13px; height: 13px; }
.save-btn:hover .icon { transform: none; }

.export-menu { position: relative; }
.export-menu summary { list-style: none; }
.export-menu summary::-webkit-details-marker { display: none; }
.export-menu__body {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: 240px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 17, 24, .98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(14px);
}
.export-menu__body::before {
  content: "";
  position: absolute;
  top: -5px; right: 12px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: #071118;
  transform: rotate(45deg);
}
.export-menu__body button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  text-align: left;
  transition: background .2s ease;
}
.export-menu__body button:hover { background: rgba(255, 255, 255, .045); }
.export-menu__body .icon { width: 17px; height: 17px; color: var(--gold); }
.export-menu__body span { display: flex; flex-direction: column; gap: 1px; }
.export-menu__body b { color: var(--ice); font-family: var(--font-cond); font-size: 10px; font-weight: 500; letter-spacing: .1em; }
.export-menu__body small { color: var(--dim); font-size: 9px; }

.workspace {
  display: grid;
  grid-template-columns: 60px 292px minmax(0, 1fr) 304px;
  flex: 1 1 auto;
  min-height: 0;
}

.toolrail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 17, 24, .96), rgba(5, 12, 17, .96));
  z-index: 6;
}
.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.tool .icon { width: 19px; height: 19px; }
.tool span {
  position: absolute;
  right: 2px;
  bottom: 1px;
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 6.5px;
  letter-spacing: .04em;
  opacity: .7;
}
.tool:hover { color: var(--ice); background: rgba(255, 255, 255, .04); }
.tool.is-active { color: var(--gold); border-color: rgba(247, 217, 50, .28); background: var(--gold-soft); }
.tool.is-active span { color: var(--gold); opacity: .9; }
.toolrail__sep { width: 26px; height: 1px; margin: 6px 0; background: var(--line); }

.sidepanel {
  min-height: 0;
  background: linear-gradient(180deg, rgba(8, 19, 27, .94), rgba(6, 14, 20, .94));
  z-index: 5;
}
.sidepanel--left { border-right: 1px solid var(--line); }
.sidepanel--right { border-left: 1px solid var(--line); }
.panel-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 30px; }
.panel-block { padding: 16px 16px 18px; border-bottom: 1px solid var(--line); }
.panel-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.panel-block__head h3 {
  color: var(--ice-2);
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
}
.panel-block__head > span {
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .12em;
  white-space: nowrap;
}
.panel-hint {
  margin-top: 10px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.55;
}
.panel-hint b { color: var(--gold); font-weight: 500; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 32px;
  background: rgba(5, 12, 17, .9);
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8.5px;
  letter-spacing: .12em;
  transition: color .2s ease, background .2s ease;
}
.segmented button:hover { color: var(--ice); }
.segmented button.is-active { color: var(--ice); background: rgba(92, 196, 244, .1); }
.segmented button[data-faction="enemy"].is-active { background: rgba(226, 96, 82, .1); }
.segmented--small button { height: 28px; font-size: 7.5px; }

.unit-palette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}
.unit-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 17, .55);
  text-align: left;
  transition: border-color .2s ease, background .2s ease, transform .2s var(--ease);
}
.unit-card:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .035); transform: translateY(-1px); }
.unit-card.is-active { border-color: var(--gold); background: var(--gold-soft); }
.unit-card svg { width: 24px; height: 24px; color: var(--blue-l); flex: 0 0 auto; }
.unit-card[data-side="enemy"] svg { color: var(--red); }
.unit-card__copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.unit-card__copy b { color: var(--ice-2); font-family: var(--font-cond); font-size: 9px; font-weight: 500; letter-spacing: .06em; }
.unit-card__copy small { color: var(--dim); font-family: var(--font-cond); font-size: 7px; letter-spacing: .08em; white-space: nowrap; }
.unit-card__badge {
  position: absolute;
  top: 3px;
  right: 4px;
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 6.5px;
}

.option-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.option-row:last-child { margin-bottom: 0; }
.option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .15em;
}
.option-label b { color: var(--gold); font-weight: 500; }
.swatches { display: flex; gap: 7px; }
.swatch {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--sw);
  border-radius: 50%;
  transition: transform .2s var(--ease), box-shadow .2s ease;
}
.swatch::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: border-color .2s ease;
}
.swatch:hover { transform: scale(1.1); }
.swatch.is-active::after { border-color: var(--sw); }
.range {
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track { height: 2px; background: var(--line-strong); }
.range::-webkit-slider-thumb {
  width: 12px; height: 12px; margin-top: -5px;
  appearance: none;
  border: 1px solid var(--night);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.range::-moz-range-track { height: 2px; background: var(--line-strong); }
.range::-moz-range-thumb { width: 12px; height: 12px; border: 1px solid var(--night); border-radius: 50%; background: var(--gold); }
.option-row--zone { display: none; }
.option-row--zone.is-visible { display: flex; }
.option-row--text { display: none; }
.option-row--text.is-visible { display: flex; }
.inline-input { display: flex; gap: 5px; }
.inline-input input {
  width: 58px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: rgba(5, 12, 17, .7);
  color: var(--ice);
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: .12em;
  outline: none;
  text-align: center;
}
.inline-input input:focus { border-color: var(--gold); }
.inline-input button {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
}
.inline-input button:hover { border-color: var(--gold); background: var(--gold-soft); }

.select {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(5, 12, 17, .7);
  color: var(--ice-2);
  font-family: var(--font-cond);
  font-size: 10px;
  letter-spacing: .08em;
  outline: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.select:focus { border-color: var(--gold); }
.variant-row { display: none; flex-direction: column; gap: 7px; margin-top: 12px; }
.variant-row.is-visible { display: flex; }
.variant-row .option-label { font-size: 7.5px; }
.map-desc {
  margin-top: 9px;
  color: var(--dim);
  font-size: 9.5px;
  line-height: 1.55;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 10.5px;
  cursor: pointer;
}
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-ui {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  background: rgba(5, 12, 17, .7);
  transition: border-color .2s ease, background .2s ease;
}
.check-ui::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid #070b10;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .2s var(--ease);
}
.check-row input:checked + .check-ui { border-color: var(--gold); background: var(--gold); }
.check-row input:checked + .check-ui::after { transform: rotate(45deg) scale(1); }
.check-row b { margin-left: auto; color: var(--dim); font-family: var(--font-cond); font-size: 8px; font-weight: 400; letter-spacing: .08em; }
.panel-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 9px;
  letter-spacing: .12em;
  transition: color .2s ease;
}
.panel-link .icon { width: 14px; height: 14px; }
.panel-link:hover { color: var(--red); }

.board-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #040a0e;
}
.board-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 6px 12px 6px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 24, .7);
  flex: 0 0 auto;
}
.board-topline__map { display: flex; align-items: center; gap: 10px; min-width: 0; }
.map-rune {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(247, 217, 50, .3);
  color: var(--gold);
  font-family: var(--font-rune);
  font-size: 14px;
  flex: 0 0 auto;
}
.board-topline__map > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.board-topline__map b {
  overflow: hidden;
  color: var(--ice);
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-topline__map small {
  color: var(--dim);
  font-size: 8.5px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.chip {
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-cond);
  font-size: 7.5px;
  letter-spacing: .12em;
  white-space: nowrap;
}
.chip--br { color: var(--gold); border-color: rgba(247, 217, 50, .28); }
.board-topline__actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }

.board {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(12, 50, 67, .22), transparent 68%),
    #03080b;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(92, 196, 244, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 196, 244, .028) 1px, transparent 1px);
  background-size: 48px 48px;
}
.board-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1000px;
  height: 1000px;
  transform-origin: 0 0;
  will-change: transform;
}
#boardSvg {
  width: 1000px;
  height: 1000px;
  display: block;
  overflow: visible;
  shape-rendering: geometricPrecision;
}
.board[data-tool="select"] { cursor: default; }
.board[data-tool="pan"] { cursor: grab; }
.board[data-tool="arrow"], .board[data-tool="line"], .board[data-tool="pen"], .board[data-tool="zone"], .board[data-tool="text"], .board[data-tool="ruler"] { cursor: crosshair; }
.board[data-tool="eraser"] { cursor: cell; }
.board.is-panning { cursor: grabbing !important; }
.board.is-dragging { cursor: grabbing !important; }
.board.is-space { cursor: grab; }

.zoom-dock {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 13, 18, .85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  backdrop-filter: blur(10px);
}
.zoom-dock button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.zoom-dock button:hover { color: var(--gold); background: rgba(255, 255, 255, .05); }
.zoom-dock .icon { width: 14px; height: 14px; }
.zoom-dock__value { width: 46px !important; color: var(--ice-2) !important; font-family: var(--font-cond); font-size: 9px; letter-spacing: .04em; }

.board-hint {
  position: absolute;
  left: 50%;
  bottom: 17px;
  z-index: 7;
  max-width: min(80%, 520px);
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 13, 18, .85);
  color: var(--ice-2);
  font-family: var(--font-cond);
  font-size: 9px;
  letter-spacing: .09em;
  text-align: center;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .3s var(--ease);
  backdrop-filter: blur(8px);
}
.board-hint.is-visible { opacity: 1; transform: translateX(-50%); }
.board-hint b { color: var(--gold); font-weight: 500; }

.board-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 30px;
  border: 1px dashed rgba(157, 199, 229, .18);
  background: rgba(4, 9, 13, .45);
  color: var(--dim);
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity .3s ease;
}
.board-empty span { color: rgba(247, 217, 50, .4); font-family: var(--font-rune); font-size: 30px; line-height: 1; }
.board-empty p { font-family: var(--font-cond); font-size: 9px; letter-spacing: .16em; line-height: 1.9; }
.board-empty.is-hidden { opacity: 0; }

.board-toast {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 12;
  padding: 9px 16px;
  border: 1px solid rgba(247, 217, 50, .4);
  background: rgba(6, 16, 22, .94);
  color: var(--ice);
  font-family: var(--font-cond);
  font-size: 9px;
  letter-spacing: .1em;
  transform: translate(-50%, -10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .35s var(--ease);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .4);
}
.board-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.board-status {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--status-h);
  padding: 0 14px;
  border-top: 1px solid var(--line);
  background: rgba(6, 14, 20, .92);
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .12em;
  flex: 0 0 auto;
  white-space: nowrap;
  overflow: hidden;
}
.status-coords b { color: var(--gold); font-weight: 400; }
.status-hint { overflow: hidden; text-overflow: ellipsis; color: #4d6273; }
.status-save { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #4d6273; }
.status-save i { width: 4px; height: 4px; }

.panel-block--objects { padding-bottom: 10px; }
.object-groups { display: flex; flex-direction: column; gap: 12px; }
.object-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .16em;
}
.object-group__head span { color: #4d6273; }
.object-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid transparent;
  color: var(--muted);
  text-align: left;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.object-row:hover { background: rgba(255, 255, 255, .035); color: var(--ice); }
.object-row.is-selected { border-color: rgba(247, 217, 50, .3); background: var(--gold-soft); color: var(--ice); }
.object-row__dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.object-row__dot.is-ally { background: var(--blue-l); }
.object-row__dot.is-enemy { background: var(--red); }
.object-row__dot.is-draw { background: var(--gold); }
.object-row__dot.is-note { background: var(--green); }
.object-row__name {
  overflow: hidden;
  flex: 1;
  font-family: var(--font-cond);
  font-size: 9.5px;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.object-row__type { color: var(--dim); font-family: var(--font-cond); font-size: 7.5px; letter-spacing: .08em; }
.object-row__kill { display: grid; place-items: center; width: 20px; height: 20px; color: var(--dim); opacity: 0; transition: color .18s ease, opacity .18s ease; }
.object-row:hover .object-row__kill { opacity: 1; }
.object-row__kill:hover { color: var(--red); }
.object-row__kill .icon { width: 12px; height: 12px; }
.object-empty { padding: 8px 0 10px; color: var(--dim); font-size: 10px; line-height: 1.55; }

.properties { display: flex; flex-direction: column; gap: 11px; }
.empty-note { color: var(--dim); font-size: 10.5px; line-height: 1.6; }
.prop-head { display: flex; align-items: center; gap: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.prop-head__icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); color: var(--gold); }
.prop-head__icon .icon { width: 16px; height: 16px; }
.prop-head__icon svg { width: 18px; height: 18px; }
.prop-head__copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.prop-head__copy b { color: var(--ice); font-family: var(--font-cond); font-size: 10px; font-weight: 500; letter-spacing: .08em; }
.prop-head__copy small { color: var(--dim); font-family: var(--font-cond); font-size: 7.5px; letter-spacing: .1em; }
.prop-field { display: flex; flex-direction: column; gap: 5px; }
.prop-field > label,
.prop-field > span {
  color: var(--dim);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .14em;
}
.prop-field input[type="text"],
.prop-field textarea,
.prop-field select {
  width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(5, 12, 17, .65);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 12px;
  outline: none;
  transition: border-color .2s ease;
}
.prop-field textarea { resize: vertical; min-height: 62px; line-height: 1.5; }
.prop-field input:focus,
.prop-field textarea:focus,
.prop-field select:focus { border-color: var(--gold); }
.prop-field select { font-family: var(--font-cond); font-size: 10px; letter-spacing: .06em; appearance: none; }
.prop-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prop-actions { display: flex; gap: 6px; margin-top: 2px; }
.prop-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  height: 30px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-cond);
  font-size: 8px;
  letter-spacing: .1em;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.prop-actions button .icon { width: 12px; height: 12px; }
.prop-actions button:hover { color: var(--ice); border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }
.prop-actions button.is-danger:hover { color: var(--red); border-color: rgba(226, 96, 82, .45); background: var(--red-soft); }
.prop-note { color: var(--dim); font-size: 9.5px; line-height: 1.5; }

.notes {
  width: 100%;
  min-height: 78px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(5, 12, 17, .6);
  color: var(--ice-2);
  font-size: 11px;
  line-height: 1.55;
  outline: none;
  resize: vertical;
}
.notes:focus { border-color: var(--gold); }
.notes::placeholder { color: #4b6172; }

.legend ul { display: flex; flex-direction: column; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.legend li i { display: inline-block; width: 18px; height: 2px; background: var(--blue-l); }
.legend li i.legend-enemy { background: var(--red); }
.legend li i.legend-arrow { position: relative; background: var(--gold); }
.legend li i.legend-arrow::after {
  content: "";
  position: absolute;
  right: -4px; top: -3px;
  border: 4px solid transparent;
  border-left-color: var(--gold);
}
.legend li i.legend-zone { height: 12px; border: 1px dashed var(--gold); background: transparent; }

.board-stage .obj { cursor: pointer; }
.board-stage .obj .hit { fill: transparent; }
.obj.is-selected .unit__select { opacity: 1; }
.unit__select { opacity: 0; transition: opacity .15s ease; }
.draw.is-selected { filter: drop-shadow(0 0 4px rgba(247, 217, 50, .55)); }
.draw-preview { pointer-events: none; }

.modal {
  width: min(92vw, 580px);
  padding: 0;
  border: 1px solid var(--line-strong);
  background: rgba(7, 17, 24, .98);
  color: var(--ice);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
}
.modal::backdrop { background: rgba(2, 6, 9, .76); backdrop-filter: blur(5px); }
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.modal__head h2 { color: var(--ice); font-family: var(--font-cond); font-size: 12px; font-weight: 500; letter-spacing: .18em; }
.modal__body { padding: 20px 22px; }
.modal__body > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.hotkeys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.hotkeys > div { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.hotkeys dt {
  min-width: 74px;
  color: var(--gold);
  font-family: var(--font-cond);
  font-size: 9px;
  letter-spacing: .08em;
}
.hotkeys dd { color: var(--muted); font-size: 11px; }
.modal__note { margin-top: 18px; color: var(--dim); font-size: 10.5px; line-height: 1.6; }
.modal__note b { color: var(--gold); font-weight: 500; }
.modal__actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 20px; }
.modal--confirm { width: min(92vw, 430px); }

@media (max-width: 1380px) {
  .workspace { grid-template-columns: 58px 276px minmax(0, 1fr) 286px; }
  .editor-head__meta { display: none; }
  .map-grid { gap: 14px; }
}

@media (max-width: 1180px) {
  .site-nav { gap: 20px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 48px; }
  .hero__title { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
  .workspace { grid-template-columns: 56px 268px minmax(0, 1fr); }
  .sidepanel--right {
    position: fixed;
    top: calc(var(--head-h) + 48px);
    right: 0;
    bottom: 0;
    z-index: 40;
    width: 304px;
    border-left: 1px solid var(--line-strong);
    box-shadow: -30px 0 60px rgba(0, 0, 0, .45);
    transform: translateX(102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .4s var(--ease), visibility .4s;
  }
  .sidepanel--right.is-open { transform: none; visibility: visible; pointer-events: auto; }
  .mobile-panel-btn { display: inline-flex !important; }
  .board-status .status-hint { display: none; }
}

@media (min-width: 941px) and (max-width: 1180px) {
  .mobile-panel-btn[data-panel="left"] { display: none !important; }
}

@media (max-width: 940px) {
  .site-head__inner { width: min(100% - 40px, 1500px); }
  .site-nav { display: none; }
  .site-head { padding: 14px 0; }
  .site-head__actions .btn--ghost { display: none; }
  .home--catalog { padding-top: 92px; }
  .hero { padding-top: 125px; }
  .hero__grid { grid-template-columns: 1fr; gap: 54px; }
  .hero__copy { max-width: 700px; }
  .hero__visual { max-width: 700px; width: 100%; }
  .hero__title { font-size: clamp(2.8rem, 8.4vw, 5.4rem); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .section-lead { max-width: 620px; }
  .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .site-foot__inner { flex-wrap: wrap; gap: 18px; }
  .site-foot__meta { margin-left: 0; }

  .workspace { grid-template-columns: 52px minmax(0, 1fr); }
  .sidepanel--left {
    position: fixed;
    top: calc(var(--head-h) + 48px);
    left: 52px;
    bottom: 0;
    z-index: 39;
    width: 286px;
    border-right: 1px solid var(--line-strong);
    box-shadow: 30px 0 60px rgba(0, 0, 0, .45);
    transform: translateX(calc(-100% - 6px));
    visibility: hidden;
    pointer-events: none;
    transition: transform .4s var(--ease), visibility .4s;
  }
  .sidepanel--left.is-open { transform: none; visibility: visible; pointer-events: auto; }
  .toolrail { grid-row: 1; }
  .board-shell { grid-column: 2; }
  .save-state { display: none; }
  .save-btn span { display: none; }
  .save-btn { min-width: 40px; width: 40px; height: 32px; padding: 0; }
  .editor-head__actions .icon-btn[data-open-help] { display: none; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 36px, 1500px); }
  .site-head__inner { width: calc(100% - 32px); }
  .map-toolbar { flex-direction: column; gap: 10px; }
  .map-search { flex: 0 0 auto; width: 100%; }
  .brand__word { font-size: 10px; }
  .brand__word small { font-size: 7px; }
  .hero { padding: 112px 0 80px; }
  .hero__title { font-size: clamp(2.35rem, 10.4vw, 3.6rem); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__stats { gap: 22px; }
  .hero__visual { display: none; }
  .hero__scroll { display: none; }
  .map-grid { grid-template-columns: 1fr; }
  .map-card__open { opacity: 1; transform: none; }
  .resume { flex-wrap: wrap; gap: 12px; }
  .resume__actions { margin-left: auto; }
  .resume__copy strong { max-width: 180px; }
  .modal { width: calc(100vw - 24px); }
  .hotkeys { grid-template-columns: 1fr; }
  .site-foot p { font-size: 10px; }

  :root { --head-h: 58px; }
  .editor-head { padding: 0 10px; gap: 10px; }
  .editor-head .brand { display: none; }
  .mission-field { flex: 1 1 auto; min-width: 0; max-width: none; }
  .mission-field input { font-size: 12px; }
  .editor-head__actions { gap: 2px; }
  .editor-head__actions .icon-btn[title="Экспорт"] { display: none; }
  .board-topline { padding: 6px 8px; gap: 8px; }
  .board-topline__map .chip { display: none; }
  .board-topline__actions .vsep,
  .board-topline__actions [data-zoom="out"],
  .board-topline__actions [data-zoom="in"] { display: none; }
  .map-rune { display: none; }
  .board-status { gap: 10px; padding: 0 8px; font-size: 7px; }
  .board-status #statusScale { display: none; }
  .zoom-dock { right: 8px; bottom: 8px; }
  .zoom-dock { padding: 1px; }
  .board-hint { bottom: 10px; font-size: 8px; max-width: 70%; }
  .toolrail { width: 52px; }
  .sidepanel--left { left: 52px; width: calc(100vw - 52px); max-width: 300px; }
  .sidepanel--right { width: calc(100vw - 52px); max-width: 310px; }
}

@media (max-width: 480px) {
  .hero__stats { flex-wrap: wrap; }
  .hero__stats > div { flex: 1 1 30%; }
  .hero-board__legend span { display: none; }
  .map-filters { gap: 5px; }
  .filter-chip { padding: 8px 10px; font-size: 8px; }
  .editor-head__actions .icon-btn[data-open-help] { display: none; }
  .board-status #statusCount { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
