/* The character arc is the interface. No physical wheel, floor ring or course tiles. */
body.reference-design .home-experience .home-course-collection.course-wheel{--avatar-height:clamp(300px,28vw,400px);padding:42px calc(var(--gutter) + 8px) 52px;color:var(--studio-text);background:transparent}
.course-wheel .cw-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 14px}
.course-wheel .cw-heading h2{font:650 clamp(36px,3.7vw,54px)/1.06 'TikTok Sans',sans-serif;letter-spacing:-.035em;color:var(--studio-text);margin:0}
.course-wheel .cw-instruction{font:12px/1.6 'Departure Mono',monospace;color:var(--studio-muted);margin:0 0 26px;max-width:62ch}
.cw-arena{position:relative;height:calc(var(--avatar-height) + 270px)}
.cw-selection{height:100%;min-width:0}
.cw-stage{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.cw-character{display:block;min-width:0;color:var(--studio-text);text-align:center;text-decoration:none}
.cw-character img{display:block;width:100%;height:auto;max-height:260px;object-fit:contain;background:transparent;user-select:none;-webkit-user-drag:none}
.cw-fallback-title{display:block;margin:10px 0;font-size:16px;line-height:1.4}
.course-wheel.is-ready .cw-stage{display:block;height:100%;touch-action:pan-y;isolation:isolate;cursor:grab;overflow:hidden;overflow:clip}
.course-wheel.is-dragging .cw-stage{cursor:grabbing}
.course-wheel.is-ready .cw-character{position:absolute;left:calc(50% + var(--arc-x));top:0;width:calc(var(--avatar-height)*.67);height:var(--avatar-height);transform:translate(-50%,var(--arc-y)) rotate(var(--arc-tilt)) scale(var(--arc-scale));transform-origin:center center;-webkit-tap-highlight-color:transparent}
.course-wheel.is-ready .cw-character img{width:100%;height:100%;max-height:none;object-fit:contain;pointer-events:none;filter:blur(var(--arc-blur,0px))}
/* Keep the selected transparent artwork out of WebKit's filtered-image
   compositor. Only the surrounding previews need a filtered layer. */
.course-wheel.is-ready .cw-character.is-selected img{filter:none}
.course-wheel.is-ready .cw-character.is-selected{cursor:pointer}
.course-wheel.is-ready .cw-character:before,.course-wheel.is-ready .cw-character:after{content:'';position:absolute;top:42%;width:8px;height:38px;border-top:1px solid var(--pink);border-bottom:1px solid var(--pink);opacity:0;pointer-events:none;transition:opacity .18s}
.course-wheel.is-ready .cw-character:before{left:0;border-left:1px solid var(--pink)}
.course-wheel.is-ready .cw-character:after{right:0;border-right:1px solid var(--pink)}
.course-wheel.is-ready .cw-character.is-selected:before,.course-wheel.is-ready .cw-character.is-selected:after{opacity:1}
.course-wheel.is-dragging .cw-character:before,.course-wheel.is-dragging .cw-character:after{opacity:0}
.course-wheel.is-ready .cw-fallback-title{display:none}
.course-wheel .cw-character:focus-visible{outline-offset:-4px}
.cw-controls{position:absolute;z-index:6;left:50%;top:calc(var(--avatar-height) + 8px);transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:16px;margin:0}
.cw-controls[hidden],.cw-detail[hidden]{display:none}
.cw-controls button{display:grid;place-items:center;width:48px;height:48px;border:0;background:transparent;color:var(--studio-text);cursor:pointer;transition:color .16s,transform .16s}
.cw-controls button:hover{color:var(--pink)}
.cw-controls button:active{transform:scale(.92)}
.cw-controls button .icon{width:26px;height:26px}
.cw-controls [data-wheel-step="-1"] .icon{transform:rotate(-135deg)}
.cw-controls [data-wheel-step="1"] .icon{transform:rotate(45deg)}
.cw-controls p{font:12px/1 'Departure Mono',monospace;font-variant-numeric:tabular-nums;color:var(--studio-muted);margin:0}
.cw-count-divider{margin:0 12px;color:var(--studio-muted)}
.cw-controls [data-wheel-position]{color:var(--studio-text)}
.cw-information{position:absolute;z-index:5;left:50%;top:calc(var(--avatar-height) + 68px);width:420px;max-width:42%;transform:translateX(-50%);min-width:0;text-align:center}
.cw-details{min-height:0}
.cw-detail{transform-origin:center top}
.cw-detail h3{font:650 clamp(28px,2.5vw,36px)/1.08 'TikTok Sans',sans-serif;letter-spacing:-.03em;color:var(--studio-text);margin:0 auto 12px;text-wrap:balance}
.cw-detail .cw-description{font:15px/1.6 'TikTok Sans',sans-serif;color:var(--studio-muted);margin:0 auto 18px;max-width:43ch}
.cw-detail .button{display:inline-flex;align-items:center;gap:22px;white-space:nowrap}
.course-wheel .cw-all{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:48px;padding:14px 20px;background:var(--pink);color:var(--ink);border:1px solid var(--pink);margin-top:0;font:12px/1.5 'Departure Mono',monospace;white-space:nowrap;flex-shrink:0}
.course-wheel .cw-all:hover{color:var(--white);background:var(--blue-deep);border-color:var(--blue-deep)}
.cw-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-theme=light] .course-wheel.is-ready .cw-character:before,html[data-theme=light] .course-wheel.is-ready .cw-character:after{border-color:var(--blue)}
html[data-theme=light] .cw-controls button:hover{color:var(--blue)}
@media(max-width:700px){
 body.reference-design .home-experience .home-course-collection.course-wheel{--avatar-height:260px;padding:36px 24px 64px}
 .course-wheel .cw-heading{display:block;margin-bottom:12px}
 .course-wheel .cw-heading h2{font-size:34px;max-width:15ch}
 .course-wheel .cw-heading .cw-all{position:static;margin-top:16px;min-height:48px;font-size:11px}
 .course-wheel .cw-instruction{font-size:11px;line-height:1.7;max-width:44ch;margin:0 0 18px}
 .cw-arena{height:calc(var(--avatar-height) + 280px);margin-inline:-14px}
 .cw-stage{grid-template-columns:repeat(2,minmax(0,1fr))}
 .course-wheel.is-ready .cw-character{top:0}
 .cw-controls{top:calc(var(--avatar-height) + 8px);gap:8px}
 .cw-controls button{width:44px;height:44px}
 .cw-count-divider{margin:0 8px}
 .cw-information{top:calc(var(--avatar-height) + 64px);width:calc(100% - 28px);max-width:360px;padding:0}
 .cw-detail h3{font-size:30px;line-height:1.1;max-width:22ch;margin:0 auto 12px}
 .cw-detail .cw-description{font-size:14px;line-height:1.6;max-width:38ch;margin:0 auto 16px}
}
@media(max-width:360px){
 body.reference-design .home-experience .home-course-collection.course-wheel{--avatar-height:240px}
 .course-wheel .cw-heading h2{font-size:32px}
 .cw-detail h3{font-size:27px}
}
@media(prefers-reduced-motion:reduce){.course-wheel *{transition:none!important}}
body:not(.motion-allowed) .course-wheel *{transition:none}
/* Keep the selected course action clear of the decorative pointer readout. */
body.course-wheel-in-view .studio-coordinates{visibility:hidden}

