/*
 * THE FULL-SCREEN PAGES: the front page, setup, the lobby, the gallery a
 * burglar is dealt, and the reveal. One overlay, one of them up at a time.
 */

/* full-screen overlays: setup, the gallery, the result */
/* A FLEX CHILD, NOT A COVER. It used to be position:fixed inset:0, which put
   it over the header -- so the rules, the card sheet and the debug options
   were unreachable from every full-screen screen. Lifting the header above it
   fixed that and broke the other way: a scrolled sheet ran underneath. Sitting
   below the header in the ordinary layout is neither. */
#overlay {
  flex: 1 1 auto; min-height: 0; background: #ece8df;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
/* only one of them is ever up */
body:has(#overlay:not(.hidden)) main { display: none; }
#overlay .big { font-size: 30px; font-weight: 600; }
#overlay .sides { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
#overlay .side {
  width: 210px; padding: 16px; border-radius: 10px; cursor: pointer; text-align: left;
  background: #fbf9f5; border: 1px solid var(--line);
}
#overlay .side:hover { background: #ffffff; border-color: var(--accent); }
/* the gallery a burglar DREW is shown, not offered: nothing here to click */
#overlay .side.told, #overlay .side.told:hover {
  cursor: default; background: #ffffff; border-color: var(--accent);
}
#overlay .side b { display: block; font-size: 15px; margin-bottom: 5px; }
#overlay .side span { color: var(--dim); font-size: 12px; line-height: 1.4; }
/*
 * THE GALLERY CARD, and it is cut in two: the plate the exhibit stands on, and
 * the floor the room is laid with. The two halves are the card's two jobs --
 * remember this, then find this -- and nothing is centred in a single column
 * hoping the eye picks the right thing out of it.
 */
#overlay .galcard {
  position: relative; width: 204px; min-height: 248px; border-radius: 12px;
  display: flex; flex-direction: column; overflow: hidden;
  /* the outer dark line is what keeps a marble card -- whose paint is within a
     shade of the page -- from vanishing into it */
  border: 1px solid rgba(35,38,44,.55);
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
}
/*
 * A gallery is ringed on the screen of whoever is robbing it, and the card it is
 * dealt from says the same thing the same way -- ALL THE WAY ROUND. As an inset
 * shadow on the card it was painted under the card's own halves, so the half
 * with a plate on it covered its own share of the ring.
 *
 * WHITE, where it was gold. The ring says "this one is yours" and nothing else,
 * and gold was a colour with its own meanings on this board -- the shutters are
 * paid in it -- pressed into saying something quieter. White says only that it
 * is marked. It is the card's own dark outline that keeps the edge on a pale
 * floor; the ring sits inside it.
 */
#overlay .galcard::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  pointer-events: none;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .92);
}
/* WHAT IS IN THERE, on the plate a gallery is drawn on everywhere else */
#overlay .galcard .gtop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; padding: 32px 0 24px; color: #ffffff;
}
#overlay .galcard .gtop svg { display: block; opacity: .9; }
#overlay .galcard .gtop .exname {
  font-size: 11px; letter-spacing: .11em; text-transform: uppercase; opacity: .68;
}
/*
 * ...AND WHERE, on the room's own floor: the tile the board itself draws, and
 * the name printed on the plan in the same two characters. The floor is not
 * named -- it is the paint this half is on and the band round the tile.
 */
#overlay .galcard .gbot {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 20px 0;
}
#overlay .galcard .gbot .tile { display: block; line-height: 0; }
#overlay .galcard .gbot .tile svg { width: 48px; height: auto; }
#overlay .galcard .gbot b { font-size: 27px; font-weight: 650; letter-spacing: -.01em; }
/* the copy number, which decides a same-round tie and nothing else, so it sits
   on the card as quietly as a thing that rarely matters should */
#overlay .galcard .rank {
  position: absolute; top: 11px; right: 14px;
  font-size: 12px; font-weight: 600; color: #ffffff; opacity: .5;
}
#overlay .galnote { color: var(--dim); font-size: 13px; text-align: center;
  max-width: 330px; line-height: 1.5; }
#overlay .galnote .fine { display: block; margin-top: 9px; font-size: 12px;
  opacity: .75; font-style: italic; }
