/* Aim on the court, then use the primary action or the ball to throw. */
body.game-theme #app .basket-side100 .basket-stage90 {
  width:min(100%,1140px);
  align-self:stretch;
}
body.game-theme #app .basket-side100 .basket-dock100 {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  justify-self:center;
  width:max-content;
  max-width:100%;
  margin:0;
  padding:0;
  border:0;
  background:none;
  box-shadow:none;
}
body.game-theme #app .basket-side100 .basket-dock100 button {
  min-height:44px!important;
  padding:6px 14px!important;
}
body.game-theme #app .basket-side100 .basket-dock100 .basket-throw110 {
  min-width:136px;
  background:#f3cf8d!important;
  color:#2a1e24!important;
  border:2px solid #fff1cf!important;
  box-shadow:0 3px 12px #2b1d1d70;
  font:800 clamp(13px,2vw,15px)/1.1 system-ui,sans-serif!important;
}
body.game-theme #app .basket-side100 .basket-dock100 .basket-throw110:not([aria-disabled="true"]):is(:hover,:focus-visible) {
  background:#fff0c3!important;
}
body.game-theme #app .basket-side100 .basket-dock100 .basket-throw110[aria-disabled="true"] {
  background:#3b3035!important;
  color:#ffeed2!important;
  border-color:#e3c69d!important;
  cursor:default;
}
.basket-side100 .basket-guide100 {
  filter:drop-shadow(0 1px 1px #24180e) drop-shadow(0 1px 1.5px #1a1e16);
  pointer-events:none;
}
.basket-swipe107,.basket-power107 {pointer-events:none;filter:drop-shadow(0 1px 1px #1a3332)}
.basket-ball-body107 {filter:drop-shadow(0 2px 1.2px #39291dcc)}
.basket-air86 .basket-power107 {visibility:hidden}
.basket-focus103 {opacity:0;pointer-events:none}
.basket-court89:not(.basket-air86) [data-basket-ball86]:is(:hover,:focus-visible) .basket-focus103,
.basket-grab86 .basket-focus103 {opacity:1}
.basket-court89 [data-basket-ball86]:focus {outline:none}
.basket-hit86 .basket-net100 {animation:basket-net100 .38s ease-out;transform-origin:center top;}
@keyframes basket-net100 {30%{transform:translateX(4px) scaleY(1.12)}70%{transform:translateX(-2px) scaleY(.98)}}

@media (max-width:760px) and (orientation:portrait) {
  .basket-grab-zone100 {r:56px}
}
@media (prefers-reduced-motion:reduce) {.basket-hit86 .basket-net100 {animation:none}}

/* Drag the curve itself: height and range are direct controls. */
.basket-aim108 [data-basket-handle108] {cursor:grab;touch-action:none;outline:none}
.basket-aim108 [data-basket-handle108]:active {cursor:grabbing}
.basket-aim108 text {font:700 9px/1 system-ui,sans-serif;fill:#fff4d8;paint-order:stroke;stroke:#263b30;stroke-width:3px;stroke-linejoin:round;pointer-events:none}
.basket-aim108 [data-basket-handle108]:is(:hover,:focus-visible)>circle:not(.basket-handle-hit108) {stroke:#fff;stroke-width:3px;fill:#377a71}
.basket-air86 .basket-aim108,.basket-aim108[hidden] {display:none}
.basket-air86 .basket-guide100 {opacity:.4}
.basket-court89:not(.basket-air86) [data-basket-ball86] {cursor:pointer}
.basket-court89 .basket-handle-hit108 {pointer-events:all}
@media (max-width:760px) and (orientation:portrait) {
 .basket-aim108 .basket-handle-hit108 {r:52px}
 .basket-aim108 [data-basket-handle108]>circle:not(.basket-handle-hit108) {r:18px}
 .basket-aim108 text {font-size:22px}
}

/* The result receives focus; the lower corner keeps the same exit as the card. */
body.game-theme #app .basket-result126 {outline:none}
body.game-theme #app :is(.stadium-scene76:has(.basket-result126),.stadium-scene76:has(.basket-lobby126)) .job-exit124 .scene-exit-label104 {
  opacity:1;visibility:visible;white-space:nowrap;
}
@media(max-width:760px){
  body.game-theme #app :is(.stadium-scene76:has(.basket-result126),.stadium-scene76:has(.basket-lobby126)) button.job-exit124 {
    width:min(42vw,165px)!important;height:90px!important;
  }
}

/* The controls sit beneath the left information panel, clear of the rack and ball. */
body.game-theme #app .bowling-challenge .play-status .scene-play-controls {
  position:static;inset:auto;translate:none;width:auto;max-width:none;
  justify-content:flex-start;flex-wrap:wrap;gap:6px;margin-top:8px;
}
body.game-theme #app .bowling-challenge .play-status .scene-play-controls button {
  min-height:42px;padding:6px 11px!important;white-space:normal;
}
@media(max-height:530px){
  body.game-theme #app .bowling-challenge .play-status {
    max-height:calc(100dvh - var(--play-top,90px) - 10px)!important;overflow:auto!important;
  }
}

/* All moving props use the track's painted perspective instead of screen coordinates. */
body.game-theme #app .run-course .runner-avatar.runner-lane {
  width:13%;height:30%;top:94%;transition:left .22s ease-out;
}
body.game-theme #app .run-course .track-cone {
  transition:left .10s linear,top .10s linear,width .10s linear,height .10s linear;
  filter:drop-shadow(2px 2px 1px #30201580);
}
body.game-theme #app .run-course .track-cone[hidden],
body.game-theme #app .run-course .track-finish[hidden] {display:none!important}
body.game-theme #app .run-course .track-finish {
  left:49.7%;height:clamp(4px,1.8%,15px);transition:top .10s linear,width .10s linear;
}
.runner-ground126 {
  position:absolute;left:var(--runner-x);top:94%;width:9%;height:1.6%;translate:-50% -50%;
  border-radius:50%;background:#421d26a1;filter:blur(3px);transition:left .22s ease-out;
}
.run-course.is-running126 .runner-avatar {animation:avatar-stride .41s ease-in-out infinite}
.run-steering126 {display:flex;align-items:center;gap:5px}
body.game-theme #app .running-challenge .run-steering126 button {
  min-height:46px;min-width:44px;padding:6px 11px!important;touch-action:none;user-select:none;
}
body.game-theme #app .running-challenge .run-hold126[aria-pressed="true"] {
  background:#fff1be!important;border-color:#fff4d3!important;box-shadow:inset 0 0 0 2px #94632c!important;
}
.running-challenge .scene-distance {height:8px;border-radius:5px;overflow:hidden}
.running-challenge .scene-distance i {border-radius:5px;transition:width .08s linear}
@media(max-width:550px){
  body.game-theme #app .running-challenge .scene-play-controls {gap:6px;flex-wrap:wrap}
  body.game-theme #app .running-challenge .scene-play-controls button {min-height:44px}
}
@media(prefers-reduced-motion:reduce){
  body.game-theme #app .run-course :is(.track-cone,.track-finish,.runner-avatar,.runner-ground126),
  .running-challenge .scene-distance i {transition:none!important;animation:none!important}
}
