/* Frame the landscape for phones: keep 80% of the painted height, with more
   sky than foreground trimmed. Scenery and its hit areas share one coordinate
   space; overlays and dialogs keep the actual viewport height. */
:root{--scene-height:125%;--scene-lift:18%}
body:not(.overview) #world{width:max(10500px,1125dvh);height:var(--scene-height);top:calc(-1 * var(--scene-lift))}
body.overview #world{top:0}
#world .story-note.has-title-art{top:calc(14.4% + 60px);width:297.5px}
#world .opening{width:min(234px,37.2%)}
#world :is(.land-entry-hint,.transplant-entry-hint,.pollination-entry-hint,.drone-entry-hint,.harvest-entry-hint,.drying-entry-hint,.field-speech-hint){font-size:15px;padding:6px 13px}

#world :is(.land-entry-hint,.transplant-entry-hint,.pollination-entry-hint,.harvest-entry-hint,.field-speech-hint){border:1px solid #a38b5440;border-radius:20px;background:#fff6dee6;color:#6c552f;text-shadow:0 1px 3px #fff9e6;letter-spacing:.04em;opacity:.9}

/* Crop scenery independently from cover lettering, maps, and controls. */
#prologue .pro-backdrop{scale:1.18}
#prologue.pro-cover-stage .pro-cover-copy{top:7%;width:min(150cqw,152cqh,2000px)}
#prologue.pro-cover-stage .pro-cover-start{font-size:17px;min-width:168px;min-height:46px;padding:6px 10px 6px 18px;gap:10px}
#prologue.pro-cover-stage .pro-cover-start-arrow{width:26px;height:26px;margin-left:2px}
#prologue.pro-cover-stage .pro-cover-start-arrow svg{width:18px;height:18px}
#prologue.pro-map-stage .pro-map-copy{left:5.5cqw;width:38cqw;gap:4cqh}
#prologue.pro-map-stage .pro-data-head h2{font-size:clamp(32px,min(8cqh,4.8cqw),72px)}
#prologue.pro-map-stage .pro-map-metric-kicker{font-size:clamp(19px,3.6cqh,29px)}
#prologue.pro-map-stage .pro-map-metric-value strong{font-size:clamp(64px,min(16cqh,10.6cqw),140px)}
#prologue .pro-guide-heading{top:6cqh}
#prologue .pro-guide-heading h2{font-size:clamp(30px,7.5cqh,56px)}
#prologue .pro-guide-kicker{font-size:14px}
#prologue .pro-guide-intro{font-size:15px}
#prologue .pro-tile-caption strong{font-size:clamp(17px,3.8cqh,25px)}
#prologue .pro-tile-caption small{font-size:13px}
#prologue .pro-machine-return{font-size:17px;min-height:48px}
.outbound-shell:before,.outbound-finale-background{scale:1.18}
.outbound-end-cover img{object-position:center bottom;scale:1.08;transform-origin:center bottom}
.pk-landscape{scale:1.18}
.pk-chart h4{font-size:clamp(23px,5.1cqh,40px)}
.pk-chart h4 small{font-size:clamp(14px,2.6cqh,19px)}
.pk-column-label{font-size:clamp(17px,3.3cqh,24px)}
.drying-story-copy p{font-size:clamp(17px,3.8cqh,31px)}
.drying-story-copy .drying-period{font-size:clamp(14px,2.7cqh,22px)}
.drying-locations{font-size:clamp(16px,3cqh,26px)}
.drying-stat strong{font-size:clamp(43px,9.6cqh,84px)}
.outbound-quote-group{width:min(94%,1360px)}
.outbound-summary img{width:min(96%,1560px);max-height:86%}

/* Keep utilities legible and give fingers a full-size target. */
#prologue .pro-sound,#prologue .pro-top .pro-skip-text,header .top-actions #sound,
#outboundDialog .outbound-controls button{font-size:14px;min-height:44px;line-height:20px}
#gamePrompt{font-size:18px}
#gameFeedback{font-size:17px}
.game-foot .primary{font-size:17px;min-height:48px}
.drying-swipe-copy{font-size:15px}
.drying-caption{font-size:15px!important}

@media(max-height:600px),(orientation:portrait) and (max-width:760px){
 body:not(.overview) #world{width:max(4375px,1125dvh)}
 #world .story-note.has-title-art{top:calc(14.4% + 44px);width:min(242.25px,27.2%)}
 #world :is(.land-entry-hint,.transplant-entry-hint,.pollination-entry-hint,.drone-entry-hint,.harvest-entry-hint,.drying-entry-hint,.field-speech-hint){font-size:13px;padding:5px 11px}
 #prologue.pro-cover-stage .pro-cover-start{font-size:15px;min-width:148px;min-height:44px;padding:6px 9px 6px 16px;gap:8px}
 #prologue .pro-tile-caption small{font-size:12px;margin-top:4px}
 #prologue .pro-guide-kicker{font-size:12px}
 #prologue .pro-guide-intro{font-size:13px}
 #prologue .pro-machine-return{font-size:16px;min-height:44px}
}
@media(orientation:landscape) and (max-width:680px),(orientation:portrait) and (max-height:680px){
 #world .story-note.has-title-art{width:202.3px}
 header .header-start{gap:4px}
 #prologue .pro-guide-heading{top:5cqh}
 #prologue .pro-guide-heading h2{font-size:28px}
 #prologue .pro-guide-intro{margin-top:5px;font-size:12px}
 #prologue .pro-tile-caption strong{font-size:16px}
}

@media(orientation:portrait) and (max-width:760px){body:not(.overview) #world{width:max(4375px,1125vw)}}
@media(orientation:landscape) and (max-width:680px),(orientation:portrait) and (max-height:680px){
 #prologue .pro-tile-caption small{font-size:12px;text-wrap:balance}
 .drying-story-copy{gap:4px;padding-top:6px;padding-bottom:6px}
 .drying-story-copy p{font-size:16px}
 .drying-story-copy .drying-period{font-size:13px}
 .drying-locations{font-size:15px;line-height:1.4}
 .drying-stat strong{font-size:40px}
}
