/*
 * Phone styles. The game's own look, the same for every room: dark wood,
 * brass and paper. Circles are places, diamonds are people.
 * The bars are thin on purpose: the screen belongs to the spot you stand at.
 */
:root {
  --ink: #100d0a;
  --panel: #1a1510;
  --panel-hi: #2b2219;
  --line: #4a3b27;
  --brass: #c9a24b;
  --brass-hi: #ecc76b;
  --brass-lo: #7d6530;
  --parchment: #eadfc6;
  --paper-ink: #2b2217;
  --muted: #9a8b70;
  --red: #c8483c;
  --green: #6fbf8f;
  --display: 'Alegreya', Georgia, serif;
  --ui: 'Alegreya Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--ui);
  font-size: 18px;
  line-height: 1.16;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}
body {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.hidden { display: none !important; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled { cursor: default; }

/* ---- header: one thin line ---- */

#top {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--brass);
}
#top .dot {
  flex: none;
  width: 15px; height: 15px;
  margin: 0 12px 0 4px;
  border-radius: 3px;
  transform: rotate(45deg);
  border: 2px solid var(--parchment);
}
#top .me {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}
#top .time { font-family: var(--display); font-weight: 900; font-size: 20px; color: var(--brass-hi); }
#top .dim { font-size: 16px; }

/* A help note: a slip of paper under the header. */
#hint {
  padding: 8px 14px;
  background: var(--parchment);
  border-bottom: 2px solid var(--brass);
  color: var(--paper-ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.14;
}

/* ---- main ---- */

#main {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
}
h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 27px;
  line-height: 1.05;
}
p { margin: 0 0 7px; }
.dim { color: var(--muted); }
.center { text-align: center; margin: auto 0; }
.center h1 { font-size: 34px; color: var(--brass-hi); }

.field {
  width: 100%;
  height: 56px;
  padding: 0 14px;
  margin-bottom: 12px;
  border: 1px solid var(--brass-lo);
  border-radius: 8px;
  background: var(--panel);
  color: var(--parchment);
  font: inherit;
  font-size: 21px;
  -webkit-user-select: text;
  user-select: text;
}
.field:focus { outline: 0; border-color: var(--brass-hi); }

/* Brass plate for the main action, an outlined one for the rest. */
.primary, .secondary {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 700;
}
.primary { background: var(--brass); color: var(--ink); border-bottom: 3px solid var(--brass-lo); }
.primary:active { background: var(--brass-hi); border-bottom-width: 1px; margin-top: 2px; }
.secondary { min-height: 46px; background: transparent; border: 1px solid var(--brass-lo); color: var(--parchment); }
.secondary:active { background: var(--panel-hi); }

.roster { list-style: none; margin: 4px 0 16px; padding: 0; }
.roster li {
  display: flex; align-items: center;
  height: 46px; padding: 0 12px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  font-family: var(--display); font-weight: 700; font-size: 20px;
}
.roster .dot { width: 15px; height: 15px; border-radius: 3px; margin: 0 14px 0 5px; border: 2px solid var(--parchment); transform: rotate(45deg); }

/* ---- the list of spots ---- */

.spots { display: flex; flex-wrap: wrap; margin: 0 -5px; }
.spot-btn {
  position: relative;
  width: calc(50% - 10px);
  min-height: 104px;
  margin: 5px;
  padding: 10px 10px 10px 12px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--brass-lo);
}
.spot-btn:active { background: var(--panel-hi); border-color: var(--brass-hi); }
.spot-btn .letter {
  display: block;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: 27px;
  line-height: 40px;
  text-align: center;
}
.spot-btn .name { display: block; margin-top: 7px; font-size: 19px; font-weight: 700; line-height: 1.1; }
.spot-btn .who { display: flex; align-items: center; margin-top: 5px; font-size: 16px; font-weight: 700; }
.spot-btn .who .dot { flex: none; width: 12px; height: 12px; border-radius: 2px; margin: 0 9px 0 3px; border: 2px solid var(--parchment); transform: rotate(45deg); }
.spot-btn.full { background: transparent; border: 1px dashed var(--line); cursor: default; }
.spot-btn.full .letter { background: var(--line); }
.spot-btn.full .name { color: var(--muted); }

/* ---- one spot ---- */

.spot-title { display: flex; align-items: center; margin-bottom: 10px; }
.spot-title .letter {
  flex: none;
  width: 40px; height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: 27px;
  line-height: 40px;
  text-align: center;
}
.spot-title .name { font-family: var(--display); font-weight: 900; font-size: 25px; line-height: 1.05; }

/* The close-up, mounted like a photograph. */
.visual {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--brass-lo);
  border-radius: 4px;
  background: #17120d;
  text-align: center;
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.visual.compact { min-height: 64px; }
.visual svg { display: block; margin: 0 auto; max-width: 100%; }
.visual svg.wide { width: 100%; height: auto; }
.visual .bar, .visual .steps { align-self: stretch; }
.visual .caption { font-size: 15px; color: var(--muted); }
.visual .symbol-name { font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--brass-hi); }
.visual.chime { border-color: var(--brass-hi); }

.bar { height: 12px; margin-top: 10px; border-radius: 6px; background: var(--panel-hi); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--brass-hi); transform-origin: 0 50%; }
.steps { display: flex; justify-content: center; margin-top: 10px; }
.steps i { width: 14px; height: 14px; margin: 0 4px; border-radius: 50%; border: 2px solid var(--brass-lo); }
.steps i.lit { background: var(--brass-hi); border-color: var(--parchment); }

.lines p { font-size: 18px; margin-bottom: 5px; }
.controls { margin-top: auto; padding-top: 8px; }

/* A handle you keep your thumb on. */
.hold {
  width: 100%;
  min-height: 96px;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 20px;
  font-weight: 700;
  background: var(--panel);
  border: 2px solid var(--brass);
  color: var(--brass-hi);
  touch-action: none;
  -webkit-touch-callout: none;
}
.hold.held { background: var(--brass-hi); color: var(--ink); }

/* A lock: paper wheels above, brass keys below. */
.code-display { display: flex; justify-content: center; margin-bottom: 10px; }
.code-display span {
  width: 52px; height: 60px; margin: 0 5px;
  border-radius: 6px; border: 2px solid var(--brass); background: var(--parchment); color: var(--paper-ink);
  font-family: var(--display); font-size: 36px; font-weight: 900; line-height: 56px; text-align: center;
}
.keypad { display: flex; flex-wrap: wrap; margin: 0 -4px 6px; }
.keypad button {
  width: calc(33.333% - 8px); height: 52px; margin: 4px;
  font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--brass-hi);
  background: var(--panel); border: 1px solid var(--brass-lo);
}
.keypad button:active { background: var(--panel-hi); }
.keypad .wide { width: calc(66.666% - 8px); font-family: var(--ui); font-size: 18px; font-weight: 700; color: var(--parchment); }
/* The twenty-four capitals, seven to a row: three rows and three letters, and the rest of the fourth row wipes one out. */
.keypad.letters { margin: 0 -3px 6px; }
.keypad.letters button { width: calc(14.2857% - 6px); margin: 3px; padding: 0; font-size: 23px; }
.keypad.letters .wide { width: calc(57.1428% - 6px); font-size: 17px; }

