/* Reserved reading zones: legend, data and controls never share a baseline. */
.film-stage{--utv-controls-height:70px;--utv-caption-height:64px;--utv-data-height:118px}
.film-stage .film-controls{bottom:8px}
.film-stage .film-caption{bottom:calc(var(--utv-controls-height) + 2px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 12px;align-items:start;left:2%;right:2%;font-size:10px;line-height:1.35;pointer-events:none}
.film-stage .film-caption>span{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.film-stage .film-caption>span:last-child{margin-left:auto;text-align:right}
.film-stage .film-insights,.film-stage[data-phase=absorption] .film-insights{bottom:calc(var(--utv-controls-height) + var(--utv-caption-height))!important;height:var(--utv-data-height);min-height:0;overflow:auto;scrollbar-width:thin}
.film-stage:not([data-phase=signature]) .map-key,.film-stage[data-journey=estate]:not([data-phase=signature]) .map-key{bottom:calc(var(--utv-controls-height) + var(--utv-caption-height) + var(--utv-data-height) + 12px);height:auto;max-height:110px;overflow:auto;line-height:1.35}
.film-stage .village-context{bottom:calc(var(--utv-controls-height) + var(--utv-caption-height) + var(--utv-data-height) + 132px)}
.film-stage .film-context-status{position:static;grid-column:1/-1;max-width:100%;padding:0;margin:0;border:0;background:none;transform:none;font-size:10px;line-height:1.3}
.film-stage .parcel-marker[aria-current=true]{border-color:#fff2b9;box-shadow:0 0 0 3px #dfc17f88}
.film-stage .signature{bottom:calc(var(--utv-controls-height) + var(--utv-caption-height));overflow:auto;scrollbar-width:thin}
.final-cuvee-sheet{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:154px minmax(0,1fr);gap:16px;padding:16px;margin-bottom:18px;border:1px solid #c9b075;background:#0b202a;color:#f5efdf}
.final-cuvee-sheet[hidden]{display:none}
.final-cuvee-sheet svg{display:block;width:154px;height:154px;max-width:100%}
.final-cuvee-sheet h3{margin:0 0 8px;font-size:18px}
.final-cuvee-sheet p{font-size:12px;line-height:1.5;margin:6px 0}
.final-cuvee-sheet a,.final-cuvee-sheet button{display:block;min-height:44px;max-width:100%;white-space:normal;text-align:left;overflow-wrap:anywhere}
.final-cuvee-private{font-size:12px;line-height:1.5;padding:12px;border:1px solid #c9b07555}
@media(max-width:700px){
 .film-stage{--utv-controls-height:184px;--utv-caption-height:64px;--utv-data-height:112px}
 .film-stage .film-caption{display:grid!important;bottom:184px;max-width:none;left:14px;right:14px;font-size:9px}
 .film-stage:not([data-phase=signature]) .map-key,.film-stage[data-journey=estate]:not([data-phase=signature]) .map-key{left:14px;right:14px;width:auto;height:62px;max-height:62px;padding:6px}
 .film-stage .map-key-note{display:none}
 .film-stage .village-context{bottom:calc(var(--utv-controls-height) + var(--utv-caption-height) + var(--utv-data-height) + 80px)}
 .film-stage[data-phase=signature] .signature,.film-stage[data-journey=estate][data-phase=signature] .signature{bottom:248px}
 .final-cuvee-sheet{position:relative;grid-template-columns:120px minmax(0,1fr);gap:10px;padding:10px;text-align:left}
 .final-cuvee-sheet svg{width:120px;height:120px;margin:0 auto}
 .final-cuvee-sheet h3{font-size:15px}.final-cuvee-sheet p{font-size:11px}.final-cuvee-sheet a,.final-cuvee-sheet button{text-align:left;font-size:12px}
}

/* Stronger state selectors override legacy footer positions in the final scene. */
.film-stage[data-phase] .film-caption{bottom:calc(var(--utv-controls-height) + 2px)!important;opacity:1;max-width:none}
.film-stage[data-phase=signature] .signature{bottom:calc(var(--utv-controls-height) + var(--utv-caption-height))}
.film-stage[data-phase=absorption][data-parcel-reading=true] .map-key{display:block}
.film-stage .film-insights[data-summary=false]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start}
@media(max-width:700px){.film-stage .film-insights[data-summary=false]{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The QR and the reading pane have independent space, including while scrolling. */
.film-stage[data-phase=signature] .signature{display:flex;flex-direction:column;overflow:hidden;gap:10px}
.film-stage .signature[hidden]{display:none!important}
.signature-reading16{overflow:auto;min-height:0;flex:1;scrollbar-width:thin}
.final-cuvee-sheet{position:relative;flex:none;margin-bottom:0}
.film-stage .signature>.eyebrow{flex:none;margin:0}
.film-stage .film-insights[data-summary=false][data-cards="1"]{grid-template-columns:minmax(0,1fr)!important}
.film-stage .film-insights[data-summary=false][data-cards="2"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.film-stage .film-insights[data-summary=false] .metric-card strong{font-size:20px;line-height:1.2;margin:4px 0}
@media(max-width:700px){.film-stage .film-insights[data-summary=false] .metric-card strong{font-size:16px}.film-stage .film-insights[data-summary=false] .metric-card span{font-size:9px}}
@media(max-width:700px){
 .film-stage[data-phase=signature] .signature:has(.final-cuvee-sheet:not([hidden]))>.eyebrow{display:none}
 .final-cuvee-sheet>div:last-child>p:not([role=status]){display:none}
 .final-cuvee-sheet{gap:8px}
 .signature-reading16{min-height:64px}
}
