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

.pt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  width: min(100%, 408px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

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

.pt__btn {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 4px 0 8px;
  border: 0;
  border-radius: 0;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(11px, 3vw, 12px);
  line-height: 1.4;
}

.pt__btn[aria-pressed=true] {
  color: #fff7e6;
}

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

.pt__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #2b9d74;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pt__btn[aria-pressed=true] .pt__bar {
  transform: scaleX(1);
}

.pt__screen {
  display: grid;
  min-height: 26px;
  align-items: center;
}

.pt__screen > * {
  grid-area: 1/1;
}

.pt__view {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.4;
  white-space: nowrap;
  visibility: hidden;
}

.pt[data-shape=plain] .pt__view--plain,
.pt[data-shape=wave] .pt__view--wave,
.pt[data-shape=seg] .pt__view--seg {
  visibility: visible;
}

.pt__path {
  color: #6ec8ff;
}

.pt__git {
  color: #ffd23f;
}

.pt__caret {
  color: #2b9d74;
  font-weight: 800;
}

.pt__user {
  color: #2b9d74;
}

.pt__at {
  color: rgba(255, 255, 255, 0.6);
}

.pt__host {
  color: #fff7e6;
}

.pt__caret--wave {
  color: #ff9ebb;
  letter-spacing: -1px;
}

.pt__view--wave {
  gap: 0;
}

.pt__view--wave .pt__path {
  margin-left: 8px;
}

.pt__view--wave .pt__caret--wave {
  margin-left: 8px;
}

.pt__view--seg {
  gap: 0;
}

.pt__seg {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 22px;
  padding: 0 12px 0 8px;
  color: #17141a;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
}

.pt__seg--a {
  background: #6ec8ff;
  padding-left: 8px;
}

.pt__seg--b {
  background: #ffd23f;
  margin-left: -8px;
  padding-left: 12px;
}

.pt__seg--c {
  background: #2b9d74;
  margin-left: -8px;
  padding-left: 12px;
  padding-right: 8px;
}

.pt.is-demo .pt__view,
.pt.is-demo .pt__btn {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.pt.is-demo .pt__view--plain {
  animation-name: ptShow1;
}

.pt.is-demo .pt__view--wave {
  animation-name: ptShow2;
}

.pt.is-demo .pt__view--seg {
  animation-name: ptShow3;
}

@keyframes ptShow1 {
  0%, 33% {
    visibility: visible;
  }
  34%, 100% {
    visibility: hidden;
  }
}
@keyframes ptShow2 {
  0%, 33% {
    visibility: hidden;
  }
  34%, 66% {
    visibility: visible;
  }
  67%, 100% {
    visibility: hidden;
  }
}
@keyframes ptShow3 {
  0%, 66% {
    visibility: hidden;
  }
  67%, 100% {
    visibility: visible;
  }
}
.pt.is-demo .pt__btn:nth-child(1) {
  animation-name: ptOn1;
}

.pt.is-demo .pt__btn:nth-child(2) {
  animation-name: ptOn2;
}

.pt.is-demo .pt__btn:nth-child(3) {
  animation-name: ptOn3;
}

@keyframes ptOn1 {
  0%, 33% {
    color: #fff7e6;
  }
  34%, 100% {
    color: rgba(255, 255, 255, 0.6);
  }
}
@keyframes ptOn2 {
  0%, 33% {
    color: rgba(255, 255, 255, 0.6);
  }
  34%, 66% {
    color: #fff7e6;
  }
  67%, 100% {
    color: rgba(255, 255, 255, 0.6);
  }
}
@keyframes ptOn3 {
  0%, 66% {
    color: rgba(255, 255, 255, 0.6);
  }
  67%, 100% {
    color: #fff7e6;
  }
}
.pt.is-demo .pt__btn:nth-child(1) .pt__bar {
  animation-name: ptBar1;
}

.pt.is-demo .pt__btn:nth-child(2) .pt__bar {
  animation-name: ptBar2;
}

.pt.is-demo .pt__btn:nth-child(3) .pt__bar {
  animation-name: ptBar3;
}

.pt.is-demo .pt__bar {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@keyframes ptBar1 {
  0% {
    transform: scaleX(0);
  }
  12%, 33% {
    transform: scaleX(1);
  }
  34%, 100% {
    transform: scaleX(0);
  }
}
@keyframes ptBar2 {
  0%, 34% {
    transform: scaleX(0);
  }
  46%, 66% {
    transform: scaleX(1);
  }
  67%, 100% {
    transform: scaleX(0);
  }
}
@keyframes ptBar3 {
  0%, 67% {
    transform: scaleX(0);
  }
  79%, 100% {
    transform: scaleX(1);
  }
}
@media (max-width: 340px) {
  .pt {
    padding: 8px;
    gap: 8px;
  }
  .pt__seg {
    padding-right: 8px;
  }
  .pt__seg--b, .pt__seg--c {
    padding-left: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pt.is-demo .pt__view,
  .pt.is-demo .pt__btn,
  .pt.is-demo .pt__bar {
    animation: none !important;
  }
  .pt.is-demo .pt__view--plain {
    visibility: visible !important;
  }
  .pt.is-demo .pt__view--wave,
  .pt.is-demo .pt__view--seg {
    visibility: hidden !important;
  }
  .pt__bar {
    transition: none !important;
  }
}
