.vegas-object-action {
  right: 13%;
  top: 15%;
  width: 20%;
  height: 43%;
}
.vegas-scene[data-state=issued] .vegas-object-action {
  left: 15%;
  right: auto;
  top: 70%;
  width: 47%;
  height: 20%;
}
.vegas-scene[data-state=detail] .vegas-object {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.vegas-scene[data-state=detail] .vegas-machine {
  object-fit: cover;
  object-position: 52% 58%;
}
.vegas-ticket {
  background-position: left top;
  background-size: 100% 145%;
  background-repeat: no-repeat;
}

.vegas-viewer {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
}
.vegas-scene[data-inspect=true] .vegas-object > img.vegas-machine {
  visibility: visible;
}
.vegas-scene[data-inspect=true] .vegas-object[data-exposure=painted] > img.vegas-machine {
  visibility: hidden;
}
.vegas-viewer .vegas-orbit {
  display: block;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
}
.vegas-object[data-exposure=painted] .vegas-orbit { opacity: 1; }
.vegas-viewer .vegas-orbit:focus-visible { outline-offset: -3px; }
.vegas-inspect-note {
  position: absolute;
  top: 1%;
  left: 0;
  right: 0;
  text-align: center;
  color: #545655;
  font: 400 clamp(11px, .84vw, 13px)/1.4 Helvetica, Arial, sans-serif;
  pointer-events: none;
}
/* Clear the product photograph as soon as the viewer starts moving in. */
.vegas-object[data-exposure=painted] .vegas-inspect-note { visibility: hidden; }
.vegas-turn, .vegas-inspect-reset {
  position: absolute;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--blue);
  -webkit-tap-highlight-color: transparent;
}
.vegas-turn { top: 48%; transform: translateY(-50%); }
.vegas-turn-left { left: 0; }
.vegas-turn-right { right: 0; }
.vegas-turn::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
.vegas-turn-left::after { transform: rotate(-135deg); }
.vegas-inspect-reset { top: 0; right: 0; padding: 0 8px; font-size: 12px; }
.vegas-scene[data-inspect=true] .vegas-object-controls {
  gap: clamp(10px, 2vw, 25px);
}
.vegas-view-switch { display: inline-flex; align-items: center; gap: clamp(6px, 1.5vw, 20px); }
.vegas-view-switch button { min-width: 44px; }
.vegas-view-switch button[aria-pressed=true] {
  color: #232624;
  text-decoration-color: currentColor;
}
.vegas-viewer [hidden], .vegas-scene[data-inspect=true] .vegas-replay { display: none; }
@media (max-width: 700px) {
  .vegas-scene[data-inspect=true] .vegas-object-controls { gap: 9px; }
  .vegas-view-switch { gap: 5px; }
  .vegas-scene[data-inspect=true] .vegas-object-controls button { font-size: clamp(11px, 3.2vw, 13px); }
}
.vegas-turn:disabled { opacity: .24; }
.vegas-viewer:has(.vegas-orbit:focus-visible) {
  outline: 1px solid var(--blue);
  outline-offset: -3px;
}
.vegas-viewer .vegas-orbit:focus-visible { outline: 0; }
.vegas-film { position: relative; }
.vegas-film > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.vegas-scene[data-inspect=true] .vegas-view-switch button {
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.vegas-view-switch button::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 4px;
  right: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 180ms ease-out;
}
.vegas-view-switch button[aria-pressed=true]::after { transform: scaleX(1); }
@media(max-width:700px) {
  .vegas-scene[data-inspect=true] .vegas-object-controls { gap: 3px; }
  .vegas-scene[data-inspect=true] .vegas-view-switch { gap: 1px; }
  .vegas-object-controls .vegas-view-switch button { padding-inline: 3px; }
}
@media(prefers-reduced-motion:reduce) {
  .vegas-view-switch button::after { transition: none; }
}
.vegas-object .vegas-decoder.vegas-native {
  position: relative;
  inset: auto;
  grid-area: 1/1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  opacity: 1;
  visibility: hidden;
  object-fit: contain;
}
.vegas-scene:is([data-state=spinning],[data-drag=true])[data-film=native] .vegas-native {
  visibility: visible;
}
.vegas-scene:is([data-state=spinning],[data-drag=true])[data-film=native] .vegas-object > img {
  visibility: hidden;
}

