.riot-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #d7c29a;
  background-image: linear-gradient(90deg, rgba(76,51,28,.04) 1px, transparent 1px), linear-gradient(rgba(76,51,28,.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

.riot-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(215,194,154,.04) 0 24%, rgba(215,194,154,.12) 43%, rgba(215,194,154,.25) 100%);
}

.riot-world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  background: transparent;
}

.riot-stage-photos,
.riot-stage-text,
.riot-view-frames { position: absolute; inset: 0; }
.riot-stage-photos { z-index: 1; }
.riot-stage-text { z-index: 3; pointer-events: none; }
.riot-stage-text .riot-object { pointer-events: auto; }
.riot-view-frames { z-index: 8; pointer-events: none; }

.riot-stage-fallback {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 4;
  width: min(84vw, 680px);
  transform: translate(-50%, -50%) rotate(-3deg);
  text-align: center;
  color: #151515;
}

.riot-stage-fallback p { margin: 0; font: 700 clamp(1.4rem, 4vw, 2.6rem) "Caveat", cursive; }
.riot-stage-fallback h1 { margin: 0; color: #cf4772; font: 700 clamp(6rem, 20vw, 14rem) / .72 "Caveat", cursive; letter-spacing: -.08em; text-shadow: 5px 5px 0 #efbd46, 9px 9px 0 #151515; }
.riot-stage-fallback span { font: 500 clamp(.85rem, 2vw, 1.15rem) "Fraunces", Georgia, serif; }

.riot-object {
  position: absolute;
  transform: translate(-50%, -50%) rotate(calc(var(--r) * 1deg));
  transform-origin: center;
}

.riot-photo {
  display: block;
  filter: saturate(.94) contrast(.97);
}

.riot-photo-frame {
  display: block;
  background: #f8ecd4;
  padding: 7px 7px 27px;
  box-shadow: 12px 16px 0 rgba(56,38,18,.22);
}

.riot-photo-crop {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: #c7b48e;
}

.riot-photo picture,
.riot-photo img { display: block; width: 100%; height: 100%; }

.riot-photo img {
  object-fit: cover;
  object-position: calc(var(--cx, .5) * 100%) calc(var(--cy, .5) * 100%);
  transform: scale(var(--zoom, 1));
  transform-origin: calc(var(--cx, .5) * 100%) calc(var(--cy, .5) * 100%);
  user-select: none;
  -webkit-user-drag: none;
}

.frame-instant-portrait .riot-photo-crop { aspect-ratio: 4 / 5; }
.frame-wide-print .riot-photo-crop { aspect-ratio: 5 / 3; }
.frame-thin-print .riot-photo-crop { aspect-ratio: 3 / 5; }
.frame-borderless .riot-photo-frame { padding: 0; }
.frame-borderless .riot-photo-crop { aspect-ratio: 4 / 5; }

.riot-text {
  margin: 0;
  text-align: center;
  white-space: pre-wrap;
  color: #151515;
}

.riot-text-kicker { font: 700 var(--text-size, 42px) "Caveat", cursive; }
.riot-text-title {
  color: #cf4772;
  font: 700 var(--text-size, 190px) / .72 "Caveat", cursive;
  letter-spacing: -.08em;
  text-shadow: 8px 8px 0 #efbd46, 15px 15px 0 #151515;
}
.riot-text-subtitle { font: 500 var(--text-size, 28px) "Fraunces", Georgia, serif; }

.riot-view-frame {
  position: absolute;
  border: 5px dashed rgba(21, 21, 21, .34);
  background: rgba(239, 189, 70, .045);
  box-shadow: inset 0 0 0 2px rgba(242, 230, 204, .45);
}
.riot-view-frame.is-active { border-color: #cf4772; background: rgba(207, 71, 114, .06); }
.riot-view-frame span {
  position: absolute;
  left: 14px;
  top: 12px;
  padding: 7px 12px;
  background: #f8ecd4;
  border: 2px solid #151515;
  font: 700 30px "Caveat", cursive;
  box-shadow: 4px 5px 0 rgba(21, 21, 21, .18);
}

.riot-stage.is-editor {
  position: relative;
  inset: auto;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px #000, 0 22px 70px #0008;
  touch-action: none;
  user-select: none;
}
.riot-stage.is-editor .riot-world { transform-origin: 0 0; }
.riot-stage.is-editor .riot-object { cursor: grab; touch-action: none; user-select: none; }
.riot-stage.is-editor .riot-object:active { cursor: grabbing; }
.riot-stage.is-editor .riot-object.is-selected { outline: 7px solid #cf4772; outline-offset: 8px; }
.riot-stage.is-editor .riot-photo * { pointer-events: none; }
.riot-stage.is-editor .transform-handle {
  position: absolute;
  z-index: 9999;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 4px solid #151515;
  border-radius: 999px;
  background: #efbd46;
  box-shadow: 4px 5px 0 rgba(21, 21, 21, .22);
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.riot-stage.is-editor .transform-nw { left: 0; top: 0; cursor: nwse-resize; }
.riot-stage.is-editor .transform-ne { left: 100%; top: 0; cursor: nesw-resize; }
.riot-stage.is-editor .transform-sw { left: 0; top: 100%; cursor: nesw-resize; }
.riot-stage.is-editor .transform-se { left: 100%; top: 100%; cursor: nwse-resize; }
.riot-stage.is-editor .transform-rotate {
  left: 50%;
  top: -74px;
  background: #cf4772;
  cursor: grab;
}
.riot-stage.is-editor .transform-rotate::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 4px;
  height: 46px;
  background: #151515;
  transform: translateX(-50%);
}

.riot-landing-only .riot-hero { padding: 0; display: block; min-height: 100svh; height: 100svh; overflow: hidden; }
.riot-landing-only .riot-hero::before,
.riot-landing-only .riot-collage,
.riot-landing-only .riot-title-wrap { display: none; }
