/*
 * Layout A, Two Thumbs (docs/plans/19-phone-layouts.md; mockup
 * docs/mockups/mobile-match.html). Sideways: cards and amount keys under the
 * left thumb, squads under the right, the overview above them. Upright: the
 * same parts folded into one dock. This file only says where each piece
 * goes; what the pieces look like is in hud-kit.css and hud-cards.css.
 */
:root[data-hud='a'][data-phone][data-orient='landscape'] {
  /* Menu sits left of the overview's column. */
  --mn-r: 9.25rem;
  --mm-t: 0;
  --vw-t: calc(8.75rem * 2 / 3 + var(--gap) + 2px);
  /* Squads: two rows of three in the bottom right corner, All in the first cell. */
  --sq-cols: repeat(3, var(--key));
  --sq-rows: repeat(2, var(--key));
  --all-r: calc(2 * var(--step));
  --all-b: var(--step);
  /* Cards: three rows of two above the amount keys. */
  --dk-b: var(--step);
  --dk-w: 12.5rem;
  --dk-cols: repeat(2, minmax(0, 1fr));
  --dk-rows: repeat(3, var(--key));
  --am-w: 12.5rem;
  /* The bottom line runs between the two thumbs. */
  --tr-l: 13rem;
  --tr-r: 9.25rem;
}

:root[data-hud='a'][data-phone][data-orient='portrait'] {
  --dock-squads: calc(var(--step) + 2 * var(--key) + 2 * var(--gap));
  --mm-t: var(--step);
  --mm-w: 7.75rem;
  /* Bottom row: the amount keys, then the view keys. */
  --vw-b: 0;
  --am-r: 9rem;
  /* Above it: the six cards, three to a row. */
  --dk-r: 0;
  --dk-b: var(--step);
  --dk-cols: repeat(3, minmax(0, 1fr));
  --dk-rows: repeat(2, var(--key));
  /* Above them: All and the five squads in one row. */
  --sq-l: 0;
  --sq-b: var(--dock-squads);
  --sq-cols: repeat(6, minmax(0, 1fr));
  --sq-rows: var(--key);
  --all-l: 0;
  --all-b: var(--dock-squads);
  --all-w: calc((100% - 5 * var(--gap)) / 6);
  /* And the bottom line on top of the dock. */
  --tr-b: calc(var(--dock-squads) + var(--step));
}
