/* Approved Map-first 90–100% landscape only. Nothing matches portrait or a
   desktop view. Existing controls and art remain in their original DOM. */
@media(orientation:landscape){
 body.phone-play.phone-faithful-active.phone-landscape-v1 #desktop-event-ribbon:not([hidden]),
 body.phone-play.phone-faithful-active.phone-landscape-v1 #desktop-shell{display:none!important}
 body.phone-landscape-v1 #phone-faithful{overflow:hidden}
 body.phone-landscape-v1 #phone-faithful .mini.dense{width:calc(100% / var(--landscape-scale));max-width:none;height:calc(var(--landscape-height) / var(--landscape-scale));margin:0;transform:scale(var(--landscape-scale));transform-origin:top left;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:24px 54px 30px minmax(0,1fr) 54px 28px;padding:0 calc(env(safe-area-inset-right,0px) / var(--landscape-scale)) 0 calc(env(safe-area-inset-left,0px) / var(--landscape-scale));border:0;border-radius:0;overflow:hidden}
 body.phone-landscape-v1 #phone-faithful .mini-header{grid-column:1/-1;grid-row:1;height:24px;min-height:0;padding:0 8px;gap:5px;overflow:hidden;position:relative;z-index:1}
 body.phone-landscape-v1 #phone-faithful .mini-header::before,body.phone-landscape-v1 #phone-faithful .mini-header::after{content:none!important;pointer-events:none!important}
 body.phone-landscape-v1 #phone-faithful .logo{height:24px;width:105px;max-width:40%}
 body.phone-landscape-v1 #phone-faithful .round{height:22px;width:auto;min-width:75px;display:flex;flex-direction:row;gap:5px;font-size:11px;border:0;border-radius:0;background:none;box-shadow:none;color:#f5e3c6;padding:0}
 body.phone-landscape-v1 #phone-faithful .round strong{font-size:13px;line-height:20px}
 body.phone-landscape-v1 #phone-faithful .menu{min-height:24px;height:24px;width:28px;padding:0;display:grid;place-items:center;background:none;border:0;box-shadow:none;font-size:18px}
 body.phone-landscape-v1 #phone-faithful .players{grid-column:1/-1;grid-row:2;padding:2px 5px;gap:4px;min-height:0;overflow-x:auto}
 body.phone-landscape-v1 #phone-faithful .player{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:12px 12px 12px;align-content:center;gap:0;padding:1px 3px;min-width:0;min-height:0}
 body.phone-landscape-v1 #phone-faithful .has-player-names .player{grid-template-rows:12px 11px 12px 12px}
 body.phone-landscape-v1 #phone-faithful .player-line{grid-row:1;grid-column:1;line-height:12px;font-size:11px;gap:3px}
 body.phone-landscape-v1 #phone-faithful .player-line img{width:12px;height:12px}
 body.phone-landscape-v1 #phone-faithful .mobile-player-name{grid-row:2;grid-column:1;font-size:11px;line-height:11px;align-self:center}
 body.phone-landscape-v1 #phone-faithful .player-stats{grid-row:2;grid-column:1;gap:2px}
 body.phone-landscape-v1 #phone-faithful .has-player-names .player-stats{grid-row:3}
 body.phone-landscape-v1 #phone-faithful .player-stats>span{display:flex;justify-content:center;align-items:center;gap:3px;min-width:0}
 body.phone-landscape-v1 #phone-faithful .player-stats b{font-size:11px;line-height:12px}
 body.phone-landscape-v1 #phone-faithful .player-stats .sw-symbol{width:11px;height:11px}
 body.phone-landscape-v1 #phone-faithful .player-production{grid-row:3;grid-column:1;display:block;margin:0;padding:0;border-top:1px solid #ad9b6540;min-width:0}
 body.phone-landscape-v1 #phone-faithful .has-player-names .player-production{grid-row:4}
 body.phone-landscape-v1 #phone-faithful .player-production small{display:none}
 body.phone-landscape-v1 #phone-faithful .production-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;font-size:11px;line-height:11px;gap:1px}
 body.phone-landscape-v1 #phone-faithful .production-value{display:flex;align-items:center;justify-content:center;gap:2px;min-width:0}
 body.phone-landscape-v1 #phone-faithful .production-resource{display:flex;gap:0}
 body.phone-landscape-v1 #phone-faithful .production-resource .sw-symbol{width:9px;height:9px}
 body.phone-landscape-v1 #phone-faithful .production-choice-symbol .sw-symbol{width:7px;height:7px}
 body.phone-landscape-v1 #phone-faithful .turn-strip{grid-row:3;grid-column:1;display:flex;align-items:center;flex-wrap:nowrap;justify-content:flex-start;gap:5px;padding:1px 6px;min-height:0;height:30px;font-size:11px;border:0;overflow:hidden}
 body.phone-landscape-v1 #phone-faithful .turn-strip>.company-name{flex:0 1 auto;min-width:0;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
 body.phone-landscape-v1 #phone-faithful .action-counter{flex:none;font-size:11px;gap:2px}
 body.phone-landscape-v1 #phone-faithful .turn-strip .online-compact-state{grid-column:auto;min-width:0;max-width:44%;flex:0 1 auto;margin-left:auto;padding:1px 3px;min-height:26px;font-size:10px!important;gap:2px;overflow:hidden;background:none;border:0;white-space:nowrap}
 body.phone-landscape-v1 #phone-faithful .turn-strip .online-compact-state .compact-deadline{display:inline-flex}
 body.phone-landscape-v1 #phone-faithful .mobile-event-row{grid-row:3;grid-column:2;min-width:0;display:flex;align-items:center;height:30px;padding:1px 5px;gap:3px;background:#edd6b4}
 body.phone-landscape-v1 #phone-faithful .mobile-event-row .event{position:static;display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:26px;height:26px;padding:1px 4px;color:#352216;text-shadow:none;font-size:11px;line-height:14px;border:0;background:transparent;box-shadow:none;border-radius:0;overflow:hidden}
 body.phone-landscape-v1 #phone-faithful .event img{width:18px;height:18px;flex:none}
 body.phone-landscape-v1 #phone-faithful .event-cost{flex:none;display:inline-flex;align-items:center;gap:2px;white-space:nowrap}
 body.phone-landscape-v1 #phone-faithful .event .sw-symbol{width:11px;height:11px}
 body.phone-landscape-v1 #phone-faithful .mobile-next-event{flex:none;min-height:26px;height:26px;max-width:100px;padding:1px 4px;font-size:11px;line-height:14px;background:none;border:0}
 body.phone-landscape-v1 #phone-faithful .middle{display:contents}
 body.phone-landscape-v1 #phone-faithful .middle>.inspector{display:none}
 body.phone-landscape-v1 #phone-faithful .dense .board{grid-column:1/-1;grid-row:4;grid-template-columns:repeat(var(--landscape-columns),minmax(0,1fr));grid-template-rows:repeat(var(--landscape-rows,2),minmax(var(--landscape-row-min,0px),1fr))!important;min-width:0;min-height:0;height:100%;padding:4px 8px;gap:4px 8px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a4804e #dbc09d;align-content:start}
 body.phone-landscape-v1 #phone-faithful .world{grid-template-rows:var(--landscape-art-height) 18px 16px;align-content:center;gap:1px;min-height:0;height:100%;padding:0;align-items:center;justify-items:center;min-width:0}
 body.phone-landscape-v1 #phone-faithful .terrain-wrap{display:flex;position:relative;align-items:center;justify-content:center;grid-template-rows:none;min-height:0;width:100%;height:100%;max-height:var(--landscape-art-height)}
 body.phone-landscape-v1 #phone-faithful .world .live-puck{width:auto;height:min(var(--landscape-art-height),100%);aspect-ratio:var(--puck-ratio);max-width:100%;max-height:none;flex:none;grid-row:auto}
 body.phone-landscape-v1 #phone-faithful .world .unknown-art{width:auto;max-width:100%;height:min(var(--landscape-art-height),100%);max-height:none;padding:0;object-fit:contain}
 body.phone-landscape-v1 #phone-faithful .occupants{position:absolute;right:3px;bottom:0;display:flex;flex-wrap:nowrap;gap:1px;max-width:100%;grid-row:auto;overflow:hidden}
 body.phone-landscape-v1 #phone-faithful .occupants .unit-token{height:16px;min-width:13px;padding:0}
 body.phone-landscape-v1 #phone-faithful .occupants .unit-token img{width:13px;height:13px;object-fit:contain}
 body.phone-landscape-v1 #phone-faithful .world-name{font-size:11px;line-height:16px;height:18px;min-height:18px;max-width:120px;width:100%;margin:0;padding:0 7px}
 body.phone-landscape-v1 #phone-faithful .mobile-world-meta{height:16px;min-height:0;max-width:100%;overflow:hidden}
 body.phone-landscape-v1 #phone-faithful .mobile-world-meta .infrastructure-marks{height:16px;gap:2px;padding:1px 3px;max-width:100%}
 body.phone-landscape-v1 #phone-faithful .infrastructure-symbol{width:11px;height:11px}
 body.phone-landscape-v1 #phone-faithful .middle>.actionbar{grid-column:1/-1;grid-row:5;height:54px;min-height:0;padding:3px 6px;gap:4px;align-items:stretch;grid-template-rows:1fr}
 body.phone-landscape-v1 #phone-faithful .actionbar:before{background-size:100% 100%;inset:0;opacity:.5}
 body.phone-landscape-v1 #phone-faithful .action{display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:1fr;width:100%;max-width:none;height:46px;min-height:44px;min-width:0;padding:3px 5px;gap:3px;background:#f3dfbb;border:1px solid #ac834d;border-radius:6px;justify-self:stretch}
 body.phone-landscape-v1 #phone-faithful span.action-circle{width:28px;height:32px;border:0;background:none;box-shadow:none;border-radius:0;overflow:visible;grid-column:1;grid-row:1}
 body.phone-landscape-v1 #phone-faithful .mobile-action-illustration{width:100%;height:100%}
 body.phone-landscape-v1 #phone-faithful .action-caption{grid-column:2;grid-row:1;display:grid;grid-template-rows:auto auto;gap:2px;height:auto;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:none;align-content:center}
 body.phone-landscape-v1 #phone-faithful .action-label{font-size:12px;line-height:13px;height:auto;min-height:0;padding:0;overflow-wrap:anywhere}
 body.phone-landscape-v1 #phone-faithful .cost{height:auto;min-height:0;font-size:11px;line-height:12px;gap:2px;white-space:nowrap;flex-wrap:nowrap}
 body.phone-landscape-v1 #phone-faithful .cost .sw-symbol{width:11px;height:11px}
 body.phone-landscape-v1 #phone-faithful .footer{grid-column:1/-1;grid-row:6;height:28px;min-height:0;padding:0 6px;align-items:center;gap:2px}
 body.phone-landscape-v1 #phone-faithful .footer button{min-height:26px;height:28px;font-size:11px;line-height:13px;padding:2px 0}
 body.phone-landscape-v1 #phone-faithful .footer .sw-symbol{width:13px;height:13px}
 body.phone-landscape-v1 #phone-faithful .overlay{grid-column:1/-1;grid-row:1/-1;position:absolute;inset:0;padding:8px;z-index:30}
 body.phone-landscape-v1 #phone-faithful .sheet{max-height:calc(var(--landscape-height) / var(--landscape-scale) - 16px);font-size:14px}
 /* Space-driven alternatives; only selected when the existing map cannot fit. */
 body.phone-landscape-v1 #phone-faithful .mini[data-landscape-map-layout=horizontal] .world{grid-template-columns:var(--landscape-art-width) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));column-gap:6px;row-gap:1px;align-content:stretch}
 body.phone-landscape-v1 #phone-faithful .mini[data-landscape-map-layout=horizontal] .terrain-wrap{grid-column:1;grid-row:1/span 2;max-height:none}
 body.phone-landscape-v1 #phone-faithful .mini[data-landscape-map-layout=horizontal] .world-name{grid-column:2;grid-row:1;align-self:end}
 body.phone-landscape-v1 #phone-faithful .mini[data-landscape-map-layout=horizontal] .mobile-world-meta{grid-column:2;grid-row:2;align-self:start}
 body.phone-landscape-v1 #phone-faithful .mini[data-landscape-chrome=compact]{grid-template-rows:20px 54px 28px minmax(0,1fr) 52px 26px}
 body.phone-landscape-v1 #phone-faithful .mini[data-landscape-chrome=compact] .mini-header{height:20px}
 body.phone-landscape-v1 #phone-faithful .mini[data-landscape-chrome=compact] .round{height:20px}
 body.phone-landscape-v1 #phone-faithful .mini[data-landscape-chrome=compact] .logo{height:20px}
 body.phone-landscape-v1 #phone-faithful .mini[data-landscape-chrome=compact] .menu{height:20px;min-height:20px}
 body.phone-landscape-v1 #phone-faithful .mini[data-landscape-chrome=compact] .turn-strip,body.phone-landscape-v1 #phone-faithful .mini[data-landscape-chrome=compact] .mobile-event-row{height:28px}
 body.phone-landscape-v1 #phone-faithful .mini[data-landscape-chrome=compact] .actionbar{height:52px}
 body.phone-landscape-v1 #phone-faithful .mini[data-landscape-chrome=compact] .footer,body.phone-landscape-v1 #phone-faithful .mini[data-landscape-chrome=compact] .footer button{height:26px}
}
