@media (max-width: 900px) {
  .app-shell {
    width: min(700px, calc(100% - 32px));
  }

  .start-screen {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 15px 0 25px;
  }

  .start-copy {
    text-align: center;
  }

  .eyebrow {
    margin-top: 27px;
  }

  .start-copy h1,
  .start-lead {
    margin-right: auto;
    margin-left: auto;
  }

  .course-sketch {
    display: none;
  }

  .setup-card {
    width: min(476px, 100%);
    margin-inline: auto;
  }

  .shot-panel {
    grid-template-columns: minmax(140px, 1fr) auto;
  }

  .power-meter {
    grid-column: 1;
    grid-row: 2;
  }

  .shot-buttons {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 620px) {
  .home-link {
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .app-shell {
    width: min(100% - 16px, 520px);
    padding: 8px 0 13px;
  }

  .start-screen {
    gap: 14px;
    padding: 3px 0 14px;
  }

  .start-copy .brand {
    margin-top: 3px;
  }

  .brand {
    font-size: 0.69rem;
  }

  .eyebrow {
    margin-top: 16px;
  }

  .start-copy h1 {
    margin-top: 6px;
    font-size: clamp(3.05rem, 15.5vw, 4.7rem);
  }

  .start-lead {
    max-width: 340px;
    margin-top: 12px;
    font-size: 0.81rem;
    line-height: 1.45;
  }

  .setup-card {
    padding: 15px;
    border-radius: 22px;
  }

  .setup-card__header {
    min-height: 43px;
    padding-bottom: 10px;
  }

  .setup-icon {
    width: 38px;
    height: 38px;
  }

  .setup-fieldset {
    margin-top: 10px;
  }

  .setup-option {
    min-height: 49px;
    padding: 6px 7px;
  }

  .setup-option--wide {
    min-height: 54px;
  }

  .setup-option--wide svg {
    width: 21px;
    height: 21px;
  }

  .setup-option--compact {
    min-height: 40px;
  }

  .primary-button {
    min-height: 49px;
    margin-top: 13px;
  }

  .game-header {
    min-height: 45px;
    padding-bottom: 5px !important;
  }

  .game-header .brand > span:last-child {
    display: none;
  }

  .match-bar {
    grid-template-columns: minmax(0, 1fr) minmax(90px, 0.72fr) minmax(0, 1fr);
    gap: 5px;
    margin: 6px 0;
  }

  .player-card,
  .turn-status {
    min-height: 54px;
    border-radius: 12px;
  }

  .player-card {
    gap: 5px;
    padding: 5px 6px;
  }

  .player-ball {
    width: 11px;
    height: 11px;
    border-width: 1.5px;
  }

  .player-card small {
    font-size: 0.44rem;
  }

  .player-card strong {
    max-width: 58px;
    font-size: 0.61rem;
  }

  .player-card em {
    font-size: 0.44rem;
  }

  .player-card b {
    font-size: 1.35rem;
  }

  .turn-status {
    min-width: 90px;
    padding: 5px;
  }

  .turn-status strong {
    font-size: 0.53rem;
  }

  .turn-status small {
    font-size: 0.58rem;
  }

  .course-stage {
    padding: 4px;
    border-radius: 16px;
  }

  #course-canvas {
    border-radius: 12px;
  }

  .shot-panel {
    min-height: 111px;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-top: 6px;
    padding: 8px;
    border-radius: 14px;
  }

  .shot-copy {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
  }

  .shot-copy small {
    white-space: normal;
  }

  .power-meter {
    grid-column: 1;
    grid-row: 2;
    width: min(250px, 85%);
    margin-inline: auto;
  }

  .shot-buttons {
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
  }

  .shot-buttons button {
    min-width: 43px;
    height: 43px;
  }

  .shot-buttons .shoot-button {
    min-width: 73px;
  }

  .game-footer {
    min-height: 35px;
  }

  .game-footer p {
    max-width: 70%;
    font-size: 0.52rem;
  }
}

@media (max-width: 360px) {
  .setup-card {
    padding: 13px;
  }

  .setup-option--wide small,
  .setup-option--level small {
    display: none;
  }

  .setup-option--level {
    justify-content: center;
    gap: 5px;
  }

  .level-bars {
    display: none;
  }

  .player-card strong {
    max-width: 44px;
  }

  .player-ball {
    display: none;
  }

  .shot-buttons {
    gap: 3px;
  }

  .shot-buttons button {
    min-width: 41px;
    padding-inline: 7px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .app-shell {
    padding-block: 10px;
  }

  .eyebrow {
    margin-top: 28px;
  }

  .start-copy h1 {
    font-size: clamp(4rem, 7vw, 5.7rem);
  }

  .course-sketch {
    margin-top: 24px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
