/* The rider belongs to the wind-tunnel chapter, not the global backdrop. */
#portal-tunnel{isolation:isolate;}
#portal-tunnel>.platform-art{display:none;}
#portal-tunnel>.platform-copy{grid-column:1;position:relative;z-index:1;}
.tunnel-scene{position:absolute;inset:0 -8.139535%;z-index:-1;pointer-events:none;overflow:hidden;mask-image:linear-gradient(transparent,#000 16%,#000 84%,transparent);}
.tunnel-scene img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;}
.tunnel-scene .tunnel-dark{opacity:1;}
.tunnel-scene .tunnel-light{opacity:0;}
.tunnel-scene::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#07111ae0 0%,#07111ab0 27%,#07111a20 52%,transparent 70%);}
html[data-theme=light] .tunnel-scene .tunnel-dark{opacity:0;}
html[data-theme=light] .tunnel-scene .tunnel-light{opacity:1;}
html[data-theme=light] .tunnel-scene::after{background:linear-gradient(90deg,#edf4f6e8 0%,#edf4f6b0 27%,#edf4f620 52%,transparent 70%);}
@media(max-width:700px){
 #portal-tunnel{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-height:0;padding-bottom:35px;}
 #portal-tunnel>.platform-copy{order:0;}
 #portal-tunnel>.tunnel-scene{position:relative;inset:auto;order:1;width:calc(100% + 14vw);margin-inline:-7vw;height:350px;z-index:0;mask-image:linear-gradient(transparent,#000 12%,#000 84%,transparent);}
 .tunnel-scene img{object-position:72% center;}
 .tunnel-scene::after,html[data-theme=light] .tunnel-scene::after{background:none;}
}
