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

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.card {
  position: relative;
  box-sizing: border-box;
  width: 240px;
  overflow: hidden;
  border-radius: 12px;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
  padding: 16px 12px;
  border-radius: 12px;
  background: #fff7e6;
  color: #17141a;
  cursor: pointer;
}

.playIcon {
  width: 0;
  height: 0;
  margin-bottom: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid #17141a;
}

.phLabel {
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
}

.phSub {
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.3;
  opacity: 0.72;
}

.hintArrow {
  width: 0;
  height: 0;
  margin-top: 4px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #17141a;
  opacity: 0.86;
}

.frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  border-radius: 12px;
  overflow: hidden;
}

.frameThumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.frameScrim {
  position: absolute;
  inset: 0;
  background: rgba(23, 20, 26, 0.68);
}

.frameContent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff7e6;
}

.framePlay {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 16px solid #fff7e6;
}

.frameLabel {
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
}

.progressTrack {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 247, 230, 0.24);
}

.progressBar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: #fff7e6;
}

.readout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
}

.readoutLabel {
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.3;
  opacity: 0.84;
}

.readoutValue {
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
}

@media (max-width: 340px) {
  .panel {
    gap: 8px;
  }
  .card {
    width: 200px;
  }
  .placeholder {
    padding: 12px 8px;
  }
  .phLabel {
    font-size: 12px;
  }
  .phSub {
    font-size: 10px;
  }
  .frameLabel {
    font-size: 11px;
  }
  .readoutLabel {
    font-size: 10px;
  }
  .readoutValue {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hintArrow {
    opacity: 0.86;
  }
}
