* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #372a63;
  background: #f1eff7;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
body:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 650px;
  background:
    linear-gradient(0deg, #f1eff7, transparent),
    url("/assets/motions-hero-sky-soft-clouds.webp") center/cover;
  opacity: 0.65;
  z-index: -1;
}
header {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 36px;
}
header img {
  width: 158px;
}
nav {
  display: flex;
  gap: 25px;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select {
  font: inherit;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 0 28px;
}
.intro {
  padding: 55px 0 44px;
  position: relative;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -3px;
  margin: 22px 0;
}
h1 em {
  font-style: normal;
  color: #9872d6;
}
.intro p {
  font-size: 18px;
  color: #79708e;
  line-height: 1.7;
}
.pill {
  display: inline-block;
  border: 1px solid #ffffff;
  background: #ffffffa8;
  border-radius: 30px;
  padding: 10px 16px;
  font-size: 12px;
}
.studio {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 50px;
  padding: 30px;
  border-radius: 32px;
  background: #ffffffaa;
  border: 1px solid #fff;
  box-shadow: 0 18px 90px #372a6309;
}
.controls {
  display: grid;
  gap: 20px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title span {
  font-size: 11px;
  border: 1px solid #d2c5e9;
  border-radius: 50%;
  padding: 7px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 0;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
input,
select {
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 1px solid #ded7e9;
  border-radius: 12px;
  background: #fff;
  color: #45305f;
}
input[type="range"] {
  padding: 0;
  accent-color: #8860c2;
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: #8860c2;
}
.check {
  display: flex;
  align-items: center;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.note {
  font-size: 12px;
  line-height: 1.65;
  color: #80758e;
  margin: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.segmented {
  display: flex;
  border-radius: 12px;
  padding: 4px;
  background: #ebe5f3;
  gap: 4px;
}
.segmented label {
  flex: 1;
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 9px;
  border-radius: 9px;
}
.segmented label:has(:checked) {
  background: #fff;
  box-shadow: 0 3px 6px #372a6311;
}
.segmented input {
  position: absolute;
  opacity: 0;
}
.segmented label:focus-within {
  outline: 2px solid #8760bd;
}
button {
  border: 0;
  border-radius: 12px;
  background: #7450aa;
  color: white;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 650;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:hover:not(:disabled) {
  background: #5c3b90;
}
.actions {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 12px;
}
.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 20px;
}
.preview-top button {
  background: #eee7f8;
  color: #6b479c;
  font-size: 12px;
  padding: 10px;
}
.dimensions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #82778e;
  margin-bottom: 18px;
}
.dimensions label {
  max-width: 100px;
  font-size: 11px;
}
.dimensions input {
  padding: 8px;
}
.preview-backdrop-control {
  display: block;
  margin-bottom: 14px;
  color: #665b76;
  font-size: 11px;
}
.preview-backdrop-control select {
  display: block;
  width: 100%;
  max-width: 230px;
  margin-top: 5px;
  padding: 8px 10px;
}
.preview-frame {
  max-width: 100%;
  margin-inline: auto;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: conic-gradient(
      #dedbe5 25%,
      #e9e6ee 0 50%,
      #dedbe5 0 75%,
      #e9e6ee 0
    )
    0 0/24px 24px;
  border: 1px solid #d7d0e2;
}
.preview-frame.gameplay {
  background: #ce8670 url("/assets/stream-preview-rally.png") center / cover
    no-repeat;
}
#preview {
  transform-origin: top left;
  position: absolute;
  left: 0;
  top: 0;
}
.caption {
  font-size: 11px;
  line-height: 1.6;
  color: #81788d;
}
.scene-controls {
  margin-top: 26px;
  font-size: 13px;
}
.scene-controls summary {
  cursor: pointer;
  margin-bottom: 18px;
}
.scene-controls > label {
  margin-bottom: 18px;
}
#scene {
  aspect-ratio: 9/16;
  max-height: 420px;
  margin: 20px auto;
  position: relative;
  background: linear-gradient(135deg, #b9aed1, #ede5f9);
  overflow: hidden;
  border-radius: 16px;
}
#safe-zone {
  position: absolute;
  border: 2px dashed #fff;
  display: grid;
  place-items: center;
  text-align: center;
  color: #634784;
  font-size: 11px;
  padding: 12px;
}
.chat-guide {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 9px;
  color: #5f5075;
}
#how {
  padding: 70px 0;
}
#how > h2 {
  font-size: 38px;
  margin: 16px 0 28px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.steps h3 {
  font-size: 17px;
}
.steps p {
  font-size: 14px;
  color: #7a708c;
  line-height: 1.65;
}
.diagram {
  height: 110px;
  background: #e6dfef;
  border: 1px solid #fff;
  border-radius: 16px;
  padding: 15px;
  font-size: 11px;
  position: relative;
}
.diagram span {
  display: block;
  background: #f9f6ff;
  border-radius: 8px;
  padding: 10px;
  margin-top: 8px;
}
.diagram b {
  position: absolute;
  right: 12px;
  top: 10px;
  color: #986cc7;
  font-size: 23px;
}
footer {
  padding: 30px;
  text-align: center;
  font-size: 12px;
  color: #81768d;
}
footer a {
  margin-left: 20px;
}
#copy-status {
  font-size: 12px;
  min-height: 16px;
  margin: 0;
}
@media (max-width: 850px) {
  .studio {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .intro {
    padding-top: 30px;
  }
  header {
    padding: 25px;
  }
  header nav {
    font-size: 12px;
    gap: 14px;
  }
  .preview-column {
    min-width: 0;
  }
  .studio {
    padding: 20px;
  }
  main {
    padding: 0 16px;
  }
}

#scene-widget {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
}
#safe-zone {
  padding: 0;
  display: block;
}
.preview-top button:hover:not(:disabled) {
  color: #fff;
}
