html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #f4ead6;
}

#activity-root {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100%;
}

.steps-game {
  --steps-ink: #38281d;
  --steps-soft: #695444;
  --steps-honey: #d79735;
  --steps-cream: #fff9ec;
  --steps-sage: #708664;
  --steps-plum: #79516a;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: clamp(5px, 0.9vmin, 9px);
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 2px clamp(4px, 0.8vmin, 8px) clamp(4px, 0.9vmin, 9px);
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  color: var(--steps-ink);
  box-shadow: none;
}

.steps-task-head {
  position: relative;
  z-index: 5;
  top: auto;
  right: auto;
  left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 30px;
  min-width: 0;
  pointer-events: none;
}

.steps-task-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.steps-target-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 250, 238, 0.88);
  box-shadow: 0 2px 8px rgba(67, 43, 22, 0.13);
  color: var(--steps-soft);
  font-size: clamp(12px, 1.6vmin, 15px);
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(3px);
}

.steps-target-summary span {
  color: rgba(105, 84, 68, 0.46);
}

.steps-target-summary b {
  display: inline-grid;
  min-width: 23px;
  min-height: 23px;
  place-items: center;
  border-bottom: 2px solid rgba(183, 114, 39, 0.45);
  color: var(--steps-ink);
  font-size: 1.08em;
  font-variant-numeric: tabular-nums;
}

.steps-world {
  --steps-axis-edge: 76px;
  --steps-axis-y: 83%;
  --steps-below-axis: 17%;
  --steps-leaf-clearance: 140px;
  --steps-table-clearance: 10px;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 176px;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 238, 0.04) 0%,
      rgba(255, 250, 238, 0) 18%,
      rgba(255, 250, 238, 0) 72%,
      rgba(255, 249, 235, 0.38) 86%,
      rgba(255, 249, 235, 0.96) 100%
    ),
    url("assets/trail-meadow.webp") center / 100% 100% no-repeat;
}

