:root {
  --bg: #201f1f;
  --bg-2: #262525;
  --bg-3: #2c2b2a;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .05);
  --txt: #f4f1ec;
  --dim: #a49f99;
  --faint: #6f6b66;
  --accent: #e5b263;
  --ok: #7cc79c;
  --bad: #e87a72;
  --r: 15px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--txt);
  font: 15px/1.65 "Segoe UI", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
input { background: none; border: 0; outline: none; }

::selection { background: rgba(229, 178, 99, .3); }

.light {
  position: fixed;
  inset: 0 0 auto;
  height: 62vh;
  background:
    radial-gradient(55% 85% at 40% -25%, rgba(229, 178, 99, .11), transparent 70%),
    radial-gradient(40% 60% at 88% -5%, rgba(255, 255, 255, .04), transparent 70%);
  pointer-events: none;
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 2px 1fr auto;
  animation: fade .6s var(--ease) both;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ── header ── */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 40px 15px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--dim);
}

.brand-ic {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 3px 10px rgba(0, 0, 0, .4);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.brand:hover .brand-ic { transform: translateY(-1px) rotate(-4deg); box-shadow: 0 0 0 1px rgba(229, 178, 99, .4), 0 5px 16px rgba(0, 0, 0, .5); }

.spark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 178, 99, .16), 0 0 14px rgba(229, 178, 99, .5);
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(229, 178, 99, .16), 0 0 12px rgba(229, 178, 99, .35); }
  50% { box-shadow: 0 0 0 5px rgba(229, 178, 99, .05), 0 0 20px rgba(229, 178, 99, .6); }
}

/* ── статистика в шапке ── */

.stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-right: 6px;
}

.stats[hidden] { display: none; }

.stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .02);
  font-size: 12px;
  white-space: nowrap;
  transition: border-color .25s, background .25s;
}

.stat:hover { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); }

.stat b {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
  font-variant-numeric: tabular-nums;
  transition: color .25s;
}

.stat u { text-decoration: none; color: var(--faint); font-size: 11.5px; }

.stat-done b { color: var(--accent); }

.stat .live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(124, 199, 156, .16);
  animation: pulse 2.4s ease-in-out infinite;
}

.stat .bump { animation: bump .45s var(--ease); }

@keyframes bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); color: var(--accent); }
  100% { transform: scale(1); }
}

.bar-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.who {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  transition: .2s;
}

.who:hover { color: var(--txt); border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .03); }
.who.on { border-color: rgba(124, 199, 156, .35); background: rgba(124, 199, 156, .07); color: var(--txt); }

.who-in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.2;
}

.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }

.who-ava, .cmt-me-ava, .modal-ava-img, .face-img, .cmt-ava {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(229, 178, 99, .16);
  flex-shrink: 0;
  overflow: hidden;
  text-align: center;
  line-height: 24px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

[class$="-letter"] { display: grid; place-items: center; }

.who-ava { width: 22px; height: 22px; }

.count {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: var(--faint);
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: .2s;
}

.count:hover { border-color: var(--line); background: rgba(255, 255, 255, .03); }
.count b { font-size: 16px; color: var(--txt); font-weight: 700; }
.count i { font-style: normal; margin: 0 2px; }

.count svg {
  width: 15px;
  height: 15px;
  margin-left: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: .55;
  transition: .2s;
}

.count:hover svg { opacity: 1; transform: scale(1.12); }
.count.pop b { animation: pop .4s var(--ease); }

@keyframes pop {
  0% { transform: translateY(6px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* ── chips ── */

.chips {
  position: relative;
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-2);
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip-pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  transition: transform .42s var(--ease), width .42s var(--ease);
  pointer-events: none;
}

.chip {
  position: relative;
  z-index: 1;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--faint);
  white-space: nowrap;
  transition: color .25s;
}

.chip:hover { color: var(--dim); }
.chip.is-on { color: var(--txt); }

.line { background: var(--line-2); }

.line-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(229, 178, 99, .45), var(--accent));
  transition: width .5s var(--ease);
}

/* ── stage ── */

.stage {
  position: relative;
  overflow-y: auto;
  padding: 40px 40px 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .1) transparent;
}

