/* Isolated, unpublished review composition. All measurements belong to the
   same scene, including the voting tickets and the foreground dashboard. */
.scene-blind .scene-content {
  --review-stage-width: min(98.6cqw, 182cqh);
  --review-stage-height: calc(var(--review-stage-width) * .338235294);
  --review-stage-top: 21cqh;
  --review-vote-offset: min(calc(var(--review-stage-height) * .906 - 2.4cqh), 52.2cqh);
  display: block;
  padding: 0;
}
.scene-blind .screening-heading {
  position: absolute;
  left: 10%;
  top: clamp(76px, 10.2cqh, 128px);
  width: 80%;
  margin: 0;
  text-align: center;
}
.scene-blind .screening-heading h1 {
  font-size: clamp(36px, min(4.8cqw, 6.5cqh), 86px);
  line-height: 1.01;
  letter-spacing: .035em;
}
.scene-blind .screening-heading p {
  margin-top: .15em;
  font-size: clamp(20px, min(2.2cqw, 3.2cqh), 34px);
  line-height: 1.05;
}
.scene-blind .screening-stage {
  position: absolute;
  left: 50%;
  top: var(--review-stage-top);
  width: var(--review-stage-width);
  height: var(--review-stage-height);
  aspect-ratio: auto;
  transform: translateX(-50%);
  overflow: visible;
}
.scene-blind .screening-stage .screening-player {
  left: 2.7%;
  top: 7.65%;
  width: 44.8%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.scene-blind .screening-stage .screening-player[data-side="B"] {
  left: 52.5%;
}
.scene-blind .screening-stage .screening-votes {
  top: var(--review-vote-offset);
  left: 3.4%;
  right: 3.4%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(104px, 11cqw, 180px) minmax(0, 1fr);
  column-gap: clamp(8px, 1.2cqw, 22px);
  row-gap: clamp(5px, .75cqh, 10px);
  align-items: center;
  justify-items: center;
  min-height: clamp(44px, 5.8cqh, 70px);
}
.scene-blind .screening-votes [data-vote="A"] {grid-column: 1;grid-row: 1;}
.scene-blind .screening-votes [data-vote="B"] {grid-column: 3;grid-row: 1;}
.scene-blind .screening-votes .screening-vote {
  width: min(90%, clamp(170px, 19cqw, 320px));
  min-width: 0;
  min-height: clamp(44px, 5.8cqh, 70px);
  height: clamp(44px, 5.8cqh, 70px);
  font-size: clamp(25px, min(3cqw, 4.6cqh), 49px);
}
.scene-blind .screening-votes .screening-confirm {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  left: auto;
  top: auto;
  transform: none;
  width: min(84%, clamp(150px, 16cqw, 270px));
  min-height: 34px;
  height: clamp(34px, 4.2cqh, 50px);
  padding: .12em .75em .16em;
  font-size: clamp(17px, 1.5cqw, 26px);
}
.scene-blind .screening-votes[data-choice="B"] .screening-confirm {grid-column: 3;}
.scene-blind .screening-votes:not([data-choice="A"]):not([data-choice="B"]) .screening-confirm {display: none !important;}
.scene-blind .screening-feedback {
  top: calc(var(--review-vote-offset) + clamp(44px, 5.8cqh, 70px) + clamp(5px, .75cqh, 10px));
  max-width: 27%;
  font-size: clamp(12px, 1.05cqw, 18px);
  line-height: 1.2;
  white-space: normal;
}

/* End cards are projected into the same two timber apertures. Only their
   contents change; the rack positions, perspective and feet stay in place. */
.scene-blind .screening-ending .screening-player {
  display: block !important;
  pointer-events: none;
}
.scene-blind .screening-ending .screening-window,
.scene-blind .screening-credit-window {
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff0d6;
  background-color: #172849;
  background-image: linear-gradient(140deg, #102344b8, #151e39db), var(--t700-image-blind-desert);
  background-size: 100% 100%, 180% 340%;
  background-position: center, center top;
  box-shadow: inset 0 0 2.6cqw #070d2455;
}
.scene-blind .screening-ending .screening-window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .3;
  background: repeating-linear-gradient(113deg, transparent 0 8px, #e8e4d20e 8px 9px, transparent 9px 15px);
}
.scene-blind .screening-credit-roll,
.scene-blind .screening-credit-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 8%;
  text-align: center;
  animation: review-credit-rise 4.6s cubic-bezier(.15, .5, .25, 1) both;
}
.scene-blind .screening-credit-roll h1,
.scene-blind .screening-credit-text {
  margin: 0;
  max-width: 12ch;
  font-family: var(--t700-display);
  font-size: clamp(34px, min(4.5cqw, 7.7cqh), 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .025em;
  text-shadow: 1px 2px 0 #07182b;
}
.scene-blind .screening-return,
.scene-blind .screening-back {
  position: absolute;
  left: 50%;
  top: calc(var(--review-stage-top) + var(--review-vote-offset));
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .25em .85em;
  font-family: var(--t700-hand);
  font-size: clamp(22px, 2cqw, 34px);
  font-weight: 700;
  color: #332f35;
  background: #fff0d6e8;
  border: 1.5px solid #55463c;
  border-radius: 5px 3px 7px 4px;
  box-shadow: 1px 2px 0 #53413133;
  text-decoration: underline;
  text-underline-offset: .16em;
  white-space: nowrap;
}
@keyframes review-credit-rise {
  from {transform: translateY(105%);}
  to {transform: translateY(0);}
}

@media (max-width: 700px) and (orientation: portrait) {
  body[data-room="blind"] #main {height: max(660px, 100svh, calc(210px + 110vw));min-height: 100svh;}
  .scene-blind .scene-content {
    --review-stage-width: 100cqw;
    --review-stage-height: calc(100cqw / 1.22);
    --review-stage-top: clamp(165px, 23cqh, 210px);
    --review-vote-offset: calc(var(--review-stage-height) * .89);
  }
  .scene-blind .screening-heading {top: 88px;left: 4%;width: 92%;}
  .scene-blind .screening-heading h1 {font-size: clamp(34px, 10cqw, 46px);}
  .scene-blind .screening-heading p {font-size: clamp(22px, 6.4cqw, 28px);}
  .scene-blind .screening-stage .screening-player,
  .scene-blind .screening-stage .screening-player[data-side="B"] {
    left: 6%;
    top: 7.65%;
    width: 88%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .scene-blind .screening-switch {top: 73%;}
  .scene-blind .screening-stage .screening-votes {
    left: 7%;
    right: 7%;
    grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
    column-gap: 8px;
  }
  .scene-blind .screening-votes .screening-vote {
    width: 100%;
    height: 46px;
    min-height: 46px;
    font-size: clamp(21px, 6.5cqw, 28px);
  }
  .scene-blind .screening-votes .screening-confirm {
    width: 100%;
    height: 42px;
    font-size: 17px;
  }
  .scene-blind .screening-feedback {top: calc(var(--review-vote-offset) + 102px);font-size: 13px;max-width: 90%;}
  /* Both ending messages stay visible without A/B controls on a phone. */
  .scene-blind .screening-ending .screening-player {
    left: 4.4%;
    width: 43.3%;
    top: 15%;
    transform: perspective(1100px) rotateY(3deg) rotateZ(.35deg);
  }
  .scene-blind .screening-ending .screening-player[data-side="B"] {
    left: 52.3%;
    width: 43.3%;
    top: 15%;
    transform: perspective(1100px) rotateY(-3deg) rotateZ(-.35deg);
  }
  .scene-blind .screening-credit-roll h1,
  .scene-blind .screening-credit-text {font-size: clamp(22px, 6.7cqw, 30px);max-width: 12ch;}
  .scene-blind .screening-return,
  .scene-blind .screening-back {top: calc(var(--review-stage-top) + var(--review-stage-height) * .69);font-size: 24px;}
}

@media (max-height: 560px) and (orientation: landscape) {
  .scene-blind .screening-heading {top: 50px;}
  .scene-blind .screening-heading h1 {font-size: clamp(28px, 6.2cqh, 36px);}
  .scene-blind .screening-heading p {font-size: 19px;}
  .scene-blind .scene-content {--review-stage-top: 21cqh;--review-stage-width: min(96cqw, 168cqh);--review-vote-offset: 48cqh;}
  .scene-blind .screening-votes .screening-vote {height: 34px;min-height: 34px;font-size: 25px;}
  .scene-blind .screening-stage .screening-votes {row-gap: 4px;}
  .scene-blind .screening-votes .screening-confirm {height: 30px;min-height: 30px;font-size: 16px;}
  .scene-blind .screening-feedback {top: calc(var(--review-vote-offset) + 39px);}
}

@media (max-height: 450px) and (orientation: landscape) {
  .scene-blind .screening-heading {top: 42px;}
  .scene-blind .screening-heading h1 {font-size: 24px;}
  .scene-blind .screening-heading p {font-size: 17px;}
  .scene-blind .scene-content {--review-stage-top: 26cqh;--review-stage-width: min(96cqw, 145cqh);--review-vote-offset: 41cqh;}
  .scene-blind .screening-votes .screening-vote {height: 30px;min-height: 30px;font-size: 23px;}
  .scene-blind .screening-votes .screening-confirm {height: 28px;min-height: 28px;font-size: 15px;}
  .scene-blind .screening-feedback {top: calc(var(--review-vote-offset) + 35px);font-size: 11px;}
}

/* Preserve browser-native fullscreen after all more-specific scene geometry. */
.scene-blind .screening-stage .screening-player:fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .scene-blind .screening-credit-roll,
  .scene-blind .screening-credit-text {animation: none;transform: none;}
}

.scene-blind .screening-unconfigured .screening-credit-roll { animation: none; }
.screening-end-note { max-width: 14ch; font-family: var(--t700-label); font-size: clamp(16px, 2.4cqw, 36px); line-height: 1.2; color: inherit; }
