/* The mode step as a list (item 809, owner 2026-10-25): one row per game mode, a picture of the mode
   on the left, the name and its hint beside it, the players on the right. Loads last, after the
   row of cards of items 571, 634 and 752 (landing-board.css) and the phone's list (landing-touch.css),
   and takes both over, so a computer and a phone show the same list. */
.mode-icon {
  flex: none;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mode-icon .solid {
  fill: var(--ink);
}
html #gear #step-start .mode-tiles {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-columns: auto;
  gap: var(--tile-gap, 10px);
}
html #gear #step-start .mode-tiles .choice.mode-tile {
  display: grid;
  grid-template-columns: var(--icon, 40px) minmax(0, 1fr) auto;
  grid-template-areas: 'icon name live' 'icon blurb live';
  align-items: center;
  align-content: center;
  justify-items: start;
  column-gap: 14px;
  row-gap: 1px;
  min-height: 0;
  height: auto;
  padding: 6px 16px 6px 12px;
  text-align: left;
}
/* The perforation hugs the edge, so a two-line row keeps its text inside it. */
html #gear #step-start .mode-tiles .choice.mode-tile {
  --tilt: 0.3deg;
}
html #gear #step-start .mode-tiles .choice.mode-tile:nth-child(even) {
  --tilt: -0.3deg;
}
html #gear #step-start .mode-tiles .choice.mode-tile::after {
  inset: 3px;
}
html #gear #step-start .mode-tile .mode-icon {
  grid-area: icon;
  box-sizing: border-box;
  width: var(--icon, 40px);
  height: var(--icon, 40px);
  padding: 6px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff8e6;
}
html #gear #step-start .mode-tile .tile-name {
  grid-area: name;
  margin: 0;
  font: 900 clamp(17px, 1.4vw, 21px) / 1 var(--head);
  letter-spacing: 0.02em;
}
html #gear #step-start .mode-tile .tile-blurb {
  grid-area: blurb;
  display: block;
  margin: 0;
  font: 700 13px / 1.2 var(--head);
}
html #gear #step-start .mode-tile .tile-live {
  grid-area: live;
  margin: 0;
  justify-self: end;
  white-space: nowrap;
}
html #gear #step-start .mode-tile > b:not(.tile-name),
html #gear #step-start .mode-tile .tile-join {
  display: none;
}

/* A computer: the list stands above QUICK JOIN, five rows high. */
html #gear.haven:not([data-layout='touch']) #step-start:not(.off) {
  --tile-row: 62px;
  --tile-gap: 10px;
  --tiles-h: calc(5 * var(--tile-row) + 4 * var(--tile-gap));
}
html #gear.haven:not([data-layout='touch']) #step-start .mode-tiles {
  width: min(560px, 44%);
  height: var(--tiles-h);
  grid-template-rows: repeat(5, 1fr);
}
html #gear.haven:not([data-layout='touch']) #step-start .mode-tiles .choice.mode-tile {
  height: 100%;
}
/* A short window: lower rows, no hint line under the name of a row that is too low for two lines. */
@media (max-height: 800px) {
  html #gear.haven:not([data-layout='touch']) #step-start:not(.off) {
    --tile-row: 52px;
    --tile-gap: 6px;
    --icon: 32px;
  }
  html #gear #step-start .mode-tile .mode-icon {
    padding: 4px;
  }
  html #gear #step-start .mode-tile .tile-blurb {
    font-size: 12px;
  }
  html #gear.haven:not([data-layout='touch']) #step-start .mode-tile .tile-name {
    font-size: 16px;
  }
  html #gear.haven:not([data-layout='touch']) #step-start .mode-tiles .choice.mode-tile {
    padding-block: 4px;
  }
}
