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);
}

.ip {
  box-sizing: border-box;
  width: min(100%, 276px);
  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);
}

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

.ip button:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 1px;
}

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

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

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

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

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

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

.ip__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.ip__track {
  position: relative;
  align-self: center;
  box-sizing: content-box;
  width: 240px;
  height: 20px;
  border: 2px solid;
  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);
  background: #ffffff;
}

.ip__fill {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, #0a4fe8 0 80%, transparent 80% 100%);
  background-size: 20px 100%;
  background-repeat: repeat-x;
}

.ip__cover {
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform-origin: right center;
  transform: scaleX(0);
}

.ip__done {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  z-index: 1;
}

.ip__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  align-self: center;
  width: 240px;
}

.ip__phrases, .ip__nums {
  display: grid;
}

.ip__phrases > *, .ip__nums > * {
  grid-area: 1/1;
}

.ip__phrases {
  justify-items: start;
}

.ip__nums {
  justify-items: end;
}

.ip__sv {
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  color: #17141a;
  white-space: nowrap;
}

.ip__nm {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.72);
  white-space: nowrap;
}

.ip__sv, .ip__nm {
  opacity: 0;
}

.ip__sv--5, .ip__nm--12 {
  opacity: 1;
}

.ip__actions {
  display: flex;
  justify-content: flex-end;
}

.ip__btn {
  min-width: 88px;
  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;
}

.ip__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);
}

.ip.is-demo .ip__cover {
  animation-name: ipCover;
  animation-duration: 2s;
  animation-timing-function: steps(12, end);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.ip.is-demo .ip__sv, .ip.is-demo .ip__nm {
  animation-name: ipSv;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.ip.is-demo .ip__nm {
  animation-name: ipNm;
}

.ip.is-demo .ip__sv--1 {
  animation-delay: 0ms;
}

.ip.is-demo .ip__sv--2 {
  animation-delay: -1625ms;
}

.ip.is-demo .ip__sv--3 {
  animation-delay: -1250ms;
}

.ip.is-demo .ip__sv--4 {
  animation-delay: -875ms;
}

.ip.is-demo .ip__sv--5 {
  animation-delay: -500ms;
}

.ip.is-demo .ip__nm--1 {
  animation-delay: 0ms;
}

.ip.is-demo .ip__nm--2 {
  animation-delay: -1875ms;
}

.ip.is-demo .ip__nm--3 {
  animation-delay: -1750ms;
}

.ip.is-demo .ip__nm--4 {
  animation-delay: -1625ms;
}

.ip.is-demo .ip__nm--5 {
  animation-delay: -1500ms;
}

.ip.is-demo .ip__nm--6 {
  animation-delay: -1375ms;
}

.ip.is-demo .ip__nm--7 {
  animation-delay: -1250ms;
}

.ip.is-demo .ip__nm--8 {
  animation-delay: -1125ms;
}

.ip.is-demo .ip__nm--9 {
  animation-delay: -1000ms;
}

.ip.is-demo .ip__nm--10 {
  animation-delay: -875ms;
}

.ip.is-demo .ip__nm--11 {
  animation-delay: -750ms;
}

.ip.is-demo .ip__nm--12 {
  animation-delay: -625ms;
}

.ip.is-demo .ip__done {
  animation-name: ipDone;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@keyframes ipCover {
  0% {
    transform: scaleX(1);
  }
  75%, 100% {
    transform: scaleX(0);
  }
}
@keyframes ipSv {
  0%, 18.75% {
    opacity: 1;
  }
  18.76%, 100% {
    opacity: 0;
  }
}
@keyframes ipNm {
  0%, 6.25% {
    opacity: 1;
  }
  6.26%, 100% {
    opacity: 0;
  }
}
@keyframes ipDone {
  0%, 74% {
    opacity: 0;
    transform: scale(0.3);
  }
  75% {
    opacity: 1;
    transform: scale(0.4);
  }
  80% {
    transform: scale(1.3);
  }
  84%, 86% {
    opacity: 1;
    transform: scale(1);
  }
  87%, 100% {
    opacity: 0;
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .ip__body {
    gap: 4px;
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ip.is-demo .ip__cover, .ip.is-demo .ip__sv, .ip.is-demo .ip__nm, .ip.is-demo .ip__done {
    animation: none !important;
  }
  .ip.is-demo .ip__cover {
    transform: scaleX(0) !important;
  }
  .ip.is-demo .ip__sv, .ip.is-demo .ip__nm {
    opacity: 0 !important;
  }
  .ip.is-demo .ip__sv--5, .ip.is-demo .ip__nm--12 {
    opacity: 1 !important;
  }
  .ip.is-demo .ip__done {
    opacity: 1 !important;
    transform: none !important;
  }
}
