/* The gallery: a long wall of every generation (scrolls sideways), and under it the viewing room: one work big,
   its plaque beside it. Two faces only: Pixelify Sans for the generation number and the score, Work Sans for the rest. */
.voyages { display: flex; gap: var(--s3); flex-wrap: wrap; justify-content: end; }
.voyages .brass[aria-pressed="true"] { filter: brightness(.88); transform: translateY(2px); text-decoration: underline 2px; text-underline-offset: 5px; }

/* the long wall between two rails: one scroll region, sideways; a short voyage hangs centred */
.rails { position: relative; }
.rails::before, .rails::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--ink); z-index: 1; }
.rails::before { top: 0; } .rails::after { bottom: 0; }
.hall { display: flex; justify-content: safe center; gap: var(--s5); overflow-x: auto; padding: var(--s5) var(--s2) var(--s4); scroll-snap-type: x proximity; }
.hall .cell { position: relative; flex: none; width: 179.4px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: inherit; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.hall .cell .work { width: 179.4px; }                       /* 64 x 2 = 128 px window */
.hall .cell .tag { margin-top: var(--s3); min-width: 112px; padding: 0 var(--s3); min-height: 44px; display: flex; align-items: center; justify-content: center;
  border: 10px solid transparent; border-image: url("/img/plaque-square.webp") 62 / 10px stretch; background: var(--plate) padding-box; font-size: 16px; font-weight: 700; line-height: 1; }
.hall .cell:hover .tag { background-color: var(--plate-hi); }
.hall .cell[aria-current="true"] .work { outline: 4px solid var(--brass); outline-offset: 6px; }
.hall .skip { flex: none; width: 128px; align-self: center; text-align: center; font-size: 16px; color: var(--ink-soft); }

/* the viewing room: the frame and the plaque start on one line (the lamp hangs above it, outside the flow) */
.room { scroll-margin-top: var(--s4); margin-top: 96px; display: grid; grid-template-columns: auto minmax(0, 560px); justify-content: center; gap: var(--s7); align-items: start; }
.viewer { position: relative; }
.viewer .lamp { position: absolute; left: 50%; bottom: 100%; width: 40%; height: auto; transform: translate(-50%, 4px); z-index: 1; }
.viewer .big { width: var(--frame, 448.6px); filter: drop-shadow(8px 10px 0 rgba(25, 25, 25, .22)); }
.card { max-width: 640px; min-width: 0; width: 100%; }
.label-s { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.card .gen { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; margin: var(--s3) 0 var(--s4); }
[hidden] { display: none !important; }
.card .score { display: flex; align-items: baseline; gap: var(--s4); margin: 0 0 var(--s5); }
.card .score .num { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--brass-dark); }
.card .sentence { font-size: 20px; line-height: 1.45; margin: var(--s2) 0 var(--s1); }
.card .why { font-size: 16px; color: var(--ink-soft); margin: 0 0 var(--s5); }
.facts { margin: 0 0 var(--s5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.facts dt { margin-top: var(--s3); }
.facts dd { margin: 0; font-size: 16px; }
.hashbtn { display: block; width: 100%; padding: var(--s2) var(--s4); text-align: left; background: var(--field); border: 0;
  box-shadow: inset 0 1px 0 rgba(25, 25, 25, .25); font-family: var(--mono); font-size: 16px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: copy; }
.hashbtn:hover { background: #fff; }
.hashbtn b { font-weight: 600; }
.acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.acts.walk { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s3); }
.acts + .verdict { margin: var(--s3) 0 0; }
.acts .brass { width: 100%; }
.verdict { min-height: 1.5em; margin: var(--s3) 0 0; font-weight: 600; font-size: 16px; }

@media (max-width: 1099px) {
  .room { grid-template-columns: minmax(0, 1fr); gap: var(--s6); justify-items: center; }
  .card { max-width: 560px; }
}
@media (max-width: 767px) {
  .room { margin-top: 88px; }
  .card .gen, .card .score .num { font-size: 40px; }
  .acts.walk { grid-template-columns: 1fr 1fr; }
  .acts.walk .play { grid-column: 1 / -1; }
}
