.nekoone-replay-test-admin {
  max-width: 760px;
}

.nekoone-replay-test-card {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}


.nekoone-replay-test-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 18px;
}

.nekoone-replay-test-trigger {
  width: 100%;
  min-height: 54px;
  white-space: normal;
}

.nekoone-replay-test-status {
  margin-top: 16px;
  font-weight: 700;
}

body.nekoone-replay-test-open {
  overflow: hidden;
}

.nekoone-replay-test-overlay[hidden] {
  display: none !important;
}

.nekoone-replay-test-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 5, 18, 0.92);
}

.nekoone-replay-test-stage {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 18px;
  background: #0b0714;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  outline: none;
  transition: opacity 1.8s ease, transform 1.8s ease;
}

.nekoone-replay-test-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  filter: none;
  transition: opacity 1.8s ease, filter 1.8s ease, transform 1.8s ease;
}

.nekoone-replay-test-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(4, 2, 10, 0.92) 0%, rgba(4, 2, 10, 0.48) 30%, transparent 60%);
  transition: opacity 1.8s ease;
}

.nekoone-replay-test-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #25132f;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.nekoone-replay-test-caption {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 4%;
  z-index: 2;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(16, 8, 28, 0.76);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: opacity 1.25s ease, transform 1.25s ease;
}

.nekoone-replay-test-title {
  margin-bottom: 10px;
  color: #e9d7ff;
  font-size: clamp(13px, 2vw, 18px);
  letter-spacing: 0.08em;
}

.nekoone-replay-test-line {
  min-height: 4.8em;
  max-height: min(34vh, 280px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'Noto Serif JP', serif;
  font-size: clamp(15px, 2.1vw, 21px);
  line-height: 1.95;
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: pretty;
}

.nekoone-replay-test-hint {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-align: right;
}

@media (max-width: 782px) {
  .nekoone-replay-test-overlay {
    padding: 0;
  }

  .nekoone-replay-test-stage {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .nekoone-replay-test-image {
    object-position: center;
  }

  .nekoone-replay-test-caption {
    left: 16px;
    right: 16px;
    bottom: max(18px, env(safe-area-inset-bottom));
  }
}


.nekoone-replay-test-line::-webkit-scrollbar {
  width: 6px;
}

.nekoone-replay-test-line::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

@media (max-width: 782px) {
  .nekoone-replay-test-line {
    max-height: 32vh;
    font-size: clamp(15px, 4.2vw, 19px);
    line-height: 1.95;
  }
}



/* v0.0.13: 一文字ごとのDOM再生成を行わない、安定した流れる字幕 */
.nekoone-replay-test-line {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.28em;
  min-height: 6.4em;
  max-height: 6.4em;
  overflow: hidden;
  scroll-behavior: auto;
}

.nekoone-replay-test-caption-line {
  flex: 0 0 auto;
  min-height: 1.95em;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}

.nekoone-replay-test-caption-line.age-0 {
  opacity: 1;
  transform: translateY(0);
}

.nekoone-replay-test-caption-line.age-1 {
  opacity: 0.58;
  transform: translateY(-1px);
}

.nekoone-replay-test-caption-line.age-2 {
  opacity: 0.28;
  transform: translateY(-2px);
}


/* v0.0.14: 操作説明は画面へ表示しない */
.nekoone-replay-test-hint {
  display: none !important;
}
