/* Adaptations de l’habillage : tablette, bureau et paysage compact. */
@media (min-width: 620px) {
  .hud {
    padding: 24px;
  }
  .brand img {
    width: 80px;
  }
  .brand-title {
    font-size: 22px;
  }
  .brand small {
    font-size: 10px;
    max-width: 180px;
  }
  .match-players {
    max-width: 550px;
    margin: 2px auto 0;
    gap: 16px;
  }
  .player {
    padding: 12px 18px;
  }
  .player h2 {
    font-size: 13px;
  }
  .player strong {
    font-size: 16px;
  }
  .tools {
    right: 24px;
    top: 28px;
    gap: 8px;
  }
  #camera {
    width: auto;
    display: flex;
    gap: 9px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
  }
  .menu {
    right: 24px;
    top: 88px;
  }

  .online-badge {
    top: 240px;
    font-size: 11px;
  }
  .bottom {
    left: 24px;
    right: 24px;
    bottom: 24px;
    grid-template-columns: 360px 1fr;
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 20px;
    gap: 12px 20px;
  }
  .stick {
    grid-column: 1;
    grid-row: 1 / span 2;
    grid-template-columns: 82px 88px 124px;
    gap: 5px 14px;
    padding-right: 20px;
    border-right: 1px solid var(--line);
  }
  .spin-frame {
    width: 82px;
    height: 68px;
  }
  .spin {
    width: 62px;
    height: 62px;
  }
  #hit {
    min-height: 54px;
  }
  .contact-label,
  .spin-hint {
    font-size: 10px;
  }
  .status {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 12px;
  }
  .power-panel {
    grid-column: 2;
    grid-row: 2;
    border-bottom: 0;
    padding-bottom: 0;
  }
  .power-panel small {
    display: block;
    grid-column: 2;
    font-size: 10px;
    color: var(--muted);
  }
  .placement-controls {
    left: auto;
    right: 24px;
    width: 340px;
    top: 282px;
  }
  .placement-controls button {
    font-size: 12px;
  }
  #minimap {
    right: 24px;
    top: 282px;
  }
  #placement-controls:not([hidden]) ~ #minimap {
    top: 390px;
  }
}
@media (min-width: 1100px) {
  .top {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }
  .match-players {
    margin: 0;
    justify-self: center;
    width: 520px;
  }

  .online-badge {
    top: 163px;
  }
  .placement-controls,
  #minimap {
    top: 218px;
  }
  #placement-controls:not([hidden]) ~ #minimap {
    top: 326px;
  }
}
/* Petits écrans en paysage : instruments compacts sur la bordure inférieure. */
@media (min-width: 600px) and (orientation: landscape) and (max-height: 520px) {
  .hud {
    padding: 10px 16px;
  }
  .top {
    display: flex;
    align-items: start;
    gap: 16px;
  }
  .brand img {
    width: 46px;
  }
  .brand-title {
    font-size: 15px;
  }
  .brand small {
    display: none;
  }
  .brand-copy {
    padding-left: 6px;
  }
  .match-players {
    width: 330px;
    gap: 8px;
    margin: 0;
  }
  .player {
    padding: 6px 10px;
  }
  .player h2 {
    font-size: 10px;
  }
  .player strong {
    font-size: 11px;
  }
  .dots {
    margin-top: 3px;
    min-height: 5px;
  }
  .dot {
    width: 5px;
    height: 5px;
  }
  .tools {
    right: 16px;
    top: 14px;
  }
  #camera {
    font-size: 0;
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .online-badge {
    top: 118px;
    font-size: 9px;
  }
  .bottom {
    bottom: 10px;
    left: 16px;
    right: 16px;
    padding: 8px 12px;
    grid-template-columns: 280px 1fr;
    gap: 6px 12px;
    border-radius: 22px;
  }
  .stick {
    grid-template-columns: 62px 64px 100px;
    gap: 3px 10px;
    padding-right: 12px;
  }
  .spin-frame {
    width: 62px;
    height: 47px;
  }
  .spin {
    width: 44px;
    height: 44px;
  }
  .elevation {
    height: 42px;
  }
  #hit {
    min-height: 46px;
    font-size: 15px;
  }
  .contact-label,
  .spin-hint {
    font-size: 8px;
  }
  .status {
    font-size: 10px;
  }
  .power-panel small {
    display: none;
  }
  .menu {
    top: 66px;
    max-height: calc(100dvh - 78px);
  }
  .placement-controls {
    top: 142px;
    padding: 8px;
    width: 300px;
  }
  .placement-controls > span {
    display: none;
  }
  #minimap {
    top: 142px;
    width: 160px;
  }
  #placement-controls:not([hidden]) ~ #minimap {
    top: 200px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .online-badge.attention {
    outline: 2px solid var(--accent);
  }
}

@media (min-width: 620px) {
  .match-players {
    grid-template-columns: 1fr 80px 1fr;
  }
  .match-score {
    font-size: 30px;
    column-gap: 7px;
  }
  .match-score small {
    font-size: 9px;
  }
}
@media (min-width: 600px) and (orientation: landscape) and (max-height: 520px) {
  .match-players {
    grid-template-columns: 1fr 64px 1fr;
  }
  .match-score {
    font-size: 24px;
  }
  .match-score small {
    font-size: 7px;
  }
}

@media (min-width: 620px) {
  .match-players {
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    padding: 9px;
  }
  .player {
    padding: 10px 16px;
  }
  .player h2 {
    font-size: 13px;
  }
  .player.active h2::after {
    font-size: 10px;
  }
  .player strong {
    font-size: 12px;
  }
  .match-score {
    font-size: 30px;
  }
  .match-score small {
    font-size: 9px;
  }
}
@media (min-width: 600px) and (orientation: landscape) and (max-height: 520px) {
  .match-players {
    padding: 4px;
    grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  }
  .player {
    padding: 4px 9px;
    gap: 2px;
  }
  .player h2 {
    font-size: 10px;
  }
  .player.active h2::after {
    font-size: 8px;
  }
  .player strong {
    font-size: 10px;
  }
  .match-score {
    font-size: 22px;
    padding: 0 6px;
    margin: 3px 0;
  }
  .match-score small {
    font-size: 7px;
  }
}

@media (min-width: 620px) {
  .balls-row {
    gap: 4px;
    min-height: 20px;
  }
  .dot {
    width: 18px;
    height: 18px;
  }
  .ball-tray-note {
    font-size: 10px;
  }
}
@media (min-width: 600px) and (orientation: landscape) and (max-height: 520px) {
  .balls-row {
    gap: 2px;
    min-height: 14px;
  }
  .dot {
    width: 12px;
    height: 12px;
  }
  .ball-tray-note {
    font-size: 8px;
  }
}
