.rgy-panorama {
  --rgy-scene-choice-panel-width: min(920px, calc(100% - 32px));
}

.rgy-scene-choice-layer {
  position: absolute;
  inset: 0;
  z-index: 10060;
  display: none;
}

.rgy-scene-choice-layer.is-visible {
  display: block;
}

.rgy-scene-choice-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(54, 85, 246, 0.16), transparent 42%), rgba(8, 12, 18, 0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rgy-scene-choice-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--rgy-scene-choice-panel-width);
  max-width: 920px;
  max-height: calc(100% - 32px);
  overflow: auto;
  transform: translate(-50%, -50%) scale(0.97);
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(18, 25, 33, 0.82), rgba(18, 25, 33, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.rgy-scene-choice-layer.is-visible .rgy-scene-choice-panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rgy-scene-choice-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.rgy-scene-choice-close:hover,
.rgy-scene-choice-close:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
  outline: none;
}

.rgy-scene-choice-header {
  padding-right: 58px;
}

.rgy-scene-choice-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(54, 85, 246, 0.18);
  color: #dbe4ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rgy-scene-choice-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.rgy-scene-choice-text {
  margin: 12px 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
}

.rgy-scene-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.rgy-scene-choice-card {
  width: 100%;
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.rgy-scene-choice-card:hover,
.rgy-scene-choice-card:focus {
  transform: translateY(-2px);
  border-color: rgba(54, 85, 246, 0.42);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
  outline: none;
}

.rgy-scene-choice-media {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(54, 85, 246, 0.18);
  color: #dbe4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.rgy-scene-choice-media i {
  font-size: 22px;
}

.rgy-scene-choice-media.rgy-has-image {
  background: rgba(255, 255, 255, 0.08);
}

.rgy-scene-choice-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rgy-scene-choice-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rgy-scene-choice-card-title {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
}

.rgy-scene-choice-card-text {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.5;
}

.rgy-scene-choice-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}

