/* 再生終了後の操作。ARのカメラや追従処理には影響しない。 */
.playback-controls {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 33%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  pointer-events: none;
}

.replay-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.replay-button[hidden],
.playback-message[hidden] {
  display: none !important;
}

.replay-symbol {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(13, 14, 14, 0.84);
  backdrop-filter: blur(14px);
}


.replay-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
  border-radius: 1rem;
}

.playback-message {
  max-width: min(19rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(13, 14, 14, 0.9);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  pointer-events: auto;
}

/* 再生ボタンの表示中は「位置を再調整」を隠す。 */
.ar-overlay.playback-controls-visible .controls {
  display: none !important;
}

/* 再生マークを隠す */
.replay-symbol {
  display: none;
}

/* 再生マークを隠す */
.replay-symbol {
  display: none;
}

/* ぷっくりした「障子を覗く」ボタン */
.replay-label {
  display: grid;
  place-items: center;
  min-width: 190px;
  min-height: 58px;
  padding: 0.9rem 2rem;

  border: 2px solid #8f8977;
  border-radius: 999px;

  background: linear-gradient(
    to bottom,
    #fffdf4 0%,
    #f3eedf 55%,
    #ddd5bd 100%
  );

  color: #292922;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;

  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.9),
    inset 0 -2px 3px rgba(100, 90, 65, 0.12),
    0 5px 0 #777160,
    0 8px 14px rgba(0, 0, 0, 0.3);

  transition: transform 0.12s, box-shadow 0.12s;
}

/* 押したときに少し沈む */
.replay-button:active .replay-label {
  transform: translateY(4px);
  box-shadow:
    inset 0 2px 3px rgba(100, 90, 65, 0.15),
    0 1px 0 #777160,
    0 3px 6px rgba(0, 0, 0, 0.2);
}