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

.or {
  box-sizing: border-box;
  width: min(430px, 100%);
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

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

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

.or__attr {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.72);
}
.or__attr code {
  font-family: "Consolas", "Menlo", monospace;
}

.or__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 12px 8px;
}

.or__col {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label plays" "view view";
  gap: 4px 8px;
}

.or__label {
  grid-area: label;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.or__plays {
  grid-area: plays;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.72);
}

.or__dots {
  display: inline-flex;
  gap: 4px;
}

.or__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.18);
}

.or__dots i.is-lit {
  background: #2f6df6;
}

.or__view {
  grid-area: view;
  box-sizing: border-box;
  height: 124px;
  overflow-y: auto;
  padding: 0 8px;
  outline: none;
  background: rgba(23, 20, 26, 0.05);
  border: 1px solid rgba(23, 20, 26, 0.14);
  border-radius: 8px;
}

.or__track {
  position: relative;
  padding-top: 8px;
  padding-bottom: 24px;
}

.or__lead {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  color: rgba(23, 20, 26, 0.72);
}

.or__card {
  margin-top: 116px;
  box-sizing: border-box;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  transform: translateY(8px) scale(0.94);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.or__card.is-in {
  transform: none;
}

.or__card--stat {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  background: #0a4fe8;
  color: #fff7e6;
}
.or__card--stat b {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.or__card--stat span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.or__card--note {
  background: #ff4d1f;
  color: #17141a;
}
.or__card--note svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}
.or__card--note b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}
.or__card--note span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.or__more {
  margin: 8px 0 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.72);
}

.or__foot {
  padding: 8px 12px;
  border-top: 1px solid rgba(23, 20, 26, 0.12);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.72);
}

.or.is-demo .or__track {
  animation-name: or-flow;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.or.is-demo .or__col[data-once=true] .or__card {
  animation-name: or-in1;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}
.or.is-demo .or__col[data-once=false] .or__card {
  animation-name: or-in2;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}
.or.is-demo .or__col[data-once=true] .or__dots i:nth-child(1) {
  animation-name: or-d1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.or.is-demo .or__col[data-once=false] .or__dots i:nth-child(1) {
  animation-name: or-d1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.or.is-demo .or__col[data-once=false] .or__dots i:nth-child(2) {
  animation-name: or-d2;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.or.is-demo .or__col[data-once=false] .or__dots i:nth-child(3) {
  animation-name: or-d3;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes or-flow {
  0%, 6% {
    transform: translateY(0);
  }
  16%, 20% {
    transform: translateY(-88px);
  }
  30%, 34% {
    transform: translateY(0);
  }
  44%, 48% {
    transform: translateY(-88px);
  }
  58%, 62% {
    transform: translateY(0);
  }
  72%, 100% {
    transform: translateY(-88px);
  }
}
@keyframes or-in1 {
  0%, 10% {
    transform: translateY(8px) scale(0.94);
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  18%, 100% {
    transform: none;
  }
}
@keyframes or-in2 {
  0%, 10% {
    transform: translateY(8px) scale(0.94);
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  18% {
    transform: none;
    animation-timing-function: steps(1, end);
  }
  30%, 38% {
    transform: translateY(8px) scale(0.94);
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  46% {
    transform: none;
    animation-timing-function: steps(1, end);
  }
  58%, 66% {
    transform: translateY(8px) scale(0.94);
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  74%, 100% {
    transform: none;
  }
}
@keyframes or-d1 {
  0% {
    background: rgba(23, 20, 26, 0.18);
  }
  10%, 100% {
    background: #2f6df6;
  }
}
@keyframes or-d2 {
  0% {
    background: rgba(23, 20, 26, 0.18);
  }
  38%, 100% {
    background: #2f6df6;
  }
}
@keyframes or-d3 {
  0% {
    background: rgba(23, 20, 26, 0.18);
  }
  66%, 100% {
    background: #2f6df6;
  }
}
@media (max-width: 340px) {
  .or__head {
    padding: 4px 8px;
  }
  .or__cols {
    gap: 8px;
    padding: 0 8px 4px;
  }
  .or__col {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "plays" "view";
  }
  .or__view {
    height: 84px;
  }
  .or__card {
    margin-top: 84px;
    height: 68px;
    padding: 8px;
  }
  .or__card--stat b {
    font-size: 18px;
  }
  .or__card--note svg {
    width: 20px;
    height: 20px;
  }
  .or__foot {
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .or__card {
    transition: none !important;
    transform: none !important;
  }
  .or.is-demo .or__track,
  .or.is-demo .or__card,
  .or.is-demo .or__dots i {
    animation: none !important;
  }
}
