* {
  box-sizing: border-box;
}

:root {
  --bg: #0d0f17;
  --surface: #161a26;
  --surface-2: #1d2231;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eceef6;
  --muted: #a7adbf;
  --lime: #c8ff00;
  --green: #57e389;
  --purple: #9d7bff;
  --blue: #4fc3f7;
  --pink: #ff6ec7;
  --radius: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ---------- фоновые свечения ---------- */
.bg-glows {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.32;
  animation: float 14s ease-in-out infinite alternate;
}

.glow--green { background: #2bd14f; top: -12vw; left: -10vw; }
.glow--purple { background: #7b4dff; bottom: -14vw; right: -8vw; animation-delay: -5s; }
.glow--blue { background: #1b8fd1; top: 45%; left: 55%; width: 34vw; height: 34vw; animation-delay: -9s; }

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, 3vw, 0) scale(1.15); }
}

/* ---------- герой ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem 3rem;
}

.hero__kicker {
  margin: 2.2rem 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

.hero__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
}

.accent { color: var(--lime); }

.hero__title-sib {
  display: block;
  margin-top: 0.35em;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 1.2rem auto 0;
  max-width: 44ch;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero__lead b { color: var(--text); }

/* карточки-ответы */
.hero__answers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.4rem;
}

.answer-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 210px;
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.answer-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.answer-card__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.answer-card--who .answer-card__label { color: var(--green); }
.answer-card--when .answer-card__label { color: var(--lime); }
.answer-card--where .answer-card__label { color: var(--purple); }

.answer-card__value {
  font-size: 1.2rem;
  font-weight: 800;
}

.answer-card__sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__scroll {
  margin-top: 2.6rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.hero__scroll:hover { color: var(--lime); }

/* ---------- анимированный унитаз ---------- */
.toilet {
  position: relative;
  width: 130px;
  height: 150px;
  animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

.toilet__tank {
  position: absolute;
  top: 18px;
  left: 34px;
  width: 62px;
  height: 52px;
  background: #f2f4f8;
  border-radius: 10px;
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.08);
}

.toilet__bowl {
  position: absolute;
  top: 66px;
  left: 24px;
  width: 82px;
  height: 56px;
  background: #f2f4f8;
  border-radius: 12px 12px 40px 40px;
  box-shadow: inset -8px -6px 0 rgba(0, 0, 0, 0.08);
}

.toilet__base {
  position: absolute;
  top: 118px;
  left: 44px;
  width: 42px;
  height: 22px;
  background: #d8dce6;
  border-radius: 0 0 12px 12px;
}

.toilet__head {
  position: absolute;
  top: 46px;
  left: 44px;
  width: 44px;
  height: 44px;
  background: #f7c9a5;
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.toilet__eye {
  width: 8px;
  height: 8px;
  background: #12141c;
  border-radius: 50%;
  animation: blink 4.2s infinite;
}

@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

.toilet__mouth {
  position: absolute;
  bottom: 8px;
  width: 18px;
  height: 9px;
  background: #7c2b34;
  border-radius: 0 0 14px 14px;
  animation: sing 0.5s ease-in-out infinite alternate;
}

@keyframes sing {
  from { height: 5px; }
  to { height: 13px; }
}

/* ---------- секции ---------- */
.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section__title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
}

.section__num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--lime);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
}

.section__sub {
  margin: -1.2rem 0 1.8rem;
  color: var(--muted);
}

/* создатель */
.creator {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1.6rem;
}

@media (max-width: 780px) {
  .creator { grid-template-columns: 1fr; }
}

.creator__card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
}

.creator__avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: radial-gradient(circle at 30% 25%, #2c3446, #171b28);
  border: 2px solid var(--lime);
  border-radius: 50%;
}

.creator__name { margin: 0; font-size: 1.35rem; }

.creator__aka {
  margin: 0.3rem 0 1.2rem;
  color: var(--lime);
  font-size: 0.92rem;
  font-weight: 600;
}

.creator__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.creator__facts b { color: var(--text); }

.creator__text p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.creator__text b { color: var(--text); }

.quote {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--lime);
  background: var(--surface);
  border-radius: 0 14px 14px 0;
  line-height: 1.6;
  color: var(--text);
}

/* таймлайн */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(var(--green), var(--blue), var(--purple));
  border-radius: 3px;
}

.timeline__item {
  position: relative;
  padding: 0 0 1.9rem 2.6rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 4px;
  width: 19px;
  height: 19px;
  background: var(--bg);
  border: 4px solid var(--lime);
  border-radius: 50%;
}

.timeline__date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(200, 255, 0, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.timeline__body h3 {
  margin: 0.5rem 0 0.3rem;
  font-size: 1.15rem;
}

.timeline__body p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.6;
  color: var(--muted);
}

