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

.cmt {
  position: relative;
  width: min(92vw, 160vh - 12.8vw);
  aspect-ratio: 480/300;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: #231f28;
  padding: 16px;
  box-sizing: border-box;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.cmt__list,
.cmt__replies {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cmt__replies {
  margin-top: 8px;
}

.cmt__item {
  position: relative;
  margin-left: var(--depth-indent, 0px);
  padding-top: 8px;
}

.cmt__item[data-depth="0"] + .cmt__item[data-depth="0"] {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cmt__guide {
  position: absolute;
  left: -12px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: #5b8cf8;
  border-radius: 4px;
  transform-origin: top;
  transform: scaleY(0);
}

.cmt__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cmt__avatar {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(160deg, #4cd4a6, #5b8cf8);
  margin-top: 2px;
}

.cmt__body {
  min-width: 0;
}

.cmt__meta {
  margin: 0 0 2px;
}

.cmt__name {
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

.cmt__text {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12.5px;
  line-height: 1.5;
}

.cmt__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #5b8cf8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px 4px 0;
  cursor: pointer;
  border-radius: 4px;
}

.cmt__toggle:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.cmt__toggleIcon {
  width: 12px;
  height: 12px;
  transition: transform 220ms ease-out;
}

.cmt__toggle[aria-expanded=true] .cmt__toggleIcon {
  transform: rotate(180deg);
}

.cmt__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 340px) {
  .cmt {
    padding: 12px;
  }
  .cmt__text, .cmt__name {
    font-size: 11.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cmt__guide,
  .cmt__body,
  .cmt__toggleIcon {
    transition: none !important;
  }
}