/* one line a burglar, read down: they were laid out in a row that wrapped, so
   two lines of it sat sixteen pixels apart for no reason either of them gave */
.routekey { display: flex; flex-direction: column; gap: 4px; font-size: 12px;
  color: var(--dim); }
.routekey i { display: inline-block; width: 15px; height: 3px; border-radius: 2px;
  margin-right: 6px; vertical-align: middle; }
/*
 * The opening screen is the only one that has to hold several unrelated
 * choices at once, so it is banded: a titled section for each, and nothing
 * else competing for the middle. Everything in it is centred on one column
 * whose width is set here rather than by whichever row happens to be widest.
 */
#overlay.setupScreen { justify-content: flex-start; overflow-y: auto; padding: 28px 20px 34px; }
/* centred while it fits, scrolled from the top when it does not */
#overlay .setup { width: 100%; max-width: 800px; margin: auto 0; }
#overlay .setup > * + * { margin-top: 22px; }
#overlay .wordmark {
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #a79e8b; text-align: center;
}
#overlay .setup .big, #overlay .setup .sub { text-align: center; }
#overlay .setup .sub { margin: 6px auto 0; max-width: 580px; }
#overlay .band { display: flex; flex-direction: column; align-items: center; gap: 11px; }
/* a rule with the section's name sitting in it */
#overlay .legend {
  width: 100%; display: flex; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--dim);
}
#overlay .legend::before, #overlay .legend::after {
  content: ''; flex: 1 1 auto; height: 1px; background: var(--line);
}
/*
 * The reference sheet, reachable from a screen that covers the header button.
 * Not called "corner": a card's floor glyph is a .corner too, and an #overlay
 * rule beats the .card one, so every card on the sheet had its glyph torn out
 * and stacked in this spot.
 */
#overlay .seatrow { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
/* the two burglars sit together and the two museums sit together: a wider gap
   between the pairs than inside them is the whole of what says so */
#overlay .seatgroups { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
#overlay .seat {
  width: 178px; padding: 12px 14px; border-radius: 10px; cursor: pointer; text-align: left;
  background: #fbf9f5; border: 1px solid var(--line); color: inherit; font: inherit;
}
#overlay .seat:hover { border-color: var(--accent); }
/* somebody else's chair: readable, and not a button */
#overlay .seat.taken { opacity: .55; cursor: default; }
#overlay .seat.taken:hover { border-color: var(--line); }
#overlay .seat.on { border-color: var(--accent); background: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
#overlay .seat b { display: block; font-size: 14px; }
#overlay .seat span { display: block; color: var(--dim); font-size: 11.5px; margin: 2px 0 6px; }
#overlay .seat em {
  font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--dim);
}
#overlay .seat.on em { color: var(--accent); }
/*
 * Buildings are chosen by looking at them, so each one is a card with the plan
 * drawn on it. Three to a row at every width the screen is usable at, because
 * six of them wrapping 4-and-2 reads as two groups rather than one shelf.
 */
#overlay .plans { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#overlay .plan {
  padding: 9px 9px 10px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 13px;
  background: #fbf9f5; border: 1px solid var(--line); color: inherit; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
}
#overlay .plan:hover { border-color: var(--accent); }
#overlay .plan.on { border-color: var(--accent); background: #ffffff; box-shadow: inset 0 0 0 1px var(--accent); }
#overlay .plan b { font-weight: 600; }
#overlay .plan.on b { color: var(--accent); }
#overlay .plan span { display: block; color: var(--dim); font-size: 11px; font-weight: 400; }
/* the one number that decides how a building plays, said first and darker */
#overlay .plan .heist { color: var(--ink); font-size: 11.5px; }
/*
 * The drawing is given a fixed height and its own paper, so six buildings of
 * six different shapes still line their names up with one another. The plan
 * sits in the middle of it at whatever size it fits, which is what the board
 * itself does with the window.
 */
#overlay .thumb {
  height: 124px; margin-bottom: 7px; padding: 5px; border-radius: 6px;
  background: #f1ede4; border: 1px solid #e2dccf;
}
#overlay .plan.on .thumb { background: #ece7db; border-color: #d6cfbe; }
#overlay .thumb svg { width: 100%; height: 100%; display: block; }
/* narrower than the column it sits in, so it has to centre itself: inside a
   .band the flex does it, and the one under the start button is a child of
   .setup, where nothing was doing it and the line sat 120px off to the left */
