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

.skel {
  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;
  box-sizing: border-box;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skel__head {
  display: flex;
  justify-content: flex-end;
}

.skel__replayBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #5b8cf8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.skel__replayBtn:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.skel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.skel__item {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 8px;
}

.skel__ghost, .skel__real {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
}

.skel__real {
  opacity: 0;
}

.skel__item.is-real .skel__ghost {
  visibility: hidden;
}

.skel__bone {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.skel__avatar {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.skel__boneGroup {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skel__bone--name {
  height: 9px;
  width: 38%;
  border-radius: 999px;
}

.skel__bone--text {
  height: 9px;
  width: 82%;
  border-radius: 999px;
}

.skel__glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
  will-change: transform;
}

.skel__realAvatar {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(160deg, #b9a0ff, #5b8cf8);
}

.skel__realBody {
  min-width: 0;
  flex: 1;
}

.skel__meta {
  margin: 0 0 2px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.skel__name {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.skel__time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10.5px;
}

.skel__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11.5px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

@media (max-width: 340px) {
  .skel {
    padding: 12px;
  }
  .skel__text, .skel__name {
    font-size: 10.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skel__glare {
    display: none;
  }
}
