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

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

.bs {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 336px);
  height: 196px;
  max-height: calc(100vh - 32px);
  border: 2px solid;
  border-color: rgba(255, 255, 255, 0.95) rgba(23, 20, 26, 0.38) rgba(23, 20, 26, 0.38) rgba(255, 255, 255, 0.95);
  background: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.bs button {
  font-family: inherit;
  cursor: pointer;
}

.bs button:focus-visible {
  outline: 2px solid #ffd23f;
  outline-offset: 1px;
}

.bs__win {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bs__title {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 4px;
  box-sizing: border-box;
  background: #0a4fe8;
  color: #fff7e6;
}

.bs__tico {
  display: grid;
  place-items: center;
}

.bs__tname {
  flex: 1 1 auto;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
}

.bs__tbtns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bs__gb {
  width: 14px;
  height: 13px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 247, 230, 0.85);
}

.bs__gb--min {
  border: 0;
  border-bottom: 2px solid rgba(255, 247, 230, 0.85);
  width: 12px;
  align-self: flex-end;
}

.bs__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.bs__row {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.bs__k {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(23, 20, 26, 0.72);
}

.bs__v {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.5;
  color: #17141a;
}

.bs__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.bs__btn {
  min-width: 96px;
  height: 26px;
  box-sizing: border-box;
  padding: 0 8px;
  background: #fff7e6;
  color: #17141a;
  border: 2px solid;
  border-color: rgba(255, 255, 255, 0.95) rgba(23, 20, 26, 0.38) rgba(23, 20, 26, 0.38) rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  transition: transform 220ms ease-out;
}

.bs__btn:active {
  border-color: rgba(23, 20, 26, 0.38) rgba(255, 255, 255, 0.95) rgba(255, 255, 255, 0.95) rgba(23, 20, 26, 0.38);
  transform: translateY(1px);
}

.bs__screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: #0a4fe8;
  clip-path: inset(0 0 0 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bs__screen.is-crash {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: clip-path 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bs__screen.is-crash.is-wiped {
  clip-path: inset(100% 0 0 0);
}

.bs__err {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bs__eline {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
  color: #fff7e6;
}

.bs__guide {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.bs__gtext {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
  color: #fff7e6;
}

.bs__dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bs__dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 247, 230, 0.35);
}

.bs__sact {
  display: flex;
  justify-content: center;
}

.bs.is-demo .bs__screen {
  visibility: visible;
  opacity: 1;
  pointer-events: none;
  animation-name: bsCut, bsWipe;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
  animation-fill-mode: backwards, backwards;
}

.bs.is-demo .bs__dot {
  animation-name: bsDot;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.bs.is-demo .bs__dot:nth-child(1) {
  animation-delay: -1600ms;
}

.bs.is-demo .bs__dot:nth-child(2) {
  animation-delay: -1400ms;
}

.bs.is-demo .bs__dot:nth-child(3) {
  animation-delay: -1200ms;
}

@keyframes bsCut {
  0%, 7% {
    opacity: 0;
  }
  8%, 100% {
    opacity: 1;
  }
}
@keyframes bsWipe {
  0%, 58% {
    clip-path: inset(0 0 0 0);
  }
  70%, 100% {
    clip-path: inset(100% 0 0 0);
  }
}
@keyframes bsDot {
  0%, 50% {
    background: #ffd23f;
  }
  51%, 100% {
    background: rgba(255, 247, 230, 0.35);
  }
}
@media (max-width: 340px) {
  .bs {
    height: 168px;
  }
  .bs__k, .bs__v {
    font-size: 11px;
  }
  .bs__eline, .bs__gtext {
    font-size: 11px;
  }
  .bs__err {
    margin-top: 0;
  }
  .bs__body {
    padding: 8px;
    gap: 0;
  }
  .bs__row + .bs__row {
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bs.is-demo .bs__screen, .bs.is-demo .bs__dot {
    animation: none !important;
  }
  .bs.is-demo .bs__screen {
    opacity: 0 !important;
    visibility: hidden !important;
    clip-path: none !important;
  }
  .bs.is-demo .bs__dot {
    background: rgba(255, 247, 230, 0.35) !important;
  }
}