#overlay .planNote {
  color: var(--dim); font-size: 12px; text-align: center;
  max-width: 560px; margin-inline: auto;
}
/* who ends up playing what: said here, so the button below never has to */
/* ------------------------------------------------------- the first screen
   One question, asked once, with the game's own face on it rather than a
   paragraph describing it. */
/* `margin: auto 0` is what centres it while it fits and lets it scroll from
   the top when it does not -- the same trick the setup page uses. */
#overlay .home {
  display: flex; flex-direction: column; gap: 28px;
  width: 100%; max-width: 940px; margin: auto 0;
}
/* a grid rather than a centred row, so the title's left edge is the same left
   edge as the two panels under it */
#overlay .home .hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px; align-items: center;
}
#overlay .home .herotext { min-width: 0; }
#overlay .home h1 {
  margin: 0; font-size: 40px; line-height: 1.05; letter-spacing: -.015em;
  font-weight: 700; color: var(--ink);
}
#overlay .home .pitch {
  margin: 12px 0 16px; font-size: 15.5px; line-height: 1.5; color: var(--dim);
}
/* six floors, six chips, one row -- they are a set and they read as one */
#overlay .home .chips { display: flex; flex-wrap: wrap; gap: 4px; }
#overlay .home .chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px 4px 6px; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid rgba(35, 38, 44, .16);
}
#overlay .home .chip .cglyph { font-size: 12px; line-height: 1; }
/* the museum, small, on the paper it is drawn on */
#overlay .home .heroplan {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; box-shadow: 0 1px 3px rgba(60, 50, 30, .10);
}
/* wide enough for the room names and glyphs to be read: the outline version
   was legible at 230, this one is the board and needs the board's room */
#overlay .home .heroplan svg { display: block; width: 380px; height: auto; }
/* and on the same beige every other drawing of the board is shown on */
#overlay .home .heroplan { background: var(--figbg); border-color: #e7dfd0; }

#overlay .home .choices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  width: 100%; align-items: stretch;
}
#overlay .home .choice {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 18px 20px; box-shadow: 0 1px 2px rgba(60, 50, 30, .06);
}
#overlay .home .choice .chead {
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--dim); font-weight: 700;
}
#overlay .home .choice p {
  margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink);
}
/* the button sits on the floor of the panel, so two panels of unequal prose
   still line their buttons up. Starting a table and joining one are the same
   offer read left to right, so they share a line and only break onto two if
   the panel is too narrow to hold them. */
#overlay .home .choice .cgo {
  margin-top: auto; padding-top: 4px;
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: center; gap: 10px;
}
#overlay .home .choice .joiner { margin: 0; }
#overlay .home .whynot { color: var(--dim); font-size: 12.5px; line-height: 1.45; }
@media (max-width: 720px) {
  #overlay .home .choices { grid-template-columns: 1fr; }
  #overlay .home h1 { font-size: 32px; }
}

/* The code to read down a phone: the one thing on the lobby screen that
   somebody has to get right, so it is the largest thing on it. */
#overlay .roomcode { font-size: 46px; font-weight: 700; letter-spacing: 7px;
  color: var(--accent); font-variant-numeric: tabular-nums; }
#overlay .joiner { color: var(--dim); font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px; }
#overlay .joiner input#myName { width: 11em; text-transform: none; letter-spacing: 0; }
#overlay .joiner input { width: 6.5em; text-transform: uppercase; letter-spacing: 2px;
  font: inherit; font-size: 13px; padding: 5px 7px; text-align: center;
  border: 1px solid var(--line); border-radius: 5px;
  background: var(--paper); color: inherit; }
