.ball-coach[data-intent="windup"] {
  background:#483b3aef;
  border-color:#ffda8e;
  color:#fff2d3;
  box-shadow:0 3px 0 #3c343775;
}
.ball-coach[data-intent="windup"] #ball-cue { color:#ffe0a0; }
.ball-coach[data-intent="intercept"] #ball-cue { color:#bce6ff; }
.ball-coach[data-intent="receive"] { background:#173e40ef; border-color:#a9e6c6; }
.ball-coach[data-intent="receive"] #ball-cue { color:#baf2d1; }
.ball-coach[data-intent="receive"] .ball-commit i { background:linear-gradient(90deg,#65b6a0,#dcf8b7); }
.ball-coach[data-intent="shot-aim"] { background:#214355ef; border-color:#b1f1eb; }
.ball-coach[data-intent="shot-aim"] #ball-cue { color:#d6fff4; }
#app[data-play="ball"] #race #interact.shoot-aiming { background:#b3e9e6; color:#1b3f49; border-color:#4d908c; box-shadow:0 3px 0 #285b60,0 0 0 2px #93daf0; }
#app[data-play="ball"] #jump[data-ball-receive] { background:#c6efd6; color:#213d48; }
#app[data-play="ball"] #jump[data-ball-receive="stance"] { background:#a5e5ce; box-shadow:0 2px 0 #275158,0 0 0 2px #c0f4c7; }
#app[data-play="ball"] #jump[data-ball-receive="success"] { background:#daf6ae; }
#app[data-play="ball"] #jump:is([data-ball-receive="cooldown"],[data-ball-receive="inactive"]) { opacity:.64; }
.ball-tier-grid + .ball-practice-options { margin-top:8px; margin-bottom:0; }
.ball-commit {
  height:4px;
  border-radius:9px;
  overflow:hidden;
  background:#251e276e;
}
.ball-commit i {
  display:block;
  height:100%;
  transform-origin:left;
  background:linear-gradient(90deg,#e9ae74,#fff0ad);
}
.ball-tactics-receipt {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin:9px 0;
}
.ball-tactics-receipt div {
  min-width:0;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:4px;
  padding:6px 8px;
  color:#3e5964;
  border:1px solid #abc6c3;
  border-radius:8px;
  background:#e6f2e8;
}
.ball-tactics-receipt dt { font-size:11px; font-weight:800; }
.ball-tactics-receipt dd { margin:0; color:#294a58; font:900 19px/1.2 system-ui,sans-serif; font-variant-numeric:tabular-nums; }
.ball-tactics-receipt[data-receives] { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (orientation:landscape) and (max-height:445px) {
  #dialog[data-kind="ball-result"] .dialog-content { padding-block:10px; }
  #dialog[data-kind="ball-result"] .result-summary h2 { margin-bottom:1px; font-size:26px; }
  #dialog[data-kind="ball-result"] .result-summary p { margin-bottom:4px; }
  #dialog[data-kind="ball-result"] .dialog-actions { margin-top:8px; }
}
@media (orientation:landscape) and (max-height:365px) {
  #dialog[data-kind="ball-guide"] .dialog-content {
    display:grid;
    grid-template-columns:minmax(0,1.85fr) minmax(144px,1fr);
    gap:5px 8px;
    padding:9px 16px;
  }
  #dialog[data-kind="ball-guide"] :is(h2,.ball-match-intro) { grid-column:1 / -1; }
  #dialog[data-kind="ball-guide"] h2 { margin-bottom:5px; font-size:24px; line-height:1.2; }
  #dialog[data-kind="ball-guide"] .dialog-close { top:6px; }
  #dialog[data-kind="ball-guide"] .ball-lineup { min-height:43px; padding-block:3px; }
  #dialog[data-kind="ball-guide"] .ball-tier { padding:5px 7px; }
  #dialog[data-kind="ball-guide"] .ball-tier h3 { margin-bottom:1px; }
  #dialog[data-kind="ball-guide"] .ball-tier p { margin-bottom:2px; }
  #dialog[data-kind="ball-guide"] .ball-tier-actions { margin-top:3px; }
  #dialog[data-kind="ball-guide"] .ball-tier-grid + .ball-practice-options {
    grid-template-columns:minmax(0,1fr);
    align-content:start;
    gap:5px;
    margin-top:0;
  }
  #dialog[data-kind="ball-guide"] .ball-training-quick { padding-block:3px; }
  #dialog[data-kind="ball-result"] .dialog-content {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:5px 8px;
    padding:10px 16px;
  }
  #dialog[data-kind="ball-result"] :is(.result-summary,.ball-final-score,.ball-tactics-receipt,.result-reward) { grid-column:1 / -1; }
  #dialog[data-kind="ball-result"] .ball-tactics-receipt { margin-block:5px; }
  #dialog[data-kind="ball-result"] .result-reward { margin:0 !important; }
  #dialog[data-kind="ball-result"] .dialog-actions { margin:0; }
  #dialog[data-kind="ball-result"] .result-activity-footer { align-self:end; margin:0; padding:0; border:0; }
}
@media (max-width:380px) and (orientation:portrait) {
  .ball-tactics-receipt div { flex-direction:column; align-items:flex-start; }
  .ball-tactics-receipt[data-receives] { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