.steps-road {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.steps-road-stone {
  position: absolute;
  top: calc(var(--steps-axis-y) - 15px);
  width: clamp(46px, 7vmin, 54px);
  height: 28px;
  border: 0;
  background: url("assets/trail-stone.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 2px rgba(79, 53, 28, 0.28));
  transform: translateX(-50%) rotate(-0.8deg);
}

.steps-road-stone:nth-child(even) {
  width: clamp(44px, 6.6vmin, 52px);
  height: 27px;
  transform: translateX(-50%) rotate(1.2deg);
}

.steps-road-stone:nth-child(3n) {
  width: clamp(42px, 6.4vmin, 50px);
  height: 27px;
  transform: translateX(-50%) rotate(-1.6deg);
}

.steps-road-stone:nth-child(4n) {
  width: clamp(45px, 6.8vmin, 53px);
  height: 28px;
  transform: translateX(-50%) scaleX(-1) rotate(0.7deg);
}

.steps-route-map {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.steps-route-leg {
  fill: none;
  stroke: #b86f2f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 7 5;
  filter: drop-shadow(0 1px 0 rgba(255, 249, 232, 0.9));
}

.steps-route-leg[data-jump="2"] {
  stroke: #6e7f55;
}

.steps-route-leg[data-jump="3"] {
  stroke: #80516f;
}

.steps-route-landing {
  fill: #fff9e9;
  stroke: #7f542f;
  stroke-width: 2;
}

.steps-axis {
  position: absolute;
  z-index: 5;
  right: 0;
  top: calc(var(--steps-axis-y) - 8px);
  bottom: auto;
  left: 0;
  height: 28px;
}

.steps-axis::before {
  position: absolute;
  right: var(--steps-axis-edge);
  left: var(--steps-axis-edge);
  top: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(75, 52, 33, 0.58);
  box-shadow:
    0 1px 0 rgba(255, 249, 230, 0.86),
    0 -1px 0 rgba(82, 52, 27, 0.18);
  content: "";
}

.steps-tick {
  position: absolute;
  left: var(--steps-axis-edge);
  top: 0;
  display: block;
  width: 2px;
  height: 12px;
  transform: translateX(-50%);
}

.steps-tick i {
  display: block;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: #5f432b;
  transition: box-shadow 120ms ease, background-color 120ms ease;
}

.steps-tick.is-landed i {
  background: #b46927;
  box-shadow: 0 0 0 4px rgba(214, 157, 73, 0.38);
}

.steps-tick b {
  position: absolute;
  z-index: 2;
  top: -7px;
  left: 50%;
  min-width: 24px;
  padding: 0;
  color: #38281d;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 3px rgba(255, 255, 255, 0.8);
}

.steps-start-flag,
.steps-leaf-target,
.steps-table-target,
.steps-gubo-marker {
  position: absolute;
  left: var(--steps-axis-edge);
  transform: translateX(-50%);
}

.steps-start-flag {
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.steps-leaf-target {
  z-index: 6;
  display: grid;
  justify-items: center;
  bottom: calc(var(--steps-below-axis) + var(--steps-leaf-clearance));
  width: 54px;
  padding: 0;
  color: #7b411d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: filter 180ms ease, transform 180ms ease;
}

.steps-table-target {
  z-index: 3;
  bottom: calc(var(--steps-below-axis) + var(--steps-table-clearance));
}

.steps-target-connector {
  position: absolute;
  top: 100%;
  left: calc(50% - 1px);
  width: 2px;
  height: var(--steps-leaf-clearance);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(109, 69, 34, 0.72), rgba(109, 69, 34, 0.3));
  content: "";
  pointer-events: none;
}

.steps-table-target .steps-target-connector {
  height: var(--steps-table-clearance);
}

.steps-target-landing {
  position: absolute;
  z-index: 2;
  top: var(--steps-axis-y);
  bottom: auto;
  width: 18px;
  height: 18px;
  border: 2px solid #80512d;
  border-radius: 50%;
  background: rgba(246, 213, 130, 0.44);
  box-shadow: 0 0 0 3px rgba(255, 244, 207, 0.7);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.steps-target-landing--table {
  border-color: #6b5840;
  background: rgba(231, 209, 168, 0.44);
}

.steps-leaf-target img {
  display: block;
  width: 54px;
  height: 54px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(67, 38, 17, 0.23));
}

.steps-leaf-target.is-collected {
  filter: saturate(0.55);
  opacity: 0.58;
}

.steps-leaf-target.is-missed {
  padding: 2px 4px 3px;
  outline: 2px dashed #b87631;
  background: rgba(255, 250, 235, 0.94);
  animation: steps-leaf-wait 900ms ease-in-out 2;
}

.steps-table-target {
  display: grid;
  justify-items: center;
  width: clamp(88px, 10vmin, 96px);
  color: #5f432c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.steps-target-label {
  display: none;
}

.steps-table-target img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(67, 38, 17, 0.2));
}

.steps-gubo-marker {
  z-index: 4;
  bottom: calc(var(--steps-below-axis) + var(--steps-table-clearance));
  display: block;
  width: clamp(124px, 16.5vmin, 136px);
  height: clamp(124px, 16.5vmin, 136px);
  transform: translate(-50%, var(--arc));
  transition: filter 120ms ease;
}

.steps-gubo-marker img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 5px 5px rgba(50, 29, 15, 0.32));
}

.steps-route-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.steps-slots,
.steps-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.1vmin, 11px);
  min-width: 0;
}

