/* Original component fitting; desktop-only refinements are scoped below. */
html,body{background:transparent!important;min-height:0!important;height:100%;overflow:hidden;touch-action:var(--page-touch-action,pinch-zoom)}
body>header,main#app>#heading{display:none}
main#app{position:absolute;left:0;top:0;width:100%;max-width:none;height:auto!important;min-height:0;margin:0;padding-top:0;transform-origin:0 0}
main#app .details{height:auto;flex:none}
main#app .details>div{overflow:visible}
@media(min-width:751px){main#app .disk-area:not(.hidden){flex:none;height:min(42vw,475px);min-height:0}}

main#app #hint{visibility:hidden}
html[data-mobile-embed="true"] main#app .details{margin-top:14px}
html[data-mobile-embed="true"] main#app #hint{display:none}

/* Embedded gestures belong to the shared page controller, including vertical swipes. */
main#app .disk-svg,main#app .disk-svg *{touch-action:var(--page-touch-action,pinch-zoom)}
.cycles .cycle:not(.on){color:#788494}
.cycles .cycle:not(.on) .cycle-art{filter:grayscale(1) saturate(0) brightness(.95);opacity:.6}

/* Follow the fading beam's alpha instead of casting a rectangular box shadow. */
.cycles .cycle.on::after{box-shadow:none;border-radius:0;filter:drop-shadow(0 0 4px #7CB8FF88) drop-shadow(0 0 9px #4B91FF44)}
/* Touch browsers retain :hover after a tap. Explicit touch press state prevents sticky :hover/:active/focus. */
@media(pointer:coarse){
 .side-arrow,.side-arrow:hover{background:transparent;border-color:transparent;box-shadow:none}
 .side-arrow:focus:not(:focus-visible),.cycles .cycle:focus:not(:focus-visible){outline:none}
}

main#app .side-arrow[data-touch-input]{background:transparent;border-color:transparent;box-shadow:none;outline:none}
main#app .side-arrow[data-touch-pressed]{background:#14243C;border-color:#83B5FF}

/* Desktop: give the stage summary the readable share retained on tablets. */
@media(min-width:1001px){
 main#app .disk-area:not(.hidden){height:min(36vw,380px)}
 main#app .details{min-height:clamp(200px,26vh,260px);padding:18px 24px}
 main#app .details h2{font-size:24px;line-height:1.2}
 main#app .details h3{font-size:16px;line-height:1.3}
 main#app .details p,main#app .details li,main#app .details .outcome{font-size:18px;line-height:1.45}
 main#app .details .tag{font-size:13px}
}

html.is-page-zoomed{--page-touch-action:auto}
