/* ============================================================
   THE BELL BOARD — the High Seven page.
   A photographed hotel bell board (Nano Banana Pro, 11.11.26):
   seven brass bells on walnut, each over a blank name plate.
   Each bell is a link to its seat. The seat's mark is real text
   set on the blank plate; the seat index sits beneath, a tab under each bell.
   Plate centres were measured on the photograph: the first sits
   14.57% across, and each next one 11.87% further; all are
   71.74% down. The original is kept in
   'High Seven Bell Board Art 11.11.26', beside the site notes.
   ============================================================ */

.bell-board {
  max-width: 900px;
  margin: 48px auto 14px;
}
.bell-board-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--oxblood);
  text-align: center;
  margin: 0 0 14px;
}
.bell-board-frame {
  position: relative;
  container-type: inline-size;
  line-height: 0;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 10px 26px rgba(10, 6, 4, 0.32);
  background: #3a1f12;
}
.bell-board-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* one bell, one link: the hit area covers the bell and its plate */
.bell {
  position: absolute;
  left: calc(var(--c) - 5.6%);
  top: 14%;
  width: 11.2%;
  height: 68%;
  display: block;
  text-decoration: none;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}
.bell:focus-visible { outline: 2px solid #f4e3b3; outline-offset: -2px; }

/* the mark on the plate: sigil and seat number, as if engraved */
.bell-plate {
  position: absolute;
  left: 50%;
  top: 84.9%;
  transform: translate(-50%, -50%);
  width: 62%;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;            /* for browsers without container units */
  font-size: 1.95cqw;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #3a2a12;
  transition: color 0.25s ease;
}
.bell:hover .bell-plate,
.bell:focus-visible .bell-plate { color: var(--oxblood); }

/* the plate lights when the bell is under the hand, and pulses when it is rung */
.bell::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 84.9%;
  width: 66%;
  height: 9.6%;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  box-shadow: 0 0 0 0 rgba(255, 226, 150, 0);
  transition: box-shadow 0.3s ease;
  pointer-events: none;
}
.bell:hover::after,
.bell:focus-visible::after { box-shadow: 0 0 14px 4px rgba(255, 226, 150, 0.55); }
.bell.is-rung::after { animation: bell-glow 900ms ease; }
@keyframes bell-glow {
  0%   { box-shadow: 0 0 0 0 rgba(255, 236, 180, 0.9); }
  30%  { box-shadow: 0 0 22px 9px rgba(255, 226, 150, 0.75); }
  100% { box-shadow: 0 0 0 0 rgba(255, 226, 150, 0); }
}

/* the seat index sits under the board, one tab beneath each bell: the seven bells span
   the middle 83.1% of the photograph, so the index is given the same measure */
.bell-board .seat-index {
  width: 83.1%;
  max-width: none;
  margin: 12px auto 0;
  gap: 5px;
}
.bell-board-note {
  margin: 14px auto 0;
  max-width: 520px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* the seat that was rung is picked out for a moment */
.is-called { animation: seat-called 1600ms ease; }
@keyframes seat-called {
  0%   { box-shadow: 0 0 0 0 rgba(201, 162, 76, 0); }
  20%  { box-shadow: 0 0 0 6px rgba(201, 162, 76, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 76, 0); }
}

/* on a narrow screen the index goes back to its own two rows, full width */
@media (max-width: 760px) {
  .bell-board { margin-top: 36px; }
  .bell-board .seat-index { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bell-plate, .bell::after { transition: none; }
  .bell.is-rung::after, .is-called { animation: none; }
}
