.tap-basket-game{max-width:420px;margin:auto;padding:14px;border-radius:22px;background:#171b37;color:#eee6fa;box-shadow:0 12px 35px #17122e30}.tap-basket-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:6px 2px 12px}.tap-basket-heading span{font-size:9px;letter-spacing:.1em;color:#d5b5e8}.tap-basket-heading strong{font-size:16px}.tap-basket-game progress{width:100%;height:9px;accent-color:#e8b776;display:block}.tap-basket-game progress.urgent{accent-color:#ed817e}.tap-basket-game canvas{width:100%;height:auto;max-height:65dvh;object-fit:contain;display:block;border-radius:14px;touch-action:none;outline-offset:2px}.tap-basket-game p{font-size:12px;line-height:1.5;margin:10px 4px 2px;color:#c6bbd9}.tap-basket-cover{background:radial-gradient(ellipse at top,#58406e,#17203d)!important;display:grid;place-items:center;color:#fff}.tap-basket-cover-ball{font-size:90px;filter:drop-shadow(0 10px 10px #090e28);transform:rotate(-15deg)}.tap-basket-cover>b{font-size:12px;letter-spacing:.2em;color:#efc98f}
.court-three-surface{position:relative;aspect-ratio:360/500;max-height:65dvh;margin:auto;width:100%;overflow:hidden;border-radius:16px;background:#101329}.court-three-surface #tapBasketCanvas{width:100%;height:100%;max-height:none;position:absolute;inset:0;z-index:2}.court-three-surface .court-three-canvas{position:absolute;inset:0;width:100%!important;height:100%!important;max-height:none;pointer-events:none;z-index:1}.court-three-status{display:block;text-align:right;color:#9ed5e7;font-size:9px;letter-spacing:.1em;margin:-4px 2px 10px}.tap-basket-game{border:1px solid #9b75d45c;background:linear-gradient(145deg,#20213f,#141a31);box-shadow:0 16px 48px #110f2d50,inset 0 1px 0 #dcc3ff24}.tap-basket-heading span{font-size:10px;color:#dbc1f3}.tap-basket-game progress{height:8px;border-radius:8px;overflow:hidden;margin-bottom:8px}

.tap-basket-game progress{appearance:none;background:#342e51;border:0}.tap-basket-game progress::-webkit-progress-bar{background:#342e51;border-radius:8px}.tap-basket-game progress::-webkit-progress-value{background:linear-gradient(90deg,#9f7be5,#edba77);border-radius:8px}.tap-basket-game progress.urgent::-webkit-progress-value{background:#eb817f}.tap-basket-game progress::-moz-progress-bar{background:#c29be1}

.court-stage{margin-top:10px;padding:10px;border:1px solid #9379bf55;border-radius:12px;background:#252441;color:#eadcf7}.court-stage>div{display:flex;justify-content:space-between;gap:8px;font-size:12px}.court-stage span{font-size:10px;color:#cebde2}.court-stage progress{margin:8px 0 0;height:5px}.court-stage-award{display:block;font-size:12px;color:#ffe09b;margin-top:8px}.court-touch-controls{display:flex;gap:10px;margin:10px 0}.court-touch-controls button{flex:1;min-height:42px;border:1px solid #ac8bc477;border-radius:12px;background:linear-gradient(#594470,#392d51);color:#f4e4ff;font:inherit;font-size:13px}.tap-basket-game canvas{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}

.court-touch-controls{flex-wrap:wrap}.court-touch-controls button{min-width:0;overflow-wrap:anywhere}.court-touch-controls #courtSound{flex:.9;font-size:11px}.court-touch-controls #courtSound[aria-pressed=true]{border-color:#83cbb3;color:#b3ffe1;background:linear-gradient(#345260,#243c4d)}.court-original-tools #courtSound[aria-pressed=true]{color:#245e4c;background:#e1f5ec;border-color:#9bcdbb}.court-three-surface{isolation:isolate}.court-three-status{min-height:12px}.court-touch-controls button:focus-visible{outline:3px solid #d5b2ec;outline-offset:2px}

#courtFeedback{flex:1 0 100%;font-family:inherit;font-weight:700;font-size:11px;line-height:1.4;min-height:16px;text-align:center;color:#a7dce5}#courtFeedback[data-impact=swish],#courtFeedback[data-impact=goal]{color:#f6d68b}.court-original-tools #courtFeedback{color:#815ba0}.court-original-tools #courtFeedback[data-impact=swish],.court-original-tools #courtFeedback[data-impact=goal]{color:#9b6b24}

.court-three-loading {
  position:absolute;
  inset:0;
  z-index:3;
  display:grid;
  place-items:center;
  padding:20px;
  color:#ede9ff;
  background:radial-gradient(ellipse at center,#252441,#101329);
  font-size:15px;
  text-align:center;
  pointer-events:none;
}
.court-three-surface:not([data-renderer="loading"]) .court-three-loading { display:none; }
.court-three-surface:is([data-renderer="loading"],[data-renderer="webgl"]) #tapBasketCanvas { opacity:0; }
.court-three-surface:focus-within { outline:2px solid #baccff;outline-offset:2px; }
.basket-session-metrics {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:0;
  text-align:center;
}
.basket-session-metrics>div {
  display:grid;
  align-content:center;
  gap:5px;
  min-width:0;
  padding:8px 5px;
  border:1px solid var(--neon-line,#554b71);
  border-radius:10px;
  background:var(--neon-panel-hi,#292746);
}
.basket-session-metrics dt {
  font-size:.75rem;
  line-height:1.35;
  color:var(--neon-muted,#c6bedb);
  overflow-wrap:anywhere;
}
.basket-session-metrics dd {
  margin:0;
  color:var(--neon-text,#f2eafd);
  font-size:1.125rem;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
#modal .basket-history {
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid var(--neon-line,#554b71);
  border-radius:14px;
  background:var(--neon-panel,#22213c);
  color:var(--neon-text,#f2eafd);
}
#modal .basket-history :is(h3,h4,p) { margin:0; }
#modal .basket-history h4 { margin-top:14px;font-size:.875rem; }
#modal .basket-history p { margin-top:6px;color:var(--neon-muted,#c6bedb); }
.basket-history ul { display:grid;gap:0;list-style:none;margin:6px 0 0;padding:0; }
.basket-history li {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  padding:8px 0;
  border-top:1px solid var(--neon-line,#554b71);
  font-size:.875rem;
}
.basket-history time { color:var(--neon-muted,#c6bedb); }
.basket-history li strong { font-variant-numeric:tabular-nums; }
