html[data-impact-player=true],html[data-impact-player=true] body{margin:0;width:100%;height:100%;overflow:hidden;background:#06141f}
html[data-impact-player=true] body>header,html[data-impact-player=true] body>.skip,html[data-impact-player=true] body>footer,html[data-impact-player=true] .impact-intro,html[data-impact-player=true] .impact-panel,html[data-impact-player=true] .impact-budget,html[data-impact-player=true] .impact-references,html[data-impact-player=true] .impact-display-controls,html[data-impact-player=true] #ai-navigation,html[data-impact-player=true] #ai-return-player{display:none!important}
html[data-impact-player=true] main{margin:0;padding:0;width:100%;height:100%;max-width:none}
html[data-impact-player=true] #impact-workspace{display:flex;flex-direction:column;width:100%;height:100dvh;max-width:none;margin:0;border:0;overflow:hidden}
html[data-impact-player=true] .globe-section{flex:1;min-height:0!important;height:auto!important;width:100%;margin:0;max-height:none}
html[data-impact-player=true] .timeline-panel{flex:0 0 47px;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:5px 10px;margin:0;min-height:47px;height:47px;overflow:hidden}
html[data-impact-player=true] .timeline-panel>*{display:none!important}
html[data-impact-player=true] .timeline-panel .playback-actions{display:flex!important;flex:0 0 auto;gap:6px;margin:0;padding:0}
html[data-impact-player=true] .playback-actions>*{display:none!important}
html[data-impact-player=true] .playback-actions #play,html[data-impact-player=true] .playback-actions #restart{display:block!important;min-height:36px;height:36px;padding:5px 10px;font-size:11px;min-width:0}
html[data-impact-player=true] .timeline-panel #timeline{display:block!important;flex:1;min-width:40px;margin:0}
html[data-impact-player=true] .globe-heading{top:10px;left:12px;max-width:65%}
html[data-impact-player=true] .globe-heading h2{font-size:clamp(20px,3vw,34px)}
html[data-impact-player=true] .globe-caption{display:none}
html[data-impact-player=true] .globe-tools{top:12px;right:12px}

html[data-impact-player=true] .playback-actions .main-event-script-link{display:block!important;align-self:center;color:#b8e4ef;font-size:11px;white-space:nowrap}
html[data-impact-player=true] .timeline-panel #main-event-time{display:block!important;flex:0 0 auto;font:10px/1.2 system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#c9ddd9;white-space:nowrap}
html[data-main-event-presentation=true][data-main-event-ice-context=false] .delivery-hud{display:none}
html[data-main-event-presentation=true] .globe-heading h2{line-height:1.12;max-width:none}
html[data-main-event-presentation=true] .globe-heading{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;bottom:auto;gap:4px;max-width:calc(100% - 85px)}
html[data-main-event-presentation=true] .globe-heading .mode-badge{max-width:none;width:auto;padding:3px 6px;font-size:9px}

html[data-main-event-presentation=true] #globe-context{display:none}

/* Retired Main Event test overlay. Preserve the separate impact-wave layer. */
html[data-main-event-force-guides=off] .tharp-force-guides{display:none!important}
/* These pins follow the evolving model, not the modern reference map. */
html[data-main-event-map-reference=true] .impact-ridge-marker{display:none!important}
html[data-main-event-map-reference=true] .globe-heading h2{filter:drop-shadow(0 1px 2px #06141f) drop-shadow(0 0 5px #06141f)}

/* Focus the geographic passage without touching Book mode or simulation state. */
html[data-main-event-map-focus=true] .impact-point-label:not(.main-event-map-label),
html[data-main-event-map-focus=true] .impact-ridge-marker{display:none!important}
.main-event-map-label{border:1px solid #b8e4ef;z-index:8}

html[data-main-event-map-focus=true] .tharp-fracture-origin-label,
html[data-main-event-map-focus=true] .tharp-fracture-origin{display:none!important}
html[data-main-event-presentation=true] .motion-hud{transition:opacity .4s}
html[data-main-event-map-focus=true] .motion-hud{opacity:0;pointer-events:none}

/* The axis passage emphasizes tilt; do not carry regional route labels into it. */
html[data-main-event-presentation=true][data-main-event-shot=axis] .impact-ridge-marker{display:none!important}

/* Keep the Atlantic callout attached to its actual point when space is tight. */
html[data-main-event-presentation=true] [data-force-phase="atlantic-ridge"] .impact-ridge-marker[data-label-side=left]{transform:translate(calc(-100% - 16px),22px)}
html[data-main-event-presentation=true] [data-force-phase="atlantic-ridge"] .impact-ridge-marker[data-label-side=left]::before{left:auto;right:-23px}
html[data-main-event-presentation=true] [data-force-phase="atlantic-ridge"] .impact-ridge-marker[data-label-side=left]::after{left:auto;right:-13px;transform:rotate(-51deg);transform-origin:right}
html[data-main-event-presentation=true] .impact-water-marker[data-label-collision=true]{visibility:hidden}

/* Leave Antarctica and its surrounding ocean unobstructed in the final shot. */
html[data-main-event-presentation=true][data-main-event-shot=map] .motion-hud{opacity:0;pointer-events:none}
html[data-main-event-presentation=true][data-main-event-shot=map] .tharp-fracture-origin-label,
html[data-main-event-presentation=true][data-main-event-shot=map] .tharp-fracture-origin{display:none!important}

/* Let the regional aftermath use the same large, unobstructed map stage. */
.main-event-invitation{position:absolute;left:12px;right:12px;bottom:18px;z-index:20;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.main-event-invitation[hidden]{display:none}
.main-event-invitation a,.main-event-invitation button{font:12px/1.3 system-ui,sans-serif;padding:10px 13px;border:1px solid #6d9ba3;border-radius:5px;background:#102e39;color:#edf9f6;text-decoration:none;cursor:pointer}
.main-event-invitation .invitation-voice{font-size:11px;background:#071e28}
html[data-main-event-invitation=true] .camera-follow{display:none}
html[data-main-event-invitation=true] .motion-hud{display:none}
html[data-main-event-presentation=true][data-main-event-aftermath]:not([data-main-event-aftermath=off]) .motion-hud{opacity:0;pointer-events:none}
html[data-main-event-presentation=true][data-main-event-aftermath]:not([data-main-event-aftermath=off]) .tharp-fracture-origin-label,
html[data-main-event-presentation=true][data-main-event-aftermath]:not([data-main-event-aftermath=off]) .tharp-fracture-origin{display:none!important}

/* Mode exits share the existing transport row; the globe keeps its height. */
.main-event-mode-nav{display:none}
html[data-impact-player=true] .timeline-panel .playback-actions{flex-wrap:nowrap;align-items:center}
html[data-impact-player=true] .playback-actions .main-event-mode-nav{display:flex!important;flex:0 0 auto;width:auto;justify-content:flex-start;align-items:center;gap:8px;white-space:nowrap;margin:0;padding:0}
.playback-actions .main-event-mode-nav a{display:flex;align-items:center;min-height:36px;margin:0;padding:0;border:0;background:none;color:#c9e3dd;font:11px/1.2 system-ui,sans-serif;text-decoration:none}
.main-event-mode-nav a:focus-visible{outline:2px solid #e8d6a5;outline-offset:3px}
@media(max-width:600px){html[data-impact-player=true] .playback-actions .main-event-script-link{display:none!important}html[data-impact-player=true] .timeline-panel{gap:5px;padding-inline:6px}html[data-impact-player=true] .playback-actions #play{max-width:105px;padding-inline:6px}html[data-impact-player=true] .playback-actions #restart{padding-inline:6px}}