/* Static fallback keeps every course reachable without a running carousel. */
.course-wheel:not(.is-ready) .cw-arena{height:auto}
.course-wheel:not(.is-ready) .cw-information{position:static;transform:none;max-width:none;width:auto;margin-top:32px}

.course-wheel-apel .cw-heading h2{max-width:22ch;font-size:clamp(34px,3.3vw,48px)}
.course-wheel .cw-introduction{font:15px/1.7 'TikTok Sans',sans-serif;color:var(--studio-muted);max-width:80ch;margin:0 0 16px}
.course-wheel .cw-note{font:12px/1.7 'Departure Mono',monospace;color:var(--studio-muted);max-width:78ch;margin:22px auto 0;text-align:center}
.course-wheel-apel .cw-arena{height:calc(var(--avatar-height) + 350px)}
@media(max-width:700px){.course-wheel-apel .cw-heading h2{font-size:34px}.course-wheel .cw-introduction{font-size:14px}.course-wheel-apel .cw-arena{height:calc(var(--avatar-height) + 350px)}.course-wheel .cw-all{white-space:normal;text-align:left;max-width:100%}}

/* A spacious three-character fan on phones and tablets. The side previews
   intentionally continue beyond the screen; selected information flows below. */
@media(max-width:1000px){
 body.reference-design .home-experience .home-course-collection.course-wheel{--avatar-height:clamp(280px,42vw,340px)}
 .course-wheel.is-ready .cw-arena{height:auto}
 .course-wheel.is-ready .cw-selection{position:relative;height:calc(var(--avatar-height) + 88px)}
 .course-wheel.is-ready .cw-stage{height:calc(var(--avatar-height) + 48px)}
 .course-wheel .cw-controls{top:calc(var(--avatar-height) + 20px);gap:20px}
 .course-wheel.is-ready .cw-information{position:relative;top:auto;left:auto;transform:none;width:calc(100% - 48px);max-width:500px;margin:24px auto 0}
 .course-wheel .cw-details{min-height:190px}
 .course-wheel-apel .cw-details{min-height:240px}
 .course-wheel .cw-detail h3{margin-bottom:18px}
 .course-wheel .cw-detail .cw-description{margin-bottom:24px;line-height:1.7}
 body.course-wheel-in-view .whatsapp-label{display:none}
 body.reference-design.course-wheel-in-view .studio-hud{display:none}
}
@media(max-width:700px){
 .course-wheel.is-ready .cw-arena{margin-inline:-24px}
 .course-wheel .cw-instruction{margin-bottom:30px}
 .course-wheel .cw-controls button{width:48px;height:48px}
 .course-wheel .cw-note{margin-top:28px}
}
@media(max-width:360px){body.reference-design .home-experience .home-course-collection.course-wheel{--avatar-height:260px}}