#overlay .seat em i { font-style: normal; color: var(--dim); font-weight: 400; }
#overlay .seatsTaken { color: var(--dim); font-size: 12.5px; }
#overlay .seatsTaken b { color: var(--accent); font-weight: 600; }
#overlay .go { display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* two buttons that belong beside each other rather than under each other */
#overlay .go.row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
/* the way out of somewhere, which should never compete with the way on */
#overlay button.quiet {
  background: none; border-color: transparent; color: var(--dim);
  text-decoration: underline; text-underline-offset: 3px;
}
#overlay button.quiet:hover { color: var(--ink); background: none; border-color: transparent; }
#overlay .go button.primary { font-size: 15px; padding: 10px 30px; border-radius: 8px; }
#overlay .sub { color: var(--dim); max-width: 460px; text-align: center; }
/*
 * THE HAND A NIGHT ENDED WITH. It is the reason the screen exists, so it is laid
 * out as a hand and not as a list: cards at the size they are held at, on the
 * tray the board lays cards on everywhere else.
 *
 * Nothing here is picked up, so nothing offers to be: the grab cursor a card
 * wears in a hand would be a promise this screen cannot keep.
 */
#overlay .lasthand {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 10px;
  background: var(--tray); border: 1px solid var(--trayline);
}
#overlay .lasthand h2 {
  margin: 0; font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--dim); font-weight: 600;
}
#overlay .lasthand .hrow { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; }
#overlay .lasthand .card { cursor: default; }
#overlay .lasthand .none { color: var(--dim); font-size: 13px; }
/*
 * THE REVEAL: one row a player, and every row the same shape -- who, what
 * happened to them, what it cost, and the detail under it.
 *
 * ONE COLOUR SYSTEM AND ONE BOLD. The tint, the rail and the number are the
 * OUTCOME, in the three colours the result panel beside the board scores with;
 * bold is the name and the number and nothing else. It had four hues and three
 * different things wearing weight, and the dummy was said once in words and
 * again in gold, which left the reader looking for what the gold meant.
 */
.tallies { display: flex; flex-direction: column; gap: 8px; width: 470px; }
.tally {
  display: grid; align-items: center; gap: 2px 11px;
  grid-template-columns: 15px 1fr auto;
  padding: 11px 14px 11px 12px; border-radius: 10px;
  background: #fbf9f5; border: 1px solid var(--line);
  border-left: 3px solid var(--line);
}
/* the mark is the same one the row and the panel wear -- see .bdot in base.css */
.tally > .bdot { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.tally > .bdot.museum { border-radius: 3px; background: var(--museum); }
/* who, and what happened to them: one line, because it is one sentence */
.tally .who { grid-column: 2; grid-row: 1; display: flex; align-items: baseline; gap: 8px; }
.tally .who b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.tally .who em { font-style: normal; font-size: 12.5px; }
/* the gallery they went for, and the detail that settles it */
.tally .took {
  grid-column: 2; grid-row: 2; font-size: 11.5px; color: var(--dim);
  display: flex; align-items: center; gap: 7px;
}
/* the exhibit that stood in it, on that gallery's own floor */
.tally .took .gal {
  flex: none; width: 21px; height: 21px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(35, 38, 44, .3);
}
.tally .pts {
  grid-column: 3; grid-row: 1 / span 2; font-size: 22px; font-weight: 700;
  min-width: 42px; text-align: right; font-variant-numeric: tabular-nums;
}
.tally.exhibit { border-color: #2f8f5b; background: #f2f9f4; }
.tally.exhibit .pts { color: #2f8f5b; }
.tally.away { border-color: #b8a45e; background: #f7f4ec; }
.tally.away .pts { color: #8a6d1f; }
.tally.caught { border-color: #b03a30; background: #fbeceb; }
.tally.caught .pts { color: #b03a30; }
/* the museums' line is a row like the other two -- it stands where it scored, so
   spacing it apart from them said nothing; what it is PAINTED is the night it
   had, in the same three tints as the rows above; see museumOutcome */
/*
 * THE TWO REFERENCE SCREENS are the same kind of thing as each other, so they
 * are cut from the same stock: a sheet of paper laid on the table, with the
 * overlay's darker paper all around it, and the way out riding along the top
 * of it. Both are taller than the window -- the scroller keeps no top padding
 * of its own, because a sticky head pins to the top of the scrollport and a
 * padded scrollport leaves a strip above it for the text to run through. The
 * sheet carries that gap itself instead.
 *
 * What differs between them is width alone: the rulebook is read in lines, the
 * card sheet is scanned in tiles.
 */
