.sps-hero {
  position: relative;
  width: 100%;
  height: var(--sps-height, 85vh);
  min-height: 620px;
  background: var(--sps-bg, #ececec);
  overflow: hidden;
}

.sps-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.sps-card {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--sps-radius, 16px);
  overflow: hidden;
  will-change: transform;
  transform-origin: center center;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 16px 30px rgba(0,0,0,0.08);
  backface-visibility: hidden;
}

.sps-card-image {
  background: #fff;
}

.sps-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.sps-card-text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sps-card-text-inner {
  width: 100%;
  padding: 0.08em 0.16em;
  font-size: var(--sps-text-size, 60px);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.sps-card-paragraph {
  align-items: stretch;
}

.sps-card-paragraph-inner {
  width: 100%;
  padding: 16px 20px;
  font-size: var(--sps-paragraph-size, 24px);
  font-weight: 600;
  line-height: 1.38;
  text-align: left;
  letter-spacing: -0.02em;
  user-select: none;
  pointer-events: none;
}

.sps-card.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.sps-hero.is-active .sps-card {
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.sps-controls {
  position: absolute;
  left: 50%;
  top: var(--sps-controls-top, auto);
  bottom: auto;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  width: min(92%, 900px);
}

.sps-reset-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.sps-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(8px);
  color: #111;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}

.sps-empty {
  padding: 18px 20px;
  background: #fff5f5;
  border-left: 4px solid #d63638;
}

@media (max-width: 1200px) {
  .sps-card-text-inner { font-size: calc(var(--sps-text-size, 60px) * 0.82); }
  .sps-card-paragraph-inner { font-size: calc(var(--sps-paragraph-size, 24px) * 0.9); }
}

@media (max-width: 1024px) {
  .sps-hero { min-height: 540px; }
  .sps-card-text-inner { font-size: calc(var(--sps-text-size, 60px) * 0.72); }
  .sps-card-paragraph-inner { font-size: calc(var(--sps-paragraph-size, 24px) * 0.82); }
}

@media (max-width: 767px) {
  .sps-hero { min-height: 500px; }
  .sps-controls { width: min(94%, 540px); }
  .sps-hint { font-size: 12px; }
  .sps-card-text-inner { font-size: calc(var(--sps-text-size, 60px) * 0.52); }
  .sps-card-paragraph-inner { font-size: calc(var(--sps-paragraph-size, 24px) * 0.72); }
}