/* ---- footer: what you carry, on one thin line ---- */

#bag {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 5px 12px;
  border-top: 1px solid var(--brass);
}
/* As many places as hands. A full one is a brass chip, a free one a dashed outline. */
#bag .items { flex: 1; min-width: 0; display: flex; align-items: center; }
#bag .item, #bag .free {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  margin-right: 8px;
  padding: 0 8px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 36px;
  text-align: center;
}
#bag .item { background: var(--brass); color: var(--ink); font-weight: 700; }
#bag .free { border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
#bag .help {
  flex: none; min-height: 38px; padding: 4px 12px;
  border-radius: 6px; background: transparent; border: 1px solid var(--brass-lo); font-weight: 700; font-size: 16px;
}

/* ---- sheet, toasts ---- */

#sheet {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  background: rgba(10, 8, 6, 0.82);
}
#sheet .panel { padding: 16px 14px 4px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--brass); }
#sheet .row { display: flex; margin: 0 -4px; }
#sheet .row button { flex: 1; margin-left: 4px; margin-right: 4px; padding-left: 4px; padding-right: 4px; }

#toasts {
  position: fixed;
  left: 10px; right: 10px; top: 48px;
  pointer-events: none;
}
/* Notes on paper, with a coloured edge for good and bad news. */
.toast {
  margin-bottom: 5px;
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 6px solid var(--brass);
  background: var(--parchment);
  color: var(--paper-ink);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  animation: drop 0.2s;
}
.toast.good { border-left-color: #3f9a68; }
.toast.warn { border-left-color: var(--red); }
@keyframes drop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#offline {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 8px;
  background: var(--red);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

.spot-btn .letter b, .spot-title .letter b { font-weight: 900; }
/* The number of a spot: figures that stand on the line, as tall as a capital (the typeface's own hang under it). */
.spot-btn .letter, .spot-title .letter { font-feature-settings: "lnum"; font-variant-numeric: lining-nums; }

/* ---- item thumbnails ---- */

.thumb { flex: none; width: 28px; height: 28px; border-radius: 5px; }
#bag .item { display: flex; align-items: center; justify-content: center; padding: 0 6px 0 4px; }
#bag .item .thumb { margin-right: 6px; }
#bag .item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.item-head { display: flex; align-items: center; margin-bottom: 10px; }
.item-head .thumb { width: 52px; height: 52px; margin-right: 12px; border: 1px solid var(--brass-lo); border-radius: 8px; }
.item-head h1 { margin: 0; }

/* Something landed in your hands. */
#sheet .panel.got { text-align: center; padding-top: 22px; }
.thumb.big { width: 120px; height: 120px; margin: 0 auto 12px; display: block; border: 2px solid var(--brass); border-radius: 14px; }
#sheet .panel.got p { margin-bottom: 2px; }
#sheet .panel.got h1 { margin-bottom: 16px; color: var(--brass-hi); }

/* A choice that is blocked right now. It still answers when tapped. */
.secondary.blocked { border-style: dashed; border-color: var(--line); color: var(--muted); }
.secondary.blocked small { display: block; font-size: 14px; font-weight: 400; }

/* ---- reactions ---- */

#top .emote { flex: none; width: 34px; height: 34px; margin-left: 4px; padding: 4px; background: transparent; border-radius: 50%; }
#top .emote img { display: block; width: 26px; height: 26px; }
#top .emote:active { background: var(--panel-hi); transform: scale(1.25); }
#top .time { margin-left: 10px; }

/* Messages sit above an open sheet, or the reason for a blocked choice would be hidden behind it. */
#sheet { z-index: 5; }
#toasts { z-index: 10; }

/* The letter badges and the item names use the display face. */
.spot-btn .letter, .spot-title .letter { font-family: var(--display); }

/* What state the thing at a spot is in. The TV only shows it in the picture. */
.spot-btn .state { display: block; margin-top: 3px; font-size: 15px; color: var(--muted); }
.spot-btn .state.on { color: var(--brass-hi); font-weight: 700; }
.spot-btn .state.done { color: var(--green); font-weight: 700; }

/* ---- spot letters as evidence markers: an upright yellow card with a black letter and a folded top ---- */

.spot-btn .letter, .spot-title .letter {
  position: relative;
  width: 32px; height: 43px;
  border-radius: 3px;
  border: 2px solid var(--ink);
  background: #f2c94c;
  color: var(--ink);
  font-size: 26px;
  line-height: 45px;
  overflow: hidden;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
}
.spot-btn .letter:before, .spot-title .letter:before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 5px;
  background: var(--brass);
  border-bottom: 1px solid var(--ink);
}
.spot-btn.full .letter { background: var(--line); }
.spot-btn.full .letter:before { background: var(--line); }

/* ---- close-up pictures ---- */

.visual.image { position: relative; display: block; min-height: 0; padding: 0; overflow: hidden; border-color: var(--brass-lo); box-shadow: none; }
.visual.image img { display: block; width: 100%; height: auto; }
/* Above a keypad there is little room: show a strip from the middle of the picture. */
.visual.image.compact { height: 112px; }
.visual.image.compact img { height: 100%; object-fit: cover; }
.visual.image .over { position: absolute; left: 4%; right: 4%; top: 50%; transform: translateY(-50%); }
.visual.image .over svg { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)); }

/* The start button while the TV is still fetching its files. */
.primary.waiting { background: var(--panel-hi); color: var(--muted); border-bottom-color: var(--line); }

/*
 * ---- spot cards of one fixed size ----
 * Each card has the same three places whatever is going on: who is there (top
 * right, beside the letter), the name, and the state. An empty place stays
 * empty; nothing grows, shrinks or pushes its neighbours.
 */