.rgy-scene-choice-empty {
  display: none;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.rgy-scene-choice-launcher {
  position: absolute;
  right: 16px;
  left: auto;
  top: 16px;
  bottom: auto;
  z-index: 10040;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(18, 25, 33, 0.52);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.rgy-scene-choice-launcher:hover,
.rgy-scene-choice-launcher:focus {
  background: rgba(18, 25, 33, 0.68);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  outline: none;
}

.rgy-scene-choice-launcher i {
  font-size: 14px;
}

.rgy-scene-choice-launcher--default {
  top: calc(16px + var(--rgy-tool-size, 46px) * 2 + 18px);
  right: 16px;
  bottom: auto;
}

.rgy-scene-choice-launcher--stacked {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: var(--rgy-tool-size, 42px);
  min-width: var(--rgy-tool-size, 42px);
  height: var(--rgy-tool-size, 42px);
  padding: 0;
  justify-content: center;
  border-radius: 16px;
  box-shadow: var(--rgy-tool-shadow, 0 16px 36px rgba(0, 0, 0, 0.18));
}

.rgy-scene-choice-launcher--mobile-sidebar {
  position: absolute;
  padding: 0;
  justify-content: center;
}

.rgy-panorama[data-scheme="default"] .rgy-scene-choice-launcher--stacked span {
  display: none;
}

.rgy-scene-choice-launcher--top {
  top: calc(var(--rgy-topbar-height, 48px) + 10px);
  right: 12px;
  bottom: auto;
}

.rgy-scene-choice-launcher--bottom {
  top: auto;
  right: 12px;
  bottom: calc(var(--rgy-bottombar-height, 48px) + 10px);
}

.rgy-panorama.rgy-scene-choice-open .rgy-scene-choice-launcher {
  opacity: 0;
  pointer-events: none;
}

.rgy-panorama[data-scheme="top"] .rgy-scene-choice-launcher,
.rgy-panorama[data-scheme="bottom"] .rgy-scene-choice-launcher {
  padding: 10px 14px;
}

.rgy-panorama[data-scheme="default"] .rgy-scene-choice-launcher {
  background: rgba(18, 25, 33, 0.62);
  border-color: rgba(255, 255, 255, 0.16);
}

.rgy-panorama[data-scheme="default"] .rgy-toolbar-wrapper .rgy-zoom-control-wrapper.rgy-sidebar-stack > .rgy-scene-choice-launcher--stacked {
  display: inline-flex;
}

.rgy-panorama[data-scheme="default"] .rgy-scene-choice-launcher:hover,
.rgy-panorama[data-scheme="default"] .rgy-scene-choice-launcher:focus {
  background: rgba(18, 25, 33, 0.74);
}

.rgy-panorama[data-scheme="default"] .rgy-scene-choice-launcher--stacked:hover,
.rgy-panorama[data-scheme="default"] .rgy-scene-choice-launcher--stacked:focus {
  transform: translateY(-1px);
}

.rgy-panorama[data-scheme="top"] .rgy-scene-choice-launcher span,
.rgy-panorama[data-scheme="bottom"] .rgy-scene-choice-launcher span {
  display: none;
}

.rgy-panorama[data-scheme="top"] .rgy-scene-choice-launcher,
.rgy-panorama[data-scheme="bottom"] .rgy-scene-choice-launcher {
  border-radius: 14px;
}

.rgy-panorama[data-scheme="top"] .rgy-scene-choice-launcher:hover,
.rgy-panorama[data-scheme="top"] .rgy-scene-choice-launcher:focus,
.rgy-panorama[data-scheme="bottom"] .rgy-scene-choice-launcher:hover,
.rgy-panorama[data-scheme="bottom"] .rgy-scene-choice-launcher:focus {
  background: rgba(255, 255, 255, 0.12);
}


@media (max-width: 900px) {
  .rgy-scene-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .rgy-panorama {
    --rgy-scene-choice-panel-width: calc(100% - 20px);
  }

  .rgy-scene-choice-panel {
    padding: 18px;
    border-radius: 22px;
    max-height: calc(100% - 20px);
  }

  .rgy-scene-choice-header {
    padding-right: 46px;
  }

  .rgy-scene-choice-title {
    font-size: 24px;
  }

  .rgy-scene-choice-text {
    font-size: 14px;
  }

  .rgy-scene-choice-grid {
    gap: 12px;
    margin-top: 18px;
  }

  .rgy-scene-choice-card {
    min-height: 102px;
    padding: 14px;
    gap: 12px;
    border-radius: 18px;
  }

  .rgy-scene-choice-media {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .rgy-scene-choice-card-title {
    font-size: 17px;
  }

  .rgy-scene-choice-card-text {
    font-size: 13px;
  }

  .rgy-scene-choice-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .rgy-scene-choice-launcher {
    left: auto;
    right: 12px;
    top: 12px;
    padding: 9px 12px;
    gap: 8px;
    font-size: 12px;
  }

  .rgy-panorama[data-scheme="default"] .rgy-scene-choice-launcher {
    right: 12px;
    top: calc(12px + var(--rgy-tool-size, 42px) * 2 + 16px);
  }

  .rgy-panorama[data-scheme="default"] .rgy-scene-choice-launcher--stacked {
    width: var(--rgy-tool-size, 38px);
    min-width: var(--rgy-tool-size, 38px);
    height: var(--rgy-tool-size, 38px);
  }

  .rgy-panorama[data-scheme="default"] .rgy-scene-choice-launcher--mobile-sidebar span {
    display: none !important;
  }

  .rgy-panorama[data-scheme="top"] .rgy-scene-choice-launcher {
    top: calc(var(--rgy-topbar-height, 44px) + 8px);
  }

  .rgy-panorama[data-scheme="bottom"] .rgy-scene-choice-launcher {
    top: auto;
    bottom: calc(var(--rgy-bottombar-height, 44px) + 8px);
  }
}