.steps-slot,
.steps-card {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 0;
  font: inherit;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.steps-slot {
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 2px dashed rgba(114, 82, 51, 0.46);
  border-radius: 13px;
  background: rgba(255, 250, 237, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #8c7255;
}

.steps-slot-number {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 6px;
  font-size: 12px;
  font-weight: 700;
}

.steps-slot-plus {
  font-size: clamp(28px, 4vmin, 38px);
  font-weight: 400;
  line-height: 1;
}

.steps-slot.is-filled {
  border-style: solid;
  border-color: rgba(137, 91, 43, 0.34);
  background: rgba(255, 250, 237, 0.94);
}

.steps-slot.is-selected,
.steps-card.is-selected {
  outline: 3px solid #3d6682;
  outline-offset: 2px;
}

.steps-slot:focus-visible,
.steps-card:focus-visible {
  outline: 3px solid #274f70;
  outline-offset: 2px;
}

.steps-slot .steps-card-face {
  width: 100%;
  min-height: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.steps-slot-content {
  display: block;
  width: 100%;
  min-width: 0;
}

.steps-card {
  min-height: 100px;
  padding: 0;
  border-radius: 13px;
  background: transparent;
}

.steps-card.is-placed {
  opacity: 0.48;
  filter: saturate(0.5);
}

.steps-card-face {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto minmax(20px, 1fr);
  align-items: center;
  gap: 2px 7px;
  width: 100%;
  min-height: 100%;
  padding: 8px 10px;
  overflow: hidden;
  border: 2px solid #b7864d;
  border-radius: 13px;
  background:
    radial-gradient(circle at 88% 12%, rgba(217, 151, 53, 0.15), transparent 34%),
    linear-gradient(145deg, #fffdf7, #f2dfbe);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 3px 7px rgba(75, 46, 21, 0.16);
  color: #3e2b1e;
  text-align: left;
}

.steps-card-badge {
  grid-column: 1;
  grid-row: 1;
  color: #6f4a2c;
  font-size: clamp(12px, 1.45vmin, 14px);
  font-weight: 600;
  line-height: 1;
  opacity: 0.78;
}

.steps-card-value {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  color: #332115;
  font-size: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.steps-card-direction {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  color: #68472f;
  font-size: clamp(12px, 1.55vmin, 14px);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.steps-card-direction b {
  font-size: 1.55em;
  line-height: 0.8;
}

.steps-card-identity {
  display: none;
}

.steps-card-face[data-card-tone="0"] {
  border-color: #a96635;
  background:
    radial-gradient(circle at 88% 12%, rgba(192, 102, 42, 0.2), transparent 36%),
    linear-gradient(145deg, #fffdf7, #f3ddbd);
}

.steps-card-face[data-card-tone="1"] {
  border-color: #71825a;
  background:
    radial-gradient(circle at 88% 12%, rgba(111, 134, 83, 0.2), transparent 36%),
    linear-gradient(145deg, #fffdf6, #e4ead8);
}

.steps-card-face[data-card-tone="2"] {
  border-color: #8b6279;
  background:
    radial-gradient(circle at 88% 12%, rgba(130, 83, 109, 0.18), transparent 36%),
    linear-gradient(145deg, #fffdf7, #ecdfe6);
}

.steps-slot .steps-card-value {
  font-size: clamp(25px, 4vmin, 33px);
}

.steps-feedback {
  min-height: 18px;
  margin: 0;
  padding: 1px 7px;
  border-radius: 8px;
  color: #5c4633;
  font-size: clamp(12px, 1.55vmin, 15px);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.steps-feedback:empty {
  min-height: 0;
  padding: 0;
}

.steps-feedback[data-tone="success"] {
  background: rgba(220, 235, 194, 0.72);
  color: #38542c;
}

.steps-feedback[data-tone="retry"],
.steps-feedback[data-tone="hint"] {
  background: rgba(247, 225, 183, 0.72);
  color: #6a4828;
}

.steps-feedback[data-tone="demo"] {
  background: rgba(218, 231, 238, 0.72);
  color: #31546b;
}

.steps-hand {
  position: fixed;
  z-index: 12;
  display: block;
  width: clamp(44px, 7.2vmin, 64px);
  height: auto;
  pointer-events: none;
  transform: rotate(-9deg);
  transform-origin: 30% 5%;
  filter: drop-shadow(0 4px 4px rgba(43, 27, 15, 0.3));
  animation: steps-hand-tap 750ms ease-in-out infinite;
}

.steps-hand[hidden] {
  display: none;
}

.steps-ghost-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
}

.steps-drag-ghost {
  position: fixed;
  z-index: 101;
  width: min(31vw, 142px);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-2deg) scale(1.03);
  box-shadow: 0 12px 20px rgba(51, 31, 17, 0.28);
}

.steps-drag-ghost.is-demo {
  opacity: 0.94;
}

.steps-load-error,
.steps-boot-error {
  margin: 32px;
  padding: 20px;
  border-radius: 14px;
  background: #fff8e8;
  color: #4b3524;
  font: 600 18px/1.4 Fredoka, sans-serif;
  text-align: center;
}

.steps-fx-layer {
  position: fixed;
  z-index: 45;
  inset: 0;
  overflow: hidden;
  contain: strict;
  pointer-events: none;
}

.steps-fx-particle {
  position: absolute;
  display: block;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.steps-fx-spark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c8 0 20%, #f2c141 45%, rgba(215, 151, 53, 0) 72%);
  filter: drop-shadow(0 0 5px rgba(242, 193, 65, 0.72));
  animation: steps-fx-spark 760ms cubic-bezier(0.18, 0.72, 0.3, 1) var(--fx-delay, 0ms) both;
}

.steps-fx-leaf {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(65, 39, 19, 0.24));
  animation: steps-fx-fall 1500ms cubic-bezier(0.19, 0.74, 0.32, 1) var(--fx-delay, 0ms) both;
}

.steps-fx-layer[data-phase="round"] .steps-fx-particle {
  margin: -4px 0 0 -4px;
  animation-name: steps-fx-orbit;
}

.steps-fx-layer[data-phase="round"] .steps-fx-leaf {
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
}

.steps-fx-layer[data-phase="level"][data-variant="1"] .steps-fx-leaf {
  animation-name: steps-fx-fall-alt;
}

.steps-fx-bloom-ray {
  width: 7px;
  height: 7px;
  animation-name: steps-fx-bloom;
  animation-duration: 1250ms;
}

.steps-fx-static {
  position: absolute;
  display: block;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.steps-fx-static--round {
  width: 54px;
  height: 54px;
  border: 2px solid #f2c141;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 247, 200, 0.54), rgba(242, 193, 65, 0) 70%);
  box-shadow: 0 0 0 5px rgba(255, 247, 200, 0.35);
}

.steps-fx-static--corner {
  width: 24px;
  height: 24px;
  border: 2px solid #f2c141;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5bd 0 20%, rgba(242, 193, 65, 0.42) 38%, transparent 70%);
  box-shadow: 0 0 12px rgba(242, 193, 65, 0.52);
}

@keyframes steps-hand-tap {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: 7px;
  }
}

@keyframes steps-fx-orbit {
  0% {
    opacity: 0;
    transform: rotate(var(--fx-angle, 0deg)) translateX(var(--fx-near, 12px)) scale(0.45);
  }
  35% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: rotate(calc(var(--fx-angle, 0deg) + 210deg)) translateX(var(--fx-far, 34px)) scale(0.18);
  }
}

@keyframes steps-fx-spark {
  0%,
  100% {
    opacity: 0;
  }
  30%,
  65% {
    opacity: 0.92;
  }
}

@keyframes steps-fx-fall {
  0% {
    opacity: 0;
    transform: translate(0, -10px) rotate(0deg) scale(0.8);
  }
  18% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translate(var(--fx-drift, 18px), var(--fx-fall, 70px)) rotate(var(--fx-rotation, 70deg)) scale(0.92);
  }
}

@keyframes steps-fx-fall-alt {
  0% {
    opacity: 0;
    transform: translate(-8px, -4px) rotate(-18deg) scale(0.76);
  }
  22% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(var(--fx-drift, -18px), var(--fx-fall, 70px)) rotate(var(--fx-rotation, 70deg)) scale(0.88);
  }
}

@keyframes steps-fx-bloom {
  0%,
  16% {
    opacity: 0;
    transform: rotate(var(--fx-angle, 0deg)) translateX(4px) scale(0.2);
  }
  38% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--fx-angle, 0deg)) translateX(var(--fx-distance, 34px)) scale(0.1);
  }
}

@keyframes steps-leaf-wait {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.08);
  }
}