.spot-btn { height: 118px; min-height: 0; padding: 10px 10px 8px 12px; overflow: hidden; }
.spot-btn .letter { margin: 0; }
.spot-btn .who-slot { position: absolute; right: 8px; top: 12px; max-width: calc(100% - 60px); }
.spot-btn .who { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.spot-btn .who .dot { margin: 0 8px 0 3px; }
.spot-btn .name { margin-top: 9px; height: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-btn .state { margin-top: 2px; height: 18px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#sheet h2 { margin: 12px 0 6px; font-family: var(--display); font-weight: 900; font-size: 21px; }
#sheet .panel { max-height: 100%; overflow-y: auto; }

/*
 * ---- around the rooms: the door, the lobby, the map, the result, the host's gear ----
 */

/* Every diamond is a player, wherever it appears. */
.dot { display: inline-block; flex: none; width: 15px; height: 15px; border-radius: 3px; border: 2px solid var(--parchment); transform: rotate(45deg); }
#top .me.brand { font-weight: 900; color: var(--brass-hi); letter-spacing: 0.5px; }

/* The clock: brass while it runs, pale while it stands, red in extra time. */
#top .time.still { color: var(--muted); }
#top .time.over { color: var(--red); }
/* Where a room has a time of its own on the clock, it stands small under the game's: two lines in the place of one. */
#top .time.two { white-space: pre; font-size: 17px; line-height: 1.02; text-align: right; }
#top .time.two::first-line { font-size: 20px; }
#top .time.two.low { color: var(--red); }

/* The host's gear, drawn: a ring with eight teeth. */
#top .gear { flex: none; width: 36px; height: 36px; margin-left: 8px; padding: 0; background: transparent; border-radius: 50%; }
#top .gear:active { background: var(--panel-hi); }
#top .gear i {
  display: block; width: 18px; height: 18px; margin: 9px;
  border-radius: 50%;
  border: 4px solid var(--brass-hi);
  box-shadow: 0 -8px 0 -5px var(--brass-hi), 0 8px 0 -5px var(--brass-hi), 8px 0 0 -5px var(--brass-hi), -8px 0 0 -5px var(--brass-hi),
    6px 6px 0 -5px var(--brass-hi), -6px 6px 0 -5px var(--brass-hi), 6px -6px 0 -5px var(--brass-hi), -6px -6px 0 -5px var(--brass-hi);
}

/* What the game asks of them before a code is used: its own voice, in the middle of the plain words. */
.invite { margin: 12px 0; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 22px; line-height: 1.15; color: var(--brass-hi); }

/* A form at the door. */
.door { margin: auto 0; }

/*
 * The door with no screen in front of it: the address was opened on a phone. What the game needs, where a code comes
 * from, the screen's number for whoever has no camera. It is the one page of the phone that is read and scrolled.
 */
.land { margin: 0; }
.land-cover {
  position: relative;
  height: 132px;
  margin: -14px -14px 14px;
  background: var(--panel) center 24% / cover no-repeat;
}
.land-cover:after { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(16, 13, 10, 0.15), rgba(16, 13, 10, 0.2) 40%, #100d0a); }
.land-cover span {
  position: absolute; left: 14px; right: 14px; bottom: 6px; z-index: 1;
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: 24px; color: var(--parchment);
}
/* The showcase: the games as cards, one under the other. A card is its picture on top and, under it, its title,
   how many play, how long, how hard, and a ticket or free. */
.shelf { margin: 12px 0 16px; }
.shelf-game {
  display: block; position: relative; margin: 0 0 14px; padding: 0 0 12px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--panel); color: var(--parchment); text-decoration: none;
}
.shelf-game:active { border-color: var(--brass); }
.shelf-pic { display: block; height: 170px; margin: 0 0 10px; background: var(--panel) 62% 40% / cover no-repeat; }
.shelf-game b { display: block; padding: 0 14px 6px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 23px; line-height: 1.15; }
.shelf-line { display: block; padding: 0 14px; font-size: 16px; line-height: 1.5; }
.shelf-line i { font-style: normal; color: var(--muted); }
.shelf-game em {
  display: inline-block; margin: 8px 14px 0; padding: 2px 12px; border: 1px solid var(--brass); border-radius: 4px;
  color: var(--brass-hi); font-style: normal; font-weight: 700; font-size: 14px; letter-spacing: 0.5px;
}
.shelf-game em.shelf-free { border-color: #b83228; background: #b83228; color: #fff3e0; }
/* A free code for an email: the box that is its condition, said in full beside it, and the code once it is given. */
.gratis-consent { display: flex; align-items: flex-start; gap: 12px; margin: 12px 0 6px; text-align: left; font-size: 15px; line-height: 1.35; color: var(--parchment); }
.gratis-consent input { flex: 0 0 auto; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--brass); }
.gratis-code { margin: 16px 0 18px; font-family: var(--display); font-weight: 900; font-size: 32px; letter-spacing: 1px; text-align: center; color: var(--brass-hi); user-select: all; -webkit-user-select: all; }
.land-steps { list-style: none; margin: 12px 0 14px; padding: 0; }
.land-steps li { display: flex; align-items: center; margin-bottom: 10px; line-height: 1.2; }
.land-steps li b {
  flex: none;
  width: 26px; height: 34px;
  margin-right: 12px;
  border-top: 5px solid var(--brass);
  border-radius: 2px;
  background: #f2c94c;
  color: var(--ink);
  font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 29px; text-align: center;
}
.land-steps strong { color: var(--brass-hi); }
.land-shop b { display: block; font-size: 20px; }
/* Wherever a phone says where a code comes from («Δεν έχεις κωδικό; Πάρε…»), it is one red button, in both games:
   under the field for a code, and on the page of a phone with no screen in front of it (the designer, 21 November
   2026: "the buttons to get a code red, in both"). */
.getcode, .land-shop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; min-height: 54px; margin: 8px 0 12px; padding: 10px 14px;
  border: 0; border-bottom: 3px solid #7f2219; border-radius: 8px;
  background: #b83228; color: #fff3e0;
  font-size: 18px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
}
.getcode:active, .land-shop:active { background: #cf4236; border-bottom-width: 1px; margin-top: 10px; }
.land-pair { margin: 0 0 8px; font-size: 16px; }
.land-row { display: flex; align-items: stretch; }
.land-row .field { flex: 1; min-width: 0; height: 50px; margin: 0 8px 0 0; font-size: 24px; }
.land-row .primary { flex: none; width: auto; min-height: 50px; margin: 0; padding: 0 16px; font-size: 18px; }
.land-links { margin: 14px 0 0; text-align: center; font-size: 16px; }
.land-links a { display: inline-block; margin: 0 8px; padding: 6px 0; color: var(--muted); }
.land-links a:active { color: var(--brass-hi); }
.door h1 { font-size: 30px; color: var(--brass-hi); }
/* Under the title of the game, what this screen asks for: «Ο κωδικός σας». */
.door h2 { margin: -4px 0 6px; font-family: var(--display); font-weight: 900; font-size: 21px; color: var(--parchment); }
.field.code { font-family: var(--display); font-weight: 900; font-size: 27px; letter-spacing: 2px; text-align: center; }
.form-error { min-height: 21px; margin: -4px 0 8px; color: #f08a7e; font-weight: 700; }
.link { display: block; width: 100%; min-height: 44px; margin-top: 6px; background: transparent; color: var(--brass-hi); font-size: 17px; text-decoration: underline; }
a.link { display: flex; align-items: center; justify-content: center; text-align: center; }
.seat { display: flex; align-items: center; text-align: left; font-family: var(--display); font-size: 20px; }
.seat .dot { margin: 0 14px 0 5px; }

.roster li.away { border-style: dashed; color: var(--muted); }
.roster li small { margin-left: 8px; font-family: var(--ui); font-size: 14px; font-weight: 400; color: var(--muted); }
.roster.manage li .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster.manage li .secondary { flex: none; width: auto; min-height: 34px; margin: 0 -4px 0 8px; padding: 4px 10px; font-family: var(--ui); font-size: 15px; }

/* The rooms of the experience, as a list: behind you, in front of you, still locked. */
.rooms { list-style: none; margin: 6px 0 14px; padding: 0; text-align: left; }
.rooms li {
  display: flex; align-items: center;
  height: 46px; padding: 0 12px 0 8px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
}
.rooms .n {
  flex: none; width: 28px; height: 28px; margin-right: 10px;
  border-radius: 50%; border: 1px solid var(--brass-lo);
  font-family: var(--display); font-weight: 900; font-size: 17px; line-height: 27px; text-align: center; color: var(--brass-hi);
}
.rooms .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.rooms .ms { flex: none; margin-left: 8px; font-family: var(--display); font-weight: 700; color: var(--muted); }
.rooms.map li.done .n { background: var(--green); border-color: var(--green); color: var(--ink); }
.rooms.map li.done .t { color: var(--muted); }
.rooms.map li.next { border-color: var(--brass-hi); }
.rooms.map li.next .n { background: var(--brass-hi); border-color: var(--brass-hi); color: var(--ink); }
.rooms.map li.locked { border-style: dashed; background: transparent; }
.rooms.map li.locked .t { color: var(--muted); font-weight: 400; }
.rooms.map li.locked .n { color: var(--muted); border-color: var(--line); }

.result .total { margin: 6px 0 2px; font-family: var(--display); font-weight: 900; font-size: 46px; color: var(--parchment); }
.result .total small { display: block; font-family: var(--ui); font-size: 16px; font-weight: 400; color: #f08a7e; }

/* Things nobody present is holding. */
.loose { margin-bottom: 8px; }
.loose .secondary { display: flex; align-items: center; text-align: left; border-color: var(--brass-hi); }
.loose .thumb { margin-right: 10px; }

#sheet .panel p b { color: var(--brass-hi); }

/* ---- the team and the hall of fame ---- */

.team { margin: 2px 0 8px; font-size: 19px; }
.team b { font-family: var(--display); font-weight: 900; color: var(--brass-hi); }
.result { text-align: center; }
.result h1 { margin-top: 10px; font-size: 34px; color: var(--brass-hi); }
.result h2 { margin: 16px 0 4px; font-family: var(--display); font-weight: 900; font-size: 21px; color: var(--brass); letter-spacing: 1px; }
.result .place { margin: 0 0 6px; font-weight: 700; color: var(--parchment); }
.rooms.fame li.mine { border-color: var(--brass-hi); background: var(--panel-hi); }
.rooms.fame li.mine .n { background: var(--brass-hi); border-color: var(--brass-hi); color: var(--ink); }
.rooms.fame li.mine .ms { color: var(--brass-hi); }
#sheet .row.team-edit { align-items: flex-start; margin: 0 0 4px; }
#sheet .row.team-edit .field { flex: 1; min-width: 0; height: 46px; margin: 0 8px 10px 0; font-size: 19px; }
#sheet .row.team-edit button { flex: none; width: auto; margin: 0; padding: 0 16px; }

/*
 * ---- the host's gear, made to fit a phone ----
 * With four players it is taller than the screen. It scrolls, it can always be
 * closed from the top, and what a tester needs sits first.
 */
#sheet .panel.gear-panel { position: relative; padding-top: 12px; }
#sheet .panel .x {
  position: absolute; right: 6px; top: 6px;
  width: 42px; height: 42px; padding: 0;
  background: transparent; color: var(--muted);
  font-size: 30px; line-height: 40px;
}
#sheet .panel .x:active { color: var(--parchment); }
.gear-panel h1 { margin-bottom: 8px; padding-right: 44px; }
.gear-panel h2 { margin: 8px 0 5px; font-size: 19px; }
.gear-panel .primary { min-height: 48px; }
.gear-panel .roster.manage { margin: 0 0 4px; }
.gear-panel .roster.manage li { height: 40px; margin-bottom: 5px; font-size: 18px; }
.gear-panel .roster.manage li .secondary { min-height: 30px; }
.test-tools { margin: 0 0 10px; padding: 8px 8px 0; border: 1px dashed var(--brass); border-radius: 8px; }
.test-tools p { margin: 0 2px 6px; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brass); }
.test-tools .secondary { min-height: 44px; margin-bottom: 8px; border-color: var(--brass); color: var(--brass-hi); }

/*
 * ---- seats: a tester with stand-in players picks whose hands the phone is ----
 * One thin row under the header, one place per player, always the same width.
 */
#seats { display: flex; padding: 5px 6px; border-bottom: 1px solid var(--line); background: var(--panel); }
.seat-chip {
  flex: 1 1 0; min-width: 0; height: 34px; margin: 0 3px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px dashed var(--line); border-radius: 6px;
  color: var(--muted); font-size: 15px; font-weight: 700;
}
.seat-chip span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-chip .dot { width: 11px; height: 11px; margin: 0 8px 0 2px; border-radius: 2px; }
.seat-chip.on { border: 1px solid var(--brass-hi); background: var(--panel-hi); color: var(--parchment); }
.test-tools > .secondary { margin-top: 0; }

/* ---- what an experience with air, traps and gestures adds ---- */

/* Something to read off a thing in the room. */
.visual .bigtext { font-family: var(--display); font-weight: 900; line-height: 1.1; color: var(--brass-hi); word-break: break-word; }
.visual .bigtext.xl { font-size: 84px; }
.visual .bigtext.l { font-size: 54px; }
.visual .bigtext.m { font-size: 32px; }
.visual .bigtext.s { font-size: 21px; font-family: var(--ui); font-weight: 700; color: var(--parchment); }
.visual.compact .bigtext.xl { font-size: 44px; }
.visual.compact .bigtext.l { font-size: 34px; }
.visual.darkness { background: #050403; border-color: var(--line); box-shadow: none; }
.visual svg.maze { width: 236px; height: 236px; }

/* One of several. The buttons share a row and never change size with their words. */
.pick-label { margin: 0 0 4px; font-weight: 700; color: var(--muted); }
.pick { display: flex; flex-wrap: wrap; margin: 0 -4px 2px; }
.pick .secondary { flex: 0 0 auto; width: calc(50% - 8px); min-height: 46px; margin: 0 4px 8px; padding: 4px 4px; font-size: 17px; line-height: 1.05; }
.pick.cols1 .secondary { width: calc(100% - 8px); }
.pick.cols3 .secondary { width: calc(33.333% - 8px); }
.pick.cols4 .secondary { width: calc(25% - 8px); font-size: 20px; }
.pick.cols5 .secondary { width: calc(20% - 8px); font-size: 19px; }
.pick .secondary.on { background: var(--brass); border-color: var(--brass); color: var(--ink); }

/* Something to turn: the finger goes round it. The number in the middle is turns a second. */
.dial {
  position: relative;
  width: 168px; height: 168px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: 3px solid var(--brass);
  background: var(--panel);
  touch-action: none;
  -webkit-touch-callout: none;
}
.dial.turning { border-color: var(--brass-hi); background: var(--panel-hi); }
/* Next to the buttons that turn it by themselves, the dial gives up some room. */
.dial.small { width: 146px; height: 146px; }
.dial.small .knob:before { left: 32px; }
.dial .knob { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.dial .knob:before {
  content: "";
  position: absolute;
  left: 40px; top: -16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brass-hi);
  border: 3px solid var(--ink);
}
.dial .dial-rate {
  position: absolute;
  left: 50%; top: 50%;
  width: 70px; height: 40px;
  margin: -20px 0 0 -35px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  line-height: 40px;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}
.dial.turning .dial-rate { color: var(--brass-hi); }
.dial-how { margin-bottom: 8px; font-size: 15px; text-align: center; }

/* Held fast. */
.center.stun h1 { color: #f08a7e; }
.center.stun .count { font-family: var(--display); font-weight: 900; font-size: 64px; color: var(--parchment); }

/* Something over the eyes: it has to be wiped off with a finger. */
.smear {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -14px;
  padding: 24px;
  text-align: center;
  touch-action: none;
}
.smear h1 { font-size: 26px; }
.smear p { font-weight: 700; }
.smear.soot { background: #060505; color: #9a8b70; }
.smear.steam { background: #cfd6d3; color: #2b2217; }
.smear.umbrella { background: #14110f; color: #c9a24b; }
.smear.leaves { background: #1f3a22; color: #cfe3c4; }

/* A fright for one player. One flash, never a flicker. */
#fright {
  position: fixed;
  z-index: 20;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: #1c0806;
  text-align: center;
}
#fright i { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: #f3ead2; opacity: 0; }
#fright p { position: relative; margin: 0; font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1.12; color: #f3ead2; }
/* A fright that is seen: the picture across the whole screen, a little too near, and nothing written. */
#fright.seen { padding: 0; overflow: hidden; }
#fright.seen img { position: relative; display: block; width: 100%; transform: scale(2.3); animation: fright-near 0.22s; }
#fright.seen i { z-index: 1; }
@keyframes fright-near {
  from { transform: scale(2.9); }
  to { transform: scale(2.3); }
}
#fright.go i { animation: fright-flash 0.7s; }
#fright.go p { animation: fright-text 0.5s; }
@keyframes fright-flash {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes fright-text {
  0% { transform: scale(1.6); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* The way out of a solved room. */
.primary.pass { min-height: 96px; font-size: 28px; }
.secondary.waiting { border-style: dashed; color: var(--muted); }

/* What the group carries from room to room. */
/* The team's bag under the spots: one button, the same size whatever is in it. What is in it opens in a sheet. */
.bag-btn { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; min-height: 48px; margin: 10px 0 0; padding: 6px 12px 6px 14px; font-size: 17px; }
.bag-btn b { min-width: 30px; padding: 2px 8px; border-radius: 12px; background: var(--brass); color: var(--ink); font-size: 16px; text-align: center; font-feature-settings: "lnum"; }
#sheet .panel.bag-sheet h1 { margin-bottom: 4px; }
.bag-list { display: flex; flex-wrap: wrap; margin: 10px -4px 6px; }
.bag-thing { display: flex; align-items: center; width: calc(50% - 8px); min-height: 52px; margin: 0 4px 8px; padding: 4px 8px 4px 4px; border: 1px solid var(--brass-lo); border-radius: 6px; font-size: 16px; line-height: 1.15; color: var(--brass-hi); }
.bag-thing .thumb { width: 42px; height: 42px; margin-right: 8px; }
.bag-thing span { min-width: 0; }

/* Help has a price where the clock is air. */
#bag .help small { display: block; font-size: 12px; font-weight: 400; line-height: 1; color: #f08a7e; }
#sheet .panel p.cost { color: var(--parchment); }
#sheet .panel p.cost b { color: #f08a7e; }
/* Help already taken, kept to be read again: the words as the TV showed them, set apart from what is being asked. */
#sheet .panel .taken { margin: 0 0 14px; padding: 10px 12px 2px; border-left: 3px solid var(--brass); border-radius: 0 6px 6px 0; background: rgba(0, 0, 0, 0.28); }
#sheet .panel .taken p { margin: 0 0 8px; color: var(--parchment); font-size: 16px; line-height: 1.35; }
#bag .help small.gratis { color: var(--brass-hi); }
#bag .help.kept { position: relative; }
#bag .help.kept::after { content: ''; position: absolute; top: -5px; right: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--brass-hi); border: 2px solid var(--ink); }

.result .air { margin: 0 0 4px; font-weight: 700; color: var(--green); }
.result .air.bad { color: #f08a7e; }
.spot-btn .state.warn { color: #f08a7e; }

/* The page scrolls when a spot has more than fits. Nothing in it gives way instead. */
.visual, .spot-title, .lines, .controls, .dial, .pick { flex-shrink: 0; }
.visual.compact .caption { font-size: 13px; line-height: 1.15; }

/* Without a picture the close-up is only as tall as what it says. */
.visual.slim { min-height: 0; padding: 12px 10px; }
.visual.read { min-height: 118px; }
.visual.read.compact { min-height: 64px; }
.visual.darkness { min-height: 118px; }
.visual.darkness.compact { min-height: 64px; }
.hold small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.hold.held small { color: var(--paper-ink); }

/* Squeezed beside a keypad or a dial, what there is to read sits on one line with its caption. */
.visual.read.compact { flex-direction: row; flex-wrap: wrap; align-items: baseline; min-height: 0; padding: 9px 12px; }
.visual.read.compact .bigtext { margin-right: 12px; }
.visual.read.compact .bigtext.xl, .visual.read.compact .bigtext.l { font-size: 30px; }
.visual.read.compact .bigtext.m { font-size: 24px; }
.visual.darkness.compact { min-height: 48px; }

/* A handle that works only while a finger is on it: a hand, and a lamp that is lit just as long. */
.hold { position: relative; }
.hold .hand { display: block; font-size: 22px; line-height: 1; margin-bottom: 4px; }
.hold .lamp {
  position: absolute; right: 12px; top: 12px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--panel-hi); border: 2px solid var(--brass-lo);
}
.hold.held .lamp { background: #fff6d8; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 246, 216, 0.45); }

/*
 * ---- a short phone (360 by 560) ----
 * With a mannequin in the game every phone has the row of seats under its
 * header, and that row is taken from the room's close-up and its controls.
 * A short phone gets it back: a thinner row, lower keys, lower wheels.
 */
@media (max-height: 600px) {
  #seats { padding: 3px 6px; }
  .seat-chip { height: 28px; font-size: 14px; }
  .code-display { margin-bottom: 7px; }
  .code-display span { height: 50px; font-size: 32px; line-height: 46px; }
  .keypad button { height: 45px; margin: 3px 4px; }
  .dial { width: 150px; height: 150px; }
  .dial .knob:before { left: 33px; }
  .dial.small { width: 132px; height: 132px; }
  .dial.small .knob:before { left: 26px; }
  .pick .secondary { min-height: 42px; margin-bottom: 6px; }
  .visual.read { min-height: 84px; }
  .visual .bigtext.xl { font-size: 60px; }
  .visual .bigtext.l { font-size: 44px; }
}

/* Two things to hold at one spot: side by side, each for one thumb. */
.holds { display: flex; margin: 0 -4px; }
.holds .hold { flex: 1 1 0; min-width: 0; min-height: 84px; margin: 0 4px 10px; padding: 8px 6px; font-size: 17px; line-height: 1.1; }
.holds .hold small { font-size: 12px; }

/*
 * Half of a page torn from top to bottom. Its torn edge lies on the edge of the screen (the page's own padding is
 * taken back on that side), so two phones side by side make the page whole. Rows have one height on every phone.
 */
.torn {
  flex-shrink: 0;
  margin-bottom: 10px;
  padding: 8px 12px 10px;
  background: var(--parchment);
  color: var(--paper-ink);
  font-family: var(--display);
}
.torn.left {
  margin-right: -14px;
  padding-right: 10px;
  border-radius: 3px 0 0 3px;
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 4%, 100% 9%, calc(100% - 4px) 15%, 100% 22%, calc(100% - 6px) 29%, 100% 36%, calc(100% - 3px) 43%, 100% 51%, calc(100% - 5px) 58%, 100% 65%, calc(100% - 4px) 72%, 100% 80%, calc(100% - 6px) 87%, 100% 94%, calc(100% - 3px) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 4%, 100% 9%, calc(100% - 4px) 15%, 100% 22%, calc(100% - 6px) 29%, 100% 36%, calc(100% - 3px) 43%, 100% 51%, calc(100% - 5px) 58%, 100% 65%, calc(100% - 4px) 72%, 100% 80%, calc(100% - 6px) 87%, 100% 94%, calc(100% - 3px) 100%, 0 100%);
}
.torn.right {
  margin-left: -14px;
  padding-left: 10px;
  border-radius: 0 3px 3px 0;
  -webkit-clip-path: polygon(0 0, 5px 4%, 0 9%, 4px 15%, 0 22%, 6px 29%, 0 36%, 3px 43%, 0 51%, 5px 58%, 0 65%, 4px 72%, 0 80%, 6px 87%, 0 94%, 3px 100%, 100% 100%, 100% 0);
  clip-path: polygon(0 0, 5px 4%, 0 9%, 4px 15%, 0 22%, 6px 29%, 0 36%, 3px 43%, 0 51%, 5px 58%, 0 65%, 4px 72%, 0 80%, 6px 87%, 0 94%, 3px 100%, 100% 100%, 100% 0);
}
.torn-head { padding-bottom: 6px; }
.torn-head p { height: 23px; margin: 0; font-size: 17px; font-style: italic; line-height: 23px; white-space: nowrap; overflow: hidden; color: #6b2a1c; }
.torn.left .torn-head p { text-align: right; }
.torn ol { list-style: none; margin: 0; padding: 0; }
.torn li { position: relative; height: 37px; border-top: 1px solid rgba(43, 34, 23, 0.22); overflow: hidden; white-space: nowrap; }
.torn li b { position: absolute; top: 3px; width: 22px; font-family: var(--ui); font-size: 13px; font-weight: 700; opacity: 0.6; font-feature-settings: "lnum"; }
.torn li span { display: block; height: 21px; font-size: 19px; font-weight: 700; line-height: 22px; }
.torn li small { display: block; height: 15px; font-family: var(--ui); font-size: 13px; font-style: italic; line-height: 14px; opacity: 0.85; }
.torn.left li b { left: 0; }
.torn.left li span { text-align: right; }
.torn.left li small { text-align: left; padding-left: 22px; }
.torn.right li b { right: 0; text-align: right; }
.torn.right li span, .torn.right li small { text-align: left; }

/* Drawings in rows: pigeonholes with a mark in each. */
.marks-grid { display: flex; flex-wrap: wrap; justify-content: center; width: 252px; max-width: 100%; margin-bottom: 6px; }
.marks-grid i { display: flex; align-items: center; justify-content: center; width: 78px; height: 72px; margin: 3px; border: 1px solid var(--brass-lo); border-radius: 3px; background: var(--ink); }
.visual.marks.compact .marks-grid { margin-bottom: 0; }
.visual.marks.compact .marks-grid i { height: 64px; }

/* A key in three pieces, and what else is drawn on the same sheet. */
.visual svg.key { max-width: 320px; }
.visual.compact svg.key { max-width: 250px; }
.key-marks { display: flex; justify-content: center; margin-top: 4px; }
.key-marks i { display: flex; align-items: center; justify-content: center; width: 46px; height: 42px; margin: 0 3px; border-bottom: 1px solid var(--brass-lo); }

/* A chest of small drawers: a mark on each row, and holes with or without a screw. */
.drawers { align-self: stretch; }
.drawer { display: flex; align-items: center; padding: 5px 0; border-top: 1px solid var(--line); }
.drawer:first-child { border-top: 0; }
.drawer i { flex: none; display: flex; width: 44px; justify-content: center; }
.drawer span { flex: 1; display: flex; justify-content: space-between; padding: 0 4px 0 8px; }
.drawer b { width: 17px; height: 17px; border-radius: 50%; }
.drawer b.in { background: var(--brass); box-shadow: inset 0 0 0 2px var(--brass-hi), inset 0 0 0 5px var(--brass-lo); }
.drawer b.out { border: 2px dashed var(--line); background: var(--ink); }

/* Something done by turning the phone on its side: a small phone that shows how, and what to do if the screen will not turn. */
.tilt { margin-bottom: 10px; padding: 12px 12px 10px; border: 2px dashed var(--brass); border-radius: 6px; text-align: center; }
.tilt b { display: block; font-size: 19px; line-height: 1.2; color: var(--brass-hi); }
.tilt small { display: block; margin-top: 6px; font-size: 14px; line-height: 1.25; color: var(--muted); }
.tilt-phone { display: block; width: 26px; height: 44px; margin: 2px auto 12px; border: 3px solid var(--brass-hi); border-radius: 5px; animation: tilt-turn 2.6s ease-in-out infinite; }
@keyframes tilt-turn { 0%, 25% { transform: rotate(0deg); } 55%, 85% { transform: rotate(90deg); } 100% { transform: rotate(0deg); } }

/* The canopy of a bed: six stars, and a golden thread drawn from one to the next. Its size never changes. */
.visual.sky { flex-direction: row; align-items: stretch; justify-content: flex-start; min-height: 0; height: 246px; padding: 9px; background: #050403; }
.sky-map { flex: none; width: 190px; height: 226px; margin: 0; touch-action: none; -webkit-user-select: none; user-select: none; }
.sky-map .star circle { fill: #17120d; stroke: #7d6530; stroke-width: 2; }
.sky-map .star.on circle { stroke: #ecc76b; stroke-width: 3; }
.sky-map .star.last circle { fill: #3a2e1c; }
.sky-map .thread { fill: none; stroke: #ecc76b; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.sky-map .thread-live { stroke: #ecc76b; stroke-width: 3; stroke-linecap: round; opacity: 0.6; }
.sky-side { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding-left: 9px; text-align: left; }
.sky-side .caption { font-size: 14px; line-height: 1.25; }
.sky-side .secondary { width: 100%; min-height: 54px; padding: 4px; font-size: 15px; line-height: 1.1; }

/* Rows of small marks to be read out, one row at a time. */
.visual.seqs { align-items: stretch; min-height: 0; padding: 8px 10px; }
.seq { display: flex; align-items: center; height: 31px; }
.seq b { flex: none; width: 30px; font-family: var(--display); font-size: 17px; color: var(--muted); text-align: left; }
.seq svg { flex: none; margin: 0 2px; }
/* With a spin under it the rows stand closer: the dial has to stay on a small phone. */
.visual.seqs.compact { padding: 6px 10px; }
.visual.seqs.compact .seq { height: 25px; }
/* The music box behind its cylinder's rows. */
.visual.seqs.pictured { position: relative; overflow: hidden; }
.visual.seqs.pictured .back { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.visual.seqs.pictured .veil { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: #100d0a; opacity: 0.84; }
.visual.seqs.pictured .seq, .visual.seqs.pictured .caption { position: relative; }
.visual.seqs.pictured .caption { align-self: center; padding: 1px 8px; border-radius: 4px; background: rgba(16, 13, 10, 0.8); }

/* A call that is a word: which pipe knocks. */
.call-word { display: flex; align-items: center; justify-content: center; height: 92px; font-family: var(--display); font-weight: 900; font-size: 40px; color: var(--brass-hi); }

/*
 * A close-up that is a picture. It keeps its shape before the picture has come, so nothing under it moves. Darkness
 * is a veil over it; what shines in the dark is a spot of light on the veil; what is read is written over it.
 */
/* On a short screen it is shown less tall, as a strip through its middle: what a hand does under it has to stay on screen.
 * Its width is said in so many words: left to the shape, Safari made the picture narrower to keep it three by two
 * when the height was cut (an iPhone showed it four fifths wide, an Android phone the whole width). */
.visual.image { width: 100%; aspect-ratio: 3 / 2; max-height: 28vh; }
.visual.image img { height: 100%; object-fit: cover; }
.visual.image.compact { aspect-ratio: auto; max-height: none; height: 15vh; min-height: 76px; max-height: 112px; }
/* A paper in the picture, to be read: the picture is a button, and the paper opens over the screen (the coats' note). */
.visual.image.opens { cursor: pointer; }
.note-sheet .note-paper {
  margin: 0 0 14px; padding: 34px 26px; border-radius: 4px; background-color: var(--parchment); background-size: cover; background-position: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}
.note-sheet .note-paper p { margin: 0; text-align: center; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 22px; line-height: 1.32; color: var(--paper-ink); }
.visual.image .veil { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: #050403; pointer-events: none; }
.visual.image .veil.fog { background: #aab3ba; }
.visual.image .glow {
  position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 246, 216, 0.95) 0, rgba(236, 199, 107, 0.45) 22%, rgba(236, 199, 107, 0) 68%);
}
.visual.image .read {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  max-width: 94%; padding: 3px 14px 6px; border: 1px solid var(--brass-lo); border-radius: 6px;
  background: rgba(16, 13, 10, 0.8); text-align: center; white-space: nowrap;
}
.visual.image .read b { display: block; font-family: var(--display); font-weight: 900; line-height: 1.1; color: var(--brass-hi); }
/* Beside a dial with its hand on it, what is read stands in the corner: the hand must be seen. */
.visual.image .read.corner { left: auto; right: 6px; bottom: 6px; transform: none; padding: 1px 10px 3px; }
.visual.image .read.corner b.xl, .visual.image .read.corner b.l { font-size: 30px; }
.visual.image .hands { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
/* Lamps in a picture, lit or out (the bulbs round the yard's house). */
.visual.image .lamps { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.visual.image .lamps .out { fill: #0b0d16; opacity: 0.55; }
.visual.image .lamps .lit { mix-blend-mode: screen; }
.visual.image .lamps .lamp-core { stop-color: #fff6dc; }
.visual.image .lamps .lamp-red { stop-color: #ff4a3a; }
.visual.image .lamps .lamp-green { stop-color: #3cff6e; }
.visual.image .lamps .lamp-yellow { stop-color: #ffd23a; }
.visual.image .lamps .lamp-blue { stop-color: #4a8cff; }
.visual.image .hands .hand { stroke: #100d0a; stroke-linecap: round; }
.visual.image .hands .boss { fill: var(--brass-lo); stroke: #100d0a; stroke-width: 3; }
.visual.image .read b.good { color: var(--green); }
.visual.image .read b.bad { color: #e8776a; }
.visual.image .read b.xl { font-size: 54px; }
.visual.image .read b.l { font-size: 40px; }
.visual.image .read b.m { font-size: 25px; }
.visual.image .read b.s { font-size: 17px; font-family: var(--ui); font-weight: 700; color: var(--parchment); white-space: normal; }
.visual.image .read span { display: block; font-size: 13px; line-height: 1.2; color: var(--muted); white-space: normal; }
.visual.image .read.small { padding: 3px 10px 4px; }
.visual.image .read.wide { width: max-content; }
/* In the strip the words stand beside what is read, and go under it when the two are wider than the picture. */
.visual.image.compact .read { bottom: 5px; padding: 1px 10px 3px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; }
.visual.image.compact .read b.xl, .visual.image.compact .read b.l { font-size: 26px; }
.visual.image.compact .read b.m { font-size: 20px; }
.visual.image.compact .read span { margin: 0 4px; white-space: normal; }
.visual.image.compact .glow { width: 60px; height: 60px; margin: -30px 0 0 -30px; }

/* A lock of directions: four arrows laid out as a cross, the middle wipes one out. */
.code-display.arrows span { width: 40px; margin: 0 3px; font-family: var(--ui); font-size: 28px; }
.keypad.arrows { width: 240px; margin: 0 auto 6px; }
.keypad.arrows button, .keypad.arrows i { width: calc(33.333% - 8px); height: 52px; margin: 4px; }
.keypad.arrows button { font-family: var(--ui); font-size: 30px; }
.keypad.arrows .del { font-size: 15px; color: var(--parchment); }

/* Ten switches that stay where they are left, as a telephone's keys: the zero alone in the middle of the last row. */
.toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
/* A padlock of four number wheels, one above the other, each of its colour (the yard's door). */
.wheels { display: grid; gap: 6px; margin-bottom: 8px; }
.wheel { display: grid; grid-template-columns: 1fr 52px 116px 52px; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; border: 2px solid var(--brass-lo); background: var(--panel); }
.wheel .wheel-name { font-size: 15px; color: var(--parchment); }
.wheel .turn { height: 44px; padding: 0; font-size: 20px; border-radius: 6px; border: 1px solid var(--brass-lo); background: var(--panel-hi); color: var(--parchment); }
.wheel .wheel-face { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 6px; background: var(--parchment); color: var(--paper-ink); font-variant-numeric: tabular-nums; }
.wheel .wheel-face b { font-size: 28px; font-weight: 800; }
.wheel .wheel-face i { font-style: normal; font-size: 16px; opacity: 0.35; }
.wheel.red { border-color: #c8372d; } .wheel.red .wheel-face { box-shadow: inset 0 0 0 4px #c8372d; }
.wheel.green { border-color: #2f9a4a; } .wheel.green .wheel-face { box-shadow: inset 0 0 0 4px #2f9a4a; }
.wheel.yellow { border-color: #e2b520; } .wheel.yellow .wheel-face { box-shadow: inset 0 0 0 4px #e2b520; }
.wheel.blue { border-color: #2f62c8; } .wheel.blue .wheel-face { box-shadow: inset 0 0 0 4px #2f62c8; }
.toggles .last { grid-column: 2; }
.toggle {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0;
  background: var(--panel); border: 1px solid var(--brass-lo); color: var(--muted);
}
.toggle i { position: relative; width: 16px; height: 30px; border-radius: 4px; background: var(--ink); border: 1px solid var(--line); }
.toggle i::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 12px; border-radius: 2px; background: var(--muted); }
.toggle b { font-family: var(--display); font-size: 24px; }
.toggle.on { background: var(--panel-hi); border-color: var(--brass); color: var(--brass-hi); }
.toggle.on i::after { top: 2px; bottom: auto; background: var(--brass-hi); }

/* The tree: whole, with its balls to be tapped, or one half of a torn card with a letter on every ball. */
.visual.tree { display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
/* At the tree itself the drawing gives way to whatever is under it: on a small phone the button to climb is on screen.
   (The halves of the card keep their size: one unit of the drawing is one pixel of the page on every phone.) */
.visual.tree .tree-svg { width: auto; height: min(340px, 40vh); }
.tree-svg { border-radius: 6px; }
.tree-svg .ball .cap { fill: #c9a24b; }
.tree-svg .ball .glass { stroke: rgba(0, 0, 0, 0.35); stroke-width: 1; }
.tree-svg .ball .shine { fill: rgba(255, 255, 255, 0.55); }
.tree-svg .ball.tap { cursor: pointer; }
.tree-svg .ball.tap:active .glass { fill: #ffe9a8; }
.tree-svg .ball text { font-family: var(--display); font-size: 19px; font-weight: 900; fill: #fff6df; text-anchor: middle; stroke: #3a0d0a; stroke-width: 3px; paint-order: stroke; }
.tree-svg .tree-star { fill: #6b5a3a; stroke: #3a2e1c; stroke-width: 1; }
.tree-svg .tree-star.lit { fill: url(#tb-star); stroke: #ecc76b; }
.tree-pressed { min-height: 30px; font-family: var(--display); font-size: 24px; font-weight: 900; letter-spacing: 3px; color: var(--brass-hi); }
.tree-card { display: flex; flex-shrink: 0; margin-bottom: 10px; padding: 10px 0; background: var(--parchment); }
.tree-card .tree-svg { flex-shrink: 0; }
.tree-card .tree-svg { border-radius: 0; }
.tree-card.left {
  justify-content: flex-end; margin-right: -14px; border-radius: 3px 0 0 3px;
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 4%, 100% 9%, calc(100% - 4px) 15%, 100% 22%, calc(100% - 6px) 29%, 100% 36%, calc(100% - 3px) 43%, 100% 51%, calc(100% - 5px) 58%, 100% 65%, calc(100% - 4px) 72%, 100% 80%, calc(100% - 6px) 87%, 100% 94%, calc(100% - 3px) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 4%, 100% 9%, calc(100% - 4px) 15%, 100% 22%, calc(100% - 6px) 29%, 100% 36%, calc(100% - 3px) 43%, 100% 51%, calc(100% - 5px) 58%, 100% 65%, calc(100% - 4px) 72%, 100% 80%, calc(100% - 6px) 87%, 100% 94%, calc(100% - 3px) 100%, 0 100%);
}
.tree-card.right {
  justify-content: flex-start; margin-left: -14px; border-radius: 0 3px 3px 0;
  -webkit-clip-path: polygon(0 0, 5px 4%, 0 9%, 4px 15%, 0 22%, 6px 29%, 0 36%, 3px 43%, 0 51%, 5px 58%, 0 65%, 4px 72%, 0 80%, 6px 87%, 0 94%, 3px 100%, 100% 100%, 100% 0);
  clip-path: polygon(0 0, 5px 4%, 0 9%, 4px 15%, 0 22%, 6px 29%, 0 36%, 3px 43%, 0 51%, 5px 58%, 0 65%, 4px 72%, 0 80%, 6px 87%, 0 94%, 3px 100%, 100% 100%, 100% 0);
}
.tree-caption { margin-bottom: 8px; }

/* The gift at the end of a game that gives one: a plate with a brass edge, the code if there is one, the way to the shop. */
.gift { margin: 4px 0 18px; padding: 14px 14px 16px; border: 1px solid var(--brass); border-radius: 10px; background: var(--panel-hi); text-align: center; }
.gift h2 { margin: 0 0 6px; }
.gift p { margin: 0 0 12px; }
.gift-code { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: 1px; color: var(--brass-hi); user-select: all; -webkit-user-select: all; }
.gift a.primary { display: block; text-decoration: none; text-align: center; }
