html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.bkWrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bk {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.bk:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 4px;
}

.bk__plate {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: clamp(200px, 54vw, 224px);
  padding: 12px 0 8px;
  background: linear-gradient(180deg, rgba(255, 247, 230, 0.1), rgba(255, 247, 230, 0.02) 40%, rgba(23, 20, 26, 0.4)), #17141a;
  border: 1px solid rgba(255, 247, 230, 0.12);
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32), inset 0 1px 0 rgba(255, 247, 230, 0.16);
}

.bk__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 11px);
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: #fff7e6;
}

.bk__spark {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: #ff4d1f;
}

.bk__slot {
  position: relative;
  height: clamp(96px, 26vw, 116px);
  margin: 8px 16px 0;
  background: rgba(23, 20, 26, 0.85);
  border-radius: 12px;
  box-shadow: inset 0 4px 10px rgba(23, 20, 26, 0.9), inset 0 -1px 0 rgba(255, 247, 230, 0.08);
}

.bk__mark {
  position: absolute;
  left: 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: clamp(9px, 2.6vw, 10px);
  line-height: 1.3;
  color: #fff7e6;
}

.bk__mark--on {
  top: 8px;
}

.bk__mark--off {
  bottom: 8px;
}

.bk__led {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(255, 247, 230, 0.14);
  box-shadow: inset 0 1px 2px rgba(23, 20, 26, 0.8);
}

.bk__led::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ff4d1f;
  box-shadow: 0 0 8px rgba(255, 77, 31, 0.8), inset 0 -1px 2px rgba(23, 20, 26, 0.35);
  visibility: hidden;
}

.bkWrap[data-on=true] .bk__mark--on .bk__led::after,
.bkWrap[data-on=false] .bk__mark--off .bk__led::after {
  visibility: visible;
}

.bk__lever {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(34px, 9vw, 40px);
  height: clamp(76px, 20vw, 88px);
  background: linear-gradient(90deg, rgba(23, 20, 26, 0.32), rgba(255, 247, 230, 0.5) 28%, rgba(255, 247, 230, 0.16) 55%, rgba(23, 20, 26, 0.38)), #ffffff;
  border: 1px solid rgba(23, 20, 26, 0.45);
  border-radius: 8px;
  box-shadow: 0 8px 14px rgba(23, 20, 26, 0.55), inset 0 1px 0 rgba(255, 247, 230, 0.85);
  transform: translate(-50%, -50%) rotate(-26deg);
  transform-origin: 50% 50%;
  transition: transform 220ms steps(1, end);
}

.bkWrap[data-on=false] .bk__lever {
  transform: translate(-50%, -50%) rotate(26deg);
}

.bk__grip {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 8px;
  height: 34%;
  border-radius: 4px;
  background: repeating-linear-gradient(0deg, rgba(23, 20, 26, 0.38) 0 3px, rgba(255, 247, 230, 0.28) 3px 7px);
  box-shadow: inset 0 1px 3px rgba(23, 20, 26, 0.5);
}

.bk__lever::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 247, 230, 0.7), rgba(255, 247, 230, 0.08) 62%), #17141a;
  box-shadow: 0 0 0 2px rgba(255, 247, 230, 0.35), 0 1px 3px rgba(23, 20, 26, 0.7);
}

.bk__hazard {
  height: 14px;
  margin: 8px 16px 0;
  border-radius: 999px;
  background: repeating-linear-gradient(-45deg, #ffd23f 0 12px, rgba(23, 20, 26, 0.92) 12px 24px);
  border: 1px solid rgba(255, 247, 230, 0.14);
  box-shadow: inset 0 -2px 4px rgba(23, 20, 26, 0.55), inset 0 1px 0 rgba(255, 247, 230, 0.3);
}

.bk__hand {
  position: absolute;
  left: 50%;
  top: clamp(46px, 13vw, 54px);
  z-index: 2;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  pointer-events: none;
  color: #fff7e6;
  filter: drop-shadow(0 2px 3px rgba(23, 20, 26, 0.6));
  transform: translateY(-20px);
}

.bk__handIco {
  width: 100%;
  height: 100%;
  transform: scaleY(-1);
}

.bk__status {
  position: relative;
  margin: 0;
  width: 200px;
  height: 20px;
  font-weight: 700;
  font-size: clamp(11px, 3vw, 13px);
  line-height: 20px;
  color: #17141a;
}

.bk__state {
  position: absolute;
  inset: 0;
  text-align: center;
}

.bk__state--off {
  visibility: hidden;
}

.bkWrap[data-on=false] .bk__state--off {
  visibility: visible;
}

.bkWrap[data-on=false] .bk__state--on {
  visibility: hidden;
}

.bkWrap.is-demo .bk__lever {
  animation-name: bkLever;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.bkWrap.is-demo .bk__hand {
  animation-name: bkHand;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.bkWrap.is-demo .bk__plate {
  animation-name: bkThud;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.bkWrap.is-demo .bk__mark--on .bk__led::after,
.bkWrap.is-demo .bk__state--on {
  animation-name: bkShowOn;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

.bkWrap.is-demo .bk__mark--off .bk__led::after,
.bkWrap.is-demo .bk__state--off {
  animation-name: bkShowOff;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

@keyframes bkLever {
  0%, 25% {
    transform: translate(-50%, -50%) rotate(-26deg);
  }
  27%, 68% {
    transform: translate(-50%, -50%) rotate(26deg);
  }
  70%, 100% {
    transform: translate(-50%, -50%) rotate(-26deg);
  }
}
@keyframes bkHand {
  0% {
    transform: translateY(-20px);
  }
  12% {
    transform: translateY(0);
  }
  22% {
    transform: translateY(16px);
  }
  30%, 52% {
    transform: translateY(0);
  }
  64% {
    transform: translateY(16px);
  }
  72% {
    transform: translateY(0);
  }
  84%, 100% {
    transform: translateY(-20px);
  }
}
@keyframes bkThud {
  0%, 25% {
    transform: translateY(0);
  }
  29% {
    transform: translateY(2px);
  }
  33%, 70% {
    transform: translateY(0);
  }
  74% {
    transform: translateY(2px);
  }
  78%, 100% {
    transform: translateY(0);
  }
}
@keyframes bkShowOn {
  0%, 26% {
    visibility: visible;
  }
  28%, 69% {
    visibility: hidden;
  }
  71%, 100% {
    visibility: visible;
  }
}
@keyframes bkShowOff {
  0%, 26% {
    visibility: hidden;
  }
  28%, 69% {
    visibility: visible;
  }
  71%, 100% {
    visibility: hidden;
  }
}
@media (max-width: 340px) {
  .bkWrap {
    gap: 4px;
  }
  .bk__plate {
    padding-top: 8px;
    padding-bottom: 4px;
  }
  .bk__slot {
    height: 88px;
    margin-top: 4px;
  }
  .bk__hazard {
    height: 12px;
    margin-top: 4px;
  }
  .bk__hand {
    top: 42px;
  }
  .bk__status {
    height: 16px;
    line-height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bkWrap.is-demo .bk__lever,
  .bkWrap.is-demo .bk__hand,
  .bkWrap.is-demo .bk__plate,
  .bkWrap.is-demo .bk__mark--on .bk__led::after,
  .bkWrap.is-demo .bk__mark--off .bk__led::after,
  .bkWrap.is-demo .bk__state--on,
  .bkWrap.is-demo .bk__state--off {
    animation: none !important;
  }
  .bk__lever {
    transition: none !important;
  }
}
