/* Прохождение урока: страницы теории, задания, проверка, экран «Урок пройден». */

/* ===================== Подсветка кода ===================== */

.tk-k { color: var(--code-keyword); }
.tk-s { color: var(--code-string); }
.tk-n { color: var(--code-number); }
.tk-f { color: var(--code-func); }
.tk-c { color: var(--code-comment); font-style: italic; }
.tk-b { color: var(--accent-text); font-weight: 700; }

.mono { font-family: var(--mono); }

/* У JetBrains Mono есть «лигатуры» (<= рисуется как ⩽, ++ как один знак). Ученику, который только учится,
   они мешают, а в редакторе ещё и сбивают положение каретки — выключаем везде, где показывается код. */
.editor__body,
.editor__pre,
.editor__input,
.codeview,
.term__body,
.console__body,
.fillcode,
.chip,
.bugline,
.mono,
.feedback__correct,
.hint-card__code,
.done__code,
.opt__text.mono,
code.inline {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}

/* ===================== Урок: каркас ===================== */

.flow {
  padding: 0;
}

.flow--task {
  background:
    linear-gradient(180deg, rgba(9, 11, 20, 0.35) 0%, rgba(9, 11, 20, 0.15) 22%, rgba(9, 11, 20, 0.1) 55%, rgba(9, 11, 20, 0.55) 100%),
    url("../assets/img/bg/lesson.webp") center / cover no-repeat,
    #0b0f1e;
}

.flow__top {
  padding: calc(var(--sat) + 16px) 16px 8px;
}

.flow__count {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.flow__hearts {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

.flow__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 0 16px 6px;
}

.flow__statgroup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow__scroll {
  padding: 6px 16px 20px;
}

.flow--task .flow__scroll {
  padding: 4px 0 16px;
}

.flow__bottom {
  flex-shrink: 0;
  padding: 12px 16px calc(max(var(--sab), 12px) + 12px);
}

.flow--task .flow__bottom {
  padding: 8px 20px calc(max(var(--sab), 12px) + 14px);
}

.flow__bottom .btn + .btn {
  margin-top: 4px;
}

/* ===================== Страница теории ===================== */

.theory {
  display: flex;
  flex-direction: column;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent);
  text-transform: uppercase;
}

.kicker__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.theory__title {
  margin-top: 4px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
}

.theory__lead,
.theory__text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-3);
}

.h3 {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 800;
}

.codecard {
  margin-top: 16px;
  overflow: hidden;
}

.codecard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}

.codecard__lang {
  display: flex;
  align-items: center;
  gap: 7px;
}

.codecard__lang b {
  font-size: 13px;
  font-weight: 700;
}

.lang-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 3px;
  border-radius: 5px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #0b0f1e;
}

.lang-badge--jsx {
  background: linear-gradient(135deg, #61dafb, #3b82f6);
}

.codecard__copy {
  all: unset;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
}

.codeview {
  display: flex;
  padding: 12px 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 26px;
  scrollbar-width: none;
}

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

.codeview__gutter {
  flex: none;
  width: 30px;
  text-align: center;
  color: var(--faint-2);
  user-select: none;
}

.codeview__code {
  margin: 0;
  padding: 0 14px 0 6px;
  font: inherit;
  color: var(--text-2);
  white-space: pre;
}

.codecard__notes {
  padding-top: 2px;
}

.callout {
  margin: 0 14px 14px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.callout--green {
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green-text);
}

.callout--orange {
  background: rgba(255, 138, 61, 0.1);
  border: 1px solid var(--accent-line);
  color: var(--accent-text);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
}

.step__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__text {
  padding-top: 3px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}

.tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-line);
}

.tip b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--yellow);
}

.tip span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
}

