/* Ställ upp! Multiplikation – only what differs from the other Ställ upp! games (../stallupp/stallupp.css has the
   squares, the strike, the glow; css/skolspel.css the box, the pad and the red pen).
   The grid: the round's widest number + its sign column, a small gap, then the minnessiffra squares to the RIGHT of
   the factor row – the kids' book writes them there, not above a column (multiplikation.js). */

.mu-sum {
  --carry-cell: calc(var(--cell) * 0.66);
  grid-template-columns:
    repeat(var(--round-columns, 3), var(--cell))
    calc(var(--cell) * 0.18)
    repeat(var(--round-carries, 1), var(--carry-cell));
  min-width: 0;
}

/* The multiplication sign: the book's raised dot, a little bigger than the digits' weight would make it */
.mu-times {
  font-size: 1.2em;
}

/* A minnessiffra square: smaller than a grid square, its bottom level with the factor row (the book's own small box) */
.su-note.mu-carry {
  align-self: end;
  justify-self: start;
  width: var(--carry-cell);
  height: var(--carry-cell);
  margin: 0 0.1rem 0.15rem 0;
  font-size: 0.7em;
}

/* The menu's three cards: wide enough for "Öva nivå:" + the six level buttons on one row (at the shared 15.5rem the
   6 wrapped onto a line of its own). Phones keep skolspel.css's one card a row. */
@media (min-width: 481px) {
  .skol-stage .skol-skills > .skol-skill-card {
    flex: 1 1 17.5rem;
    max-width: 18.5rem;
  }
}
