/* ============================================================
   Part 01 — live block stage, portfolio feature
   ============================================================ */

@font-face {
  font-family: "LiveHand";
  src: url("assets/hand-live.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "NumHand";
  src: url("assets/hand-num.woff2") format("woff2");
  font-display: swap;
}

.work-feature {
  --live-blue: #2b50d8;
  position: relative;
  padding: clamp(24px, 3vw, 34px) 0 clamp(30px, 3.6vw, 42px);
  border-bottom: 1px solid var(--line);
}

/* ---------- Feature heading ---------- */

.feature-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px clamp(22px, 3vw, 38px);
  align-items: center;
}

.feature-num {
  grid-area: num;
  align-self: start;
  padding-top: 0;
  font-family: "NumHand", var(--serif);
  font-size: 34px;
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--accent);
}

.feature-title-block {
  grid-area: title;
  min-width: 0;
}

.feature-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  margin: 0 0 9px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.feature-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.feature-title span {
  display: inline-block;
  margin-left: 14px;
  vertical-align: 2px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.feature-case {
  grid-area: case;
  justify-self: end;
  align-self: center;
  font-size: 12.5px;
  white-space: nowrap;
}

.feature-case .arrow {
  font-size: 11px;
}

/* ---------- Stage shell ---------- */

.feature-shell {
  margin-top: clamp(20px, 2.4vw, 28px);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 85% at 12% 4%, rgba(255, 253, 247, 0.9), transparent 55%),
    linear-gradient(158deg, #f8f3e9 0%, #f0e9dc 68%, #eae1d1 100%);
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 253, 247, 0.34);
}

.stage-live {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}

.stage-live .dot {
  width: 5px;
  height: 5px;
  background: var(--live-blue);
  box-shadow: 0 0 0 3px rgba(43, 80, 216, 0.1);
  animation: stageBreath 2.6s ease-in-out infinite;
}

.stage-live-hand {
  font-family: "LiveHand", var(--serif);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--live-blue);
}

.stage-bar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 8px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--muted);
}

.stage-bar-sep {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--line);
}

.bar-coarse {
  display: none;
}

.stage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(288px, 26vw, 332px);
  align-items: stretch;
}

/* ---------- Table ---------- */

