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

.hs {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hs__app {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: min(100%, 330px);
  height: 148px;
  background: rgba(23, 20, 26, 0.05);
  border-radius: 16px;
  padding: 12px;
}

.hs__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hs__appName {
  font-weight: 800;
  font-size: clamp(11px, 3vw, 12px);
  color: #17141a;
}

.hs__ask {
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.1);
  color: #17141a;
  transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1), background 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.hs__ico {
  width: 16px;
  height: 16px;
}

.hs__paper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.hs__paper i {
  height: 6px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.1);
}

.hs__paper i:nth-child(2) {
  width: 76%;
}

.hs__paper i:nth-child(3) {
  width: 54%;
}

.hs__sheet {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #17141a;
  padding: 12px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 300ms ease-out;
}

.hs.is-open .hs__sheet {
  clip-path: inset(0 0 0 0);
}

.hs__search {
  box-sizing: border-box;
  width: 100%;
  height: 26px;
  border: 1px solid rgba(255, 247, 230, 0.24);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.08);
  color: #fff7e6;
  font-family: inherit;
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  padding: 0 8px;
}

.hs__search::placeholder {
  color: rgba(255, 247, 230, 0.56);
}

.hs__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hs__group {
  min-width: 0;
}

.hs__groupName {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 10px;
  line-height: 1.4;
  color: #ffd23f;
  letter-spacing: 0.04em;
}

.hs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hs__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 20px;
}

.hs__item.is-hidden {
  visibility: hidden;
}

.hs__what {
  font-weight: 600;
  font-size: 10px;
  color: rgba(255, 247, 230, 0.88);
}

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

.hs__key {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  height: 18px;
  min-width: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 247, 230, 0.3);
  background: rgba(255, 247, 230, 0.12);
  color: #fff7e6;
  font-family: inherit;
  font-weight: 800;
  font-size: 9px;
  line-height: 1;
  padding: 0 4px;
}

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

@keyframes hsOpen {
  0%, 14% {
    clip-path: inset(0 0 100% 0);
  }
  15%, 100% {
    clip-path: inset(0 0 0 0);
  }
}
.hs.is-demo .hs__ask {
  animation-name: hsAsk;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@keyframes hsAsk {
  0%, 8% {
    transform: scale(1);
    background: rgba(23, 20, 26, 0.1);
  }
  14% {
    transform: scale(0.86);
    background: rgba(23, 20, 26, 0.2);
  }
  22%, 100% {
    transform: scale(1);
    background: rgba(23, 20, 26, 0.1);
  }
}
.hs.is-demo .hs__item {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.hs.is-demo .hs__group:nth-child(1) .hs__item:nth-child(1) {
  animation-name: hsRise1;
}

.hs.is-demo .hs__group:nth-child(1) .hs__item:nth-child(2) {
  animation-name: hsRise2;
}

.hs.is-demo .hs__group:nth-child(2) .hs__item:nth-child(1) {
  animation-name: hsRise3;
}

.hs.is-demo .hs__group:nth-child(2) .hs__item:nth-child(2) {
  animation-name: hsRise4;
}

@keyframes hsRise1 {
  0%, 16% {
    transform: translateY(8px);
  }
  28%, 100% {
    transform: translateY(0);
  }
}
@keyframes hsRise2 {
  0%, 21% {
    transform: translateY(8px);
  }
  33%, 100% {
    transform: translateY(0);
  }
}
@keyframes hsRise3 {
  0%, 26% {
    transform: translateY(8px);
  }
  38%, 100% {
    transform: translateY(0);
  }
}
@keyframes hsRise4 {
  0%, 31% {
    transform: translateY(8px);
  }
  43%, 100% {
    transform: translateY(0);
  }
}
@media (max-width: 340px) {
  .hs__app {
    padding: 8px;
    height: 144px;
  }
  .hs__sheet {
    padding: 8px;
    gap: 4px;
  }
  .hs__cols {
    gap: 8px;
  }
  .hs__paper {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hs.is-demo .hs__sheet,
  .hs.is-demo .hs__ask,
  .hs.is-demo .hs__item {
    animation: none !important;
  }
  .hs.is-demo .hs__sheet {
    clip-path: inset(0 0 0 0) !important;
  }
  .hs__sheet, .hs__ask {
    transition: none !important;
  }
}
