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

.ch {
  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;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.ch__card {
  padding: 16px;
  box-sizing: border-box;
  height: 100%;
  overflow: hidden;
}

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

.ch__avatar {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ff9ebb, #b9a0ff);
  margin-top: 2px;
}
.ch__avatar--sm {
  width: 18px;
  height: 18px;
}

.ch__body {
  min-width: 0;
}

.ch__meta {
  margin: 0 0 2px;
}

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

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

.ch__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;
}

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

.ch__toggleIcon {
  width: 12px;
  height: 12px;
  transform-origin: center;
}

.ch__panel {
  overflow: hidden;
  margin-left: 32px;
}

.ch__panelInner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.ch__reply {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}
.ch__reply .ch__text {
  margin: 0;
}

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

@media (max-width: 340px) {
  .ch__card {
    padding: 12px;
  }
  .ch__text, .ch__name {
    font-size: 11.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ch__panel, .ch__toggleIcon {
    transition: none !important;
  }
}