.vegas-viewer > .vegas-inspection-plate {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  max-height: none;
  transform-origin: 0 0;
  will-change: transform, opacity;
  pointer-events: none;
  user-select: none;
}

/* The cabinet and the folio share one stage in the invitation. */
#exploreDialog[data-episode=las-vegas][data-story-view=stages] {
  --sheet: #f7f5ee;
  & .explore-layout { display:grid;grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:auto; }
  & .explore-detail, & .explore-stages {display:contents}
  & .episode-modes {grid-area:1/1;position:static;margin:0;padding:0 4%;gap:24px}
  & .episode-modes button {min-height:38px;padding:6px 0}
  & .explore-tabs {grid-area:2/1;display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:0;padding:0 4%;border-top:0}
  & .explore-tabs button {min-height:42px;font-size:13px;padding:5px}
  & #exploreVisual {grid-area:3/1;width:100%;height:100%;min-height:0;background:var(--sheet) url('assets/las-vegas/cotton-rag.webp') center/cover}
  & #explorePanel {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);pointer-events:none}
  & .vegas-scene {width:100%;height:100%;min-height:0;container-type:size;grid-template:100% / 100%}
  & .vegas-object {width:min(100%,calc((100cqh - 44px)*1.13));max-height:calc(100% - 44px);translate:0 -18px}
  & #exploreVisual {background-size:100% 150%;background-position:left top}
  & .explore-actions {grid-area:4/1;margin:0;padding:4px 4%;border-top:1px solid #152f5119}
  & .explore-bottom {min-height:38px;padding-block:0}
  &:has(.vegas-scene[data-inspect=true]) #explorePanel {visibility:hidden}
  & .vegas-scene[data-inspect=true] {width:100%}
}
@media(max-width:700px) and (orientation:portrait) {
  #exploreDialog[data-episode=las-vegas][data-story-view=stages] {
    & .explore-top {height:47px}
    & .explore-tabs {padding-inline:3%;grid-template-columns:repeat(4,minmax(0,1fr))}
    & .explore-tabs button {font-size:12px;line-height:1.2;gap:3px}
    & .explore-tabs button span {display:none}
    & .explore-actions {padding-block:0}
    & .explore-bottom {min-height:32px}
  }
}