.stage {
  position: relative;
  height: clamp(480px, 40vw, 548px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 88% at 14% 6%, rgba(255, 253, 247, 0.94), rgba(255, 253, 247, 0) 54%),
    radial-gradient(82% 76% at 82% 100%, rgba(196, 183, 159, 0.22), rgba(196, 183, 159, 0) 66%),
    linear-gradient(158deg, #f7f2e8 0%, #f0e9db 60%, #e9e0d0 100%);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(72, 62, 46, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 62, 46, 0.052) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(ellipse 74% 70% at 52% 52%, #000 14%, transparent 80%);
  mask-image: radial-gradient(ellipse 74% 70% at 52% 52%, #000 14%, transparent 80%);
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 64px rgba(90, 76, 54, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.stage-field {
  position: absolute;
  inset: 22px 20px 46px;
  z-index: 3;
}

.js .stage-field {
  opacity: 0;
}

.js .stage-field.is-ready {
  opacity: 1;
  transition: opacity 0.55s ease;
}

/* ---------- Blocks ---------- */

.stage-block {
  position: absolute;
  width: var(--w, 100px);
  height: var(--d, 100px);
  margin: 0;
  z-index: var(--z, 1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
  touch-action: manipulation;
}

.stage-block::before {
  content: "";
  position: absolute;
  top: var(--hit-top, -30px);
  right: -12%;
  bottom: -12%;
  left: -12%;
}

.stage-block .stage-move {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 0.68s var(--ease), opacity 0.5s ease, filter 0.5s ease;
  will-change: transform;
}

.stage-block .iso {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(57deg) rotateZ(-45deg);
  pointer-events: none;
}

.stage-block .cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(var(--lift, 0px));
  transition: transform 0.6s var(--ease);
}

.stage-block .shadow {
  position: absolute;
  inset: 2% 1%;
  background: radial-gradient(ellipse at 47% 50%, rgba(58, 47, 33, 0.4), rgba(58, 47, 33, 0.16) 46%, rgba(58, 47, 33, 0) 73%);
  filter: blur(calc(var(--u, 40px) * 0.24));
  opacity: 0.9;
  transform: translateZ(0.2px) translate(11%, 15%);
  transition: opacity 0.55s ease, filter 0.55s ease;
  pointer-events: none;
}

.stage-block .face {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.stage-block .top {
  inset: 0;
  transform: translateZ(var(--h, 36px));
  background:
    radial-gradient(105% 105% at 24% 14%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 52%),
    linear-gradient(135deg, var(--top-a), var(--top-b) 76%);
  box-shadow:
    inset 0 0 0 1px var(--edge, rgba(255, 255, 255, 0.32)),
    inset -14px -18px 30px rgba(84, 69, 49, 0.045);
  transition: filter 0.4s ease;
}

.stage-block .top::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid var(--etch-line, rgba(40, 34, 25, 0.1));
}

.stage-block .side-x {
  top: 0;
  left: 0;
  width: var(--h, 36px);
  height: var(--d, 100px);
  transform-origin: 0 0;
  transform: rotateY(-90deg);
  background: linear-gradient(90deg, var(--sx-a), var(--sx-b));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.stage-block .side-y {
  top: 0;
  left: 0;
  width: var(--w, 100px);
  height: var(--h, 36px);
  transform-origin: 0 0;
  transform: translateY(var(--d, 100px)) rotateX(90deg);
  background: linear-gradient(90deg, var(--sy-a), var(--sy-b));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stage-block .block-no {
  position: absolute;
  left: 9%;
  bottom: 8%;
  z-index: 2;
  font-family: "NumHand", var(--serif);
  font-size: clamp(10px, calc(var(--u, 40px) * 0.34), 17px);
  letter-spacing: 0;
  line-height: 1;
  color: var(--etch, rgba(48, 40, 29, 0.46));
  transition: color 0.4s ease;
}

.stage-block .pin {
  position: absolute;
  top: 11%;
  right: 11%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--etch, rgba(48, 40, 29, 0.34));
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* tones */

.stage-block.tone-paper {
  --top-a: #fcf7ec;
  --top-b: #eee5d3;
  --sx-a: #e0d5c0;
  --sx-b: #cdc1a9;
  --sy-a: #c9bca3;
  --sy-b: #afa188;
  --edge: rgba(255, 255, 255, 0.38);
  --etch: rgba(57, 48, 35, 0.44);
  --etch-line: rgba(57, 48, 35, 0.1);
  --pin-on: var(--accent);
  --no-active: var(--accent);
}

.stage-block.tone-grey {
  --top-a: #e9e2d4;
  --top-b: #d8cebc;
  --sx-a: #cbbfa9;
  --sx-b: #b8aa91;
  --sy-a: #b2a48b;
  --sy-b: #94866e;
  --edge: rgba(255, 255, 255, 0.26);
  --etch: rgba(48, 41, 30, 0.42);
  --etch-line: rgba(48, 41, 30, 0.12);
  --pin-on: var(--accent);
  --no-active: var(--accent);
}

.stage-block.tone-ink {
  --top-a: #35312a;
  --top-b: #211e19;
  --sx-a: #1b1915;
  --sx-b: #100f0c;
  --sy-a: #24211b;
  --sy-b: #13110e;
  --edge: rgba(243, 239, 230, 0.14);
  --etch: rgba(243, 239, 230, 0.4);
  --etch-line: rgba(243, 239, 230, 0.1);
  --pin-on: #e8694a;
  --no-active: #efd3c6;
}

.stage-block.tone-red {
  --top-a: #ca5b3e;
  --top-b: #a83e26;
  --sx-a: #a43c25;
  --sx-b: #87301c;
  --sy-a: #90321f;
  --sy-b: #702415;
  --edge: rgba(255, 233, 216, 0.23);
  --etch: rgba(255, 240, 225, 0.58);
  --etch-line: rgba(255, 240, 225, 0.16);
  --pin-on: #ffeadb;
  --no-active: #ffeadb;
}

/* active block: slide outward from the middle and lift toward the reader */

.stage-block.is-active {
  z-index: 120;
}

.stage-block.is-active .stage-move {
  transform: translate3d(var(--push-x, 0px), var(--push-y, 0px), 0);
}

.stage-block.is-active .cube {
  --lift: calc(var(--u, 40px) * 1.12);
}

.stage-block.is-active .shadow {
  opacity: 0.58;
  filter: blur(calc(var(--u, 40px) * 0.4));
}

.stage-block.is-active .top {
  filter: brightness(1.045);
}

.stage-block.is-active .pin {
  background: var(--pin-on, var(--accent));
  box-shadow: 0 0 0 2px rgba(184, 65, 39, 0.14);
}

.stage-block.is-active .block-no {
  color: var(--no-active, var(--accent));
}

.stage-field.has-active .stage-block:not(.is-active) .stage-move {
  opacity: 0.6;
  filter: saturate(0.78);
  transform: translate3d(0, 2px, 0) scale(0.985);
}

.stage-block:focus-visible {
  outline: none;
}

.stage-block:focus-visible .top {
  box-shadow:
    inset 0 0 0 2px var(--accent),
    inset -14px -18px 30px rgba(84, 69, 49, 0.045);
}

.stage-block:focus-visible .pin {
  background: var(--pin-on, var(--accent));
  box-shadow: 0 0 0 2px rgba(184, 65, 39, 0.14);
}

.stage-block:focus-visible .block-no {
  color: var(--no-active, var(--accent));
}

/* ---------- Side panel ---------- */

.stage-panel {
  display: flex;
  min-width: 0;
  padding: 22px clamp(18px, 2vw, 26px) 18px;
  border-left: 1px solid var(--line);
  background: rgba(249, 245, 236, 0.5);
}

.stage-idle {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  animation: stagePanelIn 0.5s var(--ease) both;
}

.stage-idle-kicker {
  margin: 0;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.stage-idle-big {
  margin: 18px 0 0;
  font-family: "NumHand", var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 7.4vw, 96px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--live-blue);
}

.stage-idle-title {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.stage-idle-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.stage-idle-foot .dot {
  width: 4px;
  height: 4px;
  background: var(--live-blue);
  box-shadow: 0 0 0 3px rgba(43, 80, 216, 0.09);
}

.stage-detail {
  display: none;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.stage-panel.is-active .stage-idle {
  display: none;
}

.stage-panel.is-active .stage-detail {
  display: flex;
  animation: stagePanelIn 0.4s var(--ease) both;
}

.stage-kicker {
  margin: 0;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.stage-name {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.5vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.stage-tag {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--live-blue);
}

.stage-desc {
  margin: 18px 0 0;
  font-size: 11.8px;
  line-height: 1.85;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.stage-tech {
  margin: 14px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.stage-open {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  margin-top: 15px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.stage-open span {
  font-size: 11px;
  transition: transform 0.3s var(--ease);
}

.stage-open:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.stage-open:hover span {
  transform: translate(2px, -2px);
}

.stage-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: auto 0 0;
  padding-top: 16px;
  font-size: 7.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  word-break: break-all;
}

.stage-status .dot {
  width: 4px;
  height: 4px;
  flex: none;
  background: var(--live-blue);
  box-shadow: 0 0 0 3px rgba(43, 80, 216, 0.09);
}

/* ---------- Compact site index (small screens / no hover / no JS) ---------- */

.stage-index {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.36);
}

.stage-index li {
  border-bottom: 1px solid var(--line-soft);
}

.stage-index li:last-child {
  border-bottom: 0;
}

.stage-index a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  gap: 3px 11px;
  align-items: start;
  padding: 13px 16px 14px;
  transition: background-color 0.25s ease;
}

.stage-index a:hover {
  background: rgba(234, 228, 214, 0.55);
}

.idx-no {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 2px;
  font-family: "NumHand", var(--serif);
  font-size: 17px;
  letter-spacing: 0;
  color: var(--muted);
}

.idx-name {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.idx-tag {
  grid-column: 2;
  grid-row: 2;
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.idx-arrow {
  grid-row: 1;
  grid-column: 3;
  justify-self: end;
  font-size: 15px;
  line-height: 1.3;
  color: var(--muted);
}

html:not(.js) .stage-layout {
  display: none;
}

html:not(.js) .stage-index {
  display: block;
}

html:not(.js) .bar-fine,
html:not(.js) .bar-coarse,
html:not(.js) .stage-bar-sep {
  display: none;
}

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

@keyframes stageBreath {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.28;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .feature-head {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas:
      "num title"
      "num case";
    gap: 10px clamp(16px, 2.6vw, 26px);
    align-items: start;
  }

  .feature-case {
    justify-self: start;
    align-self: start;
    margin-top: 2px;
  }

  .stage-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage {
    height: clamp(460px, 52vw, 520px);
  }

  .stage-panel {
    display: none;
  }

  .stage-index {
    display: block;
  }
}

@media (max-width: 640px) {
  .work-feature {
    padding: 22px 0 30px;
  }

  .feature-head {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px 13px;
  }

  .feature-num {
    font-size: 26px;
  }

  .feature-kicker {
    margin-bottom: 7px;
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }

  .feature-title {
    font-size: clamp(29px, 8.4vw, 34px);
  }

  .feature-title span {
    display: block;
    margin: 6px 0 0;
    font-size: 11.5px;
    vertical-align: 0;
  }

  .feature-case {
    font-size: 12px;
  }

  .stage-bar {
    height: 36px;
    padding: 0 13px;
  }

  .stage-live-hand {
    font-size: 18px;
  }

  .stage-bar-meta {
    gap: 8px;
    font-size: 7px;
  }

  .stage-bar-sep {
    width: 10px;
  }

  .stage {
    height: 420px;
  }

  .stage-field {
    inset: 16px 12px 40px;
  }

  .stage-index a {
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    gap: 3px 9px;
    padding: 12px 13px 13px;
  }

  .idx-name {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .stage {
    height: 390px;
  }

  .stage-bar-meta .bar-fine,
  .stage-bar-meta .bar-coarse,
  .stage-bar-meta .stage-bar-sep {
    display: none;
  }
}

/* ---------- Coarse pointers ---------- */

@media (hover: none), (pointer: coarse) {
  .bar-fine {
    display: none;
  }

  .bar-coarse {
    display: inline;
  }
}

/* ---------- Destroy mode ---------- */

.stage-destroy-btn {
  margin-left: auto;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.stage-destroy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stage-destroy-btn.is-on {
  border-color: var(--accent);
  background: var(--accent);
  color: #fdf7ee;
}

.stage-destroy-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.stage-fx {
  position: absolute;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

.stage.is-destroying .stage-fx {
  display: block;
}

.stage-stick {
  position: absolute;
  left: 10px;
  bottom: 6px;
  z-index: 41;
  width: clamp(74px, 9vw, 108px);
  height: auto;
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
  pointer-events: none;
}

.stage.is-destroying .stage-stick {
  display: block;
  opacity: 1;
  transform: none;
}

.stage-stick .limb path,
.stage-stick .tube,
.stage-stick .tube-lip,
.stage-stick .grip,
.stage-stick .sight {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.2;
  stroke-linecap: round;
}

.stage-stick .head {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.2;
}

.stage-stick .tube,
.stage-stick .tube-lip,
.stage-stick .grip,
.stage-stick .sight {
  fill: rgba(25, 23, 19, 0.06);
}

.stage-stick #stage-muzzle {
  fill: var(--accent);
  stroke: none;
}

.stage-stick.firing #stage-muzzle {
  fill: #ff8a3d;
}

.stage-destroy-hud {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 42;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(253, 247, 238, 0.92);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
  pointer-events: none;
}

.stage-destroy-hud.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.stage-destroy-hud b {
  font-size: 11px;
  color: var(--accent);
}

.stage-destroy-hud button {
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.stage-destroy-hud button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.stage-destroy-hud button[data-destroy-nuke] {
  border-color: rgba(184, 65, 39, 0.4);
  color: var(--accent);
}

.stage-destroy-hud button[data-destroy-nuke]:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fdf7ee;
}

/* hit → dead transitions */

.stage-block.is-hit .stage-move {
  animation: stageHit 0.2s ease;
}

.stage-block.is-dead {
  pointer-events: none;
}

.stage-block.is-dead .stage-move {
  opacity: 0.14;
  filter: grayscale(1);
  transform: translate3d(0, 6px, 0) scale(0.94);
}

.stage-block.is-dead .top::after {
  border-color: rgba(40, 34, 25, 0.05);
}

.stage-block.is-dead .pin,
.stage-block.is-dead .block-no {
  opacity: 0.35;
}

.stage.is-destroying .stage-block {
  cursor: crosshair;
}

.stage.is-destroying .stage-block.is-dead {
  cursor: default;
}

.stage.is-destroying .stage-block {
  -webkit-user-select: none;
  user-select: none;
}

@keyframes stageHit {
  0% { transform: translate3d(0, 0, 0); }
  40% { transform: translate3d(3px, -4px, 0) rotate(0.6deg); }
  100% { transform: translate3d(0, 2px, 0); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .stage-block.is-active .stage-move {
    transform: none;
  }

  .stage-live .dot {
    animation: none;
  }

  .stage-block.is-hit .stage-move {
    animation: none;
  }

  .stage-fx {
    display: none;
  }

  .stage-block.is-dead {
    opacity: 0.16;
    filter: grayscale(1);
  }
}