/* факты */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.fact:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 255, 0, 0.45);
}

.fact__emoji { font-size: 1.8rem; }

.fact p {
  margin: 0.7rem 0 0;
  line-height: 1.55;
  color: var(--muted);
  font-size: 0.96rem;
}

.fact b { color: var(--text); }

/* ---------- викторина ---------- */
.quiz {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.quiz__progress {
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.quiz__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--lime));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.quiz__question {
  margin: 1.4rem 0 1rem;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  line-height: 1.45;
}

.quiz__answers {
  display: grid;
  gap: 0.7rem;
}

.quiz__btn {
  appearance: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.quiz__btn:hover:not(:disabled) {
  border-color: var(--lime);
  transform: translateX(6px);
}

.quiz__btn:disabled { cursor: default; opacity: 0.75; }
.quiz__btn.is-right { background: rgba(87, 227, 137, 0.2); border-color: var(--green); opacity: 1; }
.quiz__btn.is-wrong { background: rgba(255, 95, 95, 0.16); border-color: #ff5f5f; opacity: 1; }

.quiz__feedback {
  min-height: 1.4em;
  margin: 1rem 0 0;
  font-weight: 600;
  color: var(--lime);
}

.quiz__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

.quiz__score {
  font-size: 2.4rem;
  font-weight: 800;
}

.btn {
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--bg);
  background: var(--lime);
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.8rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(200, 255, 0, 0.25);
}

/* ---------- редактор 1 серии ---------- */
.editor {
  display: grid;
  grid-template-columns: minmax(300px, 1.5fr) minmax(260px, 1fr);
  gap: 1.4rem;
}

@media (max-width: 820px) {
  .editor { grid-template-columns: 1fr; }
}

.editor__stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.editor__view {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #10121a;
  line-height: 0;
}

#epCanvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: grab;
}

#epCanvas:active { cursor: grabbing; }

.editor__caption {
  position: absolute;
  top: 8%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #c8ff00;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.75);
  paint-order: stroke fill;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  pointer-events: none;
  text-transform: lowercase;
}

.editor__hint {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  line-height: 1.4;
  pointer-events: none;
}

.badge3d {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
}

.editor__transport {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.editor__track {
  flex: 1;
  height: 12px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.editor__progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--lime));
  border-radius: 999px;
}

.editor__time {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.editor__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.editor__label {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.editor__shots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shot-chip {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s, transform 0.15s;
}

.shot-chip span { font-size: 0.75rem; color: var(--muted); }
.shot-chip:hover { transform: translateY(-3px); }
.shot-chip.is-active { border-color: var(--lime); background: rgba(200, 255, 0, 0.1); }

.editor__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.editor__row b { color: var(--lime); }

.editor__row input[type='text'] {
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.editor__row input[type='range'] { accent-color: var(--lime); }

.editor__colors {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.editor__colors label { display: flex; align-items: center; gap: 0.5rem; }

.editor__colors input[type='color'] {
  width: 42px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

.editor__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.editor__btns .btn { padding: 0.55rem 1rem; font-size: 0.9rem; }

/* объекты на сцене */
.obj-add {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.4rem;
}

.obj-add button {
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.5rem 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}

.obj-add button:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
  background: rgba(200, 255, 0, 0.1);
}

.obj-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.obj-controls {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.9rem;
  background: var(--surface-2);
  border: 1px dashed rgba(200, 255, 0, 0.4);
  border-radius: 14px;
}

.obj-controls[hidden] { display: none; }

.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--ghost:hover { box-shadow: none; border-color: var(--lime); }

/* ---------- ранения титанов ---------- */
.titans {
  display: grid;
  gap: 0.9rem;
}

.titan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.titan.is-open { border-color: rgba(200, 255, 0, 0.5); }
.titan--foe.is-open { border-color: rgba(255, 110, 199, 0.55); }

.titan__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  background: none;
  border: none;
  padding: 1rem 1.2rem;
  text-align: left;
}

.titan__head:hover { background: rgba(255, 255, 255, 0.04); }

.titan__emoji { font-size: 1.7rem; }

.titan__name {
  flex: 1;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.titan__name small {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
}

.titan__badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge--red { color: #ff8a8a; background: rgba(255, 95, 95, 0.16); }
.badge--yellow { color: #ffd35a; background: rgba(255, 211, 90, 0.14); }
.badge--purple { color: var(--pink); background: rgba(255, 110, 199, 0.14); }
.badge--green { color: var(--green); background: rgba(87, 227, 137, 0.15); }

.titan__arrow {
  color: var(--lime);
  font-size: 1.1rem;
  transition: transform 0.25s;
}

.titan.is-open .titan__arrow { transform: rotate(180deg); }

.titan__body {
  display: none;
  padding: 0 1.2rem 1.2rem;
}

.titan.is-open .titan__body { display: block; }

.wounds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.wounds li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.8rem;
  align-items: start;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}

@media (max-width: 560px) {
  .wounds li { grid-template-columns: 1fr; gap: 0.3rem; }
}

.wound__ep {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--lime);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  text-align: center;
  white-space: nowrap;
}

.titan--foe .wound__ep { background: var(--pink); }

.wounds p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted);
}

.wounds b { color: var(--text); }

.titans__actions {
  margin-top: 1rem;
}

/* ---------- страшные копии ---------- */
.creeps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.creep {
  position: relative;
  background: linear-gradient(165deg, #1a1420, #12141c);
  border: 1px solid rgba(255, 95, 95, 0.18);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.2rem;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.creep::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 60, 60, 0.05) 0 2px, transparent 2px 4px);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.creep:hover {
  transform: translateY(-7px) scale(1.015);
  border-color: rgba(255, 95, 95, 0.6);
  box-shadow: 0 18px 44px rgba(180, 20, 40, 0.28);
}

.creep:hover::after { opacity: 1; }

.creep:hover h3 {
  text-shadow: 2px 0 rgba(255, 40, 40, 0.85), -2px 0 rgba(60, 220, 255, 0.75);
}

.creep__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.creep__emoji { font-size: 2rem; }

.creep__fear {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #ff8a8a;
}

.creep h3 {
  margin: 0.75rem 0 0.2rem;
  font-size: 1.08rem;
  transition: text-shadow 0.15s;
}

.creep__sub {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink) !important;
}

.creep p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted);
}

