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

.oh {
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  width: min(300px, 94vw);
  color: #fff7e6;
}

.oh * {
  box-sizing: border-box;
}

.oh__title {
  display: grid;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.oh__t {
  grid-area: 1/1;
  opacity: 0;
}

.oh[data-tab="1"] .oh__t--1,
.oh[data-tab="2"] .oh__t--2,
.oh[data-tab="3"] .oh__t--3 {
  opacity: 1;
}

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

.oh__tab {
  position: relative;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

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

.oh__pill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #fff7e6;
  opacity: 0;
}

.oh__lab {
  position: relative;
}

.oh[data-tab="1"] .oh__tab--1 .oh__pill,
.oh[data-tab="2"] .oh__tab--2 .oh__pill,
.oh[data-tab="3"] .oh__tab--3 .oh__pill {
  opacity: 0.16;
}

.oh__body {
  display: grid;
  height: 96px;
  padding: 12px;
  border: 1px solid rgba(255, 247, 230, 0.18);
  border-radius: 16px;
}

.oh__panel,
.oh__sk {
  grid-area: 1/1;
}

.oh__panel {
  display: grid;
  align-content: start;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 140ms linear;
}

.oh[data-tab="1"] .oh__panel--1,
.oh[data-tab="2"] .oh__panel--2,
.oh[data-tab="3"] .oh__panel--3 {
  opacity: 1;
  transform: translateY(0);
}

.oh.is-loading .oh__panel {
  opacity: 0;
  transform: translateY(10px);
}

.oh__lead {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.oh__sub {
  margin: 0;
  color: rgba(255, 247, 230, 0.66);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.oh__sk {
  display: grid;
  align-content: start;
  gap: 8px;
  opacity: 0;
}

.oh.is-loading .oh__sk {
  opacity: 1;
}

.oh__sk-bar {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.14);
}

.oh__sk-bar:nth-child(1) {
  width: 64%;
}

.oh__sk-bar:nth-child(2) {
  width: 92%;
}

.oh__sk-bar:nth-child(3) {
  width: 48%;
}

.oh__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 247, 230, 0), rgba(255, 247, 230, 0.4), rgba(255, 247, 230, 0));
  transform: translateX(-100%);
}

@keyframes oh-a-on {
  0%, 9% {
    opacity: 1;
  }
  10%, 85% {
    opacity: 0;
  }
  86%, 100% {
    opacity: 1;
  }
}
@keyframes oh-b-now {
  0%, 9% {
    opacity: 0;
  }
  10%, 85% {
    opacity: 1;
  }
  86%, 100% {
    opacity: 0;
  }
}
@keyframes oh-b-on {
  0%, 39% {
    opacity: 0;
  }
  40%, 85% {
    opacity: 1;
  }
  86%, 100% {
    opacity: 0;
  }
}
@keyframes oh-pill-a {
  0%, 9% {
    opacity: 0.16;
  }
  10%, 85% {
    opacity: 0;
  }
  86%, 100% {
    opacity: 0.16;
  }
}
@keyframes oh-pill-b {
  0%, 9% {
    opacity: 0;
  }
  10%, 85% {
    opacity: 0.16;
  }
  86%, 100% {
    opacity: 0;
  }
}
@keyframes oh-sk-on {
  0%, 9% {
    opacity: 0;
  }
  10%, 39% {
    opacity: 1;
  }
  40%, 100% {
    opacity: 0;
  }
}
@keyframes oh-a-rise {
  0%, 85% {
    transform: translateY(0);
  }
  86% {
    transform: translateY(10px);
  }
  97%, 100% {
    transform: translateY(0);
  }
}
@keyframes oh-b-rise {
  0%, 40% {
    transform: translateY(10px);
  }
  64%, 85% {
    transform: translateY(0);
  }
  86%, 100% {
    transform: translateY(10px);
  }
}
@keyframes oh-shine {
  0% {
    transform: translateX(-100%);
  }
  46% {
    transform: translateX(220%);
  }
  47%, 100% {
    transform: translateX(-100%);
  }
}
.oh.is-demo .oh__t--1 {
  animation-name: oh-a-on;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.oh.is-demo .oh__t--2 {
  animation-name: oh-b-now;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.oh.is-demo .oh__tab--1 .oh__pill {
  animation-name: oh-pill-a;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.oh.is-demo .oh__tab--2 .oh__pill {
  animation-name: oh-pill-b;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.oh.is-demo .oh__sk {
  animation-name: oh-sk-on;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.oh.is-demo .oh__panel--1 {
  animation-name: oh-a-on, oh-a-rise;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}
.oh.is-demo .oh__panel--2 {
  animation-name: oh-b-on, oh-b-rise;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}
.oh.is-demo .oh__shine {
  animation-name: oh-shine;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}
.oh.is-demo .oh__sk-bar:nth-child(2) .oh__shine {
  animation-delay: 120ms;
}
.oh.is-demo .oh__sk-bar:nth-child(3) .oh__shine {
  animation-delay: 240ms;
}

.oh.is-loading .oh__shine {
  animation-name: oh-shine;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .oh {
    gap: 8px;
    width: min(248px, 96vw);
  }
  .oh__title {
    font-size: 16px;
  }
  .oh__tab {
    padding: 4px 0;
    font-size: 11px;
  }
  .oh__body {
    height: 76px;
    padding: 8px;
  }
  .oh__lead {
    font-size: 15px;
  }
  .oh__sub {
    font-size: 11px;
  }
  .oh__sk-bar {
    height: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .oh.is-demo .oh__t--1,
  .oh.is-demo .oh__t--2,
  .oh.is-demo .oh__tab--1 .oh__pill,
  .oh.is-demo .oh__tab--2 .oh__pill,
  .oh.is-demo .oh__sk,
  .oh.is-demo .oh__panel--1,
  .oh.is-demo .oh__panel--2,
  .oh.is-demo .oh__shine,
  .oh.is-loading .oh__shine {
    animation: none !important;
  }
  .oh.is-demo .oh__t--1 {
    opacity: 1 !important;
  }
  .oh.is-demo .oh__tab--1 .oh__pill {
    opacity: 0.16 !important;
  }
  .oh.is-demo .oh__panel--1 {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .oh.is-demo .oh__sk {
    opacity: 0 !important;
  }
  .oh__panel {
    transition: none !important;
  }
}
