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

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

.tk {
  box-sizing: border-box;
  width: min(400px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.tk__box {
  display: flex;
  justify-content: center;
  height: 64px;
}

.tk__card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #17141a;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.tk__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background-color: #4cd4a6;
}

.tk__face {
  position: absolute;
  left: 6px;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  opacity: 0;
}

.tk__face[data-kind=ok] {
  color: #4cd4a6;
}

.tk__face[data-kind=warn] {
  color: #ffd23f;
}

.tk__face[data-kind=bad] {
  color: #ff4d1f;
}

.tk__face[data-kind=info] {
  color: #6ec8ff;
}

.tk__ic {
  display: inline-flex;
  flex: 0 0 auto;
}

.tk__ic svg {
  display: block;
}

.tk__msg {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  color: #fff7e6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tk:not(.is-demo) .tk__card[data-kind=ok] .tk__face[data-kind=ok],
.tk:not(.is-demo) .tk__card[data-kind=warn] .tk__face[data-kind=warn],
.tk:not(.is-demo) .tk__card[data-kind=bad] .tk__face[data-kind=bad],
.tk:not(.is-demo) .tk__card[data-kind=info] .tk__face[data-kind=info] {
  opacity: 1;
}

.tk:not(.is-demo) .tk__card[data-kind=ok] .tk__bar {
  background-color: #4cd4a6;
}

.tk:not(.is-demo) .tk__card[data-kind=warn] .tk__bar {
  background-color: #ffd23f;
}

.tk:not(.is-demo) .tk__card[data-kind=bad] .tk__bar {
  background-color: #ff4d1f;
}

.tk:not(.is-demo) .tk__card[data-kind=info] .tk__bar {
  background-color: #6ec8ff;
}

.tk__card.is-pop {
  animation-name: tk-pop;
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: 1;
}

.tk__row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.tk__pick {
  box-sizing: border-box;
  margin: 0;
  padding: 4px 12px;
  border: 2px solid #17141a;
  border-radius: 999px;
  background: transparent;
  color: #17141a;
  font-family: inherit;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  cursor: pointer;
}

.tk__pick[aria-pressed=true] {
  background: #17141a;
  color: #ffd23f;
}

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

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

.tk.is-demo .tk__face[data-kind=ok] {
  animation-delay: 0s;
}

.tk.is-demo .tk__face[data-kind=warn] {
  animation-delay: -1.5s;
}

.tk.is-demo .tk__face[data-kind=bad] {
  animation-delay: -1s;
}

.tk.is-demo .tk__face[data-kind=info] {
  animation-delay: -0.5s;
}

@keyframes tk-face {
  0% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.tk.is-demo .tk__bar {
  animation-name: tk-bar;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes tk-bar {
  0% {
    background-color: #4cd4a6;
  }
  25% {
    background-color: #ffd23f;
  }
  50% {
    background-color: #ff4d1f;
  }
  75% {
    background-color: #6ec8ff;
  }
  100% {
    background-color: #4cd4a6;
  }
}
.tk.is-demo .tk__pick {
  animation-name: tk-pick;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.tk.is-demo .tk__pick[data-pick=ok] {
  animation-delay: 0s;
}

.tk.is-demo .tk__pick[data-pick=warn] {
  animation-delay: -1.5s;
}

.tk.is-demo .tk__pick[data-pick=bad] {
  animation-delay: -1s;
}

.tk.is-demo .tk__pick[data-pick=info] {
  animation-delay: -0.5s;
}

@keyframes tk-pick {
  0% {
    background-color: #17141a;
    color: #ffd23f;
  }
  25% {
    background-color: rgba(255, 255, 255, 0);
    color: #17141a;
  }
  100% {
    background-color: rgba(255, 255, 255, 0);
    color: #17141a;
  }
}
.tk.is-demo .tk__card {
  animation-name: tk-pop;
  animation-duration: 500ms;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

@keyframes tk-pop {
  0% {
    transform: scale(0.94);
  }
  34% {
    transform: scale(1.02);
  }
  60% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .tk {
    gap: 8px;
  }
  .tk__box {
    height: 52px;
  }
  .tk__face {
    gap: 8px;
    padding: 0 12px;
  }
  .tk__msg {
    font-size: 11px;
    line-height: 16px;
  }
  .tk__pick {
    padding: 4px 8px;
    font-size: 11px;
    line-height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tk.is-demo .tk__face,
  .tk.is-demo .tk__bar,
  .tk.is-demo .tk__card,
  .tk.is-demo .tk__pick,
  .tk__card.is-pop {
    animation: none !important;
  }
  .tk.is-demo .tk__face[data-kind=ok] {
    opacity: 1;
  }
}
