/* Only the old-host guide opts into this layout. Keep its real controls
   scrollable and reachable without changing the new site's game geometry. */
#control-display #overlay:has(.has-site-migration){display:flex;flex-direction:column;overflow:hidden!important}
#control-display #overlay:has(.has-site-migration)>.overlay-header{flex:none}
#control-display #overlay .has-site-migration{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:0 4px 16px;scroll-padding:8px}
#control-display #overlay .has-site-migration button{min-height:44px;white-space:normal;touch-action:manipulation}
.site-migration{border:2px solid #497d74;border-radius:8px;background:#e7f0e4;color:#173e3a;padding:12px;margin-bottom:16px;overflow-wrap:anywhere}
.site-migration h3{font-size:20px;margin:4px 0 10px}
.site-migration p{margin:8px 0}
.site-migration ol{padding-left:22px;margin:10px 0}
.site-migration li{margin:7px 0}
.site-migration button{width:100%;margin-top:8px}
.migration-eyebrow{font-size:12px;font-weight:bold;letter-spacing:.05em}
.site-migration #migration-status{border-left:3px solid #397c64;padding:8px;background:#fff9db;font-weight:bold}
.migration-backup-note{font-size:13px}
/* The legacy host is a save-transfer desk, never a playable game surface. */
html[data-site-mode=migration] .journey-panel,
html[data-site-mode=migration] .journey-strip,
html[data-site-mode=migration] .app>footer,
html[data-site-mode=migration] #sound,
html[data-site-mode=migration] #screen,
html[data-site-mode=migration] #trainer-status,
html[data-site-mode=migration] #touch-controls{display:none!important}
html[data-site-mode=migration] .play-layout{display:block}
html[data-site-mode=migration] .dual-console[data-surface=adventure]{display:grid;grid-template-columns:minmax(0,560px);width:min(100%,560px);margin:0 auto;gap:10px}
html[data-site-mode=migration] .dual-console[data-surface=adventure] .top-display{display:none}
html[data-site-mode=migration] .dual-console[data-surface=adventure] .top-display:has(#dialogue:not([hidden]),#toast:not([hidden])){display:block;grid-column:1;grid-row:1;height:auto;min-height:0;max-height:none}
html[data-site-mode=migration] .dual-console[data-surface=adventure] .display-dialogue{position:relative;height:auto;flex:none;min-height:0}
html[data-site-mode=migration] .dual-console[data-surface=adventure] .display-dialogue :is(.dialogue,.toast){position:relative;inset:auto;width:100%;height:auto;max-height:none;margin:0;overflow:visible}
html[data-site-mode=migration] #modal-close{min-width:44px;min-height:44px}
html[data-site-mode=migration] .dual-console[data-surface=adventure] .touch-screen,
html[data-site-mode=migration] .dual-console[data-surface=adventure] .touch-screen:has(#overlay:not([hidden])){grid-column:1;grid-row:2;height:clamp(200px,calc(var(--auth-viewport-height,100dvh) - 90px),680px);min-height:200px;max-height:none}
html[data-site-mode=migration] .dual-console[data-surface=adventure]:has(#dialogue:not([hidden])) .touch-screen{height:220px}
