/* Select screen, 1088 x 612. Values from kit/studies/04-select-screen.html, in design pixels.
   Every rule is scoped to .fmt--select, so nothing here reaches the host page.
   Text elements set their own line height, so a host page's line height does not move them. */

/* the study's body: Geist 16, line height normal */
.fmt--select .sel{
  font-family:var(--f-head);font-size:calc(16 * var(--u));font-weight:400;font-style:normal;line-height:normal;
  letter-spacing:normal;text-transform:none;text-align:left;white-space:normal;
  color:var(--paper);
}

/* the title */
.fmt--select .sel-title{
  position:absolute;left:0;right:0;top:calc(34 * var(--u));
  text-align:center;
  font-family:var(--f-pixel);font-weight:400;font-size:calc(17 * var(--u));line-height:normal;
  letter-spacing:.04em;text-transform:uppercase;
  color:var(--red);
}

/* the big portrait */
.fmt--select .sel-big{
  position:absolute;left:calc(64 * var(--u));top:calc(92 * var(--u));
  width:calc(300 * var(--u));height:calc(360 * var(--u));
  box-sizing:border-box;
  border:calc(2 * var(--u)) solid var(--red);
  overflow:hidden;
}

/* art of another aspect than its box (a square sprite in a tile) covers the box, like the study's background-size:cover */
.fmt--select .sel-big .f-art,
.fmt--select .sel-im .f-art{object-fit:cover}
.fmt--select .sel-big .f-art{object-position:50% 0}

/* the name block */
.fmt--select .sel-nm{position:absolute;left:calc(64 * var(--u));top:calc(468 * var(--u));width:calc(340 * var(--u))}
.fmt--select .sel-name{
  font-family:var(--f-head);font-weight:800;font-size:calc(25 * var(--u));line-height:normal;
  letter-spacing:-.01em;text-transform:uppercase;
  color:var(--paper);
}
.fmt--select .sel-lines{margin-top:calc(8 * var(--u));font-size:calc(10.5 * var(--u));line-height:1.5;color:var(--label-ink,#b5afa6)}
.fmt--select .sel-lines span{display:block;line-height:inherit}

/* the grid of tiles */
.fmt--select .sel-grid{
  position:absolute;left:calc(432 * var(--u));top:calc(92 * var(--u));
  display:grid;grid-template-columns:repeat(3,calc(184 * var(--u)));
  gap:calc(14 * var(--u)) calc(18 * var(--u));
}
.fmt--select .sel-tile{position:relative}
.fmt--select .sel-im{
  width:calc(184 * var(--u));height:calc(170 * var(--u));
  box-sizing:border-box;
  border:calc(2 * var(--u)) solid var(--frame);
  overflow:hidden;
}
.fmt--select .sel-label{
  display:block;margin-top:calc(8 * var(--u));
  font-family:var(--f-pixel);font-weight:400;font-size:calc(7.5 * var(--u));line-height:normal;
  text-transform:uppercase;white-space:nowrap;
  color:var(--label-ink,#b5afa6);
}

/* the selected tile: paper border, an ink ring, a red ring, and the 1P cursor */
.fmt--select .sel-tile.is-on .sel-im{
  border-color:var(--paper);
  box-shadow:0 0 0 calc(2 * var(--u)) var(--ink),0 0 0 calc(4 * var(--u)) var(--red);
}
.fmt--select .sel-tile.is-on .sel-label{color:var(--paper)}
.fmt--select .sel-cursor{
  position:absolute;left:calc(8 * var(--u));top:calc(8 * var(--u));z-index:2;
  padding:calc(4 * var(--u)) calc(5 * var(--u)) calc(3 * var(--u));
  background:var(--red);color:var(--ink);
  font-family:var(--f-pixel);font-weight:400;font-size:calc(8 * var(--u));line-height:normal;
  text-transform:uppercase;
}

/* a locked slot */
.fmt--select .sel-tile.is-locked .sel-im{
  display:flex;align-items:center;justify-content:center;
  background:var(--lock,#101010);
}
.fmt--select .sel-glyph{font-family:var(--f-pixel);font-weight:400;font-size:calc(54 * var(--u));line-height:normal;color:var(--lock-ink,#2a2a2a)}

/* the hint row */
.fmt--select .sel-hint{
  position:absolute;left:calc(432 * var(--u));right:calc(64 * var(--u));bottom:calc(44 * var(--u));
  display:flex;justify-content:space-between;align-items:center;
  font-family:var(--f-pixel);font-weight:400;font-size:calc(8 * var(--u));line-height:normal;
  text-transform:uppercase;
  color:var(--red);
}
.fmt--select .sel-hint-text{line-height:inherit}
