/* TRYHARD / ZONE7 — REAL 3D TECH RIDER */
#setup.setup-real3d {
  min-height: 760px;
}

#setup.setup-real3d .setup-grid {
  grid-template-columns: minmax(280px, 27%) minmax(0, 73%);
  min-height: 760px;
}

#setup.setup-real3d .setup-copy {
  min-height: 760px;
}

#setup.setup-real3d .setup-copy p {
  max-width: 285px;
}

.setup-mode-switch {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  width: min(100%, 310px);
}

.setup-mode-btn {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 12px 42px 12px 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.52);
  text-align: left;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}

.setup-mode-btn::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.setup-mode-btn:hover,
.setup-mode-btn.is-active {
  border-color: rgba(255,23,23,.68);
  background: rgba(255,23,23,.055);
  color: #fff;
}

.setup-mode-btn.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--red);
}

.setup-mode-btn strong {
  display: block;
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.setup-mode-btn span {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.48);
  font-size: 7px;
  line-height: 1.35;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.setup-stage.real3d-stage {
  min-height: 760px;
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(circle at 46% 44%, rgba(255,23,23,.12), transparent 34%),
    linear-gradient(180deg, #080808 0%, #030303 100%);
}

.setup-stage.real3d-stage:active {
  cursor: grabbing;
}

.real3d-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 80%, transparent 100%);
}

#setup-canvas {
  z-index: 1;
}

.real3d-loading {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3,3,3,.72);
  backdrop-filter: blur(3px);
  transition: opacity .35s ease, visibility .35s ease;
}

.real3d-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.real3d-loading-box {
  width: min(320px, 72%);
}

.real3d-loading-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.62);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.real3d-loading-bar {
  height: 2px;
  margin-top: 12px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}

.real3d-loading-bar i {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255,23,23,.55);
  transition: width .18s ease;
}

.real3d-toolbar {
  position: absolute;
  z-index: 10;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 78%;
}

.real3d-tool {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(5,5,5,.64);
  color: rgba(255,255,255,.58);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.real3d-tool:hover,
.real3d-tool.is-active {
  color: #fff;
  border-color: rgba(255,23,23,.62);
  background: rgba(255,23,23,.07);
}

.real3d-badge {
  position: absolute;
  z-index: 9;
  left: 24px;
  top: 24px;
  padding-left: 12px;
  border-left: 2px solid var(--red);
  pointer-events: none;
}

.real3d-badge small {
  display: block;
  color: var(--red);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.real3d-badge strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-family: "Anton", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.real3d-badge span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.45);
  font-size: 7px;
  line-height: 1.35;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.real3d-djs-label {
  position: absolute;
  z-index: 9;
  left: 7%;
  bottom: 88px;
  max-width: 170px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.17);
  background: rgba(5,5,5,.72);
  color: rgba(255,255,255,.48);
  font-size: 7px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
  pointer-events: none;
}

.real3d-djs-label strong {
  color: #fff;
}

.real3d-djs-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: -24px;
  width: 1px;
  height: 24px;
  background: rgba(255,23,23,.8);
}

.real3d-footer {
  position: absolute;
  z-index: 9;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid rgba(255,255,255,.13);
  pointer-events: none;
}

.real3d-footer div {
  padding-top: 10px;
  color: rgba(255,255,255,.36);
  font-size: 6.5px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.real3d-footer div + div {
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.10);
}

.real3d-footer strong {
  display: block;
  color: rgba(255,255,255,.83);
  font-size: 7px;
}

.real3d-hint {
  position: absolute;
  z-index: 9;
  right: 20px;
  bottom: 55px;
  color: rgba(255,255,255,.28);
  font-size: 6.5px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}

.real3d-error {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 50%;
  width: min(520px, 84%);
  transform: translate(-50%, -50%);
  padding: 18px;
  border: 1px solid rgba(255,23,23,.55);
  background: rgba(5,5,5,.94);
  color: rgba(255,255,255,.70);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.real3d-error strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 10px;
}

#setup.setup-real3d .stage-vignette {
  z-index: 5;
}

#setup.setup-real3d .setup-side-label {
  z-index: 9;
}

@media (max-width: 1050px) {
  #setup.setup-real3d .setup-grid {
    grid-template-columns: 34% 66%;
  }

  .real3d-footer {
    grid-template-columns: repeat(2, minmax(0,1fr));
    row-gap: 8px;
  }
}

@media (max-width: 760px) {
  #setup.setup-real3d {
    min-height: auto;
  }

  #setup.setup-real3d .setup-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  #setup.setup-real3d .setup-copy {
    min-height: 0;
    padding-bottom: 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .setup-mode-switch {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .setup-mode-btn {
    min-height: 64px;
    padding-right: 24px;
  }

  .setup-stage.real3d-stage {
    min-height: 560px;
  }

  .real3d-toolbar {
    top: 14px;
    right: 14px;
    max-width: 60%;
  }

  .real3d-tool {
    min-height: 28px;
    padding-inline: 9px;
  }

  .real3d-badge {
    left: 14px;
    top: 15px;
    max-width: 38%;
  }

  .real3d-badge strong {
    font-size: 16px;
  }

  .real3d-footer {
    left: 14px;
    right: 14px;
    bottom: 14px;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .real3d-djs-label {
    left: 14px;
    bottom: 112px;
    max-width: 145px;
  }

  .real3d-hint {
    display: none;
  }
}

@media (max-width: 460px) {
  .setup-mode-switch {
    grid-template-columns: 1fr;
  }

  .setup-stage.real3d-stage {
    min-height: 500px;
  }

  .real3d-toolbar .real3d-tool[data-view="front"] {
    display: none;
  }

  .real3d-footer {
    font-size: 6px;
  }
}

/* Full rider annotation: booth monitors */
.real3d-monitor-label {
  position: absolute;
  z-index: 9;
  right: 20px;
  bottom: 88px;
  max-width: 210px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.17);
  background: rgba(5,5,5,.72);
  color: rgba(255,255,255,.48);
  font-size: 7px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .045em;
  text-align: right;
  text-transform: uppercase;
  pointer-events: none;
}

.real3d-monitor-label strong {
  color: #fff;
}

.real3d-monitor-label::before {
  content: "";
  position: absolute;
  right: 0;
  top: -24px;
  width: 1px;
  height: 24px;
  background: rgba(255,23,23,.8);
}

@media (max-width: 760px) {
  .real3d-monitor-label {
    display: none;
  }
}