.stage::-webkit-scrollbar { width: 9px; }
.stage::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .09); border-radius: 99px; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: start;
}

.col { min-width: 0; }
.side { min-width: 0; position: sticky; top: 0; }

.side-cap { display: block; margin-bottom: 14px; }

/* каскад */

.stage.in [data-anim] { animation: rise .58s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.meta { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }

.gstep {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  color: rgba(229, 178, 99, .5);
}

.tag {
  display: inline-block;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(229, 178, 99, .1);
  border: 1px solid rgba(229, 178, 99, .22);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.4px;
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 20ch;
}

h1 span { display: inline-block; animation: word .55s var(--ease) both; }

@keyframes word {
  from { opacity: 0; transform: translateY(26px) rotate(1.5deg); }
  to { opacity: 1; transform: none; }
}

.lead {
  font-size: 17px;
  color: var(--dim);
  max-width: 52ch;
  margin-bottom: 30px;
}

.body { display: grid; gap: 11px; }

.body li {
  position: relative;
  padding-left: 22px;
  max-width: 62ch;
  color: #e2ded8;
}

.body li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
  opacity: .75;
  animation: dash .5s var(--ease) both;
}

@keyframes dash { from { width: 0; opacity: 0; } to { width: 6px; opacity: .75; } }

/* ── path / hint / note ── */

.cap {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--faint);
}

.path {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 28px 0 0;
  padding: 15px 17px;
  border-radius: var(--r);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
}

.path code { font-family: "Cascadia Code", Consolas, monospace; font-size: 13.5px; color: var(--txt); }

.hint {
  margin: 20px 0 0;
  padding: 1px 0 1px 17px;
  border-left: 2px solid rgba(124, 199, 156, .55);
  color: var(--dim);
  font-size: 14.5px;
  max-width: 58ch;
}

.note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin: 28px 0 0;
  padding: 16px 18px;
  border-radius: var(--r);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  animation: rise .58s var(--ease) both, flash 1.5s .5s ease-out;
}

@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  25% { box-shadow: 0 0 0 5px rgba(255, 255, 255, .05); }
  100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}

.note-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #201f1f;
}

.note[data-type="ban"] { background: rgba(232, 122, 114, .1); border-color: rgba(232, 122, 114, .22); color: #f0aca6; }
.note[data-type="ban"] .note-icon { background: var(--bad); }
.note[data-type="info"] { background: rgba(229, 178, 99, .1); border-color: rgba(229, 178, 99, .22); color: #ecd0a2; }
.note[data-type="info"] .note-icon { background: var(--accent); }
.note[data-type="done"] { background: rgba(124, 199, 156, .1); border-color: rgba(124, 199, 156, .22); color: #a9dfc1; }
.note[data-type="done"] .note-icon { background: var(--ok); }

/* ── screenshots ── */

.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.shot {
  border-radius: var(--r);
  overflow: hidden;
  background: #191919;
  border: 1px solid var(--line-2);
  cursor: zoom-in;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
  animation: zoom .6s var(--ease) both;
}

@keyframes zoom {
  from { opacity: 0; transform: scale(.94) translateY(14px); }
  to { opacity: 1; transform: none; }
}

.shot:hover {
  border-color: rgba(229, 178, 99, .4);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}

.shot img { display: block; width: 100%; height: auto; }
.shot--full { grid-column: 1 / -1; }

figcaption {
  padding: 10px 6px 3px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--faint);
}

/* ── соцссылки ── */

.socials { display: block; }

.socials .cap { display: block; margin-bottom: 14px; }

.soc-list { display: grid; gap: 10px; }

.soc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  text-decoration: none;
  color: var(--txt);
  transition: border-color .22s, background .22s, transform .22s var(--ease);
  animation: zoom .5s var(--ease) both;
}

.soc:hover {
  border-color: rgba(229, 178, 99, .45);
  background: rgba(229, 178, 99, .07);
  transform: translateY(-2px);
}

.soc-ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  transition: .22s;
}

.soc:hover .soc-ic { background: rgba(229, 178, 99, .16); border-color: rgba(229, 178, 99, .35); }

.soc-ic svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soc-ic svg [fill]:not([fill="none"]) { fill: var(--accent); stroke: none; }

