/* Préparation — header compact, shell sans min-height artificiel */

@media (max-width: 620px) {
  body.setup-mode .setup-wizard-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.setup-mode .setup-wizard-head-main {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
  }

  body.setup-mode .setup-wizard-head .eyebrow {
    display: none;
  }

  body.setup-mode .setup-wizard-heading {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.setup-mode .setup-wizard-progress {
    flex: 0 0 auto;
    justify-content: center;
    gap: 6px;
    order: 0;
  }

  body.setup-mode .setup-step-dot {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }

  body.setup-mode .setup-wizard-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    order: 0;
  }

  body.setup-mode .setup-wizard-actions .setup-nav-btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  body.setup-mode #setupDeckBuilderButton {
    flex: 1 1 auto;
    min-height: 40px;
    font-size: 0.78rem;
  }

  body.setup-mode .setup-wizard-actions .setup-nav-next,
  body.setup-mode .setup-wizard-actions #startDuelButton {
    flex: 1 1 auto;
    min-height: 44px;
  }

  body.setup-mode .setup-wizard-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  body.setup-mode .setup-wizard-step {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 0 0 12px;
    -webkit-overflow-scrolling: touch;
  }

  body.setup-mode .setup-step-lead {
    margin: 0 0 10px;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  body.setup-mode .setup-view {
    gap: 8px;
  }

  body.setup-mode .app-header .header-actions {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    gap: 6px;
    width: 100%;
    max-width: none;
  }

  body.setup-mode #deckBuilderButton,
  body.setup-mode #headerCollectionButton,
  body.setup-mode #newMatchButton {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
