/* Scene composition: fixed world coordinates keep Sari attached to the car at every viewport. */
#world{--opening-center:8%}
.sari-stage{left:8%;top:69%;width:21dvh;max-width:none;min-width:0;z-index:1}
.sari-subject{bottom:0;left:0;width:100%;filter:brightness(.84) saturate(.8) drop-shadow(0 2px 2px #07100de0);mask-image:none;-webkit-mask-image:none}
.prop-revuelto{z-index:2}
.prop-motorcycle{left:27.6%;top:82%;width:24dvh}
.scene-anchor{position:absolute;width:1px;height:1px;pointer-events:none}
.scene-anchor.revuelto{left:8%;top:69%}.scene-anchor.floor{left:29%;top:44%}
.scene-heading{position:fixed;top:calc(var(--top) + env(safe-area-inset-top) + 22px);left:clamp(16px,3vw,42px);z-index:5;pointer-events:none;text-shadow:0 2px 18px #000}
.scene-heading p{font:700 11px var(--ui);letter-spacing:.16em;color:var(--amb2);margin:0 0 7px}
.scene-heading h2{font:400 clamp(27px,3vw,40px)/1 var(--disp);text-transform:uppercase;letter-spacing:.02em;margin:0;color:var(--ink)}
.midnight-grade{background:linear-gradient(180deg,#06080c55,transparent 28%,transparent 67%,#06080cbf)}
.deck{padding:14px 16px max(20px,env(safe-area-inset-bottom));display:flex;flex-direction:column;justify-content:center;gap:15px;background:linear-gradient(0deg,#06080caa,transparent);font-family:var(--ui)}
.scanner{gap:14px;font:700 11px var(--ui);letter-spacing:.13em;color:#d7dce3}
.scanner>div{width:clamp(150px,20vw,230px)}
.scanner button{border:1px solid #ffffff24;border-radius:50%;background:#06080caa;width:44px;height:44px;display:grid;place-items:center;backdrop-filter:blur(12px)}
.scanner button:disabled{opacity:.32}
.scanner svg{width:18px;height:18px;stroke:var(--ink);stroke-width:1.7;fill:none}
.meter{margin-top:8px;background:#ffffff25;height:2px}.meter i{background:var(--amb);box-shadow:0 0 8px #ff9a5866}
.release-actions{display:flex;flex-wrap:nowrap;justify-content:center;gap:8px;width:auto;padding:6px;border:1px solid #ffffff1a;border-radius:999px;background:#080b10bf;backdrop-filter:blur(16px);box-shadow:0 12px 35px #0006}
.release-actions .open{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 22px;white-space:nowrap;border-radius:999px;border:1px solid transparent;background:transparent;color:var(--ink);font:600 14px var(--ui);letter-spacing:0;text-decoration:none}
.release-actions .primary-action{background:#2b1b10;border-color:#ff9a5866;box-shadow:inset 0 1px #ffffff10,0 0 15px #ff8a3d1c}
.release-actions .open:hover{background:#241a13;border-color:#ff9a5855}
.release-actions svg{width:18px;height:18px;fill:none;stroke:var(--amb2);stroke-width:1.6;stroke-linecap:round}
#reel-toggle{min-width:0;min-height:46px;padding:0 22px;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--ink);font:600 14px var(--ui)}
.release-actions button:focus-visible,.release-actions a:focus-visible,.scanner button:focus-visible{outline:2px solid var(--amb2);outline-offset:3px}
#flight-board{width:min(540px,calc(100% - 24px));max-height:calc(100dvh - 28px);bottom:12px;padding:26px 22px 18px;border:1px solid #ff9a5840;border-radius:22px;background:linear-gradient(150deg,#151a22f7,#090c11fa);color:var(--ink);font-family:var(--ui);box-shadow:0 24px 70px #000c,0 0 40px #ff8a3d18}
#flight-board::backdrop{background:#020305a6;backdrop-filter:blur(7px)}
#flight-board header{padding-right:42px}
#flight-board header p{font:700 11px var(--ui);letter-spacing:.15em;color:var(--amb2);margin:0 0 9px}
#flight-board h2{font:400 36px/1.1 var(--disp);text-transform:uppercase;letter-spacing:.01em;margin:0}
#flight-board .board-help{font:400 15px/1.5 var(--ui);letter-spacing:0;color:var(--dim);margin:12px 0 20px}
#close{top:17px;right:17px;min-width:44px;min-height:44px;border:1px solid var(--line2);border-radius:50%;background:#0c1016;font:300 26px var(--ui);color:var(--ink)}
.board-rows{display:grid;gap:8px;margin:0}
.view-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:12px 10px 12px 14px;border:1px solid #ffffff0c;background:#ffffff04;border-radius:14px}
.view-row strong{font:600 16px var(--ui);display:block}.view-row>div>span{display:block;margin-top:4px;font:400 12px var(--ui);letter-spacing:0;color:var(--dim)}
.board-rows .view-row button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:50px;min-height:44px;padding:0 12px;border:1px solid var(--line2);border-radius:999px;background:#0c1016;font:600 13px var(--ui);color:var(--ink);white-space:nowrap}
.board-rows .view-row button span{font:600 13px var(--ui);letter-spacing:0;color:inherit}
.light-toggle i{width:6px;height:6px;border-radius:50%;background:#68717d}
.board-rows .view-row .light-toggle[aria-pressed=true]{background:#2b1b10;border-color:#ff9a5888;color:#fff0e4}
.light-toggle[aria-pressed=true] i{background:var(--amb);box-shadow:0 0 8px var(--glow)}
.board-rows .view-row button:hover{border-color:var(--amb)}
#flight-board .annotation{font:400 12px/1.5 var(--ui);letter-spacing:0;color:var(--dim);margin:18px 0 0}
#flight-board button:focus-visible{outline:2px solid var(--amb2);outline-offset:3px}
@media(max-width:560px){.scene-heading{top:calc(var(--top) + env(safe-area-inset-top) + 18px)}.sari-stage{left:8%;top:69%;width:21dvh}.prop-motorcycle{left:27.6%;top:82%;width:24dvh}.deck{gap:10px;padding-inline:12px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.release-actions{width:min(100%,410px);gap:3px;padding:5px}.release-actions .open,#reel-toggle{font-size:13px;padding:0 12px;min-height:44px}.release-actions .primary-action{flex:1}.release-actions svg{width:16px}.scanner{font-size:10px}.scanner button{width:38px;height:38px;min-height:38px}.scanner>div{width:160px}#flight-board{padding:23px 14px 17px}#flight-board h2{font-size:32px}.view-row{padding:11px 8px;gap:6px}.view-row strong{font-size:15px}.board-rows .view-row button{padding:0 10px}.view-row>div>span{font-size:11px}}
@media(max-height:500px){.scene-heading{top:calc(var(--top) + 10px)}.scene-heading h2{font-size:25px}.scene-heading p{display:none}.deck{flex-direction:row;gap:20px;padding-bottom:8px}.scanner>div{width:110px}.release-actions .open,#reel-toggle{min-height:40px;padding-inline:13px}.sari-stage{top:69%;width:21dvh}.prop-motorcycle{top:82%;width:24dvh}}

/* Full existing subject visible beside a properly sized bike. No foreground object hides her. */
#world{--duo-center:25%;--opening-center:var(--duo-center)}
.sari-stage{left:calc(var(--duo-center) - min(18dvh,29vw));top:75%;width:min(22dvh,40vw);z-index:4}
.sari-subject{filter:brightness(.88) saturate(.86) drop-shadow(2px 3px 3px #010807b0);mask-image:none;-webkit-mask-image:none}
.prop-motorcycle{left:calc(var(--duo-center) + min(12dvh,22vw));top:81%;width:min(36dvh,52vw);z-index:3}
.scene-anchor.revuelto{left:25%}
@media(max-height:500px){.sari-stage{top:73%}.prop-motorcycle{top:81%}}

/* A contained phone display keeps the entire dancer visible, with a real footer below. */
html,body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto;background:#06080c}
.scene-shell{position:relative;height:100dvh;min-height:600px;isolation:isolate;overflow:hidden}
.scene-shell #stage{position:absolute;inset:0}
.scene-shell #world{width:max(100vw,300dvh)}
.scene-shell .scene-heading,.scene-shell .deck{position:absolute}
.scene-shell .deck{gap:5px;padding-bottom:12px}
.setup-picker{margin:0!important;pointer-events:auto}
.setup-picker select{font-size:13px!important;min-height:40px;padding:8px 15px!important}
.pan-scanner{gap:6px!important;height:22px}
.pan-scanner button.plain-arrow{font-size:21px!important;min-height:25px!important;width:32px!important;min-width:32px!important}
.pan-scanner #pan-hint{font-size:9px}
.pan-scanner .meter{margin-top:4px}
.sari-stage{left:calc(var(--duo-center) - min(15dvh,23vw));top:72%;width:min(25dvh,43vw);z-index:4;height:0}
.sari-subject{position:absolute;inset:auto 0 0;aspect-ratio:9/17.5;width:100%;border:5px solid #17191f;outline:1px solid #9d7c8f88;border-radius:28px;background:linear-gradient(160deg,#19121f,#080a10);box-shadow:0 15px 40px #0009,0 0 24px #ff63b32a;filter:none;overflow:hidden}
.sari-subject::after{content:'';position:absolute;top:7px;left:36%;width:28%;height:9px;background:#050608;border-radius:8px;z-index:2}
.sari-subject img,.sari-subject video{object-fit:contain!important;width:100%;height:100%;inset:0}
.dancer-name{position:absolute;bottom:-25px;left:0;right:0;text-align:center;color:#ffc4df;font:600 10px var(--ui);letter-spacing:.1em;text-shadow:0 2px 4px #000}
.prop-motorcycle{left:calc(var(--duo-center) + min(18dvh,27vw));top:77%;width:min(36dvh,50vw);z-index:3}
#world[data-setup="1"] .sari-stage{left:calc(var(--duo-center) + min(15dvh,23vw))}
#world[data-setup="1"] .prop-motorcycle{left:calc(var(--duo-center) - min(18dvh,27vw))}
@media(max-width:560px){.scene-heading h2{font-size:28px}.scene-shell .deck{gap:5px}.release-actions .open,#reel-toggle{font-size:12px;padding:0 10px}.sari-stage{top:72%;width:min(25dvh,44vw)}.dancer-name{font-size:9px}.sari-subject{border-radius:24px}.scene-heading{top:calc(var(--top) + 15px)}}
@media(max-height:600px){.scene-shell{min-height:600px}.scene-shell #world{width:max(100vw,1800px)}.sari-stage{width:150px;top:72%}.prop-motorcycle{width:200px;top:76%}.scene-shell .deck{flex-direction:column}}

/* The phone presentation belongs only to the asset rail, not the scene. */
.scene-shell .sari-stage{top:75%;width:min(22dvh,40vw)}
.scene-shell .sari-subject{aspect-ratio:360/462;border:0;outline:0;border-radius:0;background:none;box-shadow:none;overflow:visible;filter:brightness(.88) saturate(.86) drop-shadow(2px 3px 3px #010807b0)}
.scene-shell .sari-subject::after{display:none}
.scene-shell .sari-subject img,.scene-shell .sari-subject video{width:100%!important;height:100%!important;left:0!important;top:0!important;object-fit:contain!important}
@media(max-height:600px){.scene-shell .sari-stage{width:132px;top:73%}}