@media (max-width: 520px), (max-height: 560px) {
  .steps-game {
    grid-template-rows: auto minmax(0, 1fr) auto auto auto;
    gap: 4px;
    padding: 6px;
  }

  .steps-target-summary {
    gap: 4px;
    font-size: 12px;
  }

  .steps-target-summary b {
    min-width: 22px;
    min-height: 22px;
    font-size: 12px;
  }

  .steps-world {
    --steps-axis-edge: 32px;
    --steps-axis-y: 70%;
    --steps-below-axis: 30%;
    --steps-leaf-clearance: 76px;
    --steps-table-clearance: 8px;
  }

  .steps-slot {
    min-height: 64px;
  }

  .steps-card {
    min-height: 70px;
  }

  .steps-card-face {
    min-height: 100%;
  }

  .steps-road-stone {
    top: calc(var(--steps-axis-y) - 12px);
    width: 30px;
    height: 22px;
  }

  .steps-road-stone:nth-child(even),
  .steps-road-stone:nth-child(3n),
  .steps-road-stone:nth-child(4n) {
    width: 29px;
    height: 21px;
  }

  .steps-tick b {
    top: -4px;
    font-size: 18px;
  }

  .steps-leaf-target,
  .steps-leaf-target img {
    width: 48px;
    height: 48px;
  }

  .steps-table-target {
    width: 56px;
  }

  .steps-gubo-marker {
    width: 60px;
    height: 60px;
  }

  .steps-card-face {
    padding: 6px 7px;
  }

  .steps-card-value {
    font-size: 34px;
  }

  .steps-slot .steps-card-value {
    font-size: 30px;
  }

  .steps-card-direction {
    font-size: 12px;
  }

  .steps-feedback {
    min-height: 17px;
    padding: 1px 4px;
    font-size: 11px;
  }
}