.vegas-print,.vegas-ticket-face {
  grid-area:1/1;
  -webkit-backface-visibility:hidden;backface-visibility:hidden;
  position:relative;
  isolation:isolate;
  box-sizing:border-box;
  width:min(90%,1040px);
  height:min(80%,calc(100% - 58px),555px);
  margin-bottom:20px;
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.15fr);
  gap:clamp(22px,4cqw,65px);
  padding:clamp(20px,4cqh,52px) clamp(23px,4.4cqw,64px);
  align-items:center;
  color:#282722;
  background:#f3efe6 url('assets/las-vegas/cotton-rag.webp') left top/100% 150% no-repeat;
  background-blend-mode:multiply;
  border:1px solid rgba(255,255,255,.65);
  box-shadow:0 1px 0 #bfb9ab,0 2px 1px #cfcabd,1px 9px 19px -13px #40362688;
}
.vegas-print[hidden],.vegas-scene[data-inspect=true] .vegas-print {display:none}
.vegas-print-copy {align-self:center;max-width:32ch}
.vegas-print-copy h3 {
  margin:0 0 .49em;color:#282723;
  font:italic 400 clamp(30px,4.1cqw,60px)/1.04 Georgia,'Times New Roman',serif;
  letter-spacing:-.052em;text-wrap:balance;
}
.vegas-print-copy p {margin:0;font:400 clamp(16px,1.55cqw,20px)/1.47 Helvetica,Arial,sans-serif;letter-spacing:-.014em;text-wrap:pretty}
.vegas-print-window {
  align-self:stretch;
  position:relative;isolation:isolate;overflow:hidden;
  background:#eae6dd;
  box-shadow:-1px -1px 1px #ada797,1px 1px 0 #fffefa;
}
.vegas-print-window img {display:block;width:100%;height:100%;object-fit:cover}
.vegas-print[data-plate="0"] .vegas-print-window img {object-fit:contain}
.vegas-print[data-plate="2"] .vegas-print-window img {object-position:48% 34%}
.vegas-print-window::after {content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 1px 2px 4px #362d222f,inset -1px -1px 1px #fff7}
.vegas-ticket-face {
  z-index:1;pointer-events:none;
  background:#f3efe6 url('assets/las-vegas/invitation-face.jpg') center/100% 100% no-repeat;
  background-blend-mode:normal;
  box-shadow:0 1px #bcb5a7,0 2px #ded8cb,0 3px 3px #38302733;
}
.vegas-ticket-rim {
  grid-area:1/1;width:min(90%,1040px);height:1.4px;margin-bottom:20px;
  pointer-events:none;z-index:2;background:linear-gradient(#e7dfd0,#b1a796);
}
.vegas-print {touch-action:pan-y pinch-zoom}
.vegas-print[data-plate="1"] img {object-position:59% 56%}
.vegas-print[data-plate="2"] {grid-template-columns:minmax(0,.72fr) minmax(0,1.22fr)}
.vegas-print[data-plate="3"] img {object-position:65% 57%}
.vegas-print-window::after {box-shadow:inset 0 2px 3px #352a1c32,inset 1px 0 2px #44392d1f,inset -1px -1px 0 #fff7}
#exploreDialog[data-episode=las-vegas][data-story-view=stages]:has(.vegas-scene:is([data-state=reading],[data-state=folio])) {
  & #exploreNext {padding:0 2px;background:transparent;color:#292923;min-height:44px;text-transform:none;letter-spacing:0;font:italic 400 19px/1.2 Georgia,serif;}
  & #exploreNext::after {content:'→';font:400 17px/1 Arial,sans-serif;margin-left:8px}
  & .explore-actions {border-color:#302a1e20}
  & .explore-bottom {display:none}
  & .explore-tabs button {color:#635e56}
  & .explore-tabs button[aria-selected=true] {color:#282723}
  & .explore-tabs button[aria-selected=true]::after {background:#817765}
  & .vegas-object-controls {justify-content:flex-start;left:max(5%,calc((100% - 1040px)/2));bottom:0}
  & .vegas-object-controls button {font-size:13px;color:#5d574d;text-decoration-color:#aaa397}
}
@media(max-width:700px) and (orientation:portrait) {
  .vegas-print,.vegas-ticket-face {
    width:calc(100% - 32px);height:calc(100% - 62px);max-height:630px;
    grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;
    padding:clamp(14px,4.3cqw,24px);gap:clamp(12px,3cqh,22px);
  }
  .vegas-ticket-rim {width:calc(100% - 32px)}
  .vegas-print[data-plate="2"] {grid-template-columns:1fr}
  .vegas-print-window {grid-area:1/1}
  .vegas-print-copy {grid-area:2/1;max-width:100%}
  .vegas-print-copy h3 {font-size:clamp(25px,7.4cqw,38px);margin-bottom:.25em}
  .vegas-print-copy p {font-size:16px;line-height:1.36}
}

/* The same sheet is seen from the cabinet mouth through the last print. */
#exploreDialog[data-episode=las-vegas][data-story-view=stages] #exploreVisual {
  background:#f6f4ef url('assets/las-vegas/folio-stock.webp') center/360px auto repeat;
}
.vegas-print,.vegas-print[data-plate="2"] {
  grid-template: minmax(0,1fr) auto / minmax(0,1fr);
  padding:clamp(14px,3.5cqh,32px) clamp(20px,5.2cqw,70px);
  gap:clamp(10px,2.9cqh,24px);
  height:min(91%,calc(100% - 48px),760px);
  background:#f6f4ee url('assets/las-vegas/folio-stock.webp') left top/320px auto repeat;
  border-color:#f8f7f2;
  box-shadow:0 1px 0 #bab5a9,0 2px 2px #35312a1c,0 10px 20px -19px #393323;
}
.vegas-print-window {grid-area:1/1;min-height:0;box-shadow:-1px -1px 1px #afa99d,1px 1px 0 #fffefa}
.vegas-print-window::after {box-shadow:inset 1px 2px 3px #30292332,inset 0 0 1px #39302450}
.vegas-print-copy {grid-area:2/1;max-width:74ch;align-self:start}
.vegas-print-copy h3 {font-size:clamp(26px,3cqw,40px);margin:0 0 .18em;letter-spacing:-.038em}
.vegas-print-copy p {font-size:clamp(16px,1.45cqw,18px);line-height:1.38}
.vegas-print[data-plate="1"] img {object-position:center}
.vegas-print[data-plate="2"] img {object-position:50% 35%}
.vegas-print[data-plate="3"] img {object-position:50% 61%}
.vegas-print-stack {grid-area:1/1;width:100%;height:100%;display:grid;grid-template:100% / 100%;place-items:center;pointer-events:none;z-index:1}
.vegas-outgoing {pointer-events:none}
.vegas-ticket-face {height:min(91%,calc(100% - 48px),760px)}
@media(max-width:700px) and (orientation:portrait){
 .vegas-print,.vegas-print[data-plate="2"],.vegas-ticket-face {height:calc(100% - 58px);max-height:680px}
 .vegas-print,.vegas-print[data-plate="2"] {padding:clamp(14px,4.4cqw,23px);gap:14px}
 .vegas-print[data-plate="1"] .vegas-print-window {height:auto;max-height:100%;width:100%;aspect-ratio:1.6;align-self:center}
 .vegas-print[data-plate="1"] img {object-fit:contain}
}

/* Raking light along the cut edge, with a single ink impression on the stock. */
.vegas-print-window {
  box-shadow:0 -1px 0 #a59e90,0 1px 0 #fffdf6;
}
.vegas-print-window::after {
  box-shadow:inset 0 2px 3px #3d332526,inset 1px 0 1px #42352718;
}
.vegas-print-copy h3 {
  color:#29261f;
  line-height:1.04;
  font-weight:400;
  text-shadow:0 1px 0 #fffaf2;
}
.vegas-print-copy p {color:#35322c;letter-spacing:-.011em}
@container (min-width:740px) and (min-height:350px) {
  .vegas-print,.vegas-print[data-plate="2"] {
    grid-template:minmax(0,1fr) / minmax(0,1.55fr) minmax(0,1fr);
    padding:clamp(24px,4.5cqh,42px);
    column-gap:clamp(28px,4cqw,56px);
  }
  .vegas-print-copy {grid-area:1/2;align-self:center;max-width:35ch}
  .vegas-print-copy h3 {font-size:clamp(30px,3.6cqw,50px);margin-bottom:.48em}
  .vegas-print-copy p {font-size:clamp(16px,1.36cqw,19px);line-height:1.5}
  .vegas-print[data-plate="1"] .vegas-print-window {width:100%;height:auto;max-height:100%;aspect-ratio:1.58;align-self:center}
  .vegas-print[data-plate="1"] img {object-fit:contain}
}
@media (max-width:700px) and (orientation:portrait) {
  .vegas-print-copy h3 {margin-bottom:.25em}
  .vegas-print-copy p {line-height:1.37}
}
.vegas-ticket-magnify {
  position:absolute;top:0;right:0;min-height:44px;padding:0 12px;
  border:0;background:transparent;color:#172e53;font:400 14px Helvetica,Arial,sans-serif;
}

.vegas-inspection-plate > img {position:absolute;inset:0;width:100%;height:100%;max-width:none;pointer-events:none}
.vegas-inspection-plate > .vegas-registered-print {
  inset:68.75% auto auto 12.5%;width:50%;height:21.875%;
}