.creep b { color: var(--text); }

.creep__tag {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  color: #ffb1b1;
  background: rgba(255, 95, 95, 0.12);
  border: 1px solid rgba(255, 95, 95, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.creep__warn {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px dashed rgba(157, 123, 255, 0.5);
  border-radius: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.creep__warn b { color: var(--purple); }

/* ---------- эволюция страшных версий ---------- */
.evo__title {
  margin: 2rem 0 1rem;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 800;
}

.evo {
  background: var(--surface);
  border: 1px solid rgba(255, 95, 95, 0.2);
  border-radius: var(--radius);
  padding: 1.3rem;
}

.evo__bar {
  position: relative;
  height: 14px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.4rem;
}

.evo__bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #4a3550, #8a2f45, #ff3b3b);
  border-radius: 999px;
  animation: evoGrow 2.4s ease-in-out infinite alternate;
}

@keyframes evoGrow {
  from { transform: scaleX(0.35); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

.evo__bar-label {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.66rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.evo__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.evo__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s, transform 0.2s;
}

.evo__step:hover {
  border-color: rgba(255, 95, 95, 0.55);
  transform: translateX(6px);
}

.evo__step--max {
  border-color: rgba(255, 59, 59, 0.65);
  background: linear-gradient(120deg, rgba(255, 59, 59, 0.12), var(--surface-2));
}

.evo__ver {
  flex: 0 0 auto;
  min-width: 54px;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  color: #14161c;
  background: linear-gradient(180deg, #ffb1b1, #ff5f5f);
  border-radius: 10px;
  padding: 0.45rem 0.35rem;
  box-shadow: 0 4px 12px rgba(255, 95, 95, 0.35);
}

.evo__body h4 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.02rem;
}

.evo__year {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
}

.evo__body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.evo__body b { color: var(--text); }

@media (max-width: 480px) {
  .evo__step { flex-direction: column; gap: 0.5rem; }
}

/* ---------- википедия о страшных версиях ---------- */
.wiki {
  margin-top: 1.6rem;
  background: #f8f9fa;
  color: #202122;
  border: 1px solid #a2a9b1;
  border-radius: 6px;
  padding: 0 1.6rem 1.6rem;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
  font-size: 0.96rem;
}

.wiki__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 -1.6rem 1.2rem;
  padding: 0.6rem 1.6rem;
  background: #fff;
  border-bottom: 1px solid #a2a9b1;
  border-radius: 6px 6px 0 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.85rem;
  color: #54595d;
}

.wiki__logo {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #202122;
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  font-family: Georgia, serif;
}

.wiki h3 {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.45rem;
  font-weight: 400;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 0.25rem;
}

.wiki h4 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid #eaecf0;
  padding-bottom: 0.2rem;
}

.wiki p { margin: 0.5rem 0; }
.wiki b { color: #000; }

.wiki ul, .wiki ol { margin: 0.4rem 0; padding-left: 1.6rem; }
.wiki li { margin: 0.25rem 0; }

.wiki__infobox {
  float: right;
  width: 265px;
  margin: 0 0 1rem 1.4rem;
  background: #fff;
  border: 1px solid #a2a9b1;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.83rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .wiki__infobox { float: none; width: 100%; margin: 0 0 1rem; }
}

.wiki__infobox-title {
  margin: 0 !important;
  padding: 0.55rem 0.7rem;
  background: #d5dfe9;
  text-align: center;
  font-weight: 700;
}

.wiki__pic {
  font-size: 3.2rem;
  text-align: center;
  padding: 0.8rem 0 0.4rem;
  background: #f0f0f0;
}

.wiki__infobox table {
  width: 100%;
  border-collapse: collapse;
}

.wiki__infobox th, .wiki__infobox td {
  border-top: 1px solid #eaecf0;
  padding: 0.35rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.wiki__infobox th { width: 42%; background: #f8f9fa; font-weight: 600; }

.wiki__cap {
  margin: 0 !important;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  color: #54595d;
  border-top: 1px solid #eaecf0;
}

.wiki__links a, .wiki__refs {
  color: #3366cc;
}

.wiki__links a:hover { text-decoration: none; }

.wiki__refs { font-size: 0.85rem; color: #202122; }

/* ---------- обычные фанатские серии ---------- */
.fans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}

.fan {
  --fan-accent: var(--purple);
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--fan-accent);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.fan:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.fan--purple { --fan-accent: var(--purple); }
.fan--green { --fan-accent: var(--green); }
.fan--blue { --fan-accent: var(--blue); }
.fan--orange { --fan-accent: #ffab5e; }
.fan--pink { --fan-accent: var(--pink); }
.fan--teal { --fan-accent: #4fd1c5; }

.fan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fan__emoji { font-size: 1.9rem; }

.fan__badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fan-accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.fan h3 {
  margin: 0.2rem 0 0;
  font-size: 1.08rem;
}

.fan__author {
  margin: 0;
  font-size: 0.8rem;
  color: var(--fan-accent) !important;
  font-weight: 600;
}

.fan p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted);
}

.fan b { color: var(--text); }

.fan__link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--fan-accent);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s;
}

.fan__link:hover { transform: translateX(4px); filter: brightness(1.1); }

.fan__note {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px dashed rgba(79, 195, 247, 0.45);
  border-radius: 14px;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.94rem;
}

.fan__note b { color: var(--blue); }

/* ---------- счётчик смертей ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.stat {
  background: linear-gradient(165deg, #1c1520, var(--surface));
  border: 1px solid rgba(255, 95, 95, 0.25);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.25s;
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(200, 30, 50, 0.25);
}

.stat__num {
  display: block;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: #ff5f5f;
  text-shadow: 0 0 22px rgba(255, 95, 95, 0.5);
}

.stat--infinity .stat__num {
  color: var(--purple);
  text-shadow: 0 0 22px rgba(157, 123, 255, 0.55);
}

.stat__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.stat__label b { color: var(--text); }

.deaths__subtitle {
  margin: 2rem 0 1rem;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
}

.deaths__note {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px dashed rgba(255, 95, 95, 0.45);
  border-radius: 14px;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.94rem;
}

.deaths__note b { color: #ff8a8a; }
.deaths__note a { color: var(--blue); font-weight: 600; }

/* ---------- таблица длительности серий ---------- */
.sched {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sched table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 520px;
}

.sched thead th {
  text-align: left;
  padding: 0.85rem 1.1rem;
  background: var(--surface-2);
  color: var(--lime);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.sched tbody td {
  padding: 0.75rem 1.1rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}

.sched tbody tr:last-child td { border-bottom: none; }

.sched tbody tr { transition: background 0.15s; }

.sched tbody tr:hover { background: rgba(200, 255, 0, 0.06); }

.sched tbody b { color: var(--text); }

/* ---------- подвал ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- кнопка музыки ---------- */
.music-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(200, 255, 0, 0.55);
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.music-btn:hover { transform: scale(1.1); }

.voice-btn {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(79, 195, 247, 0.55);
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.voice-btn:hover:not(:disabled) { transform: scale(1.1); }

.voice-btn:disabled { opacity: 0.4; cursor: default; }

.voice-btn.is-on {
  border-color: var(--blue);
  animation: btnPulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 22px rgba(79, 195, 247, 0.5);
}

.music-btn.is-playing {
  animation: btnPulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 22px rgba(200, 255, 0, 0.45);
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(200, 255, 0, 0.35); }
  50% { box-shadow: 0 0 30px rgba(200, 255, 0, 0.7); }
}

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