.rysc-scene {
  --rysc-height: 400vh;
  --rysc-bg: #ffffff;
  --rysc-text: #07111f;
  --rysc-progress-fill: #93358b;
  --rysc-progress-track: #e7ecf4;
  --rysc-progress-height: 8px;
  --rysc-progress-width: calc(100% - 128px);
  position: relative;
  min-height: var(--rysc-height);
  background:
    radial-gradient(circle at 20% 12%, rgba(147, 53, 139, .14), transparent 28rem),
    radial-gradient(circle at 82% 20%, rgba(6, 182, 212, .12), transparent 24rem),
    var(--rysc-bg);
  color: var(--rysc-text);
  overflow: hidden;
}

.rysc-pin {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
}

.rysc-stage {
  position: relative;
  width: min(1280px, 100%);
  min-height: min(760px, 78vh);
  display: grid;
  place-items: center;
  border-radius: 42px;
  background: rgba(255, 255, 255, .54);
  box-shadow: 0 34px 90px rgba(15, 23, 42, .12);
  overflow: hidden;
}

.rysc-canvas,
.rysc-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(760px, 78vh);
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 30px 40px rgba(15, 23, 42, .18));
}

.rysc-canvas {
  display: block;
}

.rysc-frame {
  display: none;
  object-fit: contain;
  object-position: center;
}

.rysc-overlay {
  position: absolute;
  left: clamp(18px, 5vw, 64px);
  bottom: clamp(18px, 5vw, 64px);
  z-index: 3;
  width: min(560px, calc(100% - 36px));
  padding: clamp(18px, 3vw, 30px);
  border-radius: 28px;
  border: 1px solid rgba(231, 236, 244, .9);
  background: rgba(255, 255, 255, .80);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
  backdrop-filter: blur(14px);
}

.rysc-overlay span {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  color: #93358b;
  background: #f7f0fb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.rysc-overlay h2 {
  margin: 14px 0 10px;
  color: var(--rysc-text);
  font-size: clamp(32px, 5vw, 64px);
  line-height: .92;
  font-weight: 900;
  letter-spacing: 0;
}

.rysc-overlay p {
  margin: 0;
  color: color-mix(in srgb, var(--rysc-text), transparent 30%);
  font-weight: 600;
  line-height: 1.55;
}

.rysc-progress {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: clamp(14px, 2vw, 24px);
  z-index: 4;
  width: var(--rysc-progress-width);
  max-width: calc(100% - 36px);
  height: var(--rysc-progress-height);
  transform: translateX(-50%);
  border-radius: 999px;
  overflow: hidden;
  background: var(--rysc-progress-track);
}

.rysc-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--rysc-progress-fill);
}

.rysc-user-layer {
  position: absolute !important;
  inset: 0 !important;
  z-index: 5;
  width: 100% !important;
  max-width: none !important;
  min-height: 100%;
  pointer-events: none;
}

.rysc-user-layer > * {
  pointer-events: auto;
}

.rysc-scroll-carousel {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content;
  max-width: none !important;
  will-change: transform;
}

.rysc-scroll-carousel > * {
  flex: 0 0 auto;
}

[data-rysc-motion] {
  will-change: transform, opacity, filter;
}

.rysc-empty {
  padding: 18px;
  border: 1px dashed #ccd0d4;
  border-radius: 12px;
  background: #fff;
  color: #555;
}

@media (max-width: 768px) {
  .rysc-scene {
    min-height: auto;
  }

  .rysc-pin {
    min-height: auto;
  }

  .rysc-stage {
    min-height: 620px;
    border-radius: 26px;
  }

  .rysc-canvas,
  .rysc-frame {
    height: 620px;
  }
}
