/* No.25 回すギャラリー（リング） */

.rg-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 48px) clamp(34px, 5vw, 66px);
  background:
    radial-gradient(circle at 50% 12%, rgba(83, 169, 175, 0.16), transparent 52%),
    linear-gradient(180deg, #2f3a3c, #232b2d);
}

.rg-scene {
  position: relative;
  height: clamp(280px, 46vh, 420px);
  perspective: 1200px;
  perspective-origin: 50% 42%;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  outline-offset: 6px;
}
.rg-scene.is-grabbing { cursor: grabbing; }

.rg-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--w, 220px);
  height: calc(var(--w, 220px) * 1.28);
  margin: calc(var(--w, 220px) * -0.64) 0 0 calc(var(--w, 220px) * -0.5);
  transform-style: preserve-3d;
  will-change: transform;
}

.rg-cell {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: #1b2223;
  border-radius: 3px 16px 16px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  backface-visibility: hidden;
}
.rg-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: filter 0.4s ease;
  filter: brightness(0.66) saturate(0.85);
}
.rg-cell.is-front img { filter: brightness(1) saturate(1); }

.rg-cell figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px 14px 12px;
  color: #fffdf8;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.rg-floor {
  position: absolute;
  bottom: 6%;
  left: 50%;
  width: min(74%, 520px);
  height: 44px;
  margin-left: min(-37%, -260px);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.42), transparent 68%);
  filter: blur(3px);
  pointer-events: none;
}

.rg-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 26px);
  margin-top: clamp(18px, 3vw, 32px);
}
.rg-hint {
  margin: 0;
  max-width: 420px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
.rg-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  color: #fffdf8;
  background: rgba(255, 253, 248, 0.1);
  border: 1px solid rgba(255, 253, 248, 0.3);
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
}
.rg-arrow:hover { background: rgba(255, 253, 248, 0.2); }
.rg-arrow:active { transform: scale(0.94); }

@media (max-width: 600px) {
  .rg-scene { height: clamp(260px, 42vh, 340px); perspective: 900px; }
  .rg-hint { font-size: 12px; }
  .rg-arrow { width: 40px; height: 40px; font-size: 1.3rem; }
}