.says {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.says__img {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.says__bubble {
  flex: 1;
  padding: 11px 13px;
  border-radius: 14px 14px 14px 4px;
  font-size: 13px;
  line-height: 1.5;
}

.term {
  margin-top: 8px;
  overflow: hidden;
}

.term__head,
.console__head {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  background: var(--surface);
}

.term__head i,
.console__head i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.term__body {
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-3);
  white-space: pre-wrap;
  word-break: break-word;
}

.term__line {
  color: var(--text);
}

.term__err {
  color: var(--red);
}

.theory .h3 + .card,
.theory > div > .h3 {
  margin-top: 18px;
}

.analogy {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
}

.analogy__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.analogy b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.analogy span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ===================== Теория по одному блоку ===================== */

/* Новый блок «подъезжает» снизу и проявляется; сменяет прежний (а не дописывается под ним) */
.block-in {
  animation: block-in 0.3s ease-out both;
}

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

/* Блок один на экране — текст можно сделать крупнее и светлее, чем в длинной странице */
.theory--step {
  min-height: 100%;
}

.theory--step .theory__title {
  font-size: 26px;
}

.theory--step .theory__lead,
.theory--step .theory__text {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.theory--step .h3 {
  font-size: 19px;
}

.h3--first {
  margin-top: 14px;
}

.theory--step .tip,
.theory--step .analogy,
.theory--step .term,
.theory--step .codecard {
  margin-top: 16px;
}

.theory--step .tip span,
.theory--step .analogy span {
  font-size: 14px;
}

/* Название темы над блоком (когда это не первый блок темы): подсказывает, где мы */
.kicker--muted {
  color: var(--muted);
  letter-spacing: 0.3px;
  text-transform: none;
  font-weight: 700;
}

.kicker--muted .kicker__dot {
  background: var(--faint-2);
}

/* Реплика Блокси — последний блок темы: посередине экрана, крупнее */
.theory--solo {
  justify-content: center;
  padding-bottom: 40px;
}

.theory--solo .kicker {
  justify-content: center;
  margin-bottom: 22px;
}

.theory--solo .says {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 0;
}

.theory--solo .says__img {
  width: 120px;
}

.theory--solo .says__bubble {
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  text-align: center;
}

/* Пояснения к коду появляются по одному; прежние слегка приглушаются, текущее — в цвете */
.callout--in {
  animation: block-in 0.28s ease-out both;
}

.callout--old {
  opacity: 0.55;
}

/* Слово в коде, к которому относится текущее пояснение */
.codeword {
  border-radius: 4px;
  padding: 1px 0;
  box-shadow: 0 0 0 3px transparent;
  animation: codeword-pulse 0.9s ease-out both;
}

.codeword--green {
  background: rgba(95, 217, 138, 0.22);
  box-shadow: 0 0 0 2px rgba(95, 217, 138, 0.22);
}

.codeword--orange {
  background: rgba(255, 138, 61, 0.24);
  box-shadow: 0 0 0 2px rgba(255, 138, 61, 0.24);
}

@keyframes codeword-pulse {
  from {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.18);
  }
}

/* ===================== Задание ===================== */

.task__head {
  padding: 8px 20px 12px;
}

.task__chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(11, 15, 30, 0.55);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--accent);
  text-transform: uppercase;
}

.task__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(11, 15, 30, 0.55);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
}

.task__question {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 15, 30, 0.5);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
}

.task__area {
  margin: 0 16px;
}

.hint {
  margin: 12px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hint-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(11, 15, 30, 0.55);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--yellow);
  cursor: pointer;
}

