/* Shared by the TV page, the students' page and the printed sheet: fonts, colours, buttons and the
   house plan (drawn by plan.js). */

:root {
  --ink: #1d140c;
  --paper: #f6ecd4;
  --paper-dark: #e6d5ae;
  --wood: #4a2c17;
  --wood-light: #7a4a26;
  --gold: #e7b54a;
  --gold-soft: #f3d891;
  --night: #0c1220;
  --night-2: #18213a;
  --red: #a3262a;
  --green: #2f6b3a;
  --title: 'IM Fell English SC', 'Book Antiqua', Georgia, serif;
  --body: 'Nunito', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--night);
  color: var(--paper);
  font-family: var(--body);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
img { -webkit-user-drag: none; user-select: none; }
button { font: inherit; cursor: pointer; }

.btn {
  border: 3px solid var(--gold);
  background: linear-gradient(#5b3519, #3b2110);
  color: var(--gold-soft);
  border-radius: 14px;
  padding: .5em 1.1em;
  font-weight: 800;
  box-shadow: 0 4px 0 #1c0f06, 0 6px 14px rgba(0, 0, 0, .5);
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #1c0f06; }
.btn.big { font-size: 1.4em; padding: .6em 1.6em; }
.btn.quiet { border-color: #8a6a44; color: #d8c3a0; background: rgba(40, 24, 12, .85); box-shadow: none; }

/* ---------- The estate map (plan.js): a painting with one tappable cell per place on it ---------- */
.plan {
  position: relative;
  container-type: inline-size;
  border: 4px solid var(--wood);
  border-radius: 8px;
  overflow: hidden;
  background: #3a2a1a;
}
.plan .mappic { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plan .cell {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: .3em;
  font-weight: 800;
  font-size: var(--plan-font, clamp(8px, 1.45cqw, 19px));
  line-height: 1.05;
  text-align: center;
  border-radius: 4px;
}
.plan .cell .label {
  position: relative; z-index: 2; padding: .18em .5em; border-radius: .5em;
  background: rgba(20, 12, 6, .8); color: var(--paper);
  max-width: 96%;
}
.plan .door { position: absolute; z-index: 3; transform: translate(-50%, -50%); background: var(--gold-soft); border: 1px solid #6a4312; border-radius: 2px; pointer-events: none; }
.plan .door.across { width: 4.4%; height: .8%; min-height: 4px; }
.plan .door.along { width: .55%; height: 6.6%; min-width: 4px; }
.plan .tokens {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center;
  gap: 2px; flex: 1; width: 100%; padding: 2px; z-index: 2;
}
.face {
  border-radius: 50%;
  background: #d8c39a;
  border: 3px solid var(--wood);
  object-fit: cover;
  display: block;
}

/* Words written on a blank paper in a clue picture (blank pictures have no names in them, so they fit any case). */
.over {
  position: absolute; left: 24%; right: 24%; top: 30%; bottom: 30%;
  display: flex; flex-direction: column; justify-content: center; gap: .35em;
  font-family: var(--body); font-weight: 800; color: #1d140c; text-align: center; line-height: 1.2;
  font-size: 5.2cqw;
}
.over p { margin: 0; }