.soc-img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: cover;
  transition: transform .3s var(--ease);
}

.soc:hover .soc-img { transform: scale(1.08); }

.soc-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.soc-txt b { font-size: 14.5px; font-weight: 600; }
.soc-txt i { font-style: normal; font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.soc-go {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: auto;
  fill: none;
  stroke: var(--faint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: .22s var(--ease);
}

.soc:hover .soc-go { stroke: var(--accent); transform: translateX(3px); }

/* ── checklist ── */

.check { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.check .cap { display: block; margin-bottom: 15px; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }

.check-item {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px 8px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  font-size: 13.5px;
  color: var(--dim);
  transition: color .2s, border-color .2s, background .2s, transform .12s;
  user-select: none;
}

.check-item:hover { border-color: rgba(255, 255, 255, .2); color: var(--txt); background: rgba(255, 255, 255, .045); }
.check-item:active { transform: scale(.97); }

.check-box {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: transparent;
  transition: .2s;
}

.check-box svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

.check-item.on { background: rgba(124, 199, 156, .12); border-color: rgba(124, 199, 156, .4); color: #b3e2c8; }
.check-item.on .check-box { background: var(--ok); border-color: var(--ok); color: #10201a; }
.check-item.on .check-box svg { animation: tick .35s var(--ease) both; }

@keyframes tick {
  from { stroke-dasharray: 20; stroke-dashoffset: 20; }
  to { stroke-dasharray: 20; stroke-dashoffset: 0; }
}

.rip {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  transform: scale(0);
  animation: rip .55s ease-out forwards;
  pointer-events: none;
}

@keyframes rip { to { transform: scale(2.6); opacity: 0; } }

/* ── благодарность / респект / комментарии ── */

.thanks {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line-2);
}

.thx-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(229, 178, 99, .13), rgba(229, 178, 99, .02));
  border: 1px solid rgba(229, 178, 99, .22);
}

.thx-ava {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(229, 178, 99, .14);
  font-size: 25px;
  animation: beat 2.4s ease-in-out infinite;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.16); }
  24% { transform: scale(1); }
  36% { transform: scale(1.1); }
}

.thx-text h2 { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.25; letter-spacing: -.5px; }
.thx-text h2 b { color: var(--accent); }
.thx-text p { color: var(--dim); font-size: 14.5px; }

.panel {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rsp-num { display: flex; align-items: baseline; gap: 7px; }
.rsp-num b { font-size: 30px; font-weight: 800; letter-spacing: -1px; color: var(--accent); line-height: 1; }

.rsp-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(229, 178, 99, .38);
  background: rgba(229, 178, 99, .11);
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 700;
  transition: .22s;
}

.rsp-btn:hover:not(:disabled) { background: rgba(229, 178, 99, .2); transform: translateY(-2px); }
.rsp-btn:disabled { cursor: default; }
.rsp-btn.given { background: rgba(124, 199, 156, .12); border-color: rgba(124, 199, 156, .4); color: var(--ok); }
.rsp-btn.pulse { animation: pulseBtn .7s var(--ease); }

@keyframes pulseBtn {
  0% { transform: scale(1); }
  35% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.rsp-heart { font-size: 16px; }
.rsp-faces { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }

.face {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  animation: pop .45s var(--ease) both;
  overflow: hidden;
}

.face .face-img { width: 100%; height: 100%; }

.cmt-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}

.cmt-list { display: grid; gap: 14px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.cmt-list::-webkit-scrollbar { width: 6px; }
.cmt-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 99px; }

.cmt-empty { color: var(--faint); font-size: 14px; padding: 6px 0 2px; }

.cmt { display: flex; gap: 12px; animation: rise .45s var(--ease) both; }
.cmt-ava { width: 34px; height: 34px; font-size: 13px; }
.cmt-main { min-width: 0; flex: 1; }

.cmt-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.3; }
.cmt-top b { font-size: 14px; }
.cmt-tag { font-size: 12px; color: var(--faint); }
.cmt-time { font-size: 11.5px; color: var(--faint); margin-left: auto; }
.cmt-main p { color: #ded9d3; font-size: 14px; margin-top: 2px; word-break: break-word; }

.cmt-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 7px 7px 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
  transition: border-color .2s;
}

