/* Tablet / iPad layout (720–1039px: iPad portrait and 1024px landscape).
   Full-width app (no floating desktop card), bottom dock kept, everything scaled up for touch. */
@media (min-width: 720px) and (max-width: 1039px) {
  body { background: var(--bg); }
  #app {
    max-width: 960px; margin: 0 auto;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    padding: 18px max(32px, env(safe-area-inset-right, 0px)) 36px max(32px, env(safe-area-inset-left, 0px));
  }
  .home-soft, .road-soft, .words-soft, .set-soft, .acc-soft { margin-left: auto; margin-right: auto; }

  /* bottom dock */
  .dock { max-width: 620px; border-radius: 30px; padding: 10px; }
  .dock-item { font-size: 12.5px; gap: 5px; padding: 8px 2px 12px; }
  .dock-item svg { width: 26px; height: 26px; }
  main#screen { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }

  /* home / roadmap / lists */
  .hero-banner { min-height: 190px; padding: 28px 30px; }
  .hb-text h2 { font-size: 28px; }
  .lesson-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .ph-title h1 { font-size: 28px; }
  .soft .word-row { padding: 14px 18px; }
  .soft .word-row .w { font-size: 17px; }

  /* study screens */
  .study-wrap, .sbar { max-width: 660px; }
  .study-actions, .diff-dock { max-width: 660px; padding-left: 24px; padding-right: 24px; }
  .sbar-btn { width: 44px; height: 44px; }
  .sbar-prog { height: 14px; }
  .sbar-count { font-size: 14px; }
  .card { padding: 40px 36px; border-radius: 30px; }
  .flip3d { min-height: min(420px, 48vh); }
  .word-text { font-size: 44px; }
  .vi-text { font-size: 30px; }
  .vi-text-compact { font-size: 24px; }
  .ipa-text { font-size: 19px; }
  .preview-sub-text { font-size: 19px; }
  .pos-badge { font-size: 13.5px; padding: 5px 14px; }
  .audio-btn { width: 66px; height: 66px; }
  .audio-btn svg { width: 26px; height: 26px; }
  .slot { min-width: 54px; height: 64px; font-size: 25px; }
  .chip { min-width: 64px; height: 64px; font-size: 26px; }
  .type-input { font-size: 25px; padding: 18px 20px; }
  .btn { min-height: 52px; font-size: 16px; }
  .page-heading { font-size: 22px; }
  .success-banner { max-width: 620px; margin: 4vh auto 0; padding: 32px 40px 28px; }
  .success-banner .sb-word { font-size: 38px !important; }

  /* sheets open as centred dialogs instead of bottom sheets */
  .ex-sheet-wrap { align-items: center; }
  .ex-sheet { border-radius: 22px; max-height: 80vh; }
}
/* iPad landscape with a short screen: keep the flashcard and the action bar on one screen */
@media (min-width: 720px) and (max-width: 1039px) and (max-height: 820px) {
  .flip3d { min-height: min(360px, 44vh); }
  .card { padding: 30px 32px; }
}
