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

.frame {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: min(420px, 94vw);
  height: min(260px, 84vh);
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

.frame, .frame * {
  box-sizing: border-box;
}

.page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.brand {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.search {
  position: relative;
  width: min(220px, 60vw);
  height: 36px;
  border-radius: 999px;
  background: #ffffff;
  clip-path: inset(0 calc(100% - 40px) 0 0 round 999px);
  transition: clip-path 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.frame.is-open .search {
  clip-path: inset(0 0 0 0 round 999px);
}

.search:focus-within {
  box-shadow: inset 0 0 0 2px #17141a;
}

.glass {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17141a;
  cursor: pointer;
}

.glass:focus-visible {
  box-shadow: inset 0 0 0 2px #17141a;
}

.input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 12px 0 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #17141a;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.3;
}

.input::placeholder {
  color: rgba(23, 20, 26, 0.45);
}

.body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0 12px 12px;
}

.skeleton {
  height: 10px;
  margin: 0;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.12);
}

.skeleton--short {
  width: 62%;
}

.skips {
  position: absolute;
  top: 56px;
  right: 12px;
  width: min(220px, 56vw);
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid rgba(23, 20, 26, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.frame.is-listing .skips {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.skips li {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.frame.is-listing .skips li {
  opacity: 1;
  transform: translateY(0);
}

.frame.is-listing .skips li:nth-child(2) {
  transition-delay: 40ms, 40ms;
}

.frame.is-listing .skips li:nth-child(3) {
  transition-delay: 80ms, 80ms;
}

.skips button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.skips button:hover {
  background: rgba(23, 20, 26, 0.06);
}

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

@keyframes sch-press {
  0%, 4% {
    transform: translateY(0);
  }
  6% {
    transform: translateY(2px);
  }
  8%, 100% {
    transform: translateY(0);
  }
}
@keyframes sch-clip {
  0%, 12% {
    clip-path: inset(0 calc(100% - 40px) 0 0 round 999px);
  }
  30%, 78% {
    clip-path: inset(0 0 0 0 round 999px);
  }
  90%, 100% {
    clip-path: inset(0 calc(100% - 40px) 0 0 round 999px);
  }
}
@keyframes sch-list-cut {
  0%, 36% {
    opacity: 0;
  }
  36.1%, 74.9% {
    opacity: 1;
  }
  75%, 100% {
    opacity: 0;
  }
}
@keyframes sch-list-pop {
  0%, 36% {
    transform: translateY(-4px);
  }
  44%, 74.9% {
    transform: translateY(0);
  }
  76%, 100% {
    transform: translateY(-4px);
  }
}
@keyframes sch-item-cut {
  0%, 37% {
    opacity: 0;
  }
  37.1%, 100% {
    opacity: 1;
  }
}
@keyframes sch-item-pop {
  0%, 37% {
    transform: translateY(6px);
  }
  45%, 100% {
    transform: translateY(0);
  }
}
.frame.is-demo .glass {
  animation-name: sch-press;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.frame.is-demo .search {
  animation-name: sch-clip;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.frame.is-demo .skips {
  animation-name: sch-list-cut, sch-list-pop;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}
.frame.is-demo .skips li {
  animation-name: sch-item-cut, sch-item-pop;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
  animation-fill-mode: backwards, backwards;
}

.frame.is-demo .skips li:nth-child(2) {
  animation-delay: 40ms, 40ms;
}

.frame.is-demo .skips li:nth-child(3) {
  animation-delay: 80ms, 80ms;
}

@media (max-width: 340px) {
  .bar {
    padding: 4px 8px;
  }
  .brand {
    font-size: 13px;
  }
  .search {
    width: 56vw;
    height: 32px;
  }
  .glass {
    height: 32px;
  }
  .input {
    height: 32px;
    padding-right: 8px;
    font-size: 11px;
  }
  .skips {
    top: 44px;
    width: min(168px, 56vw);
  }
  .skips button {
    height: 30px;
    font-size: 11px;
  }
  .body {
    gap: 4px;
    padding: 0 8px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .frame.is-demo .glass,
  .frame.is-demo .search,
  .frame.is-demo .skips,
  .frame.is-demo .skips li {
    animation: none !important;
  }
  .frame.is-demo .search {
    clip-path: inset(0 0 0 0 round 999px) !important;
  }
  .frame.is-demo .skips {
    opacity: 1 !important;
    transform: none !important;
  }
  .frame.is-demo .skips li {
    opacity: 1 !important;
    transform: none !important;
  }
}
