/* Release page polish for the 2026-07-10 web deployment. */
:root {
  --release-card-radius: 12px;
}

.navWrap {
  z-index: 160;
}

.navInner {
  align-items: center;
}

#root {
  position: relative;
  z-index: 4;
}

#themeInteractionLayer {
  z-index: 0;
}

body.has-launcher-page #root {
  position: relative;
  z-index: 4;
}

body.has-launcher-page #themeInteractionLayer {
  z-index: 0;
}

body.has-launcher-page #themeInteractionLayer .theme-pass {
  opacity: .18;
}

body.has-launcher-page .navInner {
  min-height: 52px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.launcherPage {
  position: relative;
  z-index: 1;
  padding: 6px 0 46px;
}

.launcherHero {
  grid-template-columns: minmax(360px, 1.02fr) minmax(390px, .98fr);
  gap: 20px;
}

.launcherHeroText,
.launcherPreview,
.launcherFeatureGrid article,
.launcherDownloadGrid article {
  border-radius: var(--release-card-radius);
  background:
    radial-gradient(circle at 18% 8%, rgba(74, 222, 128, .1), transparent 26%),
    linear-gradient(180deg, rgba(19, 31, 46, .9), rgba(8, 13, 22, .88));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .08);
}

.launcherHeroText {
  display: flex;
  min-height: 510px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3.8vw, 42px);
}

.launcherHero h1 {
  max-width: 780px;
  font-size: clamp(34px, 4.55vw, 56px);
  line-height: 1.04;
}

.launcherHero p {
  max-width: 680px;
}

.launcherActions {
  align-items: center;
}

.launcherDownloadBtn,
.launcherSecondaryBtn {
  border-radius: 9px;
  white-space: normal;
  text-align: center;
}

.launcherPreview {
  isolation: isolate;
  min-height: 510px;
  padding: 18px;
}

.launcherPreviewBar {
  position: relative;
  z-index: 2;
  padding: 6px 4px 16px;
}

.launcherPreviewBody {
  position: relative;
  z-index: 2;
  height: clamp(372px, 37vw, 428px);
  min-height: 372px;
  max-height: 428px;
}

.launcherSidebar,
.launcherPanel {
  border-radius: 10px;
  background: rgba(5, 8, 14, .82);
}

.launcherPanel {
  backdrop-filter: blur(10px);
}

.launcherPanelHead h2,
.launcherDownloadGrid h2,
.launcherFeatureGrid h2 {
  letter-spacing: 0;
}

.launcherFeedScroller,
.launcherPanel {
  scrollbar-width: thin;
}

.launcherDownloadGrid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.launcherDownloadGrid article {
  min-height: 202px;
}

.launcherFeatureGrid {
  gap: 16px;
  margin-top: 20px;
}

.launcherFeatureGrid article {
  min-height: 134px;
}

#themeInteractionLayer.theme-redstone-lab .theme-redstone-floor {
  opacity: .22;
}

#themeInteractionLayer.theme-redstone-lab .theme-redstone-build {
  opacity: .86;
}

#themeInteractionLayer.theme-redstone-lab .rs-lever:focus-visible {
  outline: 2px solid rgba(250, 204, 21, .95);
  outline-offset: 3px;
}

#themeInteractionLayer.theme-redstone-lab .rs-lever {
  touch-action: manipulation;
}

#redstoneControlDock {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 170;
  display: none;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(239, 68, 68, .36);
  border-radius: 12px;
  background: rgba(12, 5, 5, .76);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .36), inset 0 1px rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

html.site-theme-redstone-lab #redstoneControlDock,
body.has-redstone-theme #redstoneControlDock {
  display: flex;
}

.redstoneControlButton {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(250, 204, 21, .22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 42%),
    linear-gradient(0deg, rgba(34, 27, 24, .38), rgba(34, 27, 24, .38)),
    var(--rs-tex-cobble, linear-gradient(135deg, #40352d, #1f1816));
  box-shadow: inset 1px 1px rgba(255, 255, 255, .12), inset -2px -2px rgba(0, 0, 0, .32);
  cursor: pointer;
}

.redstoneControlButton:before {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 30%;
  bottom: 30%;
  border-radius: 3px;
  background: linear-gradient(180deg, #a8a29e, #57534e);
  box-shadow: inset 1px 1px rgba(255, 255, 255, .28), 0 0 0 1px rgba(0, 0, 0, .36);
}

.redstoneControlButton:after {
  content: "";
  position: absolute;
  left: calc(50% - 3px);
  top: 9%;
  width: 6px;
  height: 76%;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc, #78716c 54%, #3f3f46);
  transform: rotate(-30deg);
  transform-origin: 50% 78%;
  transition: transform .16s steps(2, end), box-shadow .16s ease;
}

.redstoneControlButton.is-active:after {
  transform: rotate(30deg);
  box-shadow: 0 0 14px rgba(250, 204, 21, .55);
}

.redstoneControlButton.is-active:before {
  box-shadow: inset 1px 1px rgba(255, 255, 255, .28), 0 0 16px rgba(239, 68, 68, .46);
}

.redstoneControlButton:focus-visible {
  outline: 2px solid rgba(250, 204, 21, .95);
  outline-offset: 3px;
}

html.site-theme-redstone-lab :where(.launcherHeroText, .launcherPreview, .launcherDownloadGrid article, .launcherFeatureGrid article) {
  border-color: rgba(239, 68, 68, .34);
  background:
    radial-gradient(circle at 22% 0%, rgba(239, 68, 68, .16), transparent 30%),
    radial-gradient(circle at 82% 100%, rgba(250, 204, 21, .1), transparent 32%),
    linear-gradient(180deg, rgba(29, 10, 10, .92), rgba(9, 5, 5, .9));
}

@media (max-width: 1120px) {
  .launcherHero {
    grid-template-columns: minmax(0, 1fr);
  }

  .launcherHeroText,
  .launcherPreview {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .launcherPage {
    padding-top: 14px;
  }

  .launcherHero {
    gap: 14px;
  }

  .launcherHeroText,
  .launcherPreview {
    padding: 16px;
  }

  .launcherHero h1 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .launcherHero p {
    font-size: 15px;
  }

  .launcherPreviewBody {
    height: auto;
    min-height: 330px;
  }

  .launcherDownloadGrid,
  .launcherFeatureGrid {
    grid-template-columns: 1fr;
  }

  #themeInteractionLayer.theme-redstone-lab .theme-redstone-workshop {
    display: none;
  }

  #redstoneControlDock {
    right: 10px;
    bottom: 10px;
    gap: 6px;
    padding: 6px;
  }

  .redstoneControlButton {
    width: 34px;
    height: 34px;
  }

  #themeInteractionLayer.theme-redstone-lab .theme-redstone-floor {
    opacity: .1;
  }
}