.hint-card {
  align-self: stretch;
  margin-bottom: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 26, 14, 0.85);
  border: 1px solid var(--yellow-line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.hint-card__label {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.hint-card__code {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-text);
  white-space: pre-wrap;
}

.hint-line {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(11, 15, 30, 0.5);
  font-size: 13px;
  color: var(--muted);
}

/* --- quiz --- */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(29, 32, 39, 0.94);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.opt__mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.opt__text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.opt.is-selected {
  border-color: var(--accent);
}

.opt.is-selected .opt__mark {
  background: var(--accent);
  color: var(--bg);
}

.opt.is-correct {
  border-color: var(--green);
  background: rgba(20, 40, 30, 0.94);
}

.opt.is-correct .opt__mark {
  background: var(--green);
  color: var(--bg);
}

.opt.is-wrong {
  border-color: var(--red);
  background: rgba(46, 24, 30, 0.94);
}

.opt.is-wrong .opt__mark {
  background: var(--red);
  color: var(--bg);
}

/* --- fill_blank --- */
.fillcode {
  padding: 10px 0;
  border-radius: 14px;
  background: var(--card-2);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 22px;
  overflow-x: auto;
}

.fillcode__line {
  display: flex;
  min-width: max-content;
}

.fillcode__no {
  flex: none;
  width: 32px;
  text-align: center;
  color: var(--faint-2);
  user-select: none;
}

.fillcode__text {
  padding-right: 14px;
  white-space: pre;
  color: var(--text-2);
}

.blank {
  box-sizing: content-box;
  min-width: 3ch;
  margin: 0 2px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px dashed var(--accent);
  border-radius: 4px 4px 0 0;
  background: rgba(255, 138, 61, 0.12);
  color: var(--accent-text);
  font: inherit;
  font-weight: 700;
  text-align: center;
  outline: none;
  line-height: 20px;
}

.blank:focus {
  background: rgba(255, 138, 61, 0.22);
}

.blank.is-ok {
  border-bottom-color: var(--green);
  color: var(--green-text);
  background: var(--green-soft);
}

.blank.is-bad {
  border-bottom-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}

/* --- drag_order --- */
.chips__label {
  margin: 14px 0 8px;
  font-size: 12.5px;
  color: var(--muted);
}

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

.chips--built {
  min-height: 58px;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px dashed var(--dot);
  background: rgba(11, 15, 30, 0.45);
  align-content: flex-start;
}

.chips__placeholder {
  align-self: center;
  font-size: 12.5px;
  color: var(--faint);
}

.chip {
  all: unset;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(29, 32, 39, 0.94);
  border: 1px solid var(--border);
  border-left-width: 3px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  white-space: pre-wrap;
  text-align: left;
}

.chip--kw { border-left-color: var(--code-keyword); }
.chip--str { border-left-color: var(--code-string); }
.chip--num { border-left-color: var(--code-number); }
.chip--var { border-left-color: var(--code-func); }
.chip--op { border-left-color: var(--muted); }
.chip.is-ok { border-color: var(--green); }
.chip.is-bad { border-color: var(--red); background: rgba(46, 24, 30, 0.94); }

/* --- редактор кода --- */
.editor {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.editor__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.editor__file {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.editor__expand {
  all: unset;
  display: flex;
  padding: 3px;
  cursor: pointer;
}

.editor__body {
  display: flex;
  height: 150px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 22px;
}

.editor__gutter {
  flex: none;
  width: 32px;
  padding: 10px 0;
  text-align: center;
  color: var(--faint-2);
  white-space: pre;
  overflow: hidden;
  user-select: none;
}

.editor__scroller {
  position: relative;
  flex: 1;
  min-width: 0;
}

.editor__pre,
.editor__input {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 10px 14px 10px 6px;
  border: 0;
  border-radius: 0;
  font: inherit;
  line-height: 22px;
  white-space: pre;
  tab-size: 2;
  letter-spacing: normal;
  word-spacing: normal;
  overflow: auto;
  background: transparent;
}

.editor__pre {
  overflow: hidden;
  pointer-events: none;
  color: var(--text-2);
}

.editor__pre code {
  font: inherit;
}

.editor__input {
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: var(--text);
  resize: none;
  outline: none;
}

.editor--full {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  padding-top: var(--sat);
}

.editor--full .editor__body {
  flex: 1;
  height: auto;
}

.symbolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  overflow-x: auto;
}

.symbolbar__key {
  all: unset;
  flex: none;
  min-width: 34px;
  height: 34px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.symbolbar__key--wide {
  padding: 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.symbolbar__key:active {
  background: var(--accent);
  color: var(--bg);
}

.console {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-2);
  border: 1px solid var(--border);
}

.console__body {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-3);
  white-space: pre-wrap;
  word-break: break-word;
}

/* --- React --- */
.react-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.react-box {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
}

.react-frame {
  display: block;
  width: 100%;
  height: 150px;
  border: 0;
}

.react-status {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.react-status.is-ok {
  color: var(--green);
}

/* --- ответ на проверку --- */
.feedback {
  margin: 14px 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
}

.feedback--ok {
  background: rgba(16, 36, 26, 0.94);
  border: 1px solid var(--green-line);
}

.feedback--bad {
  background: rgba(40, 20, 26, 0.94);
  border: 1px solid var(--red-line);
}

.feedback__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
}

.feedback--ok .feedback__title {
  color: var(--green-text);
}

.feedback--bad .feedback__title {
  color: var(--red);
}

.feedback__correct {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  white-space: pre-wrap;
}

.feedback__text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.feedback__text--warn {
  color: var(--yellow);
}

/* ===================== Урок пройден ===================== */

.done {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.done__close {
  position: absolute;
  top: calc(var(--sat) + 18px);
  right: 18px;
  z-index: 3;
}

.done__blocksi {
  all: unset;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: calc(var(--sat) + 60px);
  cursor: pointer;
}

.done__blocksi img {
  width: 220px;
  height: auto;
  animation: pop-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes pop-in {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

.done__head {
  position: relative;
  z-index: 1;
  padding: 10px 30px 0;
  text-align: center;
}

.done__title {
  font-size: 26px;
  font-weight: 800;
}

.done__sub {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.done__stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.done__code {
  display: flex;
  margin: 20px 24px 0;
  padding: 12px 0;
  border-radius: 14px;
  background: var(--card-2);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 22px;
  overflow-x: auto;
}

.done__code .codeview__gutter {
  width: 28px;
}

.done__code .codeview__code {
  line-height: 22px;
}

.done__stats {
  display: flex;
  gap: 12px;
  margin: 20px 24px 0;
}

.done__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: var(--card);
}

.done__stat b {
  font-size: 15px;
  font-weight: 800;
}

.done__stat span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.done__note {
  margin: 16px 28px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.done__actions {
  padding: 14px 24px calc(max(var(--sab), 12px) + 14px);
}

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti__piece {
  position: absolute;
  top: -24px;
  opacity: 0;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate(0, 0) rotate(0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx, 0), 110vh) rotate(var(--rot));
    opacity: 0.95;
  }
}