@media (max-height: 800px) and (orientation: landscape) {
  .steps-world {
    --steps-leaf-clearance: 90px;
    min-height: 176px;
  }

  .steps-leaf-target,
  .steps-leaf-target img {
    width: 48px;
    height: 48px;
  }

  .steps-slot {
    min-height: 64px;
  }

  .steps-card {
    min-height: 74px;
  }

  .steps-gubo-marker {
    width: 100px;
    height: 100px;
  }
}

@media (max-height: 650px) and (orientation: landscape) {
  .steps-road-stone {
    top: calc(var(--steps-axis-y) - 10px);
    width: 28px;
    height: 20px;
  }

  .steps-road-stone:nth-child(even),
  .steps-road-stone:nth-child(3n),
  .steps-road-stone:nth-child(4n) {
    width: 27px;
    height: 19px;
  }

  .steps-tick b {
    top: -3px;
    font-size: 18px;
  }

  .steps-leaf-target,
  .steps-leaf-target img {
    width: 48px;
    height: 48px;
  }

  .steps-table-target {
    width: 54px;
  }

  .steps-card-face {
    min-height: 100%;
  }

  .steps-card-face {
    padding: 4px 7px;
  }

  .steps-card-value {
    font-size: 34px;
  }

  .steps-slot .steps-card-value {
    font-size: 30px;
  }

}

@media (max-height: 430px) and (orientation: landscape) {
  .steps-game {
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.35fr);
    grid-template-rows: 30px minmax(96px, 1fr) auto auto;
    column-gap: 6px;
    row-gap: 3px;
  }

  .steps-task-head {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: start;
    justify-self: start;
  }

  .steps-target-summary {
    justify-content: flex-start;
    gap: 2px;
    padding: 4px 6px;
    font-size: 11px;
  }

  .steps-target-summary b {
    min-width: 20px;
    min-height: 20px;
    font-size: 11px;
  }

  .steps-world {
    --steps-axis-edge: 32px;
    --steps-axis-y: 80%;
    --steps-below-axis: 20%;
    --steps-leaf-clearance: 66px;
    --steps-table-clearance: 8px;
    grid-column: 1;
    grid-row: 2 / 5;
    min-height: 122px;
  }

  .steps-axis {
    height: 26px;
  }

  .steps-slots {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
  }

  .steps-deck {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
  }

  .steps-feedback {
    grid-column: 2;
    grid-row: 4;
  }

  .steps-tick b {
    min-width: 20px;
  }

  .steps-leaf-target,
  .steps-leaf-target img {
    width: 30px;
    height: 30px;
  }

  .steps-table-target {
    width: 54px;
  }

  .steps-leaf-target img {
    width: 30px;
    height: 30px;
  }

  .steps-table-target img {
    width: 48px;
    height: auto;
  }

  .steps-gubo-marker {
    width: 58px;
    height: 58px;
  }

  .steps-slot,
  .steps-card,
  .steps-card-face {
    min-height: 48px;
  }

  .steps-road-stone {
    top: calc(var(--steps-axis-y) - 8px);
    width: 18px;
    height: 16px;
  }

  .steps-road-stone:nth-child(even),
  .steps-road-stone:nth-child(3n),
  .steps-road-stone:nth-child(4n) {
    width: 17px;
    height: 15px;
  }

  .steps-tick b {
    top: -2px;
  }

  .steps-card-face {
    padding: 4px 6px;
    grid-template-rows: auto minmax(14px, 1fr);
    gap: 0 5px;
  }

  .steps-card-badge,
  .steps-card-direction {
    font-size: 11px;
  }

  .steps-card-value {
    font-size: 27px;
  }

  .steps-slot .steps-card-value {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps-hand,
  .steps-leaf-target.is-missed {
    animation: none;
  }

  .steps-gubo-marker,
  .steps-leaf-target,
  .steps-drag-ghost,
  .steps-fx-particle {
    transition: none;
    animation: none;
  }
}

@media (forced-colors: active) {
  .steps-slot.is-selected,
  .steps-card.is-selected,
  .steps-slot:focus-visible,
  .steps-card:focus-visible {
    outline: 3px solid Highlight;
  }

  .steps-card-face,
  .steps-slot {
    border: 2px solid CanvasText;
  }
}
