/* One viewport, one atlas. Desktop controls keep their original positions. */
.mobile-app,.app-caption{display:none}
.search-advanced{margin:0}.search-advanced>summary{display:none}
.story-settings{margin-top:12px;border-top:1px solid #38584f;padding-top:10px}
.story-settings>summary{font:11px Space,sans-serif;color:#b9d8c9;cursor:pointer;min-height:32px;align-content:center}
.story-settings[open]>summary{margin-bottom:12px}
@media(max-width:900px){
 body.mobile-app-active{height:100dvh;overflow:hidden;overscroll-behavior:none}
 body.mobile-app-active>.topbar,body.mobile-app-active>.preview-notice,body.mobile-app-active>main,body.mobile-app-active>.footer{display:none}
 .mobile-app:not([hidden]){position:fixed;inset:var(--app-offset,0px) 0 auto;z-index:2000;height:var(--app-viewport,100dvh);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background:#081720;color:#edf5f2;isolation:isolate}
 .mobile-app [hidden]{display:none!important}
 .app-header{padding:calc(9px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 10px max(12px,env(safe-area-inset-left,0px));background:linear-gradient(115deg,#102f35,#0c1d29);border-bottom:1px solid #375650;box-shadow:0 8px 24px #0003;z-index:4}
 .app-heading{display:flex;gap:10px;align-items:center;min-width:0}
 .app-heading-copy{flex:1;min-width:0}
 .app-brand{display:block;font:600 9px/1.4 Space,sans-serif;letter-spacing:.16em;color:#8cc9b8;margin-bottom:3px}
 .app-heading h1{font:500 clamp(20px,5.3vw,28px)/1.15 Space,sans-serif;letter-spacing:-.035em;margin:0;color:#f4f8f2;overflow-wrap:anywhere}
 .app-heading p{font-size:11px;line-height:1.45;color:#a4bdbb;margin:4px 0 0}
 .app-home,.app-menu.icon-button{height:44px;width:44px;flex:0 0 44px;border:1px solid #45665e;border-radius:12px;background:#96d9b80a;color:#b8e8d2;display:grid;place-items:center}
 .app-home svg{height:24px;width:24px}
 .app-war-actions{display:flex;align-items:center;gap:12px;margin-top:11px}
 .app-war-actions>.primary-button{flex:1;justify-content:center;min-height:46px;font-size:15px;background:linear-gradient(110deg,#b2e6c8,#7dd3c7);color:#102c2a;border-radius:11px}
 .app-war-actions>.primary-button svg{fill:currentColor;height:20px;width:20px}
 .app-war-actions>button:last-child{font-size:13px;min-height:44px;padding:0 3px;white-space:nowrap;color:#bce0d0}
 .app-main,.app-map-slot{min-height:0;min-width:0;position:relative;overflow:hidden}
 .app-map-slot{width:100%;height:100%}
 .mobile-app #map-panel{height:100%;width:100%;min-height:0;max-height:none;border:0;border-radius:0;box-shadow:none;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 .mobile-app #map{grid-area:1/1;width:100%;height:100%;min-height:0;min-width:0}
 .mobile-app #map-panel:after{display:none}
 .mobile-app .map-topbar{top:8px;left:auto;right:9px;padding:0!important;width:auto;max-width:none;background:none;z-index:1020}
 .mobile-app .map-label,.mobile-app #fullscreen-map,.mobile-app .map-overview-button,.mobile-app .map-legend,.mobile-app .current-map-legend,.mobile-app .map-disclaimer,.mobile-app #map-story-play,.mobile-app .map-floating-list{display:none!important}
 .mobile-app .map-top-actions .icon-button{height:44px;width:44px;border-radius:12px;background:#0a232bde;color:#c2ddd4}
 .mobile-app .map-top-actions .icon-button svg{height:23px;width:23px}
 .mobile-app .map-event{top:64px;left:12px;right:60px;max-width:380px;max-height:calc(100% - 120px);overflow:auto;touch-action:pan-y}
 .mobile-app .map-event h4{font-size:20px}.mobile-app .map-event p{font-size:15px}
 .mobile-app .leaflet-bottom.leaflet-right{top:auto!important;bottom:0!important}
 .mobile-app .leaflet-control-zoom{margin:0 10px 28px 0!important}
 .mobile-app .leaflet-control-zoom a{width:42px!important;height:42px!important;line-height:42px!important;font-size:26px!important}
 .mobile-app .leaflet-control-attribution{font-size:8px!important;line-height:1.4;max-width:240px}
 .app-map-context{position:absolute;left:12px;right:67px;top:12px;margin:0;max-width:340px;background:#0b252eea;border:1px solid #37564e;border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.55;color:#c5dbd3;pointer-events:none;z-index:1025;box-shadow:0 5px 18px #0002}
 .app-map-touch{position:absolute;bottom:28px;left:12px;min-height:44px;padding:0 14px;background:#0c2832ed;border:1px solid #4f8070;color:#c8e6d5;font-size:12px;border-radius:24px;z-index:1030;box-shadow:0 6px 18px #0004}
 .app-map-touch[aria-pressed=true]{background:#b4dfc3;color:#15372c}
 .app-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:5px max(5px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(5px,env(safe-area-inset-left,0px));background:#0b1c27;border-top:1px solid #36564f;z-index:4;gap:3px}
 .app-nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:53px;padding:5px 0;border:1px solid transparent;border-radius:10px;font:11px/1.2 Space,sans-serif;color:#9bb7b9;position:relative}
 .app-nav svg{width:22px;height:22px}
 .app-nav button.active{background:#8ad4b914;color:#c0f3d4;border-color:#76ad8e38}
 .app-nav button.active:before{content:'';position:absolute;top:-6px;height:2px;left:25%;right:25%;background:#97ddbc;box-shadow:0 0 10px #93e4b855}
 .app-panel-scrim{position:absolute;inset:0;background:#020d16a0;z-index:2200;backdrop-filter:blur(4px)}
 .app-panel{position:absolute;z-index:2201;inset:10px 0 0;display:grid;grid-template-rows:auto minmax(0,1fr);border:1px solid #456c5f;border-bottom:0;border-radius:20px 20px 0 0;background:linear-gradient(155deg,#112b32,#0b1d29 65%);box-shadow:0 -12px 70px #0007;overflow:hidden;animation:app-panel-in .22s ease-out}
 .app-panel>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 18px 15px;border-bottom:1px solid #38554f;background:#15313870}
 .app-panel>header span{display:block;font:9px/1.4 Space,sans-serif;letter-spacing:.10em;color:#a1c4b4;margin-bottom:5px}
 .app-panel>header h2{font:500 25px/1.15 Space,sans-serif;letter-spacing:-.035em;margin:0}
 .app-panel>header .icon-button{height:44px;width:44px;flex:0 0 44px;border-color:#42695b}
 .app-panel-scroll{min-height:0;overflow:auto;overscroll-behavior-y:contain;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch;scrollbar-color:#4a7a65 transparent;scroll-padding-block:15px;padding:0 0 20px}
 .app-panel-intro{font-size:16px;line-height:1.7;color:#b6cec7;padding:18px 20px 0;margin-bottom:15px}
 .mobile-app #sidebar,.mobile-app.story-active #sidebar,body.story-active .mobile-app #sidebar{display:block!important;position:static;transform:none;transition:none;height:auto;max-height:none;min-height:0;width:100%;border:0;border-radius:0;padding:18px 18px 0;box-shadow:none;overflow:visible;background:none}
 .mobile-app .sidebar-head{display:none}
 .mobile-app .search-advanced{margin:14px 0 0;border:1px solid #3c6157;border-radius:10px;padding:0 12px;background:#112e322e}
 .mobile-app .search-advanced>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;font-size:14px;color:#bad8c6;cursor:pointer;list-style:none}
 .mobile-app .search-advanced>summary::-webkit-details-marker{display:none}.mobile-app .search-advanced>summary svg{width:20px;height:20px}.mobile-app .search-advanced[open]>summary{border-bottom:1px solid #395e50;margin-bottom:14px}.mobile-app .search-advanced-body{padding-bottom:8px}
 .mobile-app .sidebar .search-field{min-height:50px;border-radius:11px;padding:0 12px}
 .mobile-app .sidebar .search-field input{font-size:16px;min-height:48px}
 .mobile-app .sidebar .search-history-hint{font-size:12px;line-height:1.65;margin:10px 0 16px}
 .mobile-app .sidebar .country-field>label{font-size:11px;letter-spacing:.05em;margin-bottom:9px}
 .mobile-app .country-options{top:85px;max-height:240px}
 .mobile-app .country-option{font-size:16px;min-height:46px;padding:9px}
 .mobile-app .sidebar .filter-row{gap:10px;align-items:stretch;flex-wrap:wrap}
 .mobile-app .sidebar .filter-row label{flex:1;min-width:150px;font-size:12px}
 .mobile-app .sidebar .filter-row select{font-size:16px;min-height:46px;width:100%}
 .mobile-app .sidebar .period-button{min-height:46px;height:auto;padding:10px;font-size:13px;max-width:none;flex:1}
 .mobile-app .sidebar .filter-chips{margin:14px 0;gap:7px;flex-wrap:wrap}
 .mobile-app .sidebar .chip{min-height:42px;font-size:12px;padding:8px 11px}
 .mobile-app .current-state-filters{gap:7px;flex-wrap:wrap}.mobile-app .current-state-filters button{min-height:44px;font-size:12px}
 .mobile-app .sidebar .results{overflow:visible;max-height:none;min-height:100px;flex:none}
 .mobile-app .results-heading{position:static;gap:10px;padding-block:17px}
 .mobile-app .sidebar .results-heading strong{font-size:16px}.mobile-app .sidebar .results-heading span{font-size:12px;max-width:210px;white-space:normal}
 .mobile-app .sidebar .results-heading select{font-size:13px;min-height:44px;max-width:120px}
 .mobile-app .sidebar .war-card{gap:13px;grid-template-columns:64px minmax(0,1fr);padding-block:18px}
 .mobile-app .sidebar .war-card h3{font-size:19px;line-height:1.25}
 .mobile-app .sidebar .war-art{width:64px;height:82px}
 .mobile-app .sidebar .card-meta,.mobile-app .sidebar .card-subtitle,.mobile-app .sidebar .card-year{font-size:12px;line-height:1.55}.mobile-app .sidebar .mini-tag{font-size:9px}
 .mobile-app .current-card h3{font-size:22px}.mobile-app .current-card p{font-size:16px;line-height:1.7}.mobile-app .current-card-top,.mobile-app .current-card-bottom{font-size:11px}.mobile-app .current-card .current-status{font-size:11px}
 .mobile-app .pagination .icon-button{height:44px;width:44px}.mobile-app .pagination{font-size:13px;margin-top:10px}
 .mobile-app .sidebar .reset-button{min-height:46px;font-size:13px;margin-bottom:6px}.mobile-app .country-context p{font-size:14px}.mobile-app .country-context .text-button{font-size:13px;min-height:44px}
 .mobile-app .campaign-filter select{font-size:16px;min-height:44px}
 .mobile-app #history-timeline{position:static;display:block;border:0;border-radius:0;padding:12px 18px;background:none;min-height:0;height:auto}
 .mobile-app .timeline-top{display:flex;flex-wrap:wrap;gap:12px}.mobile-app .timeline-top .eyebrow{display:none}.mobile-app #timeline-caption{display:block!important;max-width:none;font-size:12px;line-height:1.65}
 .mobile-app .timeline-actions{gap:15px}.mobile-app .timeline-actions .text-button{font-size:13px;min-height:44px}.mobile-app .timeline-actions svg{width:18px;height:18px}
 .mobile-app .timeline-main{display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;margin-top:15px}
 .mobile-app .timeline-main .play-button{height:44px;width:44px}.mobile-app .timeline .year-display{width:100%!important;display:block;min-width:0}
 .mobile-app .timeline .year-display input{width:100%!important;height:49px;font-size:26px!important;border:1px solid #43665a;border-radius:9px;padding:5px 10px;background:#091e26}
 .mobile-app .year-display>span{font-size:12px;display:block;margin-top:6px}.mobile-app .timeline-track{grid-column:1/-1;height:82px;margin-top:5px;min-width:0}
 .mobile-app #year-chart{height:45px}.mobile-app #year-range{height:44px;top:20px;cursor:pointer;touch-action:pan-y}.mobile-app .timeline-ticks{font-size:11px;padding-top:15px}.mobile-app .timeline-ticks span{font-size:10px!important}.mobile-app .timeline-ticks span:nth-child(even){display:none}
 .mobile-app .timeline-navigation{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:10px;margin-top:18px;padding-top:17px}
 .mobile-app .timeline-navigation label{display:flex;flex-direction:column;align-items:stretch;gap:7px;font-size:13px}
 .mobile-app .timeline-navigation select{max-width:100%;font-size:16px;min-height:46px;padding:8px}
 .app-time-results{padding:20px 18px;display:flex;flex-direction:column;gap:14px;border-top:1px solid #35584e;margin-top:15px}
 .app-time-results>strong{font:500 20px Space,sans-serif}.app-time-results .primary-button{min-height:48px;justify-content:center;font-size:15px}.app-time-results .text-button{min-height:44px;font-size:14px;justify-content:center}
 .mobile-app #detail-panel{height:auto;min-height:0;max-height:none;border:0;border-radius:0;overflow:visible;background:transparent}
 .mobile-app .detail-panel .story-launch,.mobile-app .detail-panel .current-play{display:none}
 .mobile-app .detail-header,.mobile-app .tab-content{padding:20px}.mobile-app .detail-header h2{font-size:32px;line-height:1.15}
 .mobile-app .detail-summary,.mobile-app .tab-content>p,.mobile-app .detail-block p,.mobile-app .fact-list,.mobile-app .event p,.mobile-app .event-explanation,.mobile-app .relation-row,.mobile-app .event-learning p{font-size:16px;line-height:1.85}
 .mobile-app .detail-metrics p,.mobile-app .coverage-note,.mobile-app .current-context p,.mobile-app .current-source small{font-size:14px;line-height:1.75}
 .mobile-app .detail-tabs{position:sticky;top:0;z-index:3;display:flex;overflow:auto;padding:0 10px;background:#0d252e;border-bottom:1px solid #365c51}
 .mobile-app .detail-tabs button{font-size:12px;min-height:49px;flex:1 0 auto;padding:10px 9px}
 .mobile-app .tab-content h3{font-size:24px}.mobile-app .event h4{font-size:22px;line-height:1.25}.mobile-app .event-date{font-size:12px;line-height:1.6}.mobile-app .tab-content .events{columns:1}
 .mobile-app .event-explanation summary,.mobile-app .actor-country,.mobile-app .battle-neighbors button{font-size:14px;min-height:44px}.mobile-app .actor-row strong{font-size:17px}.mobile-app .actor-row small,.mobile-app .relation-row small{font-size:13px;line-height:1.75}
 .mobile-app .source-card{font-size:16px;line-height:1.65;padding:16px 12px}.mobile-app .source-card small{font-size:13px}
 .mobile-app .learning-invitation>p{font-size:16px}.mobile-app .learning-chapters button{font-size:14px;min-height:44px}
 .mobile-app .war-story-route button strong{font-size:15px}.mobile-app .war-story-route button small{font-size:10px}.mobile-app .war-story-route button span{font-size:12px}
 .mobile-app .media-card p,.mobile-app .gallery-intro p{font-size:15px}.mobile-app .media-card strong{font-size:17px}.mobile-app .media-card small{font-size:11px}
 .app-options-content{padding:0 20px 24px}.app-option-group{padding:21px 0;border-bottom:1px solid #36564d}.app-option-group h3{font:500 23px Space,sans-serif;margin:0 0 12px}.app-option-group p{font-size:15px;line-height:1.8;color:#adc7bf;margin:12px 0}
 .mobile-app .story-jump-label{font-size:12px;letter-spacing:.04em;margin:17px 0 9px}.mobile-app .story-jump{font-size:16px;min-height:48px;padding:10px}
 .mobile-app .story-segments{margin:7px 0;min-height:36px}.mobile-app .story-segments button{height:36px;flex-basis:25px}.mobile-app .story-segments button:before,.mobile-app .story-segments button:after{top:16px}
 .mobile-app .story-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}
 .mobile-app .story-options>label{grid-column:1/-1;justify-content:space-between;font-size:15px}.mobile-app .story-options select{font-size:16px;max-width:190px;min-height:46px;padding:8px}
 .mobile-app .story-options>button,.app-option-button{font-size:14px;min-height:46px;border:1px solid #527660;border-radius:9px;padding:10px;background:#8fcaac0c;text-decoration:none;color:#b8dec6;line-height:1.4}
 .mobile-app #story-voice-settings{grid-column:1/-1;grid-row:3}.mobile-app .story-device-note{font-size:13px;line-height:1.7;margin:15px 0;color:#9fb9ae}
 .mobile-app #app-story-exit{font-size:14px;min-height:46px;color:#d7c5a4;margin-top:13px}
 .app-option-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.app-option-grid button{display:flex;align-items:center;gap:10px;border:1px solid #3b6155;padding:13px 10px;border-radius:10px;min-height:54px;font-size:14px;background:#163a3629;text-align:left}.app-option-grid svg{width:21px;height:21px;flex-shrink:0}
 .app-colors{display:flex;flex-wrap:wrap;gap:15px;font-size:13px;padding:14px 0}.app-colors>span{display:flex;align-items:center;gap:8px}.app-colors .legend-line{width:22px}.app-version{font:11px Space,sans-serif;color:#91ad9d;margin:23px 0 0}
 /* The map occupies its own grid cell. The caption never covers a battle location. */
 .mobile-app.is-narrating #map-panel{grid-template-rows:minmax(0,1fr) var(--app-text-ratio,50%)}
 .mobile-app.is-narrating .app-map-touch{display:none}
 .mobile-app.is-narrating .map-topbar{display:none}
 .mobile-app #story-stage{grid-area:2/1;position:relative;inset:auto;z-index:1200;width:100%;height:100%;max-width:none;max-height:none;border:0;border-top:1px solid #4b7161;border-radius:0;background:linear-gradient(140deg,#112f31,#0d222e);backdrop-filter:none;box-shadow:0 -9px 30px #0003;display:grid;grid-template-rows:minmax(0,1fr) auto;animation:none}
 .mobile-app .story-stage-top,.mobile-app #story-scene,.mobile-app #story-settings{display:none}
 .mobile-app .app-caption{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;min-height:0;padding:13px 18px 0;gap:8px}
 .app-scene-meta{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font:11px/1.4 Space,sans-serif;color:#9dc5b0}.app-scene-meta>span:last-child{flex-shrink:0;font-variant-numeric:tabular-nums;color:#789f8f}
 .app-caption h2{font:500 clamp(20px,5.3vw,26px)/1.18 Space,sans-serif;margin:0;letter-spacing:-.025em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#eef6e9}
 .app-caption>p{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;font:400 clamp(18px,4.8vw,21px)/1.5 'Segoe UI',Arial,sans-serif;letter-spacing:0;color:#d5e5da;margin:0;scrollbar-width:thin;scrollbar-color:#558675 transparent}
 .app-caption-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px}.app-caption-footer button{font-size:12px;color:#add8bc;min-height:36px;padding:5px 0;text-decoration:underline;text-underline-offset:4px}.app-caption-footer>span{font-size:11px;color:#c2d5b9}
 .mobile-app .story-stage-bottom{border:0;background:#0a2029;padding:9px 12px 11px}
 .mobile-app .story-main-controls{gap:8px}.mobile-app .story-main-controls .icon-button{height:44px;width:44px;flex:0 0 44px;border-color:#43665a;border-radius:10px}.mobile-app .story-main-controls .primary-button{height:44px;min-width:80px;font-size:15px;border-radius:10px}.mobile-app .story-main-controls>span{font-size:12px;min-width:42px;color:#a1bfaa}
 .mobile-app #story-visual{grid-area:1/1;position:relative;inset:auto;z-index:1040;align-self:stretch;min-height:0;max-height:none;border:0;border-radius:0;width:100%;height:100%;box-shadow:none;animation:app-photo-in .35s ease-out;overflow:hidden}
 .mobile-app #story-visual figure{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0}
 .mobile-app .story-visual-expand,.mobile-app .story-image-visible .story-visual-expand{width:100%;height:100%;min-height:0;padding:0;background:#030d14}
 .mobile-app .story-visual img{width:100%;height:100%;object-fit:contain}
 .mobile-app .story-visual figcaption{padding:8px 12px;min-height:0;background:#0d252d;border-top:1px solid #3a5b4e;max-height:80px;overflow:auto;touch-action:pan-y}
 .mobile-app .story-visual figcaption small{display:none}.mobile-app .story-visual figcaption strong{font-size:14px;line-height:1.3;margin:0 0 3px}.mobile-app .story-visual figcaption p{display:none}.mobile-app .story-visual figcaption span{font-size:10px;line-height:1.4;display:block}
 .mobile-app .story-visual-toggle,.mobile-app .story-image-visible .story-visual-toggle{top:8px;left:10px;min-height:44px;font-size:12px;padding:9px 13px;max-width:calc(100% - 24px);background:#0c2530e8;z-index:1080}
 .mobile-app .story-image-visible .story-visual-expand{padding-top:0}
 .mobile-app .scene-point-label{font-size:10px;max-width:180px}.mobile-app .scene-arrow-label{font-size:10px;stroke-width:4px}.mobile-app .actor-label{font-size:10px}
 .app-scene-reading{padding:22px}.app-scene-reading>small{display:block;font:11px Space;color:#a7c6b4;letter-spacing:.08em;margin-bottom:10px}.app-scene-reading .scene-date{font-size:13px;color:#9ec4b2;display:block;margin-bottom:15px}.app-scene-reading h3{font:500 30px/1.2 Space,sans-serif;margin:0 0 20px}.app-scene-reading .scene-narration,.app-scene-reading .scene-note p{font-size:18px;line-height:1.85;color:#d0e1d6}.app-scene-reading .scene-note>strong{font-size:11px}.app-scene-reading .scene-sources a{font-size:14px;min-height:44px}.app-reading-return{margin:0 22px;min-height:48px;font-size:15px}
 body.mobile-app-active>.toast{z-index:6000;bottom:calc(80px + env(safe-area-inset-bottom,0px));font-size:14px;padding:12px 16px;max-width:calc(100vw - 30px)}
 body.mobile-app-active .dialog{font-size:16px;max-height:calc(100dvh - 20px);overscroll-behavior:contain;touch-action:pan-y pinch-zoom}
 body.mobile-app-active .dialog input,body.mobile-app-active .dialog select{font-size:16px;min-height:44px}
 body.mobile-app-active .dialog .icon-button{min-width:44px;min-height:44px}
 body.mobile-app-active .voice-setup-copy,body.mobile-app-active .voice-settings-note,body.mobile-app-active .voice-disclosure{font-size:15px;line-height:1.75}
}
@media(max-width:900px) and (max-height:700px){
 .app-header{padding-top:calc(6px + env(safe-area-inset-top,0px));padding-bottom:7px}.app-heading{gap:8px}.app-heading h1{font-size:20px}.app-brand{font-size:8px;margin-bottom:2px}.app-heading p{font-size:10px;margin-top:3px}.app-home{display:none}.app-war-actions{margin-top:7px}.app-war-actions>.primary-button{min-height:44px;font-size:14px}
 .app-nav{padding-top:3px;padding-bottom:calc(3px + env(safe-area-inset-bottom,0px))}.app-nav button{min-height:48px;font-size:10px;gap:3px}.app-nav svg{width:20px;height:20px}.mobile-app .app-caption{padding:10px 14px 0;gap:6px}.app-caption h2{font-size:20px}.mobile-app .story-stage-bottom{padding:7px 10px}.app-caption-footer{min-height:33px}.app-caption-footer button{min-height:33px}
}
@media(max-width:900px) and (orientation:landscape) and (max-height:540px){
 .app-header{padding:5px max(12px,env(safe-area-inset-right,0px)) 5px max(12px,env(safe-area-inset-left,0px));display:flex;gap:18px;align-items:center}.app-heading{flex:1;min-width:0}.app-brand{font-size:8px}.app-heading h1{font-size:20px;white-space:normal;overflow-wrap:anywhere}.app-heading p{font-size:10px}.app-menu.icon-button{height:44px;width:44px}.app-war-actions{flex:0 0 250px;margin:0}.app-war-actions>button:last-child{display:none}.app-war-actions>.primary-button{min-height:44px;font-size:14px}.app-nav{padding-top:2px;padding-bottom:calc(2px + env(safe-area-inset-bottom,0px))}.app-nav button{flex-direction:row;gap:7px;min-height:44px;font-size:11px}.app-nav svg{height:19px;width:19px}
 .mobile-app.is-narrating #map-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 .mobile-app #story-stage{grid-area:1/2;border-top:0;border-left:1px solid #4a6c5b}.mobile-app .app-caption{padding:10px 15px 0}.app-caption h2{font-size:21px}.app-caption>p{font-size:18px}.mobile-app .story-visual-toggle,.mobile-app .story-image-visible .story-visual-toggle{font-size:11px}
 .app-panel{left:12%;right:12%;inset-block-start:5px}.app-panel>header{padding:10px 18px}.app-panel>header h2{font-size:22px}.app-panel>header span{display:none}.mobile-app .app-option-grid{grid-template-columns:repeat(3,1fr)}
}
@keyframes app-panel-in{from{transform:translateY(18px);opacity:.6}to{transform:translateY(0);opacity:1}}
@keyframes app-photo-in{from{opacity:.2}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.app-panel,.mobile-app #story-visual{animation:none!important}.mobile-app *{scroll-behavior:auto!important}}
@media print{.mobile-app{display:none!important}body.mobile-app-active>main{display:block!important}}
