@media (min-width: 641px) and (max-width: 1100px) {
  .dossier { width: min(720px, 86vw); }
  body.touch #minimap { width: 112px; height: 112px; }
  .hud-left { flex-basis: 240px; }
}
@media (min-width: 1500px) {
  body { font-size: 17px; }
  .dossier { width: min(760px, 42vw); }
  .brand b { font-size: 17px; }
  .brand span, .goal-f { font-size: 12px; }
  .hbtn { font-size: 15px; padding: 9px 16px; }
  body.touch #minimap { width: 160px; height: 160px; }
}
@media (min-width: 2200px) {
  .dossier { width: 860px; }
  .card { max-width: 820px; }
  .d-body, .d-sec { font-size: 18px; }
  .d-head h2 { font-size: 54px; }
}
@media (max-height: 620px) and (orientation: landscape) {
  .hud-top { padding-top: 6px; }
  .goal { max-height: 190px; overflow: auto; }
  body.touch #minimap { width: 82px; height: 82px; }
  .game-box { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); padding: 15px; }
  .game-body { min-height: 180px; }
  .target-arena { height: 190px; }
  .horn { bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); right: 96px; }
}
@media (max-width: 640px) {
  body.touch #minimap { width: 92px; height: 92px; }
  .brand span { display: none; }
  .hud-left { flex-basis: 170px; }
  .goal { padding: 8px 10px; gap: 5px; }
  .goal-time { font-size: 15px; }
  .hbtn { width: 42px; height: 42px; padding: 0; font-size: 17px; }
  .hbtn .lbl { display: none; }
  .card { padding: 20px; gap: 14px; }
  .card p.lead { font-size: 15px; }
  .d-head, .d-sec, .d-body, .d-foot { padding-left: 16px; padding-right: 16px; }
  .d-head .x { right: 12px; }
  .tabs { padding: 0 64px 0 16px; }
  .pitch div { grid-template-columns: 1fr; gap: 2px; }
  .lrow { grid-template-columns: minmax(0, 1fr) auto; }
  .lrow .lk { grid-column: 1 / -1; }
  /* Modals become bottom sheets that can be swiped down from the header. */
  .game-modal { place-items: end stretch; padding: 0; }
  .game-box {
    width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0; border-bottom: 0;
    padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 16px); gap: 14px;
    animation: sheet .3s cubic-bezier(.2,.9,.3,1);
  }
  .sheet-grip { display: block; }
  .game-foot .btns { width: 100%; }
  .game-foot .btns .btn { flex: 1; }
  .ch-item { grid-template-columns: 40px minmax(0, 1fr); }
  .ch-ico { width: 40px; height: 40px; }
  .ch-state { grid-column: 2; justify-self: start; }
}
@keyframes sheet { from { transform: translateY(40%); opacity: .5; } }
@media (max-width: 430px) {
  .hud-top { padding-left: 8px; padding-right: 8px; gap: 8px; }
  .hud-right { gap: 5px; }
  .hud-btns { gap: 5px; }
  .hbtn { width: 40px; height: 40px; }
  .goal { max-width: 180px; }
  .target-arena { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