.cmt-form:focus-within { border-color: rgba(229, 178, 99, .45); }

.cmt-me { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); flex-shrink: 0; max-width: 160px; }
.cmt-me span:not(.cmt-me-ava) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmt-me-off { color: var(--faint); }

.cmt-input { flex: 1; min-width: 0; font-size: 14px; }
.cmt-input::placeholder { color: var(--faint); }
.cmt-input:disabled { cursor: not-allowed; }

.cmt-send {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(229, 178, 99, .16);
  transition: .2s;
}

.cmt-send svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmt-send:hover:not(:disabled) { background: rgba(229, 178, 99, .3); }
.cmt-send:disabled { opacity: .35; cursor: not-allowed; }

.cmt-tip { margin-top: 10px; font-size: 12px; color: var(--faint); }

/* ── dock ── */

.dock {
  padding: 16px 40px 20px;
  border-top: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(32, 31, 31, 0), var(--bg) 40%);
}

.dots { display: flex; gap: 3px; margin-bottom: 16px; }

.dot {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .09);
  transition: background .25s, transform .25s var(--ease);
  cursor: pointer;
  padding: 0;
  max-width: 90px;
}

.dot::after { content: ""; position: absolute; inset: -9px 0; }
.dot:hover { background: rgba(255, 255, 255, .3); }
.dot.seen { background: rgba(229, 178, 99, .32); }
.dot.done { background: rgba(124, 199, 156, .45); }
.dot.seen.done { background: rgba(124, 199, 156, .4); }
.dot.on { background: var(--accent); transform: scaleY(2.2); box-shadow: 0 0 12px rgba(229, 178, 99, .5); }

.nav { display: flex; gap: 12px; max-width: 900px; }

.arrow {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  transition: background .22s, border-color .22s, transform .12s;
}

.arrow:hover:not(:disabled) { background: var(--bg-2); border-color: rgba(255, 255, 255, .18); }
.arrow:active:not(:disabled) { transform: scale(.985); }
.arrow:disabled { opacity: .32; cursor: not-allowed; }

.arrow--go {
  justify-content: flex-end;
  text-align: right;
  background: var(--bg-2);
  border-color: rgba(229, 178, 99, .28);
}

.arrow--go:hover:not(:disabled) { background: rgba(229, 178, 99, .12); border-color: rgba(229, 178, 99, .55); }

.arrow svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s var(--ease);
}

.arrow--go svg { stroke: var(--accent); }
.arrow--go:hover svg { transform: translateX(4px); }
.arrow:hover svg { transform: translateX(-4px); }

.arrow-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.32; }
.arrow-txt i { font-style: normal; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.arrow-txt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.kb { margin-top: 11px; text-align: center; font-size: 11px; color: var(--faint); }

kbd { font: inherit; font-size: 10px; padding: 1px 5px; margin: 0 1px; border: 1px solid var(--line); border-radius: 4px; color: var(--dim); }

/* ── список шагов ── */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(18, 17, 17, .8);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fade .25s both;
}

.sheet-card {
  width: min(600px, 100%);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
  animation: sheet .34s var(--ease) both;
}

@keyframes sheet {
  from { opacity: 0; transform: translateY(22px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--faint);
}

.sheet-x { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; color: var(--dim); transition: .2s; }
.sheet-x:hover { background: rgba(255, 255, 255, .07); color: var(--txt); }
.sheet-body { overflow-y: auto; padding: 12px; scrollbar-width: thin; }

.jgroup { padding: 14px 10px 7px; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--faint); }

.jitem {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--dim);
  font-size: 14px;
  transition: background .18s, color .18s;
}

