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

.ce {
  position: relative;
  width: min(100%, 300px);
  height: 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.ce__hero {
  view-transition-name: ce-hero;
  view-transition-class: vt-slow;
  width: 60%;
  height: 88px;
  border-radius: 16px;
  background: #0a4fe8;
}

.is-wide .ce__hero {
  width: 100%;
  background: #5b8cf8;
}

.ce__btn {
  view-transition-name: ce-btn;
  view-transition-class: vt-fast;
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: #fff7e6;
  color: #17141a;
  font: 700 12px/1 -apple-system, sans-serif;
  padding: 8px 16px;
}

.is-wide .ce__btn {
  align-self: flex-end;
}

.ce__btn:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

::view-transition-group(.vt-slow) {
  animation-duration: 0.9090909091s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

::view-transition-group(.vt-fast) {
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
}

@media (max-width: 340px) {
  .ce {
    height: 150px;
    gap: 8px;
  }
  .ce__hero {
    height: 70px;
  }
  .ce__btn {
    padding: 4px 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
