.hall {
  width: min(960px, calc(100% - 40px));
  margin: 24px auto 64px;
  color: #19151b;
}
.hall__bill {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  overflow: hidden;
  border: 3px solid #181419;
  border-radius: 24px 24px 0 0;
  background: #231e2c;
  color: #fff6de;
}
.hall__heading { position: relative; z-index: 1; padding: clamp(22px, 4vw, 44px); width: 60%; }
.hall__heading h1 {
  margin: 0;
  color: #ffd44b;
  font: 950 clamp(44px, 8vw, 92px)/.9 var(--f-display);
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.hall__heading p { margin: 20px 0 0; font-size: clamp(14px, 2vw, 18px); font-weight: 650; }
.hall__portrait {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  align-items: end;
  justify-content: center;
  width: 42%;
  background: repeating-conic-gradient(from 12deg at 52% 84%, #ffc83a 0 13deg, #ffde6b 13deg 25deg);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.hall__portrait img { display: block; width: 88%; height: 96%; object-fit: contain; object-position: bottom; }
.hall__table { width: 100%; border: 3px solid #181419; border-top: 0; border-spacing: 0; background: #fff; }
.hall__table thead { background: #231e2c; color: #fff6de; }
.hall__table thead th { padding: 12px 16px; text-transform: uppercase; text-align: left; font-size: .73rem; letter-spacing: .07em; }
.hall__table thead th:first-child { width: 5rem; text-align: center; }
.hall__table thead th:last-child { text-align: right; }
.hall__table tbody tr { background: var(--row); }
.hall__table tbody :is(td, th) { padding: 14px 16px; border-top: 2px solid #1a1620; }
.hall__rank { border-left: 7px solid var(--stripe); text-align: center; font: 800 1.45rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.hall__person { display: flex; gap: 14px; align-items: center; text-align: left; font: 800 clamp(1rem, 2.4vw, 1.45rem)/1.1 var(--f-display); overflow-wrap: anywhere; }
.hall__person img { flex: none; border-radius: 50%; border: 2px solid #211a21; background: #fff9ed; object-fit: cover; }
.hall__example { display: block; margin-top: .25em; font: 600 .7rem/1.1 var(--f-display); }
.hall__sum { text-align: right; font: 850 clamp(1rem, 2.6vw, 1.55rem)/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
/* The rank cell holds the background, which spans the entire row. */
.hall__scene-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.hall__print { position: relative; isolation: isolate; }
.hall__table tbody tr { position: relative; }
.hall__table [data-tier] > .hall__rank { position: static; }
.hall__position, .hall__person > *, .hall__amount { position: relative; z-index: 2; }
.hall__profile-link { color: inherit; text-decoration: none; }
/* Keep the table and link semantics while making the whole row a hit target. */
.hall__profile-link::after { content: ''; position: absolute; z-index: 3; inset: 2px 0 0; cursor: pointer; }
.hall__profile-link:focus-visible::after { outline: 2px solid #583873; outline-offset: -4px; }
.hall__name { display: inline-block; }
.hall__gift { cursor: pointer; }
.hall__gift-button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.hall__gift .hall__gift-button img { border-radius: 9px; }
.hall__gift--lit .hall__person::before {
  content: ''; position: absolute; z-index: 4; pointer-events: none; inset: 2px 0 0;
  border-radius: 5px; border: 3px solid transparent;
  background: linear-gradient(110deg, #d43918 8%, #ff901f 23%, #fff1a8 35%, #ef4a1e 55%, #ffc451 80%) border-box;
  background-size: 220% 100%;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: hall-ember-outline 2.4s ease-out forwards;
}
.hall__gift--lit { outline: 2px solid #ffac30; outline-offset: -3px; box-shadow: inset 0 0 12px #ffa033; }
@keyframes hall-ember-outline {
  0% { opacity: .5; background-position: 0 50%; }
  18%, 75% { opacity: 1; }
  100% { opacity: 0; background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hall__gift--lit .hall__person::before { animation: none; }
}
.hall__table tr:is(:hover, :has(.hall__profile-link:focus-visible)) .hall__name {
  color: #49265c;
  text-shadow: 0 0 .14em #fff, 0 0 .46em var(--hall-ink);
}
.hall__table tr:is(:hover, :has(.hall__profile-link:focus-visible)) .hall__person img {
  outline: 2px solid var(--hall-ink);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .hall__table tr:is(:hover, :has(.hall__profile-link:focus-visible)) .hall__name {
    animation: hall-name-nudge .38s ease-out;
  }
  .hall__table tr:is(:hover, :has(.hall__profile-link:focus-visible)) .hall__person img {
    animation: hall-avatar-nudge .48s ease-out;
  }
}
@keyframes hall-name-nudge {
  0%, 100% { transform: none; }
  33% { transform: translateY(-2px) rotate(-1deg); }
  67% { transform: translateY(1px) rotate(.5deg); }
}
@keyframes hall-avatar-nudge {
  0%, 100% { transform: none; }
  33% { transform: translateY(-2px) rotate(-6deg) scale(1.06); outline-offset: 4px; }
  67% { transform: translateY(1px) rotate(3deg) scale(1.015); }
}
.hall__amount { white-space: nowrap; }
.hall__empty { margin: 0; padding: 22px; border: 3px solid; border-top: 0; background: #fff9ea; }
.hall__back { display: inline-block; margin-top: 20px; color: inherit; font-weight: 750; }
.hall__own-caption {
  padding: .7em 1em; background: #231e2c; color: #fff6de;
  text-align: left; font: 800 1.1rem/1.2 var(--f-display);
}
.hall__pass {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(12px, 2.5vw, 26px); padding-left: clamp(14px, 3vw, 32px);
  border: 3px solid #181419; border-top: 0; border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 0 #181419; background: #fff3d5; overflow: hidden;
}
.hall__seal {
  display: grid; place-items: center; width: clamp(38px, 7vw, 66px); aspect-ratio: 1;
  border: 2px solid #231e2c; border-radius: 50%; background: #ffcf39; color: #231e2c;
  box-shadow: inset 0 0 0 4px #ffcf39, inset 0 0 0 5px #231e2c, 2px 3px #231e2c;
  font-size: clamp(22px, 4vw, 38px); line-height: 1; transform: rotate(-12deg);
}
.hall__pass h2 { margin: 0; font: 900 clamp(1.2rem, 3vw, 1.8rem)/1.1 var(--f-display); }
.hall__pass p { margin: .4em 0 0; line-height: 1.4; }
.hall__stub {
  align-self: stretch; display: grid; place-items: center; padding: clamp(20px, 4vw, 38px);
  border-left: 2px dashed #a38252; background: #ffe7a7;
}
.hall__stub a {
  display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  min-height: 44px; padding: 0 21px; border: 2px solid #181419; border-radius: 99px;
  background: #ffd03b; color: #181419; box-shadow: 2px 3px #181419;
  text-decoration: none; font: 850 1rem/1 var(--f-display);
}
.hall__stub a:hover { background: #ffde70; }
.hall__stub a:focus-visible { outline: 3px solid #63328e; outline-offset: 4px; }
@media (max-width: 560px) {
  .hall__pass { grid-template-columns: auto 1fr; gap: 12px; padding: 18px 0 0; }
  .hall__seal { margin-left: 14px; }
  .hall__pass p { padding-right: 14px; font-size: .94rem; }
  .hall__stub { grid-column: 1 / -1; justify-items: stretch; padding: 10px 14px 14px; border: 0; border-top: 2px dashed #a38252; }
}
@media (max-width: 560px) {
  .hall { width: calc(100% - 24px); }
  .hall__heading { width: 65%; padding: 20px 12px; }
  .hall__heading p { margin-top: 14px; }
  .hall__portrait { width: 35%; }
  .hall__table thead th, .hall__table tbody :is(td, th) { padding: 10px 6px; }
  .hall__table thead th { font-size: .63rem; }
  .hall__table thead th:first-child { width: 2.5rem; }
  .hall__rank { border-left-width: 4px; font-size: 1rem; }
  .hall__person { gap: 6px; }
  .hall__person img { width: 30px; height: 30px; }
}