.jitem:hover { background: rgba(255, 255, 255, .05); color: var(--txt); }
.jitem .jn { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .05); font-size: 11px; font-weight: 700; color: var(--faint); transition: .2s; }
.jitem.done .jn { background: rgba(124, 199, 156, .16); color: var(--ok); }
.jitem.on { background: rgba(229, 178, 99, .13); color: var(--txt); }
.jitem.on .jn { background: var(--accent); color: #201f1f; }
.jitem .jt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jitem .jgo { width: 14px; height: 14px; opacity: 0; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: .2s; }
.jitem:hover .jgo { opacity: .8; }

/* ── модалка авторизации ── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 58;
  background: rgba(18, 17, 17, .82);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fade .25s both;
}

.modal-card {
  position: relative;
  width: min(400px, 100%);
  padding: 34px 30px 28px;
  border-radius: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
  text-align: center;
  animation: sheet .34s var(--ease) both;
}

.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--dim);
  transition: .2s;
}

.modal-x:hover { background: rgba(255, 255, 255, .07); color: var(--txt); }

.modal-ava {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: #5865f2;
  background-size: cover;
  background-position: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
}

.modal-ava.has { box-shadow: 0 0 0 3px rgba(124, 199, 156, .35); }
.modal-ava .modal-ava-img { width: 100%; height: 100%; font-size: 26px; background: none; }
.modal-card h3 { font-size: 21px; letter-spacing: -.4px; }
.modal-sub { color: var(--dim); font-size: 13.5px; margin: 6px 0 22px; }

.modal-profile {
  margin: -6px 0 20px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(124, 199, 156, .08);
  border: 1px solid rgba(124, 199, 156, .22);
  text-align: left;
}

.mp-open {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--txt);
  font-weight: 700;
  font-size: 15px;
  transition: color .2s;
}

.mp-open:hover { color: var(--ok); }

.mp-open svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .6;
}

.mp-id { margin-top: 5px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

.ds-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  background: #5865f2;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  transition: .2s;
}

.ds-btn svg { width: 19px; height: 19px; fill: currentColor; }

.ds-ic { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; object-fit: cover; }
.ds-btn:hover { background: #4752c4; transform: translateY(-2px); }

.modal-hint { margin-top: 16px; font-size: 12px; line-height: 1.5; color: var(--faint); }

.modal-out {
  margin-top: 18px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
  transition: .2s;
}

.modal-out:hover { color: var(--txt); border-color: rgba(255, 255, 255, .2); }

/* ── lightbox ── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(16, 15, 15, .94);
  display: grid;
  place-items: center;
  padding: 36px;
  cursor: zoom-out;
  animation: fade .2s both;
}

.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; animation: zoom .3s var(--ease) both; }

/* ── finish ── */

.finish {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(26, 25, 25, .96);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fade .3s both;
}

.finish-card { text-align: center; max-width: 380px; }

.tick { width: 62px; height: 62px; margin: 0 auto 22px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tick-c { stroke-dasharray: 152; stroke-dashoffset: 152; opacity: .4; animation: draw .8s var(--ease) forwards; }
.tick-p { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .55s var(--ease) forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.finish-card h2 { font-size: 25px; letter-spacing: -.5px; margin-bottom: 9px; animation: rise .5s .8s var(--ease) both; }
.finish-card p { color: var(--dim); font-size: 14.5px; margin-bottom: 28px; animation: rise .5s .9s var(--ease) both; }

.again {
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid rgba(229, 178, 99, .35);
  background: rgba(229, 178, 99, .1);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  transition: .2s;
  animation: rise .5s 1s var(--ease) both;
}

.again:hover { background: rgba(229, 178, 99, .18); transform: translateY(-2px); }

/* ── responsive ── */

@media (max-width: 1180px) {
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .stat u { display: none; }
  .stat { padding: 6px 9px; }
}

@media (max-width: 980px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .side { position: static; }
  .stage { padding: 30px 26px 10px; }
  .bar, .dock { padding-left: 26px; padding-right: 26px; }
  h1 { max-width: 100%; }
}

@media (max-width: 720px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100%; }
  .bar { flex-wrap: wrap; padding: 16px 20px 12px; gap: 12px; }
  .chips { order: 3; width: 100%; }
  .bar-end { margin-left: auto; }
  .stage { padding: 26px 18px 10px; }
  .dock { position: sticky; bottom: 0; padding: 14px 18px 16px; }
  .nav { flex-direction: column-reverse; max-width: none; }
  .dots { gap: 2px; }
  .kb { display: none; }
  .lead { font-size: 16px; }
  .cmt-me { max-width: 96px; }
  .stats { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}