.game-head {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.game-head .ghost-button {
  min-width: 126px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 20px rgba(5, 9, 28, 0.18);
}

.hud-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
}

.hud-row-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.hud-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 10px 12px;
}

.hud-item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.hud-item strong {
  display: block;
  margin-top: 6px;
  font-size: 1.25rem;
}

.hud-row-compact .hud-item {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.hud-row-compact .hud-item span {
  font-size: 0.72rem;
}

.hud-row-compact .hud-item strong {
  margin-top: 4px;
  font-size: 1rem;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 16px;
  align-items: start;
  width: 100%;
}

.tower-frame {
  position: relative;
  min-height: 560px;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(224, 167, 88, 0.22), rgba(28, 44, 67, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.tower-footer {
  margin-top: 12px;
}

.tower-glow {
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  background: radial-gradient(circle at top, rgba(255, 220, 150, 0.24), transparent 35%);
  pointer-events: none;
}

.game-field {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 244, 221, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.field-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 64px, 64px 100%;
  opacity: 0.35;
}

.problems-layer,
.danger-stack { position: absolute; inset: 0; }

.problem-card {
  position: absolute;
  width: var(--card-width, 140px);
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--card-top, #fdf0c7), var(--card-bottom, #f5dd9e));
  color: var(--card-text, #4a2e17);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 16px 24px rgba(57, 30, 12, 0.28);
  border: 3px solid var(--card-border, rgba(125, 77, 36, 0.2));
}

.problem-card.falling {
  box-shadow: 0 22px 30px rgba(57, 30, 12, 0.34);
}

.problem-card.stacked {
  box-shadow: 0 10px 18px rgba(57, 30, 12, 0.22);
}

.problem-card.priority {
  box-shadow: 0 0 0 4px rgba(110, 240, 218, 0.45), 0 18px 26px rgba(57, 30, 12, 0.28);
}

.problem-card.wrong {
  background: linear-gradient(180deg, #ffd6dc, #ff9fb0);
  color: #5a1122;
  border-color: rgba(165, 35, 55, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 109, 131, 0.28), 0 12px 22px rgba(122, 23, 41, 0.26);
}

.problem-card.priority.wrong {
  box-shadow: 0 0 0 4px rgba(255, 109, 131, 0.5), 0 16px 24px rgba(122, 23, 41, 0.28);
}

.problem-card.hit { animation: pop-away 0.28s ease forwards; }

.stack-brick {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 109, 131, 0.85), rgba(255, 175, 140, 0.7));
}

.hint-badge,
.status-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hint-badge {
  bottom: 70px;
  background: rgba(255, 216, 107, 0.95);
  color: #4c2c12;
}

.status-badge {
  top: 16px;
  background: rgba(110, 240, 218, 0.92);
  color: #05323d;
}

.side-panel { display: grid; gap: 14px; }
.input-panel, .combo-panel, .target-panel { padding: 18px; }

.target-caption,
.target-note { color: var(--muted); }

.target-problem {
  margin-top: 10px;
  padding: 14px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
}

.target-note {
  margin-top: 10px;
  line-height: 1.4;
}

.answer-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

[data-answer-input] {
  flex: 1;
  min-width: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 36, 0.58);
  color: var(--text);
  padding: 12px 14px;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
}

[data-answer-input]::placeholder {
  color: rgba(246, 243, 255, 0.45);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.side-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'input' 'helper';
  gap: 14px;
  align-items: stretch;
  direction: ltr;
}

.helper-panel {
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  display: flex;
}

.side-input-row > .input-panel {
  grid-area: input;
  min-width: 0;
}

.side-input-row > .helper-panel {
  grid-area: helper;
  min-width: 0;
}

.keypad-key {
  min-height: 44px;
  padding: 8px 10px;
}

.combo-panel strong {
  display: block;
  margin-top: 10px;
  font-size: 3rem;
}

.combo-panel span { color: var(--muted); }

@keyframes wrong-flash {
  0% { transform: scale(1); background: linear-gradient(180deg, #fdf0c7, #f5dd9e); }
  50% { transform: scale(1.05); background: linear-gradient(180deg, #ffccd6, #ff9caf); }
  100% { transform: scale(1); background: linear-gradient(180deg, #fdf0c7, #f5dd9e); }
}

@keyframes pop-away {
  to {
    transform: scale(0.7);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .game-layout { grid-template-columns: 1fr; }
  .tower-frame {
    min-height: 540px;
    padding: 12px;
  }
  .game-field { height: 450px; }
  .side-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .side-input-row {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas: 'input helper';
  }
  .side-input-row > .input-panel,
  .side-input-row > .helper-panel {
    grid-column: auto !important;
  }
  .helper-panel {
    min-height: 240px;
    aspect-ratio: auto;
  }
  .hud-row-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1440px), (max-height: 920px) {
  .tower-frame {
    min-height: 520px;
    padding: 12px;
  }

  .game-field {
    height: 440px;
    border-radius: 24px;
  }

  .problem-card {
    width: var(--card-width, 126px);
    min-height: 64px;
    padding: 12px 14px;
    font-size: 1.35rem;
  }

  .input-panel,
  .combo-panel,
  .target-panel {
    padding: 16px;
  }

  .target-problem,
  .input-target-problem {
    font-size: 1.45rem;
    padding: 12px 14px;
  }

  .helper-panel {
    min-height: 200px;
  }
}

@media (min-width: 981px) {
  .side-input-row {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    grid-template-areas: 'input helper';
    align-items: stretch;
  }

  .helper-panel {
    min-height: 260px;
    aspect-ratio: auto;
  }
}

@media (max-height: 820px) {
  .tower-frame {
    min-height: 500px;
    padding: 10px;
  }

  .game-field {
    height: 390px;
  }

  .helper-panel {
    min-height: 180px;
  }
}

@media (max-width: 700px) {
  .hud-row,
  .hud-row-compact { grid-template-columns: repeat(2, 1fr); }
  .game-head {
    justify-content: flex-end;
  }
  .tower-frame {
    min-height: 440px;
    padding: 10px;
  }
  .game-field {
    height: 400px;
    border-radius: 22px;
  }
  .side-panel {
    grid-template-columns: 1fr;
  }
  .side-input-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      'input'
      'helper';
  }
  .answer-row {
    flex-direction: column;
  }
  .answer-row .primary-button.compact {
    width: 100%;
  }
  .problem-card {
    width: var(--card-width, 140px);
    min-height: 62px;
    padding: 10px 12px;
    font-size: 1.2rem;
  }
  .target-problem {
    font-size: 1.5rem;
  }
  .keypad {
    gap: 8px;
  }
  .keypad-key {
    min-height: 44px;
  }
  .tower-footer {
    margin-top: 10px;
  }
}

/* Horizontal road scene */
.field-sky,
.field-clouds,
.field-mountains,
.field-hills,
.tree-line,
.critter-lane,
.road-strip,
.road-dashes,
.road-goal-sign,
.runner-zone,
.danger-stack {
  position: absolute;
  pointer-events: none;
}

.field-sky {
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 239, 187, 0.22), transparent 18%),
    radial-gradient(circle at 84% 12%, rgba(141, 214, 255, 0.18), transparent 16%),
    linear-gradient(180deg, rgba(118, 184, 255, 0.16), rgba(88, 110, 176, 0.04) 54%, transparent 55%);
  z-index: 0;
}

.field-clouds {
  left: -5%;
  width: 210%;
  background-repeat: repeat-x;
  background-size: auto 100%;
  will-change: transform;
}

.field-clouds--far {
  top: 4%;
  height: 32%;
  opacity: 0.72;
  background-image: url('../assets/scene/clouds-far.svg');
  animation: scene-drift-far 72s linear infinite;
  z-index: 1;
}

.field-clouds--near {
  top: 10%;
  height: 40%;
  opacity: 0.94;
  background-image: url('../assets/scene/clouds-near.svg');
  animation: scene-drift-near 42s linear infinite;
  z-index: 2;
}

.field-mountains {
  left: -4%;
  width: 208%;
  bottom: 40%;
  height: 26%;
  opacity: 0.62;
  background: url('../assets/scene/mountains-far.svg') repeat-x 0 100% / auto 100%;
  animation: scene-drift-mountains 96s linear infinite;
  will-change: transform;
  z-index: 3;
}

.field-hills {
  left: -6%;
  right: -6%;
  bottom: 26%;
  height: 34%;
  background:
    radial-gradient(65% 120% at 10% 100%, rgba(82, 152, 98, 0.84), transparent 70%),
    radial-gradient(55% 100% at 34% 100%, rgba(110, 180, 101, 0.82), transparent 68%),
    radial-gradient(60% 110% at 64% 100%, rgba(76, 145, 115, 0.74), transparent 70%),
    radial-gradient(60% 110% at 92% 100%, rgba(103, 162, 116, 0.84), transparent 68%);
  opacity: 0.95;
  animation: hills-breathe 8s ease-in-out infinite alternate;
  z-index: 4;
}

.tree-line {
  left: -4%;
  width: 208%;
  background-repeat: repeat-x;
  background-size: auto 100%;
  will-change: transform;
}

.tree-line--back {
  bottom: 26%;
  height: 25%;
  opacity: 0.78;
  background-image: url('../assets/scene/trees-back.svg');
  animation: scene-drift-mid 28s linear infinite;
  z-index: 5;
}

.critter-lane {
  left: 0;
  right: 0;
  bottom: 23%;
  height: 18%;
  overflow: hidden;
  z-index: 6;
}

.critter {
  position: absolute;
  display: block;
  bottom: 4%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  filter: drop-shadow(0 6px 10px rgba(18, 14, 15, 0.18));
  will-change: transform, opacity;
}

.critter--rabbit {
  width: 52px;
  height: 34px;
  background-image: url('../assets/scene/critter-rabbit.svg');
  animation: critter-rabbit-run 20s linear infinite;
}

.critter--squirrel {
  width: 54px;
  height: 34px;
  bottom: 8%;
  background-image: url('../assets/scene/critter-squirrel.svg');
  animation: critter-squirrel-run 24s linear infinite;
}

.critter--rabbit-alt {
  width: 42px;
  height: 28px;
  bottom: 10%;
  background-image: url('../assets/scene/critter-rabbit.svg');
  filter: drop-shadow(0 6px 10px rgba(18, 14, 15, 0.14)) saturate(0.92);
  animation: critter-rabbit-alt-run 28s linear infinite;
}

.tree-line--front {
  bottom: 22%;
  height: 30%;
  opacity: 0.96;
  background-image: url('../assets/scene/trees-front.svg');
  animation: scene-drift-front 18s linear infinite;
  z-index: 7;
}

.road-strip {
  left: 0;
  right: 0;
  bottom: 0;
  height: 39%;
  background:
    linear-gradient(180deg, rgba(79, 70, 63, 0.18), rgba(44, 33, 30, 0.06) 16%, transparent 17%),
    linear-gradient(180deg, rgba(122, 93, 69, 0.06), rgba(86, 64, 48, 0.08) 24%, rgba(110, 80, 58, 0.92) 25%, rgba(123, 88, 61, 0.98) 100%);
  border-top: 1px solid rgba(255, 229, 192, 0.18);
  z-index: 5;
}

.road-strip::before {
  content: '';
  position: absolute;
  inset: 22% 0 auto;
  height: 14%;
  background: linear-gradient(180deg, rgba(255, 239, 205, 0.12), rgba(255, 239, 205, 0));
  opacity: 0.8;
}

.road-dashes {
  left: 18%;
  right: 9%;
  bottom: 14%;
  height: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 240, 202, 0.84) 0 34px, transparent 34px 76px);
  border-radius: 999px;
  opacity: 0.92;
  animation: road-dashes-run 1.2s linear infinite;
  z-index: 8;
}

.road-goal-sign {
  right: 32px;
  bottom: 30%;
  width: 84px;
  height: 110px;
  display: grid;
  align-items: end;
  justify-items: center;
  z-index: 9;
}

.road-goal-sign::before {
  content: '';
  width: 10px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff0d4, #9b6d41);
  box-shadow: 0 10px 20px rgba(14, 19, 46, 0.22);
}

.road-goal-sign span {
  position: absolute;
  top: 2px;
  right: 0;
  padding: 8px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffd97e, #ffb257);
  color: #4f2d08;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px rgba(51, 24, 5, 0.18);
}

.runner-zone {
  left: 30px;
  bottom: 8%;
  width: 152px;
  height: 182px;
  z-index: 10;
}

.runner-danger-line {
  position: absolute;
  left: 88px;
  top: 18px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 168, 125, 0.1), rgba(255, 114, 94, 0.92), rgba(255, 204, 164, 0.1));
  box-shadow: 0 0 0 4px rgba(255, 117, 117, 0.12), 0 0 28px rgba(255, 116, 84, 0.26);
}

.runner-character {
  position: absolute;
  left: 12px;
  bottom: 4px;
  width: 84px;
  height: 118px;
  transform-origin: 50% 80%;
  animation: runner-bounce 0.72s ease-in-out infinite alternate;
}

.runner-character::before,
.runner-character::after {
  content: '';
  position: absolute;
}

.runner-character::before {
  left: 28px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd7b3, #e5b38e);
  box-shadow: inset 0 -2px 0 rgba(128, 72, 34, 0.14);
}

.runner-character::after {
  left: 4px;
  top: 32px;
  width: 22px;
  height: 30px;
  border-radius: 12px 14px 12px 10px;
  background: linear-gradient(180deg, #ffcc6a, #f19334);
  transform: rotate(-10deg);
  box-shadow: 0 8px 16px rgba(33, 18, 6, 0.18);
}

.runner-torso,
.runner-arm,
.runner-leg {
  position: absolute;
  display: block;
}

.runner-torso {
  left: 20px;
  top: 24px;
  width: 40px;
  height: 48px;
  border-radius: 18px 18px 14px 14px;
  background: linear-gradient(180deg, #76e2ff, #3f86f5);
  box-shadow: inset 0 -4px 0 rgba(18, 58, 125, 0.18);
}

.runner-arm {
  left: 53px;
  top: 40px;
  width: 20px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd7b3, #e1ab7f);
  transform: rotate(-24deg);
}

.runner-leg {
  bottom: 8px;
  width: 14px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, #362b73, #1c1544);
  transform-origin: top center;
}

.runner-leg--back {
  left: 24px;
  animation: runner-leg-back 0.48s ease-in-out infinite alternate;
}

.runner-leg--front {
  left: 45px;
  animation: runner-leg-front 0.48s ease-in-out infinite alternate;
}

.runner-character.is-danger {
  animation-duration: 0.34s;
  filter: drop-shadow(0 0 14px rgba(255, 170, 113, 0.28));
}

.field-grid {
  opacity: 0.12;
  background-size: 100% 88px, 88px 100%;
  z-index: 11;
}

.problem-card {
  position: absolute;
  width: var(--card-width, 112px);
  aspect-ratio: 1;
  min-height: 0;
  padding: 14px;
  border-radius: 50%;
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  box-shadow: 0 18px 28px rgba(24, 18, 18, 0.26);
  border-width: 4px;
  overflow: hidden;
  z-index: 13;
}

.problem-card::before {
  content: '';
  position: absolute;
  inset: 10px 14px auto;
  height: 28%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.problem-card.rolling {
  animation: obstacle-glow 0.8s ease-in-out infinite alternate;
}

.problem-card.priority {
  box-shadow: 0 0 0 5px rgba(110, 240, 218, 0.45), 0 20px 30px rgba(57, 30, 12, 0.34);
}

.danger-stack {
  left: auto;
  right: 16px;
  bottom: 16px;
  z-index: 14;
}

.danger-meter {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(9, 16, 38, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(7, 12, 31, 0.18);
}

.danger-meter-label {
  color: rgba(245, 243, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.danger-meter-dots {
  display: flex;
  gap: 8px;
}

.danger-meter-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(197, 246, 188, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.danger-meter-dot.is-lost {
  background: linear-gradient(180deg, #ff8d74, #ea5742);
  box-shadow: 0 0 0 3px rgba(255, 117, 117, 0.12);
}

.input-target-kicker {
  margin: 0 0 8px;
  color: rgba(218, 209, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.input-target-problem {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(246, 244, 255, 0.98);
  text-align: center;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 800;
}

@keyframes obstacle-glow {
  from { box-shadow: 0 18px 28px rgba(24, 18, 18, 0.26); }
  to { box-shadow: 0 22px 34px rgba(24, 18, 18, 0.34); }
}

@keyframes scene-drift-far {
  from { transform: translateX(0); }
  to { transform: translateX(-24%); }
}

@keyframes scene-drift-near {
  from { transform: translateX(0); }
  to { transform: translateX(-32%); }
}

@keyframes scene-drift-mountains {
  from { transform: translateX(0); }
  to { transform: translateX(-18%); }
}

@keyframes scene-drift-mid {
  from { transform: translateX(0); }
  to { transform: translateX(-36%); }
}

@keyframes scene-drift-front {
  from { transform: translateX(0); }
  to { transform: translateX(-44%); }
}

@keyframes hills-breathe {
  from { transform: translateY(0); }
  to { transform: translateY(6px); }
}

@keyframes road-dashes-run {
  from { background-position: 0 0; }
  to { background-position: -76px 0; }
}

@keyframes critter-rabbit-run {
  0%, 12% { transform: translateX(112vw) translateY(0) scaleX(-1); opacity: 0; }
  14% { opacity: 0.92; }
  20% { transform: translateX(82vw) translateY(-3px) scaleX(-1); opacity: 0.96; }
  26% { transform: translateX(54vw) translateY(0) scaleX(-1); opacity: 0.96; }
  31% { transform: translateX(28vw) translateY(-4px) scaleX(-1); opacity: 0.88; }
  34% { opacity: 0; }
  100% { transform: translateX(-16vw) translateY(0) scaleX(-1); opacity: 0; }
}

@keyframes critter-squirrel-run {
  0%, 34% { transform: translateX(-18vw) translateY(0) scaleX(1); opacity: 0; }
  36% { opacity: 0.88; }
  43% { transform: translateX(18vw) translateY(-4px) scaleX(1); opacity: 0.94; }
  49% { transform: translateX(42vw) translateY(0) scaleX(1); opacity: 0.94; }
  56% { transform: translateX(68vw) translateY(-2px) scaleX(1); opacity: 0.9; }
  60% { opacity: 0; }
  100% { transform: translateX(112vw) translateY(0) scaleX(1); opacity: 0; }
}

@keyframes critter-rabbit-alt-run {
  0%, 62% { transform: translateX(118vw) translateY(0) scaleX(-1) scale(0.92); opacity: 0; }
  64% { opacity: 0.78; }
  70% { transform: translateX(84vw) translateY(-2px) scaleX(-1) scale(0.92); opacity: 0.84; }
  76% { transform: translateX(58vw) translateY(0) scaleX(-1) scale(0.92); opacity: 0.84; }
  82% { transform: translateX(34vw) translateY(-3px) scaleX(-1) scale(0.92); opacity: 0.72; }
  85% { opacity: 0; }
  100% { transform: translateX(-18vw) translateY(0) scaleX(-1) scale(0.92); opacity: 0; }
}

@keyframes runner-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

@keyframes runner-leg-front {
  from { transform: rotate(-18deg); }
  to { transform: rotate(18deg); }
}

@keyframes runner-leg-back {
  from { transform: rotate(14deg); }
  to { transform: rotate(-12deg); }
}
