.basket-game {
  display:grid;
  gap:10px;
  max-width:790px;
  margin:auto;
  padding:12px;
  color:#e7f2ff;
  background:#101a2d;
  border:1px solid #283955;
  border-radius:18px;
  font-variant-numeric:tabular-nums;
}
.basket-hud,.basket-meter-row,.basket-stage-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.basket-hud {
  min-height:40px;
  padding:0 6px;
  font-size:clamp(11px,1.35vw,15px);
  white-space:nowrap;
}
.basket-hud strong {font-size:clamp(17px,2.4vw,27px);color:#fff}
.basket-hud abbr {text-decoration:none}
.basket-total strong {color:#ffd681}
.basket-racks {display:flex;align-items:center;gap:clamp(3px,.75vw,9px)}
.basket-racks i {
  display:grid;
  width:clamp(9px,1.45vw,18px);
  aspect-ratio:1;
  place-items:center;
  border-radius:50%;
  border:1px solid #75849a;
  color:#a0f6ff;
  font:700 clamp(7px,1vw,11px)/1 system-ui,sans-serif;
}
.basket-racks .deep {border-radius:3px;transform:rotate(-8deg)}
.basket-racks .money {border-color:#ffba76}
.basket-racks .is-passed {background:#667d97;color:#101a2d}
.basket-racks .is-current {background:#a0f6ff;border-color:#fff;color:#181d34;box-shadow:0 0 8px #65ddff}
.basket-racks .money.is-current {background:#ffd681;box-shadow:0 0 8px #ffbd72}
.basket-stage {position:relative;overflow:hidden;border-radius:12px;background:#102542}
.basket-stage canvas {display:block;width:100%;height:auto;touch-action:none;user-select:none;cursor:crosshair}
.basket-stage-label {
  position:absolute;
  right:8px;
  bottom:8px;
  max-width:calc(100% - 16px);
  padding:5px 8px;
  border:1px solid #adcbf15e;
  border-radius:8px;
  background:#101a2deb;
  font-size:clamp(10px,1.4vw,15px);
  letter-spacing:.015em;
  pointer-events:none;
}
.basket-stage-label strong {color:#f5e1c4}
.basket-stage-label [data-kind=money] {color:#ffd681}
.basket-stage-label [data-kind=deep] {color:#8df5ff}
.basket-callout {
  position:absolute;
  left:50%;
  top:12%;
  padding:.28em .62em;
  border-radius:7px;
  pointer-events:none;
  opacity:0;
  color:#fff;
  background:#23334ded;
  font-weight:900;
  font-size:clamp(13px,3vw,31px);
  text-align:center;
  white-space:nowrap;
  transform:translateX(-50%);
}
.basket-stage[data-basket-feedback] .basket-callout {opacity:1;animation:basket-pop .24s ease-out}
.basket-stage[data-basket-feedback=made] .basket-callout {background:#c9ff88;color:#183016}
@keyframes basket-pop {from{transform:translate(-50%,10px) scale(.8)}to{transform:translate(-50%,0) scale(1)}}
.basket-meter-row {padding:0 6px;font-size:clamp(10px,1.35vw,14px)}
.basket-meter-label {font-weight:750}
.basket-meter {
  isolation:isolate;
  position:relative;
  flex:1;
  height:12px;
  border:1px solid #607896;
  border-radius:10px;
  background:#203045;
}
.basket-zone,.basket-gauge {position:absolute}
.basket-zone {inset:0 auto 0 var(--zone-left);width:var(--zone-width);background:#90e48a;box-shadow:0 0 7px #7fef7da6}
.basket-gauge {
  inset:-3px auto -3px clamp(2px,var(--power,0%),calc(100% - 2px));
  width:4px;
  border-radius:2px;
  transform:translateX(-50%);
  background:#fff;
  box-shadow:0 1px 5px #0e162a;
}
.basket-meter.is-green .basket-gauge {background:#d5ffb2}
.basket-meter.is-over .basket-gauge {background:#ffbf7e}
.basket-percent {min-width:3.2em;text-align:right}
.basket-status,.basket-help {margin:0;padding:0 5px;font-size:13px;text-align:center}
.basket-status {min-height:1.3em;font-weight:800;color:#fff4d6}
.basket-help {display:grid;gap:6px;color:#c1d0e5;line-height:1.4}
.basket-help kbd {padding:1px 4px;border:1px solid #657e9b;border-radius:4px;font:inherit;color:#fff}
.arena.panel-face .basket-game {
  height:100%;
  min-height:0;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:5px;
  padding:7px;
}
.arena.panel-face .basket-stage {display:grid;place-items:center;container-type:size}
.arena.panel-face .basket-stage canvas {width:min(100%,calc(100cqh * 780 / 530))}
.arena.panel-face .basket-hud {min-height:28px}
.arena.panel-face .basket-hud strong {font-size:17px}
.arena.panel-face .basket-help {display:none}
.arena.panel-face .basket-status {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
@media (pointer:coarse) {
  .basket-key-help {display:none}
}
@media (max-width:560px) {
  .basket-game {gap:7px;padding:8px;border-radius:13px}
  .basket-hud {min-height:30px}
}
@media (prefers-reduced-motion:reduce) {
  .basket-stage[data-basket-feedback] .basket-callout {animation:none}
}
