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

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

.wb {
  box-sizing: border-box;
  width: min(360px, 94vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff7e6;
  color: #17141a;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.wb__title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.3;
}

.wb__title-ic {
  display: inline-flex;
  color: #2f6df6;
}

.wb__slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wb__slot {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: 1.5px solid rgba(23, 20, 26, 0.14);
  border-radius: 12px;
  background: #ffffff;
  color: #17141a;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.wb__slot[disabled] {
  background: rgba(23, 20, 26, 0.06);
  color: rgba(23, 20, 26, 0.42);
  cursor: not-allowed;
}

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

.wb__ring {
  position: absolute;
  inset: 0;
  border: 2px solid #2f6df6;
  border-radius: 12px;
  opacity: 0;
}

.wb__slot[aria-checked=true] .wb__ring {
  opacity: 1;
}

.wb__slot[aria-checked=true] {
  transform: translateY(-2px);
}

.wb__day {
  font-weight: 800;
  font-size: 11px;
  line-height: 1.2;
}

.wb__seat {
  font-weight: 600;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(23, 20, 26, 0.58);
}

.wb__seat--closed {
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(194, 54, 26, 0.14);
  color: #c2361a;
  font-weight: 800;
}

.wb__ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.14);
  color: #2f6df6;
  font-weight: 800;
  font-size: 9px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms ease-out, transform 300ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.wb__ok-ic {
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  transition: stroke-dashoffset 300ms ease-out;
}

.wb__slot.is-ok .wb__ok {
  opacity: 1;
  transform: translateY(0);
}

.wb__slot.is-ok .wb__ok-ic {
  stroke-dashoffset: 0;
}

.wb__cd {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.7);
}

.wb__cd-ic {
  display: inline-flex;
  color: #2f6df6;
}

.wb__clock {
  display: inline-flex;
  align-items: flex-end;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.15;
  color: #17141a;
  font-variant-numeric: tabular-nums;
}

.wb__d {
  display: block;
  overflow: hidden;
  width: 0.62em;
  height: 1.15em;
}

.wb__strip {
  display: block;
  transform: translateY(calc(var(--d, 0) * -1.15em));
}

.wb__strip b {
  display: block;
  height: 1.15em;
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
}

.wb__go {
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: #2f6df6;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.wb__go:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.wb__msg {
  margin: 0;
  min-height: 13px;
  font-weight: 500;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stage.is-demo .wb__slot:nth-child(1) .wb__ring {
  animation-name: wb-ring-a;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.stage.is-demo .wb__slot:nth-child(2) .wb__ring {
  animation-name: wb-ring-b;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes wb-ring-a {
  0%, 43% {
    opacity: 1;
  }
  44%, 100% {
    opacity: 0;
  }
}
@keyframes wb-ring-b {
  0%, 43% {
    opacity: 0;
  }
  44%, 100% {
    opacity: 1;
  }
}
.stage.is-demo .wb__slot:nth-child(1) {
  animation-name: wb-lift-a;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.stage.is-demo .wb__slot:nth-child(2) {
  animation-name: wb-lift-b;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

@keyframes wb-lift-a {
  0%, 38% {
    transform: translateY(-2px);
  }
  52%, 100% {
    transform: translateY(0);
  }
}
@keyframes wb-lift-b {
  0%, 40% {
    transform: translateY(0);
  }
  56% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(-2px);
  }
}
.stage.is-demo .wb__slot:nth-child(2) .wb__ok {
  animation-name: wb-badge;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@keyframes wb-badge {
  0%, 70% {
    opacity: 0;
    transform: translateY(-8px);
  }
  70.01% {
    opacity: 1;
    transform: translateY(-8px);
  }
  86% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.stage.is-demo .wb__slot:nth-child(2) .wb__ok-ic {
  animation-name: wb-draw;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@keyframes wb-draw {
  0%, 70% {
    stroke-dashoffset: 28;
  }
  88% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
.stage.is-demo .wb__d--s1 .wb__strip {
  animation-name: wb-tick;
  animation-duration: 2s;
  animation-timing-function: steps(10, end);
  animation-iteration-count: infinite;
}

@keyframes wb-tick {
  from {
    transform: translateY(-10.35em);
  }
  to {
    transform: translateY(1.15em);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wb__slot, .wb__ring, .wb__ok, .wb__ok-ic, .wb__strip,
  .stage.is-demo .wb__slot:nth-child(1), .stage.is-demo .wb__slot:nth-child(2),
  .stage.is-demo .wb__slot:nth-child(1) .wb__ring, .stage.is-demo .wb__slot:nth-child(2) .wb__ring,
  .stage.is-demo .wb__slot:nth-child(2) .wb__ok, .stage.is-demo .wb__slot:nth-child(2) .wb__ok-ic,
  .stage.is-demo .wb__d--s1 .wb__strip {
    animation: none !important;
    transition: none !important;
  }
  .stage.is-demo .wb__slot:nth-child(1) .wb__ring {
    opacity: 0 !important;
  }
  .stage.is-demo .wb__slot:nth-child(2) .wb__ring {
    opacity: 1 !important;
  }
  .stage.is-demo .wb__slot:nth-child(2) {
    transform: translateY(-2px) !important;
  }
  .stage.is-demo .wb__slot:nth-child(2) .wb__ok {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .stage.is-demo .wb__slot:nth-child(2) .wb__ok-ic {
    stroke-dashoffset: 0 !important;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .wb {
    width: min(292px, 92vw);
    gap: 4px;
    padding: 8px;
  }
  .wb__title {
    font-size: 12px;
  }
  .wb__title-ic svg {
    width: 12px;
    height: 12px;
  }
  .wb__slots {
    gap: 4px;
  }
  .wb__slot {
    gap: 0;
    padding: 4px;
  }
  .wb__day {
    font-size: 10px;
  }
  .wb__seat {
    font-size: 9px;
  }
  .wb__ok {
    font-size: 8px;
  }
  .wb__cd {
    font-size: 9px;
  }
  .wb__cd-ic svg {
    width: 12px;
    height: 12px;
  }
  .wb__clock {
    font-size: 11px;
  }
  .wb__go {
    padding: 4px 8px;
    font-size: 10px;
  }
  .wb__msg {
    min-height: 0;
    font-size: 9px;
  }
}
